Remove kusama and polkadot runtime crates (#1731)

This pull request is removing the Kusama and Polkadot runtime crates. As
still some crates dependent on the runtime crates, this pull request is
doing some more changes.

- It removes the `hostperfcheck` CLI command. This CLI command could
compare the current node against the standard hardware by doing some
checks. Later we added the hardware benchmark feature to Substrate. This
hardware benchmark is running on every node startup and prints a warning
if the current node is too slow. This makes this CLI command a duplicate
that was also depending on the kusama runtime.

- The pull request is removing the emulated integration tests that were
requiring the Kusama or Polkadot runtime crates.
This commit is contained in:
Bastian Köcher
2023-09-29 09:54:11 +02:00
committed by GitHub
parent 4902db2198
commit bf90cb0b73
202 changed files with 49 additions and 40336 deletions
Generated
-356
View File
@@ -692,30 +692,6 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9"
[[package]]
name = "asset-hub-kusama-integration-tests"
version = "1.0.0"
dependencies = [
"assert_matches",
"asset-hub-kusama-runtime",
"frame-support",
"frame-system",
"integration-tests-common",
"pallet-asset-conversion",
"pallet-assets",
"pallet-balances",
"pallet-xcm",
"parachains-common",
"parity-scale-codec",
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-runtime",
"polkadot-runtime-parachains",
"sp-runtime",
"staging-xcm",
"xcm-emulator",
]
[[package]]
name = "asset-hub-kusama-runtime"
version = "0.9.420"
@@ -738,7 +714,6 @@ dependencies = [
"frame-system-rpc-runtime-api",
"frame-try-runtime",
"hex-literal",
"kusama-runtime-constants",
"log",
"pallet-asset-conversion",
"pallet-asset-conversion-tx-payment",
@@ -790,29 +765,6 @@ dependencies = [
"substrate-wasm-builder",
]
[[package]]
name = "asset-hub-polkadot-integration-tests"
version = "1.0.0"
dependencies = [
"asset-hub-kusama-runtime",
"frame-support",
"frame-system",
"integration-tests-common",
"pallet-asset-conversion",
"pallet-assets",
"pallet-balances",
"pallet-xcm",
"parachains-common",
"parity-scale-codec",
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-runtime",
"polkadot-runtime-parachains",
"sp-runtime",
"staging-xcm",
"xcm-emulator",
]
[[package]]
name = "asset-hub-polkadot-runtime"
version = "0.9.420"
@@ -860,7 +812,6 @@ dependencies = [
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-runtime-common",
"polkadot-runtime-constants",
"scale-info",
"smallvec",
"sp-api",
@@ -900,7 +851,6 @@ dependencies = [
"parity-scale-codec",
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-runtime",
"polkadot-runtime-parachains",
"sp-runtime",
"staging-xcm",
@@ -1835,7 +1785,6 @@ dependencies = [
"frame-system-rpc-runtime-api",
"frame-try-runtime",
"hex-literal",
"kusama-runtime-constants",
"log",
"pallet-aura",
"pallet-authorship",
@@ -1918,7 +1867,6 @@ dependencies = [
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-runtime-common",
"polkadot-runtime-constants",
"scale-info",
"serde",
"smallvec",
@@ -1957,7 +1905,6 @@ dependencies = [
"parity-scale-codec",
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-runtime",
"polkadot-runtime-parachains",
"staging-xcm",
"xcm-emulator",
@@ -2560,32 +2507,6 @@ dependencies = [
"unicode-width",
]
[[package]]
name = "collectives-polkadot-integration-tests"
version = "0.1.0"
dependencies = [
"collectives-polkadot-runtime",
"cumulus-pallet-parachain-system",
"cumulus-pallet-xcmp-queue",
"frame-support",
"integration-tests-common",
"pallet-assets",
"pallet-balances",
"pallet-core-fellowship",
"pallet-salary",
"pallet-xcm",
"parachains-common",
"parity-scale-codec",
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-runtime",
"polkadot-runtime-parachains",
"sp-core",
"sp-runtime",
"staging-xcm",
"xcm-emulator",
]
[[package]]
name = "collectives-polkadot-runtime"
version = "1.0.0"
@@ -2634,7 +2555,6 @@ dependencies = [
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-runtime-common",
"polkadot-runtime-constants",
"scale-info",
"smallvec",
"sp-api",
@@ -2824,7 +2744,6 @@ dependencies = [
"frame-system-rpc-runtime-api",
"frame-try-runtime",
"hex-literal",
"kusama-runtime-constants",
"log",
"pallet-aura",
"pallet-authorship",
@@ -6379,7 +6298,6 @@ dependencies = [
"cumulus-pallet-xcmp-queue",
"cumulus-primitives-core",
"frame-support",
"kusama-runtime-constants",
"pallet-assets",
"pallet-bridge-messages",
"pallet-im-online",
@@ -6393,8 +6311,6 @@ dependencies = [
"polkadot-core-primitives",
"polkadot-parachain-primitives",
"polkadot-primitives",
"polkadot-runtime",
"polkadot-runtime-constants",
"polkadot-runtime-parachains",
"polkadot-service",
"rococo-runtime",
@@ -6405,7 +6321,6 @@ dependencies = [
"sp-consensus-beefy",
"sp-core",
"sp-runtime",
"staging-kusama-runtime",
"staging-xcm",
"westend-runtime",
"westend-runtime-constants",
@@ -6836,19 +6751,6 @@ dependencies = [
"substrate-wasm-builder",
]
[[package]]
name = "kusama-runtime-constants"
version = "1.0.0"
dependencies = [
"frame-support",
"polkadot-primitives",
"polkadot-runtime-common",
"smallvec",
"sp-core",
"sp-runtime",
"sp-weights",
]
[[package]]
name = "kvdb"
version = "0.13.0"
@@ -10952,7 +10854,6 @@ dependencies = [
"cumulus-primitives-utility",
"frame-support",
"frame-system",
"kusama-runtime-constants",
"log",
"num-traits",
"pallet-asset-tx-payment",
@@ -10963,7 +10864,6 @@ dependencies = [
"parity-scale-codec",
"polkadot-core-primitives",
"polkadot-primitives",
"polkadot-runtime-constants",
"rococo-runtime-constants",
"scale-info",
"smallvec",
@@ -11579,7 +11479,6 @@ dependencies = [
"futures",
"log",
"polkadot-node-metrics",
"polkadot-performance-test",
"polkadot-service",
"pyroscope",
"pyroscope_pprofrs",
@@ -12484,23 +12383,6 @@ dependencies = [
"sp-std",
]
[[package]]
name = "polkadot-performance-test"
version = "1.0.0"
dependencies = [
"env_logger 0.9.3",
"log",
"polkadot-erasure-coding",
"polkadot-node-core-pvf-prepare-worker",
"polkadot-node-primitives",
"polkadot-primitives",
"quote",
"sc-executor-common",
"sp-maybe-compressed-blob",
"staging-kusama-runtime",
"thiserror",
]
[[package]]
name = "polkadot-primitives"
version = "1.0.0"
@@ -12569,111 +12451,6 @@ dependencies = [
"substrate-state-trie-migration-rpc",
]
[[package]]
name = "polkadot-runtime"
version = "1.0.0"
dependencies = [
"bitvec",
"frame-benchmarking",
"frame-election-provider-support",
"frame-executive",
"frame-remote-externalities",
"frame-support",
"frame-system",
"frame-system-benchmarking",
"frame-system-rpc-runtime-api",
"frame-try-runtime",
"hex-literal",
"log",
"pallet-authority-discovery",
"pallet-authorship",
"pallet-babe",
"pallet-bags-list",
"pallet-balances",
"pallet-bounties",
"pallet-child-bounties",
"pallet-collective",
"pallet-conviction-voting",
"pallet-democracy",
"pallet-election-provider-multi-phase",
"pallet-election-provider-support-benchmarking",
"pallet-elections-phragmen",
"pallet-fast-unstake",
"pallet-grandpa",
"pallet-identity",
"pallet-im-online",
"pallet-indices",
"pallet-membership",
"pallet-message-queue",
"pallet-multisig",
"pallet-nomination-pools",
"pallet-nomination-pools-benchmarking",
"pallet-nomination-pools-runtime-api",
"pallet-offences",
"pallet-offences-benchmarking",
"pallet-preimage",
"pallet-proxy",
"pallet-referenda",
"pallet-scheduler",
"pallet-session",
"pallet-session-benchmarking",
"pallet-staking",
"pallet-staking-reward-curve",
"pallet-staking-runtime-api",
"pallet-timestamp",
"pallet-tips",
"pallet-transaction-payment",
"pallet-transaction-payment-rpc-runtime-api",
"pallet-treasury",
"pallet-utility",
"pallet-vesting",
"pallet-whitelist",
"pallet-xcm",
"pallet-xcm-benchmarks",
"parity-scale-codec",
"polkadot-primitives",
"polkadot-runtime-common",
"polkadot-runtime-constants",
"polkadot-runtime-parachains",
"rustc-hex",
"scale-info",
"separator",
"serde",
"serde_derive",
"serde_json",
"smallvec",
"sp-api",
"sp-arithmetic",
"sp-authority-discovery",
"sp-block-builder",
"sp-consensus-babe",
"sp-consensus-beefy",
"sp-core",
"sp-genesis-builder",
"sp-inherents",
"sp-io",
"sp-keyring",
"sp-mmr-primitives",
"sp-npos-elections",
"sp-offchain",
"sp-runtime",
"sp-session",
"sp-staking",
"sp-std",
"sp-storage",
"sp-tracing",
"sp-transaction-pool",
"sp-trie",
"sp-version",
"staging-xcm",
"staging-xcm-builder",
"staging-xcm-executor",
"static_assertions",
"substrate-wasm-builder",
"tiny-keccak",
"tokio",
]
[[package]]
name = "polkadot-runtime-common"
version = "1.0.0"
@@ -12725,19 +12502,6 @@ dependencies = [
"static_assertions",
]
[[package]]
name = "polkadot-runtime-constants"
version = "1.0.0"
dependencies = [
"frame-support",
"polkadot-primitives",
"polkadot-runtime-common",
"smallvec",
"sp-core",
"sp-runtime",
"sp-weights",
]
[[package]]
name = "polkadot-runtime-metrics"
version = "1.0.0"
@@ -13157,9 +12921,7 @@ version = "1.0.0"
dependencies = [
"clap 4.4.4",
"generate-bags",
"polkadot-runtime",
"sp-io",
"staging-kusama-runtime",
"westend-runtime",
]
@@ -13919,14 +13681,10 @@ version = "1.0.0"
dependencies = [
"clap 4.4.4",
"frame-system",
"kusama-runtime-constants",
"log",
"pallet-bags-list-remote-tests",
"polkadot-runtime",
"polkadot-runtime-constants",
"sp-core",
"sp-tracing",
"staging-kusama-runtime",
"tokio",
"westend-runtime",
"westend-runtime-constants",
@@ -17703,120 +17461,6 @@ version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
[[package]]
name = "staging-kusama-runtime"
version = "1.0.0"
dependencies = [
"binary-merkle-tree",
"bitvec",
"frame-benchmarking",
"frame-election-provider-support",
"frame-executive",
"frame-remote-externalities",
"frame-support",
"frame-system",
"frame-system-benchmarking",
"frame-system-rpc-runtime-api",
"frame-try-runtime",
"hex-literal",
"kusama-runtime-constants",
"log",
"pallet-authority-discovery",
"pallet-authorship",
"pallet-babe",
"pallet-bags-list",
"pallet-balances",
"pallet-beefy",
"pallet-beefy-mmr",
"pallet-bounties",
"pallet-child-bounties",
"pallet-collective",
"pallet-conviction-voting",
"pallet-democracy",
"pallet-election-provider-multi-phase",
"pallet-election-provider-support-benchmarking",
"pallet-elections-phragmen",
"pallet-fast-unstake",
"pallet-grandpa",
"pallet-identity",
"pallet-im-online",
"pallet-indices",
"pallet-membership",
"pallet-message-queue",
"pallet-mmr",
"pallet-multisig",
"pallet-nis",
"pallet-nomination-pools",
"pallet-nomination-pools-benchmarking",
"pallet-nomination-pools-runtime-api",
"pallet-offences",
"pallet-offences-benchmarking",
"pallet-preimage",
"pallet-proxy",
"pallet-ranked-collective",
"pallet-recovery",
"pallet-referenda",
"pallet-scheduler",
"pallet-session",
"pallet-session-benchmarking",
"pallet-society",
"pallet-staking",
"pallet-staking-runtime-api",
"pallet-state-trie-migration",
"pallet-timestamp",
"pallet-tips",
"pallet-transaction-payment",
"pallet-transaction-payment-rpc-runtime-api",
"pallet-treasury",
"pallet-utility",
"pallet-vesting",
"pallet-whitelist",
"pallet-xcm",
"pallet-xcm-benchmarks",
"parity-scale-codec",
"polkadot-primitives",
"polkadot-runtime-common",
"polkadot-runtime-parachains",
"rustc-hex",
"scale-info",
"separator",
"serde",
"serde_derive",
"serde_json",
"smallvec",
"sp-api",
"sp-application-crypto",
"sp-arithmetic",
"sp-authority-discovery",
"sp-block-builder",
"sp-consensus-babe",
"sp-consensus-beefy",
"sp-core",
"sp-genesis-builder",
"sp-inherents",
"sp-io",
"sp-keyring",
"sp-mmr-primitives",
"sp-npos-elections",
"sp-offchain",
"sp-runtime",
"sp-session",
"sp-staking",
"sp-std",
"sp-storage",
"sp-tracing",
"sp-transaction-pool",
"sp-trie",
"sp-version",
"staging-xcm",
"staging-xcm-builder",
"staging-xcm-executor",
"static_assertions",
"substrate-wasm-builder",
"tiny-keccak",
"tokio",
]
[[package]]
name = "staging-xcm"
version = "1.0.0"