diff --git a/Cargo.lock b/Cargo.lock index 7d65c7aac9..5d5205afbb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1639,7 +1639,6 @@ dependencies = [ "iana-time-zone", "js-sys", "num-traits", - "serde", "wasm-bindgen", "windows-link", ] @@ -2508,7 +2507,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e" dependencies = [ "powerfmt", - "serde", ] [[package]] @@ -5118,7 +5116,6 @@ checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661" dependencies = [ "equivalent", "hashbrown 0.15.4", - "serde", ] [[package]] @@ -6688,19 +6685,6 @@ dependencies = [ "tempfile", ] -[[package]] -name = "ndarray" -version = "0.15.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb12d4e967ec485a5f71c6311fe28158e9d6f4bc4a447b474184d0f91a8fa32" -dependencies = [ - "matrixmultiply", - "num-complex", - "num-integer", - "num-traits", - "rawpointer", -] - [[package]] name = "netlink-packet-core" version = "0.7.0" @@ -8138,7 +8122,6 @@ name = "pallet-subtensor" version = "4.0.0-dev" dependencies = [ "approx", - "ark-bls12-381 0.4.0", "ark-serialize 0.4.2", "frame-benchmarking", "frame-support", @@ -8147,7 +8130,6 @@ dependencies = [ "hex-literal", "libsecp256k1", "log", - "ndarray", "num-traits", "pallet-balances", "pallet-collective", @@ -8155,10 +8137,8 @@ dependencies = [ "pallet-drand", "pallet-membership", "pallet-preimage", - "pallet-proxy 38.0.0", "pallet-scheduler", "pallet-subtensor-swap", - "pallet-transaction-payment", "pallet-utility 38.0.0", "parity-scale-codec", "parity-util-mem", @@ -8168,10 +8148,7 @@ dependencies = [ "safe-math", "scale-info", "serde", - "serde-tuple-vec-map", - "serde_bytes", "serde_json", - "serde_with", "sha2 0.10.9", "share-pool", "sp-core", @@ -11720,30 +11697,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "schemars" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" -dependencies = [ - "dyn-clone", - "ref-cast", - "serde", - "serde_json", -] - -[[package]] -name = "schemars" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82d20c4491bc164fa2f6c5d44565947a52ad80b9505d8e36f8d54c27c739fcd0" -dependencies = [ - "dyn-clone", - "ref-cast", - "serde", - "serde_json", -] - [[package]] name = "schnellru" version = "0.2.4" @@ -11989,15 +11942,6 @@ dependencies = [ "serde_derive", ] -[[package]] -name = "serde-tuple-vec-map" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a04d0ebe0de77d7d445bb729a895dcb0a288854b267ca85f030ce51cdc578c82" -dependencies = [ - "serde", -] - [[package]] name = "serde_bytes" version = "0.11.17" @@ -12061,38 +12005,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_with" -version = "3.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2c45cd61fefa9db6f254525d46e392b852e0e61d9a1fd36e5bd183450a556d5" -dependencies = [ - "base64 0.22.1", - "chrono", - "hex", - "indexmap 1.9.3", - "indexmap 2.10.0", - "schemars 0.9.0", - "schemars 1.0.4", - "serde", - "serde_derive", - "serde_json", - "serde_with_macros", - "time", -] - -[[package]] -name = "serde_with_macros" -version = "3.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de90945e6565ce0d9a25098082ed4ee4002e047cb59892c318d66821e14bb30f" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn 2.0.104", -] - [[package]] name = "serdect" version = "0.2.0" diff --git a/pallets/subtensor/Cargo.toml b/pallets/subtensor/Cargo.toml index 44d873c8a6..a63f63b599 100644 --- a/pallets/subtensor/Cargo.toml +++ b/pallets/subtensor/Cargo.toml @@ -27,17 +27,12 @@ frame-system.workspace = true sp-io.workspace = true serde = { workspace = true, features = ["derive"] } serde_json.workspace = true -serde-tuple-vec-map.workspace = true -serde_bytes = { workspace = true, features = ["alloc"] } -serde_with = { workspace = true, features = ["macros"] } sp-runtime.workspace = true sp-std.workspace = true libsecp256k1.workspace = true log.workspace = true substrate-fixed.workspace = true -pallet-transaction-payment.workspace = true pallet-utility.workspace = true -ndarray.workspace = true hex.workspace = true share-pool.workspace = true safe-math.workspace = true @@ -52,13 +47,11 @@ pallet-membership.workspace = true hex-literal.workspace = true num-traits = { workspace = true, features = ["libm"] } tle.workspace = true -ark-bls12-381 = { workspace = true, features = ["curve"] } ark-serialize = { workspace = true, features = ["derive"] } w3f-bls.workspace = true sha2.workspace = true rand_chacha.workspace = true pallet-crowdloan.workspace = true -pallet-proxy.workspace = true [dev-dependencies] pallet-balances = { workspace = true, features = ["std"] } @@ -75,7 +68,6 @@ pallet-preimage.workspace = true [features] std = [ - "ark-bls12-381/std", "ark-serialize/std", "codec/std", "frame-benchmarking/std", @@ -84,7 +76,6 @@ std = [ "hex/std", "libsecp256k1/std", "log/std", - "ndarray/std", "num-traits/std", "pallet-balances/std", "pallet-collective/std", @@ -93,15 +84,12 @@ std = [ "pallet-preimage/std", "pallet-scheduler/std", "pallet-subtensor-swap/std", - "pallet-transaction-payment/std", "pallet-utility/std", "rand_chacha/std", "safe-math/std", "scale-info/std", "serde/std", - "serde_bytes/std", "serde_json/std", - "serde_with/std", "sha2/std", "share-pool/std", "sp-core/std", @@ -121,7 +109,6 @@ std = [ "sha2/std", "share-pool/std", "subtensor-runtime-common/std", - "pallet-proxy/std", "pallet-crowdloan/std", "runtime-common/std" ] @@ -137,8 +124,6 @@ runtime-benchmarks = [ "pallet-preimage/runtime-benchmarks", "pallet-scheduler/runtime-benchmarks", "pallet-subtensor-swap/runtime-benchmarks", - "pallet-transaction-payment/runtime-benchmarks", - "pallet-proxy/runtime-benchmarks", "pallet-crowdloan/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "sp-runtime/runtime-benchmarks", @@ -151,12 +136,10 @@ try-runtime = [ "pallet-membership/try-runtime", "pallet-preimage/try-runtime", "pallet-scheduler/try-runtime", - "pallet-transaction-payment/try-runtime", "pallet-utility/try-runtime", "sp-runtime/try-runtime", "pallet-collective/try-runtime", "pallet-drand/try-runtime", - "pallet-proxy/try-runtime", "pallet-crowdloan/try-runtime", "runtime-common/try-runtime" ]