Skip to content

Commit

Permalink
refactor Cargo.toml (#42)
Browse files Browse the repository at this point in the history
* refacotring deps

* sort deps

* remove unused imports

* resolve clippy issue
  • Loading branch information
byeongsu-hong authored Oct 11, 2023
1 parent d78fcc6 commit 3fe56f5
Show file tree
Hide file tree
Showing 24 changed files with 514 additions and 440 deletions.
41 changes: 27 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,47 +32,60 @@ documentation = "https://docs.hyperlane.xyz/"
keywords = ["hyperlane", "cosmos", "cosmwasm"]

[workspace.dependencies]
# cosmwasm
cosmwasm-std = { version = "1.2.7", features = ["stargate", "cosmwasm_1_2"] }
cosmwasm-storage = "1.2.7"
schemars = "0.8.12"
cosmwasm-schema = "1.2.7"
cosmwasm-crypto = "1.2.7"

# cosmwasm extension
cw-storage-plus = "1.1.0"
cw-utils = "1.0.1"
cw2 = "1.0.0"
cw20 = "1.1.0"
cw20-base = { version = "1.1.0", features = ["library"] }
sha3 = "0.10.8"
sha2 = { version = "0.10.6", default-features = false }
ripemd = "0.1.3"

# utilities
thiserror = { version = "1.0.37" }
anyhow = { version = "1.0.71", features = ["backtrace"] }
eyre = { version = "0.6.8" }

# encoding
bech32 = "0.9.1"
base64 = "0.21.2"
serde = { version = "1.0.162", default-features = false, features = ["derive"] }
serde_json = "1.0.96"
serde-json-wasm = "1.0.0"
thiserror = { version = "1.0.37" }
cw-multi-test = "0.17.0"
cosmwasm-schema = "1.2.7"
cosmwasm-crypto = "1.2.7"
schemars = "0.8.12"
prost = { version = "0.12.1", default-features = false, features = [
"prost-derive",
] }
prost-types = { version = "0.12.1", default-features = false }
hex-literal = { version = "0.4.1" }

# cryptography
sha3 = "0.10.8"
sha2 = { version = "0.10.6", default-features = false }
ripemd = "0.1.3"
k256 = { version = "0.13.1", default-features = false, features = ["ecdsa"] }
anyhow = { version = "1.0.71", features = ["backtrace"] }
digest = { version = "0.10.7" }
hex-literal = { version = "0.4.1" }

# testing
cw-multi-test = "0.17.0"
rstest = "0.18.2"
test-tube = { version = "0.1.7" }
osmosis-test-tube = { version = "19.2.0" }

tokio = { version = "1", features = ["full"] }
eyre = { version = "0.6.8" }
ethers = "2.0.7"

hpl-router = { path = "./packages/router" }
hpl-ownable = { path = "./packages/ownable" }
hpl-interface = { path = "./packages/interface" }
# workspace aliases (./contracts)
hpl-hub = { path = "./contracts/hub" }
hpl-ism-multisig = { path = "./contracts/ism-multisig" }
hpl-mailbox = { path = "./contracts/mailbox" }
hpl-multicall = { path = "./contracts/multicall" }

# workspace aliases (./packages)
hpl-router = { path = "./packages/router" }
hpl-ownable = { path = "./packages/ownable" }
hpl-interface = { path = "./packages/interface" }
45 changes: 24 additions & 21 deletions contracts/default-hook/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "hpl-default-hook"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
documentation = { workspace = true }
keywords = { workspace = true }
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
keywords.workspace = true

[lib]
crate-type = ["cdylib", "rlib"]
Expand All @@ -19,18 +19,21 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-std = { workspace = true }
cosmwasm-storage = { workspace = true }
cw-storage-plus = { workspace = true }
cw2 = { workspace = true }
cw-utils = { workspace = true }
schemars = { workspace = true }
thiserror = { workspace = true }
cosmwasm-schema = { workspace = true }
serde-json-wasm = { workspace = true }

hpl-ownable = { workspace = true }
hpl-interface = { workspace = true }
cosmwasm-std.workspace = true
cosmwasm-storage.workspace = true
cosmwasm-schema.workspace = true

cw-storage-plus.workspace = true
cw2.workspace = true
cw-utils.workspace = true

schemars.workspace = true
serde-json-wasm.workspace = true

thiserror.workspace = true

hpl-ownable.workspace = true
hpl-interface.workspace = true

[dev-dependencies]
anyhow = { workspace = true }
anyhow.workspace = true
46 changes: 24 additions & 22 deletions contracts/domain-routing-hook/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "hpl-domain-routing-hook"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
documentation = { workspace = true }
keywords = { workspace = true }
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
keywords.workspace = true

[lib]
crate-type = ["cdylib", "rlib"]
Expand All @@ -19,19 +19,21 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-std = { workspace = true }
cosmwasm-storage = { workspace = true }
cw-storage-plus = { workspace = true }
cw2 = { workspace = true }
cw-utils = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
cosmwasm-schema = { workspace = true }
serde-json-wasm = { workspace = true }

hpl-ownable = { workspace = true }
hpl-interface = { workspace = true }
cosmwasm-std.workspace = true
cosmwasm-storage.workspace = true
cosmwasm-schema.workspace = true

cw-storage-plus.workspace = true
cw2.workspace = true
cw-utils.workspace = true

schemars.workspace = true
serde-json-wasm.workspace = true

thiserror.workspace = true

hpl-ownable.workspace = true
hpl-interface.workspace = true

[dev-dependencies]
anyhow = { workspace = true }
anyhow.workspace = true
38 changes: 20 additions & 18 deletions contracts/hub/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "hpl-hub"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
documentation = { workspace = true }
keywords = { workspace = true }
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
keywords.workspace = true

[lib]
crate-type = ["cdylib", "rlib"]
Expand All @@ -19,16 +19,18 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-std = { workspace = true }
cosmwasm-storage = { workspace = true }
cw-storage-plus = { workspace = true }
cw2 = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
cosmwasm-schema = { workspace = true }
cosmwasm-std.workspace = true
cosmwasm-storage.workspace = true
cosmwasm-schema.workspace = true

hpl-interface = { workspace = true }
cw-storage-plus.workspace = true
cw2.workspace = true

schemars.workspace = true

thiserror.workspace = true

hpl-interface.workspace = true

[dev-dependencies]
cw-multi-test = { workspace = true }
cw-multi-test.workspace = true
46 changes: 25 additions & 21 deletions contracts/igp-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "hpl-igp-core"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
documentation = { workspace = true }
keywords = { workspace = true }
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
keywords.workspace = true

[lib]
crate-type = ["cdylib", "rlib"]
Expand All @@ -19,18 +19,22 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-std = { workspace = true }
cosmwasm-storage = { workspace = true }
cw-storage-plus = { workspace = true }
cw2 = { workspace = true }
cw-utils = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
cosmwasm-schema = { workspace = true }

hpl-ownable = { workspace = true }
hpl-interface = { workspace = true }
cosmwasm-std.workspace = true
cosmwasm-storage.workspace = true
cosmwasm-schema.workspace = true

cw-storage-plus.workspace = true
cw2.workspace = true
cw-utils.workspace = true

schemars.workspace = true

thiserror.workspace = true

hpl-ownable.workspace = true
hpl-interface.workspace = true

[dev-dependencies]
anyhow = { workspace = true }
serde.workspace = true

anyhow.workspace = true
47 changes: 26 additions & 21 deletions contracts/igp-gas-oracle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "hpl-igp-gas-oracle"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
documentation = { workspace = true }
keywords = { workspace = true }
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
keywords.workspace = true

[lib]
crate-type = ["cdylib", "rlib"]
Expand All @@ -19,18 +19,23 @@ backtraces = ["cosmwasm-std/backtraces"]
library = []

[dependencies]
cosmwasm-std = { workspace = true }
cosmwasm-storage = { workspace = true }
cw-storage-plus = { workspace = true }
cw2 = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
cosmwasm-schema = { workspace = true }

hpl-ownable = { workspace = true }
hpl-interface = { workspace = true }
cosmwasm-std.workspace = true
cosmwasm-storage.workspace = true
cosmwasm-schema.workspace = true

cw-storage-plus.workspace = true
cw2.workspace = true

schemars.workspace = true

thiserror.workspace = true

hpl-ownable.workspace = true
hpl-interface.workspace = true

[dev-dependencies]
cw-multi-test = { workspace = true }
anyhow = { workspace = true }
serde.workspace = true

cw-multi-test.workspace = true

anyhow.workspace = true
Loading

0 comments on commit 3fe56f5

Please sign in to comment.