From b13842085d81cfe0cb28a0d31fbe08a79e83a257 Mon Sep 17 00:00:00 2001 From: Jean Marchand Date: Thu, 27 Jun 2024 12:12:07 +0700 Subject: [PATCH 1/2] remove unused dependencies --- Cargo.lock | 123 ++----------------- contracts/atomic-order-example/Cargo.toml | 2 - contracts/injective-cosmwasm-mock/Cargo.toml | 2 - packages/injective-math/Cargo.toml | 2 - packages/injective-protobuf/Cargo.toml | 5 - packages/injective-testing/Cargo.toml | 1 - 6 files changed, 11 insertions(+), 124 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 14dcf1be..3db6a776 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -85,15 +85,13 @@ version = "0.2.0" dependencies = [ "cosmwasm-schema", "cosmwasm-std", - "cosmwasm-storage", "cw-multi-test", "cw-storage-plus 1.2.0", - "cw-utils 0.16.0", "cw2 0.16.0", "injective-cosmwasm 0.2.23-rc1", "injective-math 0.2.4", "injective-protobuf", - "protobuf 2.28.0", + "protobuf", "schemars", "serde 1.0.202", "thiserror", @@ -474,16 +472,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "cosmwasm-storage" -version = "1.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66de2ab9db04757bcedef2b5984fbe536903ada4a8a9766717a4a71197ef34f6" -dependencies = [ - "cosmwasm-std", - "serde 1.0.202", -] - [[package]] name = "cpufeatures" version = "0.2.12" @@ -568,7 +556,7 @@ dependencies = [ "anyhow", "cosmwasm-std", "cw-storage-plus 1.2.0", - "cw-utils 1.0.3", + "cw-utils", "derivative", "itertools 0.10.5", "k256 0.11.6", @@ -600,21 +588,6 @@ dependencies = [ "serde 1.0.202", ] -[[package]] -name = "cw-utils" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6a84c6c1c0acc3616398eba50783934bd6c964bad6974241eaee3460c8f5b26" -dependencies = [ - "cosmwasm-schema", - "cosmwasm-std", - "cw2 0.16.0", - "schemars", - "semver", - "serde 1.0.202", - "thiserror", -] - [[package]] name = "cw-utils" version = "1.0.3" @@ -1484,12 +1457,10 @@ dependencies = [ "cw2 0.16.0", "injective-cosmwasm 0.2.23-rc1", "injective-math 0.2.4", - "injective-protobuf", "injective-std 0.1.7", "injective-test-tube", "injective-testing 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "prost 0.12.4", - "protobuf 3.4.0", "schemars", "serde 1.0.202", "thiserror", @@ -1501,11 +1472,9 @@ version = "0.2.4" dependencies = [ "cosmwasm-schema", "cosmwasm-std", - "ethereum-types", "primitive-types", "schemars", "serde 1.0.202", - "subtle-encoding", ] [[package]] @@ -1528,13 +1497,8 @@ version = "0.2.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", - "ethereum-types", - "num 0.4.3", - "protobuf 2.28.0", + "protobuf", "protobuf-codegen-pure", - "schemars", - "serde 1.0.202", - "subtle-encoding", ] [[package]] @@ -1592,7 +1556,6 @@ name = "injective-testing" version = "0.1.6" dependencies = [ "anyhow", - "base64 0.13.1", "cosmwasm-std", "cw-multi-test", "injective-cosmwasm 0.2.23-rc1", @@ -1786,25 +1749,11 @@ version = "0.1.42" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4703ad64153382334aa8db57c637364c322d3372e097840c72000dabdcf6156e" dependencies = [ - "num-bigint 0.1.44", - "num-complex 0.1.43", - "num-integer", - "num-iter", - "num-rational 0.1.42", - "num-traits", -] - -[[package]] -name = "num" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23" -dependencies = [ - "num-bigint 0.4.5", - "num-complex 0.4.6", + "num-bigint", + "num-complex", "num-integer", "num-iter", - "num-rational 0.4.2", + "num-rational", "num-traits", ] @@ -1820,16 +1769,6 @@ dependencies = [ "rustc-serialize", ] -[[package]] -name = "num-bigint" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c165a9ab64cf766f73521c0dd2cfdff64f488b8f0b3e621face3462d3db536d7" -dependencies = [ - "num-integer", - "num-traits", -] - [[package]] name = "num-complex" version = "0.1.43" @@ -1840,15 +1779,6 @@ dependencies = [ "rustc-serialize", ] -[[package]] -name = "num-complex" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" -dependencies = [ - "num-traits", -] - [[package]] name = "num-conv" version = "0.1.0" @@ -1892,23 +1822,12 @@ version = "0.1.42" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee314c74bd753fc86b4780aa9475da469155f3848473a261d2d18e35245a784e" dependencies = [ - "num-bigint 0.1.44", + "num-bigint", "num-integer", "num-traits", "rustc-serialize", ] -[[package]] -name = "num-rational" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" -dependencies = [ - "num-bigint 0.4.5", - "num-integer", - "num-traits", -] - [[package]] name = "num-traits" version = "0.2.19" @@ -2204,24 +2123,13 @@ dependencies = [ "bytes", ] -[[package]] -name = "protobuf" -version = "3.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58678a64de2fced2bdec6bca052a6716a0efe692d6e3f53d1bda6a1def64cfc0" -dependencies = [ - "once_cell", - "protobuf-support", - "thiserror", -] - [[package]] name = "protobuf-codegen" version = "2.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "033460afb75cf755fcfc16dfaed20b86468082a2ea24e05ac35ab4a099a017d6" dependencies = [ - "protobuf 2.28.0", + "protobuf", ] [[package]] @@ -2230,19 +2138,10 @@ version = "2.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95a29399fc94bcd3eeaa951c715f7bea69409b2445356b00519740bcd6ddd865" dependencies = [ - "protobuf 2.28.0", + "protobuf", "protobuf-codegen", ] -[[package]] -name = "protobuf-support" -version = "3.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1ed294a835b0f30810e13616b1cd34943c6d1e84a8f3b0dcfe466d256c3e7e7" -dependencies = [ - "thiserror", -] - [[package]] name = "quote" version = "1.0.36" @@ -2689,7 +2588,7 @@ version = "0.6.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c97b18e9e53de541f11e497357d6c5eaeb39f0cb9c8734e274abe4935f6991fa" dependencies = [ - "num 0.1.42", + "num", ] [[package]] @@ -2765,7 +2664,7 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5aaee47e038bf9552d30380d3973fff2593ee0a76d81ad4c581f267cdcadf36" dependencies = [ - "num 0.1.42", + "num", "serde 0.6.15", ] diff --git a/contracts/atomic-order-example/Cargo.toml b/contracts/atomic-order-example/Cargo.toml index 4a2ab553..566b0116 100644 --- a/contracts/atomic-order-example/Cargo.toml +++ b/contracts/atomic-order-example/Cargo.toml @@ -30,9 +30,7 @@ optimize = """docker run --rm -v "$(pwd)":/code \ [dependencies] cosmwasm-std = { version = "1.5.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "iterator", "stargate" ] } -cosmwasm-storage = { version = "1.5.0", features = [ "iterator" ] } cw-storage-plus = { version = "1.2.0" } -cw-utils = { version = "0.16.0" } cw2 = { version = "0.16.0" } injective-cosmwasm = { version = "0.2.23-rc1", path = "../../packages/injective-cosmwasm" } injective-math = { version = "0.2.4", path = "../../packages/injective-math" } diff --git a/contracts/injective-cosmwasm-mock/Cargo.toml b/contracts/injective-cosmwasm-mock/Cargo.toml index b950d9c8..7ff781d5 100644 --- a/contracts/injective-cosmwasm-mock/Cargo.toml +++ b/contracts/injective-cosmwasm-mock/Cargo.toml @@ -37,10 +37,8 @@ cw-storage-plus = { version = "1.2.0" } cw2 = { version = "0.16.0" } injective-cosmwasm = { path = "../../packages/injective-cosmwasm" } injective-math = { path = "../../packages/injective-math" } -injective-protobuf = { path = "../../packages/injective-protobuf" } injective-std = { version = "0.1.5" } prost = { version = "0.12.4" } -protobuf = { version = "3.3.0" } schemars = { version = "0.8.16" } serde = { version = "1.0.196", default-features = false, features = [ "derive" ] } thiserror = { version = "1.0.56" } diff --git a/packages/injective-math/Cargo.toml b/packages/injective-math/Cargo.toml index 15123d31..752cd0f3 100644 --- a/packages/injective-math/Cargo.toml +++ b/packages/injective-math/Cargo.toml @@ -16,11 +16,9 @@ backtraces = [ "cosmwasm-std/backtraces" ] [dependencies] cosmwasm-std = { version = "1.5.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "iterator", "stargate" ] } -ethereum-types = { version = "0.5.2" } primitive-types = { version = "0.12.2", default-features = false } schemars = "0.8.8" serde = { version = "1.0.193", default-features = false, features = [ "derive" ] } -subtle-encoding = { version = "0.5.1", features = [ "bech32-preview" ] } [dev-dependencies] cosmwasm-schema = { version = "1.5.0" } diff --git a/packages/injective-protobuf/Cargo.toml b/packages/injective-protobuf/Cargo.toml index 59fdac9b..01a7ea7a 100644 --- a/packages/injective-protobuf/Cargo.toml +++ b/packages/injective-protobuf/Cargo.toml @@ -19,12 +19,7 @@ backtraces = [ "cosmwasm-std/backtraces" ] [dependencies] cosmwasm-std = { version = "1.5.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "iterator", "stargate" ] } -ethereum-types = "0.5.2" -num = "0.4.0" protobuf = { version = "2", features = [ "with-bytes" ] } -schemars = "0.8.8" -serde = { version = "1.0.136", default-features = false, features = [ "derive" ] } -subtle-encoding = { version = "0.5.1", features = [ "bech32-preview" ] } [dev-dependencies] cosmwasm-schema = { version = "1.5.0" } diff --git a/packages/injective-testing/Cargo.toml b/packages/injective-testing/Cargo.toml index 2c2c2031..ffe3069c 100644 --- a/packages/injective-testing/Cargo.toml +++ b/packages/injective-testing/Cargo.toml @@ -9,7 +9,6 @@ version = "0.1.6" [dependencies] anyhow = { version = "1.0.66" } -base64 = { version = "0.13.1" } cosmwasm-std = { version = "1.5.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "iterator", "stargate" ] } cw-multi-test = { version = "0.16.2" } injective-cosmwasm = { version = "0.2.23-rc1", path = "../injective-cosmwasm" } From 891446fce43c2057df7bc701c15e7c21195df2d3 Mon Sep 17 00:00:00 2001 From: maxrobot Date: Mon, 16 Sep 2024 17:31:50 +0100 Subject: [PATCH 2/2] fix: remove comments --- packages/injective-math/Cargo.toml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/injective-math/Cargo.toml b/packages/injective-math/Cargo.toml index 61043c68..01ba28b7 100644 --- a/packages/injective-math/Cargo.toml +++ b/packages/injective-math/Cargo.toml @@ -13,13 +13,10 @@ version = "0.3.0" [features] [dependencies] -cosmwasm-std = { workspace = true } -# ethereum-types = { workspace = true } - +cosmwasm-std = { workspace = true } primitive-types = { workspace = true } schemars = { workspace = true } serde = { workspace = true } -# subtle-encoding = { workspace = true } [dev-dependencies] cosmwasm-schema = { workspace = true }