diff --git a/Cargo.lock b/Cargo.lock index 7d65c7aac9..287aa67395 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -326,26 +326,6 @@ dependencies = [ "ark-std 0.4.0", ] -[[package]] -name = "ark-crypto-primitives" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3a13b34da09176a8baba701233fdffbaa7c1b1192ce031a3da4e55ce1f1a56" -dependencies = [ - "ark-ec 0.4.2", - "ark-ff 0.4.2", - "ark-r1cs-std", - "ark-relations", - "ark-serialize 0.4.2", - "ark-snark", - "ark-std 0.4.0", - "blake2 0.10.6", - "derivative", - "digest 0.10.7", - "sha2 0.10.9", - "tracing", -] - [[package]] name = "ark-ec" version = "0.4.2" @@ -614,35 +594,6 @@ dependencies = [ "hashbrown 0.15.4", ] -[[package]] -name = "ark-r1cs-std" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de1d1472e5cb020cb3405ce2567c91c8d43f21b674aef37b0202f5c3304761db" -dependencies = [ - "ark-ec 0.4.2", - "ark-ff 0.4.2", - "ark-relations", - "ark-std 0.4.0", - "derivative", - "num-bigint", - "num-integer", - "num-traits", - "tracing", -] - -[[package]] -name = "ark-relations" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00796b6efc05a3f48225e59cb6a2cda78881e7c390872d5786aaf112f31fb4f0" -dependencies = [ - "ark-ff 0.4.2", - "ark-std 0.4.0", - "tracing", - "tracing-subscriber 0.2.25", -] - [[package]] name = "ark-scale" version = "0.0.11" @@ -728,18 +679,6 @@ dependencies = [ "syn 2.0.104", ] -[[package]] -name = "ark-snark" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84d3cc6833a335bb8a600241889ead68ee89a3cf8448081fb7694c0fe503da63" -dependencies = [ - "ark-ff 0.4.2", - "ark-relations", - "ark-serialize 0.4.2", - "ark-std 0.4.0", -] - [[package]] name = "ark-std" version = "0.3.0" @@ -6221,7 +6160,7 @@ dependencies = [ "generator", "scoped-tls", "tracing", - "tracing-subscriber 0.3.19", + "tracing-subscriber", ] [[package]] @@ -7343,8 +7282,6 @@ dependencies = [ "pallet-scheduler", "pallet-subtensor", "pallet-subtensor-swap", - "parity-scale-codec", - "scale-info", "sp-consensus-aura", "sp-consensus-grandpa", "sp-core", @@ -7354,9 +7291,7 @@ dependencies = [ "sp-tracing 17.1.0", "sp-weights", "substrate-fixed", - "subtensor-macros", "subtensor-runtime-common", - "subtensor-swap-interface", ] [[package]] @@ -7549,7 +7484,6 @@ name = "pallet-commitments" version = "4.0.0-dev" dependencies = [ "ark-serialize 0.4.2", - "enumflags2", "frame-benchmarking", "frame-support", "frame-system", @@ -7557,7 +7491,6 @@ dependencies = [ "log", "pallet-balances", "pallet-drand", - "pallet-subtensor", "parity-scale-codec", "rand_chacha 0.3.1", "scale-info", @@ -7595,11 +7528,7 @@ dependencies = [ name = "pallet-drand" version = "0.0.1" dependencies = [ - "anyhow", - "ark-bls12-381 0.4.0", - "ark-crypto-primitives", "ark-ec 0.4.2", - "ark-ff 0.4.2", "ark-scale 0.0.11", "ark-serialize 0.4.2", "ark-std 0.4.0", @@ -8198,11 +8127,8 @@ dependencies = [ "frame-support", "frame-system", "log", - "pallet-subtensor-swap-runtime-api", "parity-scale-codec", "safe-math", - "scale-info", - "serde", "sp-arithmetic", "sp-core", "sp-io", @@ -8226,7 +8152,6 @@ dependencies = [ "sp-blockchain", "sp-runtime", "subtensor-runtime-common", - "subtensor-swap-interface", ] [[package]] @@ -8234,13 +8159,9 @@ name = "pallet-subtensor-swap-runtime-api" version = "1.0.0" dependencies = [ "frame-support", - "parity-scale-codec", - "scale-info", "sp-api", - "sp-std 14.0.0 (git+https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-stable2503-6)", "subtensor-macros", "subtensor-runtime-common", - "subtensor-swap-interface", ] [[package]] @@ -8352,7 +8273,6 @@ dependencies = [ "pallet-root-testing", "pallet-timestamp", "parity-scale-codec", - "scale-info", "sp-core", "sp-io", "sp-runtime", @@ -11485,7 +11405,7 @@ dependencies = [ "thiserror 1.0.69", "tracing", "tracing-log", - "tracing-subscriber 0.3.19", + "tracing-subscriber", ] [[package]] @@ -13176,7 +13096,7 @@ dependencies = [ "regex", "tracing", "tracing-core", - "tracing-subscriber 0.3.19", + "tracing-subscriber", ] [[package]] @@ -13187,7 +13107,7 @@ dependencies = [ "parity-scale-codec", "tracing", "tracing-core", - "tracing-subscriber 0.3.19", + "tracing-subscriber", ] [[package]] @@ -13846,8 +13766,6 @@ name = "subtensor-swap-interface" version = "0.1.0" dependencies = [ "frame-support", - "parity-scale-codec", - "scale-info", "substrate-fixed", "subtensor-runtime-common", ] @@ -13870,7 +13788,6 @@ dependencies = [ "frame-executive", "frame-support", "frame-system", - "log", "pallet-balances", "pallet-crowdloan", "pallet-drand", @@ -13881,7 +13798,6 @@ dependencies = [ "pallet-subtensor", "pallet-subtensor-swap", "pallet-transaction-payment", - "parity-scale-codec", "scale-info", "smallvec", "sp-consensus-aura", @@ -14631,15 +14547,6 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "tracing-subscriber" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71" -dependencies = [ - "tracing-core", -] - [[package]] name = "tracing-subscriber" version = "0.3.19" diff --git a/pallets/admin-utils/Cargo.toml b/pallets/admin-utils/Cargo.toml index 61cdba4cbf..9cd163ca18 100644 --- a/pallets/admin-utils/Cargo.toml +++ b/pallets/admin-utils/Cargo.toml @@ -16,9 +16,6 @@ workspace = true targets = ["x86_64-unknown-linux-gnu"] [dependencies] -subtensor-macros.workspace = true -codec = { workspace = true, features = ["derive"] } -scale-info = { workspace = true, features = ["derive"] } frame-benchmarking = { workspace = true, optional = true } frame-support.workspace = true frame-system.workspace = true @@ -30,7 +27,6 @@ substrate-fixed.workspace = true pallet-evm-chain-id.workspace = true pallet-drand.workspace = true sp-consensus-grandpa.workspace = true -subtensor-swap-interface.workspace = true subtensor-runtime-common.workspace = true [dev-dependencies] @@ -49,7 +45,6 @@ pallet-preimage.workspace = true [features] default = ["std"] std = [ - "codec/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", @@ -63,7 +58,6 @@ std = [ "pallet-subtensor/std", "pallet-crowdloan/std", "pallet-preimage/std", - "scale-info/std", "sp-consensus-aura/std", "sp-consensus-grandpa/std", "sp-core/std", @@ -73,7 +67,6 @@ std = [ "sp-tracing/std", "sp-weights/std", "substrate-fixed/std", - "subtensor-swap-interface/std", "subtensor-runtime-common/std", ] runtime-benchmarks = [ diff --git a/pallets/commitments/Cargo.toml b/pallets/commitments/Cargo.toml index bedc0d945c..38dc8825b6 100644 --- a/pallets/commitments/Cargo.toml +++ b/pallets/commitments/Cargo.toml @@ -24,7 +24,6 @@ frame-support.workspace = true frame-system.workspace = true sp-runtime.workspace = true sp-std.workspace = true -enumflags2.workspace = true pallet-drand.workspace = true tle.workspace = true @@ -36,7 +35,6 @@ sha2.workspace = true log.workspace = true -pallet-subtensor.workspace = true subtensor-runtime-common.workspace = true [dev-dependencies] @@ -49,7 +47,6 @@ default = ["std"] std = [ "ark-serialize/std", "codec/std", - "enumflags2/std", "frame-benchmarking?/std", "frame-support/std", "frame-system/std", @@ -57,7 +54,6 @@ std = [ "log/std", "pallet-balances/std", "pallet-drand/std", - "pallet-subtensor/std", "rand_chacha/std", "scale-info/std", "sha2/std", @@ -76,7 +72,6 @@ runtime-benchmarks = [ "sp-runtime/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-drand/runtime-benchmarks", - "pallet-subtensor/runtime-benchmarks", ] try-runtime = [ "frame-support/try-runtime", @@ -84,5 +79,4 @@ try-runtime = [ "pallet-balances/try-runtime", "sp-runtime/try-runtime", "pallet-drand/try-runtime", - "pallet-subtensor/try-runtime", ] diff --git a/pallets/drand/Cargo.toml b/pallets/drand/Cargo.toml index 269e993d02..5d643a81eb 100644 --- a/pallets/drand/Cargo.toml +++ b/pallets/drand/Cargo.toml @@ -19,7 +19,6 @@ serde_json.workspace = true log.workspace = true hex = { workspace = true, features = ["serde"] } sha2.workspace = true -anyhow.workspace = true # frame deps frame-benchmarking = { workspace = true, optional = true } frame-support.workspace = true @@ -30,12 +29,9 @@ sp-runtime.workspace = true sp-std.workspace = true # arkworks dependencies sp-ark-bls12-381.workspace = true -ark-bls12-381 = { workspace = true, features = ["curve"] } ark-serialize = { workspace = true, features = ["derive"] } -ark-ff.workspace = true ark-ec.workspace = true ark-std.workspace = true -ark-crypto-primitives = { workspace = true, features = ["r1cs", "snark"] } ark-scale = { workspace = true, features = ["hazmat"] } w3f-bls.workspace = true sp-keyring.workspace = true @@ -65,16 +61,12 @@ std = [ "serde_json/std", "hex/std", "sp-ark-bls12-381/std", - "ark-bls12-381/std", "ark-serialize/std", - "ark-ff/std", "ark-ec/std", "ark-std/std", - "ark-crypto-primitives/std", "ark-scale/std", "w3f-bls/std", "tle/std", - "anyhow/std", ] runtime-benchmarks = [ "frame-benchmarking/runtime-benchmarks", diff --git a/pallets/swap-interface/Cargo.toml b/pallets/swap-interface/Cargo.toml index a5ae9ac75f..577bc08a2f 100644 --- a/pallets/swap-interface/Cargo.toml +++ b/pallets/swap-interface/Cargo.toml @@ -4,9 +4,7 @@ version = "0.1.0" edition.workspace = true [dependencies] -codec = { workspace = true, features = ["derive"] } frame-support.workspace = true -scale-info.workspace = true substrate-fixed.workspace = true subtensor-runtime-common.workspace = true @@ -16,9 +14,7 @@ workspace = true [features] default = ["std"] std = [ - "codec/std", "frame-support/std", - "scale-info/std", "substrate-fixed/std", "subtensor-runtime-common/std", ] diff --git a/pallets/swap/Cargo.toml b/pallets/swap/Cargo.toml index a013b8468e..9c69f01a99 100644 --- a/pallets/swap/Cargo.toml +++ b/pallets/swap/Cargo.toml @@ -12,8 +12,6 @@ frame-support.workspace = true frame-system.workspace = true log.workspace = true safe-math.workspace = true -scale-info = { workspace = true, features = ["derive"] } -serde = { workspace = true, optional = true } sp-arithmetic.workspace = true sp-core.workspace = true sp-io.workspace = true @@ -21,7 +19,6 @@ sp-runtime.workspace = true sp-std.workspace = true substrate-fixed.workspace = true -pallet-subtensor-swap-runtime-api.workspace = true subtensor-macros.workspace = true subtensor-runtime-common.workspace = true subtensor-swap-interface.workspace = true @@ -41,10 +38,7 @@ std = [ "frame-support/std", "frame-system/std", "log/std", - "pallet-subtensor-swap-runtime-api/std", "safe-math/std", - "scale-info/std", - "serde/std", "sp-arithmetic/std", "sp-core/std", "sp-io/std", diff --git a/pallets/swap/rpc/Cargo.toml b/pallets/swap/rpc/Cargo.toml index 88f45c4391..3fc0c9d08e 100644 --- a/pallets/swap/rpc/Cargo.toml +++ b/pallets/swap/rpc/Cargo.toml @@ -12,7 +12,6 @@ sp-blockchain.workspace = true sp-runtime.workspace = true pallet-subtensor-swap-runtime-api.workspace = true subtensor-runtime-common = { workspace = true, default-features = false } -subtensor-swap-interface.workspace = true [features] default = ["std"] @@ -22,5 +21,4 @@ std = [ "sp-api/std", "sp-runtime/std", "subtensor-runtime-common/std", - "subtensor-swap-interface/std", ] diff --git a/pallets/swap/runtime-api/Cargo.toml b/pallets/swap/runtime-api/Cargo.toml index 042875fdd0..12d8a6ed67 100644 --- a/pallets/swap/runtime-api/Cargo.toml +++ b/pallets/swap/runtime-api/Cargo.toml @@ -5,23 +5,15 @@ description = "Runtime API for the Swap pallet" edition.workspace = true [dependencies] -codec = { workspace = true, features = ["derive"] } frame-support.workspace = true -scale-info.workspace = true sp-api.workspace = true -sp-std.workspace = true subtensor-macros.workspace = true subtensor-runtime-common = { workspace = true, default-features = false } -subtensor-swap-interface.workspace = true [features] default = ["std"] std = [ - "codec/std", "frame-support/std", - "scale-info/std", "sp-api/std", - "sp-std/std", "subtensor-runtime-common/std", - "subtensor-swap-interface/std" ] diff --git a/pallets/transaction-fee/Cargo.toml b/pallets/transaction-fee/Cargo.toml index b5f08ac7c3..de20bd4574 100644 --- a/pallets/transaction-fee/Cargo.toml +++ b/pallets/transaction-fee/Cargo.toml @@ -4,10 +4,8 @@ version = "0.1.0" edition.workspace = true [dependencies] -codec.workspace = true frame-support.workspace = true frame-system.workspace = true -log.workspace = true pallet-balances = { workspace = true, default-features = false } pallet-subtensor.workspace = true pallet-subtensor-swap.workspace = true @@ -41,11 +39,9 @@ workspace = true [features] default = ["std"] std = [ - "codec/std", "frame-executive/std", "frame-support/std", "frame-system/std", - "log/std", "pallet-balances/std", "pallet-crowdloan/std", "pallet-drand/std", diff --git a/pallets/utility/Cargo.toml b/pallets/utility/Cargo.toml index 01ecd42166..fe9ee9b638 100644 --- a/pallets/utility/Cargo.toml +++ b/pallets/utility/Cargo.toml @@ -20,7 +20,6 @@ sp-core.workspace = true sp-io.workspace = true sp-runtime.workspace = true codec = { workspace = true, features = ["derive"] } -scale-info = { workspace = true, features = ["derive"] } subtensor-macros.workspace = true [dev-dependencies] @@ -37,7 +36,6 @@ std = [ "frame-benchmarking?/std", "frame-support/std", "frame-system/std", - "scale-info/std", "sp-core/std", "sp-io/std", "sp-runtime/std",