From 6bcd6a01bbb6f2862f37001e1e39e2de6a902413 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Tue, 5 Dec 2023 20:40:23 +0100 Subject: [PATCH 01/37] Move XCM docs to rust docs --- Cargo.lock | 6230 ++++++++++------- Cargo.toml | 1 + polkadot/xcm/docs/Cargo.toml | 27 + .../xcm/docs/mermaid/location_hierarchy.mmd | 9 + polkadot/xcm/docs/mermaid/structure.mmd | 4 + .../xcm/docs/mermaid/universal_location.mmd | 3 + polkadot/xcm/docs/mermaid/usdt_location.mmd | 6 + polkadot/xcm/docs/src/cookbook.rs | 1 + polkadot/xcm/docs/src/fundamentals.rs | 141 + polkadot/xcm/docs/src/glossary.rs | 81 + polkadot/xcm/docs/src/guides/mod.rs | 7 + .../mock_message_queue.rs | 172 + .../src/guides/simple_configuration/mod.rs | 35 + .../guides/simple_configuration/parachain.rs | 29 + .../guides/simple_configuration/relaychain.rs | 1 + polkadot/xcm/docs/src/lib.rs | 40 + 16 files changed, 4250 insertions(+), 2537 deletions(-) create mode 100644 polkadot/xcm/docs/Cargo.toml create mode 100644 polkadot/xcm/docs/mermaid/location_hierarchy.mmd create mode 100644 polkadot/xcm/docs/mermaid/structure.mmd create mode 100644 polkadot/xcm/docs/mermaid/universal_location.mmd create mode 100644 polkadot/xcm/docs/mermaid/usdt_location.mmd create mode 100644 polkadot/xcm/docs/src/cookbook.rs create mode 100644 polkadot/xcm/docs/src/fundamentals.rs create mode 100644 polkadot/xcm/docs/src/glossary.rs create mode 100644 polkadot/xcm/docs/src/guides/mod.rs create mode 100644 polkadot/xcm/docs/src/guides/simple_configuration/mock_message_queue.rs create mode 100644 polkadot/xcm/docs/src/guides/simple_configuration/mod.rs create mode 100644 polkadot/xcm/docs/src/guides/simple_configuration/parachain.rs create mode 100644 polkadot/xcm/docs/src/guides/simple_configuration/relaychain.rs create mode 100644 polkadot/xcm/docs/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 10d279a305d5d..b31cfa1133807 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -737,12 +737,12 @@ dependencies = [ "asset-hub-rococo-runtime", "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support", + "frame-support 4.0.0-dev", "parachains-common", "rococo-emulated-chain", "serde_json", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -753,20 +753,20 @@ dependencies = [ "asset-hub-rococo-runtime", "asset-test-utils", "emulated-integration-tests-common", - "frame-support", + "frame-support 4.0.0-dev", "pallet-asset-conversion", "pallet-assets", - "pallet-balances", - "pallet-message-queue", + "pallet-balances 4.0.0-dev", + "pallet-message-queue 7.0.0-dev", "pallet-xcm", "parachains-common", "parity-scale-codec", "penpal-runtime", "rococo-runtime", "rococo-system-emulated-network", - "sp-runtime", - "staging-xcm", - "staging-xcm-executor", + "sp-runtime 24.0.0", + "staging-xcm 1.0.0", + "staging-xcm-executor 1.0.0", ] [[package]] @@ -786,10 +786,10 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -799,19 +799,19 @@ dependencies = [ "pallet-asset-conversion-tx-payment", "pallet-assets", "pallet-aura", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-collator-selection", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-multisig", "pallet-nft-fractionalization", "pallet-nfts", "pallet-nfts-runtime-api", "pallet-proxy", - "pallet-session", + "pallet-session 4.0.0-dev", "pallet-state-trie-migration", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-uniques", "pallet-utility", @@ -820,31 +820,31 @@ dependencies = [ "pallet-xcm-bridge-hub-router", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", "polkadot-runtime-common", "primitive-types", "rococo-runtime-constants", "scale-info", "smallvec", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version", - "sp-weights", + "sp-version 22.0.0", + "sp-weights 20.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", ] @@ -855,11 +855,11 @@ dependencies = [ "asset-hub-westend-runtime", "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support", + "frame-support 4.0.0-dev", "parachains-common", "serde_json", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "westend-emulated-chain", ] @@ -873,23 +873,23 @@ dependencies = [ "cumulus-pallet-dmp-queue", "cumulus-pallet-parachain-system", "emulated-integration-tests-common", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "pallet-asset-conversion", "pallet-asset-rate", "pallet-assets", - "pallet-balances", - "pallet-message-queue", + "pallet-balances 4.0.0-dev", + "pallet-message-queue 7.0.0-dev", "pallet-treasury", "pallet-xcm", "parachains-common", "parity-scale-codec", "penpal-runtime", "polkadot-runtime-common", - "sp-runtime", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "sp-runtime 24.0.0", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "westend-runtime", "westend-runtime-constants", "westend-system-emulated-network", @@ -912,10 +912,10 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -925,18 +925,18 @@ dependencies = [ "pallet-asset-conversion-tx-payment", "pallet-assets", "pallet-aura", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-collator-selection", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-multisig", "pallet-nft-fractionalization", "pallet-nfts", "pallet-nfts-runtime-api", "pallet-proxy", - "pallet-session", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-session 4.0.0-dev", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-uniques", "pallet-utility", @@ -945,29 +945,29 @@ dependencies = [ "pallet-xcm-bridge-hub-router", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", "polkadot-runtime-common", "primitive-types", "scale-info", "smallvec", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", "westend-runtime-constants", ] @@ -982,28 +982,28 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-test-relay-sproof-builder", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "hex-literal", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-collator-selection", - "pallet-session", + "pallet-session 4.0.0-dev", "pallet-xcm", "pallet-xcm-bridge-hub-router", "parachains-common", "parachains-runtimes-test-utils", "parity-scale-codec", - "polkadot-parachain-primitives", + "polkadot-parachain-primitives 1.0.0", "sp-consensus-aura", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", ] @@ -1012,7 +1012,7 @@ name = "assets-common" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "frame-support", + "frame-support 4.0.0-dev", "impl-trait-for-tuples", "log", "pallet-asset-conversion", @@ -1021,12 +1021,12 @@ dependencies = [ "parachains-common", "parity-scale-codec", "scale-info", - "sp-api", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", ] @@ -1307,8 +1307,8 @@ dependencies = [ "env_logger 0.9.3", "hash-db", "log", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -1547,7 +1547,7 @@ name = "bp-asset-hub-rococo" version = "0.1.0" dependencies = [ "bp-xcm-bridge-hub-router", - "frame-support", + "frame-support 4.0.0-dev", "parity-scale-codec", "scale-info", ] @@ -1557,7 +1557,7 @@ name = "bp-asset-hub-westend" version = "0.1.0" dependencies = [ "bp-xcm-bridge-hub-router", - "frame-support", + "frame-support 4.0.0-dev", "parity-scale-codec", "scale-info", ] @@ -1569,10 +1569,10 @@ dependencies = [ "bp-messages", "bp-polkadot-core", "bp-runtime", - "frame-support", - "frame-system", - "polkadot-primitives", - "sp-api", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "polkadot-primitives 1.0.0", + "sp-api 4.0.0-dev", "sp-std 8.0.0", ] @@ -1583,9 +1583,9 @@ dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", "bp-runtime", - "frame-support", - "sp-api", - "sp-runtime", + "frame-support 4.0.0-dev", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -1596,9 +1596,9 @@ dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", "bp-runtime", - "frame-support", - "sp-api", - "sp-runtime", + "frame-support 4.0.0-dev", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -1609,9 +1609,9 @@ dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", "bp-runtime", - "frame-support", - "sp-api", - "sp-runtime", + "frame-support 4.0.0-dev", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -1622,9 +1622,9 @@ dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", "bp-runtime", - "frame-support", - "sp-api", - "sp-runtime", + "frame-support 4.0.0-dev", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -1635,15 +1635,15 @@ dependencies = [ "bp-runtime", "bp-test-utils", "finality-grandpa", - "frame-support", + "frame-support 4.0.0-dev", "hex", "hex-literal", "parity-scale-codec", "scale-info", "serde", "sp-consensus-grandpa", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -1654,8 +1654,8 @@ dependencies = [ "bp-header-chain", "bp-polkadot-core", "bp-runtime", - "frame-support", - "sp-api", + "frame-support 4.0.0-dev", + "sp-api 4.0.0-dev", "sp-std 8.0.0", ] @@ -1665,13 +1665,13 @@ version = "0.1.0" dependencies = [ "bp-header-chain", "bp-runtime", - "frame-support", + "frame-support 4.0.0-dev", "hex", "hex-literal", "parity-scale-codec", "scale-info", "serde", - "sp-core", + "sp-core 21.0.0", "sp-std 8.0.0", ] @@ -1682,12 +1682,12 @@ dependencies = [ "bp-header-chain", "bp-polkadot-core", "bp-runtime", - "frame-support", + "frame-support 4.0.0-dev", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -1698,8 +1698,8 @@ dependencies = [ "bp-header-chain", "bp-polkadot-core", "bp-runtime", - "frame-support", - "sp-api", + "frame-support 4.0.0-dev", + "sp-api 4.0.0-dev", "sp-std 8.0.0", ] @@ -1711,12 +1711,12 @@ dependencies = [ "bp-messages", "bp-polkadot-core", "bp-runtime", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-api", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -1726,15 +1726,15 @@ version = "0.1.0" dependencies = [ "bp-messages", "bp-runtime", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "hex", "parity-scale-codec", "parity-util-mem", "scale-info", "serde", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -1744,12 +1744,12 @@ version = "0.1.0" dependencies = [ "bp-messages", "bp-runtime", - "frame-support", + "frame-support 4.0.0-dev", "hex", "hex-literal", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -1760,8 +1760,8 @@ dependencies = [ "bp-header-chain", "bp-polkadot-core", "bp-runtime", - "frame-support", - "sp-api", + "frame-support 4.0.0-dev", + "sp-api 4.0.0-dev", "sp-std 8.0.0", ] @@ -1769,8 +1769,8 @@ dependencies = [ name = "bp-runtime" version = "0.1.0" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "hash-db", "hex-literal", "impl-trait-for-tuples", @@ -1779,12 +1779,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-std 8.0.0", - "sp-trie", + "sp-trie 22.0.0", "trie-db", ] @@ -1799,12 +1799,12 @@ dependencies = [ "ed25519-dalek", "finality-grandpa", "parity-scale-codec", - "sp-application-crypto", + "sp-application-crypto 23.0.0", "sp-consensus-grandpa", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-trie", + "sp-trie 22.0.0", ] [[package]] @@ -1814,8 +1814,8 @@ dependencies = [ "bp-header-chain", "bp-polkadot-core", "bp-runtime", - "frame-support", - "sp-api", + "frame-support 4.0.0-dev", + "sp-api 4.0.0-dev", "sp-std 8.0.0", ] @@ -1825,8 +1825,8 @@ version = "0.1.0" dependencies = [ "parity-scale-codec", "scale-info", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -1836,11 +1836,11 @@ dependencies = [ "bridge-hub-rococo-runtime", "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support", + "frame-support 4.0.0-dev", "parachains-common", "serde_json", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -1853,17 +1853,17 @@ dependencies = [ "cumulus-pallet-dmp-queue", "cumulus-pallet-xcmp-queue", "emulated-integration-tests-common", - "frame-support", + "frame-support 4.0.0-dev", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-bridge-messages", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-xcm", "parachains-common", "parity-scale-codec", "rococo-westend-system-emulated-network", - "staging-xcm", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-executor 1.0.0", ] [[package]] @@ -1891,60 +1891,60 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-aura", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-bridge-grandpa", "pallet-bridge-messages", "pallet-bridge-parachains", "pallet-bridge-relayers", "pallet-collator-selection", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-multisig", - "pallet-session", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-session 4.0.0-dev", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-utility", "pallet-xcm", "pallet-xcm-benchmarks", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", "polkadot-runtime-common", "rococo-runtime-constants", "scale-info", "serde", "smallvec", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "static_assertions", "substrate-wasm-builder", ] @@ -1964,33 +1964,33 @@ dependencies = [ "bridge-runtime-common", "cumulus-pallet-parachain-system", "cumulus-pallet-xcmp-queue", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-bridge-grandpa", "pallet-bridge-messages", "pallet-bridge-parachains", "pallet-bridge-relayers", "pallet-collator-selection", - "pallet-session", + "pallet-session 4.0.0-dev", "pallet-utility", "pallet-xcm", "pallet-xcm-benchmarks", "parachains-common", "parachains-runtimes-test-utils", "parity-scale-codec", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", ] [[package]] @@ -2000,11 +2000,11 @@ dependencies = [ "bridge-hub-westend-runtime", "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support", + "frame-support 4.0.0-dev", "parachains-common", "serde_json", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -2017,17 +2017,17 @@ dependencies = [ "cumulus-pallet-dmp-queue", "cumulus-pallet-xcmp-queue", "emulated-integration-tests-common", - "frame-support", + "frame-support 4.0.0-dev", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-bridge-messages", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-xcm", "parachains-common", "parity-scale-codec", "rococo-westend-system-emulated-network", - "staging-xcm", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-executor 1.0.0", ] [[package]] @@ -2054,59 +2054,59 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-aura", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-bridge-grandpa", "pallet-bridge-messages", "pallet-bridge-parachains", "pallet-bridge-relayers", "pallet-collator-selection", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-multisig", - "pallet-session", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-session 4.0.0-dev", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-utility", "pallet-xcm", "pallet-xcm-benchmarks", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", "polkadot-runtime-common", "scale-info", "serde", "smallvec", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "static_assertions", "substrate-wasm-builder", "westend-runtime-constants", @@ -2124,27 +2124,27 @@ dependencies = [ "bp-runtime", "bp-test-utils", "bp-xcm-bridge-hub-router", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "hash-db", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-bridge-grandpa", "pallet-bridge-messages", "pallet-bridge-parachains", "pallet-bridge-relayers", - "pallet-transaction-payment", + "pallet-transaction-payment 4.0.0-dev", "pallet-utility", "parity-scale-codec", "scale-info", - "sp-api", - "sp-core", - "sp-io", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-trie", - "staging-xcm", - "staging-xcm-builder", + "sp-trie 22.0.0", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", "static_assertions", ] @@ -2600,10 +2600,10 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -2611,13 +2611,13 @@ dependencies = [ "log", "pallet-alliance", "pallet-aura", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-collator-selection", "pallet-collective", "pallet-collective-content", "pallet-core-fellowship", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-multisig", "pallet-preimage", "pallet-proxy", @@ -2625,38 +2625,38 @@ dependencies = [ "pallet-referenda", "pallet-salary", "pallet-scheduler", - "pallet-session", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-session 4.0.0-dev", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-utility", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", "polkadot-runtime-common", "scale-info", "smallvec", - "sp-api", - "sp-arithmetic", + "sp-api 4.0.0-dev", + "sp-arithmetic 16.0.0", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", "testnets-common", "westend-runtime-constants", @@ -2821,55 +2821,55 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-aura", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-collator-selection", "pallet-contracts", "pallet-insecure-randomness-collective-flip", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-multisig", - "pallet-session", + "pallet-session 4.0.0-dev", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-utility", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", "polkadot-runtime-common", "rococo-runtime-constants", "scale-info", "smallvec", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", ] @@ -3281,8 +3281,8 @@ dependencies = [ "sc-cli", "sc-client-api", "sc-service", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "url", ] @@ -3304,14 +3304,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-client-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-maybe-compressed-blob", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-tracing 10.0.0", "tracing", ] @@ -3333,7 +3333,7 @@ dependencies = [ "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-client-api", "sc-consensus", "sc-consensus-aura", @@ -3341,18 +3341,18 @@ dependencies = [ "sc-consensus-slots", "sc-telemetry", "schnellru", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-keystore", - "sp-runtime", - "sp-state-machine", - "sp-timestamp", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-timestamp 4.0.0-dev", "substrate-prometheus-endpoint", "tracing", ] @@ -3372,19 +3372,19 @@ dependencies = [ "futures-timer", "log", "parity-scale-codec", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-client-api", "sc-consensus", "sc-consensus-babe", "schnellru", "sp-blockchain", "sp-consensus", - "sp-consensus-slots", - "sp-core", - "sp-runtime", - "sp-timestamp", + "sp-consensus-slots 0.10.0-dev", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-timestamp 4.0.0-dev", "sp-tracing 10.0.0", - "sp-trie", + "sp-trie 22.0.0", "substrate-prometheus-endpoint", "tracing", ] @@ -3397,9 +3397,9 @@ dependencies = [ "async-trait", "cumulus-primitives-parachain-inherent", "sp-consensus", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "thiserror", ] @@ -3414,13 +3414,13 @@ dependencies = [ "futures", "parking_lot 0.12.1", "sc-consensus", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint", "tracing", ] @@ -3439,19 +3439,19 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "polkadot-node-primitives", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-test-client", "portpicker", "sc-cli", "sc-client-api", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", - "sp-runtime", - "sp-state-machine", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "substrate-test-utils", "tokio", "tracing", @@ -3472,7 +3472,7 @@ dependencies = [ "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "portpicker", "rand 0.8.5", "sc-cli", @@ -3480,7 +3480,7 @@ dependencies = [ "sc-consensus", "sp-consensus", "sp-maybe-compressed-blob", - "sp-runtime", + "sp-runtime 24.0.0", "substrate-test-utils", "tokio", "tracing", @@ -3501,7 +3501,7 @@ dependencies = [ "cumulus-relay-chain-interface", "cumulus-relay-chain-minimal-node", "futures", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-client-api", "sc-consensus", "sc-network", @@ -3513,11 +3513,11 @@ dependencies = [ "sc-telemetry", "sc-transaction-pool", "sc-utils", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-transaction-pool", ] @@ -3526,15 +3526,15 @@ name = "cumulus-pallet-aura-ext" version = "0.1.0" dependencies = [ "cumulus-pallet-parachain-system", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "pallet-aura", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 23.0.0", "sp-consensus-aura", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -3543,18 +3543,18 @@ name = "cumulus-pallet-dmp-queue" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm", + "staging-xcm 1.0.0", ] [[package]] @@ -3570,33 +3570,33 @@ dependencies = [ "cumulus-test-client", "cumulus-test-relay-sproof-builder", "environmental", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "futures", "hex-literal", "impl-trait-for-tuples", "lazy_static", "log", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-runtime-parachains", + "polkadot-parachain-primitives 1.0.0", + "polkadot-runtime-parachains 1.0.0", "rand 0.8.5", "sc-client-api", "scale-info", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-inherents", - "sp-io", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-trie", - "sp-version", - "staging-xcm", + "sp-trie 22.0.0", + "sp-version 22.0.0", + "staging-xcm 1.0.0", "trie-db", "trie-standardmap", ] @@ -3615,12 +3615,12 @@ dependencies = [ name = "cumulus-pallet-session-benchmarking" version = "3.0.0" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-session", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-session 4.0.0-dev", "parity-scale-codec", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -3629,13 +3629,13 @@ name = "cumulus-pallet-solo-to-para" version = "0.1.0" dependencies = [ "cumulus-pallet-parachain-system", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "pallet-sudo", "parity-scale-codec", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "scale-info", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -3644,14 +3644,14 @@ name = "cumulus-pallet-xcm" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "staging-xcm", + "staging-xcm 1.0.0", ] [[package]] @@ -3662,23 +3662,23 @@ dependencies = [ "bp-xcm-bridge-hub-router", "cumulus-pallet-parachain-system", "cumulus-primitives-core", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", - "pallet-message-queue", + "pallet-balances 4.0.0-dev", + "pallet-message-queue 7.0.0-dev", "parity-scale-codec", "polkadot-runtime-common", - "polkadot-runtime-parachains", + "polkadot-runtime-parachains 1.0.0", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", ] [[package]] @@ -3687,13 +3687,13 @@ version = "0.1.0" dependencies = [ "cumulus-pallet-xcm", "cumulus-primitives-core", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "staging-xcm", + "staging-xcm 1.0.0", ] [[package]] @@ -3701,11 +3701,11 @@ name = "cumulus-primitives-aura" version = "0.1.0" dependencies = [ "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-primitives", - "sp-api", + "polkadot-core-primitives 1.0.0", + "polkadot-primitives 1.0.0", + "sp-api 4.0.0-dev", "sp-consensus-aura", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -3714,15 +3714,15 @@ name = "cumulus-primitives-core" version = "0.1.0" dependencies = [ "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "scale-info", - "sp-api", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-trie", - "staging-xcm", + "sp-trie 22.0.0", + "staging-xcm 1.0.0", ] [[package]] @@ -3736,14 +3736,14 @@ dependencies = [ "parity-scale-codec", "sc-client-api", "scale-info", - "sp-api", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-std 8.0.0", "sp-storage 13.0.0", - "sp-trie", + "sp-trie 22.0.0", "tracing", ] @@ -3751,12 +3751,12 @@ dependencies = [ name = "cumulus-primitives-proof-size-hostfunction" version = "0.1.0" dependencies = [ - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-io", + "sp-io 23.0.0", "sp-runtime-interface 17.0.0", - "sp-state-machine", - "sp-trie", + "sp-state-machine 0.28.0", + "sp-trie 22.0.0", ] [[package]] @@ -3766,9 +3766,9 @@ dependencies = [ "cumulus-primitives-core", "futures", "parity-scale-codec", - "sp-inherents", + "sp-inherents 4.0.0-dev", "sp-std 8.0.0", - "sp-timestamp", + "sp-timestamp 4.0.0-dev", ] [[package]] @@ -3776,18 +3776,18 @@ name = "cumulus-primitives-utility" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "frame-support", + "frame-support 4.0.0-dev", "log", "pallet-xcm-benchmarks", "parity-scale-codec", "polkadot-runtime-common", - "polkadot-runtime-parachains", - "sp-io", - "sp-runtime", + "polkadot-runtime-parachains 1.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", ] [[package]] @@ -3801,7 +3801,7 @@ dependencies = [ "futures", "futures-timer", "polkadot-cli", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-service", "polkadot-test-client", "prioritized-metered-channel", @@ -3810,12 +3810,12 @@ dependencies = [ "sc-sysinfo", "sc-telemetry", "sc-tracing", - "sp-api", + "sp-api 4.0.0-dev", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-keyring", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", ] [[package]] @@ -3829,9 +3829,9 @@ dependencies = [ "parity-scale-codec", "polkadot-overseer", "sc-client-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-state-machine", + "sp-state-machine 0.28.0", "thiserror", ] @@ -3848,7 +3848,7 @@ dependencies = [ "parking_lot 0.12.1", "polkadot-availability-recovery", "polkadot-collator-protocol", - "polkadot-core-primitives", + "polkadot-core-primitives 1.0.0", "polkadot-network-bridge", "polkadot-node-collation-generation", "polkadot-node-core-chain-api", @@ -3857,7 +3857,7 @@ dependencies = [ "polkadot-node-network-protocol", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-authority-discovery", "sc-client-api", "sc-network", @@ -3865,11 +3865,11 @@ dependencies = [ "sc-service", "sc-tracing", "sc-utils", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-consensus-babe", - "sp-runtime", + "sp-consensus-babe 0.10.0-dev", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint", "tokio", "tracing", @@ -3898,14 +3898,14 @@ dependencies = [ "serde_json", "smoldot", "smoldot-light", - "sp-api", - "sp-authority-discovery", - "sp-consensus-babe", - "sp-core", - "sp-runtime", - "sp-state-machine", + "sp-api 4.0.0-dev", + "sp-authority-discovery 4.0.0-dev", + "sp-consensus-babe 0.10.0-dev", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-storage 13.0.0", - "sp-version", + "sp-version 22.0.0", "thiserror", "tokio", "tokio-util", @@ -3923,25 +3923,25 @@ dependencies = [ "cumulus-test-relay-sproof-builder", "cumulus-test-runtime", "cumulus-test-service", - "frame-system", - "pallet-balances", - "pallet-transaction-payment", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "sc-block-builder", "sc-consensus", "sc-executor", "sc-executor-common", "sc-service", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", - "sp-timestamp", + "sp-runtime 24.0.0", + "sp-timestamp 4.0.0-dev", "substrate-test-client", ] @@ -3951,11 +3951,11 @@ version = "0.1.0" dependencies = [ "cumulus-primitives-core", "parity-scale-codec", - "polkadot-primitives", - "sp-runtime", - "sp-state-machine", + "polkadot-primitives 1.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-std 8.0.0", - "sp-trie", + "sp-trie 22.0.0", ] [[package]] @@ -3965,29 +3965,29 @@ dependencies = [ "cumulus-pallet-parachain-system", "cumulus-primitives-core", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-rpc-runtime-api", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-glutton", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "substrate-wasm-builder", ] @@ -4012,19 +4012,19 @@ dependencies = [ "cumulus-test-client", "cumulus-test-relay-sproof-builder", "cumulus-test-runtime", - "frame-system", + "frame-system 4.0.0-dev", "frame-system-rpc-runtime-api", "futures", "jsonrpsee", "pallet-im-online", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "parachains-common", "parity-scale-codec", "polkadot-cli", "polkadot-node-subsystem", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-service", "polkadot-test-service", "portpicker", @@ -4047,18 +4047,18 @@ dependencies = [ "sc-transaction-pool-api", "serde", "serde_json", - "sp-api", - "sp-arithmetic", - "sp-authority-discovery", + "sp-api 4.0.0-dev", + "sp-arithmetic 16.0.0", + "sp-authority-discovery 4.0.0-dev", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", - "sp-state-machine", - "sp-timestamp", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-timestamp 4.0.0-dev", "sp-tracing 10.0.0", "substrate-test-client", "substrate-test-utils", @@ -4724,27 +4724,27 @@ dependencies = [ "cumulus-pallet-parachain-system", "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", - "frame-support", + "frame-support 4.0.0-dev", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-bridge-messages", "pallet-im-online", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-xcm", "parachains-common", "parity-scale-codec", "paste", - "polkadot-primitives", - "polkadot-runtime-parachains", + "polkadot-primitives 1.0.0", + "polkadot-runtime-parachains 1.0.0", "polkadot-service", "sc-consensus-grandpa", "serde_json", - "sp-authority-discovery", - "sp-consensus-babe", + "sp-authority-discovery 4.0.0-dev", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-beefy", - "sp-core", - "sp-runtime", - "staging-xcm", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "staging-xcm 1.0.0", "xcm-emulator", ] @@ -4870,7 +4870,7 @@ dependencies = [ "honggfuzz", "polkadot-erasure-coding", "polkadot-node-primitives", - "polkadot-primitives", + "polkadot-primitives 1.0.0", ] [[package]] @@ -5221,28 +5221,28 @@ version = "0.0.1-dev" dependencies = [ "docify", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-rpc-runtime-api", "log", "pallet-examples", "parity-scale-codec", "scale-info", "simple-mermaid 0.1.0 (git+https://github.com/kianenigma/simple-mermaid.git?rev=e48b187bcfd5cc75111acd9d241f1bd36604344b)", - "sp-api", - "sp-arithmetic", + "sp-api 4.0.0-dev", + "sp-arithmetic 16.0.0", "sp-block-builder", "sp-consensus-aura", "sp-consensus-grandpa", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", ] [[package]] @@ -5250,9 +5250,9 @@ name = "frame-benchmarking" version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", - "frame-support", - "frame-support-procedural", - "frame-system", + "frame-support 4.0.0-dev", + "frame-support-procedural 4.0.0-dev", + "frame-system 4.0.0-dev", "linregress", "log", "parity-scale-codec", @@ -5260,18 +5260,44 @@ dependencies = [ "rusty-fork", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-keystore", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-runtime-interface 17.0.0", "sp-std 8.0.0", "sp-storage 13.0.0", "static_assertions", ] +[[package]] +name = "frame-benchmarking" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bffc0f167650e08c1c8eb3f564569e9e96d12a7cffebb9e3527041a36ffb7cce" +dependencies = [ + "frame-support 26.0.0", + "frame-support-procedural 21.0.0", + "frame-system 26.0.0", + "linregress", + "log", + "parity-scale-codec", + "paste", + "scale-info", + "serde", + "sp-api 24.0.0", + "sp-application-crypto 28.0.0", + "sp-core 26.0.0", + "sp-io 28.0.0", + "sp-runtime 29.0.0", + "sp-runtime-interface 22.0.0", + "sp-std 12.0.0", + "sp-storage 17.0.0", + "static_assertions", +] + [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" @@ -5281,9 +5307,9 @@ dependencies = [ "chrono", "clap 4.4.10", "comfy-table", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "gethostname", "handlebars", "itertools 0.10.5", @@ -5302,18 +5328,18 @@ dependencies = [ "sc-sysinfo", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-database", "sp-externalities 0.19.0", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-state-machine", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-storage 13.0.0", - "sp-trie", + "sp-trie 22.0.0", "sp-wasm-interface 14.0.0", "thiserror", "thousands", @@ -5323,13 +5349,13 @@ dependencies = [ name = "frame-benchmarking-pallet-pov" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -5337,51 +5363,81 @@ dependencies = [ name = "frame-election-provider-solution-type" version = "4.0.0-dev" dependencies = [ - "frame-election-provider-support", - "frame-support", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", "parity-scale-codec", "proc-macro-crate 2.0.0", "proc-macro2", "quote", "scale-info", - "sp-arithmetic", + "sp-arithmetic 16.0.0", "syn 2.0.39", "trybuild", ] +[[package]] +name = "frame-election-provider-solution-type" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03911cf3675af64252a6de7b4f383eafa80d5ea5830184e7a0739aeb0b95272d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro2", + "quote", + "syn 2.0.39", +] + [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" dependencies = [ - "frame-election-provider-solution-type", - "frame-support", - "frame-system", + "frame-election-provider-solution-type 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "rand 0.8.5", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-npos-elections", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-npos-elections 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] +[[package]] +name = "frame-election-provider-support" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d24bb28c8c04cd8e6aba0ecabd01a94266f0271b4e0e9d1fc65cef17fa4f479" +dependencies = [ + "frame-election-provider-solution-type 12.0.0", + "frame-support 26.0.0", + "frame-system 26.0.0", + "parity-scale-codec", + "scale-info", + "sp-arithmetic 21.0.0", + "sp-core 26.0.0", + "sp-npos-elections 24.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "frame-election-solution-type-fuzzer" version = "2.0.0-alpha.5" dependencies = [ "clap 4.4.10", - "frame-election-provider-solution-type", - "frame-election-provider-support", - "frame-support", + "frame-election-provider-solution-type 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", "honggfuzz", "parity-scale-codec", "rand 0.8.5", "scale-info", - "sp-arithmetic", - "sp-npos-elections", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-npos-elections 4.0.0-dev", + "sp-runtime 24.0.0", ] [[package]] @@ -5389,21 +5445,21 @@ name = "frame-executive" version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-try-runtime", "log", - "pallet-balances", - "pallet-transaction-payment", + "pallet-balances 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-inherents", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-version", + "sp-version 22.0.0", ] [[package]] @@ -5428,10 +5484,10 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-tracing 10.0.0", "spinners", "substrate-rpc-client", @@ -5450,8 +5506,8 @@ dependencies = [ "docify", "environmental", "frame-metadata", - "frame-support-procedural", - "frame-system", + "frame-support-procedural 4.0.0-dev", + "frame-system 4.0.0-dev", "impl-trait-for-tuples", "k256", "log", @@ -5463,21 +5519,63 @@ dependencies = [ "serde", "serde_json", "smallvec", - "sp-api", - "sp-arithmetic", - "sp-core", - "sp-core-hashing-proc-macro", + "sp-api 4.0.0-dev", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-core-hashing-proc-macro 9.0.0", "sp-debug-derive 8.0.0", - "sp-genesis-builder", - "sp-inherents", - "sp-io", - "sp-metadata-ir", - "sp-runtime", - "sp-staking", - "sp-state-machine", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", + "sp-metadata-ir 0.1.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", + "sp-state-machine 0.28.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-weights", + "sp-weights 20.0.0", + "static_assertions", + "tt-call", +] + +[[package]] +name = "frame-support" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a3c63ec85b8907268d6af6182d29d9a9752daa6979c9928566d56471f5ec731" +dependencies = [ + "aquamarine", + "array-bytes 6.1.0", + "bitflags 1.3.2", + "docify", + "environmental", + "frame-metadata", + "frame-support-procedural 21.0.0", + "impl-trait-for-tuples", + "k256", + "log", + "macro_magic", + "parity-scale-codec", + "paste", + "scale-info", + "serde", + "serde_json", + "smallvec", + "sp-api 24.0.0", + "sp-arithmetic 21.0.0", + "sp-core 26.0.0", + "sp-core-hashing-proc-macro 13.0.0", + "sp-debug-derive 12.0.0", + "sp-genesis-builder 0.5.0", + "sp-inherents 24.0.0", + "sp-io 28.0.0", + "sp-metadata-ir 0.4.0", + "sp-runtime 29.0.0", + "sp-staking 24.0.0", + "sp-state-machine 0.33.0", + "sp-std 12.0.0", + "sp-tracing 14.0.0", + "sp-weights 25.0.0", "static_assertions", "tt-call", ] @@ -5490,13 +5588,33 @@ dependencies = [ "cfg-expr", "derive-syn-parse", "expander 2.0.0", - "frame-support-procedural-tools", + "frame-support-procedural-tools 4.0.0-dev", + "itertools 0.10.5", + "macro_magic", + "proc-macro-warning", + "proc-macro2", + "quote", + "sp-core-hashing 9.0.0", + "syn 2.0.39", +] + +[[package]] +name = "frame-support-procedural" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "545ed122b36d06c416a6fbe2e66ab57a455200bfd20ece87cdd604d18f674f23" +dependencies = [ + "Inflector", + "cfg-expr", + "derive-syn-parse", + "expander 2.0.0", + "frame-support-procedural-tools 9.0.0", "itertools 0.10.5", "macro_magic", "proc-macro-warning", "proc-macro2", "quote", - "sp-core-hashing", + "sp-core-hashing 13.0.0", "syn 2.0.39", ] @@ -5504,13 +5622,26 @@ dependencies = [ name = "frame-support-procedural-tools" version = "4.0.0-dev" dependencies = [ - "frame-support-procedural-tools-derive", + "frame-support-procedural-tools-derive 3.0.0", "proc-macro-crate 2.0.0", "proc-macro2", "quote", "syn 2.0.39", ] +[[package]] +name = "frame-support-procedural-tools" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3ac1266522a8c9a2d2d26d205ec3028b88582d5f3cd5cbc75d0ec8271d197b7" +dependencies = [ + "frame-support-procedural-tools-derive 10.0.0", + "proc-macro-crate 1.3.1", + "proc-macro2", + "quote", + "syn 2.0.39", +] + [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" @@ -5520,30 +5651,41 @@ dependencies = [ "syn 2.0.39", ] +[[package]] +name = "frame-support-procedural-tools-derive" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c078db2242ea7265faa486004e7fd8daaf1a577cfcac0070ce55d926922883" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.39", +] + [[package]] name = "frame-support-test" version = "3.0.0" dependencies = [ - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", "frame-metadata", - "frame-support", + "frame-support 4.0.0-dev", "frame-support-test-pallet", - "frame-system", + "frame-system 4.0.0-dev", "parity-scale-codec", "pretty_assertions", "rustversion", "scale-info", "serde", - "sp-api", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-metadata-ir", - "sp-runtime", - "sp-state-machine", + "sp-api 4.0.0-dev", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-metadata-ir 0.1.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-std 8.0.0", - "sp-version", + "sp-version 22.0.0", "static_assertions", "trybuild", ] @@ -5552,25 +5694,25 @@ dependencies = [ name = "frame-support-test-compile-pass" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-runtime", - "sp-version", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-version 22.0.0", ] [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", "serde", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -5589,36 +5731,56 @@ dependencies = [ "cfg-if", "criterion 0.4.0", "docify", - "frame-support", + "frame-support 4.0.0-dev", "log", "parity-scale-codec", "scale-info", "serde", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-io", - "sp-runtime", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-version", - "sp-weights", + "sp-version 22.0.0", + "sp-weights 20.0.0", "substrate-test-runtime-client", ] +[[package]] +name = "frame-system" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5d6c8e319cea3160ec8f6c831edc77ceca442c7488d0a6d2e6a6be54fcb142" +dependencies = [ + "cfg-if", + "frame-support 26.0.0", + "log", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core 26.0.0", + "sp-io 28.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", + "sp-version 27.0.0", + "sp-weights 25.0.0", +] + [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-io", - "sp-runtime", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-version", + "sp-version 22.0.0", ] [[package]] @@ -5626,17 +5788,17 @@ name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" dependencies = [ "parity-scale-codec", - "sp-api", + "sp-api 4.0.0-dev", ] [[package]] name = "frame-try-runtime" version = "0.10.0-dev" dependencies = [ - "frame-support", + "frame-support 4.0.0-dev", "parity-scale-codec", - "sp-api", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -5814,12 +5976,12 @@ name = "generate-bags" version = "4.0.0-dev" dependencies = [ "chrono", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "num-format", - "pallet-staking", - "sp-staking", + "pallet-staking 4.0.0-dev", + "sp-staking 4.0.0-dev", ] [[package]] @@ -5950,38 +6112,38 @@ dependencies = [ "cumulus-primitives-aura", "cumulus-primitives-core", "cumulus-primitives-timestamp", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "pallet-aura", "pallet-glutton", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-sudo", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parachains-common", "parity-scale-codec", "scale-info", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", ] @@ -6837,12 +6999,12 @@ checksum = "c33070833c9ee02266356de0c43f723152bd38bd96ddf52c82b3af10c9138b28" name = "kitchensink-runtime" version = "3.0.0-dev" dependencies = [ - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-benchmarking-pallet-pov", - "frame-election-provider-support", + "frame-election-provider-support 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -6854,11 +7016,11 @@ dependencies = [ "pallet-asset-rate", "pallet-asset-tx-payment", "pallet-assets", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", + "pallet-authority-discovery 4.0.0-dev", + "pallet-authorship 4.0.0-dev", + "pallet-babe 4.0.0-dev", "pallet-bags-list", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-bounties", "pallet-broker", "pallet-child-bounties", @@ -6879,7 +7041,7 @@ dependencies = [ "pallet-insecure-randomness-collective-flip", "pallet-lottery", "pallet-membership", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-mixnet", "pallet-mmr", "pallet-multisig", @@ -6902,50 +7064,50 @@ dependencies = [ "pallet-safe-mode", "pallet-salary", "pallet-scheduler", - "pallet-session", + "pallet-session 4.0.0-dev", "pallet-session-benchmarking", "pallet-skip-feeless-payment", "pallet-society", - "pallet-staking", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", "pallet-staking-runtime-api", "pallet-state-trie-migration", "pallet-statement", "pallet-sudo", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "pallet-tips", - "pallet-transaction-payment", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-transaction-storage", "pallet-treasury", "pallet-tx-pause", "pallet-uniques", "pallet-utility", - "pallet-vesting", + "pallet-vesting 4.0.0-dev", "pallet-whitelist", "parity-scale-codec", "primitive-types", "scale-info", "serde_json", - "sp-api", - "sp-authority-discovery", + "sp-api 4.0.0-dev", + "sp-authority-discovery 4.0.0-dev", "sp-block-builder", - "sp-consensus-babe", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-grandpa", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-mixnet", "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-staking 4.0.0-dev", "sp-statement-store", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "static_assertions", "substrate-wasm-builder", ] @@ -7979,13 +8141,13 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", - "sp-io", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", - "sp-timestamp", + "sp-runtime 24.0.0", + "sp-timestamp 4.0.0-dev", "substrate-build-script-utils", "substrate-frame-rpc-system", ] @@ -7995,15 +8157,15 @@ name = "minimal-runtime" version = "0.1.0" dependencies = [ "frame", - "frame-support", - "pallet-balances", + "frame-support 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "scale-info", - "sp-genesis-builder", + "sp-genesis-builder 0.1.0", "substrate-wasm-builder", ] @@ -8063,13 +8225,13 @@ dependencies = [ "sc-block-builder", "sc-client-api", "sc-offchain", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", "sp-consensus-beefy", - "sp-core", + "sp-core 21.0.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", "substrate-test-runtime-client", "tokio", @@ -8084,11 +8246,11 @@ dependencies = [ "parity-scale-codec", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -8454,13 +8616,13 @@ dependencies = [ "serde", "serde_json", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", - "sp-timestamp", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-timestamp 4.0.0-dev", "sp-tracing 10.0.0", - "sp-trie", + "sp-trie 22.0.0", "tempfile", ] @@ -8468,8 +8630,8 @@ dependencies = [ name = "node-primitives" version = "2.0.0" dependencies = [ - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -8492,13 +8654,13 @@ dependencies = [ "sc-rpc-spec-v2", "sc-sync-state-rpc", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-consensus-babe", - "sp-keystore", - "sp-runtime", + "sp-consensus-babe 0.10.0-dev", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-statement-store", "substrate-frame-rpc-system", "substrate-state-trie-migration-rpc", @@ -8518,13 +8680,13 @@ name = "node-template" version = "4.0.0-dev" dependencies = [ "clap 4.4.10", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-benchmarking-cli", - "frame-system", + "frame-system 4.0.0-dev", "futures", "jsonrpsee", "node-template-runtime", - "pallet-transaction-payment", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc", "sc-basic-authorship", "sc-cli", @@ -8541,17 +8703,17 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", "sp-consensus-aura", "sp-consensus-grandpa", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", - "sp-timestamp", + "sp-runtime 24.0.0", + "sp-timestamp 4.0.0-dev", "substrate-build-script-utils", "substrate-frame-rpc-system", "try-runtime-cli", @@ -8575,38 +8737,38 @@ dependencies = [ name = "node-template-runtime" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "pallet-aura", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-grandpa", "pallet-sudo", "pallet-template", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "scale-info", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", "sp-consensus-grandpa", - "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "substrate-wasm-builder", ] @@ -8614,7 +8776,7 @@ dependencies = [ name = "node-testing" version = "3.0.0-dev" dependencies = [ - "frame-system", + "frame-system 4.0.0-dev", "fs_extra", "futures", "kitchensink-runtime", @@ -8632,16 +8794,16 @@ dependencies = [ "sc-consensus", "sc-executor", "sc-service", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", - "sp-timestamp", + "sp-runtime 24.0.0", + "sp-timestamp 4.0.0-dev", "staging-node-cli", "substrate-test-client", "tempfile", @@ -8947,19 +9109,19 @@ name = "pallet-alliance" version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-collective", "pallet-identity", "parity-scale-codec", "scale-info", - "sp-core", - "sp-core-hashing", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-core-hashing 9.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -8967,19 +9129,19 @@ dependencies = [ name = "pallet-asset-conversion" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "primitive-types", "scale-info", - "sp-api", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -8987,17 +9149,17 @@ dependencies = [ name = "pallet-asset-conversion-tx-payment" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "pallet-asset-conversion", "pallet-assets", - "pallet-balances", - "pallet-transaction-payment", + "pallet-balances 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-storage 13.0.0", ] @@ -9006,15 +9168,15 @@ dependencies = [ name = "pallet-asset-rate" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9022,20 +9184,20 @@ dependencies = [ name = "pallet-asset-tx-payment" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "pallet-assets", - "pallet-authorship", - "pallet-balances", - "pallet-transaction-payment", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "parity-scale-codec", "scale-info", "serde", "serde_json", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-storage 13.0.0", ] @@ -9044,16 +9206,16 @@ dependencies = [ name = "pallet-assets" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9061,14 +9223,14 @@ dependencies = [ name = "pallet-atomic-swap" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9076,17 +9238,17 @@ dependencies = [ name = "pallet-aura" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 23.0.0", "sp-consensus-aura", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9094,79 +9256,136 @@ dependencies = [ name = "pallet-authority-discovery" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", - "pallet-session", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-session 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-application-crypto", - "sp-authority-discovery", - "sp-core", - "sp-io", - "sp-runtime", + "sp-application-crypto 23.0.0", + "sp-authority-discovery 4.0.0-dev", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] +[[package]] +name = "pallet-authority-discovery" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fcf7df7937894b378d787658d02f5392973bc35a6bb1b68f38517b313ed65a7" +dependencies = [ + "frame-support 26.0.0", + "frame-system 26.0.0", + "pallet-session 26.0.0", + "parity-scale-codec", + "scale-info", + "sp-application-crypto 28.0.0", + "sp-authority-discovery 24.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "pallet-authorship" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] +[[package]] +name = "pallet-authorship" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dd3dcc3621193b724ea94d6a259466af11e68f7b3c81d242b78003793080e79" +dependencies = [ + "frame-support 26.0.0", + "frame-system 26.0.0", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "pallet-babe" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-offences", - "pallet-session", - "pallet-staking", + "pallet-session 4.0.0-dev", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-application-crypto", - "sp-consensus-babe", - "sp-core", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", + "sp-application-crypto 23.0.0", + "sp-consensus-babe 0.10.0-dev", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", ] +[[package]] +name = "pallet-babe" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dfeb893ce5056a9f95e93f50861fb10afafcc24856c5a9e99e3f38d450195c" +dependencies = [ + "frame-benchmarking 26.0.0", + "frame-support 26.0.0", + "frame-system 26.0.0", + "log", + "pallet-authorship 26.0.0", + "pallet-session 26.0.0", + "pallet-timestamp 25.0.0", + "parity-scale-codec", + "scale-info", + "sp-application-crypto 28.0.0", + "sp-consensus-babe 0.30.0", + "sp-core 26.0.0", + "sp-io 28.0.0", + "sp-runtime 29.0.0", + "sp-session 25.0.0", + "sp-staking 24.0.0", + "sp-std 12.0.0", +] + [[package]] name = "pallet-bags-list" version = "4.0.0-dev" dependencies = [ "aquamarine", "docify", - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", ] @@ -9175,7 +9394,7 @@ dependencies = [ name = "pallet-bags-list-fuzzer" version = "4.0.0-dev" dependencies = [ - "frame-election-provider-support", + "frame-election-provider-support 4.0.0-dev", "honggfuzz", "pallet-bags-list", "rand 0.8.5", @@ -9185,15 +9404,15 @@ dependencies = [ name = "pallet-bags-list-remote-tests" version = "4.0.0-dev" dependencies = [ - "frame-election-provider-support", + "frame-election-provider-support 4.0.0-dev", "frame-remote-externalities", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "pallet-bags-list", - "pallet-staking", - "sp-core", - "sp-runtime", + "pallet-staking 4.0.0-dev", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-tracing 10.0.0", @@ -9203,45 +9422,61 @@ dependencies = [ name = "pallet-balances" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-transaction-payment", + "pallet-transaction-payment 4.0.0-dev", "parity-scale-codec", "paste", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] +[[package]] +name = "pallet-balances" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8784a22a3c2e0cd17d775e08002d5a5ce44267717a9d96fd3644fdf38cfcc4d5" +dependencies = [ + "frame-benchmarking 26.0.0", + "frame-support 26.0.0", + "frame-system 26.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "pallet-beefy" version = "4.0.0-dev" dependencies = [ - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-offences", - "pallet-session", - "pallet-staking", + "pallet-session 4.0.0-dev", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", "serde", "sp-consensus-beefy", - "sp-core", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-state-machine", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-staking 4.0.0-dev", + "sp-state-machine 0.28.0", "sp-std 8.0.0", ] @@ -9251,22 +9486,22 @@ version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", "binary-merkle-tree", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "pallet-beefy", "pallet-mmr", - "pallet-session", + "pallet-session 4.0.0-dev", "parity-scale-codec", "scale-info", "serde", - "sp-api", + "sp-api 4.0.0-dev", "sp-consensus-beefy", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-state-machine", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", + "sp-state-machine 0.28.0", "sp-std 8.0.0", ] @@ -9274,17 +9509,17 @@ dependencies = [ name = "pallet-bounties" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9296,18 +9531,18 @@ dependencies = [ "bp-runtime", "bp-test-utils", "finality-grandpa", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", "sp-consensus-grandpa", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-trie", + "sp-trie 22.0.0", ] [[package]] @@ -9317,16 +9552,16 @@ dependencies = [ "bp-messages", "bp-runtime", "bp-test-utils", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "num-traits", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9339,18 +9574,18 @@ dependencies = [ "bp-polkadot-core", "bp-runtime", "bp-test-utils", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "pallet-bridge-grandpa", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-trie", + "sp-trie 22.0.0", ] [[package]] @@ -9360,17 +9595,17 @@ dependencies = [ "bp-messages", "bp-relayers", "bp-runtime", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-bridge-messages", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9379,15 +9614,15 @@ name = "pallet-broker" version = "0.1.0" dependencies = [ "bitvec", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9395,18 +9630,18 @@ dependencies = [ name = "pallet-child-bounties" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-bounties", "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9414,23 +9649,23 @@ dependencies = [ name = "pallet-collator-selection" version = "3.0.0" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-session", - "pallet-timestamp", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", + "pallet-session 4.0.0-dev", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "rand 0.8.5", "scale-info", "sp-consensus-aura", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-tracing 10.0.0", ] @@ -9439,15 +9674,15 @@ dependencies = [ name = "pallet-collective" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9455,14 +9690,14 @@ dependencies = [ name = "pallet-collective-content" version = "0.1.0" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9475,20 +9710,20 @@ dependencies = [ "bitflags 1.3.2", "env_logger 0.9.3", "environmental", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "impl-trait-for-tuples", "log", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-contracts-fixtures", "pallet-contracts-proc-macro", "pallet-contracts-uapi", "pallet-insecure-randomness-collective-flip", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-proxy", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "pallet-utility", "parity-scale-codec", "pretty_assertions", @@ -9497,15 +9732,15 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-api", - "sp-core", - "sp-io", - "sp-keystore", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm", - "staging-xcm-builder", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", "wasm-instrument 0.4.0", "wasmi", "wat", @@ -9517,9 +9752,9 @@ version = "1.0.0" dependencies = [ "anyhow", "cfg-if", - "frame-system", + "frame-system 4.0.0-dev", "parity-wasm", - "sp-runtime", + "sp-runtime 24.0.0", "tempfile", "toml 0.8.8", "twox-hash", @@ -9535,37 +9770,37 @@ name = "pallet-contracts-mock-network" version = "1.0.0" dependencies = [ "assert_matches", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-contracts", "pallet-contracts-fixtures", "pallet-contracts-proc-macro", "pallet-contracts-uapi", "pallet-insecure-randomness-collective-flip", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-proxy", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "pallet-utility", "pallet-xcm", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-parachains", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", + "polkadot-runtime-parachains 1.0.0", "pretty_assertions", "scale-info", - "sp-api", - "sp-core", - "sp-io", - "sp-keystore", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "xcm-simulator", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", + "xcm-simulator 1.0.0", ] [[package]] @@ -9592,17 +9827,17 @@ name = "pallet-conviction-voting" version = "4.0.0-dev" dependencies = [ "assert_matches", - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-scheduler", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9610,16 +9845,16 @@ dependencies = [ name = "pallet-core-fellowship" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9627,13 +9862,13 @@ dependencies = [ name = "pallet-default-config-example" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9641,19 +9876,19 @@ dependencies = [ name = "pallet-democracy" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-preimage", "pallet-scheduler", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9661,15 +9896,15 @@ dependencies = [ name = "pallet-dev-mode" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9677,24 +9912,24 @@ dependencies = [ name = "pallet-election-provider-e2e-test" version = "1.0.0" dependencies = [ - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "pallet-bags-list", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-election-provider-multi-phase", - "pallet-session", - "pallet-staking", - "pallet-timestamp", + "pallet-session 4.0.0-dev", + "pallet-staking 4.0.0-dev", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "parking_lot 0.12.1", "scale-info", - "sp-core", - "sp-io", - "sp-npos-elections", - "sp-runtime", - "sp-staking", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-npos-elections 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-tracing 10.0.0", ] @@ -9703,22 +9938,22 @@ dependencies = [ name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-election-provider-support-benchmarking", "parity-scale-codec", "parking_lot 0.12.1", "rand 0.8.5", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-npos-elections", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-npos-elections 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", "strum", @@ -9728,12 +9963,12 @@ dependencies = [ name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", - "sp-npos-elections", - "sp-runtime", + "sp-npos-elections 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9741,18 +9976,18 @@ dependencies = [ name = "pallet-elections-phragmen" version = "5.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-npos-elections", - "sp-runtime", - "sp-staking", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-npos-elections 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-tracing 10.0.0", "substrate-test-utils", @@ -9762,16 +9997,16 @@ dependencies = [ name = "pallet-example-basic" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9788,16 +10023,16 @@ dependencies = [ name = "pallet-example-kitchensink" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9805,16 +10040,16 @@ dependencies = [ name = "pallet-example-offchain-worker" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "lite-json", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-keystore", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9822,14 +10057,14 @@ dependencies = [ name = "pallet-example-split" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-std 8.0.0", ] @@ -9851,21 +10086,21 @@ name = "pallet-fast-unstake" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", - "pallet-staking", + "pallet-balances 4.0.0-dev", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-tracing 10.0.0", "substrate-test-utils", @@ -9876,16 +10111,16 @@ name = "pallet-glutton" version = "4.0.0-dev" dependencies = [ "blake2 0.10.6", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9894,28 +10129,28 @@ name = "pallet-grandpa" version = "4.0.0-dev" dependencies = [ "finality-grandpa", - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-offences", - "pallet-session", - "pallet-staking", + "pallet-session 4.0.0-dev", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 23.0.0", "sp-consensus-grandpa", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", - "sp-session", - "sp-staking", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", ] @@ -9924,15 +10159,15 @@ name = "pallet-identity" version = "4.0.0-dev" dependencies = [ "enumflags2", - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9940,19 +10175,19 @@ dependencies = [ name = "pallet-im-online" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-authorship", - "pallet-session", + "pallet-authorship 4.0.0-dev", + "pallet-session 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", ] @@ -9960,16 +10195,16 @@ dependencies = [ name = "pallet-indices" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9977,14 +10212,14 @@ dependencies = [ name = "pallet-insecure-randomness-collective-flip" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "safe-mix", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -9992,16 +10227,16 @@ dependencies = [ name = "pallet-lottery" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", "frame-support-test", - "frame-system", - "pallet-balances", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10009,15 +10244,15 @@ dependencies = [ name = "pallet-membership" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10025,40 +10260,60 @@ dependencies = [ name = "pallet-message-queue" version = "7.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "rand 0.8.5", "rand_distr", "scale-info", "serde", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-weights", + "sp-weights 20.0.0", +] + +[[package]] +name = "pallet-message-queue" +version = "29.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f43f0dc71d08be37daa1158060c47ba5145c5173636078ca75a4a1455815ea4" +dependencies = [ + "frame-benchmarking 26.0.0", + "frame-support 26.0.0", + "frame-system 26.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-arithmetic 21.0.0", + "sp-core 26.0.0", + "sp-io 28.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", + "sp-weights 25.0.0", ] [[package]] name = "pallet-mixnet" version = "0.1.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", "serde", - "sp-application-crypto", - "sp-arithmetic", - "sp-io", + "sp-application-crypto 23.0.0", + "sp-arithmetic 16.0.0", + "sp-io 23.0.0", "sp-mixnet", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10068,17 +10323,17 @@ version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", "env_logger 0.9.3", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "itertools 0.10.5", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10086,15 +10341,15 @@ dependencies = [ name = "pallet-multisig" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10102,18 +10357,18 @@ dependencies = [ name = "pallet-nft-fractionalization" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-nfts", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10122,17 +10377,17 @@ name = "pallet-nfts" version = "4.0.0-dev" dependencies = [ "enumflags2", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-keystore", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10142,7 +10397,7 @@ version = "4.0.0-dev" dependencies = [ "pallet-nfts", "parity-scale-codec", - "sp-api", + "sp-api 4.0.0-dev", "sp-std 8.0.0", ] @@ -10150,14 +10405,14 @@ dependencies = [ name = "pallet-nicks" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10165,16 +10420,16 @@ dependencies = [ name = "pallet-nis" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10182,14 +10437,14 @@ dependencies = [ name = "pallet-node-authorization" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10197,16 +10452,16 @@ dependencies = [ name = "pallet-nomination-pools" version = "1.0.0" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-tracing 10.0.0", ] @@ -10215,23 +10470,23 @@ dependencies = [ name = "pallet-nomination-pools-benchmarking" version = "1.0.0" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "pallet-bags-list", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-nomination-pools", - "pallet-staking", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-runtime-interface 17.0.0", - "sp-staking", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", ] @@ -10239,14 +10494,14 @@ dependencies = [ name = "pallet-nomination-pools-fuzzer" version = "2.0.0" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "honggfuzz", "log", "pallet-nomination-pools", "rand 0.8.5", - "sp-io", - "sp-runtime", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", ] @@ -10256,7 +10511,7 @@ version = "1.0.0-dev" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", - "sp-api", + "sp-api 4.0.0-dev", "sp-std 8.0.0", ] @@ -10264,22 +10519,22 @@ dependencies = [ name = "pallet-nomination-pools-test-staking" version = "1.0.0" dependencies = [ - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "pallet-bags-list", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-nomination-pools", - "pallet-staking", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-tracing 10.0.0", ] @@ -10288,17 +10543,17 @@ dependencies = [ name = "pallet-offences" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", ] @@ -10306,26 +10561,26 @@ dependencies = [ name = "pallet-offences-benchmarking" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-babe", - "pallet-balances", + "pallet-babe 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-grandpa", "pallet-im-online", "pallet-offences", - "pallet-session", - "pallet-staking", + "pallet-session 4.0.0-dev", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", ] @@ -10334,15 +10589,15 @@ name = "pallet-paged-list" version = "0.1.0" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-metadata-ir", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-metadata-ir 0.1.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10351,41 +10606,41 @@ name = "pallet-paged-list-fuzzer" version = "0.1.0" dependencies = [ "arbitrary", - "frame-support", + "frame-support 4.0.0-dev", "honggfuzz", "pallet-paged-list", - "sp-io", + "sp-io 23.0.0", ] [[package]] name = "pallet-parachain-template" version = "0.1.0" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", ] [[package]] name = "pallet-preimage" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10393,16 +10648,16 @@ dependencies = [ name = "pallet-proxy" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-utility", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10410,16 +10665,16 @@ dependencies = [ name = "pallet-ranked-collective" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10427,15 +10682,15 @@ dependencies = [ name = "pallet-recovery" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10444,20 +10699,20 @@ name = "pallet-referenda" version = "4.0.0-dev" dependencies = [ "assert_matches", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-preimage", "pallet-scheduler", "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10465,15 +10720,15 @@ dependencies = [ name = "pallet-remark" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10481,20 +10736,20 @@ dependencies = [ name = "pallet-root-offences" version = "1.0.0-dev" dependencies = [ - "frame-election-provider-support", - "frame-support", - "frame-system", - "pallet-balances", - "pallet-session", - "pallet-staking", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", + "pallet-session 4.0.0-dev", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", ] @@ -10502,13 +10757,13 @@ dependencies = [ name = "pallet-root-testing" version = "1.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10517,18 +10772,18 @@ name = "pallet-safe-mode" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-proxy", "pallet-utility", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10536,16 +10791,16 @@ dependencies = [ name = "pallet-salary" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10554,16 +10809,16 @@ name = "pallet-sassafras" version = "0.3.5-dev" dependencies = [ "array-bytes 6.1.0", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", "sp-consensus-sassafras", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10572,18 +10827,18 @@ name = "pallet-scheduler" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "pallet-preimage", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-weights", + "sp-weights 20.0.0", "substrate-test-utils", ] @@ -10591,14 +10846,14 @@ dependencies = [ name = "pallet-scored-pool" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10606,43 +10861,66 @@ dependencies = [ name = "pallet-session" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "impl-trait-for-tuples", "log", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-state-machine", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-staking 4.0.0-dev", + "sp-state-machine 0.28.0", "sp-std 8.0.0", - "sp-trie", + "sp-trie 22.0.0", +] + +[[package]] +name = "pallet-session" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ed6f6bac8521ac1d794f1281e98c5e91b1a1a35379f5a3a393265741fb262fd" +dependencies = [ + "frame-support 26.0.0", + "frame-system 26.0.0", + "impl-trait-for-tuples", + "log", + "pallet-timestamp 25.0.0", + "parity-scale-codec", + "scale-info", + "sp-core 26.0.0", + "sp-io 28.0.0", + "sp-runtime 29.0.0", + "sp-session 25.0.0", + "sp-staking 24.0.0", + "sp-state-machine 0.33.0", + "sp-std 12.0.0", + "sp-trie 27.0.0", ] [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", - "pallet-balances", - "pallet-session", - "pallet-staking", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", + "pallet-session 4.0.0-dev", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "rand 0.8.5", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-session", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", ] @@ -10650,11 +10928,11 @@ dependencies = [ name = "pallet-skip-feeless-payment" version = "1.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10662,19 +10940,19 @@ dependencies = [ name = "pallet-society" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", "frame-support-test", - "frame-system", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "rand_chacha 0.2.2", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10682,32 +10960,55 @@ dependencies = [ name = "pallet-staking" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-authorship", + "pallet-authorship 4.0.0-dev", "pallet-bags-list", - "pallet-balances", - "pallet-session", + "pallet-balances 4.0.0-dev", + "pallet-session 4.0.0-dev", "pallet-staking-reward-curve", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "rand_chacha 0.2.2", "scale-info", "serde", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-npos-elections", - "sp-runtime", - "sp-staking", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-npos-elections 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-tracing 10.0.0", "substrate-test-utils", ] +[[package]] +name = "pallet-staking" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12c9d12dd46d947e3abf89a278aed14d97bf178371aba884514d2d216dae7753" +dependencies = [ + "frame-benchmarking 26.0.0", + "frame-election-provider-support 26.0.0", + "frame-support 26.0.0", + "frame-system 26.0.0", + "log", + "pallet-authorship 26.0.0", + "pallet-session 26.0.0", + "parity-scale-codec", + "scale-info", + "serde", + "sp-application-crypto 28.0.0", + "sp-io 28.0.0", + "sp-runtime 29.0.0", + "sp-staking 24.0.0", + "sp-std 12.0.0", +] + [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" @@ -10715,7 +11016,7 @@ dependencies = [ "proc-macro-crate 2.0.0", "proc-macro2", "quote", - "sp-runtime", + "sp-runtime 24.0.0", "syn 2.0.39", ] @@ -10724,7 +11025,7 @@ name = "pallet-staking-reward-fn" version = "4.0.0-dev" dependencies = [ "log", - "sp-arithmetic", + "sp-arithmetic 16.0.0", ] [[package]] @@ -10732,27 +11033,27 @@ name = "pallet-staking-runtime-api" version = "4.0.0-dev" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-staking", + "sp-api 4.0.0-dev", + "sp-staking 4.0.0-dev", ] [[package]] name = "pallet-state-trie-migration" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-remote-externalities", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "parking_lot 0.12.1", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", "substrate-state-trie-migration-rpc", @@ -10765,16 +11066,16 @@ dependencies = [ name = "pallet-statement" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-api", - "sp-core", - "sp-io", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-statement-store", "sp-std 8.0.0", ] @@ -10784,14 +11085,14 @@ name = "pallet-sudo" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10799,14 +11100,14 @@ dependencies = [ name = "pallet-template" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10815,37 +11116,58 @@ name = "pallet-timestamp" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-inherents", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-storage 13.0.0", - "sp-timestamp", + "sp-timestamp 4.0.0-dev", +] + +[[package]] +name = "pallet-timestamp" +version = "25.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "270cb5c9bfe17950ef04f39c3730de6c6a801ba7ae8ea1e047fe33ebcd173107" +dependencies = [ + "docify", + "frame-benchmarking 26.0.0", + "frame-support 26.0.0", + "frame-system 26.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-inherents 24.0.0", + "sp-io 28.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", + "sp-storage 17.0.0", + "sp-timestamp 24.0.0", ] [[package]] name = "pallet-tips" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-treasury", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-storage 13.0.0", ] @@ -10854,19 +11176,36 @@ dependencies = [ name = "pallet-transaction-payment" version = "4.0.0-dev" dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", "serde", "serde_json", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] +[[package]] +name = "pallet-transaction-payment" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ac7d7d775ca1b5ac7a591a2a4218498e878870e5a4609603e1b7b327c3b915b" +dependencies = [ + "frame-support 26.0.0", + "frame-system 26.0.0", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core 26.0.0", + "sp-io 28.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" @@ -10874,23 +11213,23 @@ dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-rpc", - "sp-runtime", - "sp-weights", + "sp-runtime 24.0.0", + "sp-weights 20.0.0", ] [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" dependencies = [ - "pallet-transaction-payment", + "pallet-transaction-payment 4.0.0-dev", "parity-scale-codec", - "sp-api", - "sp-runtime", - "sp-weights", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-weights 20.0.0", ] [[package]] @@ -10898,18 +11237,18 @@ name = "pallet-transaction-storage" version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-inherents", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-transaction-storage-proof", ] @@ -10919,18 +11258,18 @@ name = "pallet-treasury" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "impl-trait-for-tuples", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-utility", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10939,17 +11278,17 @@ name = "pallet-tx-pause" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-proxy", "pallet-utility", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10957,16 +11296,16 @@ dependencies = [ name = "pallet-uniques" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10974,18 +11313,18 @@ dependencies = [ name = "pallet-utility" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-collective", "pallet-root-testing", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -10993,34 +11332,50 @@ dependencies = [ name = "pallet-vesting" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] +[[package]] +name = "pallet-vesting" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09856239f4cd49a299d561693815f033c272a1142f435c11d32b241d057b4363" +dependencies = [ + "frame-benchmarking 26.0.0", + "frame-support 26.0.0", + "frame-system 26.0.0", + "log", + "parity-scale-codec", + "scale-info", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "pallet-whitelist" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-balances", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-preimage", "parity-scale-codec", "scale-info", - "sp-api", - "sp-core", - "sp-io", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -11029,49 +11384,49 @@ name = "pallet-xcm" version = "1.0.0" dependencies = [ "bounded-collections", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-runtime-parachains", + "polkadot-parachain-primitives 1.0.0", + "polkadot-runtime-parachains 1.0.0", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", ] [[package]] name = "pallet-xcm-benchmarks" version = "1.0.0" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-xcm", "parity-scale-codec", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-runtime-common", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", ] [[package]] @@ -11079,18 +11434,18 @@ name = "pallet-xcm-bridge-hub-router" version = "0.1.0" dependencies = [ "bp-xcm-bridge-hub-router", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "staging-xcm", - "staging-xcm-builder", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", ] [[package]] @@ -11108,7 +11463,7 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-relay-chain-interface", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-benchmarking-cli", "futures", "jsonrpsee", @@ -11117,7 +11472,7 @@ dependencies = [ "parachain-template-runtime", "parity-scale-codec", "polkadot-cli", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-basic-authorship", "sc-chain-spec", "sc-cli", @@ -11136,16 +11491,16 @@ dependencies = [ "sc-transaction-pool-api", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", "sp-consensus-aura", - "sp-core", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-timestamp", - "staging-xcm", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-timestamp 4.0.0-dev", + "staging-xcm 1.0.0", "substrate-build-script-utils", "substrate-frame-rpc-system", "substrate-prometheus-endpoint", @@ -11163,49 +11518,49 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-aura", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-collator-selection", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-parachain-template", - "pallet-session", + "pallet-session 4.0.0-dev", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-parachain-primitives", + "polkadot-parachain-primitives 1.0.0", "polkadot-runtime-common", "scale-info", "smallvec", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", ] @@ -11215,30 +11570,30 @@ version = "1.0.0" dependencies = [ "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", "num-traits", "pallet-asset-tx-payment", "pallet-assets", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-collator-selection", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-primitives", + "polkadot-core-primitives 1.0.0", + "polkadot-primitives 1.0.0", "rococo-runtime-constants", "scale-info", "smallvec", "sp-consensus-aura", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", "substrate-wasm-builder", "westend-runtime-constants", ] @@ -11253,26 +11608,26 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-test-relay-sproof-builder", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "hex-literal", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-collator-selection", - "pallet-session", + "pallet-session 4.0.0-dev", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-parachain-primitives", + "polkadot-parachain-primitives 1.0.0", "sp-consensus-aura", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", ] @@ -11298,9 +11653,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.6.5" +version = "3.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dec8a8073036902368c2cdc0387e85ff9a37054d7e7c98e592145e0c92cd4fb" +checksum = "881331e34fa842a2fb61cc2db9643a8fedc615e47cfcc52597d1af0db9a7e8fe" dependencies = [ "arrayvec 0.7.4", "bitvec", @@ -11313,11 +11668,11 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.6.5" +version = "3.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "312270ee71e1cd70289dacf597cab7b207aa107d2f28191c2ae45b2ece18a260" +checksum = "be30eaf4b0a9fba5336683b38de57bb86d179a35862ba6bfcf57625d006bde5b" dependencies = [ - "proc-macro-crate 1.3.1", + "proc-macro-crate 2.0.0", "proc-macro2", "quote", "syn 1.0.109", @@ -11478,13 +11833,13 @@ version = "0.0.0" dependencies = [ "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support", + "frame-support 4.0.0-dev", "parachains-common", "penpal-runtime", "rococo-emulated-chain", "serde_json", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "westend-emulated-chain", ] @@ -11500,10 +11855,10 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -11512,40 +11867,40 @@ dependencies = [ "pallet-asset-tx-payment", "pallet-assets", "pallet-aura", - "pallet-authorship", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-collator-selection", - "pallet-message-queue", - "pallet-session", + "pallet-message-queue 7.0.0-dev", + "pallet-session 4.0.0-dev", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-runtime-common", "scale-info", "smallvec", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", ] @@ -11715,7 +12070,7 @@ dependencies = [ "color-eyre", "nix 0.26.2", "polkadot-cli", - "polkadot-core-primitives", + "polkadot-core-primitives 1.0.0", "polkadot-node-core-pvf", "polkadot-node-core-pvf-common", "polkadot-node-core-pvf-execute-worker", @@ -11746,14 +12101,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "rand 0.8.5", "rand_chacha 0.3.1", "rand_core 0.5.1", "schnorrkel 0.9.1", - "sp-authority-discovery", - "sp-core", + "sp-authority-discovery 4.0.0-dev", + "sp-core 21.0.0", "tracing-gum", ] @@ -11773,14 +12128,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "rand 0.8.5", "rand_chacha 0.3.1", - "sp-application-crypto", - "sp-authority-discovery", - "sp-core", + "sp-application-crypto 23.0.0", + "sp-authority-discovery 4.0.0-dev", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "tracing-gum", ] @@ -11800,14 +12155,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "rand 0.8.5", "sc-network", "schnellru", - "sp-core", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "sp-tracing 10.0.0", "thiserror", "tracing-gum", @@ -11831,13 +12186,13 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "rand 0.8.5", "sc-network", "schnellru", - "sp-application-crypto", - "sp-core", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", "sp-keyring", "thiserror", "tracing-gum", @@ -11863,8 +12218,8 @@ dependencies = [ "sc-storage-monitor", "sc-sysinfo", "sc-tracing", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-keyring", "sp-maybe-compressed-blob", "substrate-build-script-utils", @@ -11889,14 +12244,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "sc-keystore", "sc-network", - "sp-core", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", - "sp-runtime", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "thiserror", "tokio-util", "tracing-gum", @@ -11908,11 +12263,24 @@ version = "1.0.0" dependencies = [ "parity-scale-codec", "scale-info", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] +[[package]] +name = "polkadot-core-primitives" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb752872d8cad4436a82bb187512262ca125c58e2cafb515d36b8206dd80d816" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-core 26.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "polkadot-dispute-distribution" version = "1.0.0" @@ -11933,14 +12301,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "sc-keystore", "sc-network", "schnellru", - "sp-application-crypto", + "sp-application-crypto 23.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "sp-tracing 10.0.0", "thiserror", "tracing-gum", @@ -11953,10 +12321,10 @@ dependencies = [ "criterion 0.4.0", "parity-scale-codec", "polkadot-node-primitives", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "reed-solomon-novelpoly", - "sp-core", - "sp-trie", + "sp-core 21.0.0", + "sp-trie 22.0.0", "thiserror", ] @@ -11973,18 +12341,18 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "quickcheck", "rand 0.8.5", "rand_chacha 0.3.1", "sc-network", "sc-network-common", - "sp-application-crypto", - "sp-authority-discovery", - "sp-consensus-babe", - "sp-core", + "sp-application-crypto 23.0.0", + "sp-authority-discovery 4.0.0-dev", + "sp-consensus-babe 0.10.0-dev", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "sp-tracing 10.0.0", "tracing-gum", ] @@ -12008,11 +12376,11 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "sc-network", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-keyring", "thiserror", "tracing-gum", @@ -12030,9 +12398,9 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", - "sp-core", + "sp-core 21.0.0", "sp-keyring", "sp-maybe-compressed-blob", "thiserror", @@ -12063,7 +12431,7 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "rand 0.8.5", "rand_chacha 0.3.1", @@ -12071,14 +12439,14 @@ dependencies = [ "sc-keystore", "schnellru", "schnorrkel 0.9.1", - "sp-application-crypto", + "sp-application-crypto 23.0.0", "sp-consensus", - "sp-consensus-babe", - "sp-consensus-slots", - "sp-core", + "sp-consensus-babe 0.10.0-dev", + "sp-consensus-slots 0.10.0-dev", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", - "sp-runtime", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "thiserror", "tracing-gum", ] @@ -12104,10 +12472,10 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-keyring", "thiserror", "tracing-gum", @@ -12126,14 +12494,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "polkadot-statement-table", "sc-keystore", - "sp-application-crypto", - "sp-core", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "sp-tracing 10.0.0", "thiserror", "tracing-gum", @@ -12147,9 +12515,9 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", - "sp-keystore", + "sp-keystore 0.27.0", "thiserror", "tracing-gum", "wasm-timer", @@ -12171,10 +12539,10 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", - "sp-core", + "sp-core 21.0.0", "sp-keyring", "sp-maybe-compressed-blob", "tracing-gum", @@ -12192,11 +12560,11 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-client-api", "sc-consensus-babe", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "tracing-gum", ] @@ -12215,8 +12583,8 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", - "sp-core", + "polkadot-primitives 1.0.0", + "sp-core 21.0.0", "thiserror", "tracing-gum", ] @@ -12236,14 +12604,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "sc-keystore", "schnellru", - "sp-application-crypto", - "sp-core", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "sp-tracing 10.0.0", "thiserror", "tracing-gum", @@ -12258,9 +12626,9 @@ dependencies = [ "futures-timer", "polkadot-node-subsystem", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sp-blockchain", - "sp-inherents", + "sp-inherents 4.0.0-dev", "thiserror", "tracing-gum", ] @@ -12279,13 +12647,13 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "sc-keystore", - "sp-application-crypto", - "sp-core", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "thiserror", "tracing-gum", ] @@ -12302,10 +12670,10 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", - "sp-application-crypto", - "sp-keystore", + "sp-application-crypto 23.0.0", + "sp-keystore 0.27.0", "thiserror", "tracing-gum", ] @@ -12326,7 +12694,7 @@ dependencies = [ "libc", "parity-scale-codec", "pin-project", - "polkadot-core-primitives", + "polkadot-core-primitives 1.0.0", "polkadot-node-core-pvf", "polkadot-node-core-pvf-common", "polkadot-node-core-pvf-execute-worker", @@ -12334,15 +12702,15 @@ dependencies = [ "polkadot-node-metrics", "polkadot-node-primitives", "polkadot-node-subsystem", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "procfs", "rand 0.8.5", "rococo-runtime", "rusty-fork", "sc-sysinfo", "slotmap", - "sp-core", + "sp-core 21.0.0", "sp-maybe-compressed-blob", "sp-wasm-interface 14.0.0", "tempfile", @@ -12364,14 +12732,14 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "sc-keystore", - "sp-application-crypto", - "sp-core", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", - "sp-runtime", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "thiserror", "tracing-gum", ] @@ -12387,15 +12755,15 @@ dependencies = [ "landlock", "libc", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "sc-executor", "sc-executor-common", "sc-executor-wasmtime", "seccompiler", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-io", + "sp-io 23.0.0", "sp-tracing 10.0.0", "substrate-build-script-utils", "tempfile", @@ -12413,8 +12781,8 @@ dependencies = [ "os_pipe", "parity-scale-codec", "polkadot-node-core-pvf-common", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "tracing-gum", ] @@ -12430,7 +12798,7 @@ dependencies = [ "os_pipe", "parity-scale-codec", "polkadot-node-core-pvf-common", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "rayon", "rococo-runtime", "sc-executor-common", @@ -12453,12 +12821,12 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "schnellru", - "sp-api", - "sp-consensus-babe", - "sp-core", + "sp-api 4.0.0-dev", + "sp-consensus-babe 0.10.0-dev", + "sp-core 21.0.0", "sp-keyring", "tracing-gum", ] @@ -12473,9 +12841,9 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "polkadot-node-primitives", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-network", - "sp-core", + "sp-core 21.0.0", "thiserror", "tokio", ] @@ -12491,7 +12859,7 @@ dependencies = [ "hyper", "log", "parity-scale-codec", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-test-service", "prioritized-metered-channel", "prometheus-parse", @@ -12520,7 +12888,7 @@ dependencies = [ "parity-scale-codec", "polkadot-node-jaeger", "polkadot-node-primitives", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "rand 0.8.5", "rand_chacha 0.3.1", "sc-authority-discovery", @@ -12539,16 +12907,16 @@ dependencies = [ "futures", "parity-scale-codec", "polkadot-erasure-coding", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "schnorrkel 0.9.1", "serde", - "sp-application-crypto", - "sp-consensus-babe", - "sp-core", - "sp-keystore", + "sp-application-crypto 23.0.0", + "sp-consensus-babe 0.10.0-dev", + "sp-core 21.0.0", + "sp-keystore 0.27.0", "sp-maybe-compressed-blob", - "sp-runtime", + "sp-runtime 24.0.0", "thiserror", "zstd 0.12.4", ] @@ -12571,14 +12939,14 @@ dependencies = [ "parking_lot 0.12.1", "polkadot-node-subsystem", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-client-api", "sc-keystore", "sc-utils", - "sp-application-crypto", - "sp-core", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", ] [[package]] @@ -12593,17 +12961,17 @@ dependencies = [ "polkadot-node-jaeger", "polkadot-node-network-protocol", "polkadot-node-primitives", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-statement-table", "sc-client-api", "sc-network", "sc-transaction-pool-api", "smallvec", - "sp-api", - "sp-authority-discovery", + "sp-api 4.0.0-dev", + "sp-authority-discovery 4.0.0-dev", "sp-blockchain", - "sp-consensus-babe", - "sp-runtime", + "sp-consensus-babe 0.10.0-dev", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint", "thiserror", ] @@ -12637,15 +13005,15 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", "polkadot-overseer", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "prioritized-metered-channel", "rand 0.8.5", "sc-client-api", "schnellru", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-keystore 0.27.0", "tempfile", "thiserror", "tracing-gum", @@ -12667,12 +13035,12 @@ dependencies = [ "polkadot-node-primitives", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "prioritized-metered-channel", "sc-client-api", - "sp-api", - "sp-core", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", "tikv-jemalloc-ctl", "tracing-gum", ] @@ -12702,9 +13070,9 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-relay-chain-interface", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-benchmarking-cli", - "frame-support", + "frame-support 4.0.0-dev", "frame-system-rpc-runtime-api", "frame-try-runtime", "futures", @@ -12713,14 +13081,14 @@ dependencies = [ "jsonrpsee", "log", "nix 0.26.2", - "pallet-transaction-payment", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc", "pallet-transaction-payment-rpc-runtime-api", "parachains-common", "parity-scale-codec", "penpal-runtime", "polkadot-cli", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-service", "rococo-parachain-runtime", "sc-basic-authorship", @@ -12742,24 +13110,24 @@ dependencies = [ "serde", "serde_json", "shell-runtime", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", - "sp-keystore", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", + "sp-keystore 0.27.0", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", - "sp-timestamp", + "sp-timestamp 4.0.0-dev", "sp-tracing 10.0.0", "sp-transaction-pool", - "sp-version", - "staging-xcm", + "sp-version 22.0.0", + "staging-xcm 1.0.0", "substrate-build-script-utils", "substrate-frame-rpc-system", "substrate-prometheus-endpoint", @@ -12776,13 +13144,31 @@ dependencies = [ "bounded-collections", "derive_more", "parity-scale-codec", - "polkadot-core-primitives", + "polkadot-core-primitives 1.0.0", "scale-info", "serde", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-weights", + "sp-weights 20.0.0", +] + +[[package]] +name = "polkadot-parachain-primitives" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a068a74dc66780f8d820ed1e36e32877995bb160fcdd59dd5717997cabdf5ea" +dependencies = [ + "bounded-collections", + "derive_more", + "parity-scale-codec", + "polkadot-core-primitives 5.0.0", + "scale-info", + "serde", + "sp-core 26.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", + "sp-weights 25.0.0", ] [[package]] @@ -12792,34 +13178,61 @@ dependencies = [ "bitvec", "hex-literal", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-authority-discovery", - "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-staking", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-arithmetic 16.0.0", + "sp-authority-discovery 4.0.0-dev", + "sp-consensus-slots 0.10.0-dev", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", ] +[[package]] +name = "polkadot-primitives" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d64d2b224f893fb34b020d3b126b5bb3275069f74e0e8da80a1c43560fe8aa9" +dependencies = [ + "bitvec", + "hex-literal", + "parity-scale-codec", + "polkadot-core-primitives 5.0.0", + "polkadot-parachain-primitives 4.0.0", + "scale-info", + "serde", + "sp-api 24.0.0", + "sp-application-crypto 28.0.0", + "sp-arithmetic 21.0.0", + "sp-authority-discovery 24.0.0", + "sp-consensus-slots 0.30.0", + "sp-core 26.0.0", + "sp-inherents 24.0.0", + "sp-io 28.0.0", + "sp-keystore 0.32.0", + "sp-runtime 29.0.0", + "sp-staking 24.0.0", + "sp-std 12.0.0", +] + [[package]] name = "polkadot-primitives-test-helpers" version = "1.0.0" dependencies = [ - "polkadot-primitives", + "polkadot-primitives 1.0.0", "rand 0.8.5", - "sp-application-crypto", - "sp-core", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", "sp-keyring", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -12829,7 +13242,7 @@ dependencies = [ "jsonrpsee", "mmr-rpc", "pallet-transaction-payment-rpc", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-chain-spec", "sc-client-api", "sc-consensus-babe", @@ -12842,13 +13255,13 @@ dependencies = [ "sc-rpc", "sc-sync-state-rpc", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-consensus-babe", - "sp-keystore", - "sp-runtime", + "sp-consensus-babe 0.10.0-dev", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "substrate-frame-rpc-system", "substrate-state-trie-migration-rpc", ] @@ -12858,54 +13271,54 @@ name = "polkadot-runtime-common" version = "1.0.0" dependencies = [ "bitvec", - "frame-benchmarking", - "frame-election-provider-support", - "frame-support", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", + "frame-support 4.0.0-dev", "frame-support-test", - "frame-system", + "frame-system 4.0.0-dev", "hex-literal", "impl-trait-for-tuples", "libsecp256k1", "log", "pallet-asset-rate", - "pallet-authorship", - "pallet-babe", - "pallet-balances", + "pallet-authorship 4.0.0-dev", + "pallet-babe 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-election-provider-multi-phase", "pallet-fast-unstake", "pallet-identity", - "pallet-session", - "pallet-staking", + "pallet-session 4.0.0-dev", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-fn", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-treasury", - "pallet-vesting", + "pallet-vesting 4.0.0-dev", "pallet-xcm-benchmarks", "parity-scale-codec", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", - "polkadot-runtime-parachains", + "polkadot-runtime-parachains 1.0.0", "rustc-hex", "scale-info", "serde", "serde_derive", "serde_json", "slot-range-helper", - "sp-api", - "sp-core", - "sp-inherents", - "sp-io", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", - "sp-keystore", - "sp-npos-elections", - "sp-runtime", - "sp-session", - "sp-staking", + "sp-keystore 0.27.0", + "sp-npos-elections 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "static_assertions", ] @@ -12914,13 +13327,27 @@ name = "polkadot-runtime-metrics" version = "1.0.0" dependencies = [ "bs58 0.5.0", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "parity-scale-codec", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", ] +[[package]] +name = "polkadot-runtime-metrics" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "808199f90ded6425371c09b08b9080a3d9f9fa44f890f951fff32443e9bf330b" +dependencies = [ + "bs58 0.5.0", + "frame-benchmarking 26.0.0", + "parity-scale-codec", + "polkadot-primitives 5.0.0", + "sp-std 12.0.0", + "sp-tracing 14.0.0", +] + [[package]] name = "polkadot-runtime-parachains" version = "1.0.0" @@ -12929,29 +13356,29 @@ dependencies = [ "bitflags 1.3.2", "bitvec", "derive_more", - "frame-benchmarking", - "frame-support", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", "frame-support-test", - "frame-system", + "frame-system 4.0.0-dev", "futures", "hex-literal", "impl-trait-for-tuples", "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-message-queue", - "pallet-session", - "pallet-staking", - "pallet-timestamp", - "pallet-vesting", - "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-primitives", + "pallet-authority-discovery 4.0.0-dev", + "pallet-authorship 4.0.0-dev", + "pallet-babe 4.0.0-dev", + "pallet-balances 4.0.0-dev", + "pallet-message-queue 7.0.0-dev", + "pallet-session 4.0.0-dev", + "pallet-staking 4.0.0-dev", + "pallet-timestamp 4.0.0-dev", + "pallet-vesting 4.0.0-dev", + "parity-scale-codec", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", - "polkadot-runtime-metrics", + "polkadot-runtime-metrics 1.0.0", "rand 0.8.5", "rand_chacha 0.3.1", "rustc-hex", @@ -12959,24 +13386,71 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-inherents", - "sp-io", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", - "sp-keystore", - "sp-runtime", - "sp-session", - "sp-staking", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-executor 1.0.0", "static_assertions", "thousands", ] +[[package]] +name = "polkadot-runtime-parachains" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b9d243b9f51e0bbd4e9f684399094e6c08bd76277eb3e22e30f1b989162280f" +dependencies = [ + "bitflags 1.3.2", + "bitvec", + "derive_more", + "frame-benchmarking 26.0.0", + "frame-support 26.0.0", + "frame-system 26.0.0", + "impl-trait-for-tuples", + "log", + "pallet-authority-discovery 26.0.0", + "pallet-authorship 26.0.0", + "pallet-babe 26.0.0", + "pallet-balances 26.0.0", + "pallet-message-queue 29.0.0", + "pallet-session 26.0.0", + "pallet-staking 26.0.0", + "pallet-timestamp 25.0.0", + "pallet-vesting 26.0.0", + "parity-scale-codec", + "polkadot-core-primitives 5.0.0", + "polkadot-parachain-primitives 4.0.0", + "polkadot-primitives 5.0.0", + "polkadot-runtime-metrics 5.0.0", + "rand 0.8.5", + "rand_chacha 0.3.1", + "rustc-hex", + "scale-info", + "serde", + "sp-api 24.0.0", + "sp-application-crypto 28.0.0", + "sp-core 26.0.0", + "sp-inherents 24.0.0", + "sp-io 28.0.0", + "sp-keystore 0.32.0", + "sp-runtime 29.0.0", + "sp-session 25.0.0", + "sp-staking 24.0.0", + "sp-std 12.0.0", + "staging-xcm 5.0.0", + "staging-xcm-executor 5.0.0", +] + [[package]] name = "polkadot-sdk-docs" version = "0.0.1" @@ -12989,7 +13463,7 @@ dependencies = [ "pallet-aura", "pallet-default-config-example", "pallet-examples", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "sc-cli", "sc-client-db", @@ -13004,11 +13478,11 @@ dependencies = [ "sc-rpc-api", "scale-info", "simple-mermaid 0.1.0 (git+https://github.com/kianenigma/simple-mermaid.git?branch=main)", - "sp-api", - "sp-core", - "sp-io", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", + "sp-runtime 24.0.0", "staging-chain-spec-builder", "staging-node-cli", "staging-parachain-info", @@ -13023,10 +13497,10 @@ dependencies = [ "assert_matches", "async-trait", "env_logger 0.9.3", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-benchmarking-cli", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-rpc-runtime-api", "futures", "hex-literal", @@ -13035,10 +13509,10 @@ dependencies = [ "kvdb-rocksdb", "log", "mmr-gadget", - "pallet-babe", + "pallet-babe 4.0.0-dev", "pallet-im-online", - "pallet-staking", - "pallet-transaction-payment", + "pallet-staking 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "parity-db", "parity-scale-codec", @@ -13048,7 +13522,7 @@ dependencies = [ "polkadot-availability-distribution", "polkadot-availability-recovery", "polkadot-collator-protocol", - "polkadot-core-primitives", + "polkadot-core-primitives 1.0.0", "polkadot-dispute-distribution", "polkadot-gossip-support", "polkadot-network-bridge", @@ -13074,11 +13548,11 @@ dependencies = [ "polkadot-node-subsystem-types", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "polkadot-rpc", - "polkadot-runtime-parachains", + "polkadot-runtime-parachains 1.0.0", "polkadot-statement-distribution", "polkadot-test-client", "rococo-runtime", @@ -13110,29 +13584,29 @@ dependencies = [ "serde", "serde_json", "serial_test", - "sp-api", - "sp-authority-discovery", + "sp-api 4.0.0-dev", + "sp-authority-discovery 4.0.0-dev", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-consensus-babe", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-beefy", "sp-consensus-grandpa", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "sp-mmr-primitives", "sp-offchain", - "sp-runtime", - "sp-session", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-state-machine 0.28.0", "sp-storage 13.0.0", - "sp-timestamp", + "sp-timestamp 4.0.0-dev", "sp-transaction-pool", - "sp-version", - "sp-weights", + "sp-version 22.0.0", + "sp-weights 20.0.0", "substrate-prometheus-endpoint", "tempfile", "thiserror", @@ -13159,17 +13633,17 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-primitives-test-helpers", "rand_chacha 0.3.1", "sc-keystore", "sc-network", - "sp-application-crypto", - "sp-authority-discovery", - "sp-core", + "sp-application-crypto 23.0.0", + "sp-authority-discovery 4.0.0-dev", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", - "sp-staking", + "sp-keystore 0.27.0", + "sp-staking 4.0.0-dev", "sp-tracing 10.0.0", "thiserror", "tracing-gum", @@ -13180,36 +13654,36 @@ name = "polkadot-statement-table" version = "1.0.0" dependencies = [ "parity-scale-codec", - "polkadot-primitives", - "sp-core", + "polkadot-primitives 1.0.0", + "sp-core 21.0.0", ] [[package]] name = "polkadot-test-client" version = "1.0.0" dependencies = [ - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "futures", "parity-scale-codec", "polkadot-node-subsystem", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "polkadot-test-runtime", "polkadot-test-service", "sc-block-builder", "sc-consensus", "sc-offchain", "sc-service", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", + "sp-consensus-babe 0.10.0-dev", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", - "sp-state-machine", - "sp-timestamp", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-timestamp 4.0.0-dev", "substrate-test-client", ] @@ -13236,10 +13710,10 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", "polkadot-node-subsystem-util", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "rand 0.8.5", - "sp-core", - "sp-keystore", + "sp-core 21.0.0", + "sp-keystore 0.27.0", "substrate-build-script-utils", "tracing-gum", ] @@ -13249,62 +13723,62 @@ name = "polkadot-test-runtime" version = "1.0.0" dependencies = [ "bitvec", - "frame-election-provider-support", + "frame-election-provider-support 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-rpc-runtime-api", "hex-literal", "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", + "pallet-authority-discovery 4.0.0-dev", + "pallet-authorship 4.0.0-dev", + "pallet-babe 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-grandpa", "pallet-indices", "pallet-offences", - "pallet-session", - "pallet-staking", + "pallet-session 4.0.0-dev", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", - "pallet-vesting", + "pallet-vesting 4.0.0-dev", "pallet-xcm", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-runtime-common", - "polkadot-runtime-parachains", + "polkadot-runtime-parachains 1.0.0", "rustc-hex", "scale-info", "serde", "serde_derive", "serde_json", "smallvec", - "sp-api", - "sp-authority-discovery", + "sp-api 4.0.0-dev", + "sp-authority-discovery 4.0.0-dev", "sp-block-builder", - "sp-consensus-babe", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-beefy", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", "sp-mmr-primitives", "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-transaction-pool", - "sp-trie", - "sp-version", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "sp-trie 22.0.0", + "sp-version 22.0.0", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", "test-runtime-constants", "tiny-keccak", @@ -13314,20 +13788,20 @@ dependencies = [ name = "polkadot-test-service" version = "1.0.0" dependencies = [ - "frame-system", + "frame-system 4.0.0-dev", "futures", "hex", - "pallet-balances", - "pallet-staking", - "pallet-transaction-payment", + "pallet-balances 4.0.0-dev", + "pallet-staking 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-overseer", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-rpc", "polkadot-runtime-common", - "polkadot-runtime-parachains", + "polkadot-runtime-parachains 1.0.0", "polkadot-service", "polkadot-test-runtime", "rand 0.8.5", @@ -13343,17 +13817,17 @@ dependencies = [ "sc-tracing", "sc-transaction-pool", "serde_json", - "sp-arithmetic", - "sp-authority-discovery", + "sp-arithmetic 16.0.0", + "sp-authority-discovery 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-consensus-babe", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-grandpa", - "sp-core", - "sp-inherents", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", "sp-keyring", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "substrate-test-client", "substrate-test-utils", "tempfile", @@ -13368,7 +13842,7 @@ version = "1.0.0" dependencies = [ "clap 4.4.10", "generate-bags", - "sp-io", + "sp-io 23.0.0", "westend-runtime", ] @@ -13640,9 +14114,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.69" +version = "1.0.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" +checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" dependencies = [ "unicode-ident", ] @@ -14179,10 +14653,10 @@ name = "remote-ext-tests-bags-list" version = "1.0.0" dependencies = [ "clap 4.4.10", - "frame-system", + "frame-system 4.0.0-dev", "log", "pallet-bags-list-remote-tests", - "sp-core", + "sp-core 21.0.0", "sp-tracing 10.0.0", "tokio", "westend-runtime", @@ -14332,16 +14806,16 @@ dependencies = [ "emulated-integration-tests-common", "pallet-im-online", "parachains-common", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "rococo-runtime", "rococo-runtime-constants", "sc-consensus-grandpa", "serde_json", - "sp-authority-discovery", - "sp-consensus-babe", + "sp-authority-discovery 4.0.0-dev", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-beefy", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -14357,41 +14831,41 @@ dependencies = [ "cumulus-primitives-aura", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-rpc-runtime-api", "pallet-assets", "pallet-aura", - "pallet-balances", - "pallet-message-queue", + "pallet-balances 4.0.0-dev", + "pallet-message-queue 7.0.0-dev", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-parachain-primitives", + "polkadot-parachain-primitives 1.0.0", "polkadot-runtime-common", "scale-info", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", ] @@ -14400,21 +14874,21 @@ name = "rococo-runtime" version = "1.0.0" dependencies = [ "binary-merkle-tree", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-executive", "frame-remote-externalities", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-asset-rate", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", + "pallet-authority-discovery 4.0.0-dev", + "pallet-authorship 4.0.0-dev", + "pallet-babe 4.0.0-dev", + "pallet-balances 4.0.0-dev", "pallet-beefy", "pallet-beefy-mmr", "pallet-bounties", @@ -14428,7 +14902,7 @@ dependencies = [ "pallet-im-online", "pallet-indices", "pallet-membership", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-mmr", "pallet-multisig", "pallet-nis", @@ -14440,26 +14914,26 @@ dependencies = [ "pallet-referenda", "pallet-root-testing", "pallet-scheduler", - "pallet-session", + "pallet-session 4.0.0-dev", "pallet-society", - "pallet-staking", + "pallet-staking 4.0.0-dev", "pallet-state-trie-migration", "pallet-sudo", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "pallet-tips", - "pallet-transaction-payment", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", "pallet-utility", - "pallet-vesting", + "pallet-vesting 4.0.0-dev", "pallet-whitelist", "pallet-xcm", "pallet-xcm-benchmarks", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-runtime-common", - "polkadot-runtime-parachains", + "polkadot-runtime-parachains 1.0.0", "rococo-runtime-constants", "scale-info", "separator", @@ -14467,31 +14941,31 @@ dependencies = [ "serde_derive", "serde_json", "smallvec", - "sp-api", - "sp-arithmetic", - "sp-authority-discovery", + "sp-api 4.0.0-dev", + "sp-arithmetic 16.0.0", + "sp-authority-discovery 4.0.0-dev", "sp-block-builder", - "sp-consensus-babe", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-beefy", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", "sp-mmr-primitives", "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-tracing 10.0.0", "sp-transaction-pool", - "sp-trie", - "sp-version", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "sp-trie 22.0.0", + "sp-version 22.0.0", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "static_assertions", "substrate-wasm-builder", "tiny-keccak", @@ -14502,14 +14976,14 @@ dependencies = [ name = "rococo-runtime-constants" version = "1.0.0" dependencies = [ - "frame-support", - "polkadot-primitives", + "frame-support 4.0.0-dev", + "polkadot-primitives 1.0.0", "polkadot-runtime-common", "smallvec", - "sp-core", - "sp-runtime", - "sp-weights", - "staging-xcm", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-weights 20.0.0", + "staging-xcm 1.0.0", ] [[package]] @@ -14839,7 +15313,7 @@ name = "sc-allocator" version = "4.1.0-dev" dependencies = [ "log", - "sp-core", + "sp-core 21.0.0", "sp-wasm-interface 14.0.0", "thiserror", ] @@ -14863,12 +15337,12 @@ dependencies = [ "rand 0.8.5", "sc-client-api", "sc-network", - "sp-api", - "sp-authority-discovery", + "sp-api 4.0.0-dev", + "sp-authority-discovery 4.0.0-dev", "sp-blockchain", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 21.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", @@ -14890,12 +15364,12 @@ dependencies = [ "sc-telemetry", "sc-transaction-pool", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", ] @@ -14905,14 +15379,14 @@ name = "sc-block-builder" version = "0.10.0-dev" dependencies = [ "parity-scale-codec", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", - "sp-trie", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-trie 22.0.0", "substrate-test-runtime-client", ] @@ -14932,15 +15406,15 @@ dependencies = [ "sc-telemetry", "serde", "serde_json", - "sp-application-crypto", + "sp-application-crypto 23.0.0", "sp-blockchain", - "sp-consensus-babe", - "sp-core", - "sp-genesis-builder", - "sp-io", + "sp-consensus-babe 0.10.0-dev", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "substrate-test-runtime", ] @@ -14985,13 +15459,13 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", - "sp-panic-handler", - "sp-runtime", + "sp-keystore 0.27.0", + "sp-panic-handler 8.0.0", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", - "sp-version", + "sp-version 22.0.0", "tempfile", "thiserror", "tokio", @@ -15009,18 +15483,18 @@ dependencies = [ "sc-executor", "sc-transaction-pool-api", "sc-utils", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-database", "sp-externalities 0.19.0", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-statement-store", "sp-storage 13.0.0", "sp-test-primitives", - "sp-trie", + "sp-trie 22.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime", "thiserror", @@ -15047,14 +15521,14 @@ dependencies = [ "sc-client-api", "sc-state-db", "schnellru", - "sp-arithmetic", + "sp-arithmetic 16.0.0", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-database", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-tracing 10.0.0", - "sp-trie", + "sp-trie 22.0.0", "substrate-test-runtime-client", "tempfile", ] @@ -15073,12 +15547,12 @@ dependencies = [ "sc-client-api", "sc-utils", "serde", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", - "sp-state-machine", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-test-primitives", "substrate-prometheus-endpoint", "thiserror", @@ -15101,19 +15575,19 @@ dependencies = [ "sc-network", "sc-network-test", "sc-telemetry", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-aura", - "sp-consensus-slots", - "sp-core", - "sp-inherents", + "sp-consensus-slots 0.10.0-dev", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", "sp-keyring", - "sp-keystore", - "sp-runtime", - "sp-timestamp", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-timestamp 4.0.0-dev", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", @@ -15143,19 +15617,19 @@ dependencies = [ "sc-network-test", "sc-telemetry", "sc-transaction-pool-api", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-consensus-babe", - "sp-consensus-slots", - "sp-core", - "sp-inherents", + "sp-consensus-babe 0.10.0-dev", + "sp-consensus-slots 0.10.0-dev", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", "sp-keyring", - "sp-keystore", - "sp-runtime", - "sp-timestamp", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-timestamp 4.0.0-dev", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", @@ -15177,15 +15651,15 @@ dependencies = [ "sc-transaction-pool-api", "serde", "serde_json", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", "sp-blockchain", "sp-consensus", - "sp-consensus-babe", - "sp-core", + "sp-consensus-babe 0.10.0-dev", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", - "sp-runtime", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "substrate-test-runtime-client", "thiserror", "tokio", @@ -15212,18 +15686,18 @@ dependencies = [ "sc-network-test", "sc-utils", "serde", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-arithmetic 16.0.0", "sp-blockchain", "sp-consensus", "sp-consensus-beefy", "sp-consensus-grandpa", - "sp-core", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", @@ -15247,8 +15721,8 @@ dependencies = [ "serde", "serde_json", "sp-consensus-beefy", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "substrate-test-runtime-client", "thiserror", "tokio", @@ -15263,7 +15737,7 @@ dependencies = [ "sc-client-api", "sc-consensus", "sp-blockchain", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -15297,16 +15771,16 @@ dependencies = [ "sc-utils", "serde", "serde_json", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-arithmetic 16.0.0", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", - "sp-runtime", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", @@ -15330,9 +15804,9 @@ dependencies = [ "serde", "sp-blockchain", "sp-consensus-grandpa", - "sp-core", + "sp-core 21.0.0", "sp-keyring", - "sp-runtime", + "sp-runtime 24.0.0", "substrate-test-runtime-client", "thiserror", "tokio", @@ -15358,17 +15832,17 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "serde", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", "sp-consensus-aura", - "sp-consensus-babe", - "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-keystore", - "sp-runtime", - "sp-timestamp", + "sp-consensus-babe 0.10.0-dev", + "sp-consensus-slots 0.10.0-dev", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-timestamp 4.0.0-dev", "substrate-prometheus-endpoint", "substrate-test-runtime-client", "substrate-test-runtime-transaction-pool", @@ -15388,14 +15862,14 @@ dependencies = [ "parking_lot 0.12.1", "sc-client-api", "sc-consensus", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-pow", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint", "thiserror", ] @@ -15412,14 +15886,14 @@ dependencies = [ "sc-client-api", "sc-consensus", "sc-telemetry", - "sp-arithmetic", + "sp-arithmetic 16.0.0", "sp-blockchain", "sp-consensus", - "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-consensus-slots 0.10.0-dev", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "substrate-test-runtime-client", ] @@ -15441,18 +15915,18 @@ dependencies = [ "sc-runtime-test", "sc-tracing", "schnellru", - "sp-api", - "sp-core", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-io", + "sp-io 23.0.0", "sp-maybe-compressed-blob", - "sp-panic-handler", - "sp-runtime", + "sp-panic-handler 8.0.0", + "sp-runtime 24.0.0", "sp-runtime-interface 17.0.0", - "sp-state-machine", + "sp-state-machine 0.28.0", "sp-tracing 10.0.0", - "sp-trie", - "sp-version", + "sp-trie 22.0.0", + "sp-version 22.0.0", "sp-wasm-interface 14.0.0", "substrate-test-runtime", "tempfile", @@ -15488,7 +15962,7 @@ dependencies = [ "sc-allocator", "sc-executor-common", "sc-runtime-test", - "sp-io", + "sp-io 23.0.0", "sp-runtime-interface 17.0.0", "sp-wasm-interface 14.0.0", "tempfile", @@ -15509,7 +15983,7 @@ dependencies = [ "sc-network-common", "sc-network-sync", "sp-blockchain", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -15519,9 +15993,9 @@ dependencies = [ "array-bytes 6.1.0", "parking_lot 0.12.1", "serde_json", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-keystore 0.27.0", "tempfile", "thiserror", ] @@ -15545,12 +16019,12 @@ dependencies = [ "sc-client-api", "sc-network", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-consensus", - "sp-core", - "sp-keystore", + "sp-core 21.0.0", + "sp-keystore 0.27.0", "sp-mixnet", - "sp-runtime", + "sp-runtime 24.0.0", "thiserror", ] @@ -15587,10 +16061,10 @@ dependencies = [ "serde", "serde_json", "smallvec", - "sp-arithmetic", + "sp-arithmetic 16.0.0", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-test-primitives", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", @@ -15624,8 +16098,8 @@ dependencies = [ "sc-network", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "substrate-test-runtime", "substrate-test-runtime-client", "thiserror", @@ -15646,7 +16120,7 @@ dependencies = [ "sc-consensus", "sp-consensus", "sp-consensus-grandpa", - "sp-runtime", + "sp-runtime 24.0.0", "tempfile", ] @@ -15666,7 +16140,7 @@ dependencies = [ "sc-network-common", "sc-network-sync", "schnellru", - "sp-runtime", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", "tokio", @@ -15688,8 +16162,8 @@ dependencies = [ "sc-client-api", "sc-network", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "thiserror", ] @@ -15736,12 +16210,12 @@ dependencies = [ "sc-utils", "schnellru", "smallvec", - "sp-arithmetic", + "sp-arithmetic 16.0.0", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-test-primitives", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", @@ -15773,8 +16247,8 @@ dependencies = [ "sc-utils", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", "substrate-test-runtime", "substrate-test-runtime-client", @@ -15795,7 +16269,7 @@ dependencies = [ "sc-network-sync", "sc-utils", "sp-consensus", - "sp-runtime", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint", ] @@ -15826,13 +16300,13 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "sc-utils", - "sp-api", + "sp-api 4.0.0-dev", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-keystore", + "sp-keystore 0.27.0", "sp-offchain", - "sp-runtime", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", "substrate-test-runtime-client", "threadpool", @@ -15872,18 +16346,18 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-io", - "sp-keystore", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-keystore 0.27.0", "sp-offchain", "sp-rpc", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-statement-store", - "sp-version", + "sp-version 22.0.0", "substrate-test-runtime-client", "tokio", ] @@ -15900,10 +16374,10 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-core", + "sp-core 21.0.0", "sp-rpc", - "sp-runtime", - "sp-version", + "sp-runtime 24.0.0", + "sp-version 22.0.0", "thiserror", ] @@ -15943,15 +16417,15 @@ dependencies = [ "sc-utils", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", "sp-maybe-compressed-blob", "sp-rpc", - "sp-runtime", - "sp-version", + "sp-runtime 24.0.0", + "sp-version 22.0.0", "substrate-test-runtime", "substrate-test-runtime-client", "thiserror", @@ -15963,9 +16437,9 @@ dependencies = [ name = "sc-runtime-test" version = "2.0.0" dependencies = [ - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-runtime-interface 17.0.0", "sp-std 8.0.0", "substrate-wasm-builder", @@ -16010,20 +16484,20 @@ dependencies = [ "sc-utils", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-keystore", - "sp-runtime", - "sp-session", - "sp-state-machine", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-state-machine 0.28.0", "sp-storage 13.0.0", "sp-transaction-pool", "sp-transaction-storage-proof", - "sp-trie", - "sp-version", + "sp-trie 22.0.0", + "sp-version 22.0.0", "static_init 1.0.3", "substrate-prometheus-endpoint", "substrate-test-runtime", @@ -16055,16 +16529,16 @@ dependencies = [ "sc-network-sync", "sc-service", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-storage 13.0.0", "sp-tracing 10.0.0", - "sp-trie", + "sp-trie 22.0.0", "substrate-test-runtime", "substrate-test-runtime-client", "tempfile", @@ -16078,7 +16552,7 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.1", - "sp-core", + "sp-core 21.0.0", ] [[package]] @@ -16091,10 +16565,10 @@ dependencies = [ "parking_lot 0.12.1", "sc-client-api", "sc-keystore", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-statement-store", "substrate-prometheus-endpoint", "tempfile", @@ -16109,7 +16583,7 @@ dependencies = [ "fs4", "log", "sc-client-db", - "sp-core", + "sp-core 21.0.0", "thiserror", "tokio", ] @@ -16128,7 +16602,7 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-runtime", + "sp-runtime 24.0.0", "thiserror", ] @@ -16146,9 +16620,9 @@ dependencies = [ "sc-telemetry", "serde", "serde_json", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -16188,11 +16662,11 @@ dependencies = [ "sc-client-api", "sc-tracing-proc-macro", "serde", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-rpc", - "sp-runtime", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", "thiserror", "tracing", @@ -16229,11 +16703,11 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", "sp-transaction-pool", "substrate-prometheus-endpoint", @@ -16254,8 +16728,8 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "thiserror", ] @@ -16270,7 +16744,7 @@ dependencies = [ "log", "parking_lot 0.12.1", "prometheus", - "sp-arithmetic", + "sp-arithmetic 16.0.0", "tokio-test", ] @@ -16437,11 +16911,29 @@ dependencies = [ [[package]] name = "secp256k1" -version = "0.28.0" +version = "0.24.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1629c9c557ef9b293568b338dddfc8208c98a18c59d722a9d53f859d9c9b62" +dependencies = [ + "secp256k1-sys 0.6.1", +] + +[[package]] +name = "secp256k1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2acea373acb8c21ecb5a23741452acd2593ed44ee3d343e72baaa143bc89d0d5" dependencies = [ - "secp256k1-sys", + "secp256k1-sys 0.9.0", +] + +[[package]] +name = "secp256k1-sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83080e2c2fc1006e625be82e5d1eb6a43b7fd9578b617fcc55814daf286bba4b" +dependencies = [ + "cc", ] [[package]] @@ -16495,27 +16987,27 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-timestamp", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "pallet-aura", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-sudo", - "pallet-timestamp", + "pallet-timestamp 4.0.0-dev", "parachains-common", "parity-scale-codec", "scale-info", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", "substrate-wasm-builder", ] @@ -16744,31 +17236,31 @@ dependencies = [ "cumulus-pallet-xcm", "cumulus-primitives-core", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-try-runtime", "pallet-aura", - "pallet-message-queue", - "pallet-timestamp", + "pallet-message-queue 7.0.0-dev", + "pallet-timestamp 4.0.0-dev", "parachains-common", "parity-scale-codec", "scale-info", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-genesis-builder", - "sp-inherents", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "staging-parachain-info", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", ] @@ -16868,7 +17360,7 @@ dependencies = [ "enumn", "parity-scale-codec", "paste", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -17062,16 +17554,38 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-api-proc-macro", - "sp-core", + "sp-api-proc-macro 4.0.0-dev", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-metadata-ir", - "sp-runtime", - "sp-state-machine", + "sp-metadata-ir 0.1.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-std 8.0.0", "sp-test-primitives", - "sp-trie", - "sp-version", + "sp-trie 22.0.0", + "sp-version 22.0.0", + "thiserror", +] + +[[package]] +name = "sp-api" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4d3518f5454764fb2835b2a0f3b2ed23a432f5c0b7a81ff122ec68361c91de3" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", + "scale-info", + "sp-api-proc-macro 13.0.0", + "sp-core 26.0.0", + "sp-externalities 0.23.0", + "sp-metadata-ir 0.4.0", + "sp-runtime 29.0.0", + "sp-state-machine 0.33.0", + "sp-std 12.0.0", + "sp-trie 27.0.0", + "sp-version 27.0.0", "thiserror", ] @@ -17089,6 +17603,21 @@ dependencies = [ "syn 2.0.39", ] +[[package]] +name = "sp-api-proc-macro" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66f4030c3fe4a7dfb720d9007c32be4c18a4431b934ded41138056d627937894" +dependencies = [ + "Inflector", + "blake2 0.10.6", + "expander 2.0.0", + "proc-macro-crate 1.3.1", + "proc-macro2", + "quote", + "syn 2.0.39", +] + [[package]] name = "sp-api-test" version = "2.0.1" @@ -17100,13 +17629,13 @@ dependencies = [ "rustversion", "sc-block-builder", "scale-info", - "sp-api", + "sp-api 4.0.0-dev", "sp-consensus", - "sp-core", - "sp-runtime", - "sp-state-machine", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-tracing 10.0.0", - "sp-version", + "sp-version 22.0.0", "static_assertions", "substrate-test-runtime-client", "trybuild", @@ -17119,19 +17648,33 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-std 8.0.0", ] +[[package]] +name = "sp-application-crypto" +version = "28.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23030de8eae0272c705cf3e2ce0523a64708a6b53aa23f3cf9053ca63abd08d7" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-core 26.0.0", + "sp-io 28.0.0", + "sp-std 12.0.0", +] + [[package]] name = "sp-application-crypto-test" version = "2.0.0" dependencies = [ - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-keystore 0.27.0", "substrate-test-runtime-client", ] @@ -17147,11 +17690,26 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-core", + "sp-core 21.0.0", "sp-std 8.0.0", "static_assertions", ] +[[package]] +name = "sp-arithmetic" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9cf6e5c0c7c2e7be3a4a10af5316d2d40182915509a70f632a66c238a05c37b" +dependencies = [ + "integer-sqrt", + "num-traits", + "parity-scale-codec", + "scale-info", + "serde", + "sp-std 12.0.0", + "static_assertions", +] + [[package]] name = "sp-arithmetic-fuzzer" version = "2.0.0" @@ -17160,7 +17718,7 @@ dependencies = [ "fraction", "honggfuzz", "num-bigint", - "sp-arithmetic", + "sp-arithmetic 16.0.0", ] [[package]] @@ -17187,19 +17745,33 @@ version = "4.0.0-dev" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] +[[package]] +name = "sp-authority-discovery" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86851319959a50da57aff34ccc52329e9b02e7a560eae61a39f8a01ecaa7635e" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api 24.0.0", + "sp-application-crypto 28.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "sp-block-builder" version = "4.0.0-dev" dependencies = [ - "sp-api", - "sp-inherents", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -17212,11 +17784,11 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "schnellru", - "sp-api", + "sp-api 4.0.0-dev", "sp-consensus", "sp-database", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "thiserror", ] @@ -17227,10 +17799,10 @@ dependencies = [ "async-trait", "futures", "log", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-test-primitives", "thiserror", ] @@ -17242,13 +17814,13 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", - "sp-consensus-slots", - "sp-inherents", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-consensus-slots 0.10.0-dev", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-timestamp", + "sp-timestamp 4.0.0-dev", ] [[package]] @@ -17259,14 +17831,34 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-consensus-slots 0.10.0-dev", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-timestamp", + "sp-timestamp 4.0.0-dev", +] + +[[package]] +name = "sp-consensus-babe" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85f1cb856b373ada1dd15fba81df007bdb4fd92fa9d388e0fb90822eb754fdf4" +dependencies = [ + "async-trait", + "parity-scale-codec", + "scale-info", + "serde", + "sp-api 24.0.0", + "sp-application-crypto 28.0.0", + "sp-consensus-slots 0.30.0", + "sp-core 26.0.0", + "sp-inherents 24.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", + "sp-timestamp 24.0.0", ] [[package]] @@ -17278,12 +17870,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-io", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", "strum", "w3f-bls", @@ -17298,11 +17890,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -17311,9 +17903,9 @@ name = "sp-consensus-pow" version = "0.10.0-dev" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-core", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -17324,11 +17916,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-consensus-slots", - "sp-core", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-consensus-slots 0.10.0-dev", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -17340,7 +17932,20 @@ dependencies = [ "scale-info", "serde", "sp-std 8.0.0", - "sp-timestamp", + "sp-timestamp 4.0.0-dev", +] + +[[package]] +name = "sp-consensus-slots" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0646da6e552fd9ab412aafdbe5edc04109f7701b7760b93c5675b5af0c9ed105" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-std 12.0.0", + "sp-timestamp 24.0.0", ] [[package]] @@ -17374,12 +17979,12 @@ dependencies = [ "regex", "scale-info", "schnorrkel 0.9.1", - "secp256k1", + "secp256k1 0.28.0", "secrecy", "serde", "serde_json", - "sp-core-hashing", - "sp-core-hashing-proc-macro", + "sp-core-hashing 9.0.0", + "sp-core-hashing-proc-macro 9.0.0", "sp-debug-derive 8.0.0", "sp-externalities 0.19.0", "sp-runtime-interface 17.0.0", @@ -17393,6 +17998,54 @@ dependencies = [ "zeroize", ] +[[package]] +name = "sp-core" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0db34a19be2efa0398a9506a365392d93a85220856d55e0eb78165ad2e1bedc" +dependencies = [ + "array-bytes 6.1.0", + "bip39", + "bitflags 1.3.2", + "blake2 0.10.6", + "bounded-collections", + "bs58 0.5.0", + "dyn-clonable", + "ed25519-zebra 3.1.0", + "futures", + "hash-db", + "hash256-std-hasher", + "impl-serde", + "itertools 0.10.5", + "lazy_static", + "libsecp256k1", + "log", + "merlin 2.0.1", + "parity-scale-codec", + "parking_lot 0.12.1", + "paste", + "primitive-types", + "rand 0.8.5", + "regex", + "scale-info", + "schnorrkel 0.9.1", + "secp256k1 0.24.3", + "secrecy", + "serde", + "sp-core-hashing 13.0.0", + "sp-debug-derive 12.0.0", + "sp-externalities 0.23.0", + "sp-runtime-interface 22.0.0", + "sp-std 12.0.0", + "sp-storage 17.0.0", + "ss58-registry", + "substrate-bip39", + "thiserror", + "tracing", + "w3f-bls", + "zeroize", +] + [[package]] name = "sp-core-fuzz" version = "0.0.0" @@ -17400,7 +18053,7 @@ dependencies = [ "lazy_static", "libfuzzer-sys", "regex", - "sp-core", + "sp-core 21.0.0", ] [[package]] @@ -17415,12 +18068,37 @@ dependencies = [ "twox-hash", ] +[[package]] +name = "sp-core-hashing" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb8524f01591ee58b46cd83c9dbc0fcffd2fd730dabec4f59326cd58a00f17e2" +dependencies = [ + "blake2b_simd", + "byteorder", + "digest 0.10.7", + "sha2 0.10.7", + "sha3", + "twox-hash", +] + [[package]] name = "sp-core-hashing-proc-macro" version = "9.0.0" dependencies = [ "quote", - "sp-core-hashing", + "sp-core-hashing 9.0.0", + "syn 2.0.39", +] + +[[package]] +name = "sp-core-hashing-proc-macro" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42ce3e6931303769197da81facefa86159fa1085dcd96ecb7e7407b5b93582a0" +dependencies = [ + "quote", + "sp-core-hashing 13.0.0", "syn 2.0.39", ] @@ -17492,6 +18170,17 @@ dependencies = [ "syn 2.0.39", ] +[[package]] +name = "sp-debug-derive" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50535e1a5708d3ba5c1195b59ebefac61cc8679c2c24716b87a86e8b7ed2e4a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.39", +] + [[package]] name = "sp-externalities" version = "0.19.0" @@ -17513,16 +18202,40 @@ dependencies = [ "sp-storage 13.0.0 (git+https://github.com/paritytech/polkadot-sdk)", ] +[[package]] +name = "sp-externalities" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "884d05160bc89d0943d1c9fb8006c3d44b80f37f8af607aeff8d4d9cc82e279a" +dependencies = [ + "environmental", + "parity-scale-codec", + "sp-std 12.0.0", + "sp-storage 17.0.0", +] + [[package]] name = "sp-genesis-builder" version = "0.1.0" dependencies = [ "serde_json", - "sp-api", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] +[[package]] +name = "sp-genesis-builder" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65de7e1d4de8ac2645913ed7202c71ba5783e39286f2be40f0c45a8e472ad9fd" +dependencies = [ + "serde_json", + "sp-api 24.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "sp-inherents" version = "4.0.0-dev" @@ -17532,11 +18245,26 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", "thiserror", ] +[[package]] +name = "sp-inherents" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c681a65a707014d505bf675e452c28b02eb55d9499f2407b85feef651fce0c2e" +dependencies = [ + "async-trait", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-runtime 29.0.0", + "sp-std 12.0.0", + "thiserror", +] + [[package]] name = "sp-io" version = "23.0.0" @@ -17547,15 +18275,40 @@ dependencies = [ "log", "parity-scale-codec", "rustversion", - "secp256k1", - "sp-core", + "secp256k1 0.28.0", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-keystore", + "sp-keystore 0.27.0", "sp-runtime-interface 17.0.0", - "sp-state-machine", + "sp-state-machine 0.28.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-trie", + "sp-trie 22.0.0", + "tracing", + "tracing-core", +] + +[[package]] +name = "sp-io" +version = "28.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "301c0ce94f80b324465a6f6173183aa07b26bd71d67f94a44de1fd11dea4a7cb" +dependencies = [ + "bytes", + "ed25519-dalek", + "libsecp256k1", + "log", + "parity-scale-codec", + "rustversion", + "secp256k1 0.24.3", + "sp-core 26.0.0", + "sp-externalities 0.23.0", + "sp-keystore 0.32.0", + "sp-runtime-interface 22.0.0", + "sp-state-machine 0.33.0", + "sp-std 12.0.0", + "sp-tracing 14.0.0", + "sp-trie 27.0.0", "tracing", "tracing-core", ] @@ -17565,8 +18318,8 @@ name = "sp-keyring" version = "24.0.0" dependencies = [ "lazy_static", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "strum", ] @@ -17578,11 +18331,24 @@ dependencies = [ "parking_lot 0.12.1", "rand 0.7.3", "rand_chacha 0.2.2", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", "thiserror", ] +[[package]] +name = "sp-keystore" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1db18ab01b2684856904c973d2be7dbf9ab3607cf706a7bd6648812662e5e7c5" +dependencies = [ + "parity-scale-codec", + "parking_lot 0.12.1", + "sp-core 26.0.0", + "sp-externalities 0.23.0", + "thiserror", +] + [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" @@ -17601,14 +18367,26 @@ dependencies = [ "sp-std 8.0.0", ] +[[package]] +name = "sp-metadata-ir" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ca9ff0e522a74725ac92f009d38deeb12e880f5296afbd78a6c6b970b773278" +dependencies = [ + "frame-metadata", + "parity-scale-codec", + "scale-info", + "sp-std 12.0.0", +] + [[package]] name = "sp-mixnet" version = "0.1.0-dev" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", "sp-std 8.0.0", ] @@ -17622,10 +18400,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-core", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", "sp-debug-derive 8.0.0", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", "thiserror", ] @@ -17638,13 +18416,28 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-arithmetic", - "sp-core", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "substrate-test-utils", ] +[[package]] +name = "sp-npos-elections" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ccca7310c7b4144c6cf76e0d1ff75252fb9ffc0a03db50ac25092f981db9e3c" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-arithmetic 21.0.0", + "sp-core 26.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "sp-npos-elections-fuzzer" version = "2.0.0-alpha.5" @@ -17652,17 +18445,17 @@ dependencies = [ "clap 4.4.10", "honggfuzz", "rand 0.8.5", - "sp-npos-elections", - "sp-runtime", + "sp-npos-elections 4.0.0-dev", + "sp-runtime 24.0.0", ] [[package]] name = "sp-offchain" version = "4.0.0-dev" dependencies = [ - "sp-api", - "sp-core", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -17674,6 +18467,17 @@ dependencies = [ "regex", ] +[[package]] +name = "sp-panic-handler" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00e40857ed3e0187f145b037c733545c5633859f1bd1d1b09deb52805fa696a" +dependencies = [ + "backtrace", + "lazy_static", + "regex", +] + [[package]] name = "sp-rpc" version = "6.0.0" @@ -17681,7 +18485,7 @@ dependencies = [ "rustc-hash", "serde", "serde_json", - "sp-core", + "sp-core 21.0.0", ] [[package]] @@ -17700,19 +18504,42 @@ dependencies = [ "serde", "serde_json", "simple-mermaid 0.1.0 (git+https://github.com/kianenigma/simple-mermaid.git?branch=main)", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-state-machine", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-state-machine 0.28.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-weights", + "sp-weights 20.0.0", "substrate-test-runtime-client", "zstd 0.12.4", ] +[[package]] +name = "sp-runtime" +version = "29.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "082bae4a164b8b629ce9cee79ff3c6b20e66d11d8ef37398796567d616325da4" +dependencies = [ + "either", + "hash256-std-hasher", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "paste", + "rand 0.8.5", + "scale-info", + "serde", + "sp-application-crypto 28.0.0", + "sp-arithmetic 21.0.0", + "sp-core 26.0.0", + "sp-io 28.0.0", + "sp-std 12.0.0", + "sp-weights 25.0.0", +] + [[package]] name = "sp-runtime-interface" version = "17.0.0" @@ -17722,12 +18549,12 @@ dependencies = [ "parity-scale-codec", "primitive-types", "rustversion", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-io", + "sp-io 23.0.0", "sp-runtime-interface-proc-macro 11.0.0", "sp-runtime-interface-test-wasm", - "sp-state-machine", + "sp-state-machine 0.28.0", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-tracing 10.0.0", @@ -17754,6 +18581,25 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "sp-runtime-interface" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "695bba5d981a6fd3131b098d65f620601bd822501612bfb65897d4bb660762b1" +dependencies = [ + "bytes", + "impl-trait-for-tuples", + "parity-scale-codec", + "primitive-types", + "sp-externalities 0.23.0", + "sp-runtime-interface-proc-macro 15.0.0", + "sp-std 12.0.0", + "sp-storage 17.0.0", + "sp-tracing 14.0.0", + "sp-wasm-interface 18.0.0", + "static_assertions", +] + [[package]] name = "sp-runtime-interface-proc-macro" version = "11.0.0" @@ -17778,18 +18624,31 @@ dependencies = [ "syn 2.0.39", ] +[[package]] +name = "sp-runtime-interface-proc-macro" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b2afcbd1bd18d323371111b66b7ac2870bdc1c86c3d7b0dae67b112ca52b4d8" +dependencies = [ + "Inflector", + "proc-macro-crate 1.3.1", + "proc-macro2", + "quote", + "syn 2.0.39", +] + [[package]] name = "sp-runtime-interface-test" version = "2.0.0" dependencies = [ "sc-executor", "sc-executor-common", - "sp-io", - "sp-runtime", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-runtime-interface 17.0.0", "sp-runtime-interface-test-wasm", "sp-runtime-interface-test-wasm-deprecated", - "sp-state-machine", + "sp-state-machine 0.28.0", "tracing", "tracing-core", ] @@ -17799,8 +18658,8 @@ name = "sp-runtime-interface-test-wasm" version = "2.0.0" dependencies = [ "bytes", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-runtime-interface 17.0.0", "sp-std 8.0.0", "substrate-wasm-builder", @@ -17810,8 +18669,8 @@ dependencies = [ name = "sp-runtime-interface-test-wasm-deprecated" version = "2.0.0" dependencies = [ - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-runtime-interface 17.0.0", "substrate-wasm-builder", ] @@ -17822,14 +18681,30 @@ version = "4.0.0-dev" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-core", - "sp-keystore", - "sp-runtime", - "sp-staking", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", ] +[[package]] +name = "sp-session" +version = "25.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17e77481b0e44b998b4ecf111ea49384d3f3dcdc2479a93f0eea2650050f55e5" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api 24.0.0", + "sp-core 26.0.0", + "sp-keystore 0.32.0", + "sp-runtime 29.0.0", + "sp-staking 24.0.0", + "sp-std 12.0.0", +] + [[package]] name = "sp-staking" version = "4.0.0-dev" @@ -17838,11 +18713,26 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] +[[package]] +name = "sp-staking" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae2d1164378d66b4b9f672d0c920104c59aeba02655522c0fd511c71c2daf614" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core 26.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", +] + [[package]] name = "sp-state-machine" version = "0.28.0" @@ -17856,12 +18746,34 @@ dependencies = [ "pretty_assertions", "rand 0.8.5", "smallvec", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-panic-handler", - "sp-runtime", + "sp-panic-handler 8.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-trie", + "sp-trie 22.0.0", + "thiserror", + "tracing", + "trie-db", +] + +[[package]] +name = "sp-state-machine" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df7c6680d9342c22c10d8272ebf9f0339b0e439b3e67b68f5627f9dfc6926a07" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", + "parking_lot 0.12.1", + "rand 0.8.5", + "smallvec", + "sp-core 26.0.0", + "sp-externalities 0.23.0", + "sp-panic-handler 12.0.0", + "sp-std 12.0.0", + "sp-trie 27.0.0", "thiserror", "tracing", "trie-db", @@ -17879,11 +18791,11 @@ dependencies = [ "rand 0.8.5", "scale-info", "sha2 0.10.7", - "sp-api", - "sp-application-crypto", - "sp-core", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-runtime", + "sp-runtime 24.0.0", "sp-runtime-interface 17.0.0", "sp-std 8.0.0", "thiserror", @@ -17899,6 +18811,12 @@ name = "sp-std" version = "8.0.0" source = "git+https://github.com/paritytech/polkadot-sdk#82912acb33a9030c0ef3bf590a34fca09b72dc5f" +[[package]] +name = "sp-std" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54c78c5a66682568cc7b153603c5d01a2cc8f5c221c7b1e921517a0eef18ae05" + [[package]] name = "sp-storage" version = "13.0.0" @@ -17924,6 +18842,20 @@ dependencies = [ "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk)", ] +[[package]] +name = "sp-storage" +version = "17.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "016f20812cc51bd479cc88d048c35d44cd3adde4accdb159d49d6050f2953595" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "ref-cast", + "serde", + "sp-debug-derive 12.0.0", + "sp-std 12.0.0", +] + [[package]] name = "sp-test-primitives" version = "2.0.0" @@ -17931,9 +18863,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-application-crypto", - "sp-core", - "sp-runtime", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -17943,12 +18875,26 @@ version = "4.0.0-dev" dependencies = [ "async-trait", "parity-scale-codec", - "sp-inherents", - "sp-runtime", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", "thiserror", ] +[[package]] +name = "sp-timestamp" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff0d0524209a1d1f10221e8f59e53fa0bfd927d168a5ec8ad7c0ca03e883f50a" +dependencies = [ + "async-trait", + "parity-scale-codec", + "sp-inherents 24.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", + "thiserror", +] + [[package]] name = "sp-tracing" version = "10.0.0" @@ -17972,12 +18918,25 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "sp-tracing" +version = "14.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d727cb5265641ffbb7d4e42c18b63e29f6cfdbd240aae3bcf093c3d6eb29a19" +dependencies = [ + "parity-scale-codec", + "sp-std 12.0.0", + "tracing", + "tracing-core", + "tracing-subscriber", +] + [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" dependencies = [ - "sp-api", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", ] [[package]] @@ -17987,11 +18946,11 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 21.0.0", + "sp-inherents 4.0.0-dev", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-trie", + "sp-trie 22.0.0", ] [[package]] @@ -18011,9 +18970,9 @@ dependencies = [ "rand 0.8.5", "scale-info", "schnellru", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", "thiserror", "tracing", @@ -18023,6 +18982,31 @@ dependencies = [ "trie-standardmap", ] +[[package]] +name = "sp-trie" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9c4bf89a5bd74f696cd1f23d83bb6abe6bd0abad1f3c70d4b0d7ebec4098cfe" +dependencies = [ + "ahash 0.8.3", + "hash-db", + "hashbrown 0.13.2", + "lazy_static", + "memory-db", + "nohash-hasher", + "parity-scale-codec", + "parking_lot 0.12.1", + "rand 0.8.5", + "scale-info", + "schnellru", + "sp-core 26.0.0", + "sp-std 12.0.0", + "thiserror", + "tracing", + "trie-db", + "trie-root", +] + [[package]] name = "sp-version" version = "22.0.0" @@ -18032,10 +19016,28 @@ dependencies = [ "parity-wasm", "scale-info", "serde", - "sp-core-hashing-proc-macro", - "sp-runtime", + "sp-core-hashing-proc-macro 9.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-version-proc-macro", + "sp-version-proc-macro 8.0.0", + "thiserror", +] + +[[package]] +name = "sp-version" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "603c3c40bf19dd3004b350e4fcc2a460f833e73dd514406c2361bfdd9795d019" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "parity-wasm", + "scale-info", + "serde", + "sp-core-hashing-proc-macro 13.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", + "sp-version-proc-macro 12.0.0", "thiserror", ] @@ -18046,7 +19048,19 @@ dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "sp-version", + "sp-version 22.0.0", + "syn 2.0.39", +] + +[[package]] +name = "sp-version-proc-macro" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49535d8c7184dab46d15639c68374a30cbb1534e392fa09a1ebb059a993ad436" +dependencies = [ + "parity-scale-codec", + "proc-macro2", + "quote", "syn 2.0.39", ] @@ -18075,6 +19089,20 @@ dependencies = [ "wasmtime", ] +[[package]] +name = "sp-wasm-interface" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5d85813d46a22484cdf5e5afddbbe85442dd1b4d84d67a8c7792f92f9f93607" +dependencies = [ + "anyhow", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "sp-std 12.0.0", + "wasmtime", +] + [[package]] name = "sp-weights" version = "20.0.0" @@ -18083,12 +19111,28 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-arithmetic", - "sp-core", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", "sp-debug-derive 8.0.0", "sp-std 8.0.0", ] +[[package]] +name = "sp-weights" +version = "25.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1689f9594c2c4d09ede3d8a991a9eb900654e424fb00b62f2b370170af347acd" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "smallvec", + "sp-arithmetic 21.0.0", + "sp-core 26.0.0", + "sp-debug-derive 12.0.0", + "sp-std 12.0.0", +] + [[package]] name = "spin" version = "0.5.2" @@ -18173,10 +19217,10 @@ dependencies = [ "clap 4.4.10", "clap_complete", "criterion 0.4.0", - "frame-benchmarking", + "frame-benchmarking 4.0.0-dev", "frame-benchmarking-cli", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-rpc-runtime-api", "futures", "jsonrpsee", @@ -18189,15 +19233,15 @@ dependencies = [ "pallet-asset-conversion-tx-payment", "pallet-asset-tx-payment", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-contracts", "pallet-glutton", "pallet-im-online", "pallet-root-testing", "pallet-skip-feeless-payment", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-treasury", "parity-scale-codec", "platforms", @@ -18237,27 +19281,27 @@ dependencies = [ "serde", "serde_json", "soketto", - "sp-api", - "sp-application-crypto", - "sp-authority-discovery", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-authority-discovery 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-consensus-babe", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-grandpa", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-inherents", - "sp-io", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "sp-mixnet", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-statement-store", - "sp-timestamp", + "sp-timestamp 4.0.0-dev", "sp-tracing 10.0.0", "sp-transaction-storage-proof", - "sp-trie", + "sp-trie 22.0.0", "staging-node-inspect", "substrate-build-script-utils", "substrate-cli-test-utils", @@ -18281,9 +19325,9 @@ dependencies = [ "sc-client-api", "sc-service", "sp-blockchain", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-statement-store", "thiserror", ] @@ -18293,11 +19337,11 @@ name = "staging-parachain-info" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 24.0.0", "sp-std 8.0.0", ] @@ -18319,9 +19363,27 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-io", - "sp-weights", - "xcm-procedural", + "sp-io 23.0.0", + "sp-weights 20.0.0", + "xcm-procedural 1.0.0", +] + +[[package]] +name = "staging-xcm" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d43e1f88bf0db82e674d68d7b294afe7dabd4a3d22e72937a653dde779c5765b" +dependencies = [ + "bounded-collections", + "derivative", + "environmental", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "scale-info", + "serde", + "sp-weights 25.0.0", + "xcm-procedural 5.0.0", ] [[package]] @@ -18329,29 +19391,52 @@ name = "staging-xcm-builder" version = "1.0.0" dependencies = [ "assert_matches", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "impl-trait-for-tuples", "log", "pallet-assets", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-salary", - "pallet-transaction-payment", + "pallet-transaction-payment 4.0.0-dev", "pallet-xcm", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-parachains", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", + "polkadot-runtime-parachains 1.0.0", "polkadot-test-runtime", "primitive-types", "scale-info", - "sp-arithmetic", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-weights", - "staging-xcm", - "staging-xcm-executor", + "sp-weights 20.0.0", + "staging-xcm 1.0.0", + "staging-xcm-executor 1.0.0", +] + +[[package]] +name = "staging-xcm-builder" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5221ec5c927d0790a48070b90b050013e46d86b555219df15eccbeb67c1ab6b" +dependencies = [ + "frame-support 26.0.0", + "frame-system 26.0.0", + "impl-trait-for-tuples", + "log", + "pallet-transaction-payment 26.0.0", + "parity-scale-codec", + "polkadot-parachain-primitives 4.0.0", + "scale-info", + "sp-arithmetic 21.0.0", + "sp-io 28.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", + "sp-weights 25.0.0", + "staging-xcm 5.0.0", + "staging-xcm-executor 5.0.0", ] [[package]] @@ -18359,19 +19444,41 @@ name = "staging-xcm-executor" version = "1.0.0" dependencies = [ "environmental", - "frame-benchmarking", - "frame-support", + "frame-benchmarking 4.0.0-dev", + "frame-support 4.0.0-dev", "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "sp-weights", - "staging-xcm", + "sp-weights 20.0.0", + "staging-xcm 1.0.0", +] + +[[package]] +name = "staging-xcm-executor" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd487438a3576de9db9d07dd64a12682483a2fcbf5e7e183d40ead345f61bb7b" +dependencies = [ + "environmental", + "frame-benchmarking 26.0.0", + "frame-support 26.0.0", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "scale-info", + "sp-arithmetic 21.0.0", + "sp-core 26.0.0", + "sp-io 28.0.0", + "sp-runtime 29.0.0", + "sp-std 12.0.0", + "sp-weights 25.0.0", + "staging-xcm 5.0.0", ] [[package]] @@ -18540,26 +19647,26 @@ name = "substrate-frame-cli" version = "4.0.0-dev" dependencies = [ "clap 4.4.10", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "sc-cli", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] name = "substrate-frame-rpc-support" version = "3.0.0" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "jsonrpsee", "parity-scale-codec", "sc-rpc-api", "scale-info", "serde", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-storage 13.0.0", "tokio", ] @@ -18577,11 +19684,11 @@ dependencies = [ "sc-rpc-api", "sc-transaction-pool", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "sp-tracing 10.0.0", "substrate-test-runtime-client", "tokio", @@ -18607,8 +19714,8 @@ dependencies = [ "log", "sc-rpc-api", "serde", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "tokio", ] @@ -18622,10 +19729,10 @@ dependencies = [ "sc-rpc-api", "serde", "serde_json", - "sp-core", - "sp-runtime", - "sp-state-machine", - "sp-trie", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-trie 22.0.0", "trie-db", ] @@ -18647,11 +19754,11 @@ dependencies = [ "serde_json", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", - "sp-runtime", - "sp-state-machine", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", ] [[package]] @@ -18660,15 +19767,15 @@ version = "2.0.0" dependencies = [ "array-bytes 6.1.0", "frame-executive", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-rpc-runtime-api", "futures", "json-patch", "log", - "pallet-babe", - "pallet-balances", - "pallet-timestamp", + "pallet-babe 4.0.0-dev", + "pallet-balances 4.0.0-dev", + "pallet-timestamp 4.0.0-dev", "parity-scale-codec", "sc-block-builder", "sc-executor", @@ -18677,28 +19784,28 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", "sp-block-builder", "sp-consensus", "sp-consensus-aura", - "sp-consensus-babe", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-grandpa", - "sp-core", + "sp-core 21.0.0", "sp-externalities 0.19.0", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", "sp-offchain", - "sp-runtime", - "sp-session", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-state-machine 0.28.0", "sp-std 8.0.0", "sp-tracing 10.0.0", "sp-transaction-pool", - "sp-trie", - "sp-version", + "sp-trie 22.0.0", + "sp-version 22.0.0", "substrate-test-runtime-client", "substrate-wasm-builder", "trie-db", @@ -18712,11 +19819,11 @@ dependencies = [ "sc-block-builder", "sc-client-api", "sc-consensus", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "substrate-test-client", "substrate-test-runtime", ] @@ -18731,7 +19838,7 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "sp-blockchain", - "sp-runtime", + "sp-runtime 24.0.0", "substrate-test-runtime-client", "thiserror", ] @@ -19003,8 +20110,8 @@ version = "1.0.0" dependencies = [ "dlmalloc", "parity-scale-codec", - "polkadot-parachain-primitives", - "sp-io", + "polkadot-parachain-primitives 1.0.0", + "sp-io 23.0.0", "sp-std 8.0.0", "substrate-wasm-builder", "tiny-keccak", @@ -19023,13 +20130,13 @@ dependencies = [ "polkadot-node-core-pvf", "polkadot-node-primitives", "polkadot-node-subsystem", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-service", "polkadot-test-service", "sc-cli", "sc-service", - "sp-core", + "sp-core 21.0.0", "sp-keyring", "substrate-test-utils", "test-parachain-adder", @@ -19051,8 +20158,8 @@ dependencies = [ "dlmalloc", "log", "parity-scale-codec", - "polkadot-parachain-primitives", - "sp-io", + "polkadot-parachain-primitives 1.0.0", + "sp-io 23.0.0", "sp-std 8.0.0", "substrate-wasm-builder", "tiny-keccak", @@ -19071,13 +20178,13 @@ dependencies = [ "polkadot-node-core-pvf", "polkadot-node-primitives", "polkadot-node-subsystem", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-service", "polkadot-test-service", "sc-cli", "sc-service", - "sp-core", + "sp-core 21.0.0", "sp-keyring", "substrate-test-utils", "test-parachain-undying", @@ -19089,7 +20196,7 @@ name = "test-parachains" version = "1.0.0" dependencies = [ "parity-scale-codec", - "sp-core", + "sp-core 21.0.0", "test-parachain-adder", "test-parachain-halt", "tiny-keccak", @@ -19099,24 +20206,24 @@ dependencies = [ name = "test-runtime-constants" version = "1.0.0" dependencies = [ - "frame-support", - "polkadot-primitives", + "frame-support 4.0.0-dev", + "polkadot-primitives 1.0.0", "polkadot-runtime-common", "smallvec", - "sp-core", - "sp-runtime", - "sp-weights", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-weights 20.0.0", ] [[package]] name = "testnets-common" version = "1.0.0" dependencies = [ - "frame-support", - "polkadot-core-primitives", + "frame-support 4.0.0-dev", + "polkadot-core-primitives 1.0.0", "rococo-runtime-constants", "smallvec", - "sp-runtime", + "sp-runtime 24.0.0", "substrate-wasm-builder", "westend-runtime-constants", ] @@ -19581,7 +20688,7 @@ name = "tracing-gum" version = "1.0.0" dependencies = [ "coarsetime", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "tracing", "tracing-gum-proc-macro", ] @@ -19760,22 +20867,22 @@ dependencies = [ "sc-executor", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-consensus-aura", - "sp-consensus-babe", - "sp-core", + "sp-consensus-babe 0.10.0-dev", + "sp-core 21.0.0", "sp-debug-derive 8.0.0", "sp-externalities 0.19.0", - "sp-inherents", - "sp-io", - "sp-keystore", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", + "sp-keystore 0.27.0", "sp-rpc", - "sp-runtime", - "sp-state-machine", - "sp-timestamp", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-timestamp 4.0.0-dev", "sp-transaction-storage-proof", - "sp-version", - "sp-weights", + "sp-version 22.0.0", + "sp-weights 20.0.0", "substrate-cli-test-utils", "substrate-rpc-client", "tempfile", @@ -20811,16 +21918,16 @@ version = "0.0.0" dependencies = [ "emulated-integration-tests-common", "pallet-im-online", - "pallet-staking", + "pallet-staking 4.0.0-dev", "parachains-common", - "polkadot-primitives", + "polkadot-primitives 1.0.0", "sc-consensus-grandpa", "serde_json", - "sp-authority-discovery", - "sp-consensus-babe", + "sp-authority-discovery 4.0.0-dev", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-beefy", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "westend-runtime", "westend-runtime-constants", ] @@ -20831,23 +21938,23 @@ version = "1.0.0" dependencies = [ "binary-merkle-tree", "bitvec", - "frame-benchmarking", - "frame-election-provider-support", + "frame-benchmarking 4.0.0-dev", + "frame-election-provider-support 4.0.0-dev", "frame-executive", "frame-remote-externalities", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-asset-rate", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", + "pallet-authority-discovery 4.0.0-dev", + "pallet-authorship 4.0.0-dev", + "pallet-babe 4.0.0-dev", "pallet-bags-list", - "pallet-balances", + "pallet-balances 4.0.0-dev", "pallet-beefy", "pallet-beefy-mmr", "pallet-collective", @@ -20862,7 +21969,7 @@ dependencies = [ "pallet-im-online", "pallet-indices", "pallet-membership", - "pallet-message-queue", + "pallet-message-queue 7.0.0-dev", "pallet-mmr", "pallet-multisig", "pallet-nomination-pools", @@ -20876,60 +21983,60 @@ dependencies = [ "pallet-referenda", "pallet-root-testing", "pallet-scheduler", - "pallet-session", + "pallet-session 4.0.0-dev", "pallet-session-benchmarking", "pallet-society", - "pallet-staking", + "pallet-staking 4.0.0-dev", "pallet-staking-reward-curve", "pallet-staking-runtime-api", "pallet-state-trie-migration", "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", + "pallet-timestamp 4.0.0-dev", + "pallet-transaction-payment 4.0.0-dev", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", "pallet-utility", - "pallet-vesting", + "pallet-vesting 4.0.0-dev", "pallet-whitelist", "pallet-xcm", "pallet-xcm-benchmarks", "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", "polkadot-runtime-common", - "polkadot-runtime-parachains", + "polkadot-runtime-parachains 1.0.0", "rustc-hex", "scale-info", "serde", "serde_derive", "serde_json", "smallvec", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-authority-discovery", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-arithmetic 16.0.0", + "sp-authority-discovery 4.0.0-dev", "sp-block-builder", - "sp-consensus-babe", + "sp-consensus-babe 0.10.0-dev", "sp-consensus-beefy", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-core 21.0.0", + "sp-genesis-builder 0.1.0", + "sp-inherents 4.0.0-dev", + "sp-io 23.0.0", "sp-keyring", "sp-mmr-primitives", - "sp-npos-elections", + "sp-npos-elections 4.0.0-dev", "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", + "sp-runtime 24.0.0", + "sp-session 4.0.0-dev", + "sp-staking 4.0.0-dev", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-tracing 10.0.0", "sp-transaction-pool", - "sp-version", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "sp-version 22.0.0", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", "substrate-wasm-builder", "tiny-keccak", "tokio", @@ -20940,14 +22047,14 @@ dependencies = [ name = "westend-runtime-constants" version = "1.0.0" dependencies = [ - "frame-support", - "polkadot-primitives", + "frame-support 4.0.0-dev", + "polkadot-primitives 1.0.0", "polkadot-runtime-common", "smallvec", - "sp-core", - "sp-runtime", - "sp-weights", - "staging-xcm", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-weights 20.0.0", + "staging-xcm 1.0.0", ] [[package]] @@ -21300,6 +22407,24 @@ dependencies = [ "libc", ] +[[package]] +name = "xcm-docs" +version = "0.0.1" +dependencies = [ + "docify", + "frame", + "parity-scale-codec", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", + "simple-mermaid 0.1.0 (git+https://github.com/kianenigma/simple-mermaid.git?branch=main)", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", + "staging-xcm 5.0.0", + "staging-xcm-executor 5.0.0", + "xcm-simulator 5.0.0", +] + [[package]] name = "xcm-emulator" version = "0.1.0" @@ -21309,37 +22434,37 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-test-relay-sproof-builder", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "impl-trait-for-tuples", "lazy_static", "log", - "pallet-balances", - "pallet-message-queue", + "pallet-balances 4.0.0-dev", + "pallet-message-queue 7.0.0-dev", "parachains-common", "parity-scale-codec", "paste", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-parachains", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "polkadot-parachain-primitives 1.0.0", + "polkadot-primitives 1.0.0", + "polkadot-runtime-parachains 1.0.0", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-executor 1.0.0", ] [[package]] name = "xcm-executor-integration-tests" version = "1.0.0" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "futures", - "pallet-transaction-payment", + "pallet-transaction-payment 4.0.0-dev", "pallet-xcm", "parity-scale-codec", "polkadot-test-client", @@ -21347,11 +22472,11 @@ dependencies = [ "polkadot-test-service", "sp-consensus", "sp-keyring", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-tracing 10.0.0", - "staging-xcm", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-executor 1.0.0", ] [[package]] @@ -21361,53 +22486,84 @@ dependencies = [ "Inflector", "proc-macro2", "quote", - "staging-xcm", + "staging-xcm 1.0.0", "syn 2.0.39", "trybuild", ] +[[package]] +name = "xcm-procedural" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7fcdc7c267d71b2f826d2318fb867e5394320c6db231ec96fa094728c3e061" +dependencies = [ + "Inflector", + "proc-macro2", + "quote", + "syn 2.0.39", +] + [[package]] name = "xcm-simulator" version = "1.0.0" dependencies = [ - "frame-support", + "frame-support 4.0.0-dev", "parity-scale-codec", "paste", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-parachains", - "sp-io", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", + "polkadot-runtime-parachains 1.0.0", + "sp-io 23.0.0", "sp-std 8.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", +] + +[[package]] +name = "xcm-simulator" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e65f7bbd4de89466e17a34c70dbb002a7748d507b6843e994fbed1c53042ee9" +dependencies = [ + "frame-support 26.0.0", + "parity-scale-codec", + "paste", + "polkadot-core-primitives 5.0.0", + "polkadot-parachain-primitives 4.0.0", + "polkadot-runtime-parachains 5.0.0", + "sp-io 28.0.0", + "sp-std 12.0.0", + "staging-xcm 5.0.0", + "staging-xcm-builder 5.0.0", + "staging-xcm-executor 5.0.0", ] [[package]] name = "xcm-simulator-example" version = "1.0.0" dependencies = [ - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "log", - "pallet-balances", - "pallet-message-queue", + "pallet-balances 4.0.0-dev", + "pallet-message-queue 7.0.0-dev", "pallet-uniques", "pallet-xcm", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-parachains", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", + "polkadot-runtime-parachains 1.0.0", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "xcm-simulator", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", + "xcm-simulator 1.0.0", ] [[package]] @@ -21415,25 +22571,25 @@ name = "xcm-simulator-fuzzer" version = "1.0.0" dependencies = [ "arbitrary", - "frame-support", - "frame-system", + "frame-support 4.0.0-dev", + "frame-system 4.0.0-dev", "honggfuzz", - "pallet-balances", - "pallet-message-queue", + "pallet-balances 4.0.0-dev", + "pallet-message-queue 7.0.0-dev", "pallet-xcm", "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain-primitives", - "polkadot-runtime-parachains", + "polkadot-core-primitives 1.0.0", + "polkadot-parachain-primitives 1.0.0", + "polkadot-runtime-parachains 1.0.0", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-std 8.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "xcm-simulator", + "staging-xcm 1.0.0", + "staging-xcm-builder 1.0.0", + "staging-xcm-executor 1.0.0", + "xcm-simulator 1.0.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index b694afb3f5e4c..46af06cc77fa9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -180,6 +180,7 @@ members = [ "polkadot/utils/generate-bags", "polkadot/utils/remote-ext-tests/bags-list", "polkadot/xcm", + "polkadot/xcm/docs", "polkadot/xcm/pallet-xcm", "polkadot/xcm/pallet-xcm-benchmarks", "polkadot/xcm/procedural", diff --git a/polkadot/xcm/docs/Cargo.toml b/polkadot/xcm/docs/Cargo.toml new file mode 100644 index 0000000000000..a98ee7717dd84 --- /dev/null +++ b/polkadot/xcm/docs/Cargo.toml @@ -0,0 +1,27 @@ +[package] +name = "xcm-docs" +description = "Documentation and guides for XCM" +version = "0.0.1" +license.workspace = true +repository.workspace = true +authors.workspace = true +edition.workspace = true + +[dependencies] +# For XCM stuff +xcm = { version = "5.0.0", package = "staging-xcm" } +xcm-executor = { version = "5.0.0", package = "staging-xcm-executor" } +xcm-simulator = "5.0.0" + +# For building FRAME runtimes +frame = { path = "../../../substrate/frame", features = ["experimental", "runtime"] } +codec = { package = "parity-scale-codec", version = "3.6.9" } +polkadot-parachain-primitives = { path = "../../../polkadot/parachain" } +polkadot-primitives = { path = "../../../polkadot/primitives" } +sp-runtime = { path = "../../../substrate/primitives/runtime" } +sp-std = { path = "../../../substrate/primitives/std" } +sp-io = { path = "../../../substrate/primitives/io" } + +# For building docs +simple-mermaid = { git = "https://github.com/kianenigma/simple-mermaid.git", branch = "main" } +docify = "0.2.6" diff --git a/polkadot/xcm/docs/mermaid/location_hierarchy.mmd b/polkadot/xcm/docs/mermaid/location_hierarchy.mmd new file mode 100644 index 0000000000000..54fcfc8072a9a --- /dev/null +++ b/polkadot/xcm/docs/mermaid/location_hierarchy.mmd @@ -0,0 +1,9 @@ +flowchart + relay[Relaychain] --> paraA["Parachain(1000)"] + relay --> paraB["Parachain(2000)"] + + paraA --> pallet[Pallet] + pallet --> indexA[Index 1] + pallet --> indexB[Index 2] + + paraA --> account[Account] diff --git a/polkadot/xcm/docs/mermaid/structure.mmd b/polkadot/xcm/docs/mermaid/structure.mmd new file mode 100644 index 0000000000000..17f60467241a3 --- /dev/null +++ b/polkadot/xcm/docs/mermaid/structure.mmd @@ -0,0 +1,4 @@ +flowchart + docs[xcm_docs] --> fundamentals + docs --> guides + docs --> cookbook diff --git a/polkadot/xcm/docs/mermaid/universal_location.mmd b/polkadot/xcm/docs/mermaid/universal_location.mmd new file mode 100644 index 0000000000000..97bfa747319db --- /dev/null +++ b/polkadot/xcm/docs/mermaid/universal_location.mmd @@ -0,0 +1,3 @@ +flowchart + universe[Universal Location] --> polkadot[Polkadot] + universe --> ethereum[Ethereum] diff --git a/polkadot/xcm/docs/mermaid/usdt_location.mmd b/polkadot/xcm/docs/mermaid/usdt_location.mmd new file mode 100644 index 0000000000000..4f237f7058f21 --- /dev/null +++ b/polkadot/xcm/docs/mermaid/usdt_location.mmd @@ -0,0 +1,6 @@ +flowchart + relay[Polkadot] --> assetHub["Asset Hub"] + relay --> anotherPara["Another parachain"] + + assetHub --> assetsPallet["Foreign Assets Pallet"] + assetsPallet --> usdt[1984] diff --git a/polkadot/xcm/docs/src/cookbook.rs b/polkadot/xcm/docs/src/cookbook.rs new file mode 100644 index 0000000000000..8b137891791fe --- /dev/null +++ b/polkadot/xcm/docs/src/cookbook.rs @@ -0,0 +1 @@ + diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs new file mode 100644 index 0000000000000..5e836b8035054 --- /dev/null +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -0,0 +1,141 @@ +//! # XCM Fundamentals +//! +//! XCM standardizes usual actions users take in consensus systems. +//! For example, dealing with assets locally, on other chains, and locking them. +//! XCM programs can both be executed locally or sent to a different consensus system. +//! Examples of consensus systems are blockchains and smart contracts. +//! +//! The goal of XCM is to allow multi-chain ecosystems to thrive via specialization. +//! Very specific functionalities can be abstracted away and standardized in this common language. +//! Then, every member of the ecosystem can implement the subset of the language that makes sense for them. +//! +//! The language evolves over time to accomodate the needs of the community +//! via the [RFC process](https://github.com/paritytech/xcm-format/blob/master/proposals/0001-process.md). +//! +//! XCM is the language, it deals with interpreting and executing programs. +//! It does not deal with actually **sending** these programs from one consensus system to another. +//! This responsability falls to a transport protocol. +//! XCM can even be interpreted on the local system, with no need of a transport protocol. +//! However, automatic and composable workflows can be achieved via the use of one. +//! +//! At the core of XCM lies the XCVM, the Cross-Consensus Virtual Machine. +//! It's the virtual machine that executes XCM programs. +//! It is a specification that comes with the language. +//! +//! For this docs, we'll use a Rust implementation of XCM and the XCVM, consisting of the following parts: +//! - XCM: Holds the definition of an XCM program, the instructions and main concepts. +//! - Executor: Implements the XCVM, capable of executing XCMs. Highly configurable. +//! - Builder: A collection of types used to configure the executor. +//! - XCM Pallet: A FRAME pallet for interacting with the executor. +//! - Simulator: A playground to tinker with different XCM programs and executor configurations. +//! +//! XCM programs are composed of Instructions, which reference Locations and Assets. +//! +//! ## Locations +//! +//! Locations are XCM's vocabulary of places we want to talk about in our XCM programs. +//! They are used to reference things like 32-byte accounts, governance bodies, smart contracts, blockchains and more. +//! +//! Locations are hierarchical. +//! This means some places in consensus are wholly encapsulated in other places. +//! Say we have two systems A and B. +//! If any change in A's state implies a change in B's state, then we say A is interior to B. +//! +#![doc = simple_mermaid::mermaid!("../mermaid/location_hierarchy.mmd")] +//! +//! Parachains are interior to their relaychain, since a change in their state implies a change in the relaychain's state. +//! +//! Because of this hierarchy, the way we represent locations is with both a number of **parents**, times we move __up__ the hierarchy, +//! and a sequence of **junctions**, the steps we take __down__ the hierarchy after going up the specified amount of parents. +//! +//! In Rust, this is specified with the following datatype: +//! ```ignore +//! pub struct Location { +//! parents: u8, +//! interior: Junctions, +//! } +//! ``` +//! +//! Many junctions are available, parachains, pallets, 32 and 20 byte accounts, governance bodies, and arbitrary indices +//! are the most common. +//! A full list of available junctions can be found in the [format](https://github.com/paritytech/xcm-format#interior-locations--junctions) +//! and [Junction enum](xcm::v3::prelude::Junction). +//! +//! We'll use a file system notation to represent locations, and start with relative locations. +//! In the diagram, the location of parachain 1000 as seen from all other locations is as follows: +//! - From the relaychain: `Parachain(1000)` +//! - From parachain 1000 itself: `Here` +//! - From parachain 2000: `../Parachain(1000)` +//! +//! Relative locations are interpreted by the system that is executing an XCM program, which is the receiver of a message +//! in the case where it's sent. +//! +//! Locations can also be absolute. +//! Keeping in line with our filesystem analogy, we can imagine the root of our filesystem to exist. +//! This would be a location with no parents, that is also the parent of all systems that derive their own consensus, say +//! Polkadot or Ethereum or Bitcoin. +//! Such a location does not exist concretely, but we can still use this definition for it. +//! This is the **universal location**. +//! We need the universal location to be able to describe locations in an absolute way. +//! +#![doc = simple_mermaid::mermaid!("../mermaid/universal_location.mmd")] +//! +//! Here, the absolute location of parachain 1000 would be `GlobalConsensus(Polkadot)/Parachain(1000)`. +//! +//! ## Assets +//! +//! We want to be able to reference assets in our XCM programs, if only to be able to pay for fees. +//! Assets are represented using locations. +//! +//! The native asset of a chain is represented by the location to that chain. +//! For example, DOT is represented by the location of the Polkadot relaychain. +//! If the interpreting chain has its own asset, it would be represented by `Here`. +//! +//! How do we represent other assets? +//! The asset hub system parachain in Polkadot, for example, holds a lot of assets. +//! To represent each of them, it uses the indices we mentioned, and it makes them interior to the +//! assets pallet instance it uses. +//! USDT, an example asset that lives on asset hub, is identified by the location +//! `Parachain(1000)/PalletInstance(53)/GeneralIndex(1984)`, when seen from the Polkadot relaychain. +//! +#![doc = simple_mermaid::mermaid!("../mermaid/usdt_location.mmd")] +//! +//! The whole type can be seen in the [format](https://github.com/paritytech/xcm-format#6-universal-asset-identifiers) +//! and [rust docs](xcm::v3::prelude::MultiAsset). +//! +//! ## Instructions +//! +//! Given the vocabulary to talk about both locations, chains and accounts, and assets, we now need a way to +//! express what we want the consensus system to do when executing our programs. +//! We need a way of writing our programs. +//! +//! XCM programs are composed of a sequence of instructions. +//! +//! All available instructions can be seen in the [format](https://github.com/paritytech/xcm-format#5-the-xcvm-instruction-set) +//! and the [Instruction enum](xcm::v3::prelude::Instruction). +//! +//! A very simple example is the following: +//! +//! ```ignore +//! let message = Xcm(vec![ +//! TransferAsset { assets, beneficiary }, +//! ]); +//! ``` +//! +//! This instruction is enough to transfer `assets` from the account of the **origin** of a message to the `beneficiary` account. +//! However, because of XCM's generality, fees need to be paid explicitly. +//! This next example sheds more light on this: +//! +//! ```ignore +//! let message = Xcm(vec![ +//! WithdrawAsset(assets), +//! BuyExecution { fees, weight_limit }, +//! DepositAsset { assets, beneficiary }, +//! ]); +//! ``` +//! +//! Here we see the process of transferring assets was broken down into smaller instructions, and we add the explicit fee payment +//! step in the middle. +//! `WithdrawAsset` withdraws assets from the account of the **origin** of the message for usage inside this message's execution. +//! `BuyExecution` explicitly buys execution for this program using the assets specified in `fees`, with a sanity check of `weight_limit`. +//! `DepositAsset` has the same operands as the original `TransferAsset` instruction, specifying `assets` and a `beneficiary` account. diff --git a/polkadot/xcm/docs/src/glossary.rs b/polkadot/xcm/docs/src/glossary.rs new file mode 100644 index 0000000000000..e748960366c2c --- /dev/null +++ b/polkadot/xcm/docs/src/glossary.rs @@ -0,0 +1,81 @@ +//! # Glossary +//! +//! ## XCM (Cross-Consensus Messaging) +//! +//! A messaging format meant to communicate intentions between consensus systems. +//! XCM could also refer to a single message. +//! +//! ## Instructions +//! +//! XCMs are composed of a sequence of instructions. +//! Each instruction aims to convey a particular intention. +//! There are instructions for transferring and locking assets, handling fees, calling arbitrary blobs, and more. +//! +//! ## Consensus system +//! +//! A system that can reach any kind of consensus. +//! For example, relay chains, parachains, smart contracts. +//! +//! ## MultiLocation +//! +//! A way of addressing consensus systems. +//! These could be relative or absolute. +//! +//! ## Junction +//! +//! The different ways of descending down a `MultiLocation` hierarchy. +//! A junction can be a Parachain, an Account, or more. +//! +//! ## MultiAsset +//! +//! A way of identifying assets in the same or another consensus system, by using a `MultiLocation`. +//! +//! ## Sovereign account +//! +//! An account on a consensus system that is controlled by an account in another consensus system. +//! +//! ## Teleport +//! +//! A way of transferring assets between two consensus systems without the need of a third party. +//! It consists of the sender system burning the asset that wants to be sent over and the recipient minting an equivalent amount of that asset. +//! It requires a lot of trust between the two systems, since failure to mint or burn will reduce the total issuance of the token. +//! +//! ## Reserve asset transfer +//! +//! A way of transferring assets between two consensus systems that don't trust each other, by using a third system they both trust, called the reserve. +//! The real asset only exists on the reserve, both sender and recipient only deal with derivatives. +//! It consists of the sender burning a certain amount of derivatives, telling the reserve to move real assets from its sovereign account to the destination's sovereign account, and then telling the recipient to mint the right amount of derivatives. +//! +//! ## XCVM +//! +//! The virtual machine behind XCM. +//! Every XCM is an XCVM programme. +//! Holds state in registers. +//! +//! ## Holding register +//! +//! An XCVM register used to hold arbitrary `Asset`s during the execution of an XCVM programme. +//! +//! ## Barrier +//! +//! An XCM executor configuration item that works as a firewall for incoming XCMs. +//! All XCMs have to pass the barrier to be executed, else they are dropped. +//! It can be used for whitelisting only certain types or messages or messages from certain senders. +//! +//! ## UMP (Upward Message Passing) +//! +//! Transport-layer protocol that allows parachains to send messages upwards to their relay chain. +//! +//! ## DMP (Downward Message Passing) +//! +//! Transport-layer protocol that allows the relay chain to send messages downwards to one of their parachains. +//! +//! ## XCMP (Cross-Consensus Message Passing) +//! +//! Transport-layer protocol that allows parachains to send messages between themselves, without going through the relay chain. +//! +//! ## HRMP (Horizontal Message Passing) +//! +//! Transport-layer protocol that allows a parachain to send messages to a sibling parachain going through the relay chain. +//! It's a precursor to XCMP, also known as XCMP-lite. +//! It uses a mixture of UMP and VMP. diff --git a/polkadot/xcm/docs/src/guides/mod.rs b/polkadot/xcm/docs/src/guides/mod.rs new file mode 100644 index 0000000000000..41cb5254ea311 --- /dev/null +++ b/polkadot/xcm/docs/src/guides/mod.rs @@ -0,0 +1,7 @@ +//! # XCM Guides +//! +//! These guides aim to get you up and running with XCM. + +/// Guide on configuring the XCM executor in the most simple way possible for +/// using the relaychain's token for fee payment. +pub mod simple_configuration; diff --git a/polkadot/xcm/docs/src/guides/simple_configuration/mock_message_queue.rs b/polkadot/xcm/docs/src/guides/simple_configuration/mock_message_queue.rs new file mode 100644 index 0000000000000..b60ad786b2ffb --- /dev/null +++ b/polkadot/xcm/docs/src/guides/simple_configuration/mock_message_queue.rs @@ -0,0 +1,172 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + +//! Parachain runtime mock. + +use codec::{Decode, Encode}; +use frame::prelude::*; + +use polkadot_parachain::primitives::{ + DmpMessageHandler, Id as ParaId, XcmpMessageFormat, XcmpMessageHandler, +}; +use polkadot_primitives::BlockNumber as RelayBlockNumber; +use sp_runtime::traits::{Get, Hash}; + +use sp_std::prelude::*; +use xcm::{latest::prelude::*, VersionedXcm}; + +#[frame_support::pallet] +pub mod pallet { + use super::*; + use frame_support::pallet_prelude::*; + + #[pallet::config] + pub trait Config: frame_system::Config { + type RuntimeEvent: From> + IsType<::RuntimeEvent>; + type XcmExecutor: ExecuteXcm; + } + + #[pallet::call] + impl Pallet {} + + #[pallet::pallet] + #[pallet::without_storage_info] + pub struct Pallet(_); + + #[pallet::storage] + #[pallet::getter(fn parachain_id)] + pub(super) type ParachainId = StorageValue<_, ParaId, ValueQuery>; + + #[pallet::storage] + #[pallet::getter(fn received_dmp)] + /// A queue of received DMP messages + pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; + + impl Get for Pallet { + fn get() -> ParaId { + Self::parachain_id() + } + } + + pub type MessageId = [u8; 32]; + + #[pallet::event] + #[pallet::generate_deposit(pub(super) fn deposit_event)] + pub enum Event { + // XCMP + /// Some XCM was executed OK. + Success(Option), + /// Some XCM failed. + Fail(Option, XcmError), + /// Bad XCM version used. + BadVersion(Option), + /// Bad XCM format used. + BadFormat(Option), + + // DMP + /// Downward message is invalid XCM. + InvalidFormat(MessageId), + /// Downward message is unsupported version of XCM. + UnsupportedVersion(MessageId), + /// Downward message executed with the given outcome. + ExecutedDownward(MessageId, Outcome), + } + + impl Pallet { + pub fn set_para_id(para_id: ParaId) { + ParachainId::::put(para_id); + } + + fn handle_xcmp_message( + sender: ParaId, + _sent_at: RelayBlockNumber, + xcm: VersionedXcm, + max_weight: xcm::latest::Weight, + ) -> Result { + let hash = Encode::using_encoded(&xcm, T::Hashing::hash); + let message_hash = Encode::using_encoded(&xcm, sp_io::hashing::blake2_256); + let (result, event) = match Xcm::::try_from(xcm) { + Ok(xcm) => { + let location = (Parent, Parachain(sender.into())); + match T::XcmExecutor::execute_xcm(location, xcm, message_hash, max_weight) { + Outcome::Error(e) => (Err(e.clone()), Event::Fail(Some(hash), e)), + Outcome::Complete(w) => (Ok(w), Event::Success(Some(hash))), + // As far as the caller is concerned, this was dispatched without error, so + // we just report the weight used. + Outcome::Incomplete(w, e) => (Ok(w), Event::Fail(Some(hash), e)), + } + } + Err(()) => ( + Err(XcmError::UnhandledXcmVersion), + Event::BadVersion(Some(hash)), + ), + }; + Self::deposit_event(event); + result + } + } + + impl XcmpMessageHandler for Pallet { + fn handle_xcmp_messages<'a, I: Iterator>( + iter: I, + max_weight: xcm::latest::Weight, + ) -> xcm::latest::Weight { + for (sender, sent_at, data) in iter { + let mut data_ref = data; + let _ = XcmpMessageFormat::decode(&mut data_ref) + .expect("Simulator encodes with versioned xcm format; qed"); + + let mut remaining_fragments = &data_ref[..]; + while !remaining_fragments.is_empty() { + if let Ok(xcm) = + VersionedXcm::::decode(&mut remaining_fragments) + { + let _ = Self::handle_xcmp_message(sender, sent_at, xcm, max_weight); + } else { + debug_assert!(false, "Invalid incoming XCMP message data"); + } + } + } + max_weight + } + } + + impl DmpMessageHandler for Pallet { + fn handle_dmp_messages( + iter: impl Iterator)>, + limit: xcm::latest::Weight, + ) -> xcm::latest::Weight { + for (_i, (_sent_at, data)) in iter.enumerate() { + let id = sp_io::hashing::blake2_256(&data[..]); + let maybe_versioned = VersionedXcm::::decode(&mut &data[..]); + match maybe_versioned { + Err(_) => { + Self::deposit_event(Event::InvalidFormat(id)); + } + Ok(versioned) => match Xcm::try_from(versioned) { + Err(()) => Self::deposit_event(Event::UnsupportedVersion(id)), + Ok(x) => { + let outcome = T::XcmExecutor::execute_xcm(Parent, x.clone(), id, limit); + >::append(x); + Self::deposit_event(Event::ExecutedDownward(id, outcome)); + } + }, + } + } + limit + } + } +} diff --git a/polkadot/xcm/docs/src/guides/simple_configuration/mod.rs b/polkadot/xcm/docs/src/guides/simple_configuration/mod.rs new file mode 100644 index 0000000000000..808f505f0b665 --- /dev/null +++ b/polkadot/xcm/docs/src/guides/simple_configuration/mod.rs @@ -0,0 +1,35 @@ +//! # Simple configuration +//! +//! At the end of this guide, you'll know how to setup an XCM executor configuration +//! for a parachain only using the relaychain's asset. +//! +#![doc = docify::embed!("src/guides/simple_configuration/mod.rs", Something)] + +pub mod parachain; +pub mod relaychain; +pub mod mock_message_queue; + +use xcm_simulator::{ + decl_test_network, + decl_test_parachain, + decl_test_relay_chain, + TestExt, +}; + +decl_test_parachain! { + pub struct ParaA { + Runtime = parachain::Runtime, + XcmpMessageHandler = parachain::MsgQueue, + DmpMessageHandler = parachain::MsgQueue, + new_ext = para_ext(1), + } +} + +fn para_ext() -> sp_io::TestExternalities { + let mut t = frame_system::GenesisConfig::default().build_storage::().unwrap(); + let mut ext = sp_io::TestExternalities::new(t); + ext +} + +#[docify::export] +pub struct Something; diff --git a/polkadot/xcm/docs/src/guides/simple_configuration/parachain.rs b/polkadot/xcm/docs/src/guides/simple_configuration/parachain.rs new file mode 100644 index 0000000000000..c12b4a1d2d9f4 --- /dev/null +++ b/polkadot/xcm/docs/src/guides/simple_configuration/parachain.rs @@ -0,0 +1,29 @@ +//! # Mock parachain + +use frame::prelude::*; +use frame::runtime::prelude::*; +use xcm_executor::XcmExecutor; + +use super::mock_message_queue; + +construct_runtime! { + pub struct Runtime { + System: frame_system, + MessageQueue: mock_message_queue, + } +} + +pub type Block = frame_system::mocking::MockBlock; + +#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +impl frame_system::Config for Runtime { + type Block = Block; +} + +impl mock_message_queue::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type XcmExecutor = XcmExecutor; +} + +// TODO: Implement config trait +pub struct XcmConfig; diff --git a/polkadot/xcm/docs/src/guides/simple_configuration/relaychain.rs b/polkadot/xcm/docs/src/guides/simple_configuration/relaychain.rs new file mode 100644 index 0000000000000..1d4675b2090df --- /dev/null +++ b/polkadot/xcm/docs/src/guides/simple_configuration/relaychain.rs @@ -0,0 +1 @@ +//! Mock relaychain diff --git a/polkadot/xcm/docs/src/lib.rs b/polkadot/xcm/docs/src/lib.rs new file mode 100644 index 0000000000000..57988574d0989 --- /dev/null +++ b/polkadot/xcm/docs/src/lib.rs @@ -0,0 +1,40 @@ +//! # XCM Docs +//! +//! Documentation and guides for XCM +//! +//! Welcome to the Cross-Consensus Messaging documentation! +//! +//! XCM is a **language** for communicating **intentions** between **consensus systems**. +//! Whether you're a developer, a blockchain enthusiast, or just interested in Polkadot, this guide aims to provide you with an easy-to-understand and comprehensive introduction to XCM. +//! +//! ## Getting started +//! +//! Head over to the [fundamentals](fundamentals) section. +//! Then, go to the [guides](guides), to learn about how to do things with XCM. +//! +//! ## Cookbook +//! +//! There's also the [cookbook](cookbook) for useful recipes for XCM. +//! +//! ## Glossary +//! +//! There's a [glossary](glossary) with common terms used throughout the docs. +//! +//! ## Contribute +//! +//! To contribute to the XCM standard, check out the [RFC process](https://github.com/paritytech/xcm-format/blob/master/proposals/0001-process.md). +//! +//! ## Docs structure +#![doc = simple_mermaid::mermaid!("../mermaid/structure.mmd")] + +/// Fundamentals of the XCM language. The virtual machine, instructions, locations and assets. +pub mod fundamentals; + +/// Step-by-step guides to setup an XCM environment and start hacking. +pub mod guides; + +/// Useful recipes for programs and configurations. +pub mod cookbook; + +/// Glossary +pub mod glossary; From 8bbde0133a472c4a2b2a0e30e16a1410b5911422 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Mon, 11 Dec 2023 14:09:58 +0100 Subject: [PATCH 02/37] Add an XCM configuration guide --- Cargo.lock | 6218 +++++++---------- polkadot/xcm/docs/Cargo.toml | 12 +- .../mock_message_queue.rs | 14 +- .../xcm/docs/src/guides/configuration/mod.rs | 118 + .../src/guides/configuration/parachain.rs | 93 + .../src/guides/configuration/relaychain.rs | 99 + .../src/guides/simple_configuration/mod.rs | 35 - .../guides/simple_configuration/parachain.rs | 29 - .../guides/simple_configuration/relaychain.rs | 1 - .../xcm-simulator/example/src/relay_chain.rs | 4 - 10 files changed, 2869 insertions(+), 3754 deletions(-) rename polkadot/xcm/docs/src/guides/{simple_configuration => configuration}/mock_message_queue.rs (96%) create mode 100644 polkadot/xcm/docs/src/guides/configuration/mod.rs create mode 100644 polkadot/xcm/docs/src/guides/configuration/parachain.rs create mode 100644 polkadot/xcm/docs/src/guides/configuration/relaychain.rs delete mode 100644 polkadot/xcm/docs/src/guides/simple_configuration/mod.rs delete mode 100644 polkadot/xcm/docs/src/guides/simple_configuration/parachain.rs delete mode 100644 polkadot/xcm/docs/src/guides/simple_configuration/relaychain.rs diff --git a/Cargo.lock b/Cargo.lock index b31cfa1133807..73edcafc5f7c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -737,12 +737,12 @@ dependencies = [ "asset-hub-rococo-runtime", "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support 4.0.0-dev", + "frame-support", "parachains-common", "rococo-emulated-chain", "serde_json", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", ] [[package]] @@ -753,20 +753,20 @@ dependencies = [ "asset-hub-rococo-runtime", "asset-test-utils", "emulated-integration-tests-common", - "frame-support 4.0.0-dev", + "frame-support", "pallet-asset-conversion", "pallet-assets", - "pallet-balances 4.0.0-dev", - "pallet-message-queue 7.0.0-dev", + "pallet-balances", + "pallet-message-queue", "pallet-xcm", "parachains-common", "parity-scale-codec", "penpal-runtime", "rococo-runtime", "rococo-system-emulated-network", - "sp-runtime 24.0.0", - "staging-xcm 1.0.0", - "staging-xcm-executor 1.0.0", + "sp-runtime", + "staging-xcm", + "staging-xcm-executor", ] [[package]] @@ -786,10 +786,10 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -799,19 +799,19 @@ dependencies = [ "pallet-asset-conversion-tx-payment", "pallet-assets", "pallet-aura", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-collator-selection", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-multisig", "pallet-nft-fractionalization", "pallet-nfts", "pallet-nfts-runtime-api", "pallet-proxy", - "pallet-session 4.0.0-dev", + "pallet-session", "pallet-state-trie-migration", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-uniques", "pallet-utility", @@ -820,31 +820,31 @@ dependencies = [ "pallet-xcm-bridge-hub-router", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "polkadot-runtime-common", "primitive-types", "rococo-runtime-constants", "scale-info", "smallvec", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version 22.0.0", - "sp-weights 20.0.0", + "sp-version", + "sp-weights", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", ] @@ -855,11 +855,11 @@ dependencies = [ "asset-hub-westend-runtime", "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support 4.0.0-dev", + "frame-support", "parachains-common", "serde_json", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "westend-emulated-chain", ] @@ -873,23 +873,23 @@ dependencies = [ "cumulus-pallet-dmp-queue", "cumulus-pallet-parachain-system", "emulated-integration-tests-common", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "pallet-asset-conversion", "pallet-asset-rate", "pallet-assets", - "pallet-balances 4.0.0-dev", - "pallet-message-queue 7.0.0-dev", + "pallet-balances", + "pallet-message-queue", "pallet-treasury", "pallet-xcm", "parachains-common", "parity-scale-codec", "penpal-runtime", "polkadot-runtime-common", - "sp-runtime 24.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "sp-runtime", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "westend-runtime", "westend-runtime-constants", "westend-system-emulated-network", @@ -912,10 +912,10 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -925,18 +925,18 @@ dependencies = [ "pallet-asset-conversion-tx-payment", "pallet-assets", "pallet-aura", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-collator-selection", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-multisig", "pallet-nft-fractionalization", "pallet-nfts", "pallet-nfts-runtime-api", "pallet-proxy", - "pallet-session 4.0.0-dev", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-session", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-uniques", "pallet-utility", @@ -945,29 +945,29 @@ dependencies = [ "pallet-xcm-bridge-hub-router", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "polkadot-runtime-common", "primitive-types", "scale-info", "smallvec", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", "westend-runtime-constants", ] @@ -982,28 +982,28 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-test-relay-sproof-builder", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "hex-literal", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-collator-selection", - "pallet-session 4.0.0-dev", + "pallet-session", "pallet-xcm", "pallet-xcm-bridge-hub-router", "parachains-common", "parachains-runtimes-test-utils", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", + "polkadot-parachain-primitives", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", ] @@ -1012,7 +1012,7 @@ name = "assets-common" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "frame-support 4.0.0-dev", + "frame-support", "impl-trait-for-tuples", "log", "pallet-asset-conversion", @@ -1021,12 +1021,12 @@ dependencies = [ "parachains-common", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-api", + "sp-runtime", "sp-std 8.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", ] @@ -1307,8 +1307,8 @@ dependencies = [ "env_logger 0.9.3", "hash-db", "log", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", ] [[package]] @@ -1547,7 +1547,7 @@ name = "bp-asset-hub-rococo" version = "0.1.0" dependencies = [ "bp-xcm-bridge-hub-router", - "frame-support 4.0.0-dev", + "frame-support", "parity-scale-codec", "scale-info", ] @@ -1557,7 +1557,7 @@ name = "bp-asset-hub-westend" version = "0.1.0" dependencies = [ "bp-xcm-bridge-hub-router", - "frame-support 4.0.0-dev", + "frame-support", "parity-scale-codec", "scale-info", ] @@ -1569,10 +1569,10 @@ dependencies = [ "bp-messages", "bp-polkadot-core", "bp-runtime", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "polkadot-primitives 1.0.0", - "sp-api 4.0.0-dev", + "frame-support", + "frame-system", + "polkadot-primitives", + "sp-api", "sp-std 8.0.0", ] @@ -1583,9 +1583,9 @@ dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", "bp-runtime", - "frame-support 4.0.0-dev", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "frame-support", + "sp-api", + "sp-runtime", "sp-std 8.0.0", ] @@ -1596,9 +1596,9 @@ dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", "bp-runtime", - "frame-support 4.0.0-dev", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "frame-support", + "sp-api", + "sp-runtime", "sp-std 8.0.0", ] @@ -1609,9 +1609,9 @@ dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", "bp-runtime", - "frame-support 4.0.0-dev", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "frame-support", + "sp-api", + "sp-runtime", "sp-std 8.0.0", ] @@ -1622,9 +1622,9 @@ dependencies = [ "bp-bridge-hub-cumulus", "bp-messages", "bp-runtime", - "frame-support 4.0.0-dev", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "frame-support", + "sp-api", + "sp-runtime", "sp-std 8.0.0", ] @@ -1635,15 +1635,15 @@ dependencies = [ "bp-runtime", "bp-test-utils", "finality-grandpa", - "frame-support 4.0.0-dev", + "frame-support", "hex", "hex-literal", "parity-scale-codec", "scale-info", "serde", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-std 8.0.0", ] @@ -1654,8 +1654,8 @@ dependencies = [ "bp-header-chain", "bp-polkadot-core", "bp-runtime", - "frame-support 4.0.0-dev", - "sp-api 4.0.0-dev", + "frame-support", + "sp-api", "sp-std 8.0.0", ] @@ -1665,13 +1665,13 @@ version = "0.1.0" dependencies = [ "bp-header-chain", "bp-runtime", - "frame-support 4.0.0-dev", + "frame-support", "hex", "hex-literal", "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", + "sp-core", "sp-std 8.0.0", ] @@ -1682,12 +1682,12 @@ dependencies = [ "bp-header-chain", "bp-polkadot-core", "bp-runtime", - "frame-support 4.0.0-dev", + "frame-support", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-std 8.0.0", ] @@ -1698,8 +1698,8 @@ dependencies = [ "bp-header-chain", "bp-polkadot-core", "bp-runtime", - "frame-support 4.0.0-dev", - "sp-api 4.0.0-dev", + "frame-support", + "sp-api", "sp-std 8.0.0", ] @@ -1711,12 +1711,12 @@ dependencies = [ "bp-messages", "bp-polkadot-core", "bp-runtime", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-api", + "sp-runtime", "sp-std 8.0.0", ] @@ -1726,15 +1726,15 @@ version = "0.1.0" dependencies = [ "bp-messages", "bp-runtime", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "hex", "parity-scale-codec", "parity-util-mem", "scale-info", "serde", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-std 8.0.0", ] @@ -1744,12 +1744,12 @@ version = "0.1.0" dependencies = [ "bp-messages", "bp-runtime", - "frame-support 4.0.0-dev", + "frame-support", "hex", "hex-literal", "parity-scale-codec", "scale-info", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -1760,8 +1760,8 @@ dependencies = [ "bp-header-chain", "bp-polkadot-core", "bp-runtime", - "frame-support 4.0.0-dev", - "sp-api 4.0.0-dev", + "frame-support", + "sp-api", "sp-std 8.0.0", ] @@ -1769,8 +1769,8 @@ dependencies = [ name = "bp-runtime" version = "0.1.0" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "hash-db", "hex-literal", "impl-trait-for-tuples", @@ -1779,12 +1779,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-state-machine", "sp-std 8.0.0", - "sp-trie 22.0.0", + "sp-trie", "trie-db", ] @@ -1799,12 +1799,12 @@ dependencies = [ "ed25519-dalek", "finality-grandpa", "parity-scale-codec", - "sp-application-crypto 23.0.0", + "sp-application-crypto", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-std 8.0.0", - "sp-trie 22.0.0", + "sp-trie", ] [[package]] @@ -1814,8 +1814,8 @@ dependencies = [ "bp-header-chain", "bp-polkadot-core", "bp-runtime", - "frame-support 4.0.0-dev", - "sp-api 4.0.0-dev", + "frame-support", + "sp-api", "sp-std 8.0.0", ] @@ -1825,8 +1825,8 @@ version = "0.1.0" dependencies = [ "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", ] [[package]] @@ -1836,11 +1836,11 @@ dependencies = [ "bridge-hub-rococo-runtime", "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support 4.0.0-dev", + "frame-support", "parachains-common", "serde_json", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", ] [[package]] @@ -1853,17 +1853,17 @@ dependencies = [ "cumulus-pallet-dmp-queue", "cumulus-pallet-xcmp-queue", "emulated-integration-tests-common", - "frame-support 4.0.0-dev", + "frame-support", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-bridge-messages", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-xcm", "parachains-common", "parity-scale-codec", "rococo-westend-system-emulated-network", - "staging-xcm 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-executor", ] [[package]] @@ -1891,60 +1891,60 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-aura", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-bridge-grandpa", "pallet-bridge-messages", "pallet-bridge-parachains", "pallet-bridge-relayers", "pallet-collator-selection", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-multisig", - "pallet-session 4.0.0-dev", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-session", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-utility", "pallet-xcm", "pallet-xcm-benchmarks", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "polkadot-runtime-common", "rococo-runtime-constants", "scale-info", "serde", "smallvec", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-keyring", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "static_assertions", "substrate-wasm-builder", ] @@ -1964,33 +1964,33 @@ dependencies = [ "bridge-runtime-common", "cumulus-pallet-parachain-system", "cumulus-pallet-xcmp-queue", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-bridge-grandpa", "pallet-bridge-messages", "pallet-bridge-parachains", "pallet-bridge-relayers", "pallet-collator-selection", - "pallet-session 4.0.0-dev", + "pallet-session", "pallet-utility", "pallet-xcm", "pallet-xcm-benchmarks", "parachains-common", "parachains-runtimes-test-utils", "parity-scale-codec", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", + "sp-runtime", "sp-tracing 10.0.0", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] @@ -2000,11 +2000,11 @@ dependencies = [ "bridge-hub-westend-runtime", "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support 4.0.0-dev", + "frame-support", "parachains-common", "serde_json", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", ] [[package]] @@ -2017,17 +2017,17 @@ dependencies = [ "cumulus-pallet-dmp-queue", "cumulus-pallet-xcmp-queue", "emulated-integration-tests-common", - "frame-support 4.0.0-dev", + "frame-support", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-bridge-messages", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-xcm", "parachains-common", "parity-scale-codec", "rococo-westend-system-emulated-network", - "staging-xcm 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-executor", ] [[package]] @@ -2054,59 +2054,59 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-aura", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-bridge-grandpa", "pallet-bridge-messages", "pallet-bridge-parachains", "pallet-bridge-relayers", "pallet-collator-selection", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-multisig", - "pallet-session 4.0.0-dev", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-session", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-utility", "pallet-xcm", "pallet-xcm-benchmarks", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "polkadot-runtime-common", "scale-info", "serde", "smallvec", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-keyring", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "static_assertions", "substrate-wasm-builder", "westend-runtime-constants", @@ -2124,27 +2124,27 @@ dependencies = [ "bp-runtime", "bp-test-utils", "bp-xcm-bridge-hub-router", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "hash-db", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-bridge-grandpa", "pallet-bridge-messages", "pallet-bridge-parachains", "pallet-bridge-relayers", - "pallet-transaction-payment 4.0.0-dev", + "pallet-transaction-payment", "pallet-utility", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "sp-trie 22.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", + "sp-trie", + "staging-xcm", + "staging-xcm-builder", "static_assertions", ] @@ -2600,10 +2600,10 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -2611,13 +2611,13 @@ dependencies = [ "log", "pallet-alliance", "pallet-aura", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-collator-selection", "pallet-collective", "pallet-collective-content", "pallet-core-fellowship", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-multisig", "pallet-preimage", "pallet-proxy", @@ -2625,38 +2625,38 @@ dependencies = [ "pallet-referenda", "pallet-salary", "pallet-scheduler", - "pallet-session 4.0.0-dev", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-session", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-utility", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "polkadot-runtime-common", "scale-info", "smallvec", - "sp-api 4.0.0-dev", - "sp-arithmetic 16.0.0", + "sp-api", + "sp-arithmetic", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", "testnets-common", "westend-runtime-constants", @@ -2821,55 +2821,55 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-aura", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-collator-selection", "pallet-contracts", "pallet-insecure-randomness-collective-flip", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-multisig", - "pallet-session 4.0.0-dev", + "pallet-session", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-utility", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "polkadot-runtime-common", "rococo-runtime-constants", "scale-info", "smallvec", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", ] @@ -3281,8 +3281,8 @@ dependencies = [ "sc-cli", "sc-client-api", "sc-service", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "url", ] @@ -3304,14 +3304,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-client-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-maybe-compressed-blob", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "sp-tracing 10.0.0", "tracing", ] @@ -3333,7 +3333,7 @@ dependencies = [ "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-client-api", "sc-consensus", "sc-consensus-aura", @@ -3341,18 +3341,18 @@ dependencies = [ "sc-consensus-slots", "sc-telemetry", "schnellru", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", + "sp-api", + "sp-application-crypto", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-timestamp 4.0.0-dev", + "sp-core", + "sp-inherents", + "sp-keystore", + "sp-runtime", + "sp-state-machine", + "sp-timestamp", "substrate-prometheus-endpoint", "tracing", ] @@ -3372,19 +3372,19 @@ dependencies = [ "futures-timer", "log", "parity-scale-codec", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-client-api", "sc-consensus", "sc-consensus-babe", "schnellru", "sp-blockchain", "sp-consensus", - "sp-consensus-slots 0.10.0-dev", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-timestamp 4.0.0-dev", + "sp-consensus-slots", + "sp-core", + "sp-runtime", + "sp-timestamp", "sp-tracing 10.0.0", - "sp-trie 22.0.0", + "sp-trie", "substrate-prometheus-endpoint", "tracing", ] @@ -3397,9 +3397,9 @@ dependencies = [ "async-trait", "cumulus-primitives-parachain-inherent", "sp-consensus", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-inherents", + "sp-runtime", + "sp-state-machine", "thiserror", ] @@ -3414,13 +3414,13 @@ dependencies = [ "futures", "parking_lot 0.12.1", "sc-consensus", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-core", + "sp-inherents", + "sp-runtime", "substrate-prometheus-endpoint", "tracing", ] @@ -3439,19 +3439,19 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "polkadot-node-primitives", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-test-client", "portpicker", "sc-cli", "sc-client-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-keystore", + "sp-runtime", + "sp-state-machine", "substrate-test-utils", "tokio", "tracing", @@ -3472,7 +3472,7 @@ dependencies = [ "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "portpicker", "rand 0.8.5", "sc-cli", @@ -3480,7 +3480,7 @@ dependencies = [ "sc-consensus", "sp-consensus", "sp-maybe-compressed-blob", - "sp-runtime 24.0.0", + "sp-runtime", "substrate-test-utils", "tokio", "tracing", @@ -3501,7 +3501,7 @@ dependencies = [ "cumulus-relay-chain-interface", "cumulus-relay-chain-minimal-node", "futures", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-client-api", "sc-consensus", "sc-network", @@ -3513,11 +3513,11 @@ dependencies = [ "sc-telemetry", "sc-transaction-pool", "sc-utils", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-transaction-pool", ] @@ -3526,15 +3526,15 @@ name = "cumulus-pallet-aura-ext" version = "0.1.0" dependencies = [ "cumulus-pallet-parachain-system", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "pallet-aura", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto 23.0.0", + "sp-application-crypto", "sp-consensus-aura", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -3543,18 +3543,18 @@ name = "cumulus-pallet-dmp-queue" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm 1.0.0", + "staging-xcm", ] [[package]] @@ -3570,33 +3570,33 @@ dependencies = [ "cumulus-test-client", "cumulus-test-relay-sproof-builder", "environmental", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "futures", "hex-literal", "impl-trait-for-tuples", "lazy_static", "log", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-runtime-parachains 1.0.0", + "polkadot-parachain-primitives", + "polkadot-runtime-parachains", "rand 0.8.5", "sc-client-api", "scale-info", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-trie 22.0.0", - "sp-version 22.0.0", - "staging-xcm 1.0.0", + "sp-trie", + "sp-version", + "staging-xcm", "trie-db", "trie-standardmap", ] @@ -3615,12 +3615,12 @@ dependencies = [ name = "cumulus-pallet-session-benchmarking" version = "3.0.0" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-session 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-session", "parity-scale-codec", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -3629,13 +3629,13 @@ name = "cumulus-pallet-solo-to-para" version = "0.1.0" dependencies = [ "cumulus-pallet-parachain-system", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "pallet-sudo", "parity-scale-codec", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "scale-info", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -3644,14 +3644,14 @@ name = "cumulus-pallet-xcm" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "staging-xcm 1.0.0", + "staging-xcm", ] [[package]] @@ -3662,23 +3662,23 @@ dependencies = [ "bp-xcm-bridge-hub-router", "cumulus-pallet-parachain-system", "cumulus-primitives-core", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", - "pallet-message-queue 7.0.0-dev", + "pallet-balances", + "pallet-message-queue", "parity-scale-codec", "polkadot-runtime-common", - "polkadot-runtime-parachains 1.0.0", + "polkadot-runtime-parachains", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] @@ -3687,13 +3687,13 @@ version = "0.1.0" dependencies = [ "cumulus-pallet-xcm", "cumulus-primitives-core", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", - "staging-xcm 1.0.0", + "staging-xcm", ] [[package]] @@ -3701,11 +3701,11 @@ name = "cumulus-primitives-aura" version = "0.1.0" dependencies = [ "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-primitives 1.0.0", - "sp-api 4.0.0-dev", + "polkadot-core-primitives", + "polkadot-primitives", + "sp-api", "sp-consensus-aura", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -3714,15 +3714,15 @@ name = "cumulus-primitives-core" version = "0.1.0" dependencies = [ "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-primitives", "scale-info", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-api", + "sp-runtime", "sp-std 8.0.0", - "sp-trie 22.0.0", - "staging-xcm 1.0.0", + "sp-trie", + "staging-xcm", ] [[package]] @@ -3736,14 +3736,14 @@ dependencies = [ "parity-scale-codec", "sc-client-api", "scale-info", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-api", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-state-machine", "sp-std 8.0.0", "sp-storage 13.0.0", - "sp-trie 22.0.0", + "sp-trie", "tracing", ] @@ -3751,12 +3751,12 @@ dependencies = [ name = "cumulus-primitives-proof-size-hostfunction" version = "0.1.0" dependencies = [ - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-io 23.0.0", + "sp-io", "sp-runtime-interface 17.0.0", - "sp-state-machine 0.28.0", - "sp-trie 22.0.0", + "sp-state-machine", + "sp-trie", ] [[package]] @@ -3766,9 +3766,9 @@ dependencies = [ "cumulus-primitives-core", "futures", "parity-scale-codec", - "sp-inherents 4.0.0-dev", + "sp-inherents", "sp-std 8.0.0", - "sp-timestamp 4.0.0-dev", + "sp-timestamp", ] [[package]] @@ -3776,18 +3776,18 @@ name = "cumulus-primitives-utility" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "frame-support 4.0.0-dev", + "frame-support", "log", "pallet-xcm-benchmarks", "parity-scale-codec", "polkadot-runtime-common", - "polkadot-runtime-parachains 1.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "polkadot-runtime-parachains", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] @@ -3801,7 +3801,7 @@ dependencies = [ "futures", "futures-timer", "polkadot-cli", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-service", "polkadot-test-client", "prioritized-metered-channel", @@ -3810,12 +3810,12 @@ dependencies = [ "sc-sysinfo", "sc-telemetry", "sc-tracing", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-keyring", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", ] [[package]] @@ -3829,9 +3829,9 @@ dependencies = [ "parity-scale-codec", "polkadot-overseer", "sc-client-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-state-machine 0.28.0", + "sp-state-machine", "thiserror", ] @@ -3848,7 +3848,7 @@ dependencies = [ "parking_lot 0.12.1", "polkadot-availability-recovery", "polkadot-collator-protocol", - "polkadot-core-primitives 1.0.0", + "polkadot-core-primitives", "polkadot-network-bridge", "polkadot-node-collation-generation", "polkadot-node-core-chain-api", @@ -3857,7 +3857,7 @@ dependencies = [ "polkadot-node-network-protocol", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-authority-discovery", "sc-client-api", "sc-network", @@ -3865,11 +3865,11 @@ dependencies = [ "sc-service", "sc-tracing", "sc-utils", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-consensus-babe 0.10.0-dev", - "sp-runtime 24.0.0", + "sp-consensus-babe", + "sp-runtime", "substrate-prometheus-endpoint", "tokio", "tracing", @@ -3898,14 +3898,14 @@ dependencies = [ "serde_json", "smoldot", "smoldot-light", - "sp-api 4.0.0-dev", - "sp-authority-discovery 4.0.0-dev", - "sp-consensus-babe 0.10.0-dev", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-api", + "sp-authority-discovery", + "sp-consensus-babe", + "sp-core", + "sp-runtime", + "sp-state-machine", "sp-storage 13.0.0", - "sp-version 22.0.0", + "sp-version", "thiserror", "tokio", "tokio-util", @@ -3923,25 +3923,25 @@ dependencies = [ "cumulus-test-relay-sproof-builder", "cumulus-test-runtime", "cumulus-test-service", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "frame-system", + "pallet-balances", + "pallet-transaction-payment", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "sc-block-builder", "sc-consensus", "sc-executor", "sc-executor-common", "sc-service", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", - "sp-timestamp 4.0.0-dev", + "sp-runtime", + "sp-timestamp", "substrate-test-client", ] @@ -3951,11 +3951,11 @@ version = "0.1.0" dependencies = [ "cumulus-primitives-core", "parity-scale-codec", - "polkadot-primitives 1.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "polkadot-primitives", + "sp-runtime", + "sp-state-machine", "sp-std 8.0.0", - "sp-trie 22.0.0", + "sp-trie", ] [[package]] @@ -3965,29 +3965,29 @@ dependencies = [ "cumulus-pallet-parachain-system", "cumulus-primitives-core", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-rpc-runtime-api", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-glutton", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "substrate-wasm-builder", ] @@ -4012,19 +4012,19 @@ dependencies = [ "cumulus-test-client", "cumulus-test-relay-sproof-builder", "cumulus-test-runtime", - "frame-system 4.0.0-dev", + "frame-system", "frame-system-rpc-runtime-api", "futures", "jsonrpsee", "pallet-im-online", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "parachains-common", "parity-scale-codec", "polkadot-cli", "polkadot-node-subsystem", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-service", "polkadot-test-service", "portpicker", @@ -4047,18 +4047,18 @@ dependencies = [ "sc-transaction-pool-api", "serde", "serde_json", - "sp-api 4.0.0-dev", - "sp-arithmetic 16.0.0", - "sp-authority-discovery 4.0.0-dev", + "sp-api", + "sp-arithmetic", + "sp-authority-discovery", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-timestamp 4.0.0-dev", + "sp-runtime", + "sp-state-machine", + "sp-timestamp", "sp-tracing 10.0.0", "substrate-test-client", "substrate-test-utils", @@ -4724,27 +4724,27 @@ dependencies = [ "cumulus-pallet-parachain-system", "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", - "frame-support 4.0.0-dev", + "frame-support", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-bridge-messages", "pallet-im-online", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-xcm", "parachains-common", "parity-scale-codec", "paste", - "polkadot-primitives 1.0.0", - "polkadot-runtime-parachains 1.0.0", + "polkadot-primitives", + "polkadot-runtime-parachains", "polkadot-service", "sc-consensus-grandpa", "serde_json", - "sp-authority-discovery 4.0.0-dev", - "sp-consensus-babe 0.10.0-dev", + "sp-authority-discovery", + "sp-consensus-babe", "sp-consensus-beefy", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "staging-xcm 1.0.0", + "sp-core", + "sp-runtime", + "staging-xcm", "xcm-emulator", ] @@ -4870,7 +4870,7 @@ dependencies = [ "honggfuzz", "polkadot-erasure-coding", "polkadot-node-primitives", - "polkadot-primitives 1.0.0", + "polkadot-primitives", ] [[package]] @@ -5221,28 +5221,28 @@ version = "0.0.1-dev" dependencies = [ "docify", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-rpc-runtime-api", "log", "pallet-examples", "parity-scale-codec", "scale-info", "simple-mermaid 0.1.0 (git+https://github.com/kianenigma/simple-mermaid.git?rev=e48b187bcfd5cc75111acd9d241f1bd36604344b)", - "sp-api 4.0.0-dev", - "sp-arithmetic 16.0.0", + "sp-api", + "sp-arithmetic", "sp-block-builder", "sp-consensus-aura", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-inherents", + "sp-io", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", ] [[package]] @@ -5250,9 +5250,9 @@ name = "frame-benchmarking" version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", - "frame-support 4.0.0-dev", - "frame-support-procedural 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-support-procedural", + "frame-system", "linregress", "log", "parity-scale-codec", @@ -5260,44 +5260,18 @@ dependencies = [ "rusty-fork", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-keystore", + "sp-runtime", "sp-runtime-interface 17.0.0", "sp-std 8.0.0", "sp-storage 13.0.0", "static_assertions", ] -[[package]] -name = "frame-benchmarking" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bffc0f167650e08c1c8eb3f564569e9e96d12a7cffebb9e3527041a36ffb7cce" -dependencies = [ - "frame-support 26.0.0", - "frame-support-procedural 21.0.0", - "frame-system 26.0.0", - "linregress", - "log", - "parity-scale-codec", - "paste", - "scale-info", - "serde", - "sp-api 24.0.0", - "sp-application-crypto 28.0.0", - "sp-core 26.0.0", - "sp-io 28.0.0", - "sp-runtime 29.0.0", - "sp-runtime-interface 22.0.0", - "sp-std 12.0.0", - "sp-storage 17.0.0", - "static_assertions", -] - [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" @@ -5307,9 +5281,9 @@ dependencies = [ "chrono", "clap 4.4.10", "comfy-table", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "gethostname", "handlebars", "itertools 0.10.5", @@ -5328,18 +5302,18 @@ dependencies = [ "sc-sysinfo", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-database", "sp-externalities 0.19.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-inherents", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-state-machine", "sp-storage 13.0.0", - "sp-trie 22.0.0", + "sp-trie", "sp-wasm-interface 14.0.0", "thiserror", "thousands", @@ -5349,13 +5323,13 @@ dependencies = [ name = "frame-benchmarking-pallet-pov" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -5363,81 +5337,51 @@ dependencies = [ name = "frame-election-provider-solution-type" version = "4.0.0-dev" dependencies = [ - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", + "frame-election-provider-support", + "frame-support", "parity-scale-codec", "proc-macro-crate 2.0.0", "proc-macro2", "quote", "scale-info", - "sp-arithmetic 16.0.0", + "sp-arithmetic", "syn 2.0.39", "trybuild", ] -[[package]] -name = "frame-election-provider-solution-type" -version = "12.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03911cf3675af64252a6de7b4f383eafa80d5ea5830184e7a0739aeb0b95272d" -dependencies = [ - "proc-macro-crate 1.3.1", - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" dependencies = [ - "frame-election-provider-solution-type 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-election-provider-solution-type", + "frame-support", + "frame-system", "parity-scale-codec", "rand 0.8.5", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-npos-elections 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-npos-elections", + "sp-runtime", "sp-std 8.0.0", ] -[[package]] -name = "frame-election-provider-support" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d24bb28c8c04cd8e6aba0ecabd01a94266f0271b4e0e9d1fc65cef17fa4f479" -dependencies = [ - "frame-election-provider-solution-type 12.0.0", - "frame-support 26.0.0", - "frame-system 26.0.0", - "parity-scale-codec", - "scale-info", - "sp-arithmetic 21.0.0", - "sp-core 26.0.0", - "sp-npos-elections 24.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "frame-election-solution-type-fuzzer" version = "2.0.0-alpha.5" dependencies = [ "clap 4.4.10", - "frame-election-provider-solution-type 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", + "frame-election-provider-solution-type", + "frame-election-provider-support", + "frame-support", "honggfuzz", "parity-scale-codec", "rand 0.8.5", "scale-info", - "sp-arithmetic 16.0.0", - "sp-npos-elections 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-npos-elections", + "sp-runtime", ] [[package]] @@ -5445,21 +5389,21 @@ name = "frame-executive" version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-try-runtime", "log", - "pallet-balances 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-balances", + "pallet-transaction-payment", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-inherents", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-version 22.0.0", + "sp-version", ] [[package]] @@ -5484,10 +5428,10 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-state-machine", "sp-tracing 10.0.0", "spinners", "substrate-rpc-client", @@ -5506,8 +5450,8 @@ dependencies = [ "docify", "environmental", "frame-metadata", - "frame-support-procedural 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support-procedural", + "frame-system", "impl-trait-for-tuples", "k256", "log", @@ -5519,63 +5463,21 @@ dependencies = [ "serde", "serde_json", "smallvec", - "sp-api 4.0.0-dev", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-core-hashing-proc-macro 9.0.0", + "sp-api", + "sp-arithmetic", + "sp-core", + "sp-core-hashing-proc-macro", "sp-debug-derive 8.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", - "sp-metadata-ir 0.1.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", - "sp-state-machine 0.28.0", + "sp-genesis-builder", + "sp-inherents", + "sp-io", + "sp-metadata-ir", + "sp-runtime", + "sp-staking", + "sp-state-machine", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-weights 20.0.0", - "static_assertions", - "tt-call", -] - -[[package]] -name = "frame-support" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a3c63ec85b8907268d6af6182d29d9a9752daa6979c9928566d56471f5ec731" -dependencies = [ - "aquamarine", - "array-bytes 6.1.0", - "bitflags 1.3.2", - "docify", - "environmental", - "frame-metadata", - "frame-support-procedural 21.0.0", - "impl-trait-for-tuples", - "k256", - "log", - "macro_magic", - "parity-scale-codec", - "paste", - "scale-info", - "serde", - "serde_json", - "smallvec", - "sp-api 24.0.0", - "sp-arithmetic 21.0.0", - "sp-core 26.0.0", - "sp-core-hashing-proc-macro 13.0.0", - "sp-debug-derive 12.0.0", - "sp-genesis-builder 0.5.0", - "sp-inherents 24.0.0", - "sp-io 28.0.0", - "sp-metadata-ir 0.4.0", - "sp-runtime 29.0.0", - "sp-staking 24.0.0", - "sp-state-machine 0.33.0", - "sp-std 12.0.0", - "sp-tracing 14.0.0", - "sp-weights 25.0.0", + "sp-weights", "static_assertions", "tt-call", ] @@ -5588,33 +5490,13 @@ dependencies = [ "cfg-expr", "derive-syn-parse", "expander 2.0.0", - "frame-support-procedural-tools 4.0.0-dev", - "itertools 0.10.5", - "macro_magic", - "proc-macro-warning", - "proc-macro2", - "quote", - "sp-core-hashing 9.0.0", - "syn 2.0.39", -] - -[[package]] -name = "frame-support-procedural" -version = "21.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "545ed122b36d06c416a6fbe2e66ab57a455200bfd20ece87cdd604d18f674f23" -dependencies = [ - "Inflector", - "cfg-expr", - "derive-syn-parse", - "expander 2.0.0", - "frame-support-procedural-tools 9.0.0", + "frame-support-procedural-tools", "itertools 0.10.5", "macro_magic", "proc-macro-warning", "proc-macro2", "quote", - "sp-core-hashing 13.0.0", + "sp-core-hashing", "syn 2.0.39", ] @@ -5622,26 +5504,13 @@ dependencies = [ name = "frame-support-procedural-tools" version = "4.0.0-dev" dependencies = [ - "frame-support-procedural-tools-derive 3.0.0", + "frame-support-procedural-tools-derive", "proc-macro-crate 2.0.0", "proc-macro2", "quote", "syn 2.0.39", ] -[[package]] -name = "frame-support-procedural-tools" -version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3ac1266522a8c9a2d2d26d205ec3028b88582d5f3cd5cbc75d0ec8271d197b7" -dependencies = [ - "frame-support-procedural-tools-derive 10.0.0", - "proc-macro-crate 1.3.1", - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" @@ -5651,41 +5520,30 @@ dependencies = [ "syn 2.0.39", ] -[[package]] -name = "frame-support-procedural-tools-derive" -version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9c078db2242ea7265faa486004e7fd8daaf1a577cfcac0070ce55d926922883" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "frame-support-test" version = "3.0.0" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", "frame-metadata", - "frame-support 4.0.0-dev", + "frame-support", "frame-support-test-pallet", - "frame-system 4.0.0-dev", + "frame-system", "parity-scale-codec", "pretty_assertions", "rustversion", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-metadata-ir 0.1.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-api", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-metadata-ir", + "sp-runtime", + "sp-state-machine", "sp-std 8.0.0", - "sp-version 22.0.0", + "sp-version", "static_assertions", "trybuild", ] @@ -5694,25 +5552,25 @@ dependencies = [ name = "frame-support-test-compile-pass" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-version 22.0.0", + "sp-core", + "sp-runtime", + "sp-version", ] [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "serde", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -5731,56 +5589,36 @@ dependencies = [ "cfg-if", "criterion 0.4.0", "docify", - "frame-support 4.0.0-dev", + "frame-support", "log", "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "sp-version 22.0.0", - "sp-weights 20.0.0", + "sp-version", + "sp-weights", "substrate-test-runtime-client", ] -[[package]] -name = "frame-system" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed5d6c8e319cea3160ec8f6c831edc77ceca442c7488d0a6d2e6a6be54fcb142" -dependencies = [ - "cfg-if", - "frame-support 26.0.0", - "log", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core 26.0.0", - "sp-io 28.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", - "sp-version 27.0.0", - "sp-weights 25.0.0", -] - [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "sp-version 22.0.0", + "sp-version", ] [[package]] @@ -5788,17 +5626,17 @@ name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" dependencies = [ "parity-scale-codec", - "sp-api 4.0.0-dev", + "sp-api", ] [[package]] name = "frame-try-runtime" version = "0.10.0-dev" dependencies = [ - "frame-support 4.0.0-dev", + "frame-support", "parity-scale-codec", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-api", + "sp-runtime", "sp-std 8.0.0", ] @@ -5976,12 +5814,12 @@ name = "generate-bags" version = "4.0.0-dev" dependencies = [ "chrono", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-election-provider-support", + "frame-support", + "frame-system", "num-format", - "pallet-staking 4.0.0-dev", - "sp-staking 4.0.0-dev", + "pallet-staking", + "sp-staking", ] [[package]] @@ -6112,38 +5950,38 @@ dependencies = [ "cumulus-primitives-aura", "cumulus-primitives-core", "cumulus-primitives-timestamp", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "pallet-aura", "pallet-glutton", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parachains-common", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", ] @@ -6999,12 +6837,12 @@ checksum = "c33070833c9ee02266356de0c43f723152bd38bd96ddf52c82b3af10c9138b28" name = "kitchensink-runtime" version = "3.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-benchmarking-pallet-pov", - "frame-election-provider-support 4.0.0-dev", + "frame-election-provider-support", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -7016,11 +6854,11 @@ dependencies = [ "pallet-asset-rate", "pallet-asset-tx-payment", "pallet-assets", - "pallet-authority-discovery 4.0.0-dev", - "pallet-authorship 4.0.0-dev", - "pallet-babe 4.0.0-dev", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", "pallet-bags-list", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-bounties", "pallet-broker", "pallet-child-bounties", @@ -7041,7 +6879,7 @@ dependencies = [ "pallet-insecure-randomness-collective-flip", "pallet-lottery", "pallet-membership", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-mixnet", "pallet-mmr", "pallet-multisig", @@ -7064,50 +6902,50 @@ dependencies = [ "pallet-safe-mode", "pallet-salary", "pallet-scheduler", - "pallet-session 4.0.0-dev", + "pallet-session", "pallet-session-benchmarking", "pallet-skip-feeless-payment", "pallet-society", - "pallet-staking 4.0.0-dev", + "pallet-staking", "pallet-staking-reward-curve", "pallet-staking-runtime-api", "pallet-state-trie-migration", "pallet-statement", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "pallet-tips", - "pallet-transaction-payment 4.0.0-dev", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-transaction-storage", "pallet-treasury", "pallet-tx-pause", "pallet-uniques", "pallet-utility", - "pallet-vesting 4.0.0-dev", + "pallet-vesting", "pallet-whitelist", "parity-scale-codec", "primitive-types", "scale-info", "serde_json", - "sp-api 4.0.0-dev", - "sp-authority-discovery 4.0.0-dev", + "sp-api", + "sp-authority-discovery", "sp-block-builder", - "sp-consensus-babe 0.10.0-dev", + "sp-consensus-babe", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-mixnet", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", + "sp-runtime", + "sp-session", + "sp-staking", "sp-statement-store", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "static_assertions", "substrate-wasm-builder", ] @@ -8141,13 +7979,13 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", - "sp-io 23.0.0", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", - "sp-timestamp 4.0.0-dev", + "sp-runtime", + "sp-timestamp", "substrate-build-script-utils", "substrate-frame-rpc-system", ] @@ -8157,15 +7995,15 @@ name = "minimal-runtime" version = "0.1.0" dependencies = [ "frame", - "frame-support 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-support", + "pallet-balances", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "scale-info", - "sp-genesis-builder 0.1.0", + "sp-genesis-builder", "substrate-wasm-builder", ] @@ -8225,13 +8063,13 @@ dependencies = [ "sc-block-builder", "sc-client-api", "sc-offchain", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", "sp-consensus-beefy", - "sp-core 21.0.0", + "sp-core", "sp-mmr-primitives", - "sp-runtime 24.0.0", + "sp-runtime", "sp-tracing 10.0.0", "substrate-test-runtime-client", "tokio", @@ -8246,11 +8084,11 @@ dependencies = [ "parity-scale-codec", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-mmr-primitives", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -8616,13 +8454,13 @@ dependencies = [ "serde", "serde_json", "sp-consensus", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-timestamp 4.0.0-dev", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-state-machine", + "sp-timestamp", "sp-tracing 10.0.0", - "sp-trie 22.0.0", + "sp-trie", "tempfile", ] @@ -8630,8 +8468,8 @@ dependencies = [ name = "node-primitives" version = "2.0.0" dependencies = [ - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", ] [[package]] @@ -8654,13 +8492,13 @@ dependencies = [ "sc-rpc-spec-v2", "sc-sync-state-rpc", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-consensus-babe 0.10.0-dev", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-consensus-babe", + "sp-keystore", + "sp-runtime", "sp-statement-store", "substrate-frame-rpc-system", "substrate-state-trie-migration-rpc", @@ -8680,13 +8518,13 @@ name = "node-template" version = "4.0.0-dev" dependencies = [ "clap 4.4.10", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-benchmarking-cli", - "frame-system 4.0.0-dev", + "frame-system", "futures", "jsonrpsee", "node-template-runtime", - "pallet-transaction-payment 4.0.0-dev", + "pallet-transaction-payment", "pallet-transaction-payment-rpc", "sc-basic-authorship", "sc-cli", @@ -8703,17 +8541,17 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", "sp-consensus-aura", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", - "sp-timestamp 4.0.0-dev", + "sp-runtime", + "sp-timestamp", "substrate-build-script-utils", "substrate-frame-rpc-system", "try-runtime-cli", @@ -8737,38 +8575,38 @@ dependencies = [ name = "node-template-runtime" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "pallet-aura", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-grandpa", "pallet-sudo", "pallet-template", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "scale-info", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "substrate-wasm-builder", ] @@ -8776,7 +8614,7 @@ dependencies = [ name = "node-testing" version = "3.0.0-dev" dependencies = [ - "frame-system 4.0.0-dev", + "frame-system", "fs_extra", "futures", "kitchensink-runtime", @@ -8794,16 +8632,16 @@ dependencies = [ "sc-consensus", "sc-executor", "sc-service", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", - "sp-timestamp 4.0.0-dev", + "sp-runtime", + "sp-timestamp", "staging-node-cli", "substrate-test-client", "tempfile", @@ -9109,19 +8947,19 @@ name = "pallet-alliance" version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-collective", "pallet-identity", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-core-hashing 9.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-core-hashing", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9129,19 +8967,19 @@ dependencies = [ name = "pallet-asset-conversion" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "primitive-types", "scale-info", - "sp-api 4.0.0-dev", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9149,17 +8987,17 @@ dependencies = [ name = "pallet-asset-conversion-tx-payment" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "pallet-asset-conversion", "pallet-assets", - "pallet-balances 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-balances", + "pallet-transaction-payment", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-storage 13.0.0", ] @@ -9168,15 +9006,15 @@ dependencies = [ name = "pallet-asset-rate" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9184,20 +9022,20 @@ dependencies = [ name = "pallet-asset-tx-payment" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "pallet-assets", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-authorship", + "pallet-balances", + "pallet-transaction-payment", "parity-scale-codec", "scale-info", "serde", "serde_json", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-storage 13.0.0", ] @@ -9206,16 +9044,16 @@ dependencies = [ name = "pallet-assets" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9223,14 +9061,14 @@ dependencies = [ name = "pallet-atomic-swap" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-support", + "frame-system", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9238,17 +9076,17 @@ dependencies = [ name = "pallet-aura" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto 23.0.0", + "sp-application-crypto", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9256,136 +9094,79 @@ dependencies = [ name = "pallet-authority-discovery" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-session 4.0.0-dev", + "frame-support", + "frame-system", + "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto 23.0.0", - "sp-authority-discovery 4.0.0-dev", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-application-crypto", + "sp-authority-discovery", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] -[[package]] -name = "pallet-authority-discovery" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fcf7df7937894b378d787658d02f5392973bc35a6bb1b68f38517b313ed65a7" -dependencies = [ - "frame-support 26.0.0", - "frame-system 26.0.0", - "pallet-session 26.0.0", - "parity-scale-codec", - "scale-info", - "sp-application-crypto 28.0.0", - "sp-authority-discovery 24.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "pallet-authorship" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] -[[package]] -name = "pallet-authorship" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dd3dcc3621193b724ea94d6a259466af11e68f7b3c81d242b78003793080e79" -dependencies = [ - "frame-support 26.0.0", - "frame-system 26.0.0", - "impl-trait-for-tuples", - "parity-scale-codec", - "scale-info", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "pallet-babe" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-offences", - "pallet-session 4.0.0-dev", - "pallet-staking 4.0.0-dev", + "pallet-session", + "pallet-staking", "pallet-staking-reward-curve", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto 23.0.0", - "sp-consensus-babe 0.10.0-dev", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", + "sp-application-crypto", + "sp-consensus-babe", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", "sp-std 8.0.0", ] -[[package]] -name = "pallet-babe" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67dfeb893ce5056a9f95e93f50861fb10afafcc24856c5a9e99e3f38d450195c" -dependencies = [ - "frame-benchmarking 26.0.0", - "frame-support 26.0.0", - "frame-system 26.0.0", - "log", - "pallet-authorship 26.0.0", - "pallet-session 26.0.0", - "pallet-timestamp 25.0.0", - "parity-scale-codec", - "scale-info", - "sp-application-crypto 28.0.0", - "sp-consensus-babe 0.30.0", - "sp-core 26.0.0", - "sp-io 28.0.0", - "sp-runtime 29.0.0", - "sp-session 25.0.0", - "sp-staking 24.0.0", - "sp-std 12.0.0", -] - [[package]] name = "pallet-bags-list" version = "4.0.0-dev" dependencies = [ "aquamarine", "docify", - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", ] @@ -9394,7 +9175,7 @@ dependencies = [ name = "pallet-bags-list-fuzzer" version = "4.0.0-dev" dependencies = [ - "frame-election-provider-support 4.0.0-dev", + "frame-election-provider-support", "honggfuzz", "pallet-bags-list", "rand 0.8.5", @@ -9404,15 +9185,15 @@ dependencies = [ name = "pallet-bags-list-remote-tests" version = "4.0.0-dev" dependencies = [ - "frame-election-provider-support 4.0.0-dev", + "frame-election-provider-support", "frame-remote-externalities", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "pallet-bags-list", - "pallet-staking 4.0.0-dev", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "pallet-staking", + "sp-core", + "sp-runtime", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-tracing 10.0.0", @@ -9422,61 +9203,45 @@ dependencies = [ name = "pallet-balances" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-transaction-payment 4.0.0-dev", + "pallet-transaction-payment", "parity-scale-codec", "paste", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] -[[package]] -name = "pallet-balances" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8784a22a3c2e0cd17d775e08002d5a5ce44267717a9d96fd3644fdf38cfcc4d5" -dependencies = [ - "frame-benchmarking 26.0.0", - "frame-support 26.0.0", - "frame-system 26.0.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "pallet-beefy" version = "4.0.0-dev" dependencies = [ - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-offences", - "pallet-session 4.0.0-dev", - "pallet-staking 4.0.0-dev", + "pallet-session", + "pallet-staking", "pallet-staking-reward-curve", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", "serde", "sp-consensus-beefy", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", - "sp-state-machine 0.28.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-state-machine", "sp-std 8.0.0", ] @@ -9486,22 +9251,22 @@ version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", "binary-merkle-tree", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "pallet-beefy", "pallet-mmr", - "pallet-session 4.0.0-dev", + "pallet-session", "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus-beefy", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", - "sp-state-machine 0.28.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", + "sp-state-machine", "sp-std 8.0.0", ] @@ -9509,17 +9274,17 @@ dependencies = [ name = "pallet-bounties" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9531,18 +9296,18 @@ dependencies = [ "bp-runtime", "bp-test-utils", "finality-grandpa", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "sp-trie 22.0.0", + "sp-trie", ] [[package]] @@ -9552,16 +9317,16 @@ dependencies = [ "bp-messages", "bp-runtime", "bp-test-utils", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "num-traits", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9574,18 +9339,18 @@ dependencies = [ "bp-polkadot-core", "bp-runtime", "bp-test-utils", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-bridge-grandpa", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "sp-trie 22.0.0", + "sp-trie", ] [[package]] @@ -9595,17 +9360,17 @@ dependencies = [ "bp-messages", "bp-relayers", "bp-runtime", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-bridge-messages", "parity-scale-codec", "scale-info", - "sp-arithmetic 16.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9614,15 +9379,15 @@ name = "pallet-broker" version = "0.1.0" dependencies = [ "bitvec", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9630,18 +9395,18 @@ dependencies = [ name = "pallet-child-bounties" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-bounties", "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9649,23 +9414,23 @@ dependencies = [ name = "pallet-collator-selection" version = "3.0.0" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-aura", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", - "pallet-session 4.0.0-dev", - "pallet-timestamp 4.0.0-dev", + "pallet-authorship", + "pallet-balances", + "pallet-session", + "pallet-timestamp", "parity-scale-codec", "rand 0.8.5", "scale-info", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", "sp-tracing 10.0.0", ] @@ -9674,15 +9439,15 @@ dependencies = [ name = "pallet-collective" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9690,14 +9455,14 @@ dependencies = [ name = "pallet-collective-content" version = "0.1.0" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9710,20 +9475,20 @@ dependencies = [ "bitflags 1.3.2", "env_logger 0.9.3", "environmental", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-contracts-fixtures", "pallet-contracts-proc-macro", "pallet-contracts-uapi", "pallet-insecure-randomness-collective-flip", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-proxy", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "pallet-utility", "parity-scale-codec", "pretty_assertions", @@ -9732,15 +9497,15 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-core", + "sp-io", + "sp-keystore", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", + "staging-xcm", + "staging-xcm-builder", "wasm-instrument 0.4.0", "wasmi", "wat", @@ -9752,9 +9517,9 @@ version = "1.0.0" dependencies = [ "anyhow", "cfg-if", - "frame-system 4.0.0-dev", + "frame-system", "parity-wasm", - "sp-runtime 24.0.0", + "sp-runtime", "tempfile", "toml 0.8.8", "twox-hash", @@ -9770,37 +9535,37 @@ name = "pallet-contracts-mock-network" version = "1.0.0" dependencies = [ "assert_matches", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-contracts", "pallet-contracts-fixtures", "pallet-contracts-proc-macro", "pallet-contracts-uapi", "pallet-insecure-randomness-collective-flip", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-proxy", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "pallet-utility", "pallet-xcm", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", - "polkadot-runtime-parachains 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-parachains", "pretty_assertions", "scale-info", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-core", + "sp-io", + "sp-keystore", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", - "xcm-simulator 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "xcm-simulator", ] [[package]] @@ -9827,17 +9592,17 @@ name = "pallet-conviction-voting" version = "4.0.0-dev" dependencies = [ "assert_matches", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "pallet-scheduler", "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9845,16 +9610,16 @@ dependencies = [ name = "pallet-core-fellowship" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9862,13 +9627,13 @@ dependencies = [ name = "pallet-default-config-example" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9876,19 +9641,19 @@ dependencies = [ name = "pallet-democracy" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-preimage", "pallet-scheduler", "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9896,15 +9661,15 @@ dependencies = [ name = "pallet-dev-mode" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -9912,24 +9677,24 @@ dependencies = [ name = "pallet-election-provider-e2e-test" version = "1.0.0" dependencies = [ - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", "pallet-bags-list", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-election-provider-multi-phase", - "pallet-session 4.0.0-dev", - "pallet-staking 4.0.0-dev", - "pallet-timestamp 4.0.0-dev", + "pallet-session", + "pallet-staking", + "pallet-timestamp", "parity-scale-codec", "parking_lot 0.12.1", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-npos-elections 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-core", + "sp-io", + "sp-npos-elections", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", "sp-tracing 10.0.0", ] @@ -9938,22 +9703,22 @@ dependencies = [ name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-election-provider-support-benchmarking", "parity-scale-codec", "parking_lot 0.12.1", "rand 0.8.5", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-npos-elections 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-npos-elections", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", "strum", @@ -9963,12 +9728,12 @@ dependencies = [ name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-system", "parity-scale-codec", - "sp-npos-elections 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-npos-elections", + "sp-runtime", "sp-std 8.0.0", ] @@ -9976,18 +9741,18 @@ dependencies = [ name = "pallet-elections-phragmen" version = "5.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-npos-elections 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-core", + "sp-io", + "sp-npos-elections", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", "sp-tracing 10.0.0", "substrate-test-utils", @@ -9997,16 +9762,16 @@ dependencies = [ name = "pallet-example-basic" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10023,16 +9788,16 @@ dependencies = [ name = "pallet-example-kitchensink" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10040,16 +9805,16 @@ dependencies = [ name = "pallet-example-offchain-worker" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "lite-json", "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-keystore", + "sp-runtime", "sp-std 8.0.0", ] @@ -10057,14 +9822,14 @@ dependencies = [ name = "pallet-example-split" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-std 8.0.0", ] @@ -10086,21 +9851,21 @@ name = "pallet-fast-unstake" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", - "pallet-staking 4.0.0-dev", + "pallet-balances", + "pallet-staking", "pallet-staking-reward-curve", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", "sp-tracing 10.0.0", "substrate-test-utils", @@ -10111,16 +9876,16 @@ name = "pallet-glutton" version = "4.0.0-dev" dependencies = [ "blake2 0.10.6", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10129,28 +9894,28 @@ name = "pallet-grandpa" version = "4.0.0-dev" dependencies = [ "finality-grandpa", - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-offences", - "pallet-session 4.0.0-dev", - "pallet-staking 4.0.0-dev", + "pallet-session", + "pallet-staking", "pallet-staking-reward-curve", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto 23.0.0", + "sp-application-crypto", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", + "sp-runtime", + "sp-session", + "sp-staking", "sp-std 8.0.0", ] @@ -10159,15 +9924,15 @@ name = "pallet-identity" version = "4.0.0-dev" dependencies = [ "enumflags2", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10175,19 +9940,19 @@ dependencies = [ name = "pallet-im-online" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-authorship 4.0.0-dev", - "pallet-session 4.0.0-dev", + "pallet-authorship", + "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", ] @@ -10195,16 +9960,16 @@ dependencies = [ name = "pallet-indices" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -10212,14 +9977,14 @@ dependencies = [ name = "pallet-insecure-randomness-collective-flip" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "safe-mix", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10227,16 +9992,16 @@ dependencies = [ name = "pallet-lottery" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", + "frame-benchmarking", + "frame-support", "frame-support-test", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-system", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10244,15 +10009,15 @@ dependencies = [ name = "pallet-membership" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10260,60 +10025,40 @@ dependencies = [ name = "pallet-message-queue" version = "7.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "rand 0.8.5", "rand_distr", "scale-info", "serde", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-weights 20.0.0", -] - -[[package]] -name = "pallet-message-queue" -version = "29.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f43f0dc71d08be37daa1158060c47ba5145c5173636078ca75a4a1455815ea4" -dependencies = [ - "frame-benchmarking 26.0.0", - "frame-support 26.0.0", - "frame-system 26.0.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-arithmetic 21.0.0", - "sp-core 26.0.0", - "sp-io 28.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", - "sp-weights 25.0.0", + "sp-weights", ] [[package]] name = "pallet-mixnet" version = "0.1.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "serde", - "sp-application-crypto 23.0.0", - "sp-arithmetic 16.0.0", - "sp-io 23.0.0", + "sp-application-crypto", + "sp-arithmetic", + "sp-io", "sp-mixnet", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -10323,17 +10068,17 @@ version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", "env_logger 0.9.3", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "itertools 0.10.5", "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-mmr-primitives", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -10341,15 +10086,15 @@ dependencies = [ name = "pallet-multisig" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10357,18 +10102,18 @@ dependencies = [ name = "pallet-nft-fractionalization" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-nfts", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10377,17 +10122,17 @@ name = "pallet-nfts" version = "4.0.0-dev" dependencies = [ "enumflags2", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-keystore", + "sp-runtime", "sp-std 8.0.0", ] @@ -10397,7 +10142,7 @@ version = "4.0.0-dev" dependencies = [ "pallet-nfts", "parity-scale-codec", - "sp-api 4.0.0-dev", + "sp-api", "sp-std 8.0.0", ] @@ -10405,14 +10150,14 @@ dependencies = [ name = "pallet-nicks" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-support", + "frame-system", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10420,16 +10165,16 @@ dependencies = [ name = "pallet-nis" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10437,14 +10182,14 @@ dependencies = [ name = "pallet-node-authorization" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10452,16 +10197,16 @@ dependencies = [ name = "pallet-nomination-pools" version = "1.0.0" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", "sp-tracing 10.0.0", ] @@ -10470,23 +10215,23 @@ dependencies = [ name = "pallet-nomination-pools-benchmarking" version = "1.0.0" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "pallet-bags-list", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-nomination-pools", - "pallet-staking 4.0.0-dev", + "pallet-staking", "pallet-staking-reward-curve", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-runtime-interface 17.0.0", - "sp-staking 4.0.0-dev", + "sp-staking", "sp-std 8.0.0", ] @@ -10494,14 +10239,14 @@ dependencies = [ name = "pallet-nomination-pools-fuzzer" version = "2.0.0" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "honggfuzz", "log", "pallet-nomination-pools", "rand 0.8.5", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-tracing 10.0.0", ] @@ -10511,7 +10256,7 @@ version = "1.0.0-dev" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", - "sp-api 4.0.0-dev", + "sp-api", "sp-std 8.0.0", ] @@ -10519,22 +10264,22 @@ dependencies = [ name = "pallet-nomination-pools-test-staking" version = "1.0.0" dependencies = [ - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", "pallet-bags-list", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-nomination-pools", - "pallet-staking 4.0.0-dev", + "pallet-staking", "pallet-staking-reward-curve", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", "sp-tracing 10.0.0", ] @@ -10543,17 +10288,17 @@ dependencies = [ name = "pallet-offences" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", ] @@ -10561,26 +10306,26 @@ dependencies = [ name = "pallet-offences-benchmarking" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-babe 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-babe", + "pallet-balances", "pallet-grandpa", "pallet-im-online", "pallet-offences", - "pallet-session 4.0.0-dev", - "pallet-staking 4.0.0-dev", + "pallet-session", + "pallet-staking", "pallet-staking-reward-curve", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", ] @@ -10589,15 +10334,15 @@ name = "pallet-paged-list" version = "0.1.0" dependencies = [ "docify", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-metadata-ir 0.1.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-metadata-ir", + "sp-runtime", "sp-std 8.0.0", ] @@ -10606,41 +10351,41 @@ name = "pallet-paged-list-fuzzer" version = "0.1.0" dependencies = [ "arbitrary", - "frame-support 4.0.0-dev", + "frame-support", "honggfuzz", "pallet-paged-list", - "sp-io 23.0.0", + "sp-io", ] [[package]] name = "pallet-parachain-template" version = "0.1.0" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", ] [[package]] name = "pallet-preimage" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10648,16 +10393,16 @@ dependencies = [ name = "pallet-proxy" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "pallet-utility", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10665,16 +10410,16 @@ dependencies = [ name = "pallet-ranked-collective" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10682,15 +10427,15 @@ dependencies = [ name = "pallet-recovery" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10699,20 +10444,20 @@ name = "pallet-referenda" version = "4.0.0-dev" dependencies = [ "assert_matches", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-preimage", "pallet-scheduler", "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10720,15 +10465,15 @@ dependencies = [ name = "pallet-remark" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10736,20 +10481,20 @@ dependencies = [ name = "pallet-root-offences" version = "1.0.0-dev" dependencies = [ - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", - "pallet-session 4.0.0-dev", - "pallet-staking 4.0.0-dev", + "frame-election-provider-support", + "frame-support", + "frame-system", + "pallet-balances", + "pallet-session", + "pallet-staking", "pallet-staking-reward-curve", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-core", + "sp-io", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", ] @@ -10757,13 +10502,13 @@ dependencies = [ name = "pallet-root-testing" version = "1.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10772,18 +10517,18 @@ name = "pallet-safe-mode" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "pallet-proxy", "pallet-utility", "parity-scale-codec", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10791,16 +10536,16 @@ dependencies = [ name = "pallet-salary" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10809,16 +10554,16 @@ name = "pallet-sassafras" version = "0.3.5-dev" dependencies = [ "array-bytes 6.1.0", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", "sp-consensus-sassafras", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10827,18 +10572,18 @@ name = "pallet-scheduler" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-preimage", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "sp-weights 20.0.0", + "sp-weights", "substrate-test-utils", ] @@ -10846,14 +10591,14 @@ dependencies = [ name = "pallet-scored-pool" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-support", + "frame-system", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10861,66 +10606,43 @@ dependencies = [ name = "pallet-session" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", - "sp-state-machine 0.28.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-state-machine", "sp-std 8.0.0", - "sp-trie 22.0.0", -] - -[[package]] -name = "pallet-session" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ed6f6bac8521ac1d794f1281e98c5e91b1a1a35379f5a3a393265741fb262fd" -dependencies = [ - "frame-support 26.0.0", - "frame-system 26.0.0", - "impl-trait-for-tuples", - "log", - "pallet-timestamp 25.0.0", - "parity-scale-codec", - "scale-info", - "sp-core 26.0.0", - "sp-io 28.0.0", - "sp-runtime 29.0.0", - "sp-session 25.0.0", - "sp-staking 24.0.0", - "sp-state-machine 0.33.0", - "sp-std 12.0.0", - "sp-trie 27.0.0", + "sp-trie", ] [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", - "pallet-session 4.0.0-dev", - "pallet-staking 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", + "pallet-balances", + "pallet-session", + "pallet-staking", "pallet-staking-reward-curve", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "rand 0.8.5", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", "sp-std 8.0.0", ] @@ -10928,11 +10650,11 @@ dependencies = [ name = "pallet-skip-feeless-payment" version = "1.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -10940,19 +10662,19 @@ dependencies = [ name = "pallet-society" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", + "frame-benchmarking", + "frame-support", "frame-support-test", - "frame-system 4.0.0-dev", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "rand_chacha 0.2.2", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -10960,55 +10682,32 @@ dependencies = [ name = "pallet-staking" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", + "frame-system", "log", - "pallet-authorship 4.0.0-dev", + "pallet-authorship", "pallet-bags-list", - "pallet-balances 4.0.0-dev", - "pallet-session 4.0.0-dev", + "pallet-balances", + "pallet-session", "pallet-staking-reward-curve", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "rand_chacha 0.2.2", "scale-info", "serde", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-npos-elections 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-npos-elections", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", "sp-tracing 10.0.0", "substrate-test-utils", ] -[[package]] -name = "pallet-staking" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12c9d12dd46d947e3abf89a278aed14d97bf178371aba884514d2d216dae7753" -dependencies = [ - "frame-benchmarking 26.0.0", - "frame-election-provider-support 26.0.0", - "frame-support 26.0.0", - "frame-system 26.0.0", - "log", - "pallet-authorship 26.0.0", - "pallet-session 26.0.0", - "parity-scale-codec", - "scale-info", - "serde", - "sp-application-crypto 28.0.0", - "sp-io 28.0.0", - "sp-runtime 29.0.0", - "sp-staking 24.0.0", - "sp-std 12.0.0", -] - [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" @@ -11016,7 +10715,7 @@ dependencies = [ "proc-macro-crate 2.0.0", "proc-macro2", "quote", - "sp-runtime 24.0.0", + "sp-runtime", "syn 2.0.39", ] @@ -11025,7 +10724,7 @@ name = "pallet-staking-reward-fn" version = "4.0.0-dev" dependencies = [ "log", - "sp-arithmetic 16.0.0", + "sp-arithmetic", ] [[package]] @@ -11033,27 +10732,27 @@ name = "pallet-staking-runtime-api" version = "4.0.0-dev" dependencies = [ "parity-scale-codec", - "sp-api 4.0.0-dev", - "sp-staking 4.0.0-dev", + "sp-api", + "sp-staking", ] [[package]] name = "pallet-state-trie-migration" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-remote-externalities", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "parking_lot 0.12.1", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", "substrate-state-trie-migration-rpc", @@ -11066,16 +10765,16 @@ dependencies = [ name = "pallet-statement" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-core", + "sp-io", + "sp-runtime", "sp-statement-store", "sp-std 8.0.0", ] @@ -11085,14 +10784,14 @@ name = "pallet-sudo" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -11100,14 +10799,14 @@ dependencies = [ name = "pallet-template" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -11116,58 +10815,37 @@ name = "pallet-timestamp" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-inherents", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-storage 13.0.0", - "sp-timestamp 4.0.0-dev", -] - -[[package]] -name = "pallet-timestamp" -version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "270cb5c9bfe17950ef04f39c3730de6c6a801ba7ae8ea1e047fe33ebcd173107" -dependencies = [ - "docify", - "frame-benchmarking 26.0.0", - "frame-support 26.0.0", - "frame-system 26.0.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-inherents 24.0.0", - "sp-io 28.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", - "sp-storage 17.0.0", - "sp-timestamp 24.0.0", + "sp-timestamp", ] [[package]] name = "pallet-tips" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-treasury", "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-storage 13.0.0", ] @@ -11176,36 +10854,19 @@ dependencies = [ name = "pallet-transaction-payment" version = "4.0.0-dev" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-support", + "frame-system", + "pallet-balances", "parity-scale-codec", "scale-info", "serde", "serde_json", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] -[[package]] -name = "pallet-transaction-payment" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ac7d7d775ca1b5ac7a591a2a4218498e878870e5a4609603e1b7b327c3b915b" -dependencies = [ - "frame-support 26.0.0", - "frame-system 26.0.0", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core 26.0.0", - "sp-io 28.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" @@ -11213,23 +10874,23 @@ dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-rpc", - "sp-runtime 24.0.0", - "sp-weights 20.0.0", + "sp-runtime", + "sp-weights", ] [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" dependencies = [ - "pallet-transaction-payment 4.0.0-dev", + "pallet-transaction-payment", "parity-scale-codec", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-weights 20.0.0", + "sp-api", + "sp-runtime", + "sp-weights", ] [[package]] @@ -11237,18 +10898,18 @@ name = "pallet-transaction-storage" version = "4.0.0-dev" dependencies = [ "array-bytes 6.1.0", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-inherents", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-transaction-storage-proof", ] @@ -11258,18 +10919,18 @@ name = "pallet-treasury" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "impl-trait-for-tuples", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-utility", "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -11278,17 +10939,17 @@ name = "pallet-tx-pause" version = "4.0.0-dev" dependencies = [ "docify", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "pallet-proxy", "pallet-utility", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -11296,16 +10957,16 @@ dependencies = [ name = "pallet-uniques" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -11313,18 +10974,18 @@ dependencies = [ name = "pallet-utility" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "pallet-collective", "pallet-root-testing", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -11332,50 +10993,34 @@ dependencies = [ name = "pallet-vesting" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] -[[package]] -name = "pallet-vesting" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09856239f4cd49a299d561693815f033c272a1142f435c11d32b241d057b4363" -dependencies = [ - "frame-benchmarking 26.0.0", - "frame-support 26.0.0", - "frame-system 26.0.0", - "log", - "parity-scale-codec", - "scale-info", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "pallet-whitelist" version = "4.0.0-dev" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-balances", "pallet-preimage", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -11384,49 +11029,49 @@ name = "pallet-xcm" version = "1.0.0" dependencies = [ "bounded-collections", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-runtime-parachains 1.0.0", + "polkadot-parachain-primitives", + "polkadot-runtime-parachains", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] name = "pallet-xcm-benchmarks" version = "1.0.0" dependencies = [ - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-xcm", "parity-scale-codec", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-runtime-common", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] @@ -11434,18 +11079,18 @@ name = "pallet-xcm-bridge-hub-router" version = "0.1.0" dependencies = [ "bp-xcm-bridge-hub-router", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-benchmarking", + "frame-support", + "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", + "staging-xcm", + "staging-xcm-builder", ] [[package]] @@ -11463,7 +11108,7 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-relay-chain-interface", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-benchmarking-cli", "futures", "jsonrpsee", @@ -11472,7 +11117,7 @@ dependencies = [ "parachain-template-runtime", "parity-scale-codec", "polkadot-cli", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-basic-authorship", "sc-chain-spec", "sc-cli", @@ -11491,16 +11136,16 @@ dependencies = [ "sc-transaction-pool-api", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-timestamp 4.0.0-dev", - "staging-xcm 1.0.0", + "sp-core", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-timestamp", + "staging-xcm", "substrate-build-script-utils", "substrate-frame-rpc-system", "substrate-prometheus-endpoint", @@ -11518,49 +11163,49 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-aura", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-collator-selection", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-parachain-template", - "pallet-session 4.0.0-dev", + "pallet-session", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", + "polkadot-parachain-primitives", "polkadot-runtime-common", "scale-info", "smallvec", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", ] @@ -11570,30 +11215,30 @@ version = "1.0.0" dependencies = [ "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", "num-traits", "pallet-asset-tx-payment", "pallet-assets", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-collator-selection", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-core-primitives", + "polkadot-primitives", "rococo-runtime-constants", "scale-info", "smallvec", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", + "staging-xcm", + "staging-xcm-builder", "substrate-wasm-builder", "westend-runtime-constants", ] @@ -11608,26 +11253,26 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-test-relay-sproof-builder", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "hex-literal", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-collator-selection", - "pallet-session 4.0.0-dev", + "pallet-session", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", + "polkadot-parachain-primitives", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-executor", "substrate-wasm-builder", ] @@ -11833,13 +11478,13 @@ version = "0.0.0" dependencies = [ "cumulus-primitives-core", "emulated-integration-tests-common", - "frame-support 4.0.0-dev", + "frame-support", "parachains-common", "penpal-runtime", "rococo-emulated-chain", "serde_json", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "westend-emulated-chain", ] @@ -11855,10 +11500,10 @@ dependencies = [ "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -11867,40 +11512,40 @@ dependencies = [ "pallet-asset-tx-payment", "pallet-assets", "pallet-aura", - "pallet-authorship 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-balances", "pallet-collator-selection", - "pallet-message-queue 7.0.0-dev", - "pallet-session 4.0.0-dev", + "pallet-message-queue", + "pallet-session", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-runtime-common", "scale-info", "smallvec", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", ] @@ -12070,7 +11715,7 @@ dependencies = [ "color-eyre", "nix 0.26.2", "polkadot-cli", - "polkadot-core-primitives 1.0.0", + "polkadot-core-primitives", "polkadot-node-core-pvf", "polkadot-node-core-pvf-common", "polkadot-node-core-pvf-execute-worker", @@ -12101,14 +11746,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "rand 0.8.5", "rand_chacha 0.3.1", "rand_core 0.5.1", "schnorrkel 0.9.1", - "sp-authority-discovery 4.0.0-dev", - "sp-core 21.0.0", + "sp-authority-discovery", + "sp-core", "tracing-gum", ] @@ -12128,14 +11773,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "rand 0.8.5", "rand_chacha 0.3.1", - "sp-application-crypto 23.0.0", - "sp-authority-discovery 4.0.0-dev", - "sp-core 21.0.0", + "sp-application-crypto", + "sp-authority-discovery", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "tracing-gum", ] @@ -12155,14 +11800,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "rand 0.8.5", "sc-network", "schnellru", - "sp-core 21.0.0", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "sp-tracing 10.0.0", "thiserror", "tracing-gum", @@ -12186,13 +11831,13 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "rand 0.8.5", "sc-network", "schnellru", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", + "sp-application-crypto", + "sp-core", "sp-keyring", "thiserror", "tracing-gum", @@ -12218,8 +11863,8 @@ dependencies = [ "sc-storage-monitor", "sc-sysinfo", "sc-tracing", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-keyring", "sp-maybe-compressed-blob", "substrate-build-script-utils", @@ -12244,14 +11889,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "sc-keystore", "sc-network", - "sp-core 21.0.0", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-keystore", + "sp-runtime", "thiserror", "tokio-util", "tracing-gum", @@ -12263,24 +11908,11 @@ version = "1.0.0" dependencies = [ "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-std 8.0.0", ] -[[package]] -name = "polkadot-core-primitives" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb752872d8cad4436a82bb187512262ca125c58e2cafb515d36b8206dd80d816" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-core 26.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "polkadot-dispute-distribution" version = "1.0.0" @@ -12301,14 +11933,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "sc-keystore", "sc-network", "schnellru", - "sp-application-crypto 23.0.0", + "sp-application-crypto", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "sp-tracing 10.0.0", "thiserror", "tracing-gum", @@ -12321,10 +11953,10 @@ dependencies = [ "criterion 0.4.0", "parity-scale-codec", "polkadot-node-primitives", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "reed-solomon-novelpoly", - "sp-core 21.0.0", - "sp-trie 22.0.0", + "sp-core", + "sp-trie", "thiserror", ] @@ -12341,18 +11973,18 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "quickcheck", "rand 0.8.5", "rand_chacha 0.3.1", "sc-network", "sc-network-common", - "sp-application-crypto 23.0.0", - "sp-authority-discovery 4.0.0-dev", - "sp-consensus-babe 0.10.0-dev", - "sp-core 21.0.0", + "sp-application-crypto", + "sp-authority-discovery", + "sp-consensus-babe", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "sp-tracing 10.0.0", "tracing-gum", ] @@ -12376,11 +12008,11 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "sc-network", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-keyring", "thiserror", "tracing-gum", @@ -12398,9 +12030,9 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", - "sp-core 21.0.0", + "sp-core", "sp-keyring", "sp-maybe-compressed-blob", "thiserror", @@ -12431,7 +12063,7 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "rand 0.8.5", "rand_chacha 0.3.1", @@ -12439,14 +12071,14 @@ dependencies = [ "sc-keystore", "schnellru", "schnorrkel 0.9.1", - "sp-application-crypto 23.0.0", + "sp-application-crypto", "sp-consensus", - "sp-consensus-babe 0.10.0-dev", - "sp-consensus-slots 0.10.0-dev", - "sp-core 21.0.0", + "sp-consensus-babe", + "sp-consensus-slots", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-keystore", + "sp-runtime", "thiserror", "tracing-gum", ] @@ -12472,10 +12104,10 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-keyring", "thiserror", "tracing-gum", @@ -12494,14 +12126,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "polkadot-statement-table", "sc-keystore", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", + "sp-application-crypto", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "sp-tracing 10.0.0", "thiserror", "tracing-gum", @@ -12515,9 +12147,9 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", - "sp-keystore 0.27.0", + "sp-keystore", "thiserror", "tracing-gum", "wasm-timer", @@ -12539,10 +12171,10 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-primitives-test-helpers", - "sp-core 21.0.0", + "sp-core", "sp-keyring", "sp-maybe-compressed-blob", "tracing-gum", @@ -12560,11 +12192,11 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-client-api", "sc-consensus-babe", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "tracing-gum", ] @@ -12583,8 +12215,8 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", - "sp-core 21.0.0", + "polkadot-primitives", + "sp-core", "thiserror", "tracing-gum", ] @@ -12604,14 +12236,14 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "sc-keystore", "schnellru", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", + "sp-application-crypto", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "sp-tracing 10.0.0", "thiserror", "tracing-gum", @@ -12626,9 +12258,9 @@ dependencies = [ "futures-timer", "polkadot-node-subsystem", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sp-blockchain", - "sp-inherents 4.0.0-dev", + "sp-inherents", "thiserror", "tracing-gum", ] @@ -12647,13 +12279,13 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "sc-keystore", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", + "sp-application-crypto", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "thiserror", "tracing-gum", ] @@ -12670,10 +12302,10 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", - "sp-application-crypto 23.0.0", - "sp-keystore 0.27.0", + "sp-application-crypto", + "sp-keystore", "thiserror", "tracing-gum", ] @@ -12694,7 +12326,7 @@ dependencies = [ "libc", "parity-scale-codec", "pin-project", - "polkadot-core-primitives 1.0.0", + "polkadot-core-primitives", "polkadot-node-core-pvf", "polkadot-node-core-pvf-common", "polkadot-node-core-pvf-execute-worker", @@ -12702,15 +12334,15 @@ dependencies = [ "polkadot-node-metrics", "polkadot-node-primitives", "polkadot-node-subsystem", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "procfs", "rand 0.8.5", "rococo-runtime", "rusty-fork", "sc-sysinfo", "slotmap", - "sp-core 21.0.0", + "sp-core", "sp-maybe-compressed-blob", "sp-wasm-interface 14.0.0", "tempfile", @@ -12732,14 +12364,14 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "sc-keystore", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", + "sp-application-crypto", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-keystore", + "sp-runtime", "thiserror", "tracing-gum", ] @@ -12755,15 +12387,15 @@ dependencies = [ "landlock", "libc", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "sc-executor", "sc-executor-common", "sc-executor-wasmtime", "seccompiler", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-io 23.0.0", + "sp-io", "sp-tracing 10.0.0", "substrate-build-script-utils", "tempfile", @@ -12781,8 +12413,8 @@ dependencies = [ "os_pipe", "parity-scale-codec", "polkadot-node-core-pvf-common", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "tracing-gum", ] @@ -12798,7 +12430,7 @@ dependencies = [ "os_pipe", "parity-scale-codec", "polkadot-node-core-pvf-common", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "rayon", "rococo-runtime", "sc-executor-common", @@ -12821,12 +12453,12 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "schnellru", - "sp-api 4.0.0-dev", - "sp-consensus-babe 0.10.0-dev", - "sp-core 21.0.0", + "sp-api", + "sp-consensus-babe", + "sp-core", "sp-keyring", "tracing-gum", ] @@ -12841,9 +12473,9 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "polkadot-node-primitives", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-network", - "sp-core 21.0.0", + "sp-core", "thiserror", "tokio", ] @@ -12859,7 +12491,7 @@ dependencies = [ "hyper", "log", "parity-scale-codec", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-test-service", "prioritized-metered-channel", "prometheus-parse", @@ -12888,7 +12520,7 @@ dependencies = [ "parity-scale-codec", "polkadot-node-jaeger", "polkadot-node-primitives", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "rand 0.8.5", "rand_chacha 0.3.1", "sc-authority-discovery", @@ -12907,16 +12539,16 @@ dependencies = [ "futures", "parity-scale-codec", "polkadot-erasure-coding", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "schnorrkel 0.9.1", "serde", - "sp-application-crypto 23.0.0", - "sp-consensus-babe 0.10.0-dev", - "sp-core 21.0.0", - "sp-keystore 0.27.0", + "sp-application-crypto", + "sp-consensus-babe", + "sp-core", + "sp-keystore", "sp-maybe-compressed-blob", - "sp-runtime 24.0.0", + "sp-runtime", "thiserror", "zstd 0.12.4", ] @@ -12939,14 +12571,14 @@ dependencies = [ "parking_lot 0.12.1", "polkadot-node-subsystem", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-client-api", "sc-keystore", "sc-utils", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", + "sp-application-crypto", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", ] [[package]] @@ -12961,17 +12593,17 @@ dependencies = [ "polkadot-node-jaeger", "polkadot-node-network-protocol", "polkadot-node-primitives", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-statement-table", "sc-client-api", "sc-network", "sc-transaction-pool-api", "smallvec", - "sp-api 4.0.0-dev", - "sp-authority-discovery 4.0.0-dev", + "sp-api", + "sp-authority-discovery", "sp-blockchain", - "sp-consensus-babe 0.10.0-dev", - "sp-runtime 24.0.0", + "sp-consensus-babe", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", ] @@ -13005,15 +12637,15 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", "polkadot-overseer", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "prioritized-metered-channel", "rand 0.8.5", "sc-client-api", "schnellru", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-keystore 0.27.0", + "sp-application-crypto", + "sp-core", + "sp-keystore", "tempfile", "thiserror", "tracing-gum", @@ -13035,12 +12667,12 @@ dependencies = [ "polkadot-node-primitives", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "prioritized-metered-channel", "sc-client-api", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", + "sp-api", + "sp-core", "tikv-jemalloc-ctl", "tracing-gum", ] @@ -13070,9 +12702,9 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-relay-chain-interface", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-benchmarking-cli", - "frame-support 4.0.0-dev", + "frame-support", "frame-system-rpc-runtime-api", "frame-try-runtime", "futures", @@ -13081,14 +12713,14 @@ dependencies = [ "jsonrpsee", "log", "nix 0.26.2", - "pallet-transaction-payment 4.0.0-dev", + "pallet-transaction-payment", "pallet-transaction-payment-rpc", "pallet-transaction-payment-rpc-runtime-api", "parachains-common", "parity-scale-codec", "penpal-runtime", "polkadot-cli", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-service", "rococo-parachain-runtime", "sc-basic-authorship", @@ -13110,24 +12742,24 @@ dependencies = [ "serde", "serde_json", "shell-runtime", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", - "sp-keystore 0.27.0", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", + "sp-keystore", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", - "sp-timestamp 4.0.0-dev", + "sp-timestamp", "sp-tracing 10.0.0", "sp-transaction-pool", - "sp-version 22.0.0", - "staging-xcm 1.0.0", + "sp-version", + "staging-xcm", "substrate-build-script-utils", "substrate-frame-rpc-system", "substrate-prometheus-endpoint", @@ -13144,31 +12776,13 @@ dependencies = [ "bounded-collections", "derive_more", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", + "polkadot-core-primitives", "scale-info", "serde", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-std 8.0.0", - "sp-weights 20.0.0", -] - -[[package]] -name = "polkadot-parachain-primitives" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a068a74dc66780f8d820ed1e36e32877995bb160fcdd59dd5717997cabdf5ea" -dependencies = [ - "bounded-collections", - "derive_more", - "parity-scale-codec", - "polkadot-core-primitives 5.0.0", - "scale-info", - "serde", - "sp-core 26.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", - "sp-weights 25.0.0", + "sp-weights", ] [[package]] @@ -13178,61 +12792,34 @@ dependencies = [ "bitvec", "hex-literal", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-arithmetic 16.0.0", - "sp-authority-discovery 4.0.0-dev", - "sp-consensus-slots 0.10.0-dev", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", + "sp-authority-discovery", + "sp-consensus-slots", + "sp-core", + "sp-inherents", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", ] -[[package]] -name = "polkadot-primitives" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d64d2b224f893fb34b020d3b126b5bb3275069f74e0e8da80a1c43560fe8aa9" -dependencies = [ - "bitvec", - "hex-literal", - "parity-scale-codec", - "polkadot-core-primitives 5.0.0", - "polkadot-parachain-primitives 4.0.0", - "scale-info", - "serde", - "sp-api 24.0.0", - "sp-application-crypto 28.0.0", - "sp-arithmetic 21.0.0", - "sp-authority-discovery 24.0.0", - "sp-consensus-slots 0.30.0", - "sp-core 26.0.0", - "sp-inherents 24.0.0", - "sp-io 28.0.0", - "sp-keystore 0.32.0", - "sp-runtime 29.0.0", - "sp-staking 24.0.0", - "sp-std 12.0.0", -] - [[package]] name = "polkadot-primitives-test-helpers" version = "1.0.0" dependencies = [ - "polkadot-primitives 1.0.0", + "polkadot-primitives", "rand 0.8.5", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", + "sp-application-crypto", + "sp-core", "sp-keyring", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -13242,7 +12829,7 @@ dependencies = [ "jsonrpsee", "mmr-rpc", "pallet-transaction-payment-rpc", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-chain-spec", "sc-client-api", "sc-consensus-babe", @@ -13255,13 +12842,13 @@ dependencies = [ "sc-rpc", "sc-sync-state-rpc", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-consensus-babe 0.10.0-dev", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-consensus-babe", + "sp-keystore", + "sp-runtime", "substrate-frame-rpc-system", "substrate-state-trie-migration-rpc", ] @@ -13271,54 +12858,54 @@ name = "polkadot-runtime-common" version = "1.0.0" dependencies = [ "bitvec", - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", - "frame-support 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", + "frame-support", "frame-support-test", - "frame-system 4.0.0-dev", + "frame-system", "hex-literal", "impl-trait-for-tuples", "libsecp256k1", "log", "pallet-asset-rate", - "pallet-authorship 4.0.0-dev", - "pallet-babe 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authorship", + "pallet-babe", + "pallet-balances", "pallet-election-provider-multi-phase", "pallet-fast-unstake", "pallet-identity", - "pallet-session 4.0.0-dev", - "pallet-staking 4.0.0-dev", + "pallet-session", + "pallet-staking", "pallet-staking-reward-fn", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-treasury", - "pallet-vesting 4.0.0-dev", + "pallet-vesting", "pallet-xcm-benchmarks", "parity-scale-codec", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", - "polkadot-runtime-parachains 1.0.0", + "polkadot-runtime-parachains", "rustc-hex", "scale-info", "serde", "serde_derive", "serde_json", "slot-range-helper", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-api", + "sp-core", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-keystore 0.27.0", - "sp-npos-elections 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", + "sp-keystore", + "sp-npos-elections", + "sp-runtime", + "sp-session", + "sp-staking", "sp-std 8.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "static_assertions", ] @@ -13327,27 +12914,13 @@ name = "polkadot-runtime-metrics" version = "1.0.0" dependencies = [ "bs58 0.5.0", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "parity-scale-codec", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sp-std 8.0.0", "sp-tracing 10.0.0", ] -[[package]] -name = "polkadot-runtime-metrics" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "808199f90ded6425371c09b08b9080a3d9f9fa44f890f951fff32443e9bf330b" -dependencies = [ - "bs58 0.5.0", - "frame-benchmarking 26.0.0", - "parity-scale-codec", - "polkadot-primitives 5.0.0", - "sp-std 12.0.0", - "sp-tracing 14.0.0", -] - [[package]] name = "polkadot-runtime-parachains" version = "1.0.0" @@ -13356,29 +12929,29 @@ dependencies = [ "bitflags 1.3.2", "bitvec", "derive_more", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", + "frame-benchmarking", + "frame-support", "frame-support-test", - "frame-system 4.0.0-dev", + "frame-system", "futures", "hex-literal", "impl-trait-for-tuples", "log", - "pallet-authority-discovery 4.0.0-dev", - "pallet-authorship 4.0.0-dev", - "pallet-babe 4.0.0-dev", - "pallet-balances 4.0.0-dev", - "pallet-message-queue 7.0.0-dev", - "pallet-session 4.0.0-dev", - "pallet-staking 4.0.0-dev", - "pallet-timestamp 4.0.0-dev", - "pallet-vesting 4.0.0-dev", - "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-balances", + "pallet-message-queue", + "pallet-session", + "pallet-staking", + "pallet-timestamp", + "pallet-vesting", + "parity-scale-codec", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-primitives-test-helpers", - "polkadot-runtime-metrics 1.0.0", + "polkadot-runtime-metrics", "rand 0.8.5", "rand_chacha 0.3.1", "rustc-hex", @@ -13386,71 +12959,24 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", + "sp-keystore", + "sp-runtime", + "sp-session", + "sp-staking", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-executor", "static_assertions", "thousands", ] -[[package]] -name = "polkadot-runtime-parachains" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b9d243b9f51e0bbd4e9f684399094e6c08bd76277eb3e22e30f1b989162280f" -dependencies = [ - "bitflags 1.3.2", - "bitvec", - "derive_more", - "frame-benchmarking 26.0.0", - "frame-support 26.0.0", - "frame-system 26.0.0", - "impl-trait-for-tuples", - "log", - "pallet-authority-discovery 26.0.0", - "pallet-authorship 26.0.0", - "pallet-babe 26.0.0", - "pallet-balances 26.0.0", - "pallet-message-queue 29.0.0", - "pallet-session 26.0.0", - "pallet-staking 26.0.0", - "pallet-timestamp 25.0.0", - "pallet-vesting 26.0.0", - "parity-scale-codec", - "polkadot-core-primitives 5.0.0", - "polkadot-parachain-primitives 4.0.0", - "polkadot-primitives 5.0.0", - "polkadot-runtime-metrics 5.0.0", - "rand 0.8.5", - "rand_chacha 0.3.1", - "rustc-hex", - "scale-info", - "serde", - "sp-api 24.0.0", - "sp-application-crypto 28.0.0", - "sp-core 26.0.0", - "sp-inherents 24.0.0", - "sp-io 28.0.0", - "sp-keystore 0.32.0", - "sp-runtime 29.0.0", - "sp-session 25.0.0", - "sp-staking 24.0.0", - "sp-std 12.0.0", - "staging-xcm 5.0.0", - "staging-xcm-executor 5.0.0", -] - [[package]] name = "polkadot-sdk-docs" version = "0.0.1" @@ -13463,7 +12989,7 @@ dependencies = [ "pallet-aura", "pallet-default-config-example", "pallet-examples", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parity-scale-codec", "sc-cli", "sc-client-db", @@ -13478,11 +13004,11 @@ dependencies = [ "sc-rpc-api", "scale-info", "simple-mermaid 0.1.0 (git+https://github.com/kianenigma/simple-mermaid.git?branch=main)", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-api", + "sp-core", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", + "sp-runtime", "staging-chain-spec-builder", "staging-node-cli", "staging-parachain-info", @@ -13497,10 +13023,10 @@ dependencies = [ "assert_matches", "async-trait", "env_logger 0.9.3", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-benchmarking-cli", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-rpc-runtime-api", "futures", "hex-literal", @@ -13509,10 +13035,10 @@ dependencies = [ "kvdb-rocksdb", "log", "mmr-gadget", - "pallet-babe 4.0.0-dev", + "pallet-babe", "pallet-im-online", - "pallet-staking 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-staking", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "parity-db", "parity-scale-codec", @@ -13522,7 +13048,7 @@ dependencies = [ "polkadot-availability-distribution", "polkadot-availability-recovery", "polkadot-collator-protocol", - "polkadot-core-primitives 1.0.0", + "polkadot-core-primitives", "polkadot-dispute-distribution", "polkadot-gossip-support", "polkadot-network-bridge", @@ -13548,11 +13074,11 @@ dependencies = [ "polkadot-node-subsystem-types", "polkadot-node-subsystem-util", "polkadot-overseer", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-primitives-test-helpers", "polkadot-rpc", - "polkadot-runtime-parachains 1.0.0", + "polkadot-runtime-parachains", "polkadot-statement-distribution", "polkadot-test-client", "rococo-runtime", @@ -13584,29 +13110,29 @@ dependencies = [ "serde", "serde_json", "serial_test", - "sp-api 4.0.0-dev", - "sp-authority-discovery 4.0.0-dev", + "sp-api", + "sp-authority-discovery", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-consensus-babe 0.10.0-dev", + "sp-consensus-babe", "sp-consensus-beefy", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "sp-mmr-primitives", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-session", + "sp-state-machine", "sp-storage 13.0.0", - "sp-timestamp 4.0.0-dev", + "sp-timestamp", "sp-transaction-pool", - "sp-version 22.0.0", - "sp-weights 20.0.0", + "sp-version", + "sp-weights", "substrate-prometheus-endpoint", "tempfile", "thiserror", @@ -13633,17 +13159,17 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-primitives-test-helpers", "rand_chacha 0.3.1", "sc-keystore", "sc-network", - "sp-application-crypto 23.0.0", - "sp-authority-discovery 4.0.0-dev", - "sp-core 21.0.0", + "sp-application-crypto", + "sp-authority-discovery", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", - "sp-staking 4.0.0-dev", + "sp-keystore", + "sp-staking", "sp-tracing 10.0.0", "thiserror", "tracing-gum", @@ -13654,36 +13180,36 @@ name = "polkadot-statement-table" version = "1.0.0" dependencies = [ "parity-scale-codec", - "polkadot-primitives 1.0.0", - "sp-core 21.0.0", + "polkadot-primitives", + "sp-core", ] [[package]] name = "polkadot-test-client" version = "1.0.0" dependencies = [ - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "futures", "parity-scale-codec", "polkadot-node-subsystem", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "polkadot-test-runtime", "polkadot-test-service", "sc-block-builder", "sc-consensus", "sc-offchain", "sc-service", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-consensus-babe 0.10.0-dev", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-consensus-babe", + "sp-core", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-timestamp 4.0.0-dev", + "sp-runtime", + "sp-state-machine", + "sp-timestamp", "substrate-test-client", ] @@ -13710,10 +13236,10 @@ dependencies = [ "polkadot-node-subsystem-test-helpers", "polkadot-node-subsystem-types", "polkadot-node-subsystem-util", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "rand 0.8.5", - "sp-core 21.0.0", - "sp-keystore 0.27.0", + "sp-core", + "sp-keystore", "substrate-build-script-utils", "tracing-gum", ] @@ -13723,62 +13249,62 @@ name = "polkadot-test-runtime" version = "1.0.0" dependencies = [ "bitvec", - "frame-election-provider-support 4.0.0-dev", + "frame-election-provider-support", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-rpc-runtime-api", "hex-literal", "log", - "pallet-authority-discovery 4.0.0-dev", - "pallet-authorship 4.0.0-dev", - "pallet-babe 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-balances", "pallet-grandpa", "pallet-indices", "pallet-offences", - "pallet-session 4.0.0-dev", - "pallet-staking 4.0.0-dev", + "pallet-session", + "pallet-staking", "pallet-staking-reward-curve", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", - "pallet-vesting 4.0.0-dev", + "pallet-vesting", "pallet-xcm", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-runtime-common", - "polkadot-runtime-parachains 1.0.0", + "polkadot-runtime-parachains", "rustc-hex", "scale-info", "serde", "serde_derive", "serde_json", "smallvec", - "sp-api 4.0.0-dev", - "sp-authority-discovery 4.0.0-dev", + "sp-api", + "sp-authority-discovery", "sp-block-builder", - "sp-consensus-babe 0.10.0-dev", + "sp-consensus-babe", "sp-consensus-beefy", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-keyring", "sp-mmr-primitives", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", + "sp-runtime", + "sp-session", + "sp-staking", "sp-std 8.0.0", "sp-transaction-pool", - "sp-trie 22.0.0", - "sp-version 22.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "sp-trie", + "sp-version", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", "test-runtime-constants", "tiny-keccak", @@ -13788,20 +13314,20 @@ dependencies = [ name = "polkadot-test-service" version = "1.0.0" dependencies = [ - "frame-system 4.0.0-dev", + "frame-system", "futures", "hex", - "pallet-balances 4.0.0-dev", - "pallet-staking 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-balances", + "pallet-staking", + "pallet-transaction-payment", "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-overseer", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-rpc", "polkadot-runtime-common", - "polkadot-runtime-parachains 1.0.0", + "polkadot-runtime-parachains", "polkadot-service", "polkadot-test-runtime", "rand 0.8.5", @@ -13817,17 +13343,17 @@ dependencies = [ "sc-tracing", "sc-transaction-pool", "serde_json", - "sp-arithmetic 16.0.0", - "sp-authority-discovery 4.0.0-dev", + "sp-arithmetic", + "sp-authority-discovery", "sp-blockchain", "sp-consensus", - "sp-consensus-babe 0.10.0-dev", + "sp-consensus-babe", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-inherents", "sp-keyring", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "substrate-test-client", "substrate-test-utils", "tempfile", @@ -13842,7 +13368,7 @@ version = "1.0.0" dependencies = [ "clap 4.4.10", "generate-bags", - "sp-io 23.0.0", + "sp-io", "westend-runtime", ] @@ -14653,10 +14179,10 @@ name = "remote-ext-tests-bags-list" version = "1.0.0" dependencies = [ "clap 4.4.10", - "frame-system 4.0.0-dev", + "frame-system", "log", "pallet-bags-list-remote-tests", - "sp-core 21.0.0", + "sp-core", "sp-tracing 10.0.0", "tokio", "westend-runtime", @@ -14806,16 +14332,16 @@ dependencies = [ "emulated-integration-tests-common", "pallet-im-online", "parachains-common", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "rococo-runtime", "rococo-runtime-constants", "sc-consensus-grandpa", "serde_json", - "sp-authority-discovery 4.0.0-dev", - "sp-consensus-babe 0.10.0-dev", + "sp-authority-discovery", + "sp-consensus-babe", "sp-consensus-beefy", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", ] [[package]] @@ -14831,41 +14357,41 @@ dependencies = [ "cumulus-primitives-aura", "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-rpc-runtime-api", "pallet-assets", "pallet-aura", - "pallet-balances 4.0.0-dev", - "pallet-message-queue 7.0.0-dev", + "pallet-balances", + "pallet-message-queue", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-xcm", "parachains-common", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", + "polkadot-parachain-primitives", "polkadot-runtime-common", "scale-info", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", ] @@ -14874,21 +14400,21 @@ name = "rococo-runtime" version = "1.0.0" dependencies = [ "binary-merkle-tree", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-executive", "frame-remote-externalities", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-asset-rate", - "pallet-authority-discovery 4.0.0-dev", - "pallet-authorship 4.0.0-dev", - "pallet-babe 4.0.0-dev", - "pallet-balances 4.0.0-dev", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-balances", "pallet-beefy", "pallet-beefy-mmr", "pallet-bounties", @@ -14902,7 +14428,7 @@ dependencies = [ "pallet-im-online", "pallet-indices", "pallet-membership", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-mmr", "pallet-multisig", "pallet-nis", @@ -14914,26 +14440,26 @@ dependencies = [ "pallet-referenda", "pallet-root-testing", "pallet-scheduler", - "pallet-session 4.0.0-dev", + "pallet-session", "pallet-society", - "pallet-staking 4.0.0-dev", + "pallet-staking", "pallet-state-trie-migration", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "pallet-tips", - "pallet-transaction-payment 4.0.0-dev", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", "pallet-utility", - "pallet-vesting 4.0.0-dev", + "pallet-vesting", "pallet-whitelist", "pallet-xcm", "pallet-xcm-benchmarks", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-runtime-common", - "polkadot-runtime-parachains 1.0.0", + "polkadot-runtime-parachains", "rococo-runtime-constants", "scale-info", "separator", @@ -14941,31 +14467,31 @@ dependencies = [ "serde_derive", "serde_json", "smallvec", - "sp-api 4.0.0-dev", - "sp-arithmetic 16.0.0", - "sp-authority-discovery 4.0.0-dev", + "sp-api", + "sp-arithmetic", + "sp-authority-discovery", "sp-block-builder", - "sp-consensus-babe 0.10.0-dev", + "sp-consensus-babe", "sp-consensus-beefy", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-keyring", "sp-mmr-primitives", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", + "sp-runtime", + "sp-session", + "sp-staking", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-tracing 10.0.0", "sp-transaction-pool", - "sp-trie 22.0.0", - "sp-version 22.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "sp-trie", + "sp-version", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "static_assertions", "substrate-wasm-builder", "tiny-keccak", @@ -14976,14 +14502,14 @@ dependencies = [ name = "rococo-runtime-constants" version = "1.0.0" dependencies = [ - "frame-support 4.0.0-dev", - "polkadot-primitives 1.0.0", + "frame-support", + "polkadot-primitives", "polkadot-runtime-common", "smallvec", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-weights 20.0.0", - "staging-xcm 1.0.0", + "sp-core", + "sp-runtime", + "sp-weights", + "staging-xcm", ] [[package]] @@ -15313,7 +14839,7 @@ name = "sc-allocator" version = "4.1.0-dev" dependencies = [ "log", - "sp-core 21.0.0", + "sp-core", "sp-wasm-interface 14.0.0", "thiserror", ] @@ -15337,12 +14863,12 @@ dependencies = [ "rand 0.8.5", "sc-client-api", "sc-network", - "sp-api 4.0.0-dev", - "sp-authority-discovery 4.0.0-dev", + "sp-api", + "sp-authority-discovery", "sp-blockchain", - "sp-core 21.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-keystore", + "sp-runtime", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", @@ -15364,12 +14890,12 @@ dependencies = [ "sc-telemetry", "sc-transaction-pool", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-core", + "sp-inherents", + "sp-runtime", "substrate-prometheus-endpoint", "substrate-test-runtime-client", ] @@ -15379,14 +14905,14 @@ name = "sc-block-builder" version = "0.10.0-dev" dependencies = [ "parity-scale-codec", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-trie 22.0.0", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-state-machine", + "sp-trie", "substrate-test-runtime-client", ] @@ -15406,15 +14932,15 @@ dependencies = [ "sc-telemetry", "serde", "serde_json", - "sp-application-crypto 23.0.0", + "sp-application-crypto", "sp-blockchain", - "sp-consensus-babe 0.10.0-dev", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-io 23.0.0", + "sp-consensus-babe", + "sp-core", + "sp-genesis-builder", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "substrate-test-runtime", ] @@ -15459,13 +14985,13 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", - "sp-panic-handler 8.0.0", - "sp-runtime 24.0.0", + "sp-keystore", + "sp-panic-handler", + "sp-runtime", "sp-tracing 10.0.0", - "sp-version 22.0.0", + "sp-version", "tempfile", "thiserror", "tokio", @@ -15483,18 +15009,18 @@ dependencies = [ "sc-executor", "sc-transaction-pool-api", "sc-utils", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-database", "sp-externalities 0.19.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "sp-statement-store", "sp-storage 13.0.0", "sp-test-primitives", - "sp-trie 22.0.0", + "sp-trie", "substrate-prometheus-endpoint", "substrate-test-runtime", "thiserror", @@ -15521,14 +15047,14 @@ dependencies = [ "sc-client-api", "sc-state-db", "schnellru", - "sp-arithmetic 16.0.0", + "sp-arithmetic", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-database", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "sp-tracing 10.0.0", - "sp-trie 22.0.0", + "sp-trie", "substrate-test-runtime-client", "tempfile", ] @@ -15547,12 +15073,12 @@ dependencies = [ "sc-client-api", "sc-utils", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-core", + "sp-runtime", + "sp-state-machine", "sp-test-primitives", "substrate-prometheus-endpoint", "thiserror", @@ -15575,19 +15101,19 @@ dependencies = [ "sc-network", "sc-network-test", "sc-telemetry", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", + "sp-api", + "sp-application-crypto", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-aura", - "sp-consensus-slots 0.10.0-dev", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", + "sp-consensus-slots", + "sp-core", + "sp-inherents", "sp-keyring", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-timestamp 4.0.0-dev", + "sp-keystore", + "sp-runtime", + "sp-timestamp", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", @@ -15617,19 +15143,19 @@ dependencies = [ "sc-network-test", "sc-telemetry", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", + "sp-api", + "sp-application-crypto", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-consensus-babe 0.10.0-dev", - "sp-consensus-slots 0.10.0-dev", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", + "sp-consensus-babe", + "sp-consensus-slots", + "sp-core", + "sp-inherents", "sp-keyring", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-timestamp 4.0.0-dev", + "sp-keystore", + "sp-runtime", + "sp-timestamp", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", @@ -15651,15 +15177,15 @@ dependencies = [ "sc-transaction-pool-api", "serde", "serde_json", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", + "sp-api", + "sp-application-crypto", "sp-blockchain", "sp-consensus", - "sp-consensus-babe 0.10.0-dev", - "sp-core 21.0.0", + "sp-consensus-babe", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-keystore", + "sp-runtime", "substrate-test-runtime-client", "thiserror", "tokio", @@ -15686,18 +15212,18 @@ dependencies = [ "sc-network-test", "sc-utils", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-arithmetic 16.0.0", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-beefy", "sp-consensus-grandpa", - "sp-core 21.0.0", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "sp-mmr-primitives", - "sp-runtime 24.0.0", + "sp-runtime", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", @@ -15721,8 +15247,8 @@ dependencies = [ "serde", "serde_json", "sp-consensus-beefy", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "substrate-test-runtime-client", "thiserror", "tokio", @@ -15737,7 +15263,7 @@ dependencies = [ "sc-client-api", "sc-consensus", "sp-blockchain", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -15771,16 +15297,16 @@ dependencies = [ "sc-utils", "serde", "serde_json", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-arithmetic 16.0.0", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core 21.0.0", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-keystore", + "sp-runtime", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", "substrate-test-runtime-client", @@ -15804,9 +15330,9 @@ dependencies = [ "serde", "sp-blockchain", "sp-consensus-grandpa", - "sp-core 21.0.0", + "sp-core", "sp-keyring", - "sp-runtime 24.0.0", + "sp-runtime", "substrate-test-runtime-client", "thiserror", "tokio", @@ -15832,17 +15358,17 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", "sp-consensus-aura", - "sp-consensus-babe 0.10.0-dev", - "sp-consensus-slots 0.10.0-dev", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-timestamp 4.0.0-dev", + "sp-consensus-babe", + "sp-consensus-slots", + "sp-core", + "sp-inherents", + "sp-keystore", + "sp-runtime", + "sp-timestamp", "substrate-prometheus-endpoint", "substrate-test-runtime-client", "substrate-test-runtime-transaction-pool", @@ -15862,14 +15388,14 @@ dependencies = [ "parking_lot 0.12.1", "sc-client-api", "sc-consensus", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-pow", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-core", + "sp-inherents", + "sp-runtime", "substrate-prometheus-endpoint", "thiserror", ] @@ -15886,14 +15412,14 @@ dependencies = [ "sc-client-api", "sc-consensus", "sc-telemetry", - "sp-arithmetic 16.0.0", + "sp-arithmetic", "sp-blockchain", "sp-consensus", - "sp-consensus-slots 0.10.0-dev", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-consensus-slots", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-state-machine", "substrate-test-runtime-client", ] @@ -15915,18 +15441,18 @@ dependencies = [ "sc-runtime-test", "sc-tracing", "schnellru", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", + "sp-api", + "sp-core", "sp-externalities 0.19.0", - "sp-io 23.0.0", + "sp-io", "sp-maybe-compressed-blob", - "sp-panic-handler 8.0.0", - "sp-runtime 24.0.0", + "sp-panic-handler", + "sp-runtime", "sp-runtime-interface 17.0.0", - "sp-state-machine 0.28.0", + "sp-state-machine", "sp-tracing 10.0.0", - "sp-trie 22.0.0", - "sp-version 22.0.0", + "sp-trie", + "sp-version", "sp-wasm-interface 14.0.0", "substrate-test-runtime", "tempfile", @@ -15962,7 +15488,7 @@ dependencies = [ "sc-allocator", "sc-executor-common", "sc-runtime-test", - "sp-io 23.0.0", + "sp-io", "sp-runtime-interface 17.0.0", "sp-wasm-interface 14.0.0", "tempfile", @@ -15983,7 +15509,7 @@ dependencies = [ "sc-network-common", "sc-network-sync", "sp-blockchain", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -15993,9 +15519,9 @@ dependencies = [ "array-bytes 6.1.0", "parking_lot 0.12.1", "serde_json", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-keystore 0.27.0", + "sp-application-crypto", + "sp-core", + "sp-keystore", "tempfile", "thiserror", ] @@ -16019,12 +15545,12 @@ dependencies = [ "sc-client-api", "sc-network", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus", - "sp-core 21.0.0", - "sp-keystore 0.27.0", + "sp-core", + "sp-keystore", "sp-mixnet", - "sp-runtime 24.0.0", + "sp-runtime", "thiserror", ] @@ -16061,10 +15587,10 @@ dependencies = [ "serde", "serde_json", "smallvec", - "sp-arithmetic 16.0.0", + "sp-arithmetic", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-test-primitives", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", @@ -16098,8 +15624,8 @@ dependencies = [ "sc-network", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "substrate-test-runtime", "substrate-test-runtime-client", "thiserror", @@ -16120,7 +15646,7 @@ dependencies = [ "sc-consensus", "sp-consensus", "sp-consensus-grandpa", - "sp-runtime 24.0.0", + "sp-runtime", "tempfile", ] @@ -16140,7 +15666,7 @@ dependencies = [ "sc-network-common", "sc-network-sync", "schnellru", - "sp-runtime 24.0.0", + "sp-runtime", "substrate-prometheus-endpoint", "substrate-test-runtime-client", "tokio", @@ -16162,8 +15688,8 @@ dependencies = [ "sc-client-api", "sc-network", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "thiserror", ] @@ -16210,12 +15736,12 @@ dependencies = [ "sc-utils", "schnellru", "smallvec", - "sp-arithmetic 16.0.0", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-test-primitives", "sp-tracing 10.0.0", "substrate-prometheus-endpoint", @@ -16247,8 +15773,8 @@ dependencies = [ "sc-utils", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-tracing 10.0.0", "substrate-test-runtime", "substrate-test-runtime-client", @@ -16269,7 +15795,7 @@ dependencies = [ "sc-network-sync", "sc-utils", "sp-consensus", - "sp-runtime 24.0.0", + "sp-runtime", "substrate-prometheus-endpoint", ] @@ -16300,13 +15826,13 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "sc-utils", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-keystore 0.27.0", + "sp-keystore", "sp-offchain", - "sp-runtime 24.0.0", + "sp-runtime", "sp-tracing 10.0.0", "substrate-test-runtime-client", "threadpool", @@ -16346,18 +15872,18 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-keystore 0.27.0", + "sp-core", + "sp-io", + "sp-keystore", "sp-offchain", "sp-rpc", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-statement-store", - "sp-version 22.0.0", + "sp-version", "substrate-test-runtime-client", "tokio", ] @@ -16374,10 +15900,10 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-core 21.0.0", + "sp-core", "sp-rpc", - "sp-runtime 24.0.0", - "sp-version 22.0.0", + "sp-runtime", + "sp-version", "thiserror", ] @@ -16417,15 +15943,15 @@ dependencies = [ "sc-utils", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", "sp-maybe-compressed-blob", "sp-rpc", - "sp-runtime 24.0.0", - "sp-version 22.0.0", + "sp-runtime", + "sp-version", "substrate-test-runtime", "substrate-test-runtime-client", "thiserror", @@ -16437,9 +15963,9 @@ dependencies = [ name = "sc-runtime-test" version = "2.0.0" dependencies = [ - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-runtime-interface 17.0.0", "sp-std 8.0.0", "substrate-wasm-builder", @@ -16484,20 +16010,20 @@ dependencies = [ "sc-utils", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-state-machine 0.28.0", + "sp-keystore", + "sp-runtime", + "sp-session", + "sp-state-machine", "sp-storage 13.0.0", "sp-transaction-pool", "sp-transaction-storage-proof", - "sp-trie 22.0.0", - "sp-version 22.0.0", + "sp-trie", + "sp-version", "static_init 1.0.3", "substrate-prometheus-endpoint", "substrate-test-runtime", @@ -16529,16 +16055,16 @@ dependencies = [ "sc-network-sync", "sc-service", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-state-machine", "sp-storage 13.0.0", "sp-tracing 10.0.0", - "sp-trie 22.0.0", + "sp-trie", "substrate-test-runtime", "substrate-test-runtime-client", "tempfile", @@ -16552,7 +16078,7 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.1", - "sp-core 21.0.0", + "sp-core", ] [[package]] @@ -16565,10 +16091,10 @@ dependencies = [ "parking_lot 0.12.1", "sc-client-api", "sc-keystore", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-statement-store", "substrate-prometheus-endpoint", "tempfile", @@ -16583,7 +16109,7 @@ dependencies = [ "fs4", "log", "sc-client-db", - "sp-core 21.0.0", + "sp-core", "thiserror", "tokio", ] @@ -16602,7 +16128,7 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-runtime 24.0.0", + "sp-runtime", "thiserror", ] @@ -16620,9 +16146,9 @@ dependencies = [ "sc-telemetry", "serde", "serde_json", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", ] @@ -16662,11 +16188,11 @@ dependencies = [ "sc-client-api", "sc-tracing-proc-macro", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-rpc", - "sp-runtime 24.0.0", + "sp-runtime", "sp-tracing 10.0.0", "thiserror", "tracing", @@ -16703,11 +16229,11 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-tracing 10.0.0", "sp-transaction-pool", "substrate-prometheus-endpoint", @@ -16728,8 +16254,8 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "thiserror", ] @@ -16744,7 +16270,7 @@ dependencies = [ "log", "parking_lot 0.12.1", "prometheus", - "sp-arithmetic 16.0.0", + "sp-arithmetic", "tokio-test", ] @@ -16911,29 +16437,11 @@ dependencies = [ [[package]] name = "secp256k1" -version = "0.24.3" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b1629c9c557ef9b293568b338dddfc8208c98a18c59d722a9d53f859d9c9b62" +checksum = "2acea373acb8c21ecb5a23741452acd2593ed44ee3d343e72baaa143bc89d0d5" dependencies = [ - "secp256k1-sys 0.6.1", -] - -[[package]] -name = "secp256k1" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2acea373acb8c21ecb5a23741452acd2593ed44ee3d343e72baaa143bc89d0d5" -dependencies = [ - "secp256k1-sys 0.9.0", -] - -[[package]] -name = "secp256k1-sys" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83080e2c2fc1006e625be82e5d1eb6a43b7fd9578b617fcc55814daf286bba4b" -dependencies = [ - "cc", + "secp256k1-sys", ] [[package]] @@ -16987,27 +16495,27 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-timestamp", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "pallet-aura", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", + "pallet-timestamp", "parachains-common", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", "substrate-wasm-builder", ] @@ -17236,31 +16744,31 @@ dependencies = [ "cumulus-pallet-xcm", "cumulus-primitives-core", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-try-runtime", "pallet-aura", - "pallet-message-queue 7.0.0-dev", - "pallet-timestamp 4.0.0-dev", + "pallet-message-queue", + "pallet-timestamp", "parachains-common", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-consensus-aura", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", + "sp-core", + "sp-genesis-builder", + "sp-inherents", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", + "sp-runtime", + "sp-session", "sp-std 8.0.0", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "staging-parachain-info", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", ] @@ -17360,7 +16868,7 @@ dependencies = [ "enumn", "parity-scale-codec", "paste", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -17554,38 +17062,16 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-api-proc-macro 4.0.0-dev", - "sp-core 21.0.0", + "sp-api-proc-macro", + "sp-core", "sp-externalities 0.19.0", - "sp-metadata-ir 0.1.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-metadata-ir", + "sp-runtime", + "sp-state-machine", "sp-std 8.0.0", "sp-test-primitives", - "sp-trie 22.0.0", - "sp-version 22.0.0", - "thiserror", -] - -[[package]] -name = "sp-api" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4d3518f5454764fb2835b2a0f3b2ed23a432f5c0b7a81ff122ec68361c91de3" -dependencies = [ - "hash-db", - "log", - "parity-scale-codec", - "scale-info", - "sp-api-proc-macro 13.0.0", - "sp-core 26.0.0", - "sp-externalities 0.23.0", - "sp-metadata-ir 0.4.0", - "sp-runtime 29.0.0", - "sp-state-machine 0.33.0", - "sp-std 12.0.0", - "sp-trie 27.0.0", - "sp-version 27.0.0", + "sp-trie", + "sp-version", "thiserror", ] @@ -17603,21 +17089,6 @@ dependencies = [ "syn 2.0.39", ] -[[package]] -name = "sp-api-proc-macro" -version = "13.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66f4030c3fe4a7dfb720d9007c32be4c18a4431b934ded41138056d627937894" -dependencies = [ - "Inflector", - "blake2 0.10.6", - "expander 2.0.0", - "proc-macro-crate 1.3.1", - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "sp-api-test" version = "2.0.1" @@ -17629,13 +17100,13 @@ dependencies = [ "rustversion", "sc-block-builder", "scale-info", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-core", + "sp-runtime", + "sp-state-machine", "sp-tracing 10.0.0", - "sp-version 22.0.0", + "sp-version", "static_assertions", "substrate-test-runtime-client", "trybuild", @@ -17648,33 +17119,19 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-std 8.0.0", ] -[[package]] -name = "sp-application-crypto" -version = "28.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23030de8eae0272c705cf3e2ce0523a64708a6b53aa23f3cf9053ca63abd08d7" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-core 26.0.0", - "sp-io 28.0.0", - "sp-std 12.0.0", -] - [[package]] name = "sp-application-crypto-test" version = "2.0.0" dependencies = [ - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-keystore 0.27.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-keystore", "substrate-test-runtime-client", ] @@ -17690,26 +17147,11 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-core 21.0.0", + "sp-core", "sp-std 8.0.0", "static_assertions", ] -[[package]] -name = "sp-arithmetic" -version = "21.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9cf6e5c0c7c2e7be3a4a10af5316d2d40182915509a70f632a66c238a05c37b" -dependencies = [ - "integer-sqrt", - "num-traits", - "parity-scale-codec", - "scale-info", - "serde", - "sp-std 12.0.0", - "static_assertions", -] - [[package]] name = "sp-arithmetic-fuzzer" version = "2.0.0" @@ -17718,7 +17160,7 @@ dependencies = [ "fraction", "honggfuzz", "num-bigint", - "sp-arithmetic 16.0.0", + "sp-arithmetic", ] [[package]] @@ -17745,33 +17187,19 @@ version = "4.0.0-dev" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-application-crypto", + "sp-runtime", "sp-std 8.0.0", ] -[[package]] -name = "sp-authority-discovery" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86851319959a50da57aff34ccc52329e9b02e7a560eae61a39f8a01ecaa7635e" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-api 24.0.0", - "sp-application-crypto 28.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "sp-block-builder" version = "4.0.0-dev" dependencies = [ - "sp-api 4.0.0-dev", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-api", + "sp-inherents", + "sp-runtime", "sp-std 8.0.0", ] @@ -17784,11 +17212,11 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "schnellru", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus", "sp-database", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "thiserror", ] @@ -17799,10 +17227,10 @@ dependencies = [ "async-trait", "futures", "log", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-state-machine", "sp-test-primitives", "thiserror", ] @@ -17814,13 +17242,13 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-consensus-slots 0.10.0-dev", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-api", + "sp-application-crypto", + "sp-consensus-slots", + "sp-inherents", + "sp-runtime", "sp-std 8.0.0", - "sp-timestamp 4.0.0-dev", + "sp-timestamp", ] [[package]] @@ -17831,34 +17259,14 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-consensus-slots 0.10.0-dev", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-api", + "sp-application-crypto", + "sp-consensus-slots", + "sp-core", + "sp-inherents", + "sp-runtime", "sp-std 8.0.0", - "sp-timestamp 4.0.0-dev", -] - -[[package]] -name = "sp-consensus-babe" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85f1cb856b373ada1dd15fba81df007bdb4fd92fa9d388e0fb90822eb754fdf4" -dependencies = [ - "async-trait", - "parity-scale-codec", - "scale-info", - "serde", - "sp-api 24.0.0", - "sp-application-crypto 28.0.0", - "sp-consensus-slots 0.30.0", - "sp-core 26.0.0", - "sp-inherents 24.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", - "sp-timestamp 24.0.0", + "sp-timestamp", ] [[package]] @@ -17870,12 +17278,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-io", "sp-mmr-primitives", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", "strum", "w3f-bls", @@ -17890,11 +17298,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-keystore", + "sp-runtime", "sp-std 8.0.0", ] @@ -17903,9 +17311,9 @@ name = "sp-consensus-pow" version = "0.10.0-dev" dependencies = [ "parity-scale-codec", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-core", + "sp-runtime", "sp-std 8.0.0", ] @@ -17916,11 +17324,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-consensus-slots 0.10.0-dev", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-application-crypto", + "sp-consensus-slots", + "sp-core", + "sp-runtime", "sp-std 8.0.0", ] @@ -17932,20 +17340,7 @@ dependencies = [ "scale-info", "serde", "sp-std 8.0.0", - "sp-timestamp 4.0.0-dev", -] - -[[package]] -name = "sp-consensus-slots" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0646da6e552fd9ab412aafdbe5edc04109f7701b7760b93c5675b5af0c9ed105" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-std 12.0.0", - "sp-timestamp 24.0.0", + "sp-timestamp", ] [[package]] @@ -17979,12 +17374,12 @@ dependencies = [ "regex", "scale-info", "schnorrkel 0.9.1", - "secp256k1 0.28.0", + "secp256k1", "secrecy", "serde", "serde_json", - "sp-core-hashing 9.0.0", - "sp-core-hashing-proc-macro 9.0.0", + "sp-core-hashing", + "sp-core-hashing-proc-macro", "sp-debug-derive 8.0.0", "sp-externalities 0.19.0", "sp-runtime-interface 17.0.0", @@ -17998,54 +17393,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "sp-core" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0db34a19be2efa0398a9506a365392d93a85220856d55e0eb78165ad2e1bedc" -dependencies = [ - "array-bytes 6.1.0", - "bip39", - "bitflags 1.3.2", - "blake2 0.10.6", - "bounded-collections", - "bs58 0.5.0", - "dyn-clonable", - "ed25519-zebra 3.1.0", - "futures", - "hash-db", - "hash256-std-hasher", - "impl-serde", - "itertools 0.10.5", - "lazy_static", - "libsecp256k1", - "log", - "merlin 2.0.1", - "parity-scale-codec", - "parking_lot 0.12.1", - "paste", - "primitive-types", - "rand 0.8.5", - "regex", - "scale-info", - "schnorrkel 0.9.1", - "secp256k1 0.24.3", - "secrecy", - "serde", - "sp-core-hashing 13.0.0", - "sp-debug-derive 12.0.0", - "sp-externalities 0.23.0", - "sp-runtime-interface 22.0.0", - "sp-std 12.0.0", - "sp-storage 17.0.0", - "ss58-registry", - "substrate-bip39", - "thiserror", - "tracing", - "w3f-bls", - "zeroize", -] - [[package]] name = "sp-core-fuzz" version = "0.0.0" @@ -18053,7 +17400,7 @@ dependencies = [ "lazy_static", "libfuzzer-sys", "regex", - "sp-core 21.0.0", + "sp-core", ] [[package]] @@ -18068,37 +17415,12 @@ dependencies = [ "twox-hash", ] -[[package]] -name = "sp-core-hashing" -version = "13.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb8524f01591ee58b46cd83c9dbc0fcffd2fd730dabec4f59326cd58a00f17e2" -dependencies = [ - "blake2b_simd", - "byteorder", - "digest 0.10.7", - "sha2 0.10.7", - "sha3", - "twox-hash", -] - [[package]] name = "sp-core-hashing-proc-macro" version = "9.0.0" dependencies = [ "quote", - "sp-core-hashing 9.0.0", - "syn 2.0.39", -] - -[[package]] -name = "sp-core-hashing-proc-macro" -version = "13.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ce3e6931303769197da81facefa86159fa1085dcd96ecb7e7407b5b93582a0" -dependencies = [ - "quote", - "sp-core-hashing 13.0.0", + "sp-core-hashing", "syn 2.0.39", ] @@ -18170,17 +17492,6 @@ dependencies = [ "syn 2.0.39", ] -[[package]] -name = "sp-debug-derive" -version = "12.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50535e1a5708d3ba5c1195b59ebefac61cc8679c2c24716b87a86e8b7ed2e4a1" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "sp-externalities" version = "0.19.0" @@ -18202,40 +17513,16 @@ dependencies = [ "sp-storage 13.0.0 (git+https://github.com/paritytech/polkadot-sdk)", ] -[[package]] -name = "sp-externalities" -version = "0.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "884d05160bc89d0943d1c9fb8006c3d44b80f37f8af607aeff8d4d9cc82e279a" -dependencies = [ - "environmental", - "parity-scale-codec", - "sp-std 12.0.0", - "sp-storage 17.0.0", -] - [[package]] name = "sp-genesis-builder" version = "0.1.0" dependencies = [ "serde_json", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-api", + "sp-runtime", "sp-std 8.0.0", ] -[[package]] -name = "sp-genesis-builder" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65de7e1d4de8ac2645913ed7202c71ba5783e39286f2be40f0c45a8e472ad9fd" -dependencies = [ - "serde_json", - "sp-api 24.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "sp-inherents" version = "4.0.0-dev" @@ -18245,26 +17532,11 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", "thiserror", ] -[[package]] -name = "sp-inherents" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c681a65a707014d505bf675e452c28b02eb55d9499f2407b85feef651fce0c2e" -dependencies = [ - "async-trait", - "impl-trait-for-tuples", - "parity-scale-codec", - "scale-info", - "sp-runtime 29.0.0", - "sp-std 12.0.0", - "thiserror", -] - [[package]] name = "sp-io" version = "23.0.0" @@ -18275,40 +17547,15 @@ dependencies = [ "log", "parity-scale-codec", "rustversion", - "secp256k1 0.28.0", - "sp-core 21.0.0", + "secp256k1", + "sp-core", "sp-externalities 0.19.0", - "sp-keystore 0.27.0", + "sp-keystore", "sp-runtime-interface 17.0.0", - "sp-state-machine 0.28.0", + "sp-state-machine", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-trie 22.0.0", - "tracing", - "tracing-core", -] - -[[package]] -name = "sp-io" -version = "28.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "301c0ce94f80b324465a6f6173183aa07b26bd71d67f94a44de1fd11dea4a7cb" -dependencies = [ - "bytes", - "ed25519-dalek", - "libsecp256k1", - "log", - "parity-scale-codec", - "rustversion", - "secp256k1 0.24.3", - "sp-core 26.0.0", - "sp-externalities 0.23.0", - "sp-keystore 0.32.0", - "sp-runtime-interface 22.0.0", - "sp-state-machine 0.33.0", - "sp-std 12.0.0", - "sp-tracing 14.0.0", - "sp-trie 27.0.0", + "sp-trie", "tracing", "tracing-core", ] @@ -18318,8 +17565,8 @@ name = "sp-keyring" version = "24.0.0" dependencies = [ "lazy_static", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "strum", ] @@ -18331,24 +17578,11 @@ dependencies = [ "parking_lot 0.12.1", "rand 0.7.3", "rand_chacha 0.2.2", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", "thiserror", ] -[[package]] -name = "sp-keystore" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1db18ab01b2684856904c973d2be7dbf9ab3607cf706a7bd6648812662e5e7c5" -dependencies = [ - "parity-scale-codec", - "parking_lot 0.12.1", - "sp-core 26.0.0", - "sp-externalities 0.23.0", - "thiserror", -] - [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" @@ -18367,26 +17601,14 @@ dependencies = [ "sp-std 8.0.0", ] -[[package]] -name = "sp-metadata-ir" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ca9ff0e522a74725ac92f009d38deeb12e880f5296afbd78a6c6b970b773278" -dependencies = [ - "frame-metadata", - "parity-scale-codec", - "scale-info", - "sp-std 12.0.0", -] - [[package]] name = "sp-mixnet" version = "0.1.0-dev" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", + "sp-api", + "sp-application-crypto", "sp-std 8.0.0", ] @@ -18400,10 +17622,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", + "sp-api", + "sp-core", "sp-debug-derive 8.0.0", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", "thiserror", ] @@ -18416,28 +17638,13 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-runtime", "sp-std 8.0.0", "substrate-test-utils", ] -[[package]] -name = "sp-npos-elections" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ccca7310c7b4144c6cf76e0d1ff75252fb9ffc0a03db50ac25092f981db9e3c" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-arithmetic 21.0.0", - "sp-core 26.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "sp-npos-elections-fuzzer" version = "2.0.0-alpha.5" @@ -18445,17 +17652,17 @@ dependencies = [ "clap 4.4.10", "honggfuzz", "rand 0.8.5", - "sp-npos-elections 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-npos-elections", + "sp-runtime", ] [[package]] name = "sp-offchain" version = "4.0.0-dev" dependencies = [ - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-core", + "sp-runtime", ] [[package]] @@ -18467,17 +17674,6 @@ dependencies = [ "regex", ] -[[package]] -name = "sp-panic-handler" -version = "12.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b00e40857ed3e0187f145b037c733545c5633859f1bd1d1b09deb52805fa696a" -dependencies = [ - "backtrace", - "lazy_static", - "regex", -] - [[package]] name = "sp-rpc" version = "6.0.0" @@ -18485,7 +17681,7 @@ dependencies = [ "rustc-hash", "serde", "serde_json", - "sp-core 21.0.0", + "sp-core", ] [[package]] @@ -18504,42 +17700,19 @@ dependencies = [ "serde", "serde_json", "simple-mermaid 0.1.0 (git+https://github.com/kianenigma/simple-mermaid.git?branch=main)", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-state-machine 0.28.0", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-state-machine", "sp-std 8.0.0", "sp-tracing 10.0.0", - "sp-weights 20.0.0", + "sp-weights", "substrate-test-runtime-client", "zstd 0.12.4", ] -[[package]] -name = "sp-runtime" -version = "29.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "082bae4a164b8b629ce9cee79ff3c6b20e66d11d8ef37398796567d616325da4" -dependencies = [ - "either", - "hash256-std-hasher", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "paste", - "rand 0.8.5", - "scale-info", - "serde", - "sp-application-crypto 28.0.0", - "sp-arithmetic 21.0.0", - "sp-core 26.0.0", - "sp-io 28.0.0", - "sp-std 12.0.0", - "sp-weights 25.0.0", -] - [[package]] name = "sp-runtime-interface" version = "17.0.0" @@ -18549,12 +17722,12 @@ dependencies = [ "parity-scale-codec", "primitive-types", "rustversion", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-io 23.0.0", + "sp-io", "sp-runtime-interface-proc-macro 11.0.0", "sp-runtime-interface-test-wasm", - "sp-state-machine 0.28.0", + "sp-state-machine", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-tracing 10.0.0", @@ -18581,25 +17754,6 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "sp-runtime-interface" -version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "695bba5d981a6fd3131b098d65f620601bd822501612bfb65897d4bb660762b1" -dependencies = [ - "bytes", - "impl-trait-for-tuples", - "parity-scale-codec", - "primitive-types", - "sp-externalities 0.23.0", - "sp-runtime-interface-proc-macro 15.0.0", - "sp-std 12.0.0", - "sp-storage 17.0.0", - "sp-tracing 14.0.0", - "sp-wasm-interface 18.0.0", - "static_assertions", -] - [[package]] name = "sp-runtime-interface-proc-macro" version = "11.0.0" @@ -18624,31 +17778,18 @@ dependencies = [ "syn 2.0.39", ] -[[package]] -name = "sp-runtime-interface-proc-macro" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2afcbd1bd18d323371111b66b7ac2870bdc1c86c3d7b0dae67b112ca52b4d8" -dependencies = [ - "Inflector", - "proc-macro-crate 1.3.1", - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "sp-runtime-interface-test" version = "2.0.0" dependencies = [ "sc-executor", "sc-executor-common", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-runtime-interface 17.0.0", "sp-runtime-interface-test-wasm", "sp-runtime-interface-test-wasm-deprecated", - "sp-state-machine 0.28.0", + "sp-state-machine", "tracing", "tracing-core", ] @@ -18658,8 +17799,8 @@ name = "sp-runtime-interface-test-wasm" version = "2.0.0" dependencies = [ "bytes", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-runtime-interface 17.0.0", "sp-std 8.0.0", "substrate-wasm-builder", @@ -18669,8 +17810,8 @@ dependencies = [ name = "sp-runtime-interface-test-wasm-deprecated" version = "2.0.0" dependencies = [ - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-runtime-interface 17.0.0", "substrate-wasm-builder", ] @@ -18681,30 +17822,14 @@ version = "4.0.0-dev" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-staking 4.0.0-dev", + "sp-api", + "sp-core", + "sp-keystore", + "sp-runtime", + "sp-staking", "sp-std 8.0.0", ] -[[package]] -name = "sp-session" -version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17e77481b0e44b998b4ecf111ea49384d3f3dcdc2479a93f0eea2650050f55e5" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-api 24.0.0", - "sp-core 26.0.0", - "sp-keystore 0.32.0", - "sp-runtime 29.0.0", - "sp-staking 24.0.0", - "sp-std 12.0.0", -] - [[package]] name = "sp-staking" version = "4.0.0-dev" @@ -18713,26 +17838,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-std 8.0.0", ] -[[package]] -name = "sp-staking" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae2d1164378d66b4b9f672d0c920104c59aeba02655522c0fd511c71c2daf614" -dependencies = [ - "impl-trait-for-tuples", - "parity-scale-codec", - "scale-info", - "serde", - "sp-core 26.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", -] - [[package]] name = "sp-state-machine" version = "0.28.0" @@ -18746,34 +17856,12 @@ dependencies = [ "pretty_assertions", "rand 0.8.5", "smallvec", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-panic-handler 8.0.0", - "sp-runtime 24.0.0", + "sp-panic-handler", + "sp-runtime", "sp-std 8.0.0", - "sp-trie 22.0.0", - "thiserror", - "tracing", - "trie-db", -] - -[[package]] -name = "sp-state-machine" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df7c6680d9342c22c10d8272ebf9f0339b0e439b3e67b68f5627f9dfc6926a07" -dependencies = [ - "hash-db", - "log", - "parity-scale-codec", - "parking_lot 0.12.1", - "rand 0.8.5", - "smallvec", - "sp-core 26.0.0", - "sp-externalities 0.23.0", - "sp-panic-handler 12.0.0", - "sp-std 12.0.0", - "sp-trie 27.0.0", + "sp-trie", "thiserror", "tracing", "trie-db", @@ -18791,11 +17879,11 @@ dependencies = [ "rand 0.8.5", "scale-info", "sha2 0.10.7", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", "sp-externalities 0.19.0", - "sp-runtime 24.0.0", + "sp-runtime", "sp-runtime-interface 17.0.0", "sp-std 8.0.0", "thiserror", @@ -18811,12 +17899,6 @@ name = "sp-std" version = "8.0.0" source = "git+https://github.com/paritytech/polkadot-sdk#82912acb33a9030c0ef3bf590a34fca09b72dc5f" -[[package]] -name = "sp-std" -version = "12.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54c78c5a66682568cc7b153603c5d01a2cc8f5c221c7b1e921517a0eef18ae05" - [[package]] name = "sp-storage" version = "13.0.0" @@ -18842,20 +17924,6 @@ dependencies = [ "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk)", ] -[[package]] -name = "sp-storage" -version = "17.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "016f20812cc51bd479cc88d048c35d44cd3adde4accdb159d49d6050f2953595" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "ref-cast", - "serde", - "sp-debug-derive 12.0.0", - "sp-std 12.0.0", -] - [[package]] name = "sp-test-primitives" version = "2.0.0" @@ -18863,9 +17931,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-application-crypto", + "sp-core", + "sp-runtime", "sp-std 8.0.0", ] @@ -18875,26 +17943,12 @@ version = "4.0.0-dev" dependencies = [ "async-trait", "parity-scale-codec", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-inherents", + "sp-runtime", "sp-std 8.0.0", "thiserror", ] -[[package]] -name = "sp-timestamp" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff0d0524209a1d1f10221e8f59e53fa0bfd927d168a5ec8ad7c0ca03e883f50a" -dependencies = [ - "async-trait", - "parity-scale-codec", - "sp-inherents 24.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", - "thiserror", -] - [[package]] name = "sp-tracing" version = "10.0.0" @@ -18918,25 +17972,12 @@ dependencies = [ "tracing-subscriber", ] -[[package]] -name = "sp-tracing" -version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d727cb5265641ffbb7d4e42c18b63e29f6cfdbd240aae3bcf093c3d6eb29a19" -dependencies = [ - "parity-scale-codec", - "sp-std 12.0.0", - "tracing", - "tracing-core", - "tracing-subscriber", -] - [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" dependencies = [ - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-api", + "sp-runtime", ] [[package]] @@ -18946,11 +17987,11 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-inherents 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-core", + "sp-inherents", + "sp-runtime", "sp-std 8.0.0", - "sp-trie 22.0.0", + "sp-trie", ] [[package]] @@ -18970,9 +18011,9 @@ dependencies = [ "rand 0.8.5", "scale-info", "schnellru", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", "thiserror", "tracing", @@ -18982,31 +18023,6 @@ dependencies = [ "trie-standardmap", ] -[[package]] -name = "sp-trie" -version = "27.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9c4bf89a5bd74f696cd1f23d83bb6abe6bd0abad1f3c70d4b0d7ebec4098cfe" -dependencies = [ - "ahash 0.8.3", - "hash-db", - "hashbrown 0.13.2", - "lazy_static", - "memory-db", - "nohash-hasher", - "parity-scale-codec", - "parking_lot 0.12.1", - "rand 0.8.5", - "scale-info", - "schnellru", - "sp-core 26.0.0", - "sp-std 12.0.0", - "thiserror", - "tracing", - "trie-db", - "trie-root", -] - [[package]] name = "sp-version" version = "22.0.0" @@ -19016,28 +18032,10 @@ dependencies = [ "parity-wasm", "scale-info", "serde", - "sp-core-hashing-proc-macro 9.0.0", - "sp-runtime 24.0.0", + "sp-core-hashing-proc-macro", + "sp-runtime", "sp-std 8.0.0", - "sp-version-proc-macro 8.0.0", - "thiserror", -] - -[[package]] -name = "sp-version" -version = "27.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "603c3c40bf19dd3004b350e4fcc2a460f833e73dd514406c2361bfdd9795d019" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "parity-wasm", - "scale-info", - "serde", - "sp-core-hashing-proc-macro 13.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", - "sp-version-proc-macro 12.0.0", + "sp-version-proc-macro", "thiserror", ] @@ -19048,19 +18046,7 @@ dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "sp-version 22.0.0", - "syn 2.0.39", -] - -[[package]] -name = "sp-version-proc-macro" -version = "12.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49535d8c7184dab46d15639c68374a30cbb1534e392fa09a1ebb059a993ad436" -dependencies = [ - "parity-scale-codec", - "proc-macro2", - "quote", + "sp-version", "syn 2.0.39", ] @@ -19089,20 +18075,6 @@ dependencies = [ "wasmtime", ] -[[package]] -name = "sp-wasm-interface" -version = "18.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5d85813d46a22484cdf5e5afddbbe85442dd1b4d84d67a8c7792f92f9f93607" -dependencies = [ - "anyhow", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "sp-std 12.0.0", - "wasmtime", -] - [[package]] name = "sp-weights" version = "20.0.0" @@ -19111,28 +18083,12 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", + "sp-arithmetic", + "sp-core", "sp-debug-derive 8.0.0", "sp-std 8.0.0", ] -[[package]] -name = "sp-weights" -version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1689f9594c2c4d09ede3d8a991a9eb900654e424fb00b62f2b370170af347acd" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "smallvec", - "sp-arithmetic 21.0.0", - "sp-core 26.0.0", - "sp-debug-derive 12.0.0", - "sp-std 12.0.0", -] - [[package]] name = "spin" version = "0.5.2" @@ -19217,10 +18173,10 @@ dependencies = [ "clap 4.4.10", "clap_complete", "criterion 0.4.0", - "frame-benchmarking 4.0.0-dev", + "frame-benchmarking", "frame-benchmarking-cli", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-rpc-runtime-api", "futures", "jsonrpsee", @@ -19233,15 +18189,15 @@ dependencies = [ "pallet-asset-conversion-tx-payment", "pallet-asset-tx-payment", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-contracts", "pallet-glutton", "pallet-im-online", "pallet-root-testing", "pallet-skip-feeless-payment", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-treasury", "parity-scale-codec", "platforms", @@ -19281,27 +18237,27 @@ dependencies = [ "serde", "serde_json", "soketto", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-authority-discovery 4.0.0-dev", + "sp-api", + "sp-application-crypto", + "sp-authority-discovery", "sp-blockchain", "sp-consensus", - "sp-consensus-babe 0.10.0-dev", + "sp-consensus-babe", "sp-consensus-grandpa", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-inherents", + "sp-io", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "sp-mixnet", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "sp-statement-store", - "sp-timestamp 4.0.0-dev", + "sp-timestamp", "sp-tracing 10.0.0", "sp-transaction-storage-proof", - "sp-trie 22.0.0", + "sp-trie", "staging-node-inspect", "substrate-build-script-utils", "substrate-cli-test-utils", @@ -19325,9 +18281,9 @@ dependencies = [ "sc-client-api", "sc-service", "sp-blockchain", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-statement-store", "thiserror", ] @@ -19337,11 +18293,11 @@ name = "staging-parachain-info" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "parity-scale-codec", "scale-info", - "sp-runtime 24.0.0", + "sp-runtime", "sp-std 8.0.0", ] @@ -19363,27 +18319,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-io 23.0.0", - "sp-weights 20.0.0", - "xcm-procedural 1.0.0", -] - -[[package]] -name = "staging-xcm" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d43e1f88bf0db82e674d68d7b294afe7dabd4a3d22e72937a653dde779c5765b" -dependencies = [ - "bounded-collections", - "derivative", - "environmental", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "scale-info", - "serde", - "sp-weights 25.0.0", - "xcm-procedural 5.0.0", + "sp-io", + "sp-weights", + "xcm-procedural", ] [[package]] @@ -19391,52 +18329,29 @@ name = "staging-xcm-builder" version = "1.0.0" dependencies = [ "assert_matches", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "impl-trait-for-tuples", "log", "pallet-assets", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-salary", - "pallet-transaction-payment 4.0.0-dev", + "pallet-transaction-payment", "pallet-xcm", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", - "polkadot-runtime-parachains 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-parachains", "polkadot-test-runtime", "primitive-types", "scale-info", - "sp-arithmetic 16.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "sp-weights 20.0.0", - "staging-xcm 1.0.0", - "staging-xcm-executor 1.0.0", -] - -[[package]] -name = "staging-xcm-builder" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5221ec5c927d0790a48070b90b050013e46d86b555219df15eccbeb67c1ab6b" -dependencies = [ - "frame-support 26.0.0", - "frame-system 26.0.0", - "impl-trait-for-tuples", - "log", - "pallet-transaction-payment 26.0.0", - "parity-scale-codec", - "polkadot-parachain-primitives 4.0.0", - "scale-info", - "sp-arithmetic 21.0.0", - "sp-io 28.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", - "sp-weights 25.0.0", - "staging-xcm 5.0.0", - "staging-xcm-executor 5.0.0", + "sp-weights", + "staging-xcm", + "staging-xcm-executor", ] [[package]] @@ -19444,41 +18359,19 @@ name = "staging-xcm-executor" version = "1.0.0" dependencies = [ "environmental", - "frame-benchmarking 4.0.0-dev", - "frame-support 4.0.0-dev", + "frame-benchmarking", + "frame-support", "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "sp-weights 20.0.0", - "staging-xcm 1.0.0", -] - -[[package]] -name = "staging-xcm-executor" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd487438a3576de9db9d07dd64a12682483a2fcbf5e7e183d40ead345f61bb7b" -dependencies = [ - "environmental", - "frame-benchmarking 26.0.0", - "frame-support 26.0.0", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "scale-info", - "sp-arithmetic 21.0.0", - "sp-core 26.0.0", - "sp-io 28.0.0", - "sp-runtime 29.0.0", - "sp-std 12.0.0", - "sp-weights 25.0.0", - "staging-xcm 5.0.0", + "sp-weights", + "staging-xcm", ] [[package]] @@ -19647,26 +18540,26 @@ name = "substrate-frame-cli" version = "4.0.0-dev" dependencies = [ "clap 4.4.10", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "sc-cli", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", ] [[package]] name = "substrate-frame-rpc-support" version = "3.0.0" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "jsonrpsee", "parity-scale-codec", "sc-rpc-api", "scale-info", "serde", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-storage 13.0.0", "tokio", ] @@ -19684,11 +18577,11 @@ dependencies = [ "sc-rpc-api", "sc-transaction-pool", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "sp-tracing 10.0.0", "substrate-test-runtime-client", "tokio", @@ -19714,8 +18607,8 @@ dependencies = [ "log", "sc-rpc-api", "serde", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "tokio", ] @@ -19729,10 +18622,10 @@ dependencies = [ "sc-rpc-api", "serde", "serde_json", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-trie 22.0.0", + "sp-core", + "sp-runtime", + "sp-state-machine", + "sp-trie", "trie-db", ] @@ -19754,11 +18647,11 @@ dependencies = [ "serde_json", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-keystore", + "sp-runtime", + "sp-state-machine", ] [[package]] @@ -19767,15 +18660,15 @@ version = "2.0.0" dependencies = [ "array-bytes 6.1.0", "frame-executive", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-rpc-runtime-api", "futures", "json-patch", "log", - "pallet-babe 4.0.0-dev", - "pallet-balances 4.0.0-dev", - "pallet-timestamp 4.0.0-dev", + "pallet-babe", + "pallet-balances", + "pallet-timestamp", "parity-scale-codec", "sc-block-builder", "sc-executor", @@ -19784,28 +18677,28 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", + "sp-api", + "sp-application-crypto", "sp-block-builder", "sp-consensus", "sp-consensus-aura", - "sp-consensus-babe 0.10.0-dev", + "sp-consensus-babe", "sp-consensus-grandpa", - "sp-core 21.0.0", + "sp-core", "sp-externalities 0.19.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-keyring", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-session", + "sp-state-machine", "sp-std 8.0.0", "sp-tracing 10.0.0", "sp-transaction-pool", - "sp-trie 22.0.0", - "sp-version 22.0.0", + "sp-trie", + "sp-version", "substrate-test-runtime-client", "substrate-wasm-builder", "trie-db", @@ -19819,11 +18712,11 @@ dependencies = [ "sc-block-builder", "sc-client-api", "sc-consensus", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "substrate-test-client", "substrate-test-runtime", ] @@ -19838,7 +18731,7 @@ dependencies = [ "sc-transaction-pool", "sc-transaction-pool-api", "sp-blockchain", - "sp-runtime 24.0.0", + "sp-runtime", "substrate-test-runtime-client", "thiserror", ] @@ -20110,8 +19003,8 @@ version = "1.0.0" dependencies = [ "dlmalloc", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "sp-io 23.0.0", + "polkadot-parachain-primitives", + "sp-io", "sp-std 8.0.0", "substrate-wasm-builder", "tiny-keccak", @@ -20130,13 +19023,13 @@ dependencies = [ "polkadot-node-core-pvf", "polkadot-node-primitives", "polkadot-node-subsystem", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-service", "polkadot-test-service", "sc-cli", "sc-service", - "sp-core 21.0.0", + "sp-core", "sp-keyring", "substrate-test-utils", "test-parachain-adder", @@ -20158,8 +19051,8 @@ dependencies = [ "dlmalloc", "log", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "sp-io 23.0.0", + "polkadot-parachain-primitives", + "sp-io", "sp-std 8.0.0", "substrate-wasm-builder", "tiny-keccak", @@ -20178,13 +19071,13 @@ dependencies = [ "polkadot-node-core-pvf", "polkadot-node-primitives", "polkadot-node-subsystem", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-service", "polkadot-test-service", "sc-cli", "sc-service", - "sp-core 21.0.0", + "sp-core", "sp-keyring", "substrate-test-utils", "test-parachain-undying", @@ -20196,7 +19089,7 @@ name = "test-parachains" version = "1.0.0" dependencies = [ "parity-scale-codec", - "sp-core 21.0.0", + "sp-core", "test-parachain-adder", "test-parachain-halt", "tiny-keccak", @@ -20206,24 +19099,24 @@ dependencies = [ name = "test-runtime-constants" version = "1.0.0" dependencies = [ - "frame-support 4.0.0-dev", - "polkadot-primitives 1.0.0", + "frame-support", + "polkadot-primitives", "polkadot-runtime-common", "smallvec", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-weights 20.0.0", + "sp-core", + "sp-runtime", + "sp-weights", ] [[package]] name = "testnets-common" version = "1.0.0" dependencies = [ - "frame-support 4.0.0-dev", - "polkadot-core-primitives 1.0.0", + "frame-support", + "polkadot-core-primitives", "rococo-runtime-constants", "smallvec", - "sp-runtime 24.0.0", + "sp-runtime", "substrate-wasm-builder", "westend-runtime-constants", ] @@ -20688,7 +19581,7 @@ name = "tracing-gum" version = "1.0.0" dependencies = [ "coarsetime", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "tracing", "tracing-gum-proc-macro", ] @@ -20867,22 +19760,22 @@ dependencies = [ "sc-executor", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus-aura", - "sp-consensus-babe 0.10.0-dev", - "sp-core 21.0.0", + "sp-consensus-babe", + "sp-core", "sp-debug-derive 8.0.0", "sp-externalities 0.19.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", - "sp-keystore 0.27.0", + "sp-inherents", + "sp-io", + "sp-keystore", "sp-rpc", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-timestamp 4.0.0-dev", + "sp-runtime", + "sp-state-machine", + "sp-timestamp", "sp-transaction-storage-proof", - "sp-version 22.0.0", - "sp-weights 20.0.0", + "sp-version", + "sp-weights", "substrate-cli-test-utils", "substrate-rpc-client", "tempfile", @@ -21918,16 +20811,16 @@ version = "0.0.0" dependencies = [ "emulated-integration-tests-common", "pallet-im-online", - "pallet-staking 4.0.0-dev", + "pallet-staking", "parachains-common", - "polkadot-primitives 1.0.0", + "polkadot-primitives", "sc-consensus-grandpa", "serde_json", - "sp-authority-discovery 4.0.0-dev", - "sp-consensus-babe 0.10.0-dev", + "sp-authority-discovery", + "sp-consensus-babe", "sp-consensus-beefy", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "westend-runtime", "westend-runtime-constants", ] @@ -21938,23 +20831,23 @@ version = "1.0.0" dependencies = [ "binary-merkle-tree", "bitvec", - "frame-benchmarking 4.0.0-dev", - "frame-election-provider-support 4.0.0-dev", + "frame-benchmarking", + "frame-election-provider-support", "frame-executive", "frame-remote-externalities", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", "log", "pallet-asset-rate", - "pallet-authority-discovery 4.0.0-dev", - "pallet-authorship 4.0.0-dev", - "pallet-babe 4.0.0-dev", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", "pallet-bags-list", - "pallet-balances 4.0.0-dev", + "pallet-balances", "pallet-beefy", "pallet-beefy-mmr", "pallet-collective", @@ -21969,7 +20862,7 @@ dependencies = [ "pallet-im-online", "pallet-indices", "pallet-membership", - "pallet-message-queue 7.0.0-dev", + "pallet-message-queue", "pallet-mmr", "pallet-multisig", "pallet-nomination-pools", @@ -21983,60 +20876,60 @@ dependencies = [ "pallet-referenda", "pallet-root-testing", "pallet-scheduler", - "pallet-session 4.0.0-dev", + "pallet-session", "pallet-session-benchmarking", "pallet-society", - "pallet-staking 4.0.0-dev", + "pallet-staking", "pallet-staking-reward-curve", "pallet-staking-runtime-api", "pallet-state-trie-migration", "pallet-sudo", - "pallet-timestamp 4.0.0-dev", - "pallet-transaction-payment 4.0.0-dev", + "pallet-timestamp", + "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", "pallet-utility", - "pallet-vesting 4.0.0-dev", + "pallet-vesting", "pallet-whitelist", "pallet-xcm", "pallet-xcm-benchmarks", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-runtime-common", - "polkadot-runtime-parachains 1.0.0", + "polkadot-runtime-parachains", "rustc-hex", "scale-info", "serde", "serde_derive", "serde_json", "smallvec", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-arithmetic 16.0.0", - "sp-authority-discovery 4.0.0-dev", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", + "sp-authority-discovery", "sp-block-builder", - "sp-consensus-babe 0.10.0-dev", + "sp-consensus-babe", "sp-consensus-beefy", - "sp-core 21.0.0", - "sp-genesis-builder 0.1.0", - "sp-inherents 4.0.0-dev", - "sp-io 23.0.0", + "sp-core", + "sp-genesis-builder", + "sp-inherents", + "sp-io", "sp-keyring", "sp-mmr-primitives", - "sp-npos-elections 4.0.0-dev", + "sp-npos-elections", "sp-offchain", - "sp-runtime 24.0.0", - "sp-session 4.0.0-dev", - "sp-staking 4.0.0-dev", + "sp-runtime", + "sp-session", + "sp-staking", "sp-std 8.0.0", "sp-storage 13.0.0", "sp-tracing 10.0.0", "sp-transaction-pool", - "sp-version 22.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", + "sp-version", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", "substrate-wasm-builder", "tiny-keccak", "tokio", @@ -22047,14 +20940,14 @@ dependencies = [ name = "westend-runtime-constants" version = "1.0.0" dependencies = [ - "frame-support 4.0.0-dev", - "polkadot-primitives 1.0.0", + "frame-support", + "polkadot-primitives", "polkadot-runtime-common", "smallvec", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-weights 20.0.0", - "staging-xcm 1.0.0", + "sp-core", + "sp-runtime", + "sp-weights", + "staging-xcm", ] [[package]] @@ -22413,16 +21306,20 @@ version = "0.0.1" dependencies = [ "docify", "frame", + "pallet-message-queue", "parity-scale-codec", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-parachains", + "scale-info", "simple-mermaid 0.1.0 (git+https://github.com/kianenigma/simple-mermaid.git?branch=main)", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "staging-xcm 5.0.0", - "staging-xcm-executor 5.0.0", - "xcm-simulator 5.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "xcm-simulator", ] [[package]] @@ -22434,37 +21331,37 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "cumulus-test-relay-sproof-builder", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "impl-trait-for-tuples", "lazy_static", "log", - "pallet-balances 4.0.0-dev", - "pallet-message-queue 7.0.0-dev", + "pallet-balances", + "pallet-message-queue", "parachains-common", "parity-scale-codec", "paste", - "polkadot-parachain-primitives 1.0.0", - "polkadot-primitives 1.0.0", - "polkadot-runtime-parachains 1.0.0", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-parachains", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-executor", ] [[package]] name = "xcm-executor-integration-tests" version = "1.0.0" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "futures", - "pallet-transaction-payment 4.0.0-dev", + "pallet-transaction-payment", "pallet-xcm", "parity-scale-codec", "polkadot-test-client", @@ -22472,11 +21369,11 @@ dependencies = [ "polkadot-test-service", "sp-consensus", "sp-keyring", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "sp-tracing 10.0.0", - "staging-xcm 1.0.0", - "staging-xcm-executor 1.0.0", + "staging-xcm", + "staging-xcm-executor", ] [[package]] @@ -22486,84 +21383,53 @@ dependencies = [ "Inflector", "proc-macro2", "quote", - "staging-xcm 1.0.0", + "staging-xcm", "syn 2.0.39", "trybuild", ] -[[package]] -name = "xcm-procedural" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e7fcdc7c267d71b2f826d2318fb867e5394320c6db231ec96fa094728c3e061" -dependencies = [ - "Inflector", - "proc-macro2", - "quote", - "syn 2.0.39", -] - [[package]] name = "xcm-simulator" version = "1.0.0" dependencies = [ - "frame-support 4.0.0-dev", + "frame-support", "parity-scale-codec", "paste", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", - "polkadot-runtime-parachains 1.0.0", - "sp-io 23.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-runtime-parachains", + "sp-io", "sp-std 8.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", -] - -[[package]] -name = "xcm-simulator" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e65f7bbd4de89466e17a34c70dbb002a7748d507b6843e994fbed1c53042ee9" -dependencies = [ - "frame-support 26.0.0", - "parity-scale-codec", - "paste", - "polkadot-core-primitives 5.0.0", - "polkadot-parachain-primitives 4.0.0", - "polkadot-runtime-parachains 5.0.0", - "sp-io 28.0.0", - "sp-std 12.0.0", - "staging-xcm 5.0.0", - "staging-xcm-builder 5.0.0", - "staging-xcm-executor 5.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", ] [[package]] name = "xcm-simulator-example" version = "1.0.0" dependencies = [ - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "log", - "pallet-balances 4.0.0-dev", - "pallet-message-queue 7.0.0-dev", + "pallet-balances", + "pallet-message-queue", "pallet-uniques", "pallet-xcm", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", - "polkadot-runtime-parachains 1.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-runtime-parachains", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", "sp-tracing 10.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", - "xcm-simulator 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "xcm-simulator", ] [[package]] @@ -22571,25 +21437,25 @@ name = "xcm-simulator-fuzzer" version = "1.0.0" dependencies = [ "arbitrary", - "frame-support 4.0.0-dev", - "frame-system 4.0.0-dev", + "frame-support", + "frame-system", "honggfuzz", - "pallet-balances 4.0.0-dev", - "pallet-message-queue 7.0.0-dev", + "pallet-balances", + "pallet-message-queue", "pallet-xcm", "parity-scale-codec", - "polkadot-core-primitives 1.0.0", - "polkadot-parachain-primitives 1.0.0", - "polkadot-runtime-parachains 1.0.0", + "polkadot-core-primitives", + "polkadot-parachain-primitives", + "polkadot-runtime-parachains", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-std 8.0.0", - "staging-xcm 1.0.0", - "staging-xcm-builder 1.0.0", - "staging-xcm-executor 1.0.0", - "xcm-simulator 1.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "xcm-simulator", ] [[package]] diff --git a/polkadot/xcm/docs/Cargo.toml b/polkadot/xcm/docs/Cargo.toml index a98ee7717dd84..71018cc834b37 100644 --- a/polkadot/xcm/docs/Cargo.toml +++ b/polkadot/xcm/docs/Cargo.toml @@ -9,19 +9,25 @@ edition.workspace = true [dependencies] # For XCM stuff -xcm = { version = "5.0.0", package = "staging-xcm" } -xcm-executor = { version = "5.0.0", package = "staging-xcm-executor" } -xcm-simulator = "5.0.0" +xcm = { path = "../../xcm", package = "staging-xcm" } +xcm-executor = { path = "../../xcm/xcm-executor", package = "staging-xcm-executor" } +xcm-builder = { path = "../../xcm/xcm-builder", package = "staging-xcm-builder" } +xcm-simulator = { path = "../../xcm/xcm-simulator" } # For building FRAME runtimes frame = { path = "../../../substrate/frame", features = ["experimental", "runtime"] } codec = { package = "parity-scale-codec", version = "3.6.9" } +scale-info = { version = "2.6.0", default-features = false } polkadot-parachain-primitives = { path = "../../../polkadot/parachain" } +polkadot-runtime-parachains = { path = "../../../polkadot/runtime/parachains" } polkadot-primitives = { path = "../../../polkadot/primitives" } sp-runtime = { path = "../../../substrate/primitives/runtime" } sp-std = { path = "../../../substrate/primitives/std" } sp-io = { path = "../../../substrate/primitives/io" } +# Some pallets +pallet-message-queue = { path = "../../../substrate/frame/message-queue" } + # For building docs simple-mermaid = { git = "https://github.com/kianenigma/simple-mermaid.git", branch = "main" } docify = "0.2.6" diff --git a/polkadot/xcm/docs/src/guides/simple_configuration/mock_message_queue.rs b/polkadot/xcm/docs/src/guides/configuration/mock_message_queue.rs similarity index 96% rename from polkadot/xcm/docs/src/guides/simple_configuration/mock_message_queue.rs rename to polkadot/xcm/docs/src/guides/configuration/mock_message_queue.rs index b60ad786b2ffb..7713852928cef 100644 --- a/polkadot/xcm/docs/src/guides/simple_configuration/mock_message_queue.rs +++ b/polkadot/xcm/docs/src/guides/configuration/mock_message_queue.rs @@ -17,9 +17,8 @@ //! Parachain runtime mock. use codec::{Decode, Encode}; -use frame::prelude::*; -use polkadot_parachain::primitives::{ +use polkadot_parachain_primitives::primitives::{ DmpMessageHandler, Id as ParaId, XcmpMessageFormat, XcmpMessageHandler, }; use polkadot_primitives::BlockNumber as RelayBlockNumber; @@ -28,10 +27,13 @@ use sp_runtime::traits::{Get, Hash}; use sp_std::prelude::*; use xcm::{latest::prelude::*, VersionedXcm}; -#[frame_support::pallet] +pub use pallet::*; + +#[frame::pallet] pub mod pallet { use super::*; - use frame_support::pallet_prelude::*; + use frame::prelude::*; + use frame::deps::frame_system; #[pallet::config] pub trait Config: frame_system::Config { @@ -147,8 +149,8 @@ pub mod pallet { impl DmpMessageHandler for Pallet { fn handle_dmp_messages( iter: impl Iterator)>, - limit: xcm::latest::Weight, - ) -> xcm::latest::Weight { + limit: frame::prelude::Weight, + ) -> frame::prelude::Weight { for (_i, (_sent_at, data)) in iter.enumerate() { let id = sp_io::hashing::blake2_256(&data[..]); let maybe_versioned = VersionedXcm::::decode(&mut &data[..]); diff --git a/polkadot/xcm/docs/src/guides/configuration/mod.rs b/polkadot/xcm/docs/src/guides/configuration/mod.rs new file mode 100644 index 0000000000000..f08fd14e64185 --- /dev/null +++ b/polkadot/xcm/docs/src/guides/configuration/mod.rs @@ -0,0 +1,118 @@ +//! # Simple configuration +//! +//! At the end of this guide, you'll know how to setup an XCM executor configuration +//! for a parachain to be able to handle assets using the relaychain's asset. +//! +//! ## Empty configuration +//! +//! We'll first start with an empty XCM configuration like the following: +//! +#![doc = docify::embed!("src/guides/simple_configuration/parachain.rs", XcmConfig)] +#![doc = docify::embed!("src/guides/simple_configuration/parachain.rs", XcmConfigImpl)] +//! +//! There are a lot of configuration items, which might look overwhelming. +//! Not all of them are needed though, and can be left as the unit type, `()`. +//! This usually means we turn off the functionality provided by that configuration item. +//! The ones filled in are the only ones really needed to compile. +//! We'll first take a look at those. +//! +//! ## UniversalLocation +//! +//! The UniversalLocation configuration item is the absolute location of your chain. +//! This means that it's a `Location` with no parents that starts with a `GlobalConsensus` junction. +//! That's all it is, so you need to configure it like so: +//! +#![doc = docify::embed!("src/guides/simple_configuration/parachain.rs", UniversalLocation)] +//! +//! In this example, our chain's universal location is parachain 2222 in Polkadot. +//! +//! ## Weigher +//! +//! We need a way to weigh XCM programs, which means weighing each instruction. +//! A simple way of weighing instructions is to assign them a base weight value to all of them. +//! This works, but it is not very accurate, as different instructions use more resources when being executed. +//! A better approach is to benchmark each instruction to find out the actual weight used by each. +//! +#![doc = docify::embed!("src/guides/simple_configuration/parachain.rs", Weigher)] +//! +//! ## AssetTransactor +//! +//! Our configuration right now doesn't allow any useful programs. +//! Let's add a way to handle assets. +//! This is the `AssetTransactor` +#![doc = docify::embed!("src/guides/simple_configuration/parachain.rs", asset_handling)] + +pub mod parachain; +pub mod relaychain; +pub mod mock_message_queue; + +use sp_runtime::BuildStorage; +use frame::deps::frame_system; +use xcm_simulator::{ + decl_test_network, + decl_test_parachain, + decl_test_relay_chain, + TestExt, +}; + +decl_test_parachain! { + pub struct ParaA { + Runtime = parachain::Runtime, + XcmpMessageHandler = parachain::MessageQueue, + DmpMessageHandler = parachain::MessageQueue, + new_ext = para_ext(), + } +} + +decl_test_relay_chain! { + pub struct Relay { + Runtime = relaychain::Runtime, + RuntimeCall = relaychain::RuntimeCall, + RuntimeEvent = relaychain::RuntimeEvent, + XcmConfig = relaychain::XcmConfig, + MessageQueue = relaychain::MessageQueue, + System = relaychain::System, + new_ext = relay_ext(), + } +} + +decl_test_network! { + pub struct MockNet { + relay_chain = Relay, + parachains = vec![ + (1000, ParaA), + ], + } +} + +fn para_ext() -> sp_io::TestExternalities { + use parachain::{Runtime, System}; + let t = frame_system::GenesisConfig::::default().build_storage().unwrap(); + let mut ext = sp_io::TestExternalities::new(t); + ext.execute_with(|| { + System::set_block_number(1); + }); + ext +} + +pub fn relay_ext() -> sp_io::TestExternalities { + use relaychain::{Runtime, System}; + let t = frame_system::GenesisConfig::::default().build_storage().unwrap(); + + // pallet_balances::GenesisConfig:: { + // balances: vec![ + // (ALICE, INITIAL_BALANCE), + // ], + // } + // .assimilate_storage(&mut t) + // .unwrap(); + + let mut ext = sp_io::TestExternalities::new(t); + ext.execute_with(|| { + System::set_block_number(1); + }); + ext +} + +#[docify::export] +pub struct Something; diff --git a/polkadot/xcm/docs/src/guides/configuration/parachain.rs b/polkadot/xcm/docs/src/guides/configuration/parachain.rs new file mode 100644 index 0000000000000..97cc9c33e6294 --- /dev/null +++ b/polkadot/xcm/docs/src/guides/configuration/parachain.rs @@ -0,0 +1,93 @@ +//! # Mock parachain + +use frame::prelude::*; +use frame::runtime::prelude::*; +use frame::traits::{Nothing, Everything}; +use frame::deps::frame_system; +use xcm_executor::{XcmExecutor, Config}; +use xcm::latest::prelude::*; + +use super::mock_message_queue; + +pub type Block = frame_system::mocking::MockBlock; + +construct_runtime! { + pub struct Runtime { + System: frame_system, + MessageQueue: mock_message_queue, + } +} + +#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +impl frame_system::Config for Runtime { + type Block = Block; +} + +impl mock_message_queue::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type XcmExecutor = XcmExecutor; +} + +#[docify::export(UniversalLocation)] +parameter_types! { + pub UniversalLocation: InteriorMultiLocation = X2( + GlobalConsensus(NetworkId::Polkadot), Parachain(2222) + ); +} + +use xcm_config::XcmConfig; + +mod xcm_config { + use super::*; + + #[docify::export(Weigher)] + mod weigher { + use super::RuntimeCall; + use frame::prelude::*; + use frame::runtime::prelude::*; + use xcm_builder::FixedWeightBounds; + + parameter_types! { + pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); + pub const MaxInstructions: u32 = 100; + } + + pub type Weigher = FixedWeightBounds; + } + + #[docify::export(asset_handling)] + mod assets { + pub type AssetTransactor = ; + } + + #[docify::export] + pub struct XcmConfig; + + #[docify::export(XcmConfigImpl)] + impl Config for XcmConfig { + type RuntimeCall = RuntimeCall; + type XcmSender = (); + type AssetTransactor = assets::AssetTransactor; + type OriginConverter = (); + type IsReserve = (); + type IsTeleporter = (); + type UniversalLocation = UniversalLocation; + type Barrier = (); + type Weigher = weigher::Weigher; + type Trader = (); + type ResponseHandler = (); + type AssetTrap = (); + type AssetLocker = (); + type AssetExchanger = (); + type AssetClaims = (); + type SubscriptionService = (); + type PalletInstancesInfo = (); + type FeeManager = (); + type MaxAssetsIntoHolding = (); + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; + } +} diff --git a/polkadot/xcm/docs/src/guides/configuration/relaychain.rs b/polkadot/xcm/docs/src/guides/configuration/relaychain.rs new file mode 100644 index 0000000000000..73ab40802b5d0 --- /dev/null +++ b/polkadot/xcm/docs/src/guides/configuration/relaychain.rs @@ -0,0 +1,99 @@ +//! Mock relaychain + +use frame::prelude::*; +use frame::runtime::prelude::*; +use frame::traits::{Nothing, Everything, ProcessMessage, ProcessMessageError}; +use frame::deps::frame_system; +use xcm_simulator::{WeightMeter, AggregateMessageOrigin, UmpQueueId}; +use xcm_executor::{XcmExecutor, Config}; +use xcm::latest::prelude::*; +use xcm_builder::{ProcessXcmMessage, FixedWeightBounds}; + +pub type Block = frame_system::mocking::MockBlock; + +construct_runtime! { + pub struct Runtime { + System: frame_system, + MessageQueue: pallet_message_queue, + } +} + +#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +impl frame_system::Config for Runtime { + type Block = Block; +} + +parameter_types! { + /// Amount of weight that can be spent per block to service messages. + pub MessageQueueServiceWeight: frame::prelude::Weight = frame::prelude::Weight::from_parts(1_000_000_000, 1_000_000); + pub const MessageQueueHeapSize: u32 = 65_536; + pub const MessageQueueMaxStale: u32 = 16; +} + +/// Message processor to handle any messages that were enqueued into the `MessageQueue` pallet. +pub struct MessageProcessor; +impl ProcessMessage for MessageProcessor { + type Origin = AggregateMessageOrigin; + + fn process_message( + message: &[u8], + origin: Self::Origin, + meter: &mut WeightMeter, + id: &mut [u8; 32], + ) -> Result { + let para = match origin { + AggregateMessageOrigin::Ump(UmpQueueId::Para(para)) => para, + }; + ProcessXcmMessage::< + Junction, + XcmExecutor, + RuntimeCall, + >::process_message(message, Junction::Parachain(para.into()), meter, id) + } +} + +impl pallet_message_queue::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type Size = u32; + type HeapSize = MessageQueueHeapSize; + type MaxStale = MessageQueueMaxStale; + type ServiceWeight = MessageQueueServiceWeight; + type MessageProcessor = MessageProcessor; + type QueueChangeHandler = (); + type QueuePausedQuery = (); + type WeightInfo = (); +} + +parameter_types! { + pub UniversalLocation: InteriorMultiLocation = X1(GlobalConsensus(NetworkId::ByGenesis([0u8; 32]))); + pub const WeightPerInstruction: frame::prelude::Weight = frame::prelude::Weight::from_parts(1, 1); + pub const MaxInstructions: u32 = 100; +} + +pub struct XcmConfig; +impl Config for XcmConfig { + type RuntimeCall = RuntimeCall; + type XcmSender = (); + type AssetTransactor = (); + type OriginConverter = (); + type IsReserve = (); + type IsTeleporter = (); + type UniversalLocation = UniversalLocation; + type Barrier = (); + type Weigher = FixedWeightBounds; + type Trader = (); + type ResponseHandler = (); + type AssetTrap = (); + type AssetLocker = (); + type AssetExchanger = (); + type AssetClaims = (); + type SubscriptionService = (); + type PalletInstancesInfo = (); + type FeeManager = (); + type MaxAssetsIntoHolding = (); + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; +} diff --git a/polkadot/xcm/docs/src/guides/simple_configuration/mod.rs b/polkadot/xcm/docs/src/guides/simple_configuration/mod.rs deleted file mode 100644 index 808f505f0b665..0000000000000 --- a/polkadot/xcm/docs/src/guides/simple_configuration/mod.rs +++ /dev/null @@ -1,35 +0,0 @@ -//! # Simple configuration -//! -//! At the end of this guide, you'll know how to setup an XCM executor configuration -//! for a parachain only using the relaychain's asset. -//! -#![doc = docify::embed!("src/guides/simple_configuration/mod.rs", Something)] - -pub mod parachain; -pub mod relaychain; -pub mod mock_message_queue; - -use xcm_simulator::{ - decl_test_network, - decl_test_parachain, - decl_test_relay_chain, - TestExt, -}; - -decl_test_parachain! { - pub struct ParaA { - Runtime = parachain::Runtime, - XcmpMessageHandler = parachain::MsgQueue, - DmpMessageHandler = parachain::MsgQueue, - new_ext = para_ext(1), - } -} - -fn para_ext() -> sp_io::TestExternalities { - let mut t = frame_system::GenesisConfig::default().build_storage::().unwrap(); - let mut ext = sp_io::TestExternalities::new(t); - ext -} - -#[docify::export] -pub struct Something; diff --git a/polkadot/xcm/docs/src/guides/simple_configuration/parachain.rs b/polkadot/xcm/docs/src/guides/simple_configuration/parachain.rs deleted file mode 100644 index c12b4a1d2d9f4..0000000000000 --- a/polkadot/xcm/docs/src/guides/simple_configuration/parachain.rs +++ /dev/null @@ -1,29 +0,0 @@ -//! # Mock parachain - -use frame::prelude::*; -use frame::runtime::prelude::*; -use xcm_executor::XcmExecutor; - -use super::mock_message_queue; - -construct_runtime! { - pub struct Runtime { - System: frame_system, - MessageQueue: mock_message_queue, - } -} - -pub type Block = frame_system::mocking::MockBlock; - -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] -impl frame_system::Config for Runtime { - type Block = Block; -} - -impl mock_message_queue::Config for Runtime { - type RuntimeEvent = RuntimeEvent; - type XcmExecutor = XcmExecutor; -} - -// TODO: Implement config trait -pub struct XcmConfig; diff --git a/polkadot/xcm/docs/src/guides/simple_configuration/relaychain.rs b/polkadot/xcm/docs/src/guides/simple_configuration/relaychain.rs deleted file mode 100644 index 1d4675b2090df..0000000000000 --- a/polkadot/xcm/docs/src/guides/simple_configuration/relaychain.rs +++ /dev/null @@ -1 +0,0 @@ -//! Mock relaychain diff --git a/polkadot/xcm/xcm-simulator/example/src/relay_chain.rs b/polkadot/xcm/xcm-simulator/example/src/relay_chain.rs index 20070d192b545..f14cd58596202 100644 --- a/polkadot/xcm/xcm-simulator/example/src/relay_chain.rs +++ b/polkadot/xcm/xcm-simulator/example/src/relay_chain.rs @@ -227,10 +227,6 @@ impl pallet_xcm::Config for Runtime { type AdminOrigin = EnsureRoot; } -parameter_types! { - pub const FirstMessageFactorPercent: u64 = 100; -} - impl origin::Config for Runtime {} type Block = frame_system::mocking::MockBlock; From 7ac4e96e466b1f7652c09cd7f9c1fa8c74b0537b Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Tue, 12 Dec 2023 01:29:53 +0100 Subject: [PATCH 03/37] Move configuration to cookbook instead --- polkadot/xcm/docs/src/cookbook.rs | 5 +++++ polkadot/xcm/docs/src/cookbook/relay_token_transactor.rs | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 polkadot/xcm/docs/src/cookbook/relay_token_transactor.rs diff --git a/polkadot/xcm/docs/src/cookbook.rs b/polkadot/xcm/docs/src/cookbook.rs index 8b137891791fe..37a79bf1b5f14 100644 --- a/polkadot/xcm/docs/src/cookbook.rs +++ b/polkadot/xcm/docs/src/cookbook.rs @@ -1 +1,6 @@ +//! # XCM Cookbook +/// Setting up an [AssetTransactor](xcm_executor::traits::transact_asset::TransactAsset) to handle +/// the relay chain token. +/// Useful for a parachain that only wants to deal with DOT. +pub mod relay_token_transactor; diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor.rs new file mode 100644 index 0000000000000..0a7d599f8ba27 --- /dev/null +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor.rs @@ -0,0 +1,4 @@ +//! # Relay asset transactor +#![doc = docify::embed!("src/cookbook/relay_token_transactor.rs", AssetTransactor)] + +pub type AssetTransactor = From 6556e067ff3fae43a30a4e02619f70c9f45f7c7f Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 14 Dec 2023 01:38:33 +0100 Subject: [PATCH 04/37] Add relay_token_transactor example to cookbook --- Cargo.lock | 32 +++- polkadot/xcm/docs/Cargo.toml | 5 + polkadot/xcm/docs/src/cookbook.rs | 6 - polkadot/xcm/docs/src/cookbook/mod.rs | 7 + .../src/cookbook/relay_token_transactor.rs | 4 - .../cookbook/relay_token_transactor/mod.rs | 37 +++++ .../relay_token_transactor/network.rs | 76 +++++++++ .../relay_token_transactor/parachain/mod.rs | 43 +++++ .../parachain/xcm_config.rs | 147 ++++++++++++++++++ .../relay_token_transactor/relay_chain/mod.rs | 88 +++++++++++ .../relay_chain/xcm_config.rs | 134 ++++++++++++++++ .../cookbook/relay_token_transactor/tests.rs | 86 ++++++++++ .../xcm/docs/src/guides/configuration/mod.rs | 118 -------------- .../src/guides/configuration/parachain.rs | 93 ----------- .../src/guides/configuration/relaychain.rs | 99 ------------ polkadot/xcm/docs/src/guides/mod.rs | 6 +- polkadot/xcm/docs/src/lib.rs | 3 + .../configuration => }/mock_message_queue.rs | 0 18 files changed, 656 insertions(+), 328 deletions(-) delete mode 100644 polkadot/xcm/docs/src/cookbook.rs create mode 100644 polkadot/xcm/docs/src/cookbook/mod.rs delete mode 100644 polkadot/xcm/docs/src/cookbook/relay_token_transactor.rs create mode 100644 polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs create mode 100644 polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs create mode 100644 polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs create mode 100644 polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs create mode 100644 polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs create mode 100644 polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs create mode 100644 polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs delete mode 100644 polkadot/xcm/docs/src/guides/configuration/mod.rs delete mode 100644 polkadot/xcm/docs/src/guides/configuration/parachain.rs delete mode 100644 polkadot/xcm/docs/src/guides/configuration/relaychain.rs rename polkadot/xcm/docs/src/{guides/configuration => }/mock_message_queue.rs (100%) diff --git a/Cargo.lock b/Cargo.lock index 7797933e7e67f..e95f3864d3257 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1361,8 +1361,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93f2635620bf0b9d4576eb7bb9a38a55df78bd1205d26fa994b25911a69f212f" dependencies = [ "bitcoin_hashes", - "rand 0.7.3", - "rand_core 0.5.1", + "rand 0.8.5", + "rand_core 0.6.4", "serde", "unicode-normalization", ] @@ -11399,7 +11399,7 @@ version = "3.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be30eaf4b0a9fba5336683b38de57bb86d179a35862ba6bfcf57625d006bde5b" dependencies = [ - "proc-macro-crate 2.0.0", + "proc-macro-crate 2.0.1", "proc-macro2", "quote", "syn 1.0.109", @@ -19116,6 +19116,27 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" +[[package]] +name = "test-log" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6159ab4116165c99fc88cce31f99fa2c9dbe08d3691cb38da02fc3b45f357d2b" +dependencies = [ + "env_logger 0.10.1", + "test-log-macros", +] + +[[package]] +name = "test-log-macros" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ba277e77219e9eea169e8508942db1bf5d8a41ff2db9b20aab5a5aadc9fa25d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.40", +] + [[package]] name = "test-parachain-adder" version = "1.0.0" @@ -19946,7 +19967,7 @@ checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", "digest 0.10.7", - "rand 0.7.3", + "rand 0.8.5", "static_assertions", ] @@ -21403,7 +21424,9 @@ version = "0.0.1" dependencies = [ "docify", "frame", + "pallet-balances", "pallet-message-queue", + "pallet-xcm", "parity-scale-codec", "polkadot-parachain-primitives", "polkadot-primitives", @@ -21416,6 +21439,7 @@ dependencies = [ "staging-xcm", "staging-xcm-builder", "staging-xcm-executor", + "test-log", "xcm-simulator", ] diff --git a/polkadot/xcm/docs/Cargo.toml b/polkadot/xcm/docs/Cargo.toml index 71018cc834b37..fec9e3c020308 100644 --- a/polkadot/xcm/docs/Cargo.toml +++ b/polkadot/xcm/docs/Cargo.toml @@ -13,6 +13,7 @@ xcm = { path = "../../xcm", package = "staging-xcm" } xcm-executor = { path = "../../xcm/xcm-executor", package = "staging-xcm-executor" } xcm-builder = { path = "../../xcm/xcm-builder", package = "staging-xcm-builder" } xcm-simulator = { path = "../../xcm/xcm-simulator" } +pallet-xcm = { path = "../../xcm/pallet-xcm" } # For building FRAME runtimes frame = { path = "../../../substrate/frame", features = ["experimental", "runtime"] } @@ -27,7 +28,11 @@ sp-io = { path = "../../../substrate/primitives/io" } # Some pallets pallet-message-queue = { path = "../../../substrate/frame/message-queue" } +pallet-balances = { path = "../../../substrate/frame/balances" } # For building docs simple-mermaid = { git = "https://github.com/kianenigma/simple-mermaid.git", branch = "main" } docify = "0.2.6" + +[dev-dependencies] +test-log = "0.2.14" diff --git a/polkadot/xcm/docs/src/cookbook.rs b/polkadot/xcm/docs/src/cookbook.rs deleted file mode 100644 index 37a79bf1b5f14..0000000000000 --- a/polkadot/xcm/docs/src/cookbook.rs +++ /dev/null @@ -1,6 +0,0 @@ -//! # XCM Cookbook - -/// Setting up an [AssetTransactor](xcm_executor::traits::transact_asset::TransactAsset) to handle -/// the relay chain token. -/// Useful for a parachain that only wants to deal with DOT. -pub mod relay_token_transactor; diff --git a/polkadot/xcm/docs/src/cookbook/mod.rs b/polkadot/xcm/docs/src/cookbook/mod.rs new file mode 100644 index 0000000000000..d84d62197766a --- /dev/null +++ b/polkadot/xcm/docs/src/cookbook/mod.rs @@ -0,0 +1,7 @@ +//! # XCM Cookbook +//! +//! A collection of tested examples to do useful things in XCM. + +/// Configuring a parachain that only uses the relay chain token. +/// Useful for a parachain that only wants to deal with DOT. +pub mod relay_token_transactor; diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor.rs deleted file mode 100644 index 0a7d599f8ba27..0000000000000 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor.rs +++ /dev/null @@ -1,4 +0,0 @@ -//! # Relay asset transactor -#![doc = docify::embed!("src/cookbook/relay_token_transactor.rs", AssetTransactor)] - -pub type AssetTransactor = diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs new file mode 100644 index 0000000000000..687142dc4eb3e --- /dev/null +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs @@ -0,0 +1,37 @@ +//! # Relay asset transactor +//! +//! This example shows how to configure a parachain to only deal with the relay chain token. +//! +//! The first step is using the [`xcm_builder::CurrencyAdapter`] to create an `AssetTransactor` that can +//! handle the relay chain token. +//! +#![doc = docify::embed!("src/cookbook/relay_token_transactor/parachain/xcm_config.rs", asset_transactor)] +//! +//! The second step is to configure `IsReserve` to recognize the relay chain as a reserve for its +//! own asset. +//! With this, you'll be able to easily get derivatives from the relay chain by using the xcm pallet's +//! `transfer_assets` extrinsic. +//! +//! The `IsReserve` type takes a type that implements `ContainsPair`. +//! In this case, we want a type that contains the pair `(relay_chain_native_token, relay_chain)`. +//! +#![doc = docify::embed!("src/cookbook/relay_token_transactor/parachain/xcm_config.rs", is_reserve)] +//! +//! With this setup, we are able to do a reserve asset transfer to and from the parachain and relay chain. +//! +#![doc = docify::embed!("src/cookbook/relay_token_transactor/tests.rs", reserve_asset_transfers_work)] +//! +//! For the rest of the code, be sure to check the contents of this module. + +/// The parachain runtime for this example +pub mod parachain; + +/// The relay chain runtime for this example +pub mod relay_chain; + +/// The network for this example +pub mod network; + +/// Tests for this example +#[cfg(test)] +pub mod tests; diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs new file mode 100644 index 0000000000000..6da87576b4a78 --- /dev/null +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs @@ -0,0 +1,76 @@ +//! Mock network + +use frame::deps::frame_system; +use frame::deps::sp_runtime::{BuildStorage, AccountId32}; +use frame::deps::sp_io::TestExternalities; +use xcm_simulator::{decl_test_network, decl_test_parachain, decl_test_relay_chain, TestExt}; + +use super::{parachain, relay_chain}; + +pub const ALICE: AccountId32 = AccountId32::new([0u8; 32]); +pub const BOB: AccountId32 = AccountId32::new([1u8; 32]); +pub const UNITS: u64 = 10_000_000_000; +pub const CENTS: u64 = 100_000_000; +pub const INITIAL_BALANCE: u64 = 1 * UNITS; + +decl_test_parachain! { + pub struct ParaA { + Runtime = parachain::Runtime, + XcmpMessageHandler = parachain::MessageQueue, + DmpMessageHandler = parachain::MessageQueue, + new_ext = para_ext(), + } +} + +decl_test_relay_chain! { + pub struct Relay { + Runtime = relay_chain::Runtime, + RuntimeCall = relay_chain::RuntimeCall, + RuntimeEvent = relay_chain::RuntimeEvent, + XcmConfig = relay_chain::XcmConfig, + MessageQueue = relay_chain::MessageQueue, + System = relay_chain::System, + new_ext = relay_ext(), + } +} + +decl_test_network! { + pub struct MockNet { + relay_chain = Relay, + parachains = vec![ + (2222, ParaA), + ], + } +} + +pub fn para_ext() -> TestExternalities { + use parachain::{MessageQueue, Runtime, System}; + + let t = frame_system::GenesisConfig::::default().build_storage().unwrap(); + let mut ext = frame::deps::sp_io::TestExternalities::new(t); + ext.execute_with(|| { + System::set_block_number(1); + MessageQueue::set_para_id(2222.into()); + }); + ext +} + +pub fn relay_ext() -> TestExternalities { + use relay_chain::{Runtime, System}; + + let mut t = frame_system::GenesisConfig::::default().build_storage().unwrap(); + + pallet_balances::GenesisConfig:: { + balances: vec![ + (ALICE, INITIAL_BALANCE), + ], + } + .assimilate_storage(&mut t) + .unwrap(); + + let mut ext = TestExternalities::new(t); + ext.execute_with(|| { + System::set_block_number(1); + }); + ext +} diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs new file mode 100644 index 0000000000000..7fdcfaabf7b40 --- /dev/null +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs @@ -0,0 +1,43 @@ +//! # Runtime + +use frame::prelude::*; +use frame::runtime::prelude::*; +use frame::deps::frame_system; +use frame::traits::IdentityLookup; +use xcm_executor::XcmExecutor; + +mod xcm_config; +use xcm_config::XcmConfig; +use crate::mock_message_queue; + +pub type Block = frame_system::mocking::MockBlock; +pub type AccountId = frame::deps::sp_runtime::AccountId32; +pub type Balance = u64; + +construct_runtime! { + pub struct Runtime { + System: frame_system, + MessageQueue: mock_message_queue, + Balances: pallet_balances, + XcmPallet: pallet_xcm, + } +} + +#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +impl frame_system::Config for Runtime { + type Block = Block; + type AccountId = AccountId; + type Lookup = IdentityLookup; + type AccountData = pallet_balances::AccountData; +} + +impl mock_message_queue::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type XcmExecutor = XcmExecutor; +} + +#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)] +impl pallet_balances::Config for Runtime { + type Balance = Balance; + type AccountStore = System; +} diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs new file mode 100644 index 0000000000000..ef5b543f87316 --- /dev/null +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs @@ -0,0 +1,147 @@ +//! # XCM Configuration + +use frame::runtime::prelude::*; +use frame::traits::{Nothing, Everything}; +use frame::deps::frame_system; +use xcm_builder::{ + IsConcrete, CurrencyAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, + EnsureXcmOrigin, SignedToAccountId32, AccountId32Aliases, +}; +use xcm::v3::prelude::*; +use xcm_executor::XcmExecutor; + +use super::{ + Runtime, Balances, AccountId, RuntimeCall, RuntimeOrigin, RuntimeEvent, MessageQueue, +}; + +parameter_types! { + pub RelayLocation: MultiLocation = MultiLocation::parent(); + pub ThisNetwork: NetworkId = NetworkId::Polkadot; +} + +pub type LocationToAccountId = ( + HashedDescription>, + AccountId32Aliases, +); + +#[docify::export] +mod asset_transactor { + use super::*; + + /// AssetTransactor for handling the relay chain token + pub type CurrencyTransactor = CurrencyAdapter< + // Use this Currency implementation + Balances, + // Use this transactor for dealing with the relay chain token + IsConcrete, + // How to convert an XCM MultiLocation into a local account id + LocationToAccountId, + // The account id type, needed because Currency is generic over it + AccountId, + // Not tracking teleports + (), + >; + + /// All asset transactors, in this case only one + pub type AssetTransactor = CurrencyTransactor; +} + +#[docify::export] +mod is_reserve { + use super::*; + + parameter_types! { + pub RelayTokenForRelay: (MultiAssetFilter, MultiLocation) = + (Wild(AllOf { id: Concrete(Parent.into()), fun: WildFungible }), Parent.into()); + } + + /// Put it all together + pub type IsReserve = xcm_builder::Case; +} + +mod weigher { + use super::*; + use xcm_builder::FixedWeightBounds; + + parameter_types! { + pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); + pub const MaxInstructions: u32 = 100; + } + + pub type Weigher = FixedWeightBounds; +} + +parameter_types! { + pub UniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(NetworkId::Polkadot), Parachain(2222)); +} + +pub struct XcmConfig; +impl xcm_executor::Config for XcmConfig { + type RuntimeCall = RuntimeCall; + type XcmSender = (); + type AssetTransactor = asset_transactor::AssetTransactor; + type OriginConverter = (); + type IsReserve = is_reserve::IsReserve; + type IsTeleporter = (); + type UniversalLocation = UniversalLocation; + // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a production chain + type Barrier = xcm_builder::AllowUnpaidExecutionFrom; + type Weigher = weigher::Weigher; + type Trader = (); + type ResponseHandler = (); + type AssetTrap = (); + type AssetLocker = (); + type AssetExchanger = (); + type AssetClaims = (); + type SubscriptionService = (); + type PalletInstancesInfo = (); + type FeeManager = (); + type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; +} + +pub type LocalOriginToLocation = SignedToAccountId32; + +impl pallet_xcm::Config for Runtime { + // We turn off sending for these tests + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = super::super::network::ParachainXcmRouter; // Provided by xcm-simulator + // Anyone can execute XCM programs + type ExecuteXcmOrigin = EnsureXcmOrigin; + // We execute any type of program + type XcmExecuteFilter = Everything; + // How we execute programs + type XcmExecutor = XcmExecutor; + // We don't allow teleports + type XcmTeleportFilter = Nothing; + // We allow all reserve transfers + type XcmReserveTransferFilter = Everything; + // Same weigher executor uses to weigh XCM programs + type Weigher = weigher::Weigher; + // Same universal location + type UniversalLocation = UniversalLocation; + // No version discovery needed + const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 0; + type AdvertisedXcmVersion = frame::traits::ConstU32<3>; + type AdminOrigin = frame_system::EnsureRoot; + // No locking + type TrustedLockers = (); + type MaxLockers = frame::traits::ConstU32<0>; + type MaxRemoteLockConsumers = frame::traits::ConstU32<0>; + type RemoteLockConsumerIdentifier = (); + // How to turn locations into accounts + type SovereignAccountOf = LocationToAccountId; + // A currency to pay for things and its matcher, we are using the relay token + type Currency = Balances; + type CurrencyMatcher = IsConcrete; + // Pallet benchmarks, no need for this example + type WeightInfo = pallet_xcm::TestWeightInfo; + // Runtime types + type RuntimeOrigin = RuntimeOrigin; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; +} diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs new file mode 100644 index 0000000000000..f64c9dfca6eb2 --- /dev/null +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs @@ -0,0 +1,88 @@ +//! Relay chain runtime mock. + +use frame::prelude::*; +use frame::runtime::prelude::*; +use frame::deps::{ + sp_runtime::AccountId32, + frame_support::weights::WeightMeter, +}; +use frame::traits::{IdentityLookup, ProcessMessage, ProcessMessageError}; +use polkadot_runtime_parachains::{ + inclusion::{AggregateMessageOrigin, UmpQueueId}, +}; +use xcm::v3::prelude::*; + +mod xcm_config; +use xcm_config::XcmConfig; + +pub type AccountId = AccountId32; +pub type Balance = u64; + +parameter_types! { + pub const BlockHashCount: u64 = 250; +} + +#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +impl frame_system::Config for Runtime { + type AccountId = AccountId; + type Lookup = IdentityLookup; + type Block = Block; + type AccountData = pallet_balances::AccountData; +} + +#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)] +impl pallet_balances::Config for Runtime { + type AccountStore = System; +} + +type Block = frame_system::mocking::MockBlock; + +parameter_types! { + /// Amount of weight that can be spent per block to service messages. + pub MessageQueueServiceWeight: Weight = Weight::from_parts(1_000_000_000, 1_000_000); + pub const MessageQueueHeapSize: u32 = 65_536; + pub const MessageQueueMaxStale: u32 = 16; +} + +/// Message processor to handle any messages that were enqueued into the `MessageQueue` pallet. +pub struct MessageProcessor; +impl ProcessMessage for MessageProcessor { + type Origin = AggregateMessageOrigin; + + fn process_message( + message: &[u8], + origin: Self::Origin, + meter: &mut WeightMeter, + id: &mut [u8; 32], + ) -> Result { + let para = match origin { + AggregateMessageOrigin::Ump(UmpQueueId::Para(para)) => para, + }; + xcm_builder::ProcessXcmMessage::< + Junction, + xcm_executor::XcmExecutor, + RuntimeCall, + >::process_message(message, Junction::Parachain(para.into()), meter, id) + } +} + +impl pallet_message_queue::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type Size = u32; + type HeapSize = MessageQueueHeapSize; + type MaxStale = MessageQueueMaxStale; + type ServiceWeight = MessageQueueServiceWeight; + type MessageProcessor = MessageProcessor; + type QueueChangeHandler = (); + type QueuePausedQuery = (); + type WeightInfo = (); +} + +construct_runtime! { + pub struct Runtime { + System: frame_system, + Balances: pallet_balances, + MessageQueue: pallet_message_queue, + XcmPallet: pallet_xcm, + } +} diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs new file mode 100644 index 0000000000000..7d93450abff60 --- /dev/null +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs @@ -0,0 +1,134 @@ +//! Relay chain XCM configuration + +use frame::runtime::prelude::*; +use frame::traits::{Nothing, Everything}; +use frame::deps::frame_system; +use xcm_builder::{ + IsConcrete, CurrencyAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, + EnsureXcmOrigin, SignedToAccountId32, AccountId32Aliases, +}; +use xcm::v3::prelude::*; +use xcm_executor::XcmExecutor; + +use super::{ + Runtime, Balances, AccountId, RuntimeCall, RuntimeOrigin, RuntimeEvent, +}; + +parameter_types! { + pub HereLocation: MultiLocation = MultiLocation::here(); + pub ThisNetwork: NetworkId = NetworkId::Polkadot; +} + +pub type LocationToAccountId = ( + HashedDescription>, + AccountId32Aliases, +); + +mod asset_transactor { + use super::*; + + /// AssetTransactor for handling the relay chain token + pub type CurrencyTransactor = CurrencyAdapter< + // Use this Currency implementation + Balances, + // Use this transactor for dealing with the native token + IsConcrete, + // How to convert an XCM MultiLocation into a local account id + LocationToAccountId, + // The account id type, needed because Currency is generic over it + AccountId, + // Not tracking teleports + (), + >; + + /// All asset transactors, in this case only one + pub type AssetTransactor = CurrencyTransactor; +} + +mod weigher { + use super::*; + use xcm_builder::FixedWeightBounds; + + parameter_types! { + pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); + pub const MaxInstructions: u32 = 100; + } + + pub type Weigher = FixedWeightBounds; +} + +parameter_types! { + pub UniversalLocation: InteriorMultiLocation = X1(GlobalConsensus(NetworkId::Polkadot)); +} + +pub struct XcmConfig; +impl xcm_executor::Config for XcmConfig { + type RuntimeCall = RuntimeCall; + type XcmSender = (); + type AssetTransactor = asset_transactor::AssetTransactor; + type OriginConverter = (); + // We don't need to recognize anyone as a reserve + type IsReserve = (); + type IsTeleporter = (); + type UniversalLocation = UniversalLocation; + // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a production chain + type Barrier = xcm_builder::AllowUnpaidExecutionFrom; + type Weigher = weigher::Weigher; + type Trader = (); + type ResponseHandler = (); + type AssetTrap = (); + type AssetLocker = (); + type AssetExchanger = (); + type AssetClaims = (); + type SubscriptionService = (); + type PalletInstancesInfo = (); + type FeeManager = (); + type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; +} + +pub type LocalOriginToLocation = SignedToAccountId32; + +impl pallet_xcm::Config for Runtime { + // No one can call `send` + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = super::super::network::RelayChainXcmRouter; // Provided by xcm-simulator + // Anyone can execute XCM programs + type ExecuteXcmOrigin = EnsureXcmOrigin; + // We execute any type of program + type XcmExecuteFilter = Everything; + // How we execute programs + type XcmExecutor = XcmExecutor; + // We don't allow teleports + type XcmTeleportFilter = Nothing; + // We allow all reserve transfers + type XcmReserveTransferFilter = Everything; + // Same weigher executor uses to weigh XCM programs + type Weigher = weigher::Weigher; + // Same universal location + type UniversalLocation = UniversalLocation; + // No version discovery needed + const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 0; + type AdvertisedXcmVersion = frame::traits::ConstU32<3>; + type AdminOrigin = frame_system::EnsureRoot; + // No locking + type TrustedLockers = (); + type MaxLockers = frame::traits::ConstU32<0>; + type MaxRemoteLockConsumers = frame::traits::ConstU32<0>; + type RemoteLockConsumerIdentifier = (); + // How to turn locations into accounts + type SovereignAccountOf = LocationToAccountId; + // A currency to pay for things and its matcher, we are using the relay token + type Currency = Balances; + type CurrencyMatcher = IsConcrete; + // Pallet benchmarks, no need for this example + type WeightInfo = pallet_xcm::TestWeightInfo; + // Runtime types + type RuntimeOrigin = RuntimeOrigin; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; +} diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs new file mode 100644 index 0000000000000..241a74ade41f0 --- /dev/null +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs @@ -0,0 +1,86 @@ +use test_log::test; +use frame::testing_prelude::*; +use xcm::prelude::*; +use xcm_simulator::TestExt; + +use super::{ + network::{MockNet, Relay, ParaA, ALICE, BOB, CENTS, INITIAL_BALANCE}, + relay_chain, + parachain, +}; + +// Scenario: +// ALICE on the relay chain holds some relay chain token. +// She reserve transfers it to BOB's account on the parachain. +// BOB ends up having some relay chain token derivatives on the parachain. +// +// NOTE: We could've used both ALICE on both chains because it's a different account, +// but using ALICE and BOB makes it clearer. +#[docify::export] +#[test] +fn reserve_asset_transfers_work() { + MockNet::reset(); + + // ALICE starts with INITIAL_BALANCE on the relay chain + Relay::execute_with(|| { + assert_eq!(relay_chain::Balances::free_balance(&ALICE), INITIAL_BALANCE); + }); + + // BOB starts with 0 on the parachain + ParaA::execute_with(|| { + assert_eq!(parachain::Balances::free_balance(&BOB), 0); + }); + + // ALICE on the relay chain sends some relay token to BOB on the parachain + // Because of how the network is set up, us sending the native token and + // the parachain recognizing the relay as the reserve for its token, `transfer_assets` + // determines a reserve transfer should be done with the local chain as the reserve. + Relay::execute_with(|| { + let destination: MultiLocation = Parachain(2222).into(); + let beneficiary: MultiLocation = AccountId32 { id: BOB.clone().into(), network: Some(NetworkId::Polkadot) }.into(); + // We need to use `u128` here for the conversion to work properly. + // If we don't specify anything, it will be a `u64`, which the conversion + // will turn into a non fungible token instead of a fungible one. + let assets: MultiAssets = (Here, 50u128 * CENTS as u128).into(); + assert_ok!(relay_chain::XcmPallet::transfer_assets( + relay_chain::RuntimeOrigin::signed(ALICE), + Box::new(VersionedMultiLocation::V3(destination)), + Box::new(VersionedMultiLocation::V3(beneficiary)), + Box::new(VersionedMultiAssets::V3(assets)), + 0, + WeightLimit::Unlimited, + )); + + // ALICE now has less relay chain token + assert_eq!(relay_chain::Balances::free_balance(&ALICE), INITIAL_BALANCE - 50 * CENTS); + }); + + // On the parachain, BOB has received the derivative tokens + ParaA::execute_with(|| { + assert_eq!(parachain::Balances::free_balance(&BOB), 50 * CENTS); + + // BOB gives back half to ALICE in the relay chain + let destination: MultiLocation = Parent.into(); + let beneficiary: MultiLocation = AccountId32 { id: ALICE.clone().into(), network: Some(NetworkId::Polkadot) }.into(); + // We specify `Parent` because we are referencing the relay chain token. + // This chain doesn't have a token of its own, so we always refer to this token, + // and we do so by the location of the relay chain. + let assets: MultiAssets = (Parent, 25u128 * CENTS as u128).into(); + assert_ok!(parachain::XcmPallet::transfer_assets( + parachain::RuntimeOrigin::signed(BOB), + Box::new(VersionedMultiLocation::V3(destination)), + Box::new(VersionedMultiLocation::V3(beneficiary)), + Box::new(VersionedMultiAssets::V3(assets)), + 0, + WeightLimit::Unlimited, + )); + + // BOB's balance decreased + assert_eq!(parachain::Balances::free_balance(&BOB), 25 * CENTS); + }); + + // ALICE's balance increases + Relay::execute_with(|| { + assert_eq!(relay_chain::Balances::free_balance(&ALICE), INITIAL_BALANCE - 50 * CENTS + 25 * CENTS); + }); +} diff --git a/polkadot/xcm/docs/src/guides/configuration/mod.rs b/polkadot/xcm/docs/src/guides/configuration/mod.rs deleted file mode 100644 index f08fd14e64185..0000000000000 --- a/polkadot/xcm/docs/src/guides/configuration/mod.rs +++ /dev/null @@ -1,118 +0,0 @@ -//! # Simple configuration -//! -//! At the end of this guide, you'll know how to setup an XCM executor configuration -//! for a parachain to be able to handle assets using the relaychain's asset. -//! -//! ## Empty configuration -//! -//! We'll first start with an empty XCM configuration like the following: -//! -#![doc = docify::embed!("src/guides/simple_configuration/parachain.rs", XcmConfig)] -#![doc = docify::embed!("src/guides/simple_configuration/parachain.rs", XcmConfigImpl)] -//! -//! There are a lot of configuration items, which might look overwhelming. -//! Not all of them are needed though, and can be left as the unit type, `()`. -//! This usually means we turn off the functionality provided by that configuration item. -//! The ones filled in are the only ones really needed to compile. -//! We'll first take a look at those. -//! -//! ## UniversalLocation -//! -//! The UniversalLocation configuration item is the absolute location of your chain. -//! This means that it's a `Location` with no parents that starts with a `GlobalConsensus` junction. -//! That's all it is, so you need to configure it like so: -//! -#![doc = docify::embed!("src/guides/simple_configuration/parachain.rs", UniversalLocation)] -//! -//! In this example, our chain's universal location is parachain 2222 in Polkadot. -//! -//! ## Weigher -//! -//! We need a way to weigh XCM programs, which means weighing each instruction. -//! A simple way of weighing instructions is to assign them a base weight value to all of them. -//! This works, but it is not very accurate, as different instructions use more resources when being executed. -//! A better approach is to benchmark each instruction to find out the actual weight used by each. -//! -#![doc = docify::embed!("src/guides/simple_configuration/parachain.rs", Weigher)] -//! -//! ## AssetTransactor -//! -//! Our configuration right now doesn't allow any useful programs. -//! Let's add a way to handle assets. -//! This is the `AssetTransactor` -#![doc = docify::embed!("src/guides/simple_configuration/parachain.rs", asset_handling)] - -pub mod parachain; -pub mod relaychain; -pub mod mock_message_queue; - -use sp_runtime::BuildStorage; -use frame::deps::frame_system; -use xcm_simulator::{ - decl_test_network, - decl_test_parachain, - decl_test_relay_chain, - TestExt, -}; - -decl_test_parachain! { - pub struct ParaA { - Runtime = parachain::Runtime, - XcmpMessageHandler = parachain::MessageQueue, - DmpMessageHandler = parachain::MessageQueue, - new_ext = para_ext(), - } -} - -decl_test_relay_chain! { - pub struct Relay { - Runtime = relaychain::Runtime, - RuntimeCall = relaychain::RuntimeCall, - RuntimeEvent = relaychain::RuntimeEvent, - XcmConfig = relaychain::XcmConfig, - MessageQueue = relaychain::MessageQueue, - System = relaychain::System, - new_ext = relay_ext(), - } -} - -decl_test_network! { - pub struct MockNet { - relay_chain = Relay, - parachains = vec![ - (1000, ParaA), - ], - } -} - -fn para_ext() -> sp_io::TestExternalities { - use parachain::{Runtime, System}; - let t = frame_system::GenesisConfig::::default().build_storage().unwrap(); - let mut ext = sp_io::TestExternalities::new(t); - ext.execute_with(|| { - System::set_block_number(1); - }); - ext -} - -pub fn relay_ext() -> sp_io::TestExternalities { - use relaychain::{Runtime, System}; - let t = frame_system::GenesisConfig::::default().build_storage().unwrap(); - - // pallet_balances::GenesisConfig:: { - // balances: vec![ - // (ALICE, INITIAL_BALANCE), - // ], - // } - // .assimilate_storage(&mut t) - // .unwrap(); - - let mut ext = sp_io::TestExternalities::new(t); - ext.execute_with(|| { - System::set_block_number(1); - }); - ext -} - -#[docify::export] -pub struct Something; diff --git a/polkadot/xcm/docs/src/guides/configuration/parachain.rs b/polkadot/xcm/docs/src/guides/configuration/parachain.rs deleted file mode 100644 index 97cc9c33e6294..0000000000000 --- a/polkadot/xcm/docs/src/guides/configuration/parachain.rs +++ /dev/null @@ -1,93 +0,0 @@ -//! # Mock parachain - -use frame::prelude::*; -use frame::runtime::prelude::*; -use frame::traits::{Nothing, Everything}; -use frame::deps::frame_system; -use xcm_executor::{XcmExecutor, Config}; -use xcm::latest::prelude::*; - -use super::mock_message_queue; - -pub type Block = frame_system::mocking::MockBlock; - -construct_runtime! { - pub struct Runtime { - System: frame_system, - MessageQueue: mock_message_queue, - } -} - -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] -impl frame_system::Config for Runtime { - type Block = Block; -} - -impl mock_message_queue::Config for Runtime { - type RuntimeEvent = RuntimeEvent; - type XcmExecutor = XcmExecutor; -} - -#[docify::export(UniversalLocation)] -parameter_types! { - pub UniversalLocation: InteriorMultiLocation = X2( - GlobalConsensus(NetworkId::Polkadot), Parachain(2222) - ); -} - -use xcm_config::XcmConfig; - -mod xcm_config { - use super::*; - - #[docify::export(Weigher)] - mod weigher { - use super::RuntimeCall; - use frame::prelude::*; - use frame::runtime::prelude::*; - use xcm_builder::FixedWeightBounds; - - parameter_types! { - pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); - pub const MaxInstructions: u32 = 100; - } - - pub type Weigher = FixedWeightBounds; - } - - #[docify::export(asset_handling)] - mod assets { - pub type AssetTransactor = ; - } - - #[docify::export] - pub struct XcmConfig; - - #[docify::export(XcmConfigImpl)] - impl Config for XcmConfig { - type RuntimeCall = RuntimeCall; - type XcmSender = (); - type AssetTransactor = assets::AssetTransactor; - type OriginConverter = (); - type IsReserve = (); - type IsTeleporter = (); - type UniversalLocation = UniversalLocation; - type Barrier = (); - type Weigher = weigher::Weigher; - type Trader = (); - type ResponseHandler = (); - type AssetTrap = (); - type AssetLocker = (); - type AssetExchanger = (); - type AssetClaims = (); - type SubscriptionService = (); - type PalletInstancesInfo = (); - type FeeManager = (); - type MaxAssetsIntoHolding = (); - type MessageExporter = (); - type UniversalAliases = Nothing; - type CallDispatcher = RuntimeCall; - type SafeCallFilter = Everything; - type Aliasers = Nothing; - } -} diff --git a/polkadot/xcm/docs/src/guides/configuration/relaychain.rs b/polkadot/xcm/docs/src/guides/configuration/relaychain.rs deleted file mode 100644 index 73ab40802b5d0..0000000000000 --- a/polkadot/xcm/docs/src/guides/configuration/relaychain.rs +++ /dev/null @@ -1,99 +0,0 @@ -//! Mock relaychain - -use frame::prelude::*; -use frame::runtime::prelude::*; -use frame::traits::{Nothing, Everything, ProcessMessage, ProcessMessageError}; -use frame::deps::frame_system; -use xcm_simulator::{WeightMeter, AggregateMessageOrigin, UmpQueueId}; -use xcm_executor::{XcmExecutor, Config}; -use xcm::latest::prelude::*; -use xcm_builder::{ProcessXcmMessage, FixedWeightBounds}; - -pub type Block = frame_system::mocking::MockBlock; - -construct_runtime! { - pub struct Runtime { - System: frame_system, - MessageQueue: pallet_message_queue, - } -} - -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] -impl frame_system::Config for Runtime { - type Block = Block; -} - -parameter_types! { - /// Amount of weight that can be spent per block to service messages. - pub MessageQueueServiceWeight: frame::prelude::Weight = frame::prelude::Weight::from_parts(1_000_000_000, 1_000_000); - pub const MessageQueueHeapSize: u32 = 65_536; - pub const MessageQueueMaxStale: u32 = 16; -} - -/// Message processor to handle any messages that were enqueued into the `MessageQueue` pallet. -pub struct MessageProcessor; -impl ProcessMessage for MessageProcessor { - type Origin = AggregateMessageOrigin; - - fn process_message( - message: &[u8], - origin: Self::Origin, - meter: &mut WeightMeter, - id: &mut [u8; 32], - ) -> Result { - let para = match origin { - AggregateMessageOrigin::Ump(UmpQueueId::Para(para)) => para, - }; - ProcessXcmMessage::< - Junction, - XcmExecutor, - RuntimeCall, - >::process_message(message, Junction::Parachain(para.into()), meter, id) - } -} - -impl pallet_message_queue::Config for Runtime { - type RuntimeEvent = RuntimeEvent; - type Size = u32; - type HeapSize = MessageQueueHeapSize; - type MaxStale = MessageQueueMaxStale; - type ServiceWeight = MessageQueueServiceWeight; - type MessageProcessor = MessageProcessor; - type QueueChangeHandler = (); - type QueuePausedQuery = (); - type WeightInfo = (); -} - -parameter_types! { - pub UniversalLocation: InteriorMultiLocation = X1(GlobalConsensus(NetworkId::ByGenesis([0u8; 32]))); - pub const WeightPerInstruction: frame::prelude::Weight = frame::prelude::Weight::from_parts(1, 1); - pub const MaxInstructions: u32 = 100; -} - -pub struct XcmConfig; -impl Config for XcmConfig { - type RuntimeCall = RuntimeCall; - type XcmSender = (); - type AssetTransactor = (); - type OriginConverter = (); - type IsReserve = (); - type IsTeleporter = (); - type UniversalLocation = UniversalLocation; - type Barrier = (); - type Weigher = FixedWeightBounds; - type Trader = (); - type ResponseHandler = (); - type AssetTrap = (); - type AssetLocker = (); - type AssetExchanger = (); - type AssetClaims = (); - type SubscriptionService = (); - type PalletInstancesInfo = (); - type FeeManager = (); - type MaxAssetsIntoHolding = (); - type MessageExporter = (); - type UniversalAliases = Nothing; - type CallDispatcher = RuntimeCall; - type SafeCallFilter = Everything; - type Aliasers = Nothing; -} diff --git a/polkadot/xcm/docs/src/guides/mod.rs b/polkadot/xcm/docs/src/guides/mod.rs index 41cb5254ea311..369c05ed698f3 100644 --- a/polkadot/xcm/docs/src/guides/mod.rs +++ b/polkadot/xcm/docs/src/guides/mod.rs @@ -1,7 +1,5 @@ //! # XCM Guides //! //! These guides aim to get you up and running with XCM. - -/// Guide on configuring the XCM executor in the most simple way possible for -/// using the relaychain's token for fee payment. -pub mod simple_configuration; +//! +//! Coming soon. diff --git a/polkadot/xcm/docs/src/lib.rs b/polkadot/xcm/docs/src/lib.rs index 57988574d0989..e8ad961d70569 100644 --- a/polkadot/xcm/docs/src/lib.rs +++ b/polkadot/xcm/docs/src/lib.rs @@ -38,3 +38,6 @@ pub mod cookbook; /// Glossary pub mod glossary; + +/// Mock message queue for some examples +pub mod mock_message_queue; diff --git a/polkadot/xcm/docs/src/guides/configuration/mock_message_queue.rs b/polkadot/xcm/docs/src/mock_message_queue.rs similarity index 100% rename from polkadot/xcm/docs/src/guides/configuration/mock_message_queue.rs rename to polkadot/xcm/docs/src/mock_message_queue.rs From ddb2ea87f9b2391a7d86a0546c34f5fb549a3701 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 14 Dec 2023 01:40:11 +0100 Subject: [PATCH 05/37] Put back what got deleted from xcm-simulator-example --- polkadot/xcm/xcm-simulator/example/src/relay_chain.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/polkadot/xcm/xcm-simulator/example/src/relay_chain.rs b/polkadot/xcm/xcm-simulator/example/src/relay_chain.rs index f14cd58596202..20070d192b545 100644 --- a/polkadot/xcm/xcm-simulator/example/src/relay_chain.rs +++ b/polkadot/xcm/xcm-simulator/example/src/relay_chain.rs @@ -227,6 +227,10 @@ impl pallet_xcm::Config for Runtime { type AdminOrigin = EnsureRoot; } +parameter_types! { + pub const FirstMessageFactorPercent: u64 = 100; +} + impl origin::Config for Runtime {} type Block = frame_system::mocking::MockBlock; From 9d7d8df3cca89ffd764a74137a35779546e317cf Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 14 Dec 2023 01:43:03 +0100 Subject: [PATCH 06/37] Publish and license --- polkadot/xcm/docs/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/Cargo.toml b/polkadot/xcm/docs/Cargo.toml index fec9e3c020308..59e18c0e81b9e 100644 --- a/polkadot/xcm/docs/Cargo.toml +++ b/polkadot/xcm/docs/Cargo.toml @@ -2,10 +2,11 @@ name = "xcm-docs" description = "Documentation and guides for XCM" version = "0.0.1" -license.workspace = true +license = "GPL-3.0-or-later WITH Classpath-exception-2.0" repository.workspace = true authors.workspace = true edition.workspace = true +publish = false [dependencies] # For XCM stuff From 51aec90cbac6a1e8ecabada0a182bb19d731e78e Mon Sep 17 00:00:00 2001 From: command-bot <> Date: Thu, 14 Dec 2023 00:47:48 +0000 Subject: [PATCH 07/37] ".git/.scripts/commands/fmt/fmt.sh" --- .../cookbook/relay_token_transactor/mod.rs | 14 +- .../relay_token_transactor/network.rs | 48 ++- .../relay_token_transactor/parachain/mod.rs | 31 +- .../parachain/xcm_config.rs | 195 ++++++------ .../relay_token_transactor/relay_chain/mod.rs | 19 +- .../relay_chain/xcm_config.rs | 179 +++++------ .../cookbook/relay_token_transactor/tests.rs | 124 ++++---- polkadot/xcm/docs/src/fundamentals.rs | 57 ++-- polkadot/xcm/docs/src/glossary.rs | 91 +++--- polkadot/xcm/docs/src/lib.rs | 3 +- polkadot/xcm/docs/src/mock_message_queue.rs | 278 +++++++++--------- 11 files changed, 522 insertions(+), 517 deletions(-) diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs index 687142dc4eb3e..773700381c844 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs @@ -2,23 +2,21 @@ //! //! This example shows how to configure a parachain to only deal with the relay chain token. //! -//! The first step is using the [`xcm_builder::CurrencyAdapter`] to create an `AssetTransactor` that can -//! handle the relay chain token. -//! +//! The first step is using the [`xcm_builder::CurrencyAdapter`] to create an `AssetTransactor` that +//! can handle the relay chain token. #![doc = docify::embed!("src/cookbook/relay_token_transactor/parachain/xcm_config.rs", asset_transactor)] //! //! The second step is to configure `IsReserve` to recognize the relay chain as a reserve for its //! own asset. -//! With this, you'll be able to easily get derivatives from the relay chain by using the xcm pallet's -//! `transfer_assets` extrinsic. +//! With this, you'll be able to easily get derivatives from the relay chain by using the xcm +//! pallet's `transfer_assets` extrinsic. //! //! The `IsReserve` type takes a type that implements `ContainsPair`. //! In this case, we want a type that contains the pair `(relay_chain_native_token, relay_chain)`. -//! #![doc = docify::embed!("src/cookbook/relay_token_transactor/parachain/xcm_config.rs", is_reserve)] //! -//! With this setup, we are able to do a reserve asset transfer to and from the parachain and relay chain. -//! +//! With this setup, we are able to do a reserve asset transfer to and from the parachain and relay +//! chain. #![doc = docify::embed!("src/cookbook/relay_token_transactor/tests.rs", reserve_asset_transfers_work)] //! //! For the rest of the code, be sure to check the contents of this module. diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs index 6da87576b4a78..5eb0b8160f624 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs @@ -1,8 +1,10 @@ //! Mock network -use frame::deps::frame_system; -use frame::deps::sp_runtime::{BuildStorage, AccountId32}; -use frame::deps::sp_io::TestExternalities; +use frame::deps::{ + frame_system, + sp_io::TestExternalities, + sp_runtime::{AccountId32, BuildStorage}, +}; use xcm_simulator::{decl_test_network, decl_test_parachain, decl_test_relay_chain, TestExt}; use super::{parachain, relay_chain}; @@ -44,33 +46,29 @@ decl_test_network! { } pub fn para_ext() -> TestExternalities { - use parachain::{MessageQueue, Runtime, System}; + use parachain::{MessageQueue, Runtime, System}; - let t = frame_system::GenesisConfig::::default().build_storage().unwrap(); - let mut ext = frame::deps::sp_io::TestExternalities::new(t); - ext.execute_with(|| { - System::set_block_number(1); - MessageQueue::set_para_id(2222.into()); - }); - ext + let t = frame_system::GenesisConfig::::default().build_storage().unwrap(); + let mut ext = frame::deps::sp_io::TestExternalities::new(t); + ext.execute_with(|| { + System::set_block_number(1); + MessageQueue::set_para_id(2222.into()); + }); + ext } pub fn relay_ext() -> TestExternalities { - use relay_chain::{Runtime, System}; + use relay_chain::{Runtime, System}; - let mut t = frame_system::GenesisConfig::::default().build_storage().unwrap(); + let mut t = frame_system::GenesisConfig::::default().build_storage().unwrap(); - pallet_balances::GenesisConfig:: { - balances: vec![ - (ALICE, INITIAL_BALANCE), - ], - } - .assimilate_storage(&mut t) - .unwrap(); + pallet_balances::GenesisConfig:: { balances: vec![(ALICE, INITIAL_BALANCE)] } + .assimilate_storage(&mut t) + .unwrap(); - let mut ext = TestExternalities::new(t); - ext.execute_with(|| { - System::set_block_number(1); - }); - ext + let mut ext = TestExternalities::new(t); + ext.execute_with(|| { + System::set_block_number(1); + }); + ext } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs index 7fdcfaabf7b40..2a487588c758d 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs @@ -1,34 +1,31 @@ //! # Runtime -use frame::prelude::*; -use frame::runtime::prelude::*; -use frame::deps::frame_system; -use frame::traits::IdentityLookup; +use frame::{deps::frame_system, prelude::*, runtime::prelude::*, traits::IdentityLookup}; use xcm_executor::XcmExecutor; mod xcm_config; -use xcm_config::XcmConfig; use crate::mock_message_queue; +use xcm_config::XcmConfig; pub type Block = frame_system::mocking::MockBlock; pub type AccountId = frame::deps::sp_runtime::AccountId32; pub type Balance = u64; construct_runtime! { - pub struct Runtime { - System: frame_system, - MessageQueue: mock_message_queue, - Balances: pallet_balances, - XcmPallet: pallet_xcm, - } + pub struct Runtime { + System: frame_system, + MessageQueue: mock_message_queue, + Balances: pallet_balances, + XcmPallet: pallet_xcm, + } } #[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] impl frame_system::Config for Runtime { - type Block = Block; - type AccountId = AccountId; - type Lookup = IdentityLookup; - type AccountData = pallet_balances::AccountData; + type Block = Block; + type AccountId = AccountId; + type Lookup = IdentityLookup; + type AccountData = pallet_balances::AccountData; } impl mock_message_queue::Config for Runtime { @@ -38,6 +35,6 @@ impl mock_message_queue::Config for Runtime { #[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)] impl pallet_balances::Config for Runtime { - type Balance = Balance; - type AccountStore = System; + type Balance = Balance; + type AccountStore = System; } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs index ef5b543f87316..ccaad78199dcf 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs @@ -1,147 +1,148 @@ //! # XCM Configuration -use frame::runtime::prelude::*; -use frame::traits::{Nothing, Everything}; -use frame::deps::frame_system; -use xcm_builder::{ - IsConcrete, CurrencyAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, - EnsureXcmOrigin, SignedToAccountId32, AccountId32Aliases, +use frame::{ + deps::frame_system, + runtime::prelude::*, + traits::{Everything, Nothing}, }; use xcm::v3::prelude::*; +use xcm_builder::{ + AccountId32Aliases, CurrencyAdapter, DescribeAllTerminal, DescribeFamily, EnsureXcmOrigin, + HashedDescription, IsConcrete, SignedToAccountId32, +}; use xcm_executor::XcmExecutor; -use super::{ - Runtime, Balances, AccountId, RuntimeCall, RuntimeOrigin, RuntimeEvent, MessageQueue, -}; +use super::{AccountId, Balances, MessageQueue, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin}; parameter_types! { - pub RelayLocation: MultiLocation = MultiLocation::parent(); - pub ThisNetwork: NetworkId = NetworkId::Polkadot; + pub RelayLocation: MultiLocation = MultiLocation::parent(); + pub ThisNetwork: NetworkId = NetworkId::Polkadot; } pub type LocationToAccountId = ( - HashedDescription>, - AccountId32Aliases, + HashedDescription>, + AccountId32Aliases, ); #[docify::export] mod asset_transactor { - use super::*; - - /// AssetTransactor for handling the relay chain token - pub type CurrencyTransactor = CurrencyAdapter< - // Use this Currency implementation - Balances, - // Use this transactor for dealing with the relay chain token - IsConcrete, - // How to convert an XCM MultiLocation into a local account id - LocationToAccountId, - // The account id type, needed because Currency is generic over it - AccountId, - // Not tracking teleports - (), - >; - - /// All asset transactors, in this case only one - pub type AssetTransactor = CurrencyTransactor; + use super::*; + + /// AssetTransactor for handling the relay chain token + pub type CurrencyTransactor = CurrencyAdapter< + // Use this Currency implementation + Balances, + // Use this transactor for dealing with the relay chain token + IsConcrete, + // How to convert an XCM MultiLocation into a local account id + LocationToAccountId, + // The account id type, needed because Currency is generic over it + AccountId, + // Not tracking teleports + (), + >; + + /// All asset transactors, in this case only one + pub type AssetTransactor = CurrencyTransactor; } #[docify::export] mod is_reserve { - use super::*; + use super::*; - parameter_types! { - pub RelayTokenForRelay: (MultiAssetFilter, MultiLocation) = - (Wild(AllOf { id: Concrete(Parent.into()), fun: WildFungible }), Parent.into()); - } + parameter_types! { + pub RelayTokenForRelay: (MultiAssetFilter, MultiLocation) = + (Wild(AllOf { id: Concrete(Parent.into()), fun: WildFungible }), Parent.into()); + } - /// Put it all together - pub type IsReserve = xcm_builder::Case; + /// Put it all together + pub type IsReserve = xcm_builder::Case; } mod weigher { - use super::*; - use xcm_builder::FixedWeightBounds; + use super::*; + use xcm_builder::FixedWeightBounds; - parameter_types! { - pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); - pub const MaxInstructions: u32 = 100; - } + parameter_types! { + pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); + pub const MaxInstructions: u32 = 100; + } - pub type Weigher = FixedWeightBounds; + pub type Weigher = FixedWeightBounds; } parameter_types! { - pub UniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(NetworkId::Polkadot), Parachain(2222)); + pub UniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(NetworkId::Polkadot), Parachain(2222)); } pub struct XcmConfig; impl xcm_executor::Config for XcmConfig { - type RuntimeCall = RuntimeCall; - type XcmSender = (); - type AssetTransactor = asset_transactor::AssetTransactor; - type OriginConverter = (); - type IsReserve = is_reserve::IsReserve; - type IsTeleporter = (); - type UniversalLocation = UniversalLocation; - // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a production chain - type Barrier = xcm_builder::AllowUnpaidExecutionFrom; - type Weigher = weigher::Weigher; - type Trader = (); - type ResponseHandler = (); - type AssetTrap = (); - type AssetLocker = (); - type AssetExchanger = (); - type AssetClaims = (); - type SubscriptionService = (); - type PalletInstancesInfo = (); - type FeeManager = (); - type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; - type MessageExporter = (); - type UniversalAliases = Nothing; - type CallDispatcher = RuntimeCall; - type SafeCallFilter = Everything; - type Aliasers = Nothing; + type RuntimeCall = RuntimeCall; + type XcmSender = (); + type AssetTransactor = asset_transactor::AssetTransactor; + type OriginConverter = (); + type IsReserve = is_reserve::IsReserve; + type IsTeleporter = (); + type UniversalLocation = UniversalLocation; + // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a + // production chain + type Barrier = xcm_builder::AllowUnpaidExecutionFrom; + type Weigher = weigher::Weigher; + type Trader = (); + type ResponseHandler = (); + type AssetTrap = (); + type AssetLocker = (); + type AssetExchanger = (); + type AssetClaims = (); + type SubscriptionService = (); + type PalletInstancesInfo = (); + type FeeManager = (); + type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; } pub type LocalOriginToLocation = SignedToAccountId32; impl pallet_xcm::Config for Runtime { - // We turn off sending for these tests - type SendXcmOrigin = EnsureXcmOrigin; - type XcmRouter = super::super::network::ParachainXcmRouter; // Provided by xcm-simulator - // Anyone can execute XCM programs - type ExecuteXcmOrigin = EnsureXcmOrigin; - // We execute any type of program - type XcmExecuteFilter = Everything; - // How we execute programs - type XcmExecutor = XcmExecutor; - // We don't allow teleports - type XcmTeleportFilter = Nothing; - // We allow all reserve transfers - type XcmReserveTransferFilter = Everything; - // Same weigher executor uses to weigh XCM programs - type Weigher = weigher::Weigher; - // Same universal location - type UniversalLocation = UniversalLocation; - // No version discovery needed + // We turn off sending for these tests + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = super::super::network::ParachainXcmRouter; // Provided by xcm-simulator + // Anyone can execute XCM programs + type ExecuteXcmOrigin = EnsureXcmOrigin; + // We execute any type of program + type XcmExecuteFilter = Everything; + // How we execute programs + type XcmExecutor = XcmExecutor; + // We don't allow teleports + type XcmTeleportFilter = Nothing; + // We allow all reserve transfers + type XcmReserveTransferFilter = Everything; + // Same weigher executor uses to weigh XCM programs + type Weigher = weigher::Weigher; + // Same universal location + type UniversalLocation = UniversalLocation; + // No version discovery needed const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 0; type AdvertisedXcmVersion = frame::traits::ConstU32<3>; type AdminOrigin = frame_system::EnsureRoot; - // No locking + // No locking type TrustedLockers = (); type MaxLockers = frame::traits::ConstU32<0>; type MaxRemoteLockConsumers = frame::traits::ConstU32<0>; type RemoteLockConsumerIdentifier = (); - // How to turn locations into accounts + // How to turn locations into accounts type SovereignAccountOf = LocationToAccountId; - // A currency to pay for things and its matcher, we are using the relay token + // A currency to pay for things and its matcher, we are using the relay token type Currency = Balances; type CurrencyMatcher = IsConcrete; - // Pallet benchmarks, no need for this example + // Pallet benchmarks, no need for this example type WeightInfo = pallet_xcm::TestWeightInfo; - // Runtime types - type RuntimeOrigin = RuntimeOrigin; - type RuntimeCall = RuntimeCall; - type RuntimeEvent = RuntimeEvent; + // Runtime types + type RuntimeOrigin = RuntimeOrigin; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs index f64c9dfca6eb2..fbc1a3fdcb392 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs @@ -1,15 +1,12 @@ //! Relay chain runtime mock. -use frame::prelude::*; -use frame::runtime::prelude::*; -use frame::deps::{ - sp_runtime::AccountId32, - frame_support::weights::WeightMeter, -}; -use frame::traits::{IdentityLookup, ProcessMessage, ProcessMessageError}; -use polkadot_runtime_parachains::{ - inclusion::{AggregateMessageOrigin, UmpQueueId}, +use frame::{ + deps::{frame_support::weights::WeightMeter, sp_runtime::AccountId32}, + prelude::*, + runtime::prelude::*, + traits::{IdentityLookup, ProcessMessage, ProcessMessageError}, }; +use polkadot_runtime_parachains::inclusion::{AggregateMessageOrigin, UmpQueueId}; use xcm::v3::prelude::*; mod xcm_config; @@ -32,7 +29,7 @@ impl frame_system::Config for Runtime { #[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)] impl pallet_balances::Config for Runtime { - type AccountStore = System; + type AccountStore = System; } type Block = frame_system::mocking::MockBlock; @@ -83,6 +80,6 @@ construct_runtime! { System: frame_system, Balances: pallet_balances, MessageQueue: pallet_message_queue, - XcmPallet: pallet_xcm, + XcmPallet: pallet_xcm, } } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs index 7d93450abff60..9184fbdba140d 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs @@ -1,134 +1,135 @@ //! Relay chain XCM configuration -use frame::runtime::prelude::*; -use frame::traits::{Nothing, Everything}; -use frame::deps::frame_system; -use xcm_builder::{ - IsConcrete, CurrencyAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, - EnsureXcmOrigin, SignedToAccountId32, AccountId32Aliases, +use frame::{ + deps::frame_system, + runtime::prelude::*, + traits::{Everything, Nothing}, }; use xcm::v3::prelude::*; +use xcm_builder::{ + AccountId32Aliases, CurrencyAdapter, DescribeAllTerminal, DescribeFamily, EnsureXcmOrigin, + HashedDescription, IsConcrete, SignedToAccountId32, +}; use xcm_executor::XcmExecutor; -use super::{ - Runtime, Balances, AccountId, RuntimeCall, RuntimeOrigin, RuntimeEvent, -}; +use super::{AccountId, Balances, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin}; parameter_types! { - pub HereLocation: MultiLocation = MultiLocation::here(); - pub ThisNetwork: NetworkId = NetworkId::Polkadot; + pub HereLocation: MultiLocation = MultiLocation::here(); + pub ThisNetwork: NetworkId = NetworkId::Polkadot; } pub type LocationToAccountId = ( - HashedDescription>, - AccountId32Aliases, + HashedDescription>, + AccountId32Aliases, ); mod asset_transactor { - use super::*; + use super::*; - /// AssetTransactor for handling the relay chain token - pub type CurrencyTransactor = CurrencyAdapter< - // Use this Currency implementation - Balances, - // Use this transactor for dealing with the native token - IsConcrete, - // How to convert an XCM MultiLocation into a local account id - LocationToAccountId, - // The account id type, needed because Currency is generic over it - AccountId, - // Not tracking teleports - (), - >; + /// AssetTransactor for handling the relay chain token + pub type CurrencyTransactor = CurrencyAdapter< + // Use this Currency implementation + Balances, + // Use this transactor for dealing with the native token + IsConcrete, + // How to convert an XCM MultiLocation into a local account id + LocationToAccountId, + // The account id type, needed because Currency is generic over it + AccountId, + // Not tracking teleports + (), + >; - /// All asset transactors, in this case only one - pub type AssetTransactor = CurrencyTransactor; + /// All asset transactors, in this case only one + pub type AssetTransactor = CurrencyTransactor; } mod weigher { - use super::*; - use xcm_builder::FixedWeightBounds; + use super::*; + use xcm_builder::FixedWeightBounds; - parameter_types! { - pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); - pub const MaxInstructions: u32 = 100; - } + parameter_types! { + pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); + pub const MaxInstructions: u32 = 100; + } - pub type Weigher = FixedWeightBounds; + pub type Weigher = FixedWeightBounds; } parameter_types! { - pub UniversalLocation: InteriorMultiLocation = X1(GlobalConsensus(NetworkId::Polkadot)); + pub UniversalLocation: InteriorMultiLocation = X1(GlobalConsensus(NetworkId::Polkadot)); } pub struct XcmConfig; impl xcm_executor::Config for XcmConfig { - type RuntimeCall = RuntimeCall; - type XcmSender = (); - type AssetTransactor = asset_transactor::AssetTransactor; - type OriginConverter = (); - // We don't need to recognize anyone as a reserve - type IsReserve = (); - type IsTeleporter = (); - type UniversalLocation = UniversalLocation; - // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a production chain - type Barrier = xcm_builder::AllowUnpaidExecutionFrom; - type Weigher = weigher::Weigher; - type Trader = (); - type ResponseHandler = (); - type AssetTrap = (); - type AssetLocker = (); - type AssetExchanger = (); - type AssetClaims = (); - type SubscriptionService = (); - type PalletInstancesInfo = (); - type FeeManager = (); - type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; - type MessageExporter = (); - type UniversalAliases = Nothing; - type CallDispatcher = RuntimeCall; - type SafeCallFilter = Everything; - type Aliasers = Nothing; + type RuntimeCall = RuntimeCall; + type XcmSender = (); + type AssetTransactor = asset_transactor::AssetTransactor; + type OriginConverter = (); + // We don't need to recognize anyone as a reserve + type IsReserve = (); + type IsTeleporter = (); + type UniversalLocation = UniversalLocation; + // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a + // production chain + type Barrier = xcm_builder::AllowUnpaidExecutionFrom; + type Weigher = weigher::Weigher; + type Trader = (); + type ResponseHandler = (); + type AssetTrap = (); + type AssetLocker = (); + type AssetExchanger = (); + type AssetClaims = (); + type SubscriptionService = (); + type PalletInstancesInfo = (); + type FeeManager = (); + type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; } pub type LocalOriginToLocation = SignedToAccountId32; impl pallet_xcm::Config for Runtime { - // No one can call `send` - type SendXcmOrigin = EnsureXcmOrigin; - type XcmRouter = super::super::network::RelayChainXcmRouter; // Provided by xcm-simulator - // Anyone can execute XCM programs - type ExecuteXcmOrigin = EnsureXcmOrigin; - // We execute any type of program - type XcmExecuteFilter = Everything; - // How we execute programs - type XcmExecutor = XcmExecutor; - // We don't allow teleports - type XcmTeleportFilter = Nothing; - // We allow all reserve transfers - type XcmReserveTransferFilter = Everything; - // Same weigher executor uses to weigh XCM programs - type Weigher = weigher::Weigher; - // Same universal location - type UniversalLocation = UniversalLocation; - // No version discovery needed + // No one can call `send` + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = super::super::network::RelayChainXcmRouter; // Provided by xcm-simulator + // Anyone can execute XCM programs + type ExecuteXcmOrigin = EnsureXcmOrigin; + // We execute any type of program + type XcmExecuteFilter = Everything; + // How we execute programs + type XcmExecutor = XcmExecutor; + // We don't allow teleports + type XcmTeleportFilter = Nothing; + // We allow all reserve transfers + type XcmReserveTransferFilter = Everything; + // Same weigher executor uses to weigh XCM programs + type Weigher = weigher::Weigher; + // Same universal location + type UniversalLocation = UniversalLocation; + // No version discovery needed const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 0; type AdvertisedXcmVersion = frame::traits::ConstU32<3>; type AdminOrigin = frame_system::EnsureRoot; - // No locking + // No locking type TrustedLockers = (); type MaxLockers = frame::traits::ConstU32<0>; type MaxRemoteLockConsumers = frame::traits::ConstU32<0>; type RemoteLockConsumerIdentifier = (); - // How to turn locations into accounts + // How to turn locations into accounts type SovereignAccountOf = LocationToAccountId; - // A currency to pay for things and its matcher, we are using the relay token + // A currency to pay for things and its matcher, we are using the relay token type Currency = Balances; type CurrencyMatcher = IsConcrete; - // Pallet benchmarks, no need for this example + // Pallet benchmarks, no need for this example type WeightInfo = pallet_xcm::TestWeightInfo; - // Runtime types - type RuntimeOrigin = RuntimeOrigin; - type RuntimeCall = RuntimeCall; - type RuntimeEvent = RuntimeEvent; + // Runtime types + type RuntimeOrigin = RuntimeOrigin; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs index 241a74ade41f0..8fa9939f40fa8 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs @@ -1,12 +1,11 @@ -use test_log::test; use frame::testing_prelude::*; +use test_log::test; use xcm::prelude::*; use xcm_simulator::TestExt; use super::{ - network::{MockNet, Relay, ParaA, ALICE, BOB, CENTS, INITIAL_BALANCE}, - relay_chain, - parachain, + network::{MockNet, ParaA, Relay, ALICE, BOB, CENTS, INITIAL_BALANCE}, + parachain, relay_chain, }; // Scenario: @@ -19,68 +18,73 @@ use super::{ #[docify::export] #[test] fn reserve_asset_transfers_work() { - MockNet::reset(); + MockNet::reset(); - // ALICE starts with INITIAL_BALANCE on the relay chain - Relay::execute_with(|| { - assert_eq!(relay_chain::Balances::free_balance(&ALICE), INITIAL_BALANCE); - }); + // ALICE starts with INITIAL_BALANCE on the relay chain + Relay::execute_with(|| { + assert_eq!(relay_chain::Balances::free_balance(&ALICE), INITIAL_BALANCE); + }); - // BOB starts with 0 on the parachain - ParaA::execute_with(|| { - assert_eq!(parachain::Balances::free_balance(&BOB), 0); - }); + // BOB starts with 0 on the parachain + ParaA::execute_with(|| { + assert_eq!(parachain::Balances::free_balance(&BOB), 0); + }); - // ALICE on the relay chain sends some relay token to BOB on the parachain - // Because of how the network is set up, us sending the native token and - // the parachain recognizing the relay as the reserve for its token, `transfer_assets` - // determines a reserve transfer should be done with the local chain as the reserve. - Relay::execute_with(|| { - let destination: MultiLocation = Parachain(2222).into(); - let beneficiary: MultiLocation = AccountId32 { id: BOB.clone().into(), network: Some(NetworkId::Polkadot) }.into(); - // We need to use `u128` here for the conversion to work properly. - // If we don't specify anything, it will be a `u64`, which the conversion - // will turn into a non fungible token instead of a fungible one. - let assets: MultiAssets = (Here, 50u128 * CENTS as u128).into(); - assert_ok!(relay_chain::XcmPallet::transfer_assets( - relay_chain::RuntimeOrigin::signed(ALICE), - Box::new(VersionedMultiLocation::V3(destination)), - Box::new(VersionedMultiLocation::V3(beneficiary)), - Box::new(VersionedMultiAssets::V3(assets)), - 0, - WeightLimit::Unlimited, - )); + // ALICE on the relay chain sends some relay token to BOB on the parachain + // Because of how the network is set up, us sending the native token and + // the parachain recognizing the relay as the reserve for its token, `transfer_assets` + // determines a reserve transfer should be done with the local chain as the reserve. + Relay::execute_with(|| { + let destination: MultiLocation = Parachain(2222).into(); + let beneficiary: MultiLocation = + AccountId32 { id: BOB.clone().into(), network: Some(NetworkId::Polkadot) }.into(); + // We need to use `u128` here for the conversion to work properly. + // If we don't specify anything, it will be a `u64`, which the conversion + // will turn into a non fungible token instead of a fungible one. + let assets: MultiAssets = (Here, 50u128 * CENTS as u128).into(); + assert_ok!(relay_chain::XcmPallet::transfer_assets( + relay_chain::RuntimeOrigin::signed(ALICE), + Box::new(VersionedMultiLocation::V3(destination)), + Box::new(VersionedMultiLocation::V3(beneficiary)), + Box::new(VersionedMultiAssets::V3(assets)), + 0, + WeightLimit::Unlimited, + )); - // ALICE now has less relay chain token - assert_eq!(relay_chain::Balances::free_balance(&ALICE), INITIAL_BALANCE - 50 * CENTS); - }); + // ALICE now has less relay chain token + assert_eq!(relay_chain::Balances::free_balance(&ALICE), INITIAL_BALANCE - 50 * CENTS); + }); - // On the parachain, BOB has received the derivative tokens - ParaA::execute_with(|| { - assert_eq!(parachain::Balances::free_balance(&BOB), 50 * CENTS); + // On the parachain, BOB has received the derivative tokens + ParaA::execute_with(|| { + assert_eq!(parachain::Balances::free_balance(&BOB), 50 * CENTS); - // BOB gives back half to ALICE in the relay chain - let destination: MultiLocation = Parent.into(); - let beneficiary: MultiLocation = AccountId32 { id: ALICE.clone().into(), network: Some(NetworkId::Polkadot) }.into(); - // We specify `Parent` because we are referencing the relay chain token. - // This chain doesn't have a token of its own, so we always refer to this token, - // and we do so by the location of the relay chain. - let assets: MultiAssets = (Parent, 25u128 * CENTS as u128).into(); - assert_ok!(parachain::XcmPallet::transfer_assets( - parachain::RuntimeOrigin::signed(BOB), - Box::new(VersionedMultiLocation::V3(destination)), - Box::new(VersionedMultiLocation::V3(beneficiary)), - Box::new(VersionedMultiAssets::V3(assets)), - 0, - WeightLimit::Unlimited, - )); + // BOB gives back half to ALICE in the relay chain + let destination: MultiLocation = Parent.into(); + let beneficiary: MultiLocation = + AccountId32 { id: ALICE.clone().into(), network: Some(NetworkId::Polkadot) }.into(); + // We specify `Parent` because we are referencing the relay chain token. + // This chain doesn't have a token of its own, so we always refer to this token, + // and we do so by the location of the relay chain. + let assets: MultiAssets = (Parent, 25u128 * CENTS as u128).into(); + assert_ok!(parachain::XcmPallet::transfer_assets( + parachain::RuntimeOrigin::signed(BOB), + Box::new(VersionedMultiLocation::V3(destination)), + Box::new(VersionedMultiLocation::V3(beneficiary)), + Box::new(VersionedMultiAssets::V3(assets)), + 0, + WeightLimit::Unlimited, + )); - // BOB's balance decreased - assert_eq!(parachain::Balances::free_balance(&BOB), 25 * CENTS); - }); + // BOB's balance decreased + assert_eq!(parachain::Balances::free_balance(&BOB), 25 * CENTS); + }); - // ALICE's balance increases - Relay::execute_with(|| { - assert_eq!(relay_chain::Balances::free_balance(&ALICE), INITIAL_BALANCE - 50 * CENTS + 25 * CENTS); - }); + // ALICE's balance increases + Relay::execute_with(|| { + assert_eq!( + relay_chain::Balances::free_balance(&ALICE), + INITIAL_BALANCE - 50 * CENTS + 25 * CENTS + ); + }); } diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index 5e836b8035054..99528e856a9a6 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -7,7 +7,8 @@ //! //! The goal of XCM is to allow multi-chain ecosystems to thrive via specialization. //! Very specific functionalities can be abstracted away and standardized in this common language. -//! Then, every member of the ecosystem can implement the subset of the language that makes sense for them. +//! Then, every member of the ecosystem can implement the subset of the language that makes sense +//! for them. //! //! The language evolves over time to accomodate the needs of the community //! via the [RFC process](https://github.com/paritytech/xcm-format/blob/master/proposals/0001-process.md). @@ -22,7 +23,8 @@ //! It's the virtual machine that executes XCM programs. //! It is a specification that comes with the language. //! -//! For this docs, we'll use a Rust implementation of XCM and the XCVM, consisting of the following parts: +//! For this docs, we'll use a Rust implementation of XCM and the XCVM, consisting of the following +//! parts: //! - XCM: Holds the definition of an XCM program, the instructions and main concepts. //! - Executor: Implements the XCVM, capable of executing XCMs. Highly configurable. //! - Builder: A collection of types used to configure the executor. @@ -34,19 +36,21 @@ //! ## Locations //! //! Locations are XCM's vocabulary of places we want to talk about in our XCM programs. -//! They are used to reference things like 32-byte accounts, governance bodies, smart contracts, blockchains and more. +//! They are used to reference things like 32-byte accounts, governance bodies, smart contracts, +//! blockchains and more. //! //! Locations are hierarchical. //! This means some places in consensus are wholly encapsulated in other places. //! Say we have two systems A and B. //! If any change in A's state implies a change in B's state, then we say A is interior to B. -//! #![doc = simple_mermaid::mermaid!("../mermaid/location_hierarchy.mmd")] //! -//! Parachains are interior to their relaychain, since a change in their state implies a change in the relaychain's state. +//! Parachains are interior to their relaychain, since a change in their state implies a change in +//! the relaychain's state. //! -//! Because of this hierarchy, the way we represent locations is with both a number of **parents**, times we move __up__ the hierarchy, -//! and a sequence of **junctions**, the steps we take __down__ the hierarchy after going up the specified amount of parents. +//! Because of this hierarchy, the way we represent locations is with both a number of **parents**, +//! times we move __up__ the hierarchy, and a sequence of **junctions**, the steps we take __down__ +//! the hierarchy after going up the specified amount of parents. //! //! In Rust, this is specified with the following datatype: //! ```ignore @@ -56,8 +60,8 @@ //! } //! ``` //! -//! Many junctions are available, parachains, pallets, 32 and 20 byte accounts, governance bodies, and arbitrary indices -//! are the most common. +//! Many junctions are available, parachains, pallets, 32 and 20 byte accounts, governance bodies, +//! and arbitrary indices are the most common. //! A full list of available junctions can be found in the [format](https://github.com/paritytech/xcm-format#interior-locations--junctions) //! and [Junction enum](xcm::v3::prelude::Junction). //! @@ -67,20 +71,20 @@ //! - From parachain 1000 itself: `Here` //! - From parachain 2000: `../Parachain(1000)` //! -//! Relative locations are interpreted by the system that is executing an XCM program, which is the receiver of a message -//! in the case where it's sent. +//! Relative locations are interpreted by the system that is executing an XCM program, which is the +//! receiver of a message in the case where it's sent. //! //! Locations can also be absolute. //! Keeping in line with our filesystem analogy, we can imagine the root of our filesystem to exist. -//! This would be a location with no parents, that is also the parent of all systems that derive their own consensus, say -//! Polkadot or Ethereum or Bitcoin. +//! This would be a location with no parents, that is also the parent of all systems that derive +//! their own consensus, say Polkadot or Ethereum or Bitcoin. //! Such a location does not exist concretely, but we can still use this definition for it. //! This is the **universal location**. //! We need the universal location to be able to describe locations in an absolute way. -//! #![doc = simple_mermaid::mermaid!("../mermaid/universal_location.mmd")] //! -//! Here, the absolute location of parachain 1000 would be `GlobalConsensus(Polkadot)/Parachain(1000)`. +//! Here, the absolute location of parachain 1000 would be +//! `GlobalConsensus(Polkadot)/Parachain(1000)`. //! //! ## Assets //! @@ -97,7 +101,6 @@ //! assets pallet instance it uses. //! USDT, an example asset that lives on asset hub, is identified by the location //! `Parachain(1000)/PalletInstance(53)/GeneralIndex(1984)`, when seen from the Polkadot relaychain. -//! #![doc = simple_mermaid::mermaid!("../mermaid/usdt_location.mmd")] //! //! The whole type can be seen in the [format](https://github.com/paritytech/xcm-format#6-universal-asset-identifiers) @@ -105,8 +108,8 @@ //! //! ## Instructions //! -//! Given the vocabulary to talk about both locations, chains and accounts, and assets, we now need a way to -//! express what we want the consensus system to do when executing our programs. +//! Given the vocabulary to talk about both locations, chains and accounts, and assets, we now need +//! a way to express what we want the consensus system to do when executing our programs. //! We need a way of writing our programs. //! //! XCM programs are composed of a sequence of instructions. @@ -122,9 +125,9 @@ //! ]); //! ``` //! -//! This instruction is enough to transfer `assets` from the account of the **origin** of a message to the `beneficiary` account. -//! However, because of XCM's generality, fees need to be paid explicitly. -//! This next example sheds more light on this: +//! This instruction is enough to transfer `assets` from the account of the **origin** of a message +//! to the `beneficiary` account. However, because of XCM's generality, fees need to be paid +//! explicitly. This next example sheds more light on this: //! //! ```ignore //! let message = Xcm(vec![ @@ -134,8 +137,10 @@ //! ]); //! ``` //! -//! Here we see the process of transferring assets was broken down into smaller instructions, and we add the explicit fee payment -//! step in the middle. -//! `WithdrawAsset` withdraws assets from the account of the **origin** of the message for usage inside this message's execution. -//! `BuyExecution` explicitly buys execution for this program using the assets specified in `fees`, with a sanity check of `weight_limit`. -//! `DepositAsset` has the same operands as the original `TransferAsset` instruction, specifying `assets` and a `beneficiary` account. +//! Here we see the process of transferring assets was broken down into smaller instructions, and we +//! add the explicit fee payment step in the middle. +//! `WithdrawAsset` withdraws assets from the account of the **origin** of the message for usage +//! inside this message's execution. `BuyExecution` explicitly buys execution for this program using +//! the assets specified in `fees`, with a sanity check of `weight_limit`. `DepositAsset` has the +//! same operands as the original `TransferAsset` instruction, specifying `assets` and a +//! `beneficiary` account. diff --git a/polkadot/xcm/docs/src/glossary.rs b/polkadot/xcm/docs/src/glossary.rs index e748960366c2c..90e8e9d74e132 100644 --- a/polkadot/xcm/docs/src/glossary.rs +++ b/polkadot/xcm/docs/src/glossary.rs @@ -1,81 +1,88 @@ //! # Glossary -//! +//! //! ## XCM (Cross-Consensus Messaging) -//! +//! //! A messaging format meant to communicate intentions between consensus systems. //! XCM could also refer to a single message. -//! +//! //! ## Instructions -//! +//! //! XCMs are composed of a sequence of instructions. //! Each instruction aims to convey a particular intention. -//! There are instructions for transferring and locking assets, handling fees, calling arbitrary blobs, and more. -//! +//! There are instructions for transferring and locking assets, handling fees, calling arbitrary +//! blobs, and more. +//! //! ## Consensus system -//! +//! //! A system that can reach any kind of consensus. //! For example, relay chains, parachains, smart contracts. -//! +//! //! ## MultiLocation -//! +//! //! A way of addressing consensus systems. //! These could be relative or absolute. -//! +//! //! ## Junction -//! +//! //! The different ways of descending down a `MultiLocation` hierarchy. //! A junction can be a Parachain, an Account, or more. -//! +//! //! ## MultiAsset -//! +//! //! A way of identifying assets in the same or another consensus system, by using a `MultiLocation`. -//! +//! //! ## Sovereign account -//! +//! //! An account on a consensus system that is controlled by an account in another consensus system. -//! +//! //! ## Teleport -//! +//! //! A way of transferring assets between two consensus systems without the need of a third party. -//! It consists of the sender system burning the asset that wants to be sent over and the recipient minting an equivalent amount of that asset. -//! It requires a lot of trust between the two systems, since failure to mint or burn will reduce the total issuance of the token. -//! +//! It consists of the sender system burning the asset that wants to be sent over and the recipient +//! minting an equivalent amount of that asset. It requires a lot of trust between the two systems, +//! since failure to mint or burn will reduce the total issuance of the token. +//! //! ## Reserve asset transfer -//! -//! A way of transferring assets between two consensus systems that don't trust each other, by using a third system they both trust, called the reserve. -//! The real asset only exists on the reserve, both sender and recipient only deal with derivatives. -//! It consists of the sender burning a certain amount of derivatives, telling the reserve to move real assets from its sovereign account to the destination's sovereign account, and then telling the recipient to mint the right amount of derivatives. -//! +//! +//! A way of transferring assets between two consensus systems that don't trust each other, by using +//! a third system they both trust, called the reserve. The real asset only exists on the reserve, +//! both sender and recipient only deal with derivatives. It consists of the sender burning a +//! certain amount of derivatives, telling the reserve to move real assets from its sovereign +//! account to the destination's sovereign account, and then telling the recipient to mint the right +//! amount of derivatives. +//! //! ## XCVM -//! +//! //! The virtual machine behind XCM. //! Every XCM is an XCVM programme. //! Holds state in registers. -//! +//! //! ## Holding register -//! +//! //! An XCVM register used to hold arbitrary `Asset`s during the execution of an XCVM programme. -//! +//! //! ## Barrier -//! +//! //! An XCM executor configuration item that works as a firewall for incoming XCMs. //! All XCMs have to pass the barrier to be executed, else they are dropped. //! It can be used for whitelisting only certain types or messages or messages from certain senders. -//! +//! //! ## UMP (Upward Message Passing) -//! +//! //! Transport-layer protocol that allows parachains to send messages upwards to their relay chain. -//! +//! //! ## DMP (Downward Message Passing) -//! -//! Transport-layer protocol that allows the relay chain to send messages downwards to one of their parachains. -//! +//! +//! Transport-layer protocol that allows the relay chain to send messages downwards to one of their +//! parachains. +//! //! ## XCMP (Cross-Consensus Message Passing) -//! -//! Transport-layer protocol that allows parachains to send messages between themselves, without going through the relay chain. -//! +//! +//! Transport-layer protocol that allows parachains to send messages between themselves, without +//! going through the relay chain. +//! //! ## HRMP (Horizontal Message Passing) -//! -//! Transport-layer protocol that allows a parachain to send messages to a sibling parachain going through the relay chain. -//! It's a precursor to XCMP, also known as XCMP-lite. +//! +//! Transport-layer protocol that allows a parachain to send messages to a sibling parachain going +//! through the relay chain. It's a precursor to XCMP, also known as XCMP-lite. //! It uses a mixture of UMP and VMP. diff --git a/polkadot/xcm/docs/src/lib.rs b/polkadot/xcm/docs/src/lib.rs index e8ad961d70569..6ed5a5243761c 100644 --- a/polkadot/xcm/docs/src/lib.rs +++ b/polkadot/xcm/docs/src/lib.rs @@ -5,7 +5,8 @@ //! Welcome to the Cross-Consensus Messaging documentation! //! //! XCM is a **language** for communicating **intentions** between **consensus systems**. -//! Whether you're a developer, a blockchain enthusiast, or just interested in Polkadot, this guide aims to provide you with an easy-to-understand and comprehensive introduction to XCM. +//! Whether you're a developer, a blockchain enthusiast, or just interested in Polkadot, this guide +//! aims to provide you with an easy-to-understand and comprehensive introduction to XCM. //! //! ## Getting started //! diff --git a/polkadot/xcm/docs/src/mock_message_queue.rs b/polkadot/xcm/docs/src/mock_message_queue.rs index 7713852928cef..bd1bb5904aacd 100644 --- a/polkadot/xcm/docs/src/mock_message_queue.rs +++ b/polkadot/xcm/docs/src/mock_message_queue.rs @@ -19,7 +19,7 @@ use codec::{Decode, Encode}; use polkadot_parachain_primitives::primitives::{ - DmpMessageHandler, Id as ParaId, XcmpMessageFormat, XcmpMessageHandler, + DmpMessageHandler, Id as ParaId, XcmpMessageFormat, XcmpMessageHandler, }; use polkadot_primitives::BlockNumber as RelayBlockNumber; use sp_runtime::traits::{Get, Hash}; @@ -31,144 +31,140 @@ pub use pallet::*; #[frame::pallet] pub mod pallet { - use super::*; - use frame::prelude::*; - use frame::deps::frame_system; - - #[pallet::config] - pub trait Config: frame_system::Config { - type RuntimeEvent: From> + IsType<::RuntimeEvent>; - type XcmExecutor: ExecuteXcm; - } - - #[pallet::call] - impl Pallet {} - - #[pallet::pallet] - #[pallet::without_storage_info] - pub struct Pallet(_); - - #[pallet::storage] - #[pallet::getter(fn parachain_id)] - pub(super) type ParachainId = StorageValue<_, ParaId, ValueQuery>; - - #[pallet::storage] - #[pallet::getter(fn received_dmp)] - /// A queue of received DMP messages - pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; - - impl Get for Pallet { - fn get() -> ParaId { - Self::parachain_id() - } - } - - pub type MessageId = [u8; 32]; - - #[pallet::event] - #[pallet::generate_deposit(pub(super) fn deposit_event)] - pub enum Event { - // XCMP - /// Some XCM was executed OK. - Success(Option), - /// Some XCM failed. - Fail(Option, XcmError), - /// Bad XCM version used. - BadVersion(Option), - /// Bad XCM format used. - BadFormat(Option), - - // DMP - /// Downward message is invalid XCM. - InvalidFormat(MessageId), - /// Downward message is unsupported version of XCM. - UnsupportedVersion(MessageId), - /// Downward message executed with the given outcome. - ExecutedDownward(MessageId, Outcome), - } - - impl Pallet { - pub fn set_para_id(para_id: ParaId) { - ParachainId::::put(para_id); - } - - fn handle_xcmp_message( - sender: ParaId, - _sent_at: RelayBlockNumber, - xcm: VersionedXcm, - max_weight: xcm::latest::Weight, - ) -> Result { - let hash = Encode::using_encoded(&xcm, T::Hashing::hash); - let message_hash = Encode::using_encoded(&xcm, sp_io::hashing::blake2_256); - let (result, event) = match Xcm::::try_from(xcm) { - Ok(xcm) => { - let location = (Parent, Parachain(sender.into())); - match T::XcmExecutor::execute_xcm(location, xcm, message_hash, max_weight) { - Outcome::Error(e) => (Err(e.clone()), Event::Fail(Some(hash), e)), - Outcome::Complete(w) => (Ok(w), Event::Success(Some(hash))), - // As far as the caller is concerned, this was dispatched without error, so - // we just report the weight used. - Outcome::Incomplete(w, e) => (Ok(w), Event::Fail(Some(hash), e)), - } - } - Err(()) => ( - Err(XcmError::UnhandledXcmVersion), - Event::BadVersion(Some(hash)), - ), - }; - Self::deposit_event(event); - result - } - } - - impl XcmpMessageHandler for Pallet { - fn handle_xcmp_messages<'a, I: Iterator>( - iter: I, - max_weight: xcm::latest::Weight, - ) -> xcm::latest::Weight { - for (sender, sent_at, data) in iter { - let mut data_ref = data; - let _ = XcmpMessageFormat::decode(&mut data_ref) - .expect("Simulator encodes with versioned xcm format; qed"); - - let mut remaining_fragments = &data_ref[..]; - while !remaining_fragments.is_empty() { - if let Ok(xcm) = - VersionedXcm::::decode(&mut remaining_fragments) - { - let _ = Self::handle_xcmp_message(sender, sent_at, xcm, max_weight); - } else { - debug_assert!(false, "Invalid incoming XCMP message data"); - } - } - } - max_weight - } - } - - impl DmpMessageHandler for Pallet { - fn handle_dmp_messages( - iter: impl Iterator)>, - limit: frame::prelude::Weight, - ) -> frame::prelude::Weight { - for (_i, (_sent_at, data)) in iter.enumerate() { - let id = sp_io::hashing::blake2_256(&data[..]); - let maybe_versioned = VersionedXcm::::decode(&mut &data[..]); - match maybe_versioned { - Err(_) => { - Self::deposit_event(Event::InvalidFormat(id)); - } - Ok(versioned) => match Xcm::try_from(versioned) { - Err(()) => Self::deposit_event(Event::UnsupportedVersion(id)), - Ok(x) => { - let outcome = T::XcmExecutor::execute_xcm(Parent, x.clone(), id, limit); - >::append(x); - Self::deposit_event(Event::ExecutedDownward(id, outcome)); - } - }, - } - } - limit - } - } + use super::*; + use frame::{deps::frame_system, prelude::*}; + + #[pallet::config] + pub trait Config: frame_system::Config { + type RuntimeEvent: From> + IsType<::RuntimeEvent>; + type XcmExecutor: ExecuteXcm; + } + + #[pallet::call] + impl Pallet {} + + #[pallet::pallet] + #[pallet::without_storage_info] + pub struct Pallet(_); + + #[pallet::storage] + #[pallet::getter(fn parachain_id)] + pub(super) type ParachainId = StorageValue<_, ParaId, ValueQuery>; + + #[pallet::storage] + #[pallet::getter(fn received_dmp)] + /// A queue of received DMP messages + pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; + + impl Get for Pallet { + fn get() -> ParaId { + Self::parachain_id() + } + } + + pub type MessageId = [u8; 32]; + + #[pallet::event] + #[pallet::generate_deposit(pub(super) fn deposit_event)] + pub enum Event { + // XCMP + /// Some XCM was executed OK. + Success(Option), + /// Some XCM failed. + Fail(Option, XcmError), + /// Bad XCM version used. + BadVersion(Option), + /// Bad XCM format used. + BadFormat(Option), + + // DMP + /// Downward message is invalid XCM. + InvalidFormat(MessageId), + /// Downward message is unsupported version of XCM. + UnsupportedVersion(MessageId), + /// Downward message executed with the given outcome. + ExecutedDownward(MessageId, Outcome), + } + + impl Pallet { + pub fn set_para_id(para_id: ParaId) { + ParachainId::::put(para_id); + } + + fn handle_xcmp_message( + sender: ParaId, + _sent_at: RelayBlockNumber, + xcm: VersionedXcm, + max_weight: xcm::latest::Weight, + ) -> Result { + let hash = Encode::using_encoded(&xcm, T::Hashing::hash); + let message_hash = Encode::using_encoded(&xcm, sp_io::hashing::blake2_256); + let (result, event) = match Xcm::::try_from(xcm) { + Ok(xcm) => { + let location = (Parent, Parachain(sender.into())); + match T::XcmExecutor::execute_xcm(location, xcm, message_hash, max_weight) { + Outcome::Error(e) => (Err(e.clone()), Event::Fail(Some(hash), e)), + Outcome::Complete(w) => (Ok(w), Event::Success(Some(hash))), + // As far as the caller is concerned, this was dispatched without error, so + // we just report the weight used. + Outcome::Incomplete(w, e) => (Ok(w), Event::Fail(Some(hash), e)), + } + }, + Err(()) => (Err(XcmError::UnhandledXcmVersion), Event::BadVersion(Some(hash))), + }; + Self::deposit_event(event); + result + } + } + + impl XcmpMessageHandler for Pallet { + fn handle_xcmp_messages<'a, I: Iterator>( + iter: I, + max_weight: xcm::latest::Weight, + ) -> xcm::latest::Weight { + for (sender, sent_at, data) in iter { + let mut data_ref = data; + let _ = XcmpMessageFormat::decode(&mut data_ref) + .expect("Simulator encodes with versioned xcm format; qed"); + + let mut remaining_fragments = &data_ref[..]; + while !remaining_fragments.is_empty() { + if let Ok(xcm) = + VersionedXcm::::decode(&mut remaining_fragments) + { + let _ = Self::handle_xcmp_message(sender, sent_at, xcm, max_weight); + } else { + debug_assert!(false, "Invalid incoming XCMP message data"); + } + } + } + max_weight + } + } + + impl DmpMessageHandler for Pallet { + fn handle_dmp_messages( + iter: impl Iterator)>, + limit: frame::prelude::Weight, + ) -> frame::prelude::Weight { + for (_i, (_sent_at, data)) in iter.enumerate() { + let id = sp_io::hashing::blake2_256(&data[..]); + let maybe_versioned = VersionedXcm::::decode(&mut &data[..]); + match maybe_versioned { + Err(_) => { + Self::deposit_event(Event::InvalidFormat(id)); + }, + Ok(versioned) => match Xcm::try_from(versioned) { + Err(()) => Self::deposit_event(Event::UnsupportedVersion(id)), + Ok(x) => { + let outcome = T::XcmExecutor::execute_xcm(Parent, x.clone(), id, limit); + >::append(x); + Self::deposit_event(Event::ExecutedDownward(id, outcome)); + }, + }, + } + } + limit + } + } } From cb50a66b7581165aa95bf2db5c54a96195b63157 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Tue, 13 Feb 2024 20:02:47 +0100 Subject: [PATCH 08/37] fix(xcm-docs): Update to XCM v4 --- .../relay_token_transactor/parachain/mod.rs | 31 +- .../parachain/xcm_config.rs | 196 ++++++------ .../relay_token_transactor/relay_chain/mod.rs | 21 +- .../relay_chain/xcm_config.rs | 180 ++++++------ polkadot/xcm/docs/src/mock_message_queue.rs | 278 +++++++++--------- 5 files changed, 358 insertions(+), 348 deletions(-) diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs index 2a487588c758d..7fdcfaabf7b40 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs @@ -1,31 +1,34 @@ //! # Runtime -use frame::{deps::frame_system, prelude::*, runtime::prelude::*, traits::IdentityLookup}; +use frame::prelude::*; +use frame::runtime::prelude::*; +use frame::deps::frame_system; +use frame::traits::IdentityLookup; use xcm_executor::XcmExecutor; mod xcm_config; -use crate::mock_message_queue; use xcm_config::XcmConfig; +use crate::mock_message_queue; pub type Block = frame_system::mocking::MockBlock; pub type AccountId = frame::deps::sp_runtime::AccountId32; pub type Balance = u64; construct_runtime! { - pub struct Runtime { - System: frame_system, - MessageQueue: mock_message_queue, - Balances: pallet_balances, - XcmPallet: pallet_xcm, - } + pub struct Runtime { + System: frame_system, + MessageQueue: mock_message_queue, + Balances: pallet_balances, + XcmPallet: pallet_xcm, + } } #[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] impl frame_system::Config for Runtime { - type Block = Block; - type AccountId = AccountId; - type Lookup = IdentityLookup; - type AccountData = pallet_balances::AccountData; + type Block = Block; + type AccountId = AccountId; + type Lookup = IdentityLookup; + type AccountData = pallet_balances::AccountData; } impl mock_message_queue::Config for Runtime { @@ -35,6 +38,6 @@ impl mock_message_queue::Config for Runtime { #[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)] impl pallet_balances::Config for Runtime { - type Balance = Balance; - type AccountStore = System; + type Balance = Balance; + type AccountStore = System; } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs index ccaad78199dcf..bfbafedeab0c6 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs @@ -1,148 +1,148 @@ //! # XCM Configuration -use frame::{ - deps::frame_system, - runtime::prelude::*, - traits::{Everything, Nothing}, -}; -use xcm::v3::prelude::*; +use frame::runtime::prelude::*; +use frame::traits::{Nothing, Everything}; +use frame::deps::frame_system; use xcm_builder::{ - AccountId32Aliases, CurrencyAdapter, DescribeAllTerminal, DescribeFamily, EnsureXcmOrigin, - HashedDescription, IsConcrete, SignedToAccountId32, + IsConcrete, CurrencyAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, + EnsureXcmOrigin, SignedToAccountId32, AccountId32Aliases, FrameTransactionalProcessor, }; +use xcm::v4::prelude::*; use xcm_executor::XcmExecutor; -use super::{AccountId, Balances, MessageQueue, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin}; +use super::{ + Runtime, Balances, AccountId, RuntimeCall, RuntimeOrigin, RuntimeEvent, MessageQueue, +}; parameter_types! { - pub RelayLocation: MultiLocation = MultiLocation::parent(); - pub ThisNetwork: NetworkId = NetworkId::Polkadot; + pub RelayLocation: Location = Location::parent(); + pub ThisNetwork: NetworkId = NetworkId::Polkadot; } pub type LocationToAccountId = ( - HashedDescription>, - AccountId32Aliases, + HashedDescription>, + AccountId32Aliases, ); #[docify::export] mod asset_transactor { - use super::*; - - /// AssetTransactor for handling the relay chain token - pub type CurrencyTransactor = CurrencyAdapter< - // Use this Currency implementation - Balances, - // Use this transactor for dealing with the relay chain token - IsConcrete, - // How to convert an XCM MultiLocation into a local account id - LocationToAccountId, - // The account id type, needed because Currency is generic over it - AccountId, - // Not tracking teleports - (), - >; - - /// All asset transactors, in this case only one - pub type AssetTransactor = CurrencyTransactor; + use super::*; + + /// AssetTransactor for handling the relay chain token + pub type CurrencyTransactor = CurrencyAdapter< + // Use this Currency implementation + Balances, + // Use this transactor for dealing with the relay chain token + IsConcrete, + // How to convert an XCM Location into a local account id + LocationToAccountId, + // The account id type, needed because Currency is generic over it + AccountId, + // Not tracking teleports + (), + >; + + /// All asset transactors, in this case only one + pub type AssetTransactor = CurrencyTransactor; } #[docify::export] mod is_reserve { - use super::*; + use super::*; - parameter_types! { - pub RelayTokenForRelay: (MultiAssetFilter, MultiLocation) = - (Wild(AllOf { id: Concrete(Parent.into()), fun: WildFungible }), Parent.into()); - } + parameter_types! { + pub RelayTokenForRelay: (AssetFilter, Location) = + (Wild(AllOf { id: AssetId(Parent.into()), fun: WildFungible }), Parent.into()); + } - /// Put it all together - pub type IsReserve = xcm_builder::Case; + /// Put it all together + pub type IsReserve = xcm_builder::Case; } mod weigher { - use super::*; - use xcm_builder::FixedWeightBounds; + use super::*; + use xcm_builder::FixedWeightBounds; - parameter_types! { - pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); - pub const MaxInstructions: u32 = 100; - } + parameter_types! { + pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); + pub const MaxInstructions: u32 = 100; + } - pub type Weigher = FixedWeightBounds; + pub type Weigher = FixedWeightBounds; } parameter_types! { - pub UniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(NetworkId::Polkadot), Parachain(2222)); + pub UniversalLocation: InteriorLocation = [GlobalConsensus(NetworkId::Polkadot), Parachain(2222)].into(); } pub struct XcmConfig; impl xcm_executor::Config for XcmConfig { - type RuntimeCall = RuntimeCall; - type XcmSender = (); - type AssetTransactor = asset_transactor::AssetTransactor; - type OriginConverter = (); - type IsReserve = is_reserve::IsReserve; - type IsTeleporter = (); - type UniversalLocation = UniversalLocation; - // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a - // production chain - type Barrier = xcm_builder::AllowUnpaidExecutionFrom; - type Weigher = weigher::Weigher; - type Trader = (); - type ResponseHandler = (); - type AssetTrap = (); - type AssetLocker = (); - type AssetExchanger = (); - type AssetClaims = (); - type SubscriptionService = (); - type PalletInstancesInfo = (); - type FeeManager = (); - type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; - type MessageExporter = (); - type UniversalAliases = Nothing; - type CallDispatcher = RuntimeCall; - type SafeCallFilter = Everything; - type Aliasers = Nothing; + type RuntimeCall = RuntimeCall; + type XcmSender = (); + type AssetTransactor = asset_transactor::AssetTransactor; + type OriginConverter = (); + type IsReserve = is_reserve::IsReserve; + type IsTeleporter = (); + type UniversalLocation = UniversalLocation; + // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a production chain + type Barrier = xcm_builder::AllowUnpaidExecutionFrom; + type Weigher = weigher::Weigher; + type Trader = (); + type ResponseHandler = (); + type AssetTrap = (); + type AssetLocker = (); + type AssetExchanger = (); + type AssetClaims = (); + type SubscriptionService = (); + type PalletInstancesInfo = (); + type FeeManager = (); + type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; + type TransactionalProcessor = FrameTransactionalProcessor; } pub type LocalOriginToLocation = SignedToAccountId32; impl pallet_xcm::Config for Runtime { - // We turn off sending for these tests - type SendXcmOrigin = EnsureXcmOrigin; - type XcmRouter = super::super::network::ParachainXcmRouter; // Provided by xcm-simulator - // Anyone can execute XCM programs - type ExecuteXcmOrigin = EnsureXcmOrigin; - // We execute any type of program - type XcmExecuteFilter = Everything; - // How we execute programs - type XcmExecutor = XcmExecutor; - // We don't allow teleports - type XcmTeleportFilter = Nothing; - // We allow all reserve transfers - type XcmReserveTransferFilter = Everything; - // Same weigher executor uses to weigh XCM programs - type Weigher = weigher::Weigher; - // Same universal location - type UniversalLocation = UniversalLocation; - // No version discovery needed + // We turn off sending for these tests + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = super::super::network::ParachainXcmRouter; // Provided by xcm-simulator + // Anyone can execute XCM programs + type ExecuteXcmOrigin = EnsureXcmOrigin; + // We execute any type of program + type XcmExecuteFilter = Everything; + // How we execute programs + type XcmExecutor = XcmExecutor; + // We don't allow teleports + type XcmTeleportFilter = Nothing; + // We allow all reserve transfers + type XcmReserveTransferFilter = Everything; + // Same weigher executor uses to weigh XCM programs + type Weigher = weigher::Weigher; + // Same universal location + type UniversalLocation = UniversalLocation; + // No version discovery needed const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 0; type AdvertisedXcmVersion = frame::traits::ConstU32<3>; type AdminOrigin = frame_system::EnsureRoot; - // No locking + // No locking type TrustedLockers = (); type MaxLockers = frame::traits::ConstU32<0>; type MaxRemoteLockConsumers = frame::traits::ConstU32<0>; type RemoteLockConsumerIdentifier = (); - // How to turn locations into accounts + // How to turn locations into accounts type SovereignAccountOf = LocationToAccountId; - // A currency to pay for things and its matcher, we are using the relay token + // A currency to pay for things and its matcher, we are using the relay token type Currency = Balances; type CurrencyMatcher = IsConcrete; - // Pallet benchmarks, no need for this example + // Pallet benchmarks, no need for this example type WeightInfo = pallet_xcm::TestWeightInfo; - // Runtime types - type RuntimeOrigin = RuntimeOrigin; - type RuntimeCall = RuntimeCall; - type RuntimeEvent = RuntimeEvent; + // Runtime types + type RuntimeOrigin = RuntimeOrigin; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs index fbc1a3fdcb392..f41c2ced8852f 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs @@ -1,13 +1,16 @@ //! Relay chain runtime mock. -use frame::{ - deps::{frame_support::weights::WeightMeter, sp_runtime::AccountId32}, - prelude::*, - runtime::prelude::*, - traits::{IdentityLookup, ProcessMessage, ProcessMessageError}, +use frame::prelude::*; +use frame::runtime::prelude::*; +use frame::deps::{ + sp_runtime::AccountId32, + frame_support::weights::WeightMeter, }; -use polkadot_runtime_parachains::inclusion::{AggregateMessageOrigin, UmpQueueId}; -use xcm::v3::prelude::*; +use frame::traits::{IdentityLookup, ProcessMessage, ProcessMessageError}; +use polkadot_runtime_parachains::{ + inclusion::{AggregateMessageOrigin, UmpQueueId}, +}; +use xcm::v4::prelude::*; mod xcm_config; use xcm_config::XcmConfig; @@ -29,7 +32,7 @@ impl frame_system::Config for Runtime { #[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)] impl pallet_balances::Config for Runtime { - type AccountStore = System; + type AccountStore = System; } type Block = frame_system::mocking::MockBlock; @@ -80,6 +83,6 @@ construct_runtime! { System: frame_system, Balances: pallet_balances, MessageQueue: pallet_message_queue, - XcmPallet: pallet_xcm, + XcmPallet: pallet_xcm, } } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs index 9184fbdba140d..60dfa09966803 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs @@ -1,135 +1,135 @@ //! Relay chain XCM configuration -use frame::{ - deps::frame_system, - runtime::prelude::*, - traits::{Everything, Nothing}, -}; -use xcm::v3::prelude::*; +use frame::runtime::prelude::*; +use frame::traits::{Nothing, Everything}; +use frame::deps::frame_system; use xcm_builder::{ - AccountId32Aliases, CurrencyAdapter, DescribeAllTerminal, DescribeFamily, EnsureXcmOrigin, - HashedDescription, IsConcrete, SignedToAccountId32, + IsConcrete, CurrencyAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, + EnsureXcmOrigin, SignedToAccountId32, AccountId32Aliases, FrameTransactionalProcessor, }; +use xcm::v4::prelude::*; use xcm_executor::XcmExecutor; -use super::{AccountId, Balances, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin}; +use super::{ + Runtime, Balances, AccountId, RuntimeCall, RuntimeOrigin, RuntimeEvent, +}; parameter_types! { - pub HereLocation: MultiLocation = MultiLocation::here(); - pub ThisNetwork: NetworkId = NetworkId::Polkadot; + pub HereLocation: Location = Location::here(); + pub ThisNetwork: NetworkId = NetworkId::Polkadot; } pub type LocationToAccountId = ( - HashedDescription>, - AccountId32Aliases, + HashedDescription>, + AccountId32Aliases, ); mod asset_transactor { - use super::*; + use super::*; - /// AssetTransactor for handling the relay chain token - pub type CurrencyTransactor = CurrencyAdapter< - // Use this Currency implementation - Balances, - // Use this transactor for dealing with the native token - IsConcrete, - // How to convert an XCM MultiLocation into a local account id - LocationToAccountId, - // The account id type, needed because Currency is generic over it - AccountId, - // Not tracking teleports - (), - >; + /// AssetTransactor for handling the relay chain token + pub type CurrencyTransactor = CurrencyAdapter< + // Use this Currency implementation + Balances, + // Use this transactor for dealing with the native token + IsConcrete, + // How to convert an XCM Location into a local account id + LocationToAccountId, + // The account id type, needed because Currency is generic over it + AccountId, + // Not tracking teleports + (), + >; - /// All asset transactors, in this case only one - pub type AssetTransactor = CurrencyTransactor; + /// All asset transactors, in this case only one + pub type AssetTransactor = CurrencyTransactor; } mod weigher { - use super::*; - use xcm_builder::FixedWeightBounds; + use super::*; + use xcm_builder::FixedWeightBounds; - parameter_types! { - pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); - pub const MaxInstructions: u32 = 100; - } + parameter_types! { + pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); + pub const MaxInstructions: u32 = 100; + } - pub type Weigher = FixedWeightBounds; + pub type Weigher = FixedWeightBounds; } parameter_types! { - pub UniversalLocation: InteriorMultiLocation = X1(GlobalConsensus(NetworkId::Polkadot)); + pub UniversalLocation: InteriorLocation = [GlobalConsensus(NetworkId::Polkadot)].into(); } pub struct XcmConfig; impl xcm_executor::Config for XcmConfig { - type RuntimeCall = RuntimeCall; - type XcmSender = (); - type AssetTransactor = asset_transactor::AssetTransactor; - type OriginConverter = (); - // We don't need to recognize anyone as a reserve - type IsReserve = (); - type IsTeleporter = (); - type UniversalLocation = UniversalLocation; - // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a - // production chain - type Barrier = xcm_builder::AllowUnpaidExecutionFrom; - type Weigher = weigher::Weigher; - type Trader = (); - type ResponseHandler = (); - type AssetTrap = (); - type AssetLocker = (); - type AssetExchanger = (); - type AssetClaims = (); - type SubscriptionService = (); - type PalletInstancesInfo = (); - type FeeManager = (); - type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; - type MessageExporter = (); - type UniversalAliases = Nothing; - type CallDispatcher = RuntimeCall; - type SafeCallFilter = Everything; - type Aliasers = Nothing; + type RuntimeCall = RuntimeCall; + type XcmSender = (); + type AssetTransactor = asset_transactor::AssetTransactor; + type OriginConverter = (); + // We don't need to recognize anyone as a reserve + type IsReserve = (); + type IsTeleporter = (); + type UniversalLocation = UniversalLocation; + // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a production chain + type Barrier = xcm_builder::AllowUnpaidExecutionFrom; + type Weigher = weigher::Weigher; + type Trader = (); + type ResponseHandler = (); + type AssetTrap = (); + type AssetLocker = (); + type AssetExchanger = (); + type AssetClaims = (); + type SubscriptionService = (); + type PalletInstancesInfo = (); + type FeeManager = (); + type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; + type TransactionalProcessor = FrameTransactionalProcessor; } pub type LocalOriginToLocation = SignedToAccountId32; impl pallet_xcm::Config for Runtime { - // No one can call `send` - type SendXcmOrigin = EnsureXcmOrigin; - type XcmRouter = super::super::network::RelayChainXcmRouter; // Provided by xcm-simulator - // Anyone can execute XCM programs - type ExecuteXcmOrigin = EnsureXcmOrigin; - // We execute any type of program - type XcmExecuteFilter = Everything; - // How we execute programs - type XcmExecutor = XcmExecutor; - // We don't allow teleports - type XcmTeleportFilter = Nothing; - // We allow all reserve transfers - type XcmReserveTransferFilter = Everything; - // Same weigher executor uses to weigh XCM programs - type Weigher = weigher::Weigher; - // Same universal location - type UniversalLocation = UniversalLocation; - // No version discovery needed + // No one can call `send` + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = super::super::network::RelayChainXcmRouter; // Provided by xcm-simulator + // Anyone can execute XCM programs + type ExecuteXcmOrigin = EnsureXcmOrigin; + // We execute any type of program + type XcmExecuteFilter = Everything; + // How we execute programs + type XcmExecutor = XcmExecutor; + // We don't allow teleports + type XcmTeleportFilter = Nothing; + // We allow all reserve transfers + type XcmReserveTransferFilter = Everything; + // Same weigher executor uses to weigh XCM programs + type Weigher = weigher::Weigher; + // Same universal location + type UniversalLocation = UniversalLocation; + // No version discovery needed const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 0; type AdvertisedXcmVersion = frame::traits::ConstU32<3>; type AdminOrigin = frame_system::EnsureRoot; - // No locking + // No locking type TrustedLockers = (); type MaxLockers = frame::traits::ConstU32<0>; type MaxRemoteLockConsumers = frame::traits::ConstU32<0>; type RemoteLockConsumerIdentifier = (); - // How to turn locations into accounts + // How to turn locations into accounts type SovereignAccountOf = LocationToAccountId; - // A currency to pay for things and its matcher, we are using the relay token + // A currency to pay for things and its matcher, we are using the relay token type Currency = Balances; type CurrencyMatcher = IsConcrete; - // Pallet benchmarks, no need for this example + // Pallet benchmarks, no need for this example type WeightInfo = pallet_xcm::TestWeightInfo; - // Runtime types - type RuntimeOrigin = RuntimeOrigin; - type RuntimeCall = RuntimeCall; - type RuntimeEvent = RuntimeEvent; + // Runtime types + type RuntimeOrigin = RuntimeOrigin; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; } diff --git a/polkadot/xcm/docs/src/mock_message_queue.rs b/polkadot/xcm/docs/src/mock_message_queue.rs index bd1bb5904aacd..9b610a75e9555 100644 --- a/polkadot/xcm/docs/src/mock_message_queue.rs +++ b/polkadot/xcm/docs/src/mock_message_queue.rs @@ -19,7 +19,7 @@ use codec::{Decode, Encode}; use polkadot_parachain_primitives::primitives::{ - DmpMessageHandler, Id as ParaId, XcmpMessageFormat, XcmpMessageHandler, + DmpMessageHandler, Id as ParaId, XcmpMessageFormat, XcmpMessageHandler, }; use polkadot_primitives::BlockNumber as RelayBlockNumber; use sp_runtime::traits::{Get, Hash}; @@ -31,140 +31,144 @@ pub use pallet::*; #[frame::pallet] pub mod pallet { - use super::*; - use frame::{deps::frame_system, prelude::*}; - - #[pallet::config] - pub trait Config: frame_system::Config { - type RuntimeEvent: From> + IsType<::RuntimeEvent>; - type XcmExecutor: ExecuteXcm; - } - - #[pallet::call] - impl Pallet {} - - #[pallet::pallet] - #[pallet::without_storage_info] - pub struct Pallet(_); - - #[pallet::storage] - #[pallet::getter(fn parachain_id)] - pub(super) type ParachainId = StorageValue<_, ParaId, ValueQuery>; - - #[pallet::storage] - #[pallet::getter(fn received_dmp)] - /// A queue of received DMP messages - pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; - - impl Get for Pallet { - fn get() -> ParaId { - Self::parachain_id() - } - } - - pub type MessageId = [u8; 32]; - - #[pallet::event] - #[pallet::generate_deposit(pub(super) fn deposit_event)] - pub enum Event { - // XCMP - /// Some XCM was executed OK. - Success(Option), - /// Some XCM failed. - Fail(Option, XcmError), - /// Bad XCM version used. - BadVersion(Option), - /// Bad XCM format used. - BadFormat(Option), - - // DMP - /// Downward message is invalid XCM. - InvalidFormat(MessageId), - /// Downward message is unsupported version of XCM. - UnsupportedVersion(MessageId), - /// Downward message executed with the given outcome. - ExecutedDownward(MessageId, Outcome), - } - - impl Pallet { - pub fn set_para_id(para_id: ParaId) { - ParachainId::::put(para_id); - } - - fn handle_xcmp_message( - sender: ParaId, - _sent_at: RelayBlockNumber, - xcm: VersionedXcm, - max_weight: xcm::latest::Weight, - ) -> Result { - let hash = Encode::using_encoded(&xcm, T::Hashing::hash); - let message_hash = Encode::using_encoded(&xcm, sp_io::hashing::blake2_256); - let (result, event) = match Xcm::::try_from(xcm) { - Ok(xcm) => { - let location = (Parent, Parachain(sender.into())); - match T::XcmExecutor::execute_xcm(location, xcm, message_hash, max_weight) { - Outcome::Error(e) => (Err(e.clone()), Event::Fail(Some(hash), e)), - Outcome::Complete(w) => (Ok(w), Event::Success(Some(hash))), - // As far as the caller is concerned, this was dispatched without error, so - // we just report the weight used. - Outcome::Incomplete(w, e) => (Ok(w), Event::Fail(Some(hash), e)), - } - }, - Err(()) => (Err(XcmError::UnhandledXcmVersion), Event::BadVersion(Some(hash))), - }; - Self::deposit_event(event); - result - } - } - - impl XcmpMessageHandler for Pallet { - fn handle_xcmp_messages<'a, I: Iterator>( - iter: I, - max_weight: xcm::latest::Weight, - ) -> xcm::latest::Weight { - for (sender, sent_at, data) in iter { - let mut data_ref = data; - let _ = XcmpMessageFormat::decode(&mut data_ref) - .expect("Simulator encodes with versioned xcm format; qed"); - - let mut remaining_fragments = &data_ref[..]; - while !remaining_fragments.is_empty() { - if let Ok(xcm) = - VersionedXcm::::decode(&mut remaining_fragments) - { - let _ = Self::handle_xcmp_message(sender, sent_at, xcm, max_weight); - } else { - debug_assert!(false, "Invalid incoming XCMP message data"); - } - } - } - max_weight - } - } - - impl DmpMessageHandler for Pallet { - fn handle_dmp_messages( - iter: impl Iterator)>, - limit: frame::prelude::Weight, - ) -> frame::prelude::Weight { - for (_i, (_sent_at, data)) in iter.enumerate() { - let id = sp_io::hashing::blake2_256(&data[..]); - let maybe_versioned = VersionedXcm::::decode(&mut &data[..]); - match maybe_versioned { - Err(_) => { - Self::deposit_event(Event::InvalidFormat(id)); - }, - Ok(versioned) => match Xcm::try_from(versioned) { - Err(()) => Self::deposit_event(Event::UnsupportedVersion(id)), - Ok(x) => { - let outcome = T::XcmExecutor::execute_xcm(Parent, x.clone(), id, limit); - >::append(x); - Self::deposit_event(Event::ExecutedDownward(id, outcome)); - }, - }, - } - } - limit - } - } + use super::*; + use frame::prelude::*; + use frame::deps::frame_system; + + #[pallet::config] + pub trait Config: frame_system::Config { + type RuntimeEvent: From> + IsType<::RuntimeEvent>; + type XcmExecutor: ExecuteXcm; + } + + #[pallet::call] + impl Pallet {} + + #[pallet::pallet] + #[pallet::without_storage_info] + pub struct Pallet(_); + + #[pallet::storage] + #[pallet::getter(fn parachain_id)] + pub(super) type ParachainId = StorageValue<_, ParaId, ValueQuery>; + + #[pallet::storage] + #[pallet::getter(fn received_dmp)] + /// A queue of received DMP messages + pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; + + impl Get for Pallet { + fn get() -> ParaId { + Self::parachain_id() + } + } + + pub type MessageId = [u8; 32]; + + #[pallet::event] + #[pallet::generate_deposit(pub(super) fn deposit_event)] + pub enum Event { + // XCMP + /// Some XCM was executed OK. + Success(Option), + /// Some XCM failed. + Fail(Option, XcmError), + /// Bad XCM version used. + BadVersion(Option), + /// Bad XCM format used. + BadFormat(Option), + + // DMP + /// Downward message is invalid XCM. + InvalidFormat(MessageId), + /// Downward message is unsupported version of XCM. + UnsupportedVersion(MessageId), + /// Downward message executed with the given outcome. + ExecutedDownward(MessageId, Outcome), + } + + impl Pallet { + pub fn set_para_id(para_id: ParaId) { + ParachainId::::put(para_id); + } + + fn handle_xcmp_message( + sender: ParaId, + _sent_at: RelayBlockNumber, + xcm: VersionedXcm, + max_weight: xcm::latest::Weight, + ) -> Result { + let hash = Encode::using_encoded(&xcm, T::Hashing::hash); + let mut message_hash = Encode::using_encoded(&xcm, sp_io::hashing::blake2_256); + let (result, event) = match Xcm::::try_from(xcm) { + Ok(xcm) => { + let location = (Parent, Parachain(sender.into())); + match T::XcmExecutor::prepare_and_execute(location, xcm, &mut message_hash, max_weight, Weight::zero()) { + Outcome::Error { error } => (Err(error.clone()), Event::Fail(Some(hash), error)), + Outcome::Complete { used } => (Ok(used), Event::Success(Some(hash))), + // As far as the caller is concerned, this was dispatched without error, so + // we just report the weight used. + Outcome::Incomplete { used, error } => (Ok(used), Event::Fail(Some(hash), error)), + } + } + Err(()) => ( + Err(XcmError::UnhandledXcmVersion), + Event::BadVersion(Some(hash)), + ), + }; + Self::deposit_event(event); + result + } + } + + impl XcmpMessageHandler for Pallet { + fn handle_xcmp_messages<'a, I: Iterator>( + iter: I, + max_weight: xcm::latest::Weight, + ) -> xcm::latest::Weight { + for (sender, sent_at, data) in iter { + let mut data_ref = data; + let _ = XcmpMessageFormat::decode(&mut data_ref) + .expect("Simulator encodes with versioned xcm format; qed"); + + let mut remaining_fragments = &data_ref[..]; + while !remaining_fragments.is_empty() { + if let Ok(xcm) = + VersionedXcm::::decode(&mut remaining_fragments) + { + let _ = Self::handle_xcmp_message(sender, sent_at, xcm, max_weight); + } else { + debug_assert!(false, "Invalid incoming XCMP message data"); + } + } + } + max_weight + } + } + + impl DmpMessageHandler for Pallet { + fn handle_dmp_messages( + iter: impl Iterator)>, + limit: frame::prelude::Weight, + ) -> frame::prelude::Weight { + for (_i, (_sent_at, data)) in iter.enumerate() { + let mut id = sp_io::hashing::blake2_256(&data[..]); + let maybe_versioned = VersionedXcm::::decode(&mut &data[..]); + match maybe_versioned { + Err(_) => { + Self::deposit_event(Event::InvalidFormat(id)); + } + Ok(versioned) => match Xcm::try_from(versioned) { + Err(()) => Self::deposit_event(Event::UnsupportedVersion(id)), + Ok(x) => { + let outcome = T::XcmExecutor::prepare_and_execute(Parent, x.clone(), &mut id, limit, Weight::zero()); + >::append(x); + Self::deposit_event(Event::ExecutedDownward(id, outcome)); + } + }, + } + } + limit + } + } } From 7619a741fd5be928de4aff5c097e7812fb513c40 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 10:45:34 +0100 Subject: [PATCH 09/37] chore(xcm-docs): Replace deprecated CurrencyAdapter with FungibleAdapter --- .../src/cookbook/relay_token_transactor/network.rs | 2 +- .../relay_token_transactor/parachain/xcm_config.rs | 12 ++++++------ .../relay_token_transactor/relay_chain/xcm_config.rs | 12 ++++++------ polkadot/xcm/docs/src/mock_message_queue.rs | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs index 5eb0b8160f624..256d4b982b178 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs @@ -13,7 +13,7 @@ pub const ALICE: AccountId32 = AccountId32::new([0u8; 32]); pub const BOB: AccountId32 = AccountId32::new([1u8; 32]); pub const UNITS: u64 = 10_000_000_000; pub const CENTS: u64 = 100_000_000; -pub const INITIAL_BALANCE: u64 = 1 * UNITS; +pub const INITIAL_BALANCE: u64 = UNITS; decl_test_parachain! { pub struct ParaA { diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs index bfbafedeab0c6..100ce4de618ea 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs @@ -4,7 +4,7 @@ use frame::runtime::prelude::*; use frame::traits::{Nothing, Everything}; use frame::deps::frame_system; use xcm_builder::{ - IsConcrete, CurrencyAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, + IsConcrete, FungibleAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, EnsureXcmOrigin, SignedToAccountId32, AccountId32Aliases, FrameTransactionalProcessor, }; use xcm::v4::prelude::*; @@ -29,21 +29,21 @@ mod asset_transactor { use super::*; /// AssetTransactor for handling the relay chain token - pub type CurrencyTransactor = CurrencyAdapter< - // Use this Currency implementation + pub type FungibleTransactor = FungibleAdapter< + // Use this `fungible` implementation Balances, - // Use this transactor for dealing with the relay chain token + // This transactor for dealing with the relay chain token IsConcrete, // How to convert an XCM Location into a local account id LocationToAccountId, - // The account id type, needed because Currency is generic over it + // The account id type, needed because `fungible` is generic over it AccountId, // Not tracking teleports (), >; /// All asset transactors, in this case only one - pub type AssetTransactor = CurrencyTransactor; + pub type AssetTransactor = FungibleTransactor; } #[docify::export] diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs index 60dfa09966803..b7e5792fed8c6 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs @@ -4,7 +4,7 @@ use frame::runtime::prelude::*; use frame::traits::{Nothing, Everything}; use frame::deps::frame_system; use xcm_builder::{ - IsConcrete, CurrencyAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, + IsConcrete, FungibleAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, EnsureXcmOrigin, SignedToAccountId32, AccountId32Aliases, FrameTransactionalProcessor, }; use xcm::v4::prelude::*; @@ -28,21 +28,21 @@ mod asset_transactor { use super::*; /// AssetTransactor for handling the relay chain token - pub type CurrencyTransactor = CurrencyAdapter< - // Use this Currency implementation + pub type FungibleTransactor = FungibleAdapter< + // Use this `fungible` implementation Balances, - // Use this transactor for dealing with the native token + // This transactor handles the native token IsConcrete, // How to convert an XCM Location into a local account id LocationToAccountId, - // The account id type, needed because Currency is generic over it + // The account id type, needed because `fungible` is generic over it AccountId, // Not tracking teleports (), >; /// All asset transactors, in this case only one - pub type AssetTransactor = CurrencyTransactor; + pub type AssetTransactor = FungibleTransactor; } mod weigher { diff --git a/polkadot/xcm/docs/src/mock_message_queue.rs b/polkadot/xcm/docs/src/mock_message_queue.rs index 9b610a75e9555..693af759cb1ad 100644 --- a/polkadot/xcm/docs/src/mock_message_queue.rs +++ b/polkadot/xcm/docs/src/mock_message_queue.rs @@ -104,7 +104,7 @@ pub mod pallet { Ok(xcm) => { let location = (Parent, Parachain(sender.into())); match T::XcmExecutor::prepare_and_execute(location, xcm, &mut message_hash, max_weight, Weight::zero()) { - Outcome::Error { error } => (Err(error.clone()), Event::Fail(Some(hash), error)), + Outcome::Error { error } => (Err(error), Event::Fail(Some(hash), error)), Outcome::Complete { used } => (Ok(used), Event::Success(Some(hash))), // As far as the caller is concerned, this was dispatched without error, so // we just report the weight used. @@ -131,7 +131,7 @@ pub mod pallet { let _ = XcmpMessageFormat::decode(&mut data_ref) .expect("Simulator encodes with versioned xcm format; qed"); - let mut remaining_fragments = &data_ref[..]; + let mut remaining_fragments = data_ref; while !remaining_fragments.is_empty() { if let Ok(xcm) = VersionedXcm::::decode(&mut remaining_fragments) From d6badb124921813d81235cd6aafa59764fc2b1a4 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 10:47:00 +0100 Subject: [PATCH 10/37] Update polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs index 773700381c844..a60ec9f31d8fe 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs @@ -1,6 +1,6 @@ -//! # Relay asset transactor +//! # Relay Asset Transactor //! -//! This example shows how to configure a parachain to only deal with the relay chain token. +//! This example shows how to configure a parachain to only deal with the Relay Chain token. //! //! The first step is using the [`xcm_builder::CurrencyAdapter`] to create an `AssetTransactor` that //! can handle the relay chain token. From 2df362a94c8e0996f54f53f1520358fc47398bd1 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 10:47:19 +0100 Subject: [PATCH 11/37] Update polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs index a60ec9f31d8fe..e19ee22b2993c 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs @@ -8,7 +8,7 @@ //! //! The second step is to configure `IsReserve` to recognize the relay chain as a reserve for its //! own asset. -//! With this, you'll be able to easily get derivatives from the relay chain by using the xcm +//! With this, you'll be able to easily mint a derivative asset, backed one-to-on from the Relay Chain, by using the xcm //! pallet's `transfer_assets` extrinsic. //! //! The `IsReserve` type takes a type that implements `ContainsPair`. From 4d78127181618f98b577b6dd5c27c7cc621e522c Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 10:47:38 +0100 Subject: [PATCH 12/37] Update polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- .../xcm/docs/src/cookbook/relay_token_transactor/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs index e19ee22b2993c..189e9ef19a35f 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs @@ -24,12 +24,12 @@ /// The parachain runtime for this example pub mod parachain; -/// The relay chain runtime for this example +/// The relay chain runtime for this example. pub mod relay_chain; -/// The network for this example +/// The network for this example. pub mod network; -/// Tests for this example +/// Tests for this example. #[cfg(test)] pub mod tests; From 38b9533695719376a4f32004698c75b888e4d293 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 10:56:52 +0100 Subject: [PATCH 13/37] Update polkadot/xcm/docs/src/glossary.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/glossary.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/glossary.rs b/polkadot/xcm/docs/src/glossary.rs index 90e8e9d74e132..25c6d1c5e6ead 100644 --- a/polkadot/xcm/docs/src/glossary.rs +++ b/polkadot/xcm/docs/src/glossary.rs @@ -33,7 +33,7 @@ //! //! ## Sovereign account //! -//! An account on a consensus system that is controlled by an account in another consensus system. +//! An account in a consensus system that is controlled by an account in another consensus system. //! //! ## Teleport //! From f038965380124bb63bba2fbe6e6fa9d9656338b8 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 10:57:14 +0100 Subject: [PATCH 14/37] Update polkadot/xcm/docs/src/fundamentals.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/fundamentals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index 99528e856a9a6..d3703a757c760 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -108,7 +108,7 @@ //! //! ## Instructions //! -//! Given the vocabulary to talk about both locations, chains and accounts, and assets, we now need +//! Given the vocabulary to talk about both locations -- chains and accounts -- and assets, we now need //! a way to express what we want the consensus system to do when executing our programs. //! We need a way of writing our programs. //! From 834492fc2df163da86069db788a5f9f79409897a Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 10:57:34 +0100 Subject: [PATCH 15/37] Update polkadot/xcm/docs/src/lib.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/lib.rs b/polkadot/xcm/docs/src/lib.rs index 6ed5a5243761c..94ca82bc6b1cb 100644 --- a/polkadot/xcm/docs/src/lib.rs +++ b/polkadot/xcm/docs/src/lib.rs @@ -31,7 +31,7 @@ /// Fundamentals of the XCM language. The virtual machine, instructions, locations and assets. pub mod fundamentals; -/// Step-by-step guides to setup an XCM environment and start hacking. +/// Step-by-step guides to set up an XCM environment and start hacking. pub mod guides; /// Useful recipes for programs and configurations. From f7278b61557b89aad183417e60697c68bfeb4eb6 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 10:58:02 +0100 Subject: [PATCH 16/37] Update polkadot/xcm/docs/src/glossary.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/glossary.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/glossary.rs b/polkadot/xcm/docs/src/glossary.rs index 25c6d1c5e6ead..36b02afd28a45 100644 --- a/polkadot/xcm/docs/src/glossary.rs +++ b/polkadot/xcm/docs/src/glossary.rs @@ -40,7 +40,7 @@ //! A way of transferring assets between two consensus systems without the need of a third party. //! It consists of the sender system burning the asset that wants to be sent over and the recipient //! minting an equivalent amount of that asset. It requires a lot of trust between the two systems, -//! since failure to mint or burn will reduce the total issuance of the token. +//! since failure to mint or burn will reduce or increase the total issuance of the token. //! //! ## Reserve asset transfer //! From 0d3092f9bac91f0de5ca35b64dd3c5195a6b1936 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 10:58:51 +0100 Subject: [PATCH 17/37] Update polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs index 8fa9939f40fa8..a9a085292ed4c 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs @@ -13,7 +13,7 @@ use super::{ // She reserve transfers it to BOB's account on the parachain. // BOB ends up having some relay chain token derivatives on the parachain. // -// NOTE: We could've used both ALICE on both chains because it's a different account, +// NOTE: We could've used ALICE on both chains because it's a different account, // but using ALICE and BOB makes it clearer. #[docify::export] #[test] From cd6746d93c83c68e791daa975c9688a1cb469d54 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 11:00:52 +0100 Subject: [PATCH 18/37] Update polkadot/xcm/docs/src/fundamentals.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/fundamentals.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index d3703a757c760..86fea746a6ca3 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -1,7 +1,7 @@ //! # XCM Fundamentals //! -//! XCM standardizes usual actions users take in consensus systems. -//! For example, dealing with assets locally, on other chains, and locking them. +//! XCM standardizes usual actions users take in consensus systems, for example +//! dealing with assets locally, on other chains, and locking them. //! XCM programs can both be executed locally or sent to a different consensus system. //! Examples of consensus systems are blockchains and smart contracts. //! From 3001aa8f1cb223b53229164749308ffca0759233 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 11:01:08 +0100 Subject: [PATCH 19/37] Update polkadot/xcm/docs/src/fundamentals.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/fundamentals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index 86fea746a6ca3..ab301b6f7789a 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -15,7 +15,7 @@ //! //! XCM is the language, it deals with interpreting and executing programs. //! It does not deal with actually **sending** these programs from one consensus system to another. -//! This responsability falls to a transport protocol. +//! This responsibility falls to a transport protocol. //! XCM can even be interpreted on the local system, with no need of a transport protocol. //! However, automatic and composable workflows can be achieved via the use of one. //! From d2605cf62ecb1221f05844c03fb3b23a4a2058c2 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 11:01:22 +0100 Subject: [PATCH 20/37] Update polkadot/xcm/docs/src/fundamentals.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/fundamentals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index ab301b6f7789a..8710788a17fa2 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -23,7 +23,7 @@ //! It's the virtual machine that executes XCM programs. //! It is a specification that comes with the language. //! -//! For this docs, we'll use a Rust implementation of XCM and the XCVM, consisting of the following +//! For these docs, we'll use a Rust implementation of XCM and the XCVM, consisting of the following //! parts: //! - XCM: Holds the definition of an XCM program, the instructions and main concepts. //! - Executor: Implements the XCVM, capable of executing XCMs. Highly configurable. From a2b8978368be41de17b6bc0ecd6ddd0527db3263 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 11:01:42 +0100 Subject: [PATCH 21/37] Update polkadot/xcm/docs/src/fundamentals.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/fundamentals.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index 8710788a17fa2..1be5292a7e24f 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -45,8 +45,8 @@ //! If any change in A's state implies a change in B's state, then we say A is interior to B. #![doc = simple_mermaid::mermaid!("../mermaid/location_hierarchy.mmd")] //! -//! Parachains are interior to their relaychain, since a change in their state implies a change in -//! the relaychain's state. +//! Parachains are interior to their Relay Chain, since a change in their state implies a change in +//! the Relay Chain's state. //! //! Because of this hierarchy, the way we represent locations is with both a number of **parents**, //! times we move __up__ the hierarchy, and a sequence of **junctions**, the steps we take __down__ From 3d022af762d35380f2ca3072b93337da76c265de Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 11:02:02 +0100 Subject: [PATCH 22/37] Update polkadot/xcm/docs/src/fundamentals.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/fundamentals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index 1be5292a7e24f..65faffb598aa6 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -50,7 +50,7 @@ //! //! Because of this hierarchy, the way we represent locations is with both a number of **parents**, //! times we move __up__ the hierarchy, and a sequence of **junctions**, the steps we take __down__ -//! the hierarchy after going up the specified amount of parents. +//! the hierarchy after going up the specified number of parents. //! //! In Rust, this is specified with the following datatype: //! ```ignore From 1863b25f3300488c427a5f8a2c3944cd44d196d8 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 11:02:21 +0100 Subject: [PATCH 23/37] Update polkadot/xcm/docs/src/fundamentals.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/fundamentals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index 65faffb598aa6..838e6a77a2046 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -60,7 +60,7 @@ //! } //! ``` //! -//! Many junctions are available, parachains, pallets, 32 and 20 byte accounts, governance bodies, +//! Many junctions are available; parachains, pallets, 32 and 20 byte accounts, governance bodies, //! and arbitrary indices are the most common. //! A full list of available junctions can be found in the [format](https://github.com/paritytech/xcm-format#interior-locations--junctions) //! and [Junction enum](xcm::v3::prelude::Junction). From 17aeea0de07e0b9deef89b5255f77c5cb2f1ed93 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 11:02:33 +0100 Subject: [PATCH 24/37] Update polkadot/xcm/docs/src/fundamentals.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> --- polkadot/xcm/docs/src/fundamentals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index 838e6a77a2046..dc1b329d376ac 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -91,7 +91,7 @@ //! We want to be able to reference assets in our XCM programs, if only to be able to pay for fees. //! Assets are represented using locations. //! -//! The native asset of a chain is represented by the location to that chain. +//! The native asset of a chain is represented by the location of that chain. //! For example, DOT is represented by the location of the Polkadot relaychain. //! If the interpreting chain has its own asset, it would be represented by `Here`. //! From 845cb40154ecc4ff9a3be3f828453e31699bbda3 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 15 Feb 2024 20:28:19 +0100 Subject: [PATCH 25/37] docs(xcm-docs): Improve relay token transactor recipe --- Cargo.lock | 2 +- polkadot/xcm/docs/Cargo.toml | 2 +- polkadot/xcm/docs/src/cookbook/mod.rs | 8 +- .../cookbook/relay_token_transactor/mod.rs | 2 +- .../parachain/xcm_config.rs | 37 +++++++-- .../relay_token_transactor/relay_chain/mod.rs | 1 + .../relay_chain/xcm_config.rs | 2 +- .../cookbook/relay_token_transactor/tests.rs | 83 ++++++++++++------- 8 files changed, 92 insertions(+), 45 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e6e3fa0123b30..51f4f7d4ec9e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -22145,7 +22145,7 @@ dependencies = [ [[package]] name = "xcm-docs" -version = "0.0.1" +version = "0.1.0" dependencies = [ "docify", "frame", diff --git a/polkadot/xcm/docs/Cargo.toml b/polkadot/xcm/docs/Cargo.toml index 59e18c0e81b9e..594bbc47f5212 100644 --- a/polkadot/xcm/docs/Cargo.toml +++ b/polkadot/xcm/docs/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "xcm-docs" description = "Documentation and guides for XCM" -version = "0.0.1" +version = "0.1.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0" repository.workspace = true authors.workspace = true diff --git a/polkadot/xcm/docs/src/cookbook/mod.rs b/polkadot/xcm/docs/src/cookbook/mod.rs index d84d62197766a..d72fd91a34d0f 100644 --- a/polkadot/xcm/docs/src/cookbook/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/mod.rs @@ -1,7 +1,9 @@ //! # XCM Cookbook //! -//! A collection of tested examples to do useful things in XCM. +//! A collection of XCM recipes. +//! +//! Each recipe is tested and explains all the code necessary to run it -- they're not just snippets to copy and paste. -/// Configuring a parachain that only uses the relay chain token. -/// Useful for a parachain that only wants to deal with DOT. +/// Configuring a parachain that only uses the Relay Chain native token. +/// In the case of Polkadot, this recipe will show you how to launch a parachain with no native token -- dealing only on DOT. pub mod relay_token_transactor; diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs index 189e9ef19a35f..681028465d436 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs @@ -2,7 +2,7 @@ //! //! This example shows how to configure a parachain to only deal with the Relay Chain token. //! -//! The first step is using the [`xcm_builder::CurrencyAdapter`] to create an `AssetTransactor` that +//! The first step is using the [`xcm_builder::FungibleAdapter`] to create an `AssetTransactor` that //! can handle the relay chain token. #![doc = docify::embed!("src/cookbook/relay_token_transactor/parachain/xcm_config.rs", asset_transactor)] //! diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs index 100ce4de618ea..f1ab1d3ab9ae9 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs @@ -24,38 +24,56 @@ pub type LocationToAccountId = ( AccountId32Aliases, ); +/// Configuration related to asset transactors #[docify::export] mod asset_transactor { use super::*; + parameter_types! { + pub ParentRelayLocation: Location = Location::parent(); + } + /// AssetTransactor for handling the relay chain token pub type FungibleTransactor = FungibleAdapter< - // Use this `fungible` implementation + // Use this implementation of the `fungible::*` traits. + // `Balances` is the name given to the balances pallet in this particular recipe. + // Any implementation of the traits would suffice. Balances, - // This transactor for dealing with the relay chain token - IsConcrete, - // How to convert an XCM Location into a local account id + // This transactor deals with the native token of the Relay Chain. + // This token is referenced by the Location of the Relay Chain relative to this chain + // -- Location::parent(). + IsConcrete, + // How to convert an XCM Location into a local account id. + // This is also something that's configured in the XCM executor. LocationToAccountId, - // The account id type, needed because `fungible` is generic over it + // The type for account ids, only needed because `fungible` is generic over it. AccountId, - // Not tracking teleports + // Not tracking teleports. + // This recipe only uses reserve asset transfers to handle the Relay Chain token. (), >; - /// All asset transactors, in this case only one + /// Actual configuration item that'll be set in the XCM config. + /// A tuple could be used here to have multiple transactors, each (potentially) handling + /// different assets. + /// In this recipe, we only have one. pub type AssetTransactor = FungibleTransactor; } +/// Configuration related to token reserves #[docify::export] mod is_reserve { use super::*; parameter_types! { + /// Reserves are specified using a pair `(AssetFilter, Location)`. + /// Each pair means that the specified Location is a reserve for all the assets in AssetsFilter. + /// Here, we are specifying that the Relay Chain is the reserve location for its native token. pub RelayTokenForRelay: (AssetFilter, Location) = (Wild(AllOf { id: AssetId(Parent.into()), fun: WildFungible }), Parent.into()); } - /// Put it all together + /// The wrapper type xcm_builder::Case is needed in order to use this in the configuration. pub type IsReserve = xcm_builder::Case; } @@ -81,6 +99,7 @@ impl xcm_executor::Config for XcmConfig { type XcmSender = (); type AssetTransactor = asset_transactor::AssetTransactor; type OriginConverter = (); + // The declaration of which Locations are reserves for which Assets. type IsReserve = is_reserve::IsReserve; type IsTeleporter = (); type UniversalLocation = UniversalLocation; @@ -139,7 +158,7 @@ impl pallet_xcm::Config for Runtime { // A currency to pay for things and its matcher, we are using the relay token type Currency = Balances; type CurrencyMatcher = IsConcrete; - // Pallet benchmarks, no need for this example + // Pallet benchmarks, no need for this recipe type WeightInfo = pallet_xcm::TestWeightInfo; // Runtime types type RuntimeOrigin = RuntimeOrigin; diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs index f41c2ced8852f..fead069654551 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs @@ -14,6 +14,7 @@ use xcm::v4::prelude::*; mod xcm_config; use xcm_config::XcmConfig; +pub use xcm_config::LocationToAccountId; pub type AccountId = AccountId32; pub type Balance = u64; diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs index b7e5792fed8c6..9e03755332361 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs @@ -27,7 +27,7 @@ pub type LocationToAccountId = ( mod asset_transactor { use super::*; - /// AssetTransactor for handling the relay chain token + /// AssetTransactor for handling the Relay Chain token pub type FungibleTransactor = FungibleAdapter< // Use this `fungible` implementation Balances, diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs index a9a085292ed4c..0f0827fe4cd9b 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs @@ -2,22 +2,26 @@ use frame::testing_prelude::*; use test_log::test; use xcm::prelude::*; use xcm_simulator::TestExt; +use xcm_executor::traits::ConvertLocation; use super::{ network::{MockNet, ParaA, Relay, ALICE, BOB, CENTS, INITIAL_BALANCE}, parachain, relay_chain, }; -// Scenario: -// ALICE on the relay chain holds some relay chain token. -// She reserve transfers it to BOB's account on the parachain. -// BOB ends up having some relay chain token derivatives on the parachain. -// -// NOTE: We could've used ALICE on both chains because it's a different account, -// but using ALICE and BOB makes it clearer. #[docify::export] #[test] fn reserve_asset_transfers_work() { + // Scenario: + // ALICE on the relay chain holds some of Relay Chain's native tokens. + // She transfers them to BOB's account on the parachain using a reserve transfer. + // BOB receives Relay Chain native token derivatives on the parachain, + // which are backed one-to-one with the real tokens on the Relay Chain. + // + // NOTE: We could've used ALICE on both chains because it's a different account, + // but using ALICE and BOB makes it clearer. + + // We restart the mock network. MockNet::reset(); // ALICE starts with INITIAL_BALANCE on the relay chain @@ -30,48 +34,60 @@ fn reserve_asset_transfers_work() { assert_eq!(parachain::Balances::free_balance(&BOB), 0); }); - // ALICE on the relay chain sends some relay token to BOB on the parachain - // Because of how the network is set up, us sending the native token and - // the parachain recognizing the relay as the reserve for its token, `transfer_assets` - // determines a reserve transfer should be done with the local chain as the reserve. + // ALICE on the Relay Chain sends some Relay Chain native tokens to BOB on the parachain. + // The transfer is done with the `transfer_assets` extrinsic in the XCM pallet. + // The extrinsic figures out it should do a reserve asset transfer + // with the local chain as reserve. Relay::execute_with(|| { - let destination: MultiLocation = Parachain(2222).into(); - let beneficiary: MultiLocation = + // The parachain id is specified in the network.rs file in this recipe. + let destination: Location = Parachain(2222).into(); + let beneficiary: Location = AccountId32 { id: BOB.clone().into(), network: Some(NetworkId::Polkadot) }.into(); // We need to use `u128` here for the conversion to work properly. // If we don't specify anything, it will be a `u64`, which the conversion - // will turn into a non fungible token instead of a fungible one. - let assets: MultiAssets = (Here, 50u128 * CENTS as u128).into(); + // will turn into a non-fungible token instead of a fungible one. + let assets: Assets = (Here, 50u128 * CENTS as u128).into(); assert_ok!(relay_chain::XcmPallet::transfer_assets( relay_chain::RuntimeOrigin::signed(ALICE), - Box::new(VersionedMultiLocation::V3(destination)), - Box::new(VersionedMultiLocation::V3(beneficiary)), - Box::new(VersionedMultiAssets::V3(assets)), + Box::new(VersionedLocation::V4(destination.clone())), + Box::new(VersionedLocation::V4(beneficiary)), + Box::new(VersionedAssets::V4(assets)), 0, WeightLimit::Unlimited, )); - // ALICE now has less relay chain token + // ALICE now has less Relay Chain tokens. assert_eq!(relay_chain::Balances::free_balance(&ALICE), INITIAL_BALANCE - 50 * CENTS); + + // The funds of the sovereign account of the parachain increase by 50 cents, + // the ones transferred over to BOB. + // The funds in this sovereign account represent how many Relay Chain tokens + // have been sent to this parachain. + // If the parachain wants to send those assets somewhere else they have to go + // via the reserve, and this balance is updated accordingly. + // This is why the derivatives are backed one-to-one. + let parachains_sovereign_account = + relay_chain::LocationToAccountId::convert_location(&destination).unwrap(); + assert_eq!(relay_chain::Balances::free_balance(¶chains_sovereign_account), 50 * CENTS); }); - // On the parachain, BOB has received the derivative tokens ParaA::execute_with(|| { + // On the parachain, BOB has received the derivative tokens assert_eq!(parachain::Balances::free_balance(&BOB), 50 * CENTS); // BOB gives back half to ALICE in the relay chain - let destination: MultiLocation = Parent.into(); - let beneficiary: MultiLocation = + let destination: Location = Parent.into(); + let beneficiary: Location = AccountId32 { id: ALICE.clone().into(), network: Some(NetworkId::Polkadot) }.into(); - // We specify `Parent` because we are referencing the relay chain token. + // We specify `Parent` because we are referencing the Relay Chain token. // This chain doesn't have a token of its own, so we always refer to this token, - // and we do so by the location of the relay chain. - let assets: MultiAssets = (Parent, 25u128 * CENTS as u128).into(); + // and we do so by the Location of the Relay Chain. + let assets: Assets = (Parent, 25u128 * CENTS as u128).into(); assert_ok!(parachain::XcmPallet::transfer_assets( parachain::RuntimeOrigin::signed(BOB), - Box::new(VersionedMultiLocation::V3(destination)), - Box::new(VersionedMultiLocation::V3(beneficiary)), - Box::new(VersionedMultiAssets::V3(assets)), + Box::new(VersionedLocation::V4(destination)), + Box::new(VersionedLocation::V4(beneficiary)), + Box::new(VersionedAssets::V4(assets)), 0, WeightLimit::Unlimited, )); @@ -80,11 +96,20 @@ fn reserve_asset_transfers_work() { assert_eq!(parachain::Balances::free_balance(&BOB), 25 * CENTS); }); - // ALICE's balance increases Relay::execute_with(|| { + // ALICE's balance increases assert_eq!( relay_chain::Balances::free_balance(&ALICE), INITIAL_BALANCE - 50 * CENTS + 25 * CENTS ); + + // The funds in the parachain's sovereign account decrease. + let parachain: Location = Parachain(2222).into(); + let parachains_sovereign_account = + relay_chain::LocationToAccountId::convert_location(¶chain).unwrap(); + assert_eq!( + relay_chain::Balances::free_balance(¶chains_sovereign_account), + 25 * CENTS + ); }); } From 6f5e5b13f96ffb17782dcd983bc8853a395eb9c2 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Fri, 15 Mar 2024 05:46:06 +0700 Subject: [PATCH 26/37] WIP --- polkadot/xcm/docs/src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/lib.rs b/polkadot/xcm/docs/src/lib.rs index 94ca82bc6b1cb..9f28140bf0190 100644 --- a/polkadot/xcm/docs/src/lib.rs +++ b/polkadot/xcm/docs/src/lib.rs @@ -23,7 +23,14 @@ //! //! ## Contribute //! -//! To contribute to the XCM standard, check out the [RFC process](https://github.com/paritytech/xcm-format/blob/master/proposals/0001-process.md). +//! To contribute to the format, check out the [RFC process](https://github.com/paritytech/xcm-format/blob/master/proposals/0001-process.md). +//! To contribute to these docs, [make a PR](https://github.com/paritytech/polkadot-sdk/tree/master/polkadot/xcm/docs). +//! +//! ## Why Rust Docs? +//! +//! Rust Docs allow docs to be as close to the source as possible. +//! They're also available offline automatically for anyone who has the `polkadot-sdk` repo locally. +//! Given all the content is here, it's simple to . //! //! ## Docs structure #![doc = simple_mermaid::mermaid!("../mermaid/structure.mmd")] From a07ef52cb7e4896387ceb3bb5299a0337c8c56f1 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Wed, 1 May 2024 12:17:16 +0200 Subject: [PATCH 27/37] fix: Cargo.lock --- Cargo.lock | 982 +++++++++++++++++++++++------------------------------ 1 file changed, 433 insertions(+), 549 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bcac597558f97..6fe80a8fb10b2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -42,15 +42,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" -[[package]] -name = "aead" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" -dependencies = [ - "generic-array 0.14.7", -] - [[package]] name = "aead" version = "0.5.2" @@ -61,18 +52,6 @@ dependencies = [ "generic-array 0.14.7", ] -[[package]] -name = "aes" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" -dependencies = [ - "cfg-if", - "cipher 0.3.0", - "cpufeatures", - "opaque-debug 0.3.0", -] - [[package]] name = "aes" version = "0.8.3" @@ -84,39 +63,25 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "aes-gcm" -version = "0.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc3be92e19a7ef47457b8e6f90707e12b6ac5d20c6f3866584fa3be0787d839f" -dependencies = [ - "aead 0.4.3", - "aes 0.7.5", - "cipher 0.3.0", - "ctr 0.7.0", - "ghash 0.4.4", - "subtle 2.5.0", -] - [[package]] name = "aes-gcm" version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" dependencies = [ - "aead 0.5.2", - "aes 0.8.3", + "aead", + "aes", "cipher 0.4.4", - "ctr 0.9.2", - "ghash 0.5.0", + "ctr", + "ghash", "subtle 2.5.0", ] [[package]] name = "ahash" -version = "0.7.6" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ "getrandom 0.2.10", "once_cell", @@ -173,12 +138,13 @@ dependencies = [ [[package]] name = "alloy-rlp" -version = "0.3.4" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d58d9f5da7b40e9bfff0b7e7816700be4019db97d4b6359fe7f94a9e22e42ac" +checksum = "cc0fac0fc16baf1f63f78b47c3d24718f3619b0714076f6a02957d808d52cbef" dependencies = [ "arrayvec 0.7.4", "bytes", + "smol_str", ] [[package]] @@ -191,9 +157,9 @@ dependencies = [ "dunce", "heck 0.4.1", "proc-macro-error", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", "syn-solidity", "tiny-keccak", ] @@ -296,9 +262,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.82" +version = "1.0.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" +checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" [[package]] name = "approx" @@ -318,7 +284,7 @@ dependencies = [ "include_dir", "itertools 0.10.5", "proc-macro-error", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -332,9 +298,9 @@ dependencies = [ "include_dir", "itertools 0.10.5", "proc-macro-error", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -563,7 +529,7 @@ checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" dependencies = [ "num-bigint", "num-traits", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -665,7 +631,7 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -759,7 +725,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "726535892e8eae7e70657b4c8ea93d26b8553afb1ce617caee529ef96d7dee6c" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", "synstructure", @@ -771,7 +737,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2777730b2039ac0f95f093556e61b6d26cebed5393ca6f152717777cec3a42ed" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -1273,9 +1239,9 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -1286,13 +1252,13 @@ checksum = "ecc7ab41815b3c653ccd2978ec3255c81349336702dfdf62ee6f7069b12a3aae" [[package]] name = "async-trait" -version = "0.1.80" +version = "0.1.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" +checksum = "a507401cad91ec6a857ed5513a2073c82a9b9048762b885bb98655b306964681" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -1333,13 +1299,14 @@ dependencies = [ [[package]] name = "auto_impl" -version = "1.1.2" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "823b8bb275161044e2ac7a25879cb3e2480cb403e3943022c7c769c599b756aa" +checksum = "fee3da8ef1276b0bee5dd1c7258010d8fffd31801447323115a25560e1327b89" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro-error", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 1.0.109", ] [[package]] @@ -1391,7 +1358,7 @@ dependencies = [ "rand_chacha 0.3.1", "rand_core 0.6.4", "ring 0.1.0", - "sha2 0.10.8", + "sha2 0.10.7", "sp-ark-bls12-381", "sp-ark-ed-on-bls12-381-bandersnatch", "zeroize", @@ -1479,12 +1446,12 @@ dependencies = [ "lazycell", "peeking_take_while", "prettyplease 0.2.12", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "regex", "rustc-hash", "shlex", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -2538,18 +2505,6 @@ dependencies = [ "keystream", ] -[[package]] -name = "chacha20" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c80e5460aa66fe3b91d40bcbdab953a597b60053e34d684ac6903f863b680a6" -dependencies = [ - "cfg-if", - "cipher 0.3.0", - "cpufeatures", - "zeroize", -] - [[package]] name = "chacha20" version = "0.9.1" @@ -2563,29 +2518,29 @@ dependencies = [ [[package]] name = "chacha20poly1305" -version = "0.9.1" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a18446b09be63d457bbec447509e85f662f32952b035ce892290396bc0b0cff5" +checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" dependencies = [ - "aead 0.4.3", - "chacha20 0.8.2", - "cipher 0.3.0", - "poly1305 0.7.2", + "aead", + "chacha20", + "cipher 0.4.4", + "poly1305", "zeroize", ] [[package]] name = "chrono" -version = "0.4.34" +version = "0.4.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bc015644b92d5890fab7489e49d21f879d5c990186827d42ec511919404f38b" +checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" dependencies = [ "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "wasm-bindgen", - "windows-targets 0.52.0", + "windows-targets 0.48.5", ] [[package]] @@ -2650,15 +2605,6 @@ dependencies = [ "generic-array 0.14.7", ] -[[package]] -name = "cipher" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" -dependencies = [ - "generic-array 0.14.7", -] - [[package]] name = "cipher" version = "0.4.4" @@ -2667,6 +2613,7 @@ checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common", "inout", + "zeroize", ] [[package]] @@ -2723,19 +2670,19 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.4" +version = "4.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0" +checksum = "949626d00e063efc93b6dca932419ceb5432f99769911c0b995f7e884c778813" dependencies = [ "clap_builder", - "clap_derive 4.5.4", + "clap_derive 4.5.3", ] [[package]] name = "clap-num" -version = "1.1.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e063d263364859dc54fb064cedb7c122740cd4733644b14b176c097f51e8ab7" +checksum = "488557e97528174edaa2ee268b23a809e0c598213a4bbcb4f34575a46fda147e" dependencies = [ "num-traits", ] @@ -2759,7 +2706,7 @@ version = "4.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "586a385f7ef2f8b4d86bddaa0c094794e7ccbfe5ffef1f434fe928143fc783a5" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", ] [[package]] @@ -2770,21 +2717,21 @@ checksum = "ae6371b8bdc8b7d3959e9cf7b22d4435ef3e79e138688421ec654acf8c81b008" dependencies = [ "heck 0.4.1", "proc-macro-error", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] [[package]] name = "clap_derive" -version = "4.5.4" +version = "4.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64" +checksum = "90239a040c80f5e14809ca132ddc4176ab33d5e17e49691793296e3fcb34d72f" dependencies = [ "heck 0.5.0", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -2971,7 +2918,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d51beaa537d73d2d1ff34ee70bc095f170420ab2ec5d687ecd3ec2b0d092514b" dependencies = [ "nom", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -2984,19 +2931,20 @@ checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" [[package]] name = "colored" -version = "2.1.0" +version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbf2150cce219b664a8a70df7a1f933836724b503f8a413af9365b4dcc4d90b8" +checksum = "2674ec482fbc38012cf31e6c42ba0177b431a0cb6f15fe40efa5aab1bda516f6" dependencies = [ + "is-terminal", "lazy_static", "windows-sys 0.48.0", ] [[package]] name = "combine" -version = "4.6.7" +version = "4.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +checksum = "35ed6e9d84f0b51a7f52daf1c7d71dd136fd7a3f41a8462b8cdb8c78d920fad4" dependencies = [ "bytes", "memchr", @@ -3069,9 +3017,9 @@ dependencies = [ [[package]] name = "const-hex" -version = "1.11.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18d59688ad0945eaf6b84cb44fedbe93484c81b48970e98f09db8a22832d7961" +checksum = "a5104de16b218eddf8e34ffe2f86f74bfa4e61e95a1b89732fccf6325efd0557" dependencies = [ "cfg-if", "cpufeatures", @@ -3493,9 +3441,9 @@ dependencies = [ [[package]] name = "crc" -version = "3.2.1" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69e6e4d7b33a94f0991c26729976b10ebde1d34c3ee82408fb536164fa10d636" +checksum = "c2b432c56615136f8dba245fed7ec3d5518c500a31108661067e61e72fe7e6bc" dependencies = [ "crc-catalog", ] @@ -3552,7 +3500,7 @@ dependencies = [ "anes", "cast", "ciborium", - "clap 4.5.4", + "clap 4.5.3", "criterion-plot", "futures", "is-terminal", @@ -3673,15 +3621,6 @@ dependencies = [ "subtle 2.5.0", ] -[[package]] -name = "ctr" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a232f92a03f37dd7d7dd2adc67166c77e9cd88de5b019b9a9eecfaeaf7bfd481" -dependencies = [ - "cipher 0.3.0", -] - [[package]] name = "ctr" version = "0.9.2" @@ -3695,7 +3634,7 @@ dependencies = [ name = "cumulus-client-cli" version = "0.7.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "parity-scale-codec", "sc-chain-spec", "sc-cli", @@ -4054,10 +3993,10 @@ dependencies = [ name = "cumulus-pallet-parachain-system-proc-macro" version = "0.6.0" dependencies = [ - "proc-macro-crate 3.1.0", - "proc-macro2 1.0.81", + "proc-macro-crate 3.0.0", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -4472,7 +4411,7 @@ name = "cumulus-test-service" version = "0.1.0" dependencies = [ "async-trait", - "clap 4.5.4", + "clap 4.5.3", "criterion 0.5.1", "cumulus-client-cli", "cumulus-client-collator", @@ -4560,7 +4499,7 @@ dependencies = [ "openssl-probe", "openssl-sys", "schannel", - "socket2 0.5.7", + "socket2 0.5.6", "windows-sys 0.52.0", ] @@ -4616,9 +4555,9 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83fdaf97f4804dcebfa5862639bc9ce4121e82140bec2a987ac5140294865b5b" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -4655,10 +4594,10 @@ dependencies = [ "cc", "codespan-reporting", "once_cell", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "scratch", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -4673,9 +4612,9 @@ version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "50c49547d73ba8dcfd4ad7325d64c6d5391ff4224d498fc39a6f3f49825a530d" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -4762,7 +4701,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -4773,7 +4712,7 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e79116f119dd1dba1abf1f3405f03b9b0e79a27a3883864bfebded8a3dc768cd" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -4784,9 +4723,9 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d65d7ce8132b7c0e54497a4d9a55a1c2a0912a0d786cf894472ba818fba45762" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -4796,7 +4735,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" dependencies = [ "convert_case", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "rustc_version 0.4.0", "syn 1.0.109", @@ -4892,9 +4831,9 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -4952,12 +4891,12 @@ dependencies = [ "common-path", "derive-syn-parse 0.2.0", "once_cell", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "regex", - "syn 2.0.60", + "syn 2.0.53", "termcolor", - "toml 0.8.10", + "toml 0.8.8", "walkdir", ] @@ -5001,7 +4940,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -5070,7 +5009,7 @@ dependencies = [ "ed25519 2.2.2", "rand_core 0.6.4", "serde", - "sha2 0.10.8", + "sha2 0.10.7", "subtle 2.5.0", "zeroize", ] @@ -5100,7 +5039,7 @@ dependencies = [ "hashbrown 0.14.3", "hex", "rand_core 0.6.4", - "sha2 0.10.8", + "sha2 0.10.7", "zeroize", ] @@ -5184,7 +5123,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c9720bba047d567ffc8a3cba48bf19126600e249ab7f128e9233e6376976a116" dependencies = [ "heck 0.4.1", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -5196,9 +5135,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5ffccbb6966c05b32ef8fbac435df276c4ae4d3dc55a8cd0eb9745e6c12f546a" dependencies = [ "heck 0.4.1", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -5216,9 +5155,9 @@ version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e9a1f9f7d83e59740248a6e14ecf93929ade55027844dfcea78beafccc15745" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -5227,9 +5166,9 @@ version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2ad8cef1d801a4686bfd8919f0b30eac4c8e48968c437a6405ded4fb5272d2b" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -5430,7 +5369,7 @@ checksum = "a718c0675c555c5f976fff4ea9e2c150fa06cefa201cadef87cfbf9324075881" dependencies = [ "blake3", "fs-err", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", ] @@ -5442,9 +5381,9 @@ checksum = "5f86a749cf851891866c10515ef6c299b5c69661465e9c3bbe7e07a2b77fb0f7" dependencies = [ "blake2 0.10.6", "fs-err", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -5514,7 +5453,7 @@ dependencies = [ "expander 0.0.4", "indexmap 1.9.3", "proc-macro-crate 1.3.1", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", "thiserror", @@ -5571,9 +5510,9 @@ dependencies = [ [[package]] name = "fiat-crypto" -version = "0.2.6" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1676f435fc1dadde4d03e43f5d62b259e1ce5f40bd4ffb21db2b42ebe59c1382" +checksum = "27573eac26f4dd11e2b1916c3fe1baa56407c83c71a773a8ba17ec0bca03b6b7" [[package]] name = "file-per-thread-logger" @@ -5766,7 +5705,7 @@ dependencies = [ "Inflector", "array-bytes 6.1.0", "chrono", - "clap 4.5.4", + "clap 4.5.3", "comfy-table", "frame-benchmarking", "frame-support", @@ -5829,12 +5768,12 @@ dependencies = [ "frame-election-provider-support", "frame-support", "parity-scale-codec", - "proc-macro-crate 3.1.0", - "proc-macro2 1.0.81", + "proc-macro-crate 3.0.0", + "proc-macro2 1.0.75", "quote 1.0.35", "scale-info", "sp-arithmetic", - "syn 2.0.60", + "syn 2.0.53", "trybuild", ] @@ -5860,7 +5799,7 @@ dependencies = [ name = "frame-election-solution-type-fuzzer" version = "2.0.0-alpha.5" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "frame-election-provider-solution-type", "frame-election-provider-support", "frame-support", @@ -5912,7 +5851,7 @@ dependencies = [ name = "frame-omni-bencher" version = "0.1.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "cumulus-primitives-proof-size-hostfunction", "env_logger 0.11.3", "frame-benchmarking-cli", @@ -6001,11 +5940,11 @@ dependencies = [ "itertools 0.10.5", "macro_magic", "proc-macro-warning", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "regex", "sp-crypto-hashing", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -6013,19 +5952,19 @@ name = "frame-support-procedural-tools" version = "10.0.0" dependencies = [ "frame-support-procedural-tools-derive", - "proc-macro-crate 3.1.0", - "proc-macro2 1.0.81", + "proc-macro-crate 3.0.0", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] name = "frame-support-procedural-tools-derive" version = "11.0.0" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -6256,9 +6195,9 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -6392,16 +6331,6 @@ dependencies = [ "rand_core 0.6.4", ] -[[package]] -name = "ghash" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1583cc1656d7839fd3732b80cf4f38850336cdb9b8ded1cd399ca62958de3c99" -dependencies = [ - "opaque-debug 0.3.0", - "polyval 0.5.3", -] - [[package]] name = "ghash" version = "0.5.0" @@ -6409,7 +6338,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d930750de5717d2dd0b8c0d42c076c0e884c81a73e6cab859bbd2339c71e3e40" dependencies = [ "opaque-debug 0.3.0", - "polyval 0.6.1", + "polyval", ] [[package]] @@ -6499,9 +6428,9 @@ dependencies = [ [[package]] name = "governor" -version = "0.6.3" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68a7f542ee6b35af73b06abc0dad1c1bae89964e4e253bc4b587b91c9637867b" +checksum = "821239e5672ff23e2a7060901fa622950bbd80b649cdaadd78d1c1767ed14eb4" dependencies = [ "cfg-if", "dashmap", @@ -6510,11 +6439,9 @@ dependencies = [ "no-std-compat", "nonzero_ext", "parking_lot 0.12.1", - "portable-atomic", "quanta", "rand 0.8.5", "smallvec", - "spinning_top", ] [[package]] @@ -6530,9 +6457,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.21" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91fc23aa11be92976ef4729127f1a74adf36d8436f7816b185d18df956790833" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" dependencies = [ "bytes", "fnv", @@ -6540,7 +6467,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 1.9.3", + "indexmap 2.2.3", "slab", "tokio", "tokio-util", @@ -6555,9 +6482,9 @@ checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" [[package]] name = "handlebars" -version = "5.1.2" +version = "5.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d08485b96a0e6393e9e4d1b8d48cf74ad6c063cd905eb33f42c1ce3f0377539b" +checksum = "ab283476b99e66691dee3f1640fea91487a8d81f50fb5ecc75538f8f8879a1e4" dependencies = [ "log", "pest", @@ -6588,7 +6515,7 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" dependencies = [ - "ahash 0.7.6", + "ahash 0.7.8", ] [[package]] @@ -6939,7 +6866,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -6959,7 +6886,7 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b139284b5cf57ecfa712bcc66950bb635b31aff41c188e8a4cfc758eca374a3f" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", ] @@ -6982,9 +6909,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.6" +version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "233cf39063f058ea2caae4091bf4a3ef70a653afbc026f5c4a4135d114e3c177" dependencies = [ "equivalent", "hashbrown 0.14.3", @@ -6998,9 +6925,9 @@ checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" [[package]] name = "indicatif" -version = "0.17.8" +version = "0.17.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" +checksum = "fb28741c9db9a713d93deb3bb9515c20788cef5815265bee4980e87bde7e0f25" dependencies = [ "console", "instant", @@ -7065,7 +6992,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f" dependencies = [ - "socket2 0.5.7", + "socket2 0.5.6", "widestring", "windows-sys 0.48.0", "winreg", @@ -7185,9 +7112,9 @@ dependencies = [ [[package]] name = "jsonrpsee" -version = "0.22.0" +version = "0.22.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a95f7cc23d5fab0cdeeaf6bad8c8f5e7a3aa7f0d211957ea78232b327ab27b0" +checksum = "87f3ae45a64cfc0882934f963be9431b2a165d667f53140358181f262aca0702" dependencies = [ "jsonrpsee-core", "jsonrpsee-http-client", @@ -7201,9 +7128,9 @@ dependencies = [ [[package]] name = "jsonrpsee-client-transport" -version = "0.22.0" +version = "0.22.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b1736cfa3845fd9f8f43751f2b8e0e83f7b6081e754502f7d63b6587692cc83" +checksum = "455fc882e56f58228df2aee36b88a1340eafd707c76af2fa68cf94b37d461131" dependencies = [ "futures-util", "http", @@ -7222,9 +7149,9 @@ dependencies = [ [[package]] name = "jsonrpsee-core" -version = "0.22.0" +version = "0.22.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82030d038658974732103e623ba2e0abec03bbbe175b39c0a2fafbada60c5868" +checksum = "b75568f4f9696e3a47426e1985b548e1a9fcb13372a5e320372acaf04aca30d1" dependencies = [ "anyhow", "async-lock 3.3.0", @@ -7248,9 +7175,9 @@ dependencies = [ [[package]] name = "jsonrpsee-http-client" -version = "0.22.0" +version = "0.22.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36a06ef0de060005fddf772d54597bb6a8b0413da47dcffd304b0306147b9678" +checksum = "9e7a95e346f55df84fb167b7e06470e196e7d5b9488a21d69c5d9732043ba7ba" dependencies = [ "async-trait", "hyper", @@ -7268,22 +7195,22 @@ dependencies = [ [[package]] name = "jsonrpsee-proc-macros" -version = "0.22.0" +version = "0.22.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69fc56131589f82e57805f7338b87023db4aafef813555708b159787e34ad6bc" +checksum = "30ca066e73dd70294aebc5c2675d8ffae43be944af027c857ce0d4c51785f014" dependencies = [ "heck 0.4.1", - "proc-macro-crate 3.1.0", - "proc-macro2 1.0.81", + "proc-macro-crate 3.0.0", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 1.0.109", + "syn 2.0.53", ] [[package]] name = "jsonrpsee-server" -version = "0.22.0" +version = "0.22.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d85be77fe5b2a94589e3164fb780017f7aff7d646b49278c0d0346af16975c8e" +checksum = "0e29c1bd1f9bba83c864977c73404e505f74f730fa0db89dd490ec174e36d7f0" dependencies = [ "futures-util", "http", @@ -7305,9 +7232,9 @@ dependencies = [ [[package]] name = "jsonrpsee-types" -version = "0.22.0" +version = "0.22.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a48fdc1202eafc51c63e00406575e59493284ace8b8b61aa16f3a6db5d64f1a" +checksum = "3467fd35feeee179f71ab294516bdf3a81139e7aeebdd860e46897c12e1a3368" dependencies = [ "anyhow", "beef", @@ -7318,9 +7245,9 @@ dependencies = [ [[package]] name = "jsonrpsee-ws-client" -version = "0.22.0" +version = "0.22.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5ce25d70a8e4d3cc574bbc3cad0137c326ad64b194793d5e7bbdd3fa4504181" +checksum = "68ca71e74983f624c0cb67828e480a981586074da8ad3a2f214c6a3f884edab9" dependencies = [ "http", "jsonrpsee-client-transport", @@ -7340,7 +7267,7 @@ dependencies = [ "elliptic-curve", "once_cell", "serdect", - "sha2 0.10.8", + "sha2 0.10.7", ] [[package]] @@ -7629,9 +7556,9 @@ checksum = "f7012b1bbb0719e1097c47611d3898568c546d597c2e74d66f6087edd5233ff4" [[package]] name = "libnghttp2-sys" -version = "0.1.10+1.61.0" +version = "0.1.9+1.58.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "959c25552127d2e1fa72f0e52548ec04fc386e827ba71a7bd01db46a447dc135" +checksum = "b57e858af2798e167e709b9d969325b6d8e9d50232fcbc494d7d54f976854a64" dependencies = [ "cc", "libc", @@ -7771,7 +7698,7 @@ dependencies = [ "multihash 0.17.0", "quick-protobuf", "rand 0.8.5", - "sha2 0.10.8", + "sha2 0.10.7", "thiserror", "zeroize", ] @@ -7796,7 +7723,7 @@ dependencies = [ "log", "quick-protobuf", "rand 0.8.5", - "sha2 0.10.8", + "sha2 0.10.7", "smallvec", "thiserror", "uint", @@ -7854,7 +7781,7 @@ dependencies = [ "once_cell", "quick-protobuf", "rand 0.8.5", - "sha2 0.10.8", + "sha2 0.10.7", "snow", "static_assertions", "thiserror", @@ -8189,7 +8116,7 @@ dependencies = [ [[package]] name = "litep2p" version = "0.3.0" -source = "git+https://github.com/paritytech/litep2p?branch=master#e03a6023882db111beeb24d8c0ceaac0721d3f0f" +source = "git+https://github.com/paritytech/litep2p?branch=master#b142c9eb611fb2fe78d2830266a3675b37299ceb" dependencies = [ "async-trait", "bs58 0.4.0", @@ -8199,7 +8126,7 @@ dependencies = [ "futures", "futures-timer", "hex-literal", - "indexmap 2.2.6", + "indexmap 2.2.3", "libc", "mockall", "multiaddr", @@ -8216,11 +8143,11 @@ dependencies = [ "ring 0.16.20", "rustls 0.20.8", "serde", - "sha2 0.10.8", + "sha2 0.10.7", "simple-dns", "smallvec", "snow", - "socket2 0.5.7", + "socket2 0.5.6", "static_assertions", "str0m", "thiserror", @@ -8322,6 +8249,15 @@ dependencies = [ "libc", ] +[[package]] +name = "mach2" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709" +dependencies = [ + "libc", +] + [[package]] name = "macro_magic" version = "0.5.0" @@ -8331,7 +8267,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -8343,9 +8279,9 @@ dependencies = [ "const-random", "derive-syn-parse 0.1.5", "macro_magic_core_macros", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -8354,9 +8290,9 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ea73aa640dc01d62a590d48c0c3521ed739d53b27f919b25c3551e233481654" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -8367,7 +8303,7 @@ checksum = "ef9d79ae96aaba821963320eb2b6e34d17df1e5a83d8a1985c29cc5be59577b3" dependencies = [ "macro_magic_core", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -8442,9 +8378,9 @@ dependencies = [ [[package]] name = "memmap2" -version = "0.9.4" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe751422e4a8caa417e13c3ea66452215d7d63e19e604f4980461212f3ae1322" +checksum = "45fd3a57831bf88bc63f8cebc0cf956116276e97fef3966103e96416209f7c92" dependencies = [ "libc", ] @@ -8555,7 +8491,7 @@ dependencies = [ name = "minimal-template-node" version = "0.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "futures", "futures-timer", "jsonrpsee", @@ -8709,7 +8645,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22ce75669015c4f47b289fd4d4f56e894e4c96003ffdf3ac51313126f94c6cbb" dependencies = [ "cfg-if", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -8756,7 +8692,7 @@ dependencies = [ "core2", "digest 0.10.7", "multihash-derive 0.8.0", - "sha2 0.10.8", + "sha2 0.10.7", "sha3", "unsigned-varint", ] @@ -8773,7 +8709,7 @@ dependencies = [ "core2", "digest 0.10.7", "multihash-derive 0.8.0", - "sha2 0.10.8", + "sha2 0.10.7", "sha3", "unsigned-varint", ] @@ -8803,7 +8739,7 @@ dependencies = [ "ripemd", "serde", "sha1", - "sha2 0.10.8", + "sha2 0.10.7", "sha3", "strobe-rs", ] @@ -8816,7 +8752,7 @@ checksum = "fc076939022111618a5026d3be019fd8b366e76314538ff9a1b59ffbcbf98bcd" dependencies = [ "proc-macro-crate 1.3.1", "proc-macro-error", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", "synstructure", @@ -8841,7 +8777,7 @@ checksum = "d38685e08adb338659871ecfc6ee47ba9b22dcc8abcf6975d379cc49145c3040" dependencies = [ "proc-macro-crate 1.3.1", "proc-macro-error", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", "synstructure", @@ -8889,7 +8825,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91761aed67d03ad966ef783ae962ef9bbaca728d2dd7ceb7939ec110fffad998" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -8978,9 +8914,9 @@ dependencies = [ [[package]] name = "network-interface" -version = "1.1.4" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a43439bf756eed340bdf8feba761e2d50c7d47175d87545cd5cbe4a137c4d1" +checksum = "ae72fd9dbd7f55dda80c00d66acc3b2130436fcba9ea89118fc508eaae48dfb0" dependencies = [ "cc", "libc", @@ -9041,7 +8977,7 @@ name = "node-bench" version = "0.9.0-dev" dependencies = [ "array-bytes 6.1.0", - "clap 4.5.4", + "clap 4.5.3", "derive_more", "fs_extra", "futures", @@ -9118,7 +9054,7 @@ dependencies = [ name = "node-runtime-generate-bags" version = "3.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "generate-bags", "kitchensink-runtime", ] @@ -9127,7 +9063,7 @@ dependencies = [ name = "node-template-release" version = "3.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "flate2", "fs_extra", "glob", @@ -9415,9 +9351,9 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -9478,11 +9414,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eedb646674596266dc9bb2b5c7eea7c36b32ecc7777eba0d510196972d72c4fd" dependencies = [ "expander 2.0.0", - "indexmap 2.2.6", + "indexmap 2.2.3", "itertools 0.11.0", "petgraph", "proc-macro-crate 1.3.1", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -10144,7 +10080,7 @@ dependencies = [ "polkavm-linker", "sp-runtime", "tempfile", - "toml 0.8.10", + "toml 0.8.8", "twox-hash", ] @@ -10190,9 +10126,9 @@ dependencies = [ name = "pallet-contracts-proc-macro" version = "18.0.0" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -11430,11 +11366,11 @@ dependencies = [ name = "pallet-staking-reward-curve" version = "11.0.0" dependencies = [ - "proc-macro-crate 3.1.0", - "proc-macro2 1.0.81", + "proc-macro-crate 3.0.0", + "proc-macro2 1.0.75", "quote 1.0.35", "sp-runtime", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -11839,7 +11775,7 @@ dependencies = [ name = "parachain-template-node" version = "0.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "color-print", "cumulus-client-cli", "cumulus-client-collator", @@ -12088,7 +12024,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be30eaf4b0a9fba5336683b38de57bb86d179a35862ba6bfcf57625d006bde5b" dependencies = [ "proc-macro-crate 2.0.0", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -12123,7 +12059,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "syn 1.0.109", "synstructure", ] @@ -12544,9 +12480,9 @@ checksum = "68ca01446f50dbda87c1786af8770d535423fa8a53aec03b8f4e3d7eb10e0929" dependencies = [ "pest", "pest_meta", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -12557,7 +12493,7 @@ checksum = "56af0a30af74d0445c0bf6d9d051c979b516a1a5af790d251daee76005420a48" dependencies = [ "once_cell", "pest", - "sha2 0.10.8", + "sha2 0.10.7", ] [[package]] @@ -12567,7 +12503,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", - "indexmap 2.2.6", + "indexmap 2.2.3", ] [[package]] @@ -12585,9 +12521,9 @@ version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -12802,7 +12738,7 @@ name = "polkadot-cli" version = "7.0.0" dependencies = [ "cfg-if", - "clap 4.5.4", + "clap 4.5.3", "frame-benchmarking-cli", "futures", "log", @@ -12878,7 +12814,7 @@ dependencies = [ "fatality", "futures", "futures-timer", - "indexmap 2.2.6", + "indexmap 2.2.3", "lazy_static", "parity-scale-codec", "polkadot-erasure-coding", @@ -13655,7 +13591,7 @@ dependencies = [ "async-trait", "bridge-hub-rococo-runtime", "bridge-hub-westend-runtime", - "clap 4.5.4", + "clap 4.5.3", "collectives-westend-runtime", "color-print", "contracts-rococo-runtime", @@ -14187,7 +14123,7 @@ dependencies = [ "fatality", "futures", "futures-timer", - "indexmap 2.2.6", + "indexmap 2.2.3", "parity-scale-codec", "polkadot-node-network-protocol", "polkadot-node-primitives", @@ -14228,7 +14164,7 @@ dependencies = [ "async-trait", "bincode", "bitvec", - "clap 4.5.4", + "clap 4.5.3", "clap-num", "color-eyre", "colored", @@ -14324,7 +14260,7 @@ version = "1.0.0" dependencies = [ "assert_matches", "async-trait", - "clap 4.5.4", + "clap 4.5.3", "color-eyre", "futures", "futures-timer", @@ -14466,7 +14402,7 @@ dependencies = [ name = "polkadot-voter-bags" version = "7.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "generate-bags", "sp-io", "westend-runtime", @@ -14519,9 +14455,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c4fdfc49717fb9a196e74a5d28e0bc764eb394a2c803eb11133a31ac996c60c" dependencies = [ "polkavm-common", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -14531,7 +14467,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ba81f7b5faac81e528eb6158a6f3c9e0bb1008e0ffa19653bc8dea925ecb429" dependencies = [ "polkavm-derive-impl", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -14571,17 +14507,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "poly1305" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "048aeb476be11a4b6ca432ca569e375810de9294ae78f4774e78ea98a9246ede" -dependencies = [ - "cpufeatures", - "opaque-debug 0.3.0", - "universal-hash 0.4.0", -] - [[package]] name = "poly1305" version = "0.8.0" @@ -14590,19 +14515,7 @@ checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" dependencies = [ "cpufeatures", "opaque-debug 0.3.0", - "universal-hash 0.5.1", -] - -[[package]] -name = "polyval" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" -dependencies = [ - "cfg-if", - "cpufeatures", - "opaque-debug 0.3.0", - "universal-hash 0.4.0", + "universal-hash", ] [[package]] @@ -14614,14 +14527,14 @@ dependencies = [ "cfg-if", "cpufeatures", "opaque-debug 0.3.0", - "universal-hash 0.5.1", + "universal-hash", ] [[package]] name = "portable-atomic" -version = "1.6.0" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" +checksum = "f32154ba0af3a075eefa1eda8bb414ee928f62303a54ea85b8d6638ff1a6ee9e" [[package]] name = "portpicker" @@ -14716,7 +14629,7 @@ version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c8646e95016a7a6c4adea95bafa8a16baab64b583356217f2c85db4a39d9a86" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "syn 1.0.109", ] @@ -14726,8 +14639,8 @@ version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c64d9ba0963cdcea2e1b2230fbae2bab30eb25a174be395c41e764bfb65dd62" dependencies = [ - "proc-macro2 1.0.81", - "syn 2.0.60", + "proc-macro2 1.0.75", + "syn 2.0.53", ] [[package]] @@ -14777,16 +14690,16 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8" dependencies = [ - "toml_edit 0.20.2", + "toml_edit 0.20.7", ] [[package]] name = "proc-macro-crate" -version = "3.1.0" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" +checksum = "6b2685dd208a3771337d8d386a89840f0f43cd68be8dae90a5f8c2384effc9cd" dependencies = [ - "toml_edit 0.21.1", + "toml_edit 0.21.0", ] [[package]] @@ -14796,7 +14709,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ "proc-macro-error-attr", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", "version_check", @@ -14808,7 +14721,7 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "version_check", ] @@ -14825,9 +14738,9 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b698b0b09d40e9b7c1a47b132d66a8b54bcd20583d9b6d06e4535e383b4405c" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -14841,9 +14754,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.81" +version = "1.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1597b0c024618f09a9c3b8655b7e430397a36d23fdafec26d6965e9eec3eba" +checksum = "907a61bd0f64c2f29cd1cf1dc34d05176426a3f504a78010f08416ddb7b13708" dependencies = [ "unicode-ident", ] @@ -14906,9 +14819,9 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -14993,7 +14906,7 @@ checksum = "e5d2d8d10f3c6ded6da8b05b5fb3b8a5082514344d56c9f871412d29b4e075b4" dependencies = [ "anyhow", "itertools 0.10.5", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -15006,9 +14919,9 @@ checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" dependencies = [ "anyhow", "itertools 0.11.0", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -15061,12 +14974,13 @@ dependencies = [ [[package]] name = "quanta" -version = "0.12.3" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e5167a477619228a0b284fac2674e3c388cba90631d7b7de620e6f1fcd08da5" +checksum = "a17e662a7a8291a865152364c20c7abc5e60486ab2001e8ec10b24862de0b9ab" dependencies = [ "crossbeam-utils", "libc", + "mach2", "once_cell", "raw-cpuid", "wasi 0.11.0+wasi-snapshot-preview1", @@ -15188,7 +15102,7 @@ version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", ] [[package]] @@ -15298,11 +15212,11 @@ dependencies = [ [[package]] name = "raw-cpuid" -version = "11.0.2" +version = "10.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e29830cbb1290e404f24c73af91c5d8d631ce7e128691e9477556b540cd01ecd" +checksum = "6c297679cb867470fa8c9f67dbba74a78d78e3e98d7cf2b08d6d71540f797332" dependencies = [ - "bitflags 2.4.0", + "bitflags 1.3.2", ] [[package]] @@ -15428,9 +15342,9 @@ version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -15584,7 +15498,7 @@ dependencies = [ name = "remote-ext-tests-bags-list" version = "1.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "frame-system", "log", "pallet-bags-list-remote-tests", @@ -15986,12 +15900,12 @@ checksum = "d428f8247852f894ee1be110b375111b586d4fa431f6c46e64ba5a0dcccbe605" dependencies = [ "cfg-if", "glob", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "regex", "relative-path", "rustc_version 0.4.0", - "syn 2.0.60", + "syn 2.0.53", "unicode-ident", ] @@ -16202,7 +16116,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f1fb85efa936c42c6d5fc28d2629bb51e4b2f4b8a5211e297d599cc5a093792" dependencies = [ "openssl-probe", - "rustls-pemfile 2.1.0", + "rustls-pemfile 2.0.0", "rustls-pki-types", "schannel", "security-framework", @@ -16219,9 +16133,9 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "2.1.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c333bb734fcdedcea57de1602543590f545f127dc8b533324318fd492c5c70b" +checksum = "35e4980fa29e4c4b212ffb3db068a564cbf560e51d3944b7c88bd8bf5bec64f4" dependencies = [ "base64 0.21.2", "rustls-pki-types", @@ -16229,9 +16143,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.3.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "048a63e5b3ac996d78d402940b5fa47973d2d080c6c6fffa1d0f19c4445310b7" +checksum = "0a716eb65e3158e90e17cd93d855216e27bde02745ab842f2cab4a39dba1bacf" [[package]] name = "rustls-webpki" @@ -16418,7 +16332,7 @@ dependencies = [ "array-bytes 6.1.0", "docify", "log", - "memmap2 0.9.4", + "memmap2 0.9.3", "parity-scale-codec", "sc-chain-spec-derive", "sc-client-api", @@ -16445,10 +16359,10 @@ dependencies = [ name = "sc-chain-spec-derive" version = "11.0.0" dependencies = [ - "proc-macro-crate 3.1.0", - "proc-macro2 1.0.81", + "proc-macro-crate 3.0.0", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -16457,7 +16371,7 @@ version = "0.36.0" dependencies = [ "array-bytes 6.1.0", "chrono", - "clap 4.5.4", + "clap 4.5.3", "fdlimit", "futures", "futures-timer", @@ -17638,7 +17552,7 @@ dependencies = [ name = "sc-storage-monitor" version = "0.16.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "fs4", "log", "sp-core", @@ -17738,10 +17652,10 @@ dependencies = [ name = "sc-tracing-proc-macro" version = "11.0.0" dependencies = [ - "proc-macro-crate 3.1.0", - "proc-macro2 1.0.81", + "proc-macro-crate 3.0.0", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -17811,9 +17725,9 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.11.2" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c453e59a955f81fb62ee5d596b450383d699f152d350e9d23a0db2adb78e4c0" +checksum = "788745a868b0e751750388f4e6546eb921ef714a4317fa6954f7cde114eb2eb7" dependencies = [ "bitvec", "cfg-if", @@ -17825,12 +17739,12 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.11.2" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18cf6c6447f813ef19eb450e985bcce6705f9ce7660db221b59093d15c79c4b7" +checksum = "7dc2f4e8bc344b9fc3d5f74f72c2e55bfc38d28dc2ebc69c194a3df424e4d9ac" dependencies = [ "proc-macro-crate 1.3.1", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -17862,7 +17776,7 @@ version = "0.8.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0f696e21e10fa546b7ffb1c9672c6de8fbc7a81acf59524386d8639bf12737" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "serde_derive_internals", "syn 1.0.109", @@ -17901,7 +17815,7 @@ version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8de18f6d8ba0aad7045f5feae07ec29899c1112584a38509a84ad7b04451eaa0" dependencies = [ - "aead 0.5.2", + "aead", "arrayref", "arrayvec 0.7.4", "curve25519-dalek 4.1.2", @@ -17909,7 +17823,7 @@ dependencies = [ "merlin", "rand_core 0.6.4", "serde_bytes", - "sha2 0.10.8", + "sha2 0.10.7", "subtle 2.5.0", "zeroize", ] @@ -18125,9 +18039,9 @@ checksum = "f97841a747eef040fcd2e7b3b9a220a7205926e60488e673d9e4926d27772ce5" [[package]] name = "serde" -version = "1.0.199" +version = "1.0.197" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c9f6e76df036c77cd94996771fb40db98187f096dd0b9af39c6c6e452ba966a" +checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" dependencies = [ "serde_derive", ] @@ -18143,22 +18057,22 @@ dependencies = [ [[package]] name = "serde_bytes" -version = "0.11.14" +version = "0.11.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" +checksum = "ab33ec92f677585af6d88c65593ae2375adde54efdbf16d597f2cbc7a6d368ff" dependencies = [ "serde", ] [[package]] name = "serde_derive" -version = "1.0.199" +version = "1.0.197" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11bd257a6541e141e42ca6d24ae26f7714887b47e89aa739099104c7e4d3b7fc" +checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -18167,7 +18081,7 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -18183,11 +18097,11 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.116" +version = "1.0.114" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e17db7126d17feb94eb3fad46bf1a96b034e8aacbc2e775fe81505f8b0b2813" +checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.2.3", "itoa", "ryu", "serde", @@ -18195,9 +18109,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.5" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" +checksum = "12022b835073e5b11e90a14f86838ceb1c8fb0325b72416845c487ac0fa95e80" dependencies = [ "serde", ] @@ -18216,11 +18130,11 @@ dependencies = [ [[package]] name = "serde_yaml" -version = "0.9.30" +version = "0.9.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1bf28c79a99f70ee1f1d83d10c875d2e70618417fda01ad1785e027579d9d38" +checksum = "a0623d197252096520c6f2a5e1171ee436e5af99a5d7caa2891e55e61950e6d9" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.2.3", "itoa", "ryu", "serde", @@ -18257,9 +18171,9 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91d129178576168c589c9ec973feedf7d3126c01ac2bf08795109aa35b69fb8f" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -18322,9 +18236,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.8" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" +checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" dependencies = [ "cfg-if", "cpufeatures", @@ -18389,9 +18303,9 @@ dependencies = [ [[package]] name = "shlex" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "signal-hook" @@ -18515,9 +18429,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.11.0" +version = "1.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9" +checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" [[package]] name = "smol" @@ -18536,6 +18450,15 @@ dependencies = [ "futures-lite", ] +[[package]] +name = "smol_str" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74212e6bbe9a4352329b2f68ba3130c15a3f26fe88ff22dbdc6cdd58fa85e99c" +dependencies = [ + "serde", +] + [[package]] name = "smoldot" version = "0.11.0" @@ -18549,7 +18472,7 @@ dependencies = [ "bip39", "blake2-rfc", "bs58 0.5.0", - "chacha20 0.9.1", + "chacha20", "crossbeam-queue", "derive_more", "ed25519-zebra 4.0.3", @@ -18571,14 +18494,14 @@ dependencies = [ "num-traits", "pbkdf2", "pin-project", - "poly1305 0.8.0", + "poly1305", "rand 0.8.5", "rand_chacha 0.3.1", "ruzstd", "schnorrkel 0.10.2", "serde", "serde_json", - "sha2 0.10.8", + "sha2 0.10.7", "sha3", "siphasher", "slab", @@ -18634,18 +18557,18 @@ checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831" [[package]] name = "snow" -version = "0.9.3" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c9d1425eb528a21de2755c75af4c9b5d57f50a0d4c3b7f1828a4cd03f8ba155" +checksum = "850948bee068e713b8ab860fe1adc4d109676ab4c3b621fd8147f06b261f2f85" dependencies = [ - "aes-gcm 0.9.2", + "aes-gcm", "blake2 0.10.6", "chacha20poly1305", "curve25519-dalek 4.1.2", "rand_core 0.6.4", - "ring 0.16.20", + "ring 0.17.7", "rustc_version 0.4.0", - "sha2 0.10.8", + "sha2 0.10.7", "subtle 2.5.0", ] @@ -18982,9 +18905,9 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.7" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" +checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871" dependencies = [ "libc", "windows-sys 0.52.0", @@ -19011,7 +18934,7 @@ dependencies = [ name = "solochain-template-node" version = "0.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "frame-benchmarking-cli", "frame-system", "futures", @@ -19117,10 +19040,10 @@ dependencies = [ "assert_matches", "blake2 0.10.6", "expander 2.0.0", - "proc-macro-crate 3.1.0", - "proc-macro2 1.0.81", + "proc-macro-crate 3.0.0", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -19493,7 +19416,7 @@ dependencies = [ "byteorder", "criterion 0.4.0", "digest 0.10.7", - "sha2 0.10.8", + "sha2 0.10.7", "sha3", "sp-crypto-hashing-proc-macro", "twox-hash", @@ -19505,7 +19428,7 @@ version = "0.1.0" dependencies = [ "quote 1.0.35", "sp-crypto-hashing", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -19521,18 +19444,18 @@ name = "sp-debug-derive" version = "8.0.0" source = "git+https://github.com/paritytech/polkadot-sdk#82912acb33a9030c0ef3bf590a34fca09b72dc5f" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] name = "sp-debug-derive" version = "14.0.0" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -19687,7 +19610,7 @@ dependencies = [ name = "sp-npos-elections-fuzzer" version = "2.0.0-alpha.5" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "honggfuzz", "rand 0.8.5", "sp-npos-elections", @@ -19800,9 +19723,9 @@ source = "git+https://github.com/paritytech/polkadot-sdk#82912acb33a9030c0ef3bf5 dependencies = [ "Inflector", "proc-macro-crate 1.3.1", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -19811,10 +19734,10 @@ version = "17.0.0" dependencies = [ "Inflector", "expander 2.0.0", - "proc-macro-crate 3.1.0", - "proc-macro2 1.0.81", + "proc-macro-crate 3.0.0", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -19907,14 +19830,14 @@ dependencies = [ name = "sp-statement-store" version = "10.0.0" dependencies = [ - "aes-gcm 0.10.3", + "aes-gcm", "curve25519-dalek 4.1.2", "ed25519-dalek 2.1.0", "hkdf", "parity-scale-codec", "rand 0.8.5", "scale-info", - "sha2 0.10.8", + "sha2 0.10.7", "sp-api", "sp-application-crypto", "sp-core", @@ -20073,10 +19996,10 @@ name = "sp-version-proc-macro" version = "13.0.0" dependencies = [ "parity-scale-codec", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "sp-version", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -20140,15 +20063,6 @@ dependencies = [ "strum 0.24.1", ] -[[package]] -name = "spinning_top" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300" -dependencies = [ - "lock_api", -] - [[package]] name = "spki" version = "0.7.2" @@ -20167,7 +20081,7 @@ checksum = "5e6915280e2d0db8911e5032a5c275571af6bdded2916abd691a659be25d3439" dependencies = [ "Inflector", "num-format", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "serde", "serde_json", @@ -20192,7 +20106,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f07d54c4d01a1713eb363b55ba51595da15f6f1211435b71466460da022aa140" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -20207,7 +20121,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" name = "staging-chain-spec-builder" version = "3.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "log", "sc-chain-spec", "serde_json", @@ -20220,7 +20134,7 @@ version = "3.0.0-dev" dependencies = [ "array-bytes 6.1.0", "assert_cmd", - "clap 4.5.4", + "clap 4.5.3", "clap_complete", "criterion 0.4.0", "frame-benchmarking", @@ -20330,7 +20244,7 @@ dependencies = [ name = "staging-node-inspect" version = "0.12.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "parity-scale-codec", "sc-cli", "sc-client-api", @@ -20460,16 +20374,16 @@ checksum = "70a2595fc3aa78f2d0e45dd425b22282dd863273761cc77780914b2cf3003acf" dependencies = [ "cfg_aliases", "memchr", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] [[package]] name = "str0m" -version = "0.4.1" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3f10d3f68e60168d81110410428a435dbde28cc5525f5f7c6fdec92dbdc2800" +checksum = "ee48572247f422dcbe68630c973f8296fbd5157119cd36a3223e48bf83d47727" dependencies = [ "combine", "crc", @@ -20535,7 +20449,7 @@ checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" dependencies = [ "heck 0.3.3", "proc-macro-error", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -20571,7 +20485,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" dependencies = [ "heck 0.4.1", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "rustversion", "syn 1.0.109", @@ -20584,10 +20498,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0" dependencies = [ "heck 0.4.1", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "rustversion", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -20597,17 +20511,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6cf59daf282c0a494ba14fd21610a0325f9f90ec9d1231dea26bcb1d696c946" dependencies = [ "heck 0.4.1", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "rustversion", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] name = "subkey" version = "9.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "sc-cli", ] @@ -20620,7 +20534,7 @@ dependencies = [ "pbkdf2", "rustc-hex", "schnorrkel 0.11.4", - "sha2 0.10.8", + "sha2 0.10.7", "zeroize", ] @@ -20649,7 +20563,7 @@ dependencies = [ name = "substrate-frame-cli" version = "32.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "frame-support", "frame-system", "sc-cli", @@ -20914,7 +20828,7 @@ dependencies = [ "sp-maybe-compressed-blob", "strum 0.26.2", "tempfile", - "toml 0.8.10", + "toml 0.8.8", "walkdir", "wasm-opt", ] @@ -21045,18 +20959,18 @@ version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "unicode-ident", ] [[package]] name = "syn" -version = "2.0.60" +version = "2.0.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "909518bc7b1c9b779f1bbf07f2929d35af9f0f37e47c6e9ef7f9dddc1e1821f3" +checksum = "7383cd0e49fff4b6b90ca5670bfd3e9d6a733b3f90c686605aa7eec8c4996032" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "unicode-ident", ] @@ -21068,9 +20982,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86b837ef12ab88835251726eb12237655e61ec8dc8a280085d1961cdc3dfd047" dependencies = [ "paste", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -21079,7 +20993,7 @@ version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", "unicode-xid 0.2.4", @@ -21087,9 +21001,9 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.30.11" +version = "0.30.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87341a165d73787554941cd5ef55ad728011566fe714e987d1b976c15dbc3a83" +checksum = "1fb4f3438c8f6389c864e61221cbc97e9bca98b4daf39a5beb7bea660f528bb2" dependencies = [ "cfg-if", "core-foundation-sys", @@ -21184,23 +21098,24 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "test-log" -version = "0.2.14" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6159ab4116165c99fc88cce31f99fa2c9dbe08d3691cb38da02fc3b45f357d2b" +checksum = "3dffced63c2b5c7be278154d76b479f9f9920ed34e7574201407f0b14e2bbb93" dependencies = [ - "env_logger 0.10.1", + "env_logger 0.11.3", "test-log-macros", + "tracing-subscriber 0.3.18", ] [[package]] name = "test-log-macros" -version = "0.2.14" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ba277e77219e9eea169e8508942db1bf5d8a41ff2db9b20aab5a5aadc9fa25d" +checksum = "5999e24eaa32083191ba4e425deb75cdf25efefabe5aaccb7446dd0d4122a3f5" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -21220,7 +21135,7 @@ dependencies = [ name = "test-parachain-adder-collator" version = "1.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "futures", "futures-timer", "log", @@ -21268,7 +21183,7 @@ dependencies = [ name = "test-parachain-undying-collator" version = "1.0.0" dependencies = [ - "clap 4.5.4", + "clap 4.5.3", "futures", "futures-timer", "log", @@ -21364,7 +21279,7 @@ version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "10ac1c5050e43014d16b2f94d0d2ce79e65ffdd8b38d8048f9c8f6a8a6da62ac" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "syn 1.0.109", ] @@ -21375,9 +21290,9 @@ version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -21527,7 +21442,7 @@ dependencies = [ "parking_lot 0.12.1", "pin-project-lite 0.2.12", "signal-hook-registry", - "socket2 0.5.7", + "socket2 0.5.6", "tokio-macros", "windows-sys 0.48.0", ] @@ -21538,9 +21453,9 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -21653,14 +21568,14 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.10" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a9aad4a3066010876e8dcf5a8a06e70a558751117a145c6ce2b82c2e2054290" +checksum = "a1a195ec8c9da26928f773888e0742ca3ca1040c6cd859c919c9f59c1954ab35" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.5", + "toml_edit 0.21.0", ] [[package]] @@ -21678,44 +21593,33 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.2.6", - "toml_datetime", - "winnow 0.5.15", -] - -[[package]] -name = "toml_edit" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" -dependencies = [ - "indexmap 2.2.6", + "indexmap 2.2.3", "toml_datetime", - "winnow 0.5.15", + "winnow", ] [[package]] name = "toml_edit" -version = "0.21.1" +version = "0.20.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" +checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.2.3", "toml_datetime", - "winnow 0.5.15", + "winnow", ] [[package]] name = "toml_edit" -version = "0.22.5" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99e68c159e8f5ba8a28c4eb7b0c0c190d77bb479047ca713270048145a9ad28a" +checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.2.3", "serde", "serde_spanned", "toml_datetime", - "winnow 0.6.0", + "winnow", ] [[package]] @@ -21765,11 +21669,10 @@ checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" [[package]] name = "tracing" -version = "0.1.37" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "cfg-if", "log", "pin-project-lite 0.2.12", "tracing-attributes", @@ -21778,13 +21681,13 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.26" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" +checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -21823,10 +21726,10 @@ version = "5.0.0" dependencies = [ "assert_matches", "expander 2.0.0", - "proc-macro-crate 3.1.0", - "proc-macro2 1.0.81", + "proc-macro-crate 3.0.0", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -22202,16 +22105,6 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" -[[package]] -name = "universal-hash" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8326b2c654932e3e4f9196e69d08fdf7cfd718e1dc6f66b347e6024a0c961402" -dependencies = [ - "generic-array 0.14.7", - "subtle 2.5.0", -] - [[package]] name = "universal-hash" version = "0.5.1" @@ -22224,9 +22117,9 @@ dependencies = [ [[package]] name = "unsafe-libyaml" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab4c90930b95a82d00dc9e9ac071b4991924390d46cbd0dfe566148667605e4b" +checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" [[package]] name = "unsigned-varint" @@ -22290,9 +22183,9 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "value-bag" -version = "1.9.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a84c137d37ab0142f0f2ddfe332651fdbf252e7b7dbb4e67b6c1f1b2e925101" +checksum = "8fec26a25bd6fca441cdd0f769fd7f891bae119f996de31f86a5eddccef54c1d" dependencies = [ "value-bag-serde1", "value-bag-sval2", @@ -22300,9 +22193,9 @@ dependencies = [ [[package]] name = "value-bag-serde1" -version = "1.9.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccacf50c5cb077a9abb723c5bcb5e0754c1a433f1e1de89edc328e2760b6328b" +checksum = "ead5b693d906686203f19a49e88c477fb8c15798b68cf72f60b4b5521b4ad891" dependencies = [ "erased-serde", "serde", @@ -22311,9 +22204,9 @@ dependencies = [ [[package]] name = "value-bag-sval2" -version = "1.9.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1785bae486022dfb9703915d42287dcb284c1ee37bd1080eeba78cc04721285b" +checksum = "3b9d0f4a816370c3a0d7d82d603b62198af17675b12fe5e91de6b47ceb505882" dependencies = [ "sval", "sval_buffer", @@ -22366,7 +22259,7 @@ dependencies = [ "rand 0.8.5", "rand_chacha 0.3.1", "rand_core 0.6.4", - "sha2 0.10.8", + "sha2 0.10.7", "sha3", "thiserror", "zeroize", @@ -22439,9 +22332,9 @@ dependencies = [ "bumpalo", "log", "once_cell", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", "wasm-bindgen-shared", ] @@ -22473,9 +22366,9 @@ version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -22506,7 +22399,7 @@ version = "0.3.37" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ecb993dd8c836930ed130e020e77d9b2e65dd0fbab1b67c790b0f5d80b11a575" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", ] @@ -22585,9 +22478,9 @@ dependencies = [ [[package]] name = "wasmi" -version = "0.31.0" +version = "0.31.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f341edb80021141d4ae6468cbeefc50798716a347d4085c3811900049ea8945" +checksum = "77a8281d1d660cdf54c76a3efa9ddd0c270cada1383a995db3ccb43d166456c7" dependencies = [ "smallvec", "spin 0.9.8", @@ -22598,9 +22491,9 @@ dependencies = [ [[package]] name = "wasmi_arena" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "401c1f35e413fac1846d4843745589d9ec678977ab35a384db8ae7830525d468" +checksum = "104a7f73be44570cac297b3035d76b169d6599637631cf37a1703326a0727073" [[package]] name = "wasmi_core" @@ -22684,7 +22577,7 @@ dependencies = [ "log", "rustix 0.36.15", "serde", - "sha2 0.10.8", + "sha2 0.10.7", "toml 0.5.11", "windows-sys 0.45.0", "zstd 0.11.2+zstd.1.5.2", @@ -23392,15 +23285,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "winnow" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b1dbce9e90e5404c5a52ed82b1d13fc8cfbdad85033b6f57546ffd1265f8451" -dependencies = [ - "memchr", -] - [[package]] name = "winreg" version = "0.50.0" @@ -23588,10 +23472,10 @@ name = "xcm-procedural" version = "7.0.0" dependencies = [ "Inflector", - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", "staging-xcm", - "syn 2.0.60", + "syn 2.0.53", "trybuild", ] @@ -23711,9 +23595,9 @@ version = "0.7.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] @@ -23731,9 +23615,9 @@ version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ - "proc-macro2 1.0.81", + "proc-macro2 1.0.75", "quote 1.0.35", - "syn 2.0.60", + "syn 2.0.53", ] [[package]] From 7a658d437f4c2da5bfb917e01e708f7a8d025223 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Wed, 1 May 2024 12:17:58 +0200 Subject: [PATCH 28/37] doc(xcm-docs): more explanations and diagrams --- .../xcm/docs/mermaid/transport_protocols.mmd | 6 ++++ polkadot/xcm/docs/mermaid/usdt_location.mmd | 2 +- .../relay_chain/xcm_config.rs | 20 ++++++++----- polkadot/xcm/docs/src/fundamentals.rs | 30 +++++++++++++------ polkadot/xcm/docs/src/glossary.rs | 28 +++++++++++++---- polkadot/xcm/docs/src/guides/mod.rs | 4 +++ polkadot/xcm/docs/src/lib.rs | 2 +- 7 files changed, 68 insertions(+), 24 deletions(-) create mode 100644 polkadot/xcm/docs/mermaid/transport_protocols.mmd diff --git a/polkadot/xcm/docs/mermaid/transport_protocols.mmd b/polkadot/xcm/docs/mermaid/transport_protocols.mmd new file mode 100644 index 0000000000000..c0340db0651a3 --- /dev/null +++ b/polkadot/xcm/docs/mermaid/transport_protocols.mmd @@ -0,0 +1,6 @@ +flowchart + relay[Relaychain] --"DMP"--> paraA["Parachain(2000)"] + relay --"DMP"--> paraB["Parachain(2001)"] + + paraA --"UMP"--> relay + paraB --"UMP"--> relay diff --git a/polkadot/xcm/docs/mermaid/usdt_location.mmd b/polkadot/xcm/docs/mermaid/usdt_location.mmd index 4f237f7058f21..5e9222f6098ec 100644 --- a/polkadot/xcm/docs/mermaid/usdt_location.mmd +++ b/polkadot/xcm/docs/mermaid/usdt_location.mmd @@ -2,5 +2,5 @@ flowchart relay[Polkadot] --> assetHub["Asset Hub"] relay --> anotherPara["Another parachain"] - assetHub --> assetsPallet["Foreign Assets Pallet"] + assetHub --> assetsPallet["Assets Pallet"] assetsPallet --> usdt[1984] diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs index 3dc7a823c9812..e85d765bafe55 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs @@ -19,6 +19,9 @@ parameter_types! { pub ThisNetwork: NetworkId = NetworkId::Polkadot; } +/// Converter from XCM Locations to accounts. +/// This generates sovereign accounts for Locations and converts +/// local AccountId32 junctions to local accounts. pub type LocationToAccountId = ( HashedDescription>, AccountId32Aliases, @@ -27,17 +30,19 @@ pub type LocationToAccountId = ( mod asset_transactor { use super::*; - /// AssetTransactor for handling the Relay Chain token + /// AssetTransactor for handling the Relay Chain token. pub type FungibleTransactor = FungibleAdapter< - // Use this `fungible` implementation + // Use this `fungible` implementation. Balances, - // This transactor handles the native token + // This transactor handles the native token. IsConcrete, - // How to convert an XCM Location into a local account id + // How to convert an XCM Location into a local account id. + // Whenever assets are handled, the location is turned into an account. + // This account is the one where balances are withdrawn/deposited. LocationToAccountId, - // The account id type, needed because `fungible` is generic over it + // The account id type, needed because `fungible` is generic over it. AccountId, - // Not tracking teleports + // Not tracking teleports. (), >; @@ -109,7 +114,8 @@ impl pallet_xcm::Config for Runtime { type XcmExecutor = XcmExecutor; // We don't allow teleports type XcmTeleportFilter = Nothing; - // We allow all reserve transfers + // We allow all reserve transfers. + // This is so it can act as a reserve for its native token. type XcmReserveTransferFilter = Everything; // Same weigher executor uses to weigh XCM programs type Weigher = weigher::Weigher; diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index dc1b329d376ac..10089f968637c 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -11,7 +11,7 @@ //! for them. //! //! The language evolves over time to accomodate the needs of the community -//! via the [RFC process](https://github.com/paritytech/xcm-format/blob/master/proposals/0001-process.md). +//! via the [RFC process](https://github.com/paritytech/xcm-format/blob/master/proposals/0032-process.md). //! //! XCM is the language, it deals with interpreting and executing programs. //! It does not deal with actually **sending** these programs from one consensus system to another. @@ -25,11 +25,11 @@ //! //! For these docs, we'll use a Rust implementation of XCM and the XCVM, consisting of the following //! parts: -//! - XCM: Holds the definition of an XCM program, the instructions and main concepts. -//! - Executor: Implements the XCVM, capable of executing XCMs. Highly configurable. -//! - Builder: A collection of types used to configure the executor. -//! - XCM Pallet: A FRAME pallet for interacting with the executor. -//! - Simulator: A playground to tinker with different XCM programs and executor configurations. +//! - [`XCM`](xcm): Holds the definition of an XCM program, the instructions and main concepts. +//! - [`Executor`](xcm_executor): Implements the XCVM, capable of executing XCMs. Highly configurable. +//! - [`Builder`](xcm_builder): A collection of types used to configure the executor. +//! - [`XCM Pallet`](pallet_xcm): A FRAME pallet for interacting with the executor. +//! - [`Simulator`](xcm_simulator): A playground to tinker with different XCM programs and executor configurations. //! //! XCM programs are composed of Instructions, which reference Locations and Assets. //! @@ -63,7 +63,7 @@ //! Many junctions are available; parachains, pallets, 32 and 20 byte accounts, governance bodies, //! and arbitrary indices are the most common. //! A full list of available junctions can be found in the [format](https://github.com/paritytech/xcm-format#interior-locations--junctions) -//! and [Junction enum](xcm::v3::prelude::Junction). +//! and [Junction enum](xcm::v4::prelude::Junction). //! //! We'll use a file system notation to represent locations, and start with relative locations. //! In the diagram, the location of parachain 1000 as seen from all other locations is as follows: @@ -103,8 +103,13 @@ //! `Parachain(1000)/PalletInstance(53)/GeneralIndex(1984)`, when seen from the Polkadot relaychain. #![doc = simple_mermaid::mermaid!("../mermaid/usdt_location.mmd")] //! +//! Asset Hub also has another type of assets called `ForeignAssets`. +//! These assets are identified by the XCM Location to their origin. +//! Two such assets are a Parachain asset, like Moonbeam's GLMR, and KSM, from the cousin Kusama network. +//! These are represented as `../Parachain(2004)/PalletInstance(10)` and `../../GlobalConsensus(Kusama)` respectively. +//! //! The whole type can be seen in the [format](https://github.com/paritytech/xcm-format#6-universal-asset-identifiers) -//! and [rust docs](xcm::v3::prelude::MultiAsset). +//! and [rust docs](xcm::v4::prelude::Asset). //! //! ## Instructions //! @@ -115,7 +120,7 @@ //! XCM programs are composed of a sequence of instructions. //! //! All available instructions can be seen in the [format](https://github.com/paritytech/xcm-format#5-the-xcvm-instruction-set) -//! and the [Instruction enum](xcm::v3::prelude::Instruction). +//! and the [Instruction enum](xcm::v4::prelude::Instruction). //! //! A very simple example is the following: //! @@ -144,3 +149,10 @@ //! the assets specified in `fees`, with a sanity check of `weight_limit`. `DepositAsset` has the //! same operands as the original `TransferAsset` instruction, specifying `assets` and a //! `beneficiary` account. +//! +//! ## Next steps +//! +//! Continue with the [guides](crate::guides) for step-by-step tutorials on XCM, +//! or jump to the [cookbook](crate::cookbook) to see examples. +//! +//! The [glossary](crate::glossary) can be useful if some of the terms are confusing. diff --git a/polkadot/xcm/docs/src/glossary.rs b/polkadot/xcm/docs/src/glossary.rs index 36b02afd28a45..12156c568fe39 100644 --- a/polkadot/xcm/docs/src/glossary.rs +++ b/polkadot/xcm/docs/src/glossary.rs @@ -16,25 +16,30 @@ //! //! A system that can reach any kind of consensus. //! For example, relay chains, parachains, smart contracts. +//! Most messaging between consensus systems has to be done asynchronously, for this, XCM is used. +//! Between two smart contracts on the same parachain, however, communication can be done synchronously. //! -//! ## MultiLocation +//! ## [`Location`](xcm::v4::prelude::Location) //! //! A way of addressing consensus systems. //! These could be relative or absolute. //! -//! ## Junction +//! ## [`Junction`](xcm::v4::prelude::Junction) //! -//! The different ways of descending down a `MultiLocation` hierarchy. +//! The different ways of descending down a [`Location`](xcm::v4::prelude::Location) hierarchy. //! A junction can be a Parachain, an Account, or more. //! -//! ## MultiAsset +//! ## [`Asset`](xcm::v4::prelude::Asset) //! -//! A way of identifying assets in the same or another consensus system, by using a `MultiLocation`. +//! A way of identifying assets in the same or another consensus system, by using a [`Location`](xcm::v4::prelude::Location). //! //! ## Sovereign account //! //! An account in a consensus system that is controlled by an account in another consensus system. //! +//! Runtimes use a converter between a [`Location`](xcm::v4::prelude::Location) and an account. +//! These converters implement the [`ConvertLocation`](xcm_executor::traits::ConvertLocation) trait. +//! //! ## Teleport //! //! A way of transferring assets between two consensus systems without the need of a third party. @@ -57,6 +62,8 @@ //! Every XCM is an XCVM programme. //! Holds state in registers. //! +//! An implementation of the virtual machine is the [`xcm-executor`](xcm_executor::XcmExecutor). +//! //! ## Holding register //! //! An XCVM register used to hold arbitrary `Asset`s during the execution of an XCVM programme. @@ -67,6 +74,15 @@ //! All XCMs have to pass the barrier to be executed, else they are dropped. //! It can be used for whitelisting only certain types or messages or messages from certain senders. //! +//! Lots of barrier definitions exist in [`xcm-builder`](xcm_builder). +//! +//! ## VMP (Vertical Message Passing) +//! +//! Umbrella term for both UMP (Upward Message Passing) and DMP (Downward Message Passing). +//! +//! The following diagram shows the uses of both protocols: +#![doc = simple_mermaid::mermaid!("../mermaid/transport_protocols.mmd")] +//! //! ## UMP (Upward Message Passing) //! //! Transport-layer protocol that allows parachains to send messages upwards to their relay chain. @@ -85,4 +101,4 @@ //! //! Transport-layer protocol that allows a parachain to send messages to a sibling parachain going //! through the relay chain. It's a precursor to XCMP, also known as XCMP-lite. -//! It uses a mixture of UMP and VMP. +//! It uses a mixture of UMP and DMP. diff --git a/polkadot/xcm/docs/src/guides/mod.rs b/polkadot/xcm/docs/src/guides/mod.rs index 369c05ed698f3..1cde32026bded 100644 --- a/polkadot/xcm/docs/src/guides/mod.rs +++ b/polkadot/xcm/docs/src/guides/mod.rs @@ -3,3 +3,7 @@ //! These guides aim to get you up and running with XCM. //! //! Coming soon. +//! +//! ## Next steps +//! +//! Jump to the [cookbook](crate::cookbook) for different examples. diff --git a/polkadot/xcm/docs/src/lib.rs b/polkadot/xcm/docs/src/lib.rs index 9f28140bf0190..76dd8352a5b6d 100644 --- a/polkadot/xcm/docs/src/lib.rs +++ b/polkadot/xcm/docs/src/lib.rs @@ -23,7 +23,7 @@ //! //! ## Contribute //! -//! To contribute to the format, check out the [RFC process](https://github.com/paritytech/xcm-format/blob/master/proposals/0001-process.md). +//! To contribute to the format, check out the [RFC process](https://github.com/paritytech/xcm-format/blob/master/proposals/0032-process.md). //! To contribute to these docs, [make a PR](https://github.com/paritytech/polkadot-sdk/tree/master/polkadot/xcm/docs). //! //! ## Why Rust Docs? From 0de7bd4190cb4f7bb6bde36faa19904b110e81fc Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Wed, 1 May 2024 13:00:10 +0200 Subject: [PATCH 29/37] feat: move mock_message_queue to xcm-simulator --- Cargo.lock | 4 + .../relay_token_transactor/parachain/mod.rs | 2 +- .../cookbook/relay_token_transactor/tests.rs | 4 +- polkadot/xcm/docs/src/lib.rs | 3 - polkadot/xcm/xcm-simulator/Cargo.toml | 4 + .../example/src/parachain/mock_msg_queue.rs | 185 ------------------ .../example/src/parachain/mod.rs | 6 +- polkadot/xcm/xcm-simulator/src/lib.rs | 4 + .../src/mock_message_queue.rs | 57 ++++-- 9 files changed, 54 insertions(+), 215 deletions(-) delete mode 100644 polkadot/xcm/xcm-simulator/example/src/parachain/mock_msg_queue.rs rename polkadot/xcm/{docs => xcm-simulator}/src/mock_message_queue.rs (84%) diff --git a/Cargo.lock b/Cargo.lock index 6fe80a8fb10b2..db72b034d8cfb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23484,12 +23484,16 @@ name = "xcm-simulator" version = "7.0.0" dependencies = [ "frame-support", + "frame-system", "parity-scale-codec", "paste", "polkadot-core-primitives", "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-runtime-parachains", + "scale-info", "sp-io", + "sp-runtime", "sp-std 14.0.0", "staging-xcm", "staging-xcm-builder", diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs index 7fdcfaabf7b40..4b66f021d7921 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs @@ -5,10 +5,10 @@ use frame::runtime::prelude::*; use frame::deps::frame_system; use frame::traits::IdentityLookup; use xcm_executor::XcmExecutor; +use xcm_simulator::mock_message_queue; mod xcm_config; use xcm_config::XcmConfig; -use crate::mock_message_queue; pub type Block = frame_system::mocking::MockBlock; pub type AccountId = frame::deps::sp_runtime::AccountId32; diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs index 0f0827fe4cd9b..c87d2bda10b86 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs @@ -68,7 +68,7 @@ fn reserve_asset_transfers_work() { // This is why the derivatives are backed one-to-one. let parachains_sovereign_account = relay_chain::LocationToAccountId::convert_location(&destination).unwrap(); - assert_eq!(relay_chain::Balances::free_balance(¶chains_sovereign_account), 50 * CENTS); + assert_eq!(relay_chain::Balances::free_balance(parachains_sovereign_account), 50 * CENTS); }); ParaA::execute_with(|| { @@ -108,7 +108,7 @@ fn reserve_asset_transfers_work() { let parachains_sovereign_account = relay_chain::LocationToAccountId::convert_location(¶chain).unwrap(); assert_eq!( - relay_chain::Balances::free_balance(¶chains_sovereign_account), + relay_chain::Balances::free_balance(parachains_sovereign_account), 25 * CENTS ); }); diff --git a/polkadot/xcm/docs/src/lib.rs b/polkadot/xcm/docs/src/lib.rs index 76dd8352a5b6d..d277711c49113 100644 --- a/polkadot/xcm/docs/src/lib.rs +++ b/polkadot/xcm/docs/src/lib.rs @@ -46,6 +46,3 @@ pub mod cookbook; /// Glossary pub mod glossary; - -/// Mock message queue for some examples -pub mod mock_message_queue; diff --git a/polkadot/xcm/xcm-simulator/Cargo.toml b/polkadot/xcm/xcm-simulator/Cargo.toml index c1c48b6d4c5eb..75c175a2a2ea1 100644 --- a/polkadot/xcm/xcm-simulator/Cargo.toml +++ b/polkadot/xcm/xcm-simulator/Cargo.toml @@ -11,15 +11,19 @@ workspace = true [dependencies] codec = { package = "parity-scale-codec", version = "3.6.1" } +scale-info = { version = "2.6.0", default-features = false } paste = "1.0.7" frame-support = { path = "../../../substrate/frame/support" } +frame-system = { path = "../../../substrate/frame/system" } sp-io = { path = "../../../substrate/primitives/io" } sp-std = { path = "../../../substrate/primitives/std" } +sp-runtime = { path = "../../../substrate/primitives/runtime" } xcm = { package = "staging-xcm", path = ".." } xcm-executor = { package = "staging-xcm-executor", path = "../xcm-executor" } xcm-builder = { package = "staging-xcm-builder", path = "../xcm-builder" } +polkadot-primitives = { path = "../../primitives" } polkadot-core-primitives = { path = "../../core-primitives" } polkadot-parachain-primitives = { path = "../../parachain" } polkadot-runtime-parachains = { path = "../../runtime/parachains" } diff --git a/polkadot/xcm/xcm-simulator/example/src/parachain/mock_msg_queue.rs b/polkadot/xcm/xcm-simulator/example/src/parachain/mock_msg_queue.rs deleted file mode 100644 index 17cde921f3e20..0000000000000 --- a/polkadot/xcm/xcm-simulator/example/src/parachain/mock_msg_queue.rs +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (C) Parity Technologies (UK) Ltd. -// This file is part of Polkadot. - -// Polkadot is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// Polkadot is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with Polkadot. If not, see . - -pub use pallet::*; -use polkadot_core_primitives::BlockNumber as RelayBlockNumber; -use polkadot_parachain_primitives::primitives::{ - DmpMessageHandler, Id as ParaId, XcmpMessageFormat, XcmpMessageHandler, -}; -use sp_runtime::traits::{Get, Hash}; -use xcm::{latest::prelude::*, VersionedXcm}; - -#[frame_support::pallet] -pub mod pallet { - use super::*; - use frame_support::pallet_prelude::*; - - #[pallet::config] - pub trait Config: frame_system::Config { - type RuntimeEvent: From> + IsType<::RuntimeEvent>; - type XcmExecutor: ExecuteXcm; - } - - #[pallet::call] - impl Pallet {} - - #[pallet::pallet] - #[pallet::without_storage_info] - pub struct Pallet(_); - - #[pallet::storage] - pub(super) type ParachainId = StorageValue<_, ParaId, ValueQuery>; - - #[pallet::storage] - /// A queue of received DMP messages - pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; - - impl Get for Pallet { - fn get() -> ParaId { - Self::parachain_id() - } - } - - pub type MessageId = [u8; 32]; - - #[pallet::event] - #[pallet::generate_deposit(pub(super) fn deposit_event)] - pub enum Event { - // XCMP - /// Some XCM was executed OK. - Success(Option), - /// Some XCM failed. - Fail(Option, XcmError), - /// Bad XCM version used. - BadVersion(Option), - /// Bad XCM format used. - BadFormat(Option), - - // DMP - /// Downward message is invalid XCM. - InvalidFormat(MessageId), - /// Downward message is unsupported version of XCM. - UnsupportedVersion(MessageId), - /// Downward message executed with the given outcome. - ExecutedDownward(MessageId, Outcome), - } - - impl Pallet { - /// Get the Parachain Id. - pub fn parachain_id() -> ParaId { - ParachainId::::get() - } - - /// Set the Parachain Id. - pub fn set_para_id(para_id: ParaId) { - ParachainId::::put(para_id); - } - - /// Get the queue of receieved DMP messages. - pub fn received_dmp() -> Vec> { - ReceivedDmp::::get() - } - - fn handle_xcmp_message( - sender: ParaId, - _sent_at: RelayBlockNumber, - xcm: VersionedXcm, - max_weight: Weight, - ) -> Result { - let hash = Encode::using_encoded(&xcm, T::Hashing::hash); - let mut message_hash = Encode::using_encoded(&xcm, sp_io::hashing::blake2_256); - let (result, event) = match Xcm::::try_from(xcm) { - Ok(xcm) => { - let location = (Parent, Parachain(sender.into())); - match T::XcmExecutor::prepare_and_execute( - location, - xcm, - &mut message_hash, - max_weight, - Weight::zero(), - ) { - Outcome::Error { error } => (Err(error), Event::Fail(Some(hash), error)), - Outcome::Complete { used } => (Ok(used), Event::Success(Some(hash))), - // As far as the caller is concerned, this was dispatched without error, so - // we just report the weight used. - Outcome::Incomplete { used, error } => - (Ok(used), Event::Fail(Some(hash), error)), - } - }, - Err(()) => (Err(XcmError::UnhandledXcmVersion), Event::BadVersion(Some(hash))), - }; - Self::deposit_event(event); - result - } - } - - impl XcmpMessageHandler for Pallet { - fn handle_xcmp_messages<'a, I: Iterator>( - iter: I, - max_weight: Weight, - ) -> Weight { - for (sender, sent_at, data) in iter { - let mut data_ref = data; - let _ = XcmpMessageFormat::decode(&mut data_ref) - .expect("Simulator encodes with versioned xcm format; qed"); - - let mut remaining_fragments = data_ref; - while !remaining_fragments.is_empty() { - if let Ok(xcm) = - VersionedXcm::::decode(&mut remaining_fragments) - { - let _ = Self::handle_xcmp_message(sender, sent_at, xcm, max_weight); - } else { - debug_assert!(false, "Invalid incoming XCMP message data"); - } - } - } - max_weight - } - } - - impl DmpMessageHandler for Pallet { - fn handle_dmp_messages( - iter: impl Iterator)>, - limit: Weight, - ) -> Weight { - for (_i, (_sent_at, data)) in iter.enumerate() { - let mut id = sp_io::hashing::blake2_256(&data[..]); - let maybe_versioned = VersionedXcm::::decode(&mut &data[..]); - match maybe_versioned { - Err(_) => { - Self::deposit_event(Event::InvalidFormat(id)); - }, - Ok(versioned) => match Xcm::try_from(versioned) { - Err(()) => Self::deposit_event(Event::UnsupportedVersion(id)), - Ok(x) => { - let outcome = T::XcmExecutor::prepare_and_execute( - Parent, - x.clone(), - &mut id, - limit, - Weight::zero(), - ); - >::append(x); - Self::deposit_event(Event::ExecutedDownward(id, outcome)); - }, - }, - } - } - limit - } - } -} diff --git a/polkadot/xcm/xcm-simulator/example/src/parachain/mod.rs b/polkadot/xcm/xcm-simulator/example/src/parachain/mod.rs index 8021f95516580..93c8302757cb0 100644 --- a/polkadot/xcm/xcm-simulator/example/src/parachain/mod.rs +++ b/polkadot/xcm/xcm-simulator/example/src/parachain/mod.rs @@ -16,7 +16,6 @@ //! Parachain runtime mock. -mod mock_msg_queue; mod xcm_config; pub use xcm_config::*; @@ -36,6 +35,7 @@ use sp_std::prelude::*; use xcm::latest::prelude::*; use xcm_builder::{EnsureXcmOrigin, SignedToAccountId32}; use xcm_executor::{traits::ConvertLocation, XcmExecutor}; +use xcm_simulator::mock_message_queue; pub type AccountId = AccountId32; pub type Balance = u128; @@ -121,7 +121,7 @@ parameter_types! { pub const ReservedDmpWeight: Weight = Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_div(4), 0); } -impl mock_msg_queue::Config for Runtime { +impl mock_message_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; type XcmExecutor = XcmExecutor; } @@ -175,7 +175,7 @@ construct_runtime!( pub struct Runtime { System: frame_system, Balances: pallet_balances, - MsgQueue: mock_msg_queue, + MsgQueue: mock_message_queue, PolkadotXcm: pallet_xcm, ForeignUniques: pallet_uniques, } diff --git a/polkadot/xcm/xcm-simulator/src/lib.rs b/polkadot/xcm/xcm-simulator/src/lib.rs index 7efbc658bbfb8..a6747a4789edf 100644 --- a/polkadot/xcm/xcm-simulator/src/lib.rs +++ b/polkadot/xcm/xcm-simulator/src/lib.rs @@ -16,6 +16,10 @@ //! Test kit to simulate cross-chain message passing and XCM execution. +/// Implementation of a simple message queue. +/// Used for sending messages. +pub mod mock_message_queue; + pub use codec::Encode; pub use paste; diff --git a/polkadot/xcm/docs/src/mock_message_queue.rs b/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs similarity index 84% rename from polkadot/xcm/docs/src/mock_message_queue.rs rename to polkadot/xcm/xcm-simulator/src/mock_message_queue.rs index 693af759cb1ad..214165b47f2c8 100644 --- a/polkadot/xcm/docs/src/mock_message_queue.rs +++ b/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Polkadot. If not, see . -//! Parachain runtime mock. +//! Simple mock message queue. use codec::{Decode, Encode}; @@ -29,11 +29,10 @@ use xcm::{latest::prelude::*, VersionedXcm}; pub use pallet::*; -#[frame::pallet] +#[frame_support::pallet] pub mod pallet { use super::*; - use frame::prelude::*; - use frame::deps::frame_system; + use frame_support::pallet_prelude::*; #[pallet::config] pub trait Config: frame_system::Config { @@ -70,21 +69,37 @@ pub mod pallet { pub enum Event { // XCMP /// Some XCM was executed OK. - Success(Option), + Success { + message_id: Option, + }, /// Some XCM failed. - Fail(Option, XcmError), + Fail { + message_id: Option, + error: XcmError, + }, /// Bad XCM version used. - BadVersion(Option), + BadVersion { + message_id: Option, + }, /// Bad XCM format used. - BadFormat(Option), + BadFormat { + message_id: Option, + }, // DMP /// Downward message is invalid XCM. - InvalidFormat(MessageId), + InvalidFormat { + message_id: MessageId, + }, /// Downward message is unsupported version of XCM. - UnsupportedVersion(MessageId), + UnsupportedVersion { + message_id: MessageId, + }, /// Downward message executed with the given outcome. - ExecutedDownward(MessageId, Outcome), + ExecutedDownward { + message_id: MessageId, + outcome: Outcome, + } } impl Pallet { @@ -104,16 +119,16 @@ pub mod pallet { Ok(xcm) => { let location = (Parent, Parachain(sender.into())); match T::XcmExecutor::prepare_and_execute(location, xcm, &mut message_hash, max_weight, Weight::zero()) { - Outcome::Error { error } => (Err(error), Event::Fail(Some(hash), error)), - Outcome::Complete { used } => (Ok(used), Event::Success(Some(hash))), + Outcome::Error { error } => (Err(error), Event::Fail { message_id: Some(hash), error }), + Outcome::Complete { used } => (Ok(used), Event::Success { message_id: Some(hash) }), // As far as the caller is concerned, this was dispatched without error, so // we just report the weight used. - Outcome::Incomplete { used, error } => (Ok(used), Event::Fail(Some(hash), error)), + Outcome::Incomplete { used, error } => (Ok(used), Event::Fail { message_id: Some(hash), error }), } } Err(()) => ( Err(XcmError::UnhandledXcmVersion), - Event::BadVersion(Some(hash)), + Event::BadVersion { message_id: Some(hash) }, ), }; Self::deposit_event(event); @@ -149,21 +164,21 @@ pub mod pallet { impl DmpMessageHandler for Pallet { fn handle_dmp_messages( iter: impl Iterator)>, - limit: frame::prelude::Weight, - ) -> frame::prelude::Weight { - for (_i, (_sent_at, data)) in iter.enumerate() { + limit: Weight, + ) -> Weight { + for (_sent_at, data) in iter { let mut id = sp_io::hashing::blake2_256(&data[..]); let maybe_versioned = VersionedXcm::::decode(&mut &data[..]); match maybe_versioned { Err(_) => { - Self::deposit_event(Event::InvalidFormat(id)); + Self::deposit_event(Event::InvalidFormat { message_id: id }); } Ok(versioned) => match Xcm::try_from(versioned) { - Err(()) => Self::deposit_event(Event::UnsupportedVersion(id)), + Err(()) => Self::deposit_event(Event::UnsupportedVersion { message_id: id }), Ok(x) => { let outcome = T::XcmExecutor::prepare_and_execute(Parent, x.clone(), &mut id, limit, Weight::zero()); >::append(x); - Self::deposit_event(Event::ExecutedDownward(id, outcome)); + Self::deposit_event(Event::ExecutedDownward { message_id: id, outcome }); } }, } From 3c603e4dd635eb338a9bdeef872c74881ddede3e Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Wed, 1 May 2024 14:31:21 +0200 Subject: [PATCH 30/37] fix: fmt --- polkadot/xcm/docs/src/cookbook/mod.rs | 6 +- .../cookbook/relay_token_transactor/mod.rs | 4 +- .../relay_token_transactor/parachain/mod.rs | 29 +- .../parachain/xcm_config.rs | 242 +++++++------- .../relay_token_transactor/relay_chain/mod.rs | 21 +- .../relay_chain/xcm_config.rs | 194 +++++------ .../cookbook/relay_token_transactor/tests.rs | 7 +- polkadot/xcm/docs/src/fundamentals.rs | 15 +- polkadot/xcm/docs/src/glossary.rs | 6 +- polkadot/xcm/docs/src/lib.rs | 2 +- .../xcm-simulator/src/mock_message_queue.rs | 315 +++++++++--------- 11 files changed, 423 insertions(+), 418 deletions(-) diff --git a/polkadot/xcm/docs/src/cookbook/mod.rs b/polkadot/xcm/docs/src/cookbook/mod.rs index d72fd91a34d0f..be8c9ac9583fa 100644 --- a/polkadot/xcm/docs/src/cookbook/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/mod.rs @@ -2,8 +2,10 @@ //! //! A collection of XCM recipes. //! -//! Each recipe is tested and explains all the code necessary to run it -- they're not just snippets to copy and paste. +//! Each recipe is tested and explains all the code necessary to run it -- they're not just snippets +//! to copy and paste. /// Configuring a parachain that only uses the Relay Chain native token. -/// In the case of Polkadot, this recipe will show you how to launch a parachain with no native token -- dealing only on DOT. +/// In the case of Polkadot, this recipe will show you how to launch a parachain with no native +/// token -- dealing only on DOT. pub mod relay_token_transactor; diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs index 681028465d436..b96057ca7f11b 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs @@ -8,8 +8,8 @@ //! //! The second step is to configure `IsReserve` to recognize the relay chain as a reserve for its //! own asset. -//! With this, you'll be able to easily mint a derivative asset, backed one-to-on from the Relay Chain, by using the xcm -//! pallet's `transfer_assets` extrinsic. +//! With this, you'll be able to easily mint a derivative asset, backed one-to-on from the Relay +//! Chain, by using the xcm pallet's `transfer_assets` extrinsic. //! //! The `IsReserve` type takes a type that implements `ContainsPair`. //! In this case, we want a type that contains the pair `(relay_chain_native_token, relay_chain)`. diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs index 4b66f021d7921..7dbf287a56123 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs @@ -1,9 +1,6 @@ //! # Runtime -use frame::prelude::*; -use frame::runtime::prelude::*; -use frame::deps::frame_system; -use frame::traits::IdentityLookup; +use frame::{deps::frame_system, prelude::*, runtime::prelude::*, traits::IdentityLookup}; use xcm_executor::XcmExecutor; use xcm_simulator::mock_message_queue; @@ -15,20 +12,20 @@ pub type AccountId = frame::deps::sp_runtime::AccountId32; pub type Balance = u64; construct_runtime! { - pub struct Runtime { - System: frame_system, - MessageQueue: mock_message_queue, - Balances: pallet_balances, - XcmPallet: pallet_xcm, - } + pub struct Runtime { + System: frame_system, + MessageQueue: mock_message_queue, + Balances: pallet_balances, + XcmPallet: pallet_xcm, + } } #[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] impl frame_system::Config for Runtime { - type Block = Block; - type AccountId = AccountId; - type Lookup = IdentityLookup; - type AccountData = pallet_balances::AccountData; + type Block = Block; + type AccountId = AccountId; + type Lookup = IdentityLookup; + type AccountData = pallet_balances::AccountData; } impl mock_message_queue::Config for Runtime { @@ -38,6 +35,6 @@ impl mock_message_queue::Config for Runtime { #[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)] impl pallet_balances::Config for Runtime { - type Balance = Balance; - type AccountStore = System; + type Balance = Balance; + type AccountStore = System; } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs index 6965c409e4a20..88273bb995dc3 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs @@ -1,170 +1,172 @@ //! # XCM Configuration -use frame::runtime::prelude::*; -use frame::traits::{Nothing, Everything}; -use frame::deps::frame_system; -use xcm_builder::{ - IsConcrete, FungibleAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, - EnsureXcmOrigin, SignedToAccountId32, AccountId32Aliases, FrameTransactionalProcessor, +use frame::{ + deps::frame_system, + runtime::prelude::*, + traits::{Everything, Nothing}, }; use xcm::v4::prelude::*; +use xcm_builder::{ + AccountId32Aliases, DescribeAllTerminal, DescribeFamily, EnsureXcmOrigin, + FrameTransactionalProcessor, FungibleAdapter, HashedDescription, IsConcrete, + SignedToAccountId32, +}; use xcm_executor::XcmExecutor; -use super::{ - Runtime, Balances, AccountId, RuntimeCall, RuntimeOrigin, RuntimeEvent, MessageQueue, -}; +use super::{AccountId, Balances, MessageQueue, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin}; parameter_types! { - pub RelayLocation: Location = Location::parent(); - pub ThisNetwork: NetworkId = NetworkId::Polkadot; + pub RelayLocation: Location = Location::parent(); + pub ThisNetwork: NetworkId = NetworkId::Polkadot; } pub type LocationToAccountId = ( - HashedDescription>, - AccountId32Aliases, + HashedDescription>, + AccountId32Aliases, ); /// Configuration related to asset transactors #[docify::export] mod asset_transactor { - use super::*; - - parameter_types! { - pub ParentRelayLocation: Location = Location::parent(); - } - - /// AssetTransactor for handling the relay chain token - pub type FungibleTransactor = FungibleAdapter< - // Use this implementation of the `fungible::*` traits. - // `Balances` is the name given to the balances pallet in this particular recipe. - // Any implementation of the traits would suffice. - Balances, - // This transactor deals with the native token of the Relay Chain. - // This token is referenced by the Location of the Relay Chain relative to this chain - // -- Location::parent(). - IsConcrete, - // How to convert an XCM Location into a local account id. - // This is also something that's configured in the XCM executor. - LocationToAccountId, - // The type for account ids, only needed because `fungible` is generic over it. - AccountId, - // Not tracking teleports. - // This recipe only uses reserve asset transfers to handle the Relay Chain token. - (), - >; - - /// Actual configuration item that'll be set in the XCM config. - /// A tuple could be used here to have multiple transactors, each (potentially) handling - /// different assets. - /// In this recipe, we only have one. - pub type AssetTransactor = FungibleTransactor; + use super::*; + + parameter_types! { + pub ParentRelayLocation: Location = Location::parent(); + } + + /// AssetTransactor for handling the relay chain token + pub type FungibleTransactor = FungibleAdapter< + // Use this implementation of the `fungible::*` traits. + // `Balances` is the name given to the balances pallet in this particular recipe. + // Any implementation of the traits would suffice. + Balances, + // This transactor deals with the native token of the Relay Chain. + // This token is referenced by the Location of the Relay Chain relative to this chain + // -- Location::parent(). + IsConcrete, + // How to convert an XCM Location into a local account id. + // This is also something that's configured in the XCM executor. + LocationToAccountId, + // The type for account ids, only needed because `fungible` is generic over it. + AccountId, + // Not tracking teleports. + // This recipe only uses reserve asset transfers to handle the Relay Chain token. + (), + >; + + /// Actual configuration item that'll be set in the XCM config. + /// A tuple could be used here to have multiple transactors, each (potentially) handling + /// different assets. + /// In this recipe, we only have one. + pub type AssetTransactor = FungibleTransactor; } /// Configuration related to token reserves #[docify::export] mod is_reserve { - use super::*; - - parameter_types! { - /// Reserves are specified using a pair `(AssetFilter, Location)`. - /// Each pair means that the specified Location is a reserve for all the assets in AssetsFilter. - /// Here, we are specifying that the Relay Chain is the reserve location for its native token. - pub RelayTokenForRelay: (AssetFilter, Location) = - (Wild(AllOf { id: AssetId(Parent.into()), fun: WildFungible }), Parent.into()); - } - - /// The wrapper type xcm_builder::Case is needed in order to use this in the configuration. - pub type IsReserve = xcm_builder::Case; + use super::*; + + parameter_types! { + /// Reserves are specified using a pair `(AssetFilter, Location)`. + /// Each pair means that the specified Location is a reserve for all the assets in AssetsFilter. + /// Here, we are specifying that the Relay Chain is the reserve location for its native token. + pub RelayTokenForRelay: (AssetFilter, Location) = + (Wild(AllOf { id: AssetId(Parent.into()), fun: WildFungible }), Parent.into()); + } + + /// The wrapper type xcm_builder::Case is needed in order to use this in the configuration. + pub type IsReserve = xcm_builder::Case; } mod weigher { - use super::*; - use xcm_builder::FixedWeightBounds; + use super::*; + use xcm_builder::FixedWeightBounds; - parameter_types! { - pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); - pub const MaxInstructions: u32 = 100; - } + parameter_types! { + pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); + pub const MaxInstructions: u32 = 100; + } - pub type Weigher = FixedWeightBounds; + pub type Weigher = FixedWeightBounds; } parameter_types! { - pub UniversalLocation: InteriorLocation = [GlobalConsensus(NetworkId::Polkadot), Parachain(2222)].into(); + pub UniversalLocation: InteriorLocation = [GlobalConsensus(NetworkId::Polkadot), Parachain(2222)].into(); } pub struct XcmConfig; impl xcm_executor::Config for XcmConfig { - type RuntimeCall = RuntimeCall; - type XcmSender = (); - type AssetTransactor = asset_transactor::AssetTransactor; - type OriginConverter = (); - // The declaration of which Locations are reserves for which Assets. - type IsReserve = is_reserve::IsReserve; - type IsTeleporter = (); - type UniversalLocation = UniversalLocation; - // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a production chain - type Barrier = xcm_builder::AllowUnpaidExecutionFrom; - type Weigher = weigher::Weigher; - type Trader = (); - type ResponseHandler = (); - type AssetTrap = (); - type AssetLocker = (); - type AssetExchanger = (); - type AssetClaims = (); - type SubscriptionService = (); - type PalletInstancesInfo = (); - type FeeManager = (); - type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; - type MessageExporter = (); - type UniversalAliases = Nothing; - type CallDispatcher = RuntimeCall; - type SafeCallFilter = Everything; - type Aliasers = Nothing; - type TransactionalProcessor = FrameTransactionalProcessor; - type HrmpNewChannelOpenRequestHandler = (); - type HrmpChannelAcceptedHandler = (); - type HrmpChannelClosingHandler = (); + type RuntimeCall = RuntimeCall; + type XcmSender = (); + type AssetTransactor = asset_transactor::AssetTransactor; + type OriginConverter = (); + // The declaration of which Locations are reserves for which Assets. + type IsReserve = is_reserve::IsReserve; + type IsTeleporter = (); + type UniversalLocation = UniversalLocation; + // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a + // production chain + type Barrier = xcm_builder::AllowUnpaidExecutionFrom; + type Weigher = weigher::Weigher; + type Trader = (); + type ResponseHandler = (); + type AssetTrap = (); + type AssetLocker = (); + type AssetExchanger = (); + type AssetClaims = (); + type SubscriptionService = (); + type PalletInstancesInfo = (); + type FeeManager = (); + type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; + type TransactionalProcessor = FrameTransactionalProcessor; + type HrmpNewChannelOpenRequestHandler = (); + type HrmpChannelAcceptedHandler = (); + type HrmpChannelClosingHandler = (); } pub type LocalOriginToLocation = SignedToAccountId32; impl pallet_xcm::Config for Runtime { - // We turn off sending for these tests - type SendXcmOrigin = EnsureXcmOrigin; - type XcmRouter = super::super::network::ParachainXcmRouter; // Provided by xcm-simulator - // Anyone can execute XCM programs - type ExecuteXcmOrigin = EnsureXcmOrigin; - // We execute any type of program - type XcmExecuteFilter = Everything; - // How we execute programs - type XcmExecutor = XcmExecutor; - // We don't allow teleports - type XcmTeleportFilter = Nothing; - // We allow all reserve transfers - type XcmReserveTransferFilter = Everything; - // Same weigher executor uses to weigh XCM programs - type Weigher = weigher::Weigher; - // Same universal location - type UniversalLocation = UniversalLocation; - // No version discovery needed + // We turn off sending for these tests + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = super::super::network::ParachainXcmRouter; // Provided by xcm-simulator + // Anyone can execute XCM programs + type ExecuteXcmOrigin = EnsureXcmOrigin; + // We execute any type of program + type XcmExecuteFilter = Everything; + // How we execute programs + type XcmExecutor = XcmExecutor; + // We don't allow teleports + type XcmTeleportFilter = Nothing; + // We allow all reserve transfers + type XcmReserveTransferFilter = Everything; + // Same weigher executor uses to weigh XCM programs + type Weigher = weigher::Weigher; + // Same universal location + type UniversalLocation = UniversalLocation; + // No version discovery needed const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 0; type AdvertisedXcmVersion = frame::traits::ConstU32<3>; type AdminOrigin = frame_system::EnsureRoot; - // No locking + // No locking type TrustedLockers = (); type MaxLockers = frame::traits::ConstU32<0>; type MaxRemoteLockConsumers = frame::traits::ConstU32<0>; type RemoteLockConsumerIdentifier = (); - // How to turn locations into accounts + // How to turn locations into accounts type SovereignAccountOf = LocationToAccountId; - // A currency to pay for things and its matcher, we are using the relay token + // A currency to pay for things and its matcher, we are using the relay token type Currency = Balances; type CurrencyMatcher = IsConcrete; - // Pallet benchmarks, no need for this recipe + // Pallet benchmarks, no need for this recipe type WeightInfo = pallet_xcm::TestWeightInfo; - // Runtime types - type RuntimeOrigin = RuntimeOrigin; - type RuntimeCall = RuntimeCall; - type RuntimeEvent = RuntimeEvent; + // Runtime types + type RuntimeOrigin = RuntimeOrigin; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs index 6b9447d580b74..0f477c71c2ce1 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs @@ -1,20 +1,17 @@ //! Relay chain runtime mock. -use frame::prelude::*; -use frame::runtime::prelude::*; -use frame::deps::{ - sp_runtime::AccountId32, - frame_support::weights::WeightMeter, -}; -use frame::traits::{IdentityLookup, ProcessMessage, ProcessMessageError}; -use polkadot_runtime_parachains::{ - inclusion::{AggregateMessageOrigin, UmpQueueId}, +use frame::{ + deps::{frame_support::weights::WeightMeter, sp_runtime::AccountId32}, + prelude::*, + runtime::prelude::*, + traits::{IdentityLookup, ProcessMessage, ProcessMessageError}, }; +use polkadot_runtime_parachains::inclusion::{AggregateMessageOrigin, UmpQueueId}; use xcm::v4::prelude::*; mod xcm_config; -use xcm_config::XcmConfig; pub use xcm_config::LocationToAccountId; +use xcm_config::XcmConfig; pub type AccountId = AccountId32; pub type Balance = u64; @@ -33,7 +30,7 @@ impl frame_system::Config for Runtime { #[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)] impl pallet_balances::Config for Runtime { - type AccountStore = System; + type AccountStore = System; } type Block = frame_system::mocking::MockBlock; @@ -85,6 +82,6 @@ construct_runtime! { System: frame_system, Balances: pallet_balances, MessageQueue: pallet_message_queue, - XcmPallet: pallet_xcm, + XcmPallet: pallet_xcm, } } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs index e85d765bafe55..d079cac22881d 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs @@ -1,144 +1,146 @@ //! Relay chain XCM configuration -use frame::runtime::prelude::*; -use frame::traits::{Nothing, Everything}; -use frame::deps::frame_system; -use xcm_builder::{ - IsConcrete, FungibleAdapter, HashedDescription, DescribeFamily, DescribeAllTerminal, - EnsureXcmOrigin, SignedToAccountId32, AccountId32Aliases, FrameTransactionalProcessor, +use frame::{ + deps::frame_system, + runtime::prelude::*, + traits::{Everything, Nothing}, }; use xcm::v4::prelude::*; +use xcm_builder::{ + AccountId32Aliases, DescribeAllTerminal, DescribeFamily, EnsureXcmOrigin, + FrameTransactionalProcessor, FungibleAdapter, HashedDescription, IsConcrete, + SignedToAccountId32, +}; use xcm_executor::XcmExecutor; -use super::{ - Runtime, Balances, AccountId, RuntimeCall, RuntimeOrigin, RuntimeEvent, -}; +use super::{AccountId, Balances, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin}; parameter_types! { - pub HereLocation: Location = Location::here(); - pub ThisNetwork: NetworkId = NetworkId::Polkadot; + pub HereLocation: Location = Location::here(); + pub ThisNetwork: NetworkId = NetworkId::Polkadot; } /// Converter from XCM Locations to accounts. /// This generates sovereign accounts for Locations and converts /// local AccountId32 junctions to local accounts. pub type LocationToAccountId = ( - HashedDescription>, - AccountId32Aliases, + HashedDescription>, + AccountId32Aliases, ); mod asset_transactor { - use super::*; + use super::*; - /// AssetTransactor for handling the Relay Chain token. - pub type FungibleTransactor = FungibleAdapter< - // Use this `fungible` implementation. - Balances, - // This transactor handles the native token. - IsConcrete, - // How to convert an XCM Location into a local account id. - // Whenever assets are handled, the location is turned into an account. - // This account is the one where balances are withdrawn/deposited. - LocationToAccountId, - // The account id type, needed because `fungible` is generic over it. - AccountId, - // Not tracking teleports. - (), - >; + /// AssetTransactor for handling the Relay Chain token. + pub type FungibleTransactor = FungibleAdapter< + // Use this `fungible` implementation. + Balances, + // This transactor handles the native token. + IsConcrete, + // How to convert an XCM Location into a local account id. + // Whenever assets are handled, the location is turned into an account. + // This account is the one where balances are withdrawn/deposited. + LocationToAccountId, + // The account id type, needed because `fungible` is generic over it. + AccountId, + // Not tracking teleports. + (), + >; - /// All asset transactors, in this case only one - pub type AssetTransactor = FungibleTransactor; + /// All asset transactors, in this case only one + pub type AssetTransactor = FungibleTransactor; } mod weigher { - use super::*; - use xcm_builder::FixedWeightBounds; + use super::*; + use xcm_builder::FixedWeightBounds; - parameter_types! { - pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); - pub const MaxInstructions: u32 = 100; - } + parameter_types! { + pub const WeightPerInstruction: Weight = Weight::from_parts(1, 1); + pub const MaxInstructions: u32 = 100; + } - pub type Weigher = FixedWeightBounds; + pub type Weigher = FixedWeightBounds; } parameter_types! { - pub UniversalLocation: InteriorLocation = [GlobalConsensus(NetworkId::Polkadot)].into(); + pub UniversalLocation: InteriorLocation = [GlobalConsensus(NetworkId::Polkadot)].into(); } pub struct XcmConfig; impl xcm_executor::Config for XcmConfig { - type RuntimeCall = RuntimeCall; - type XcmSender = (); - type AssetTransactor = asset_transactor::AssetTransactor; - type OriginConverter = (); - // We don't need to recognize anyone as a reserve - type IsReserve = (); - type IsTeleporter = (); - type UniversalLocation = UniversalLocation; - // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a production chain - type Barrier = xcm_builder::AllowUnpaidExecutionFrom; - type Weigher = weigher::Weigher; - type Trader = (); - type ResponseHandler = (); - type AssetTrap = (); - type AssetLocker = (); - type AssetExchanger = (); - type AssetClaims = (); - type SubscriptionService = (); - type PalletInstancesInfo = (); - type FeeManager = (); - type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; - type MessageExporter = (); - type UniversalAliases = Nothing; - type CallDispatcher = RuntimeCall; - type SafeCallFilter = Everything; - type Aliasers = Nothing; - type TransactionalProcessor = FrameTransactionalProcessor; - type HrmpNewChannelOpenRequestHandler = (); - type HrmpChannelAcceptedHandler = (); - type HrmpChannelClosingHandler = (); + type RuntimeCall = RuntimeCall; + type XcmSender = (); + type AssetTransactor = asset_transactor::AssetTransactor; + type OriginConverter = (); + // We don't need to recognize anyone as a reserve + type IsReserve = (); + type IsTeleporter = (); + type UniversalLocation = UniversalLocation; + // This is not safe, you should use `xcm_builder::AllowTopLevelPaidExecutionFrom` in a + // production chain + type Barrier = xcm_builder::AllowUnpaidExecutionFrom; + type Weigher = weigher::Weigher; + type Trader = (); + type ResponseHandler = (); + type AssetTrap = (); + type AssetLocker = (); + type AssetExchanger = (); + type AssetClaims = (); + type SubscriptionService = (); + type PalletInstancesInfo = (); + type FeeManager = (); + type MaxAssetsIntoHolding = frame::traits::ConstU32<1>; + type MessageExporter = (); + type UniversalAliases = Nothing; + type CallDispatcher = RuntimeCall; + type SafeCallFilter = Everything; + type Aliasers = Nothing; + type TransactionalProcessor = FrameTransactionalProcessor; + type HrmpNewChannelOpenRequestHandler = (); + type HrmpChannelAcceptedHandler = (); + type HrmpChannelClosingHandler = (); } pub type LocalOriginToLocation = SignedToAccountId32; impl pallet_xcm::Config for Runtime { - // No one can call `send` - type SendXcmOrigin = EnsureXcmOrigin; - type XcmRouter = super::super::network::RelayChainXcmRouter; // Provided by xcm-simulator - // Anyone can execute XCM programs - type ExecuteXcmOrigin = EnsureXcmOrigin; - // We execute any type of program - type XcmExecuteFilter = Everything; - // How we execute programs - type XcmExecutor = XcmExecutor; - // We don't allow teleports - type XcmTeleportFilter = Nothing; - // We allow all reserve transfers. - // This is so it can act as a reserve for its native token. - type XcmReserveTransferFilter = Everything; - // Same weigher executor uses to weigh XCM programs - type Weigher = weigher::Weigher; - // Same universal location - type UniversalLocation = UniversalLocation; - // No version discovery needed + // No one can call `send` + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = super::super::network::RelayChainXcmRouter; // Provided by xcm-simulator + // Anyone can execute XCM programs + type ExecuteXcmOrigin = EnsureXcmOrigin; + // We execute any type of program + type XcmExecuteFilter = Everything; + // How we execute programs + type XcmExecutor = XcmExecutor; + // We don't allow teleports + type XcmTeleportFilter = Nothing; + // We allow all reserve transfers. + // This is so it can act as a reserve for its native token. + type XcmReserveTransferFilter = Everything; + // Same weigher executor uses to weigh XCM programs + type Weigher = weigher::Weigher; + // Same universal location + type UniversalLocation = UniversalLocation; + // No version discovery needed const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 0; type AdvertisedXcmVersion = frame::traits::ConstU32<3>; type AdminOrigin = frame_system::EnsureRoot; - // No locking + // No locking type TrustedLockers = (); type MaxLockers = frame::traits::ConstU32<0>; type MaxRemoteLockConsumers = frame::traits::ConstU32<0>; type RemoteLockConsumerIdentifier = (); - // How to turn locations into accounts + // How to turn locations into accounts type SovereignAccountOf = LocationToAccountId; - // A currency to pay for things and its matcher, we are using the relay token + // A currency to pay for things and its matcher, we are using the relay token type Currency = Balances; type CurrencyMatcher = IsConcrete; - // Pallet benchmarks, no need for this example + // Pallet benchmarks, no need for this example type WeightInfo = pallet_xcm::TestWeightInfo; - // Runtime types - type RuntimeOrigin = RuntimeOrigin; - type RuntimeCall = RuntimeCall; - type RuntimeEvent = RuntimeEvent; + // Runtime types + type RuntimeOrigin = RuntimeOrigin; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; } diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs index c87d2bda10b86..2925cc2d01dfb 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs @@ -1,8 +1,8 @@ use frame::testing_prelude::*; use test_log::test; use xcm::prelude::*; -use xcm_simulator::TestExt; use xcm_executor::traits::ConvertLocation; +use xcm_simulator::TestExt; use super::{ network::{MockNet, ParaA, Relay, ALICE, BOB, CENTS, INITIAL_BALANCE}, @@ -107,9 +107,6 @@ fn reserve_asset_transfers_work() { let parachain: Location = Parachain(2222).into(); let parachains_sovereign_account = relay_chain::LocationToAccountId::convert_location(¶chain).unwrap(); - assert_eq!( - relay_chain::Balances::free_balance(parachains_sovereign_account), - 25 * CENTS - ); + assert_eq!(relay_chain::Balances::free_balance(parachains_sovereign_account), 25 * CENTS); }); } diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index 10089f968637c..27847031f2fd2 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -26,10 +26,12 @@ //! For these docs, we'll use a Rust implementation of XCM and the XCVM, consisting of the following //! parts: //! - [`XCM`](xcm): Holds the definition of an XCM program, the instructions and main concepts. -//! - [`Executor`](xcm_executor): Implements the XCVM, capable of executing XCMs. Highly configurable. +//! - [`Executor`](xcm_executor): Implements the XCVM, capable of executing XCMs. Highly +//! configurable. //! - [`Builder`](xcm_builder): A collection of types used to configure the executor. //! - [`XCM Pallet`](pallet_xcm): A FRAME pallet for interacting with the executor. -//! - [`Simulator`](xcm_simulator): A playground to tinker with different XCM programs and executor configurations. +//! - [`Simulator`](xcm_simulator): A playground to tinker with different XCM programs and executor +//! configurations. //! //! XCM programs are composed of Instructions, which reference Locations and Assets. //! @@ -105,16 +107,17 @@ //! //! Asset Hub also has another type of assets called `ForeignAssets`. //! These assets are identified by the XCM Location to their origin. -//! Two such assets are a Parachain asset, like Moonbeam's GLMR, and KSM, from the cousin Kusama network. -//! These are represented as `../Parachain(2004)/PalletInstance(10)` and `../../GlobalConsensus(Kusama)` respectively. +//! Two such assets are a Parachain asset, like Moonbeam's GLMR, and KSM, from the cousin Kusama +//! network. These are represented as `../Parachain(2004)/PalletInstance(10)` and +//! `../../GlobalConsensus(Kusama)` respectively. //! //! The whole type can be seen in the [format](https://github.com/paritytech/xcm-format#6-universal-asset-identifiers) //! and [rust docs](xcm::v4::prelude::Asset). //! //! ## Instructions //! -//! Given the vocabulary to talk about both locations -- chains and accounts -- and assets, we now need -//! a way to express what we want the consensus system to do when executing our programs. +//! Given the vocabulary to talk about both locations -- chains and accounts -- and assets, we now +//! need a way to express what we want the consensus system to do when executing our programs. //! We need a way of writing our programs. //! //! XCM programs are composed of a sequence of instructions. diff --git a/polkadot/xcm/docs/src/glossary.rs b/polkadot/xcm/docs/src/glossary.rs index 12156c568fe39..efcd5a3cc92a5 100644 --- a/polkadot/xcm/docs/src/glossary.rs +++ b/polkadot/xcm/docs/src/glossary.rs @@ -17,7 +17,8 @@ //! A system that can reach any kind of consensus. //! For example, relay chains, parachains, smart contracts. //! Most messaging between consensus systems has to be done asynchronously, for this, XCM is used. -//! Between two smart contracts on the same parachain, however, communication can be done synchronously. +//! Between two smart contracts on the same parachain, however, communication can be done +//! synchronously. //! //! ## [`Location`](xcm::v4::prelude::Location) //! @@ -31,7 +32,8 @@ //! //! ## [`Asset`](xcm::v4::prelude::Asset) //! -//! A way of identifying assets in the same or another consensus system, by using a [`Location`](xcm::v4::prelude::Location). +//! A way of identifying assets in the same or another consensus system, by using a +//! [`Location`](xcm::v4::prelude::Location). //! //! ## Sovereign account //! diff --git a/polkadot/xcm/docs/src/lib.rs b/polkadot/xcm/docs/src/lib.rs index d277711c49113..439516d69ecfa 100644 --- a/polkadot/xcm/docs/src/lib.rs +++ b/polkadot/xcm/docs/src/lib.rs @@ -24,7 +24,7 @@ //! ## Contribute //! //! To contribute to the format, check out the [RFC process](https://github.com/paritytech/xcm-format/blob/master/proposals/0032-process.md). -//! To contribute to these docs, [make a PR](https://github.com/paritytech/polkadot-sdk/tree/master/polkadot/xcm/docs). +//! To contribute to these docs, [make a PR](https://github.com/paritytech/polkadot-sdk). //! //! ## Why Rust Docs? //! diff --git a/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs b/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs index 214165b47f2c8..6568b9828764c 100644 --- a/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs +++ b/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs @@ -19,7 +19,7 @@ use codec::{Decode, Encode}; use polkadot_parachain_primitives::primitives::{ - DmpMessageHandler, Id as ParaId, XcmpMessageFormat, XcmpMessageHandler, + DmpMessageHandler, Id as ParaId, XcmpMessageFormat, XcmpMessageHandler, }; use polkadot_primitives::BlockNumber as RelayBlockNumber; use sp_runtime::traits::{Get, Hash}; @@ -31,159 +31,162 @@ pub use pallet::*; #[frame_support::pallet] pub mod pallet { - use super::*; - use frame_support::pallet_prelude::*; - - #[pallet::config] - pub trait Config: frame_system::Config { - type RuntimeEvent: From> + IsType<::RuntimeEvent>; - type XcmExecutor: ExecuteXcm; - } - - #[pallet::call] - impl Pallet {} - - #[pallet::pallet] - #[pallet::without_storage_info] - pub struct Pallet(_); - - #[pallet::storage] - #[pallet::getter(fn parachain_id)] - pub(super) type ParachainId = StorageValue<_, ParaId, ValueQuery>; - - #[pallet::storage] - #[pallet::getter(fn received_dmp)] - /// A queue of received DMP messages - pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; - - impl Get for Pallet { - fn get() -> ParaId { - Self::parachain_id() - } - } - - pub type MessageId = [u8; 32]; - - #[pallet::event] - #[pallet::generate_deposit(pub(super) fn deposit_event)] - pub enum Event { - // XCMP - /// Some XCM was executed OK. - Success { - message_id: Option, - }, - /// Some XCM failed. - Fail { - message_id: Option, - error: XcmError, - }, - /// Bad XCM version used. - BadVersion { - message_id: Option, - }, - /// Bad XCM format used. - BadFormat { - message_id: Option, - }, - - // DMP - /// Downward message is invalid XCM. - InvalidFormat { - message_id: MessageId, - }, - /// Downward message is unsupported version of XCM. - UnsupportedVersion { - message_id: MessageId, - }, - /// Downward message executed with the given outcome. - ExecutedDownward { - message_id: MessageId, - outcome: Outcome, - } - } - - impl Pallet { - pub fn set_para_id(para_id: ParaId) { - ParachainId::::put(para_id); - } - - fn handle_xcmp_message( - sender: ParaId, - _sent_at: RelayBlockNumber, - xcm: VersionedXcm, - max_weight: xcm::latest::Weight, - ) -> Result { - let hash = Encode::using_encoded(&xcm, T::Hashing::hash); - let mut message_hash = Encode::using_encoded(&xcm, sp_io::hashing::blake2_256); - let (result, event) = match Xcm::::try_from(xcm) { - Ok(xcm) => { - let location = (Parent, Parachain(sender.into())); - match T::XcmExecutor::prepare_and_execute(location, xcm, &mut message_hash, max_weight, Weight::zero()) { - Outcome::Error { error } => (Err(error), Event::Fail { message_id: Some(hash), error }), - Outcome::Complete { used } => (Ok(used), Event::Success { message_id: Some(hash) }), - // As far as the caller is concerned, this was dispatched without error, so - // we just report the weight used. - Outcome::Incomplete { used, error } => (Ok(used), Event::Fail { message_id: Some(hash), error }), - } - } - Err(()) => ( - Err(XcmError::UnhandledXcmVersion), - Event::BadVersion { message_id: Some(hash) }, - ), - }; - Self::deposit_event(event); - result - } - } - - impl XcmpMessageHandler for Pallet { - fn handle_xcmp_messages<'a, I: Iterator>( - iter: I, - max_weight: xcm::latest::Weight, - ) -> xcm::latest::Weight { - for (sender, sent_at, data) in iter { - let mut data_ref = data; - let _ = XcmpMessageFormat::decode(&mut data_ref) - .expect("Simulator encodes with versioned xcm format; qed"); - - let mut remaining_fragments = data_ref; - while !remaining_fragments.is_empty() { - if let Ok(xcm) = - VersionedXcm::::decode(&mut remaining_fragments) - { - let _ = Self::handle_xcmp_message(sender, sent_at, xcm, max_weight); - } else { - debug_assert!(false, "Invalid incoming XCMP message data"); - } - } - } - max_weight - } - } - - impl DmpMessageHandler for Pallet { - fn handle_dmp_messages( - iter: impl Iterator)>, - limit: Weight, - ) -> Weight { - for (_sent_at, data) in iter { - let mut id = sp_io::hashing::blake2_256(&data[..]); - let maybe_versioned = VersionedXcm::::decode(&mut &data[..]); - match maybe_versioned { - Err(_) => { - Self::deposit_event(Event::InvalidFormat { message_id: id }); - } - Ok(versioned) => match Xcm::try_from(versioned) { - Err(()) => Self::deposit_event(Event::UnsupportedVersion { message_id: id }), - Ok(x) => { - let outcome = T::XcmExecutor::prepare_and_execute(Parent, x.clone(), &mut id, limit, Weight::zero()); - >::append(x); - Self::deposit_event(Event::ExecutedDownward { message_id: id, outcome }); - } - }, - } - } - limit - } - } + use super::*; + use frame_support::pallet_prelude::*; + + #[pallet::config] + pub trait Config: frame_system::Config { + type RuntimeEvent: From> + IsType<::RuntimeEvent>; + type XcmExecutor: ExecuteXcm; + } + + #[pallet::call] + impl Pallet {} + + #[pallet::pallet] + #[pallet::without_storage_info] + pub struct Pallet(_); + + #[pallet::storage] + #[pallet::getter(fn parachain_id)] + pub(super) type ParachainId = StorageValue<_, ParaId, ValueQuery>; + + #[pallet::storage] + #[pallet::getter(fn received_dmp)] + /// A queue of received DMP messages + pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; + + impl Get for Pallet { + fn get() -> ParaId { + Self::parachain_id() + } + } + + pub type MessageId = [u8; 32]; + + #[pallet::event] + #[pallet::generate_deposit(pub(super) fn deposit_event)] + pub enum Event { + // XCMP + /// Some XCM was executed OK. + Success { message_id: Option }, + /// Some XCM failed. + Fail { message_id: Option, error: XcmError }, + /// Bad XCM version used. + BadVersion { message_id: Option }, + /// Bad XCM format used. + BadFormat { message_id: Option }, + + // DMP + /// Downward message is invalid XCM. + InvalidFormat { message_id: MessageId }, + /// Downward message is unsupported version of XCM. + UnsupportedVersion { message_id: MessageId }, + /// Downward message executed with the given outcome. + ExecutedDownward { message_id: MessageId, outcome: Outcome }, + } + + impl Pallet { + pub fn set_para_id(para_id: ParaId) { + ParachainId::::put(para_id); + } + + fn handle_xcmp_message( + sender: ParaId, + _sent_at: RelayBlockNumber, + xcm: VersionedXcm, + max_weight: xcm::latest::Weight, + ) -> Result { + let hash = Encode::using_encoded(&xcm, T::Hashing::hash); + let mut message_hash = Encode::using_encoded(&xcm, sp_io::hashing::blake2_256); + let (result, event) = match Xcm::::try_from(xcm) { + Ok(xcm) => { + let location = (Parent, Parachain(sender.into())); + match T::XcmExecutor::prepare_and_execute( + location, + xcm, + &mut message_hash, + max_weight, + Weight::zero(), + ) { + Outcome::Error { error } => + (Err(error), Event::Fail { message_id: Some(hash), error }), + Outcome::Complete { used } => + (Ok(used), Event::Success { message_id: Some(hash) }), + // As far as the caller is concerned, this was dispatched without error, so + // we just report the weight used. + Outcome::Incomplete { used, error } => + (Ok(used), Event::Fail { message_id: Some(hash), error }), + } + }, + Err(()) => ( + Err(XcmError::UnhandledXcmVersion), + Event::BadVersion { message_id: Some(hash) }, + ), + }; + Self::deposit_event(event); + result + } + } + + impl XcmpMessageHandler for Pallet { + fn handle_xcmp_messages<'a, I: Iterator>( + iter: I, + max_weight: xcm::latest::Weight, + ) -> xcm::latest::Weight { + for (sender, sent_at, data) in iter { + let mut data_ref = data; + let _ = XcmpMessageFormat::decode(&mut data_ref) + .expect("Simulator encodes with versioned xcm format; qed"); + + let mut remaining_fragments = data_ref; + while !remaining_fragments.is_empty() { + if let Ok(xcm) = + VersionedXcm::::decode(&mut remaining_fragments) + { + let _ = Self::handle_xcmp_message(sender, sent_at, xcm, max_weight); + } else { + debug_assert!(false, "Invalid incoming XCMP message data"); + } + } + } + max_weight + } + } + + impl DmpMessageHandler for Pallet { + fn handle_dmp_messages( + iter: impl Iterator)>, + limit: Weight, + ) -> Weight { + for (_sent_at, data) in iter { + let mut id = sp_io::hashing::blake2_256(&data[..]); + let maybe_versioned = VersionedXcm::::decode(&mut &data[..]); + match maybe_versioned { + Err(_) => { + Self::deposit_event(Event::InvalidFormat { message_id: id }); + }, + Ok(versioned) => match Xcm::try_from(versioned) { + Err(()) => + Self::deposit_event(Event::UnsupportedVersion { message_id: id }), + Ok(x) => { + let outcome = T::XcmExecutor::prepare_and_execute( + Parent, + x.clone(), + &mut id, + limit, + Weight::zero(), + ); + >::append(x); + Self::deposit_event(Event::ExecutedDownward { + message_id: id, + outcome, + }); + }, + }, + } + } + limit + } + } } From ae33cc75765e138fcec67078f410757f43e1e3ad Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Tue, 14 May 2024 12:35:53 +0200 Subject: [PATCH 31/37] feat: address feedback --- .../xcm/docs/src/cookbook/relay_token_transactor/mod.rs | 2 +- polkadot/xcm/docs/src/fundamentals.rs | 9 ++++----- polkadot/xcm/docs/src/glossary.rs | 1 + polkadot/xcm/docs/src/lib.rs | 1 - polkadot/xcm/xcm-simulator/src/mock_message_queue.rs | 6 ++---- 5 files changed, 8 insertions(+), 11 deletions(-) diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs index b96057ca7f11b..b991974bcda75 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs @@ -8,7 +8,7 @@ //! //! The second step is to configure `IsReserve` to recognize the relay chain as a reserve for its //! own asset. -//! With this, you'll be able to easily mint a derivative asset, backed one-to-on from the Relay +//! With this, you'll be able to easily mint a derivative asset, backed one-to-one from the Relay //! Chain, by using the xcm pallet's `transfer_assets` extrinsic. //! //! The `IsReserve` type takes a type that implements `ContainsPair`. diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index 27847031f2fd2..ab5836f43be96 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -140,8 +140,8 @@ //! ```ignore //! let message = Xcm(vec![ //! WithdrawAsset(assets), -//! BuyExecution { fees, weight_limit }, -//! DepositAsset { assets, beneficiary }, +//! BuyExecution { fees: assets, weight_limit }, +//! DepositAsset { assets: AssetFilter(Wild(All)), beneficiary }, //! ]); //! ``` //! @@ -149,9 +149,8 @@ //! add the explicit fee payment step in the middle. //! `WithdrawAsset` withdraws assets from the account of the **origin** of the message for usage //! inside this message's execution. `BuyExecution` explicitly buys execution for this program using -//! the assets specified in `fees`, with a sanity check of `weight_limit`. `DepositAsset` has the -//! same operands as the original `TransferAsset` instruction, specifying `assets` and a -//! `beneficiary` account. +//! the assets specified in `fees`, with a sanity check of `weight_limit`. `DepositAsset` uses a +//! wildcard, specifying all remaining `assets` after subtracting the fees and a `beneficiary` account. //! //! ## Next steps //! diff --git a/polkadot/xcm/docs/src/glossary.rs b/polkadot/xcm/docs/src/glossary.rs index efcd5a3cc92a5..9d471d62f43c7 100644 --- a/polkadot/xcm/docs/src/glossary.rs +++ b/polkadot/xcm/docs/src/glossary.rs @@ -57,6 +57,7 @@ //! certain amount of derivatives, telling the reserve to move real assets from its sovereign //! account to the destination's sovereign account, and then telling the recipient to mint the right //! amount of derivatives. +//! In practice, the reserve chain can also be one of the source or destination. //! //! ## XCVM //! diff --git a/polkadot/xcm/docs/src/lib.rs b/polkadot/xcm/docs/src/lib.rs index 439516d69ecfa..90736efa0cc41 100644 --- a/polkadot/xcm/docs/src/lib.rs +++ b/polkadot/xcm/docs/src/lib.rs @@ -30,7 +30,6 @@ //! //! Rust Docs allow docs to be as close to the source as possible. //! They're also available offline automatically for anyone who has the `polkadot-sdk` repo locally. -//! Given all the content is here, it's simple to . //! //! ## Docs structure #![doc = simple_mermaid::mermaid!("../mermaid/structure.mmd")] diff --git a/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs b/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs index 6568b9828764c..0dd5bb0923d71 100644 --- a/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs +++ b/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs @@ -48,17 +48,15 @@ pub mod pallet { pub struct Pallet(_); #[pallet::storage] - #[pallet::getter(fn parachain_id)] pub(super) type ParachainId = StorageValue<_, ParaId, ValueQuery>; #[pallet::storage] - #[pallet::getter(fn received_dmp)] /// A queue of received DMP messages pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; impl Get for Pallet { fn get() -> ParaId { - Self::parachain_id() + ParachainId::::get() } } @@ -177,7 +175,7 @@ pub mod pallet { limit, Weight::zero(), ); - >::append(x); + ReceivedDmp::::append(x); Self::deposit_event(Event::ExecutedDownward { message_id: id, outcome, From b918c90e83b6a6b6bc9d728e3d456ed92f52f473 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Tue, 14 May 2024 12:59:35 +0200 Subject: [PATCH 32/37] fix(xcm-cookbook): add license to every file --- polkadot/xcm/docs/src/cookbook/mod.rs | 16 ++++++++++++++++ .../src/cookbook/relay_token_transactor/mod.rs | 16 ++++++++++++++++ .../cookbook/relay_token_transactor/network.rs | 16 ++++++++++++++++ .../relay_token_transactor/parachain/mod.rs | 16 ++++++++++++++++ .../parachain/xcm_config.rs | 16 ++++++++++++++++ .../relay_token_transactor/relay_chain/mod.rs | 16 ++++++++++++++++ .../relay_chain/xcm_config.rs | 16 ++++++++++++++++ .../src/cookbook/relay_token_transactor/tests.rs | 16 ++++++++++++++++ polkadot/xcm/docs/src/fundamentals.rs | 16 ++++++++++++++++ polkadot/xcm/docs/src/glossary.rs | 16 ++++++++++++++++ polkadot/xcm/docs/src/guides/mod.rs | 16 ++++++++++++++++ polkadot/xcm/docs/src/lib.rs | 16 ++++++++++++++++ 12 files changed, 192 insertions(+) diff --git a/polkadot/xcm/docs/src/cookbook/mod.rs b/polkadot/xcm/docs/src/cookbook/mod.rs index be8c9ac9583fa..1c69bf0ead6f8 100644 --- a/polkadot/xcm/docs/src/cookbook/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/mod.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! # XCM Cookbook //! //! A collection of XCM recipes. diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs index b991974bcda75..279dd71a35f74 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/mod.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! # Relay Asset Transactor //! //! This example shows how to configure a parachain to only deal with the Relay Chain token. diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs index 256d4b982b178..46ac0e5df6372 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/network.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! Mock network use frame::deps::{ diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs index 7dbf287a56123..e3fdda2e73337 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/mod.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! # Runtime use frame::{deps::frame_system, prelude::*, runtime::prelude::*, traits::IdentityLookup}; diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs index ac6846c3085fc..99f17693093e7 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/parachain/xcm_config.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! # XCM Configuration use frame::{ diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs index 0f477c71c2ce1..25c35dd4aaa83 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/mod.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! Relay chain runtime mock. use frame::{ diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs index 7f42380ee1d59..987bb3f9ab664 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/relay_chain/xcm_config.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! Relay chain XCM configuration use frame::{ diff --git a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs index 2925cc2d01dfb..792cf6149e7cb 100644 --- a/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs +++ b/polkadot/xcm/docs/src/cookbook/relay_token_transactor/tests.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + use frame::testing_prelude::*; use test_log::test; use xcm::prelude::*; diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index ab5836f43be96..e82fe4b1243b1 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! # XCM Fundamentals //! //! XCM standardizes usual actions users take in consensus systems, for example diff --git a/polkadot/xcm/docs/src/glossary.rs b/polkadot/xcm/docs/src/glossary.rs index 9d471d62f43c7..6035888ab733b 100644 --- a/polkadot/xcm/docs/src/glossary.rs +++ b/polkadot/xcm/docs/src/glossary.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! # Glossary //! //! ## XCM (Cross-Consensus Messaging) diff --git a/polkadot/xcm/docs/src/guides/mod.rs b/polkadot/xcm/docs/src/guides/mod.rs index 1cde32026bded..5af89428d9a4c 100644 --- a/polkadot/xcm/docs/src/guides/mod.rs +++ b/polkadot/xcm/docs/src/guides/mod.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! # XCM Guides //! //! These guides aim to get you up and running with XCM. diff --git a/polkadot/xcm/docs/src/lib.rs b/polkadot/xcm/docs/src/lib.rs index 90736efa0cc41..287c97140c91b 100644 --- a/polkadot/xcm/docs/src/lib.rs +++ b/polkadot/xcm/docs/src/lib.rs @@ -1,3 +1,19 @@ +// Copyright Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + //! # XCM Docs //! //! Documentation and guides for XCM From e9a1a5810f7691db1e906c22a3821c0351f8281c Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Tue, 14 May 2024 13:00:05 +0200 Subject: [PATCH 33/37] fix(xcm-docs): fmt --- polkadot/xcm/docs/src/fundamentals.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polkadot/xcm/docs/src/fundamentals.rs b/polkadot/xcm/docs/src/fundamentals.rs index e82fe4b1243b1..28899df801aa4 100644 --- a/polkadot/xcm/docs/src/fundamentals.rs +++ b/polkadot/xcm/docs/src/fundamentals.rs @@ -166,7 +166,8 @@ //! `WithdrawAsset` withdraws assets from the account of the **origin** of the message for usage //! inside this message's execution. `BuyExecution` explicitly buys execution for this program using //! the assets specified in `fees`, with a sanity check of `weight_limit`. `DepositAsset` uses a -//! wildcard, specifying all remaining `assets` after subtracting the fees and a `beneficiary` account. +//! wildcard, specifying all remaining `assets` after subtracting the fees and a `beneficiary` +//! account. //! //! ## Next steps //! From 8c0721caa481e23b7040b41312a985415fe09572 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Tue, 14 May 2024 13:57:42 +0200 Subject: [PATCH 34/37] fix(xcm-simulator): getters were removed --- polkadot/xcm/xcm-simulator/example/src/tests.rs | 6 +++--- polkadot/xcm/xcm-simulator/src/mock_message_queue.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/polkadot/xcm/xcm-simulator/example/src/tests.rs b/polkadot/xcm/xcm-simulator/example/src/tests.rs index 6486a849af363..97673e66cc55e 100644 --- a/polkadot/xcm/xcm-simulator/example/src/tests.rs +++ b/polkadot/xcm/xcm-simulator/example/src/tests.rs @@ -19,7 +19,7 @@ use crate::*; use codec::Encode; use frame_support::{assert_ok, weights::Weight}; use xcm::latest::QueryResponseInfo; -use xcm_simulator::TestExt; +use xcm_simulator::{TestExt, mock_message_queue::ReceivedDmp}; // Helper function for forming buy execution message fn buy_execution(fees: impl Into) -> Instruction { @@ -171,7 +171,7 @@ fn remote_locking_and_unlocking() { ParaA::execute_with(|| { assert_eq!( - parachain::MsgQueue::received_dmp(), + ReceivedDmp::::get(), vec![Xcm(vec![NoteUnlockable { owner: (Parent, Parachain(2)).into(), asset: (Parent, locked_amount).into() @@ -501,7 +501,7 @@ fn query_holding() { // Check that QueryResponse message was received ParaA::execute_with(|| { assert_eq!( - parachain::MsgQueue::received_dmp(), + ReceivedDmp::::get(), vec![Xcm(vec![QueryResponse { query_id: query_id_set, response: Response::Assets(Assets::new()), diff --git a/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs b/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs index 95847f1fd9c2b..96b47999fe952 100644 --- a/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs +++ b/polkadot/xcm/xcm-simulator/src/mock_message_queue.rs @@ -52,7 +52,7 @@ pub mod pallet { #[pallet::storage] /// A queue of received DMP messages - pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; + pub type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; impl Get for Pallet { fn get() -> ParaId { From 8ce59e407fff11d686bbcd89a81af7845fc63a79 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Tue, 14 May 2024 14:04:45 +0200 Subject: [PATCH 35/37] fix(xcm-simulator-example): fmt --- polkadot/xcm/xcm-simulator/example/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/xcm-simulator/example/src/tests.rs b/polkadot/xcm/xcm-simulator/example/src/tests.rs index 97673e66cc55e..34c1feb6e9468 100644 --- a/polkadot/xcm/xcm-simulator/example/src/tests.rs +++ b/polkadot/xcm/xcm-simulator/example/src/tests.rs @@ -19,7 +19,7 @@ use crate::*; use codec::Encode; use frame_support::{assert_ok, weights::Weight}; use xcm::latest::QueryResponseInfo; -use xcm_simulator::{TestExt, mock_message_queue::ReceivedDmp}; +use xcm_simulator::{mock_message_queue::ReceivedDmp, TestExt}; // Helper function for forming buy execution message fn buy_execution(fees: impl Into) -> Instruction { From 2f469b31c687a1fcd2e84f5cb9a959f0b03d1c16 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Tue, 14 May 2024 18:37:47 +0200 Subject: [PATCH 36/37] fix: revert Cargo.lock --- Cargo.lock | 228 ++++++++++++++++++++--------------------------------- 1 file changed, 86 insertions(+), 142 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1dd9682ce569f..7711d51d0df6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -159,7 +159,7 @@ dependencies = [ "proc-macro-error", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", "syn-solidity", "tiny-keccak", ] @@ -286,7 +286,7 @@ dependencies = [ "proc-macro-error", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -1218,7 +1218,7 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -1235,7 +1235,7 @@ checksum = "a507401cad91ec6a857ed5513a2073c82a9b9048762b885bb98655b306964681" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -1428,7 +1428,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -2717,7 +2717,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -3956,7 +3956,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -4517,7 +4517,7 @@ checksum = "83fdaf97f4804dcebfa5862639bc9ce4121e82140bec2a987ac5140294865b5b" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -4557,7 +4557,7 @@ dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", "scratch", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -4574,7 +4574,7 @@ checksum = "50c49547d73ba8dcfd4ad7325d64c6d5391ff4224d498fc39a6f3f49825a530d" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -4685,7 +4685,7 @@ checksum = "d65d7ce8132b7c0e54497a4d9a55a1c2a0912a0d786cf894472ba818fba45762" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -4793,7 +4793,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -4854,7 +4854,7 @@ dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", "regex", - "syn 2.0.63", + "syn 2.0.61", "termcolor", "toml 0.8.8", "walkdir", @@ -5083,7 +5083,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -5103,7 +5103,7 @@ checksum = "5e9a1f9f7d83e59740248a6e14ecf93929ade55027844dfcea78beafccc15745" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -5114,7 +5114,7 @@ checksum = "c2ad8cef1d801a4686bfd8919f0b30eac4c8e48968c437a6405ded4fb5272d2b" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -5309,7 +5309,7 @@ dependencies = [ "fs-err", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -5367,7 +5367,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61ecdc33d04db74fc23db9f54f6f314c61d29f810d58ba423d0c204888365458" dependencies = [ "fatality-proc-macro", - "syn 2.0.63", + "syn 2.0.61", "thiserror", ] @@ -5382,7 +5382,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", "thiserror", ] @@ -5710,7 +5710,7 @@ dependencies = [ "quote 1.0.35", "scale-info", "sp-arithmetic", - "syn 2.0.63", + "syn 2.0.61", "trybuild", ] @@ -5881,7 +5881,7 @@ dependencies = [ "quote 1.0.35", "regex", "sp-crypto-hashing", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -5892,7 +5892,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -5901,7 +5901,7 @@ version = "11.0.0" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -6134,7 +6134,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -7139,7 +7139,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -8203,7 +8203,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -8217,7 +8217,7 @@ dependencies = [ "macro_magic_core_macros", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -8228,7 +8228,7 @@ checksum = "9ea73aa640dc01d62a590d48c0c3521ed739d53b27f919b25c3551e233481654" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -8239,7 +8239,7 @@ checksum = "ef9d79ae96aaba821963320eb2b6e34d17df1e5a83d8a1985c29cc5be59577b3" dependencies = [ "macro_magic_core", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -8411,7 +8411,7 @@ dependencies = [ "pallet-minimal-template", "polkadot-sdk-docs", "polkadot-sdk-frame", - "simple-mermaid 0.1.1", + "simple-mermaid", ] [[package]] @@ -9284,7 +9284,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -9323,9 +9323,9 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" [[package]] name = "orchestra" -version = "0.3.5" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2356622ffdfe72362a45a1e5e87bb113b8327e596e39b91f11f0ef4395c8da79" +checksum = "92829eef0328a3d1cd22a02c0e51deb92a5362df3e7d21a4e9bdc38934694e66" dependencies = [ "async-trait", "dyn-clonable", @@ -9340,15 +9340,15 @@ dependencies = [ [[package]] name = "orchestra-proc-macro" -version = "0.3.5" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eedb646674596266dc9bb2b5c7eea7c36b32ecc7777eba0d510196972d72c4fd" +checksum = "1344346d5af32c95bbddea91b18a88cc83eac394192d20ef2fc4c40a74332355" dependencies = [ "expander", "indexmap 2.2.3", "itertools 0.11.0", "petgraph", - "proc-macro-crate 1.3.1", + "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", "syn 1.0.109", @@ -10059,7 +10059,7 @@ version = "18.0.0" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -11301,7 +11301,7 @@ dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", "sp-runtime", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -11938,9 +11938,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.6.9" +version = "3.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "881331e34fa842a2fb61cc2db9643a8fedc615e47cfcc52597d1af0db9a7e8fe" +checksum = "a1b5927e4a9ae8d6cdb6a69e4e04a0ec73381a358e21b8a576f44769f34e7c24" dependencies = [ "arrayvec 0.7.4", "bitvec", @@ -12417,7 +12417,7 @@ dependencies = [ "pest_meta", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -12458,7 +12458,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -13879,7 +13879,7 @@ dependencies = [ "sc-rpc-api", "sc-service", "scale-info", - "simple-mermaid 0.1.1", + "simple-mermaid", "sp-api", "sp-arithmetic", "sp-core", @@ -14402,7 +14402,7 @@ dependencies = [ "polkavm-common", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -14412,7 +14412,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ba81f7b5faac81e528eb6158a6f3c9e0bb1008e0ffa19653bc8dea925ecb429" dependencies = [ "polkavm-derive-impl", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -14585,7 +14585,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c64d9ba0963cdcea2e1b2230fbae2bab30eb25a174be395c41e764bfb65dd62" dependencies = [ "proc-macro2 1.0.82", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -14685,7 +14685,7 @@ checksum = "9b698b0b09d40e9b7c1a47b132d66a8b54bcd20583d9b6d06e4535e383b4405c" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -14766,7 +14766,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -14818,7 +14818,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0f5d036824e4761737860779c906171497f6d55681139d8312388f8fe398922" dependencies = [ "bytes", - "prost-derive 0.12.5", + "prost-derive 0.12.4", ] [[package]] @@ -14860,7 +14860,7 @@ dependencies = [ "prost 0.12.4", "prost-types 0.12.4", "regex", - "syn 2.0.63", + "syn 2.0.61", "tempfile", ] @@ -14879,15 +14879,15 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.12.5" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9554e3ab233f0a932403704f1a1d08c30d5ccd931adfdfa1e8b5a19b52c1d55a" +checksum = "19de2de2a00075bf566bee3bd4db014b11587e84184d3f7a791bc17f1a8e9e48" dependencies = [ "anyhow", "itertools 0.11.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -15319,7 +15319,7 @@ checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -15880,7 +15880,7 @@ dependencies = [ "regex", "relative-path", "rustc_version 0.4.0", - "syn 2.0.63", + "syn 2.0.61", "unicode-ident", ] @@ -16337,7 +16337,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -17632,7 +17632,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -17702,9 +17702,9 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.11.1" +version = "2.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "788745a868b0e751750388f4e6546eb921ef714a4317fa6954f7cde114eb2eb7" +checksum = "eca070c12893629e2cc820a9761bedf6ce1dcddc9852984d1dc734b8bd9bd024" dependencies = [ "bitvec", "cfg-if", @@ -17716,11 +17716,11 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.11.1" +version = "2.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dc2f4e8bc344b9fc3d5f74f72c2e55bfc38d28dc2ebc69c194a3df424e4d9ac" +checksum = "2d35494501194174bda522a32605929eefc9ecf7e0a326c26db1fdd85881eb62" dependencies = [ - "proc-macro-crate 1.3.1", + "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", "syn 1.0.109", @@ -18049,7 +18049,7 @@ checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -18150,7 +18150,7 @@ checksum = "91d129178576168c589c9ec973feedf7d3126c01ac2bf08795109aa35b69fb8f" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -18341,11 +18341,6 @@ dependencies = [ "bitflags 2.4.0", ] -[[package]] -name = "simple-mermaid" -version = "0.1.0" -source = "git+https://github.com/kianenigma/simple-mermaid.git?branch=main#e48b187bcfd5cc75111acd9d241f1bd36604344b" - [[package]] name = "simple-mermaid" version = "0.1.1" @@ -19020,7 +19015,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -19405,7 +19400,7 @@ version = "0.1.0" dependencies = [ "quote 1.0.35", "sp-crypto-hashing", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -19423,7 +19418,7 @@ source = "git+https://github.com/paritytech/polkadot-sdk#82912acb33a9030c0ef3bf5 dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -19432,7 +19427,7 @@ version = "14.0.0" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -19638,7 +19633,7 @@ dependencies = [ "scale-info", "serde", "serde_json", - "simple-mermaid 0.1.1", + "simple-mermaid", "sp-api", "sp-application-crypto", "sp-arithmetic", @@ -19703,7 +19698,7 @@ dependencies = [ "proc-macro-crate 1.3.1", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -19715,7 +19710,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -19977,7 +19972,7 @@ dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", "sp-version", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -20478,7 +20473,7 @@ dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", "rustversion", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -20491,7 +20486,7 @@ dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", "rustversion", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -20931,9 +20926,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.63" +version = "2.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf5be731623ca1a1fb7d8be6f261a3be6d3e2337b8a1f97be944d020c8fcb704" +checksum = "c993ed8ccba56ae856363b1845da7266a7cb78e1d146c8a32d54b45a8b831fc9" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", @@ -20949,7 +20944,7 @@ dependencies = [ "paste", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -21061,28 +21056,6 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" -[[package]] -name = "test-log" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dffced63c2b5c7be278154d76b479f9f9920ed34e7574201407f0b14e2bbb93" -dependencies = [ - "env_logger 0.11.3", - "test-log-macros", - "tracing-subscriber 0.3.18", -] - -[[package]] -name = "test-log-macros" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5999e24eaa32083191ba4e425deb75cdf25efefabe5aaccb7446dd0d4122a3f5" -dependencies = [ - "proc-macro2 1.0.82", - "quote 1.0.35", - "syn 2.0.63", -] - [[package]] name = "test-parachain-adder" version = "1.0.0" @@ -21257,7 +21230,7 @@ checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -21420,7 +21393,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -21640,7 +21613,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -21682,7 +21655,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -22268,7 +22241,7 @@ dependencies = [ "once_cell", "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", "wasm-bindgen-shared", ] @@ -22302,7 +22275,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -23307,31 +23280,6 @@ dependencies = [ "libc", ] -[[package]] -name = "xcm-docs" -version = "0.1.0" -dependencies = [ - "docify", - "pallet-balances", - "pallet-message-queue", - "pallet-xcm", - "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-parachains", - "polkadot-sdk-frame", - "scale-info", - "simple-mermaid 0.1.0", - "sp-io", - "sp-runtime", - "sp-std 14.0.0", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "test-log", - "xcm-simulator", -] - [[package]] name = "xcm-emulator" version = "0.5.0" @@ -23421,7 +23369,7 @@ dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", "staging-xcm", - "syn 2.0.63", + "syn 2.0.61", "trybuild", ] @@ -23430,16 +23378,12 @@ name = "xcm-simulator" version = "7.0.0" dependencies = [ "frame-support", - "frame-system", "parity-scale-codec", "paste", "polkadot-core-primitives", "polkadot-parachain-primitives", - "polkadot-primitives", "polkadot-runtime-parachains", - "scale-info", "sp-io", - "sp-runtime", "sp-std 14.0.0", "staging-xcm", "staging-xcm-builder", @@ -23547,7 +23491,7 @@ checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] @@ -23567,7 +23511,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2 1.0.82", "quote 1.0.35", - "syn 2.0.63", + "syn 2.0.61", ] [[package]] From 3b762225fd480b20a4f8c839045336eabe4ad5f2 Mon Sep 17 00:00:00 2001 From: Francisco Aguirre Date: Thu, 16 May 2024 01:36:54 +0200 Subject: [PATCH 37/37] fix: update Cargo.lock --- Cargo.lock | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ded2cc5329334..642fe88db006f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8409,7 +8409,7 @@ dependencies = [ "pallet-minimal-template", "polkadot-sdk-docs", "polkadot-sdk-frame", - "simple-mermaid", + "simple-mermaid 0.1.1", ] [[package]] @@ -13900,7 +13900,7 @@ dependencies = [ "sc-rpc-api", "sc-service", "scale-info", - "simple-mermaid", + "simple-mermaid 0.1.1", "sp-api", "sp-arithmetic", "sp-core", @@ -18353,6 +18353,11 @@ dependencies = [ "bitflags 2.4.0", ] +[[package]] +name = "simple-mermaid" +version = "0.1.0" +source = "git+https://github.com/kianenigma/simple-mermaid.git?branch=main#e48b187bcfd5cc75111acd9d241f1bd36604344b" + [[package]] name = "simple-mermaid" version = "0.1.1" @@ -19645,7 +19650,7 @@ dependencies = [ "scale-info", "serde", "serde_json", - "simple-mermaid", + "simple-mermaid 0.1.1", "sp-api", "sp-application-crypto", "sp-arithmetic", @@ -21068,6 +21073,28 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" +[[package]] +name = "test-log" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dffced63c2b5c7be278154d76b479f9f9920ed34e7574201407f0b14e2bbb93" +dependencies = [ + "env_logger 0.11.3", + "test-log-macros", + "tracing-subscriber 0.3.18", +] + +[[package]] +name = "test-log-macros" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5999e24eaa32083191ba4e425deb75cdf25efefabe5aaccb7446dd0d4122a3f5" +dependencies = [ + "proc-macro2 1.0.82", + "quote 1.0.35", + "syn 2.0.61", +] + [[package]] name = "test-parachain-adder" version = "1.0.0" @@ -23281,6 +23308,31 @@ dependencies = [ "libc", ] +[[package]] +name = "xcm-docs" +version = "0.1.0" +dependencies = [ + "docify", + "pallet-balances", + "pallet-message-queue", + "pallet-xcm", + "parity-scale-codec", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-parachains", + "polkadot-sdk-frame", + "scale-info", + "simple-mermaid 0.1.0", + "sp-io", + "sp-runtime", + "sp-std 14.0.0", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "test-log", + "xcm-simulator", +] + [[package]] name = "xcm-emulator" version = "0.5.0" @@ -23379,12 +23431,16 @@ name = "xcm-simulator" version = "7.0.0" dependencies = [ "frame-support", + "frame-system", "parity-scale-codec", "paste", "polkadot-core-primitives", "polkadot-parachain-primitives", + "polkadot-primitives", "polkadot-runtime-parachains", + "scale-info", "sp-io", + "sp-runtime", "sp-std 14.0.0", "staging-xcm", "staging-xcm-builder",