From 5e8aecbe3587dceceb2090fb4bced9e3bf6191f1 Mon Sep 17 00:00:00 2001 From: Branislav Kontur Date: Sat, 13 Jan 2024 23:52:16 +0100 Subject: [PATCH] chore: remove unneeded deps with `cargo machete` for integration tests --- Cargo.lock | 37 ------------------- .../assets/asset-hub-kusama/Cargo.toml | 4 -- .../assets/asset-hub-polkadot/Cargo.toml | 5 --- integration-tests/emulated/chains/Cargo.toml | 16 -------- integration-tests/emulated/common/Cargo.toml | 16 -------- 5 files changed, 78 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e8f7675efe..d5ae02b891 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -424,7 +424,6 @@ dependencies = [ "asset-test-utils", "emulated-chains", "frame-support 27.0.0", - "frame-system 27.0.0", "integration-tests-common", "pallet-asset-conversion", "pallet-assets 28.0.0", @@ -433,9 +432,6 @@ dependencies = [ "pallet-xcm 6.0.0", "parachains-common 6.0.0", "parity-scale-codec", - "polkadot-core-primitives 6.0.0", - "polkadot-parachain-primitives 5.0.0", - "polkadot-runtime-parachains 6.0.0", "sp-runtime 30.0.1", "staging-kusama-runtime", "staging-xcm 6.0.0", @@ -535,19 +531,14 @@ dependencies = [ "asset-test-utils", "emulated-chains", "frame-support 27.0.0", - "frame-system 27.0.0", "integration-tests-common", - "pallet-asset-conversion", "pallet-assets 28.0.0", "pallet-balances 27.0.0", "pallet-message-queue 30.0.0", "pallet-xcm 6.0.0", "parachains-common 6.0.0", "parity-scale-codec", - "polkadot-core-primitives 6.0.0", - "polkadot-parachain-primitives 5.0.0", "polkadot-runtime", - "polkadot-runtime-parachains 6.0.0", "sp-runtime 30.0.1", "staging-xcm 6.0.0", "staging-xcm-executor 6.0.0", @@ -3222,29 +3213,16 @@ version = "1.0.0" dependencies = [ "asset-hub-kusama-runtime", "asset-hub-polkadot-runtime", - "asset-test-utils", - "bp-messages", "bridge-hub-kusama-runtime", "bridge-hub-polkadot-runtime", - "bridge-runtime-common", "collectives-polkadot-runtime", - "cumulus-pallet-dmp-queue 0.6.0", - "cumulus-pallet-parachain-system 0.6.0", - "cumulus-pallet-xcmp-queue 0.6.0", - "cumulus-primitives-core 0.6.0", "frame-support 27.0.0", "integration-tests-common", "kusama-runtime-constants", - "pallet-assets 28.0.0", - "pallet-balances 27.0.0", - "pallet-bridge-messages", "pallet-im-online", - "pallet-message-queue 30.0.0", "pallet-staking 27.0.0", - "pallet-xcm 6.0.0", "parachains-common 6.0.0", "penpal-runtime", - "polkadot-core-primitives 6.0.0", "polkadot-parachain-primitives 5.0.0", "polkadot-primitives 6.0.0", "polkadot-runtime", @@ -3257,7 +3235,6 @@ dependencies = [ "sp-core 27.0.0", "sp-runtime 30.0.1", "staging-kusama-runtime", - "staging-xcm 6.0.0", "xcm-emulator", ] @@ -4983,45 +4960,31 @@ dependencies = [ name = "integration-tests-common" version = "1.0.0" dependencies = [ - "asset-hub-kusama-runtime", - "asset-hub-polkadot-runtime", "asset-test-utils", "bp-messages", - "bridge-hub-kusama-runtime", - "bridge-hub-polkadot-runtime", "bridge-runtime-common", - "collectives-polkadot-runtime", "cumulus-pallet-dmp-queue 0.6.0", "cumulus-pallet-parachain-system 0.6.0", "cumulus-pallet-xcmp-queue 0.6.0", "cumulus-primitives-core 0.6.0", "frame-support 27.0.0", - "kusama-runtime-constants", "pallet-assets 28.0.0", "pallet-balances 27.0.0", "pallet-bridge-messages", "pallet-im-online", "pallet-message-queue 30.0.0", - "pallet-staking 27.0.0", "pallet-xcm 6.0.0", "parachains-common 6.0.0", "parity-scale-codec", "paste", - "penpal-runtime", - "polkadot-core-primitives 6.0.0", - "polkadot-parachain-primitives 5.0.0", "polkadot-primitives 6.0.0", - "polkadot-runtime", - "polkadot-runtime-constants", "polkadot-runtime-parachains 6.0.0", - "serde_json", "sp-authority-discovery 25.0.0", "sp-consensus-babe 0.31.0", "sp-consensus-beefy", "sp-consensus-grandpa 12.0.0", "sp-core 27.0.0", "sp-runtime 30.0.1", - "staging-kusama-runtime", "staging-xcm 6.0.0", "xcm-emulator", ] diff --git a/integration-tests/emulated/assets/asset-hub-kusama/Cargo.toml b/integration-tests/emulated/assets/asset-hub-kusama/Cargo.toml index c9c27af013..2e04e7ac4d 100644 --- a/integration-tests/emulated/assets/asset-hub-kusama/Cargo.toml +++ b/integration-tests/emulated/assets/asset-hub-kusama/Cargo.toml @@ -14,16 +14,12 @@ assert_matches = "1.5.0" # Substrate sp-runtime = { version = "30.0.1" } frame-support = { version = "27.0.0" } -frame-system = { version = "27.0.0" } pallet-assets = { version = "28.0.0" } pallet-balances = { version = "27.0.0" } pallet-asset-conversion = { version = "9.0.0" } pallet-message-queue = { version = "30.0.0" } # Polkadot -polkadot-core-primitives = { version = "6.0.0" } -polkadot-parachain-primitives = { version = "5.0.0" } -polkadot-runtime-parachains = { version = "6.0.0" } xcm = { package = "staging-xcm", version = "6.0.0" } xcm-executor = { package = "staging-xcm-executor", default-features = false, version = "6.0.0" } pallet-xcm = { version = "6.0.0" } diff --git a/integration-tests/emulated/assets/asset-hub-polkadot/Cargo.toml b/integration-tests/emulated/assets/asset-hub-polkadot/Cargo.toml index cf46d257bb..6b1f76c6cd 100644 --- a/integration-tests/emulated/assets/asset-hub-polkadot/Cargo.toml +++ b/integration-tests/emulated/assets/asset-hub-polkadot/Cargo.toml @@ -13,16 +13,11 @@ codec = { package = "parity-scale-codec", version = "3.6.9" } # Substrate sp-runtime = { version = "30.0.1" } frame-support = { version = "27.0.0" } -frame-system = { version = "27.0.0" } pallet-assets = { version = "28.0.0" } pallet-balances = { version = "27.0.0" } -pallet-asset-conversion = { version = "9.0.0" } pallet-message-queue = { version = "30.0.0" } # Polkadot -polkadot-core-primitives = { version = "6.0.0" } -polkadot-parachain-primitives = { version = "5.0.0" } -polkadot-runtime-parachains = { version = "6.0.0" } xcm = { package = "staging-xcm", version = "6.0.0" } xcm-executor = { package = "staging-xcm-executor", default-features = false, version = "6.0.0" } pallet-xcm = { version = "6.0.0" } diff --git a/integration-tests/emulated/chains/Cargo.toml b/integration-tests/emulated/chains/Cargo.toml index 079def0e4f..057e2b93f4 100644 --- a/integration-tests/emulated/chains/Cargo.toml +++ b/integration-tests/emulated/chains/Cargo.toml @@ -15,9 +15,6 @@ sp-runtime = { version = "30.0.1" } frame-support = { version = "27.0.0" } sp-core = { version = "27.0.0" } sp-consensus-babe = { version = "0.31.0" } -pallet-assets = { version = "28.0.0" } -pallet-balances = { version = "27.0.0" } -pallet-message-queue = { version = "30.0.0" } pallet-im-online = { version = "26.0.0" } pallet-staking = { version = "27.0.0" } beefy-primitives = { package = "sp-consensus-beefy", version = "12.0.0" } @@ -25,19 +22,11 @@ beefy-primitives = { package = "sp-consensus-beefy", version = "12.0.0" } # Polkadot polkadot-primitives = { version = "6.0.0" } polkadot-runtime-parachains = { version = "6.0.0" } -xcm = { package = "staging-xcm", version = "6.0.0" } -pallet-xcm = { version = "6.0.0" } -polkadot-core-primitives = { version = "6.0.0" } polkadot-parachain-primitives = { version = "5.0.0" } # Cumulus parachains-common = { version = "6.0.0" } -cumulus-primitives-core = { version = "0.6.0" } xcm-emulator = { version = "0.4.0" } -cumulus-pallet-xcmp-queue = { version = "0.6.0" } -cumulus-pallet-parachain-system = { features = ["parameterized-consensus-hook",] , version = "0.6.0" } -asset-test-utils = { version = "6.0.0" } -cumulus-pallet-dmp-queue = { version = "0.6.0" } penpal-runtime = { version = "0.13.0" } # Local runtimes @@ -52,8 +41,3 @@ bridge-hub-polkadot-runtime = { path = "../../../system-parachains/bridge-hubs/b bridge-hub-kusama-runtime = { path = "../../../system-parachains/bridge-hubs/bridge-hub-kusama" } # TODO: replace with `emulated-integration-tests-common@X.Y.Z` from `polkadot-sdk` integration-tests-common = { path = "../common" } - -# Bridges -bp-messages = { version = "0.6.0" } -pallet-bridge-messages = { version = "0.6.0" } -bridge-runtime-common = { version = "0.6.0" } diff --git a/integration-tests/emulated/common/Cargo.toml b/integration-tests/emulated/common/Cargo.toml index 6fec6173c0..e1c9c700b2 100644 --- a/integration-tests/emulated/common/Cargo.toml +++ b/integration-tests/emulated/common/Cargo.toml @@ -9,7 +9,6 @@ description = "Common resources for integration testing with xcm-emulator" [dependencies] codec = { package = "parity-scale-codec", version = "3.6.9" } paste = "1.0.14" -serde_json = "1.0.111" # Substrate grandpa-primitives = { package = "sp-consensus-grandpa", version = "12.0.0" } @@ -22,7 +21,6 @@ pallet-assets = { version = "28.0.0" } pallet-balances = { version = "27.0.0" } pallet-message-queue = { version = "30.0.0" } pallet-im-online = { version = "26.0.0" } -pallet-staking = { version = "27.0.0" } beefy-primitives = { package = "sp-consensus-beefy", version = "12.0.0" } # Polkadot @@ -30,8 +28,6 @@ polkadot-primitives = { version = "6.0.0" } polkadot-runtime-parachains = { version = "6.0.0" } xcm = { package = "staging-xcm", version = "6.0.0" } pallet-xcm = { version = "6.0.0" } -polkadot-core-primitives = { version = "6.0.0" } -polkadot-parachain-primitives = { version = "5.0.0" } # Cumulus parachains-common = { version = "6.0.0" } @@ -41,18 +37,6 @@ cumulus-pallet-xcmp-queue = { version = "0.6.0" } cumulus-pallet-parachain-system = { features = ["parameterized-consensus-hook",] , version = "0.6.0" } asset-test-utils = { version = "6.0.0" } cumulus-pallet-dmp-queue = { version = "0.6.0" } -penpal-runtime = { version = "0.13.0" } - -# Local runtimes -kusama-runtime = { package = "staging-kusama-runtime", path = "../../../relay/kusama" } -kusama-runtime-constants = { path = "../../../relay/kusama/constants" } -polkadot-runtime = { path = "../../../relay/polkadot" } -polkadot-runtime-constants = { path = "../../../relay/polkadot/constants" } -asset-hub-polkadot-runtime = { path = "../../../system-parachains/asset-hubs/asset-hub-polkadot" } -asset-hub-kusama-runtime = { path = "../../../system-parachains/asset-hubs/asset-hub-kusama" } -collectives-polkadot-runtime = { path = "../../../system-parachains/collectives/collectives-polkadot" } -bridge-hub-polkadot-runtime = { path = "../../../system-parachains/bridge-hubs/bridge-hub-polkadot" } -bridge-hub-kusama-runtime = { path = "../../../system-parachains/bridge-hubs/bridge-hub-kusama" } # Bridges bp-messages = { version = "0.6.0" }