diff --git a/Cargo.lock b/Cargo.lock index 2ad80e9427da..4e3729cce730 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -523,7 +523,7 @@ dependencies = [ [[package]] name = "binary-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "hash-db", "log", @@ -2505,7 +2505,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", ] @@ -2528,7 +2528,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "frame-support-procedural", @@ -2553,7 +2553,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "Inflector", "array-bytes", @@ -2601,7 +2601,7 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2612,7 +2612,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -2629,7 +2629,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "frame-system", @@ -2658,7 +2658,7 @@ dependencies = [ [[package]] name = "frame-remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-recursion", "futures", @@ -2679,7 +2679,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "bitflags", "environmental", @@ -2713,7 +2713,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "Inflector", "cfg-expr", @@ -2731,7 +2731,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -2743,7 +2743,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "proc-macro2", "quote", @@ -2753,7 +2753,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-executive", @@ -2780,7 +2780,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "frame-system", @@ -2793,7 +2793,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "cfg-if", "frame-support", @@ -2812,7 +2812,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -2827,7 +2827,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "sp-api", @@ -2836,7 +2836,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "parity-scale-codec", @@ -3018,7 +3018,7 @@ dependencies = [ [[package]] name = "generate-bags" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "chrono", "frame-election-provider-support", @@ -4951,7 +4951,7 @@ dependencies = [ [[package]] name = "mmr-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "futures", "log", @@ -4970,7 +4970,7 @@ dependencies = [ [[package]] name = "mmr-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "anyhow", "jsonrpsee", @@ -5483,7 +5483,7 @@ dependencies = [ [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5498,7 +5498,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "frame-system", @@ -5514,7 +5514,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "frame-system", @@ -5528,7 +5528,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5552,7 +5552,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5572,7 +5572,7 @@ dependencies = [ [[package]] name = "pallet-bags-list-remote-tests" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-election-provider-support", "frame-remote-externalities", @@ -5591,7 +5591,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5606,7 +5606,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "frame-system", @@ -5625,7 +5625,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "binary-merkle-tree", @@ -5649,7 +5649,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5667,7 +5667,7 @@ dependencies = [ [[package]] name = "pallet-child-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5686,7 +5686,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5703,7 +5703,7 @@ dependencies = [ [[package]] name = "pallet-conviction-voting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "assert_matches", "frame-benchmarking", @@ -5720,7 +5720,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5738,7 +5738,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5761,7 +5761,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5774,7 +5774,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5793,7 +5793,7 @@ dependencies = [ [[package]] name = "pallet-fast-unstake" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "docify", "frame-benchmarking", @@ -5812,7 +5812,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5835,7 +5835,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "enumflags2", "frame-benchmarking", @@ -5851,7 +5851,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5871,7 +5871,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5888,7 +5888,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5905,7 +5905,7 @@ dependencies = [ [[package]] name = "pallet-message-queue" version = "7.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5924,7 +5924,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5941,7 +5941,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5957,7 +5957,7 @@ dependencies = [ [[package]] name = "pallet-nis" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5973,7 +5973,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools" version = "1.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "frame-system", @@ -5990,7 +5990,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-benchmarking" version = "1.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6010,7 +6010,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-runtime-api" version = "1.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", @@ -6021,7 +6021,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "frame-system", @@ -6038,7 +6038,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6062,7 +6062,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6079,7 +6079,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6094,7 +6094,7 @@ dependencies = [ [[package]] name = "pallet-ranked-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6112,7 +6112,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6127,7 +6127,7 @@ dependencies = [ [[package]] name = "pallet-referenda" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "assert_matches", "frame-benchmarking", @@ -6146,7 +6146,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6163,7 +6163,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "frame-system", @@ -6184,7 +6184,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6200,7 +6200,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6219,7 +6219,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6242,7 +6242,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -6253,7 +6253,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "log", "sp-arithmetic", @@ -6262,7 +6262,7 @@ dependencies = [ [[package]] name = "pallet-staking-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "sp-api", @@ -6271,7 +6271,7 @@ dependencies = [ [[package]] name = "pallet-state-trie-migration" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6288,7 +6288,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6303,7 +6303,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6321,7 +6321,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6340,7 +6340,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-support", "frame-system", @@ -6356,7 +6356,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -6372,7 +6372,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -6384,7 +6384,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6401,7 +6401,7 @@ dependencies = [ [[package]] name = "pallet-uniques" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6416,7 +6416,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6432,7 +6432,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -6447,7 +6447,7 @@ dependencies = [ [[package]] name = "pallet-whitelist" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-benchmarking", "frame-support", @@ -9565,7 +9565,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "log", "sp-core", @@ -9576,7 +9576,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "futures", @@ -9604,7 +9604,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "futures", "futures-timer", @@ -9627,7 +9627,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -9642,7 +9642,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "memmap2", "sc-chain-spec-derive", @@ -9661,7 +9661,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -9672,7 +9672,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "chrono", @@ -9711,7 +9711,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "fnv", "futures", @@ -9737,7 +9737,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "hash-db", "kvdb", @@ -9763,7 +9763,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "futures", @@ -9788,7 +9788,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "fork-tree", @@ -9824,7 +9824,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "futures", "jsonrpsee", @@ -9846,7 +9846,7 @@ dependencies = [ [[package]] name = "sc-consensus-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "async-channel", @@ -9880,7 +9880,7 @@ dependencies = [ [[package]] name = "sc-consensus-beefy-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "futures", "jsonrpsee", @@ -9899,7 +9899,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "fork-tree", "parity-scale-codec", @@ -9912,7 +9912,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "ahash 0.8.2", "array-bytes", @@ -9953,7 +9953,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "finality-grandpa", "futures", @@ -9973,7 +9973,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "futures", @@ -9996,7 +9996,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", @@ -10018,7 +10018,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", @@ -10030,7 +10030,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "anyhow", "cfg-if", @@ -10047,7 +10047,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "ansi_term", "futures", @@ -10063,7 +10063,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "parking_lot 0.12.1", @@ -10077,7 +10077,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "async-channel", @@ -10118,7 +10118,7 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-channel", "cid", @@ -10138,7 +10138,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "bitflags", @@ -10155,7 +10155,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "ahash 0.8.2", "futures", @@ -10173,7 +10173,7 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "async-channel", @@ -10194,7 +10194,7 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "async-channel", @@ -10228,7 +10228,7 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "futures", @@ -10246,7 +10246,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "bytes", @@ -10280,7 +10280,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -10289,7 +10289,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "futures", "jsonrpsee", @@ -10320,7 +10320,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -10339,7 +10339,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "http", "jsonrpsee", @@ -10354,7 +10354,7 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "futures", @@ -10380,7 +10380,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "directories", @@ -10444,7 +10444,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "log", "parity-scale-codec", @@ -10455,7 +10455,7 @@ dependencies = [ [[package]] name = "sc-storage-monitor" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "clap 4.2.5", "fs4", @@ -10469,7 +10469,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -10488,7 +10488,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "6.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "futures", "libc", @@ -10507,7 +10507,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "chrono", "futures", @@ -10526,7 +10526,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "ansi_term", "atty", @@ -10555,7 +10555,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -10566,7 +10566,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "futures", @@ -10592,7 +10592,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "futures", @@ -10608,7 +10608,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-channel", "futures", @@ -11156,7 +11156,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "hash-db", "log", @@ -11177,7 +11177,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "Inflector", "blake2", @@ -11191,7 +11191,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "23.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "scale-info", @@ -11204,7 +11204,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "16.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "integer-sqrt", "num-traits", @@ -11218,7 +11218,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "scale-info", @@ -11231,7 +11231,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "sp-api", "sp-inherents", @@ -11242,7 +11242,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "futures", "log", @@ -11260,7 +11260,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "futures", @@ -11275,7 +11275,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "parity-scale-codec", @@ -11292,7 +11292,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "parity-scale-codec", @@ -11311,7 +11311,7 @@ dependencies = [ [[package]] name = "sp-consensus-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "lazy_static", "parity-scale-codec", @@ -11330,7 +11330,7 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "finality-grandpa", "log", @@ -11348,7 +11348,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "scale-info", @@ -11360,7 +11360,7 @@ dependencies = [ [[package]] name = "sp-core" version = "21.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "bitflags", @@ -11405,7 +11405,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "9.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "blake2b_simd", "byteorder", @@ -11418,7 +11418,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "9.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "quote", "sp-core-hashing", @@ -11428,7 +11428,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -11437,7 +11437,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "8.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "proc-macro2", "quote", @@ -11447,7 +11447,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.19.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "environmental", "parity-scale-codec", @@ -11458,7 +11458,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -11472,7 +11472,7 @@ dependencies = [ [[package]] name = "sp-io" version = "23.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "bytes", "ed25519", @@ -11497,7 +11497,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "24.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "lazy_static", "sp-core", @@ -11508,7 +11508,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.27.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", @@ -11520,7 +11520,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "thiserror", "zstd 0.12.3+zstd.1.5.2", @@ -11529,7 +11529,7 @@ dependencies = [ [[package]] name = "sp-metadata-ir" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-metadata", "parity-scale-codec", @@ -11540,7 +11540,7 @@ dependencies = [ [[package]] name = "sp-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "ckb-merkle-mountain-range", "log", @@ -11558,7 +11558,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "scale-info", @@ -11572,7 +11572,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "sp-api", "sp-core", @@ -11582,7 +11582,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "8.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "backtrace", "lazy_static", @@ -11592,7 +11592,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "rustc-hash", "serde", @@ -11602,7 +11602,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "24.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "either", "hash256-std-hasher", @@ -11624,7 +11624,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "17.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -11642,7 +11642,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "11.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "Inflector", "proc-macro-crate", @@ -11654,7 +11654,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "scale-info", @@ -11669,7 +11669,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -11683,7 +11683,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.28.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "hash-db", "log", @@ -11704,7 +11704,7 @@ dependencies = [ [[package]] name = "sp-statement-store" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "scale-info", @@ -11721,12 +11721,12 @@ dependencies = [ [[package]] name = "sp-std" version = "8.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" [[package]] name = "sp-storage" version = "13.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11739,7 +11739,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "parity-scale-codec", @@ -11752,7 +11752,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "10.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "sp-std", @@ -11764,7 +11764,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "sp-api", "sp-runtime", @@ -11773,7 +11773,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "parity-scale-codec", @@ -11788,7 +11788,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "22.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "ahash 0.8.2", "hash-db", @@ -11811,7 +11811,7 @@ dependencies = [ [[package]] name = "sp-version" version = "22.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11828,7 +11828,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "8.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -11839,7 +11839,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "14.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -11852,7 +11852,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "20.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "parity-scale-codec", "scale-info", @@ -12093,12 +12093,12 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -12117,7 +12117,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "hyper", "log", @@ -12129,7 +12129,7 @@ dependencies = [ [[package]] name = "substrate-rpc-client" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "jsonrpsee", @@ -12142,7 +12142,7 @@ dependencies = [ [[package]] name = "substrate-state-trie-migration-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -12159,7 +12159,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "array-bytes", "async-trait", @@ -12185,7 +12185,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "futures", "substrate-test-utils-derive", @@ -12195,7 +12195,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -12206,7 +12206,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "ansi_term", "build-helper", @@ -13110,7 +13110,7 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3bc1671e77b751c97beedfe542a33c17dbfaeacc" +source = "git+https://github.com/paritytech/substrate?branch=master#ec3bedd5c8cd0caa77a312b53a3cf3306149276c" dependencies = [ "async-trait", "clap 4.2.5", diff --git a/roadmap/implementers-guide/src/runtime/configuration.md b/roadmap/implementers-guide/src/runtime/configuration.md index 96d63faccedd..1d619ec26dff 100644 --- a/roadmap/implementers-guide/src/runtime/configuration.md +++ b/roadmap/implementers-guide/src/runtime/configuration.md @@ -56,7 +56,7 @@ pub fn configuration() -> HostConfiguration { /// /// If there is already a pending update for the current session index + 1, then it won't be touched. Otherwise, /// that would violate the promise of this function that changes will be applied on the second session change (cur + 2). -fn schedule_config_update(updater: impl FnOnce(&mut HostConfiguration)) -> DispatchResult +fn schedule_config_update(updater: impl FnOnce(&mut HostConfiguration>)) -> DispatchResult ``` ## Entry-points diff --git a/roadmap/implementers-guide/src/runtime/paras.md b/roadmap/implementers-guide/src/runtime/paras.md index a9e99c8993bf..2631fcf944ea 100644 --- a/roadmap/implementers-guide/src/runtime/paras.md +++ b/roadmap/implementers-guide/src/runtime/paras.md @@ -140,6 +140,7 @@ During the transition period, the para object is still considered in its existin ### Storage Layout ```rust +use frame_system::pallet_prelude::BlockNumberFor; /// All currently active PVF pre-checking votes. /// /// Invariant: @@ -197,12 +198,12 @@ UpgradeRestrictionSignal: map hasher(twox_64_concat) ParaId => Option; +UpgradeCooldowns: Vec<(ParaId, BlockNumberFor)>; /// The list of upcoming code upgrades. Each item is a pair of which para performs a code /// upgrade and at which relay-chain block it is expected at. /// /// Ordered ascending by block number. -UpcomingUpgrades: Vec<(ParaId, T::BlockNumber)>; +UpcomingUpgrades: Vec<(ParaId, BlockNumberFor)>; /// The actions to perform during the start of a specific session index. ActionsQueue: map SessionIndex => Vec; /// Upcoming paras instantiation arguments. diff --git a/runtime/common/src/assigned_slots.rs b/runtime/common/src/assigned_slots.rs index 84d0bb184c06..d7264c12bf76 100644 --- a/runtime/common/src/assigned_slots.rs +++ b/runtime/common/src/assigned_slots.rs @@ -67,11 +67,10 @@ pub struct ParachainTemporarySlot { pub lease_count: u32, } -type BalanceOf = <<::Leaser as Leaser<::BlockNumber>>::Currency as Currency< +type BalanceOf = <<::Leaser as Leaser>>::Currency as Currency< ::AccountId, >>::Balance; -type LeasePeriodOf = - <::Leaser as Leaser<::BlockNumber>>::LeasePeriod; +type LeasePeriodOf = <::Leaser as Leaser>>::LeasePeriod; #[frame_support::pallet] pub mod pallet { @@ -91,9 +90,9 @@ pub mod pallet { /// The type representing the leasing system. type Leaser: Leaser< - Self::BlockNumber, + BlockNumberFor, AccountId = Self::AccountId, - LeasePeriod = Self::BlockNumber, + LeasePeriod = BlockNumberFor, >; /// The number of lease periods a permanent parachain slot lasts. @@ -182,7 +181,7 @@ pub mod pallet { #[pallet::hooks] impl Hooks> for Pallet { - fn on_initialize(n: T::BlockNumber) -> Weight { + fn on_initialize(n: BlockNumberFor) -> Weight { if let Some((lease_period, first_block)) = Self::lease_period_index(n) { // If we're beginning a new lease period then handle that. if first_block { @@ -213,14 +212,14 @@ pub mod pallet { Error::::SlotAlreadyAssigned ); - let current_lease_period: T::BlockNumber = Self::current_lease_period_index(); + let current_lease_period: BlockNumberFor = Self::current_lease_period_index(); ensure!( !T::Leaser::already_leased( id, current_lease_period, // Check current lease & next one current_lease_period.saturating_add( - T::BlockNumber::from(2u32) + BlockNumberFor::::from(2u32) .saturating_mul(T::PermanentSlotLeasePeriodLength::get().into()) ) ), @@ -276,14 +275,14 @@ pub mod pallet { Error::::SlotAlreadyAssigned ); - let current_lease_period: T::BlockNumber = Self::current_lease_period_index(); + let current_lease_period: BlockNumberFor = Self::current_lease_period_index(); ensure!( !T::Leaser::already_leased( id, current_lease_period, // Check current lease & next one current_lease_period.saturating_add( - T::BlockNumber::from(2u32) + BlockNumberFor::::from(2u32) .saturating_mul(T::TemporarySlotLeasePeriodLength::get().into()) ) ), @@ -548,7 +547,7 @@ mod tests { use frame_support::{assert_noop, assert_ok, parameter_types}; use frame_system::EnsureRoot; use pallet_balances; - use primitives::{BlockNumber, Header}; + use primitives::BlockNumber; use runtime_parachains::{ configuration as parachains_configuration, paras as parachains_paras, shared as parachains_shared, @@ -562,13 +561,10 @@ mod tests { }; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; - type Block = frame_system::mocking::MockBlock; + type Block = frame_system::mocking::MockBlockU32; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, @@ -598,12 +594,12 @@ mod tests { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = BlockNumber; + type Hash = H256; type Hashing = BlakeTwo256; type AccountId = u64; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type DbWeight = (); diff --git a/runtime/common/src/auctions.rs b/runtime/common/src/auctions.rs index c73ef1b6961c..42a08fe20895 100644 --- a/runtime/common/src/auctions.rs +++ b/runtime/common/src/auctions.rs @@ -28,15 +28,15 @@ use frame_support::{ traits::{Currency, Get, Randomness, ReservableCurrency}, weights::Weight, }; +use frame_system::pallet_prelude::BlockNumberFor; pub use pallet::*; use parity_scale_codec::Decode; use primitives::Id as ParaId; use sp_runtime::traits::{CheckedSub, One, Saturating, Zero}; use sp_std::{mem::swap, prelude::*}; -type CurrencyOf = - <::Leaser as Leaser<::BlockNumber>>::Currency; -type BalanceOf = <<::Leaser as Leaser<::BlockNumber>>::Currency as Currency< +type CurrencyOf = <::Leaser as Leaser>>::Currency; +type BalanceOf = <<::Leaser as Leaser>>::Currency as Currency< ::AccountId, >>::Balance; @@ -66,8 +66,7 @@ impl WeightInfo for TestWeightInfo { /// An auction index. We count auctions in this type. pub type AuctionIndex = u32; -type LeasePeriodOf = - <::Leaser as Leaser<::BlockNumber>>::LeasePeriod; +type LeasePeriodOf = <::Leaser as Leaser>>::LeasePeriod; // Winning data type. This encodes the top bidders of each range together with their bid. type WinningData = [Option<(::AccountId, ParaId, BalanceOf)>; @@ -94,9 +93,9 @@ pub mod pallet { /// The type representing the leasing system. type Leaser: Leaser< - Self::BlockNumber, + BlockNumberFor, AccountId = Self::AccountId, - LeasePeriod = Self::BlockNumber, + LeasePeriod = BlockNumberFor, >; /// The parachain registrar type. @@ -104,16 +103,16 @@ pub mod pallet { /// The number of blocks over which an auction may be retroactively ended. #[pallet::constant] - type EndingPeriod: Get; + type EndingPeriod: Get>; /// The length of each sample to take during the ending period. /// /// `EndingPeriod` / `SampleLength` = Total # of Samples #[pallet::constant] - type SampleLength: Get; + type SampleLength: Get>; /// Something that provides randomness in the runtime. - type Randomness: Randomness; + type Randomness: Randomness>; /// The origin which may initiate auctions. type InitiateOrigin: EnsureOrigin; @@ -130,7 +129,7 @@ pub mod pallet { AuctionStarted { auction_index: AuctionIndex, lease_period: LeasePeriodOf, - ending: T::BlockNumber, + ending: BlockNumberFor, }, /// An auction ended. All funds become unreserved. AuctionClosed { auction_index: AuctionIndex }, @@ -151,7 +150,7 @@ pub mod pallet { last_slot: LeasePeriodOf, }, /// The winning offset was chosen for an auction. This will map into the `Winning` storage map. - WinningOffset { auction_index: AuctionIndex, block_number: T::BlockNumber }, + WinningOffset { auction_index: AuctionIndex, block_number: BlockNumberFor }, } #[pallet::error] @@ -184,7 +183,7 @@ pub mod pallet { /// auction will "begin to end", i.e. the first block of the Ending Period of the auction. #[pallet::storage] #[pallet::getter(fn auction_info)] - pub type AuctionInfo = StorageValue<_, (LeasePeriodOf, T::BlockNumber)>; + pub type AuctionInfo = StorageValue<_, (LeasePeriodOf, BlockNumberFor)>; /// Amounts currently reserved in the accounts of the bidders currently winning /// (sub-)ranges. @@ -198,7 +197,7 @@ pub mod pallet { /// first sample of the ending period is 0; the last is `Sample Size - 1`. #[pallet::storage] #[pallet::getter(fn winning)] - pub type Winning = StorageMap<_, Twox64Concat, T::BlockNumber, WinningData>; + pub type Winning = StorageMap<_, Twox64Concat, BlockNumberFor, WinningData>; #[pallet::extra_constants] impl Pallet { @@ -215,7 +214,7 @@ pub mod pallet { #[pallet::hooks] impl Hooks> for Pallet { - fn on_initialize(n: T::BlockNumber) -> Weight { + fn on_initialize(n: BlockNumberFor) -> Weight { let mut weight = T::DbWeight::get().reads(1); // If the current auction was in its ending period last block, then ensure that the (sub-)range @@ -256,7 +255,7 @@ pub mod pallet { #[pallet::weight((T::WeightInfo::new_auction(), DispatchClass::Operational))] pub fn new_auction( origin: OriginFor, - #[pallet::compact] duration: T::BlockNumber, + #[pallet::compact] duration: BlockNumberFor, #[pallet::compact] lease_period_index: LeasePeriodOf, ) -> DispatchResult { T::InitiateOrigin::ensure_origin(origin)?; @@ -313,20 +312,20 @@ pub mod pallet { } } -impl Auctioneer for Pallet { +impl Auctioneer> for Pallet { type AccountId = T::AccountId; - type LeasePeriod = T::BlockNumber; + type LeasePeriod = BlockNumberFor; type Currency = CurrencyOf; fn new_auction( - duration: T::BlockNumber, + duration: BlockNumberFor, lease_period_index: LeasePeriodOf, ) -> DispatchResult { Self::do_new_auction(duration, lease_period_index) } // Returns the status of the auction given the current block number. - fn auction_status(now: T::BlockNumber) -> AuctionStatus { + fn auction_status(now: BlockNumberFor) -> AuctionStatus> { let early_end = match AuctionInfo::::get() { Some((_, early_end)) => early_end, None => return AuctionStatus::NotStarted, @@ -359,12 +358,12 @@ impl Auctioneer for Pallet { Self::handle_bid(bidder, para, AuctionCounter::::get(), first_slot, last_slot, amount) } - fn lease_period_index(b: T::BlockNumber) -> Option<(Self::LeasePeriod, bool)> { + fn lease_period_index(b: BlockNumberFor) -> Option<(Self::LeasePeriod, bool)> { T::Leaser::lease_period_index(b) } #[cfg(any(feature = "runtime-benchmarks", test))] - fn lease_period_length() -> (T::BlockNumber, T::BlockNumber) { + fn lease_period_length() -> (BlockNumberFor, BlockNumberFor) { T::Leaser::lease_period_length() } @@ -383,7 +382,7 @@ impl Pallet { /// of this auction and the `lease_period_index` of the initial lease period of the four that /// are to be auctioned. fn do_new_auction( - duration: T::BlockNumber, + duration: BlockNumberFor, lease_period_index: LeasePeriodOf, ) -> DispatchResult { let maybe_auction = AuctionInfo::::get(); @@ -530,7 +529,7 @@ impl Pallet { /// /// This mutates the state, cleaning up `AuctionInfo` and `Winning` in the case of an auction /// ending. An immediately subsequent call with the same argument will always return `None`. - fn check_auction_end(now: T::BlockNumber) -> Option<(WinningData, LeasePeriodOf)> { + fn check_auction_end(now: BlockNumberFor) -> Option<(WinningData, LeasePeriodOf)> { if let Some((lease_period_index, early_end)) = AuctionInfo::::get() { let ending_period = T::EndingPeriod::get(); let late_end = early_end.saturating_add(ending_period); @@ -542,7 +541,7 @@ impl Pallet { if late_end <= known_since { // Our random seed was known only after the auction ended. Good to use. - let raw_offset_block_number = ::decode( + let raw_offset_block_number = >::decode( &mut raw_offset.as_ref(), ) .expect("secure hashes should always be bigger than the block number; qed"); @@ -683,7 +682,7 @@ mod tests { }; use frame_system::{EnsureRoot, EnsureSignedBy}; use pallet_balances; - use primitives::{BlockNumber, Header, Id as ParaId}; + use primitives::{BlockNumber, Id as ParaId}; use sp_core::H256; use sp_runtime::{ traits::{BlakeTwo256, IdentityLookup}, @@ -691,14 +690,10 @@ mod tests { }; use std::{cell::RefCell, collections::BTreeMap}; - type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; - type Block = frame_system::mocking::MockBlock; + type Block = frame_system::mocking::MockBlockU32; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, @@ -717,12 +712,12 @@ mod tests { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = BlockNumber; + type Hash = H256; type Hashing = BlakeTwo256; type AccountId = u64; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type Version = (); @@ -1800,7 +1795,7 @@ mod benchmarking { where_clause { where T: pallet_babe::Config + paras::Config } new_auction { - let duration = T::BlockNumber::max_value(); + let duration = BlockNumberFor::::max_value(); let lease_period_index = LeasePeriodOf::::max_value(); let origin = T::InitiateOrigin::try_successful_origin().map_err(|_| BenchmarkError::Weightless)?; @@ -1809,7 +1804,7 @@ mod benchmarking { assert_last_event::(Event::::AuctionStarted { auction_index: AuctionCounter::::get(), lease_period: LeasePeriodOf::::max_value(), - ending: T::BlockNumber::max_value(), + ending: BlockNumberFor::::max_value(), }.into()); } @@ -1820,7 +1815,7 @@ mod benchmarking { frame_system::Pallet::::set_block_number(offset + One::one()); // Create a new auction - let duration = T::BlockNumber::max_value(); + let duration = BlockNumberFor::::max_value(); let lease_period_index = LeasePeriodOf::::zero(); let origin = T::InitiateOrigin::try_successful_origin() .expect("InitiateOrigin has no successful origin required for the benchmark"); @@ -1877,7 +1872,7 @@ mod benchmarking { frame_system::Pallet::::set_block_number(offset + One::one()); // Create a new auction - let duration: T::BlockNumber = lease_length / 2u32.into(); + let duration: BlockNumberFor = lease_length / 2u32.into(); let lease_period_index = LeasePeriodOf::::zero(); let now = frame_system::Pallet::::block_number(); let origin = T::InitiateOrigin::try_successful_origin() @@ -1886,14 +1881,14 @@ mod benchmarking { fill_winners::(lease_period_index); - for winner in Winning::::get(T::BlockNumber::from(0u32)).unwrap().iter() { + for winner in Winning::::get(BlockNumberFor::::from(0u32)).unwrap().iter() { assert!(winner.is_some()); } - let winning_data = Winning::::get(T::BlockNumber::from(0u32)).unwrap(); + let winning_data = Winning::::get(BlockNumberFor::::from(0u32)).unwrap(); // Make winning map full for i in 0u32 .. (T::EndingPeriod::get() / T::SampleLength::get()).saturated_into() { - Winning::::insert(T::BlockNumber::from(i), winning_data.clone()); + Winning::::insert(BlockNumberFor::::from(i), winning_data.clone()); } // Move ahead to the block we want to initialize @@ -1922,7 +1917,7 @@ mod benchmarking { frame_system::Pallet::::set_block_number(offset + One::one()); // Create a new auction - let duration: T::BlockNumber = lease_length / 2u32.into(); + let duration: BlockNumberFor = lease_length / 2u32.into(); let lease_period_index = LeasePeriodOf::::zero(); let now = frame_system::Pallet::::block_number(); let origin = T::InitiateOrigin::try_successful_origin() @@ -1931,14 +1926,14 @@ mod benchmarking { fill_winners::(lease_period_index); - let winning_data = Winning::::get(T::BlockNumber::from(0u32)).unwrap(); + let winning_data = Winning::::get(BlockNumberFor::::from(0u32)).unwrap(); for winner in winning_data.iter() { assert!(winner.is_some()); } // Make winning map full for i in 0u32 .. (T::EndingPeriod::get() / T::SampleLength::get()).saturated_into() { - Winning::::insert(T::BlockNumber::from(i), winning_data.clone()); + Winning::::insert(BlockNumberFor::::from(i), winning_data.clone()); } assert!(AuctionInfo::::get().is_some()); }: _(RawOrigin::Root) diff --git a/runtime/common/src/claims.rs b/runtime/common/src/claims.rs index 580c55580eab..bef4d17bc353 100644 --- a/runtime/common/src/claims.rs +++ b/runtime/common/src/claims.rs @@ -171,7 +171,7 @@ pub mod pallet { pub trait Config: frame_system::Config { /// The overarching event type. type RuntimeEvent: From> + IsType<::RuntimeEvent>; - type VestingSchedule: VestingSchedule; + type VestingSchedule: VestingSchedule>; #[pallet::constant] type Prefix: Get<&'static [u8]>; type MoveClaimOrigin: EnsureOrigin; @@ -217,7 +217,7 @@ pub mod pallet { #[pallet::storage] #[pallet::getter(fn vesting)] pub(super) type Vesting = - StorageMap<_, Identity, EthereumAddress, (BalanceOf, BalanceOf, T::BlockNumber)>; + StorageMap<_, Identity, EthereumAddress, (BalanceOf, BalanceOf, BlockNumberFor)>; /// The statement kind that must be signed, if any. #[pallet::storage] @@ -232,7 +232,7 @@ pub mod pallet { pub struct GenesisConfig { pub claims: Vec<(EthereumAddress, BalanceOf, Option, Option)>, - pub vesting: Vec<(EthereumAddress, (BalanceOf, BalanceOf, T::BlockNumber))>, + pub vesting: Vec<(EthereumAddress, (BalanceOf, BalanceOf, BlockNumberFor))>, } #[pallet::genesis_build] @@ -336,7 +336,7 @@ pub mod pallet { origin: OriginFor, who: EthereumAddress, value: BalanceOf, - vesting_schedule: Option<(BalanceOf, BalanceOf, T::BlockNumber)>, + vesting_schedule: Option<(BalanceOf, BalanceOf, BlockNumberFor)>, statement: Option, ) -> DispatchResult { ensure_root(origin)?; @@ -714,20 +714,15 @@ mod tests { }; use pallet_balances; use sp_runtime::{ - testing::Header, traits::{BlakeTwo256, Identity, IdentityLookup}, transaction_validity::TransactionLongevity, BuildStorage, TokenError, }; - type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, @@ -747,12 +742,11 @@ mod tests { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = u64; type Hash = H256; type Hashing = BlakeTwo256; type AccountId = u64; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type Version = (); diff --git a/runtime/common/src/crowdloan/mod.rs b/runtime/common/src/crowdloan/mod.rs index bfe712df5296..b625c600d3c8 100644 --- a/runtime/common/src/crowdloan/mod.rs +++ b/runtime/common/src/crowdloan/mod.rs @@ -66,6 +66,7 @@ use frame_support::{ }, Identity, PalletId, }; +use frame_system::pallet_prelude::BlockNumberFor; pub use pallet::*; use parity_scale_codec::{Decode, Encode}; use primitives::Id as ParaId; @@ -78,11 +79,8 @@ use sp_runtime::{ }; use sp_std::vec::Vec; -type CurrencyOf = - <::Auctioneer as Auctioneer<::BlockNumber>>::Currency; -type LeasePeriodOf = <::Auctioneer as Auctioneer< - ::BlockNumber, ->>::LeasePeriod; +type CurrencyOf = <::Auctioneer as Auctioneer>>::Currency; +type LeasePeriodOf = <::Auctioneer as Auctioneer>>::LeasePeriod; type BalanceOf = as Currency<::AccountId>>::Balance; #[allow(dead_code)] @@ -216,9 +214,9 @@ pub mod pallet { /// The type representing the auctioning system. type Auctioneer: Auctioneer< - Self::BlockNumber, + BlockNumberFor, AccountId = Self::AccountId, - LeasePeriod = Self::BlockNumber, + LeasePeriod = BlockNumberFor, >; /// The maximum length for the memo attached to a crowdloan contribution. @@ -235,7 +233,7 @@ pub mod pallet { _, Twox64Concat, ParaId, - FundInfo, T::BlockNumber, LeasePeriodOf>, + FundInfo, BlockNumberFor, LeasePeriodOf>, >; /// The funds that have had additional contributions during the last block. This is used @@ -332,7 +330,7 @@ pub mod pallet { #[pallet::hooks] impl Hooks> for Pallet { - fn on_initialize(num: T::BlockNumber) -> frame_support::weights::Weight { + fn on_initialize(num: BlockNumberFor) -> frame_support::weights::Weight { if let Some((sample, sub_sample)) = T::Auctioneer::auction_status(num).is_ending() { // This is the very first block in the ending period if sample.is_zero() && sub_sample.is_zero() { @@ -377,7 +375,7 @@ pub mod pallet { #[pallet::compact] cap: BalanceOf, #[pallet::compact] first_period: LeasePeriodOf, #[pallet::compact] last_period: LeasePeriodOf, - #[pallet::compact] end: T::BlockNumber, + #[pallet::compact] end: BlockNumberFor, verifier: Option, ) -> DispatchResult { let depositor = ensure_signed(origin)?; @@ -594,7 +592,7 @@ pub mod pallet { #[pallet::compact] cap: BalanceOf, #[pallet::compact] first_period: LeasePeriodOf, #[pallet::compact] last_period: LeasePeriodOf, - #[pallet::compact] end: T::BlockNumber, + #[pallet::compact] end: BlockNumberFor, verifier: Option, ) -> DispatchResult { ensure_root(origin)?; @@ -725,9 +723,9 @@ impl Pallet { /// trying to bid for has started already. /// * And, if the fund has enough free funds to refund full raised amount. fn ensure_crowdloan_ended( - now: T::BlockNumber, + now: BlockNumberFor, fund_account: &T::AccountId, - fund: &FundInfo, T::BlockNumber, LeasePeriodOf>, + fund: &FundInfo, BlockNumberFor, LeasePeriodOf>, ) -> sp_runtime::DispatchResult { // `fund.end` can represent the end of a failed crowdloan or the beginning of retirement // If the current lease period is past the first period they are trying to bid for, then @@ -878,19 +876,14 @@ mod tests { use ::test_helpers::{dummy_head_data, dummy_validation_code}; use sp_keystore::{testing::MemoryKeystore, KeystoreExt}; use sp_runtime::{ - testing::Header, traits::{BlakeTwo256, IdentityLookup, TrailingZeroInput}, BuildStorage, DispatchResult, }; - type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, @@ -912,12 +905,12 @@ mod tests { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = BlockNumber; + type Hash = H256; type Hashing = BlakeTwo256; type AccountId = u64; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type Version = (); @@ -1968,7 +1961,7 @@ mod benchmarking { assert_eq!(event, &system_event); } - fn create_fund(id: u32, end: T::BlockNumber) -> ParaId { + fn create_fund(id: u32, end: BlockNumberFor) -> ParaId { let cap = BalanceOf::::max_value(); let (_, offset) = T::Auctioneer::lease_period_length(); // Set to the very beginning of lease period index 0. @@ -2088,7 +2081,7 @@ mod benchmarking { let caller: T::AccountId = whitelisted_caller(); let contributor = account("contributor", 0, 0); contribute_fund::(&contributor, fund_index); - frame_system::Pallet::::set_block_number(T::BlockNumber::max_value()); + frame_system::Pallet::::set_block_number(BlockNumberFor::::max_value()); }: _(RawOrigin::Signed(caller), contributor.clone(), fund_index) verify { assert_last_event::(Event::::Withdrew { who: contributor, fund_index, amount: T::MinContribution::get() }.into()); @@ -2108,7 +2101,7 @@ mod benchmarking { } let caller: T::AccountId = whitelisted_caller(); - frame_system::Pallet::::set_block_number(T::BlockNumber::max_value()); + frame_system::Pallet::::set_block_number(BlockNumberFor::::max_value()); }: _(RawOrigin::Signed(caller), fund_index) verify { assert_last_event::(Event::::AllRefunded { para_id: fund_index }.into()); @@ -2119,7 +2112,7 @@ mod benchmarking { let end = lpl + offset; let fund_index = create_fund::(1337, end); let caller: T::AccountId = whitelisted_caller(); - frame_system::Pallet::::set_block_number(T::BlockNumber::max_value()); + frame_system::Pallet::::set_block_number(BlockNumberFor::::max_value()); }: _(RawOrigin::Signed(caller.clone()), fund_index) verify { assert_last_event::(Event::::Dissolved { para_id: fund_index }.into()); diff --git a/runtime/common/src/impls.rs b/runtime/common/src/impls.rs index b58cd129d8ff..61ec3e841bfe 100644 --- a/runtime/common/src/impls.rs +++ b/runtime/common/src/impls.rs @@ -112,20 +112,15 @@ mod tests { use primitives::AccountId; use sp_core::{ConstU64, H256}; use sp_runtime::{ - testing::Header, traits::{BlakeTwo256, IdentityLookup}, BuildStorage, Perbill, }; - type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; const TEST_ACCOUNT: AccountId = AccountId::new([1; 32]); frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, Authorship: pallet_authorship::{Pallet, Storage}, @@ -153,13 +148,12 @@ mod tests { type BaseCallFilter = frame_support::traits::Everything; type RuntimeOrigin = RuntimeOrigin; type Index = u64; - type BlockNumber = u64; type RuntimeCall = RuntimeCall; type Hash = H256; type Hashing = BlakeTwo256; type AccountId = AccountId; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type BlockLength = BlockLength; diff --git a/runtime/common/src/integration_tests.rs b/runtime/common/src/integration_tests.rs index 4ac21ff63c50..5e9fe810100c 100644 --- a/runtime/common/src/integration_tests.rs +++ b/runtime/common/src/integration_tests.rs @@ -34,7 +34,7 @@ use frame_support_test::TestRandomness; use frame_system::EnsureRoot; use parity_scale_codec::Encode; use primitives::{ - BlockNumber, HeadData, Header, Id as ParaId, SessionIndex, ValidationCode, LOWEST_PUBLIC_ID, + BlockNumber, HeadData, Id as ParaId, SessionIndex, ValidationCode, LOWEST_PUBLIC_ID, }; use runtime_parachains::{ configuration, origin, paras, shared, Origin as ParaOrigin, ParaLifecycle, @@ -51,7 +51,7 @@ use sp_runtime::{ use sp_std::sync::Arc; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; -type Block = frame_system::mocking::MockBlock; +type Block = frame_system::mocking::MockBlockU32; type AccountId = AccountId32; type Balance = u32; @@ -70,10 +70,7 @@ fn signed(i: u32) -> RuntimeOrigin { } frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { // System Stuff System: frame_system::{Pallet, Call, Config, Storage, Event}, @@ -120,12 +117,12 @@ impl frame_system::Config for Test { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = BlockNumber; + type Hash = H256; type Hashing = BlakeTwo256; type AccountId = AccountId; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type Version = (); diff --git a/runtime/common/src/mock.rs b/runtime/common/src/mock.rs index 06cc7771dede..a331ca3968e6 100644 --- a/runtime/common/src/mock.rs +++ b/runtime/common/src/mock.rs @@ -21,6 +21,7 @@ use frame_support::{ dispatch::{DispatchError, DispatchResult}, weights::Weight, }; +use frame_system::pallet_prelude::BlockNumberFor; use parity_scale_codec::{Decode, Encode}; use primitives::{HeadData, Id as ParaId, PvfCheckStatement, SessionIndex, ValidationCode}; use runtime_parachains::paras; @@ -192,7 +193,7 @@ impl Registrar for TestRegistrar { } impl TestRegistrar { - pub fn operations() -> Vec<(ParaId, T::BlockNumber, bool)> { + pub fn operations() -> Vec<(ParaId, BlockNumberFor, bool)> { OPERATIONS .with(|x| x.borrow().iter().map(|(p, b, c)| (*p, (*b).into(), *c)).collect::>()) } diff --git a/runtime/common/src/paras_registrar.rs b/runtime/common/src/paras_registrar.rs index adb360f95961..d7c69621d4eb 100644 --- a/runtime/common/src/paras_registrar.rs +++ b/runtime/common/src/paras_registrar.rs @@ -667,7 +667,7 @@ mod tests { }; use frame_system::limits; use pallet_balances::Error as BalancesError; - use primitives::{Balance, BlockNumber, Header, SessionIndex}; + use primitives::{Balance, BlockNumber, SessionIndex}; use runtime_parachains::{configuration, origin, shared}; use sp_core::H256; use sp_io::TestExternalities; @@ -680,13 +680,10 @@ mod tests { use sp_std::collections::btree_map::BTreeMap; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; - type Block = frame_system::mocking::MockBlock; + type Block = frame_system::mocking::MockBlockU32; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, @@ -720,12 +717,12 @@ mod tests { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = BlockNumber; + type Hash = H256; type Hashing = BlakeTwo256; type AccountId = u64; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type DbWeight = (); diff --git a/runtime/common/src/purchase.rs b/runtime/common/src/purchase.rs index e2022a17a9d0..be3af635ff39 100644 --- a/runtime/common/src/purchase.rs +++ b/runtime/common/src/purchase.rs @@ -105,7 +105,7 @@ pub mod pallet { /// Vesting Pallet type VestingSchedule: VestingSchedule< Self::AccountId, - Moment = Self::BlockNumber, + Moment = BlockNumberFor, Currency = Self::Currency, >; @@ -144,7 +144,7 @@ pub mod pallet { /// A new statement was set. StatementUpdated, /// A new statement was set. `[block_number]` - UnlockBlockUpdated { block_number: T::BlockNumber }, + UnlockBlockUpdated { block_number: BlockNumberFor }, } #[pallet::error] @@ -182,7 +182,7 @@ pub mod pallet { // The block where all locked dots will unlock. #[pallet::storage] - pub(super) type UnlockBlock = StorageValue<_, T::BlockNumber, ValueQuery>; + pub(super) type UnlockBlock = StorageValue<_, BlockNumberFor, ValueQuery>; #[pallet::hooks] impl Hooks> for Pallet {} @@ -403,7 +403,7 @@ pub mod pallet { #[pallet::weight(T::DbWeight::get().writes(1))] pub fn set_unlock_block( origin: OriginFor, - unlock_block: T::BlockNumber, + unlock_block: BlockNumberFor, ) -> DispatchResult { T::ConfigurationOrigin::ensure_origin(origin)?; ensure!( @@ -486,19 +486,14 @@ mod tests { traits::{Currency, WithdrawReasons}, }; use sp_runtime::{ - testing::Header, traits::{BlakeTwo256, Dispatchable, IdentifyAccount, Identity, IdentityLookup, Verify}, ArithmeticError, BuildStorage, MultiSignature, }; - type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, @@ -520,12 +515,11 @@ mod tests { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = u64; type Hash = H256; type Hashing = BlakeTwo256; type AccountId = AccountId; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type Version = (); diff --git a/runtime/common/src/slots/mod.rs b/runtime/common/src/slots/mod.rs index acf1b98e38ee..b50fe022d772 100644 --- a/runtime/common/src/slots/mod.rs +++ b/runtime/common/src/slots/mod.rs @@ -37,7 +37,7 @@ use sp_std::prelude::*; type BalanceOf = <::Currency as Currency<::AccountId>>::Balance; -type LeasePeriodOf = ::BlockNumber; +type LeasePeriodOf = BlockNumberFor; pub trait WeightInfo { fn force_lease() -> Weight; @@ -83,11 +83,11 @@ pub mod pallet { /// The number of blocks over which a single period lasts. #[pallet::constant] - type LeasePeriod: Get; + type LeasePeriod: Get>; /// The number of blocks to offset each lease period by. #[pallet::constant] - type LeaseOffset: Get; + type LeaseOffset: Get>; /// The origin which may forcibly create or clear leases. Root can always do this. type ForceOrigin: EnsureOrigin<::RuntimeOrigin>; @@ -145,7 +145,7 @@ pub mod pallet { #[pallet::hooks] impl Hooks> for Pallet { - fn on_initialize(n: T::BlockNumber) -> Weight { + fn on_initialize(n: BlockNumberFor) -> Weight { if let Some((lease_period, first_block)) = Self::lease_period_index(n) { // If we're beginning a new lease period then handle that. if first_block { @@ -333,9 +333,9 @@ impl crate::traits::OnSwap for Pallet { } } -impl Leaser for Pallet { +impl Leaser> for Pallet { type AccountId = T::AccountId; - type LeasePeriod = T::BlockNumber; + type LeasePeriod = BlockNumberFor; type Currency = T::Currency; fn lease_out( @@ -442,11 +442,11 @@ impl Leaser for Pallet { } #[cfg(any(feature = "runtime-benchmarks", test))] - fn lease_period_length() -> (T::BlockNumber, T::BlockNumber) { + fn lease_period_length() -> (BlockNumberFor, BlockNumberFor) { (T::LeasePeriod::get(), T::LeaseOffset::get()) } - fn lease_period_index(b: T::BlockNumber) -> Option<(Self::LeasePeriod, bool)> { + fn lease_period_index(b: BlockNumberFor) -> Option<(Self::LeasePeriod, bool)> { // Note that blocks before `LeaseOffset` do not count as any lease period. let offset_block_now = b.checked_sub(&T::LeaseOffset::get())?; let lease_period = offset_block_now / T::LeasePeriod::get(); @@ -505,21 +505,17 @@ mod tests { use frame_support::{assert_noop, assert_ok, parameter_types}; use frame_system::EnsureRoot; use pallet_balances; - use primitives::{BlockNumber, Header}; + use primitives::BlockNumber; use sp_core::H256; use sp_runtime::{ traits::{BlakeTwo256, IdentityLookup}, BuildStorage, }; - type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; - type Block = frame_system::mocking::MockBlock; + type Block = frame_system::mocking::MockBlockU32; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, @@ -537,12 +533,12 @@ mod tests { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = BlockNumber; + type Hash = H256; type Hashing = BlakeTwo256; type AccountId = u64; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type DbWeight = (); diff --git a/runtime/common/src/xcm_sender.rs b/runtime/common/src/xcm_sender.rs index 3654c44010e9..3573ec3dc42b 100644 --- a/runtime/common/src/xcm_sender.rs +++ b/runtime/common/src/xcm_sender.rs @@ -17,6 +17,7 @@ //! XCM sender for relay chain. use frame_support::traits::Get; +use frame_system::pallet_prelude::BlockNumberFor; use parity_scale_codec::Encode; use primitives::Id as ParaId; use runtime_parachains::{ @@ -72,12 +73,12 @@ pub struct ChildParachainRouter(PhantomData<(T, W, P)>); impl SendXcm for ChildParachainRouter { - type Ticket = (HostConfiguration, ParaId, Vec); + type Ticket = (HostConfiguration>, ParaId, Vec); fn validate( dest: &mut Option, msg: &mut Option>, - ) -> SendResult<(HostConfiguration, ParaId, Vec)> { + ) -> SendResult<(HostConfiguration>, ParaId, Vec)> { let d = dest.take().ok_or(MissingArgument)?; let id = if let MultiLocation { parents: 0, interior: X1(Parachain(id)) } = &d { *id @@ -99,7 +100,7 @@ impl, ParaId, Vec), + (config, para, blob): (HostConfiguration>, ParaId, Vec), ) -> Result { let hash = sp_io::hashing::blake2_256(&blob[..]); >::queue_downward_message(&config, para, blob) diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index 6cac7cc8cb04..dce78c47ac44 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -176,12 +176,12 @@ impl frame_system::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = Nonce; - type BlockNumber = BlockNumber; + type Hash = Hash; type Hashing = BlakeTwo256; type AccountId = AccountId; type Lookup = AccountIdLookup; - type Header = generic::Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type DbWeight = RocksDbWeight; @@ -1363,10 +1363,7 @@ impl pallet_state_trie_migration::Config for Runtime { } construct_runtime! { - pub enum Runtime where - Block = Block, - NodeBlock = primitives::Block, - UncheckedExtrinsic = UncheckedExtrinsic + pub enum Runtime { // Basic stuff; balances is uncallable initially. System: frame_system::{Pallet, Call, Storage, Config, Event} = 0, diff --git a/runtime/parachains/src/builder.rs b/runtime/parachains/src/builder.rs index f9908e30ad03..e46c9f59b957 100644 --- a/runtime/parachains/src/builder.rs +++ b/runtime/parachains/src/builder.rs @@ -22,6 +22,7 @@ use crate::{ }; use bitvec::{order::Lsb0 as BitOrderLsb0, vec::BitVec}; use frame_support::pallet_prelude::*; +use frame_system::pallet_prelude::*; use primitives::{ collator_signature_payload, AvailabilityBitfield, BackedCandidate, CandidateCommitments, CandidateDescriptor, CandidateHash, CollatorId, CollatorSignature, CommittedCandidateReceipt, @@ -69,7 +70,7 @@ pub(crate) struct BenchBuilder { /// Active validators. Validators should be declared prior to all other setup. validators: Option>, /// Starting block number; we expect it to get incremented on session setup. - block_number: T::BlockNumber, + block_number: BlockNumberFor, /// Starting session; we expect it to get incremented on session setup. session: SessionIndex, /// Session we want the scenario to take place in. We will roll to this session. @@ -97,9 +98,9 @@ pub(crate) struct BenchBuilder { /// Paras inherent `enter` benchmark scenario. #[cfg(any(feature = "runtime-benchmarks", test))] pub(crate) struct Bench { - pub(crate) data: ParachainsInherentData, + pub(crate) data: ParachainsInherentData>, pub(crate) _session: u32, - pub(crate) _block_number: T::BlockNumber, + pub(crate) _block_number: BlockNumberFor, } impl BenchBuilder { @@ -150,8 +151,8 @@ impl BenchBuilder { } /// Mock header. - pub(crate) fn header(block_number: T::BlockNumber) -> T::Header { - T::Header::new( + pub(crate) fn header(block_number: BlockNumberFor) -> HeaderFor { + HeaderFor::::new( block_number, // `block_number`, Default::default(), // `extrinsics_root`, Default::default(), // `storage_root`, @@ -260,8 +261,8 @@ impl BenchBuilder { core_idx: CoreIndex, candidate_hash: CandidateHash, availability_votes: BitVec, - ) -> inclusion::CandidatePendingAvailability { - inclusion::CandidatePendingAvailability::::new( + ) -> inclusion::CandidatePendingAvailability> { + inclusion::CandidatePendingAvailability::>::new( core_idx, // core candidate_hash, // hash Self::candidate_descriptor_mock(), // candidate descriptor @@ -405,7 +406,7 @@ impl BenchBuilder { Self::run_to_block(block); } - let block_number = ::BlockNumber::from(block); + let block_number = BlockNumberFor::::from(block); let header = Self::header(block_number.clone()); frame_system::Pallet::::reset_events(); @@ -523,7 +524,7 @@ impl BenchBuilder { // candidate receipt. paras::Pallet::::heads_insert(¶_id, head_data.clone()); - let mut past_code_meta = paras::ParaPastCodeMeta::::default(); + let mut past_code_meta = paras::ParaPastCodeMeta::>::default(); past_code_meta.note_replacement(0u32.into(), 0u32.into()); let group_validators = scheduler::Pallet::::group_validators(group_idx).unwrap(); diff --git a/runtime/parachains/src/configuration.rs b/runtime/parachains/src/configuration.rs index c3eb86d2c006..e39e4901f375 100644 --- a/runtime/parachains/src/configuration.rs +++ b/runtime/parachains/src/configuration.rs @@ -503,7 +503,7 @@ pub mod pallet { #[pallet::storage] #[pallet::getter(fn config)] pub(crate) type ActiveConfig = - StorageValue<_, HostConfiguration, ValueQuery>; + StorageValue<_, HostConfiguration>, ValueQuery>; /// Pending configuration changes. /// @@ -514,7 +514,7 @@ pub mod pallet { /// 2 items: for the next session and for the `scheduled_session`. #[pallet::storage] pub(crate) type PendingConfigs = - StorageValue<_, Vec<(SessionIndex, HostConfiguration)>, ValueQuery>; + StorageValue<_, Vec<(SessionIndex, HostConfiguration>)>, ValueQuery>; /// If this is set, then the configuration setters will bypass the consistency checks. This /// is meant to be used only as the last resort. @@ -524,7 +524,7 @@ pub mod pallet { #[pallet::genesis_config] #[derive(DefaultNoBound)] pub struct GenesisConfig { - pub config: HostConfiguration, + pub config: HostConfiguration>, } #[pallet::genesis_build] @@ -545,7 +545,7 @@ pub mod pallet { ))] pub fn set_validation_upgrade_cooldown( origin: OriginFor, - new: T::BlockNumber, + new: BlockNumberFor, ) -> DispatchResult { ensure_root(origin)?; Self::schedule_config_update(|config| { @@ -561,7 +561,7 @@ pub mod pallet { ))] pub fn set_validation_upgrade_delay( origin: OriginFor, - new: T::BlockNumber, + new: BlockNumberFor, ) -> DispatchResult { ensure_root(origin)?; Self::schedule_config_update(|config| { @@ -577,7 +577,7 @@ pub mod pallet { ))] pub fn set_code_retention_period( origin: OriginFor, - new: T::BlockNumber, + new: BlockNumberFor, ) -> DispatchResult { ensure_root(origin)?; Self::schedule_config_update(|config| { @@ -658,7 +658,7 @@ pub mod pallet { ))] pub fn set_group_rotation_frequency( origin: OriginFor, - new: T::BlockNumber, + new: BlockNumberFor, ) -> DispatchResult { ensure_root(origin)?; Self::schedule_config_update(|config| { @@ -674,7 +674,7 @@ pub mod pallet { ))] pub fn set_chain_availability_period( origin: OriginFor, - new: T::BlockNumber, + new: BlockNumberFor, ) -> DispatchResult { ensure_root(origin)?; Self::schedule_config_update(|config| { @@ -690,7 +690,7 @@ pub mod pallet { ))] pub fn set_thread_availability_period( origin: OriginFor, - new: T::BlockNumber, + new: BlockNumberFor, ) -> DispatchResult { ensure_root(origin)?; Self::schedule_config_update(|config| { @@ -761,7 +761,7 @@ pub mod pallet { ))] pub fn set_dispute_post_conclusion_acceptance_period( origin: OriginFor, - new: T::BlockNumber, + new: BlockNumberFor, ) -> DispatchResult { ensure_root(origin)?; Self::schedule_config_update(|config| { @@ -1087,7 +1087,7 @@ pub mod pallet { ))] pub fn set_minimum_validation_upgrade_delay( origin: OriginFor, - new: T::BlockNumber, + new: BlockNumberFor, ) -> DispatchResult { ensure_root(origin)?; Self::schedule_config_update(|config| { @@ -1162,7 +1162,7 @@ pub struct SessionChangeOutcome { impl Pallet { /// Called by the initializer to initialize the configuration pallet. - pub(crate) fn initializer_initialize(_now: T::BlockNumber) -> Weight { + pub(crate) fn initializer_initialize(_now: BlockNumberFor) -> Weight { Weight::zero() } @@ -1176,7 +1176,7 @@ impl Pallet { /// be the same. pub(crate) fn initializer_on_new_session( session_index: &SessionIndex, - ) -> SessionChangeOutcome { + ) -> SessionChangeOutcome> { let pending_configs = >::get(); let prev_config = ActiveConfig::::get(); @@ -1217,7 +1217,7 @@ impl Pallet { /// Forcibly set the active config. This should be used with extreme care, and typically /// only when enabling parachains runtime pallets for the first time on a chain which has /// been running without them. - pub fn force_set_active_config(config: HostConfiguration) { + pub fn force_set_active_config(config: HostConfiguration>) { ActiveConfig::::set(config); } @@ -1237,7 +1237,7 @@ impl Pallet { // the sake of essentially avoiding an indirect call. Doesn't worth it. #[inline(never)] pub(crate) fn schedule_config_update( - updater: impl FnOnce(&mut HostConfiguration), + updater: impl FnOnce(&mut HostConfiguration>), ) -> DispatchResult { let mut pending_configs = >::get(); diff --git a/runtime/parachains/src/disputes.rs b/runtime/parachains/src/disputes.rs index 3e96c25a26c2..7b03cde8ed28 100644 --- a/runtime/parachains/src/disputes.rs +++ b/runtime/parachains/src/disputes.rs @@ -298,9 +298,9 @@ impl DisputesHandler for () { fn initializer_on_new_session(_notification: &SessionChangeNotification) {} } -impl DisputesHandler for pallet::Pallet +impl DisputesHandler> for pallet::Pallet where - T::BlockNumber: Ord, + BlockNumberFor: Ord, { fn is_frozen() -> bool { pallet::Pallet::::is_frozen() @@ -308,7 +308,7 @@ where fn filter_dispute_data( set: DisputeStatementSet, - post_conclusion_acceptance_period: T::BlockNumber, + post_conclusion_acceptance_period: BlockNumberFor, ) -> Option { pallet::Pallet::::filter_dispute_data(&set, post_conclusion_acceptance_period) .filter_statement_set(set) @@ -323,7 +323,7 @@ where fn note_included( session: SessionIndex, candidate_hash: CandidateHash, - included_in: T::BlockNumber, + included_in: BlockNumberFor, ) { pallet::Pallet::::note_included(session, candidate_hash, included_in) } @@ -331,7 +331,7 @@ where fn included_state( session: SessionIndex, candidate_hash: CandidateHash, - ) -> Option { + ) -> Option> { pallet::Pallet::::included_state(session, candidate_hash) } @@ -339,7 +339,7 @@ where pallet::Pallet::::concluded_invalid(session, candidate_hash) } - fn initializer_initialize(now: T::BlockNumber) -> Weight { + fn initializer_initialize(now: BlockNumberFor) -> Weight { pallet::Pallet::::initializer_initialize(now) } @@ -347,7 +347,7 @@ where pallet::Pallet::::initializer_finalize() } - fn initializer_on_new_session(notification: &SessionChangeNotification) { + fn initializer_on_new_session(notification: &SessionChangeNotification>) { pallet::Pallet::::initializer_on_new_session(notification) } } @@ -373,7 +373,7 @@ pub mod pallet { pub trait Config: frame_system::Config + configuration::Config + session_info::Config { type RuntimeEvent: From> + IsType<::RuntimeEvent>; type RewardValidators: RewardValidators; - type SlashingHandler: SlashingHandler; + type SlashingHandler: SlashingHandler>; /// Weight information for extrinsics in this pallet. type WeightInfo: WeightInfo; @@ -400,7 +400,7 @@ pub mod pallet { SessionIndex, Blake2_128Concat, CandidateHash, - DisputeState, + DisputeState>, >; /// Backing votes stored for each dispute. @@ -424,7 +424,7 @@ pub mod pallet { SessionIndex, Blake2_128Concat, CandidateHash, - T::BlockNumber, + BlockNumberFor, >; /// Whether the chain is frozen. Starts as `None`. When this is `Some`, @@ -433,7 +433,7 @@ pub mod pallet { /// It can only be set back to `None` by governance intervention. #[pallet::storage] #[pallet::getter(fn last_valid_block)] - pub(super) type Frozen = StorageValue<_, Option, ValueQuery>; + pub(super) type Frozen = StorageValue<_, Option>, ValueQuery>; #[pallet::event] #[pallet::generate_deposit(pub fn deposit_event)] @@ -447,7 +447,7 @@ pub mod pallet { /// Block authors should no longer build on top of this head and should /// instead revert the block at the given height. This should be the /// number of the child of the last known valid block in the chain. - Revert(T::BlockNumber), + Revert(BlockNumberFor), } #[pallet::error] @@ -854,7 +854,7 @@ impl StatementSetFilter { impl Pallet { /// Called by the initializer to initialize the disputes module. - pub(crate) fn initializer_initialize(_now: T::BlockNumber) -> Weight { + pub(crate) fn initializer_initialize(_now: BlockNumberFor) -> Weight { Weight::zero() } @@ -863,7 +863,7 @@ impl Pallet { /// Called by the initializer to note a new session in the disputes pallet. pub(crate) fn initializer_on_new_session( - notification: &SessionChangeNotification, + notification: &SessionChangeNotification>, ) { let config = >::config(); @@ -937,7 +937,7 @@ impl Pallet { // Disputes without enough votes to get confirmed are also filtered out. fn filter_dispute_data( set: &DisputeStatementSet, - post_conclusion_acceptance_period: ::BlockNumber, + post_conclusion_acceptance_period: BlockNumberFor, ) -> StatementSetFilter { let mut filter = StatementSetFilter::RemoveIndices(Vec::new()); @@ -1048,7 +1048,7 @@ impl Pallet { /// dispute is fresh. fn process_checked_dispute_data( set: &CheckedDisputeStatementSet, - dispute_post_conclusion_acceptance_period: T::BlockNumber, + dispute_post_conclusion_acceptance_period: BlockNumberFor, ) -> Result { // Dispute statement sets on any dispute which concluded // before this point are to be rejected. @@ -1189,14 +1189,15 @@ impl Pallet { } #[allow(unused)] - pub(crate) fn disputes() -> Vec<(SessionIndex, CandidateHash, DisputeState)> { + pub(crate) fn disputes() -> Vec<(SessionIndex, CandidateHash, DisputeState>)> + { >::iter().collect() } pub(crate) fn note_included( session: SessionIndex, candidate_hash: CandidateHash, - included_in: T::BlockNumber, + included_in: BlockNumberFor, ) { if included_in.is_zero() { return @@ -1216,7 +1217,7 @@ impl Pallet { pub(crate) fn included_state( session: SessionIndex, candidate_hash: CandidateHash, - ) -> Option { + ) -> Option> { >::get(session, candidate_hash) } @@ -1231,7 +1232,7 @@ impl Pallet { Self::last_valid_block().is_some() } - pub(crate) fn revert_and_freeze(revert_to: T::BlockNumber) { + pub(crate) fn revert_and_freeze(revert_to: BlockNumberFor) { if Self::last_valid_block().map_or(true, |last| last > revert_to) { Frozen::::set(Some(revert_to)); diff --git a/runtime/parachains/src/disputes/slashing.rs b/runtime/parachains/src/disputes/slashing.rs index ac6f89019388..b27a7ab1ad73 100644 --- a/runtime/parachains/src/disputes/slashing.rs +++ b/runtime/parachains/src/disputes/slashing.rs @@ -48,6 +48,7 @@ use frame_support::{ traits::{Defensive, Get, KeyOwnerProofSystem, ValidatorSet, ValidatorSetWithIdentification}, weights::Weight, }; +use frame_system::pallet_prelude::BlockNumberFor; use primitives::{ vstaging::slashing::{DisputeProof, DisputesTimeSlot, PendingSlashes, SlashingOffenceKind}, @@ -270,7 +271,7 @@ where } } -impl disputes::SlashingHandler for SlashValidatorsForDisputes> +impl disputes::SlashingHandler> for SlashValidatorsForDisputes> where T: Config>, { @@ -294,7 +295,7 @@ where // NOTE: changing that requires modifying `do_punish` implementation } - fn initializer_initialize(now: T::BlockNumber) -> Weight { + fn initializer_initialize(now: BlockNumberFor) -> Weight { Pallet::::initializer_initialize(now) } @@ -529,7 +530,7 @@ pub mod pallet { impl Pallet { /// Called by the initializer to initialize the disputes slashing module. - fn initializer_initialize(_now: T::BlockNumber) -> Weight { + fn initializer_initialize(_now: BlockNumberFor) -> Weight { Weight::zero() } diff --git a/runtime/parachains/src/disputes/slashing/benchmarking.rs b/runtime/parachains/src/disputes/slashing/benchmarking.rs index 4debc41d3306..271da6d58437 100644 --- a/runtime/parachains/src/disputes/slashing/benchmarking.rs +++ b/runtime/parachains/src/disputes/slashing/benchmarking.rs @@ -19,7 +19,7 @@ use super::*; use crate::{disputes::SlashingHandler, initializer, shared}; use frame_benchmarking::{benchmarks, whitelist_account}; use frame_support::traits::{OnFinalize, OnInitialize}; -use frame_system::RawOrigin; +use frame_system::{pallet_prelude::BlockNumberFor, RawOrigin}; use pallet_staking::testing_utils::create_validators; use parity_scale_codec::Decode; use primitives::{Hash, PARACHAIN_KEY_TYPE_ID}; @@ -70,13 +70,13 @@ where .expect("session::set_keys should work"); } - pallet_session::Pallet::::on_initialize(T::BlockNumber::one()); - initializer::Pallet::::on_initialize(T::BlockNumber::one()); + pallet_session::Pallet::::on_initialize(BlockNumberFor::::one()); + initializer::Pallet::::on_initialize(BlockNumberFor::::one()); // skip sessions until the new validator set is enacted while pallet_session::Pallet::::validators().len() < n as usize { pallet_session::Pallet::::rotate_session(); } - initializer::Pallet::::on_finalize(T::BlockNumber::one()); + initializer::Pallet::::on_finalize(BlockNumberFor::::one()); let session_index = crate::shared::Pallet::::session_index(); let session_info = crate::session_info::Pallet::::session_info(session_index); @@ -86,9 +86,9 @@ where let key_owner_proof = pallet_session::historical::Pallet::::prove(key).unwrap(); // rotate a session to make sure `key_owner_proof` is historical - initializer::Pallet::::on_initialize(T::BlockNumber::one()); + initializer::Pallet::::on_initialize(BlockNumberFor::::one()); pallet_session::Pallet::::rotate_session(); - initializer::Pallet::::on_finalize(T::BlockNumber::one()); + initializer::Pallet::::on_finalize(BlockNumberFor::::one()); let idx = crate::shared::Pallet::::session_index(); assert!( diff --git a/runtime/parachains/src/disputes/tests.rs b/runtime/parachains/src/disputes/tests.rs index eaf1bde12353..93dcd58264b2 100644 --- a/runtime/parachains/src/disputes/tests.rs +++ b/runtime/parachains/src/disputes/tests.rs @@ -28,6 +28,7 @@ use frame_support::{ assert_err, assert_noop, assert_ok, traits::{OnFinalize, OnInitialize}, }; +use frame_system::pallet_prelude::BlockNumberFor; use primitives::BlockNumber; use sp_core::{crypto::CryptoType, Pair}; @@ -2054,9 +2055,10 @@ fn deduplication_and_sorting_works() { let disputes_orig = disputes.clone(); - as DisputesHandler< - ::BlockNumber, - >>::deduplicate_and_sort_dispute_data(&mut disputes).unwrap_err(); + as DisputesHandler>>::deduplicate_and_sort_dispute_data( + &mut disputes, + ) + .unwrap_err(); // assert ordering of local only disputes, and at the same time, and being free of duplicates assert_eq!(disputes_orig.len(), disputes.len() + 1); @@ -2083,10 +2085,11 @@ fn apply_filter_all>( let mut acc = Vec::::new(); for dispute_statement in sets { - if let Some(checked) = as DisputesHandler<::BlockNumber>>::filter_dispute_data( - dispute_statement, - post_conclusion_acceptance_period, - ) { + if let Some(checked) = + as DisputesHandler>>::filter_dispute_data( + dispute_statement, + post_conclusion_acceptance_period, + ) { acc.push(checked); } } @@ -2158,9 +2161,11 @@ fn filter_removes_duplicates_within_set() { }; let post_conclusion_acceptance_period = 10; - let statements = as DisputesHandler< - ::BlockNumber, - >>::filter_dispute_data(statements, post_conclusion_acceptance_period); + let statements = + as DisputesHandler>>::filter_dispute_data( + statements, + post_conclusion_acceptance_period, + ); assert_eq!( statements, @@ -2446,7 +2451,7 @@ fn filter_removes_duplicate_statements_sets() { // `Err(())` indicates presence of duplicates assert!( as DisputesHandler< - ::BlockNumber, + BlockNumberFor, >>::deduplicate_and_sort_dispute_data(&mut sets) .is_err()); diff --git a/runtime/parachains/src/dmp.rs b/runtime/parachains/src/dmp.rs index 5244406fcce4..b88475c980ef 100644 --- a/runtime/parachains/src/dmp.rs +++ b/runtime/parachains/src/dmp.rs @@ -47,6 +47,7 @@ use crate::{ initializer, FeeTracker, }; use frame_support::pallet_prelude::*; +use frame_system::pallet_prelude::BlockNumberFor; use primitives::{DownwardMessage, Hash, Id as ParaId, InboundDownwardMessage}; use sp_core::MAX_POSSIBLE_ALLOCATION; use sp_runtime::{ @@ -121,7 +122,7 @@ pub mod pallet { _, Twox64Concat, ParaId, - Vec>, + Vec>>, ValueQuery, >; @@ -150,7 +151,7 @@ pub mod pallet { /// Routines and getters related to downward message passing. impl Pallet { /// Block initialization logic, called by initializer. - pub(crate) fn initializer_initialize(_now: T::BlockNumber) -> Weight { + pub(crate) fn initializer_initialize(_now: BlockNumberFor) -> Weight { Weight::zero() } @@ -159,7 +160,7 @@ impl Pallet { /// Called by the initializer to note that a new session has started. pub(crate) fn initializer_on_new_session( - _notification: &initializer::SessionChangeNotification, + _notification: &initializer::SessionChangeNotification>, outgoing_paras: &[ParaId], ) { Self::perform_outgoing_para_cleanup(outgoing_paras); @@ -183,7 +184,7 @@ impl Pallet { /// in an error. If this returns `Ok(())` the caller can be certain that a call to /// `queue_downward_message` with the same parameters will be successful. pub fn can_queue_downward_message( - config: &HostConfiguration, + config: &HostConfiguration>, para: &ParaId, msg: &DownwardMessage, ) -> Result<(), QueueDownwardMessageError> { @@ -209,7 +210,7 @@ impl Pallet { /// to a dangling storage. If the caller cannot statically prove that the recipient exists /// then the caller should perform a runtime check. pub fn queue_downward_message( - config: &HostConfiguration, + config: &HostConfiguration>, para: ParaId, msg: DownwardMessage, ) -> Result<(), QueueDownwardMessageError> { @@ -316,7 +317,9 @@ impl Pallet { /// Returns the downward message queue contents for the given para. /// /// The most recent messages are the latest in the vector. - pub(crate) fn dmq_contents(recipient: ParaId) -> Vec> { + pub(crate) fn dmq_contents( + recipient: ParaId, + ) -> Vec>> { DownwardMessageQueues::::get(&recipient) } diff --git a/runtime/parachains/src/hrmp.rs b/runtime/parachains/src/hrmp.rs index 0aa20958ef61..4fbffc45e563 100644 --- a/runtime/parachains/src/hrmp.rs +++ b/runtime/parachains/src/hrmp.rs @@ -369,7 +369,7 @@ pub mod pallet { /// Invariant: /// - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a session. #[pallet::storage] - pub type HrmpWatermarks = StorageMap<_, Twox64Concat, ParaId, T::BlockNumber>; + pub type HrmpWatermarks = StorageMap<_, Twox64Concat, ParaId, BlockNumberFor>; /// HRMP channel data associated with each para. /// Invariant: @@ -407,7 +407,7 @@ pub mod pallet { _, Twox64Concat, HrmpChannelId, - Vec>, + Vec>>, ValueQuery, >; @@ -419,7 +419,7 @@ pub mod pallet { /// same block number. #[pallet::storage] pub type HrmpChannelDigests = - StorageMap<_, Twox64Concat, ParaId, Vec<(T::BlockNumber, Vec)>, ValueQuery>; + StorageMap<_, Twox64Concat, ParaId, Vec<(BlockNumberFor, Vec)>, ValueQuery>; /// Preopen the given HRMP channels. /// @@ -659,7 +659,7 @@ fn preopen_hrmp_channel( /// Routines and getters related to HRMP. impl Pallet { /// Block initialization logic, called by initializer. - pub(crate) fn initializer_initialize(_now: T::BlockNumber) -> Weight { + pub(crate) fn initializer_initialize(_now: BlockNumberFor) -> Weight { Weight::zero() } @@ -668,7 +668,7 @@ impl Pallet { /// Called by the initializer to note that a new session has started. pub(crate) fn initializer_on_new_session( - notification: &initializer::SessionChangeNotification, + notification: &initializer::SessionChangeNotification>, outgoing_paras: &[ParaId], ) -> Weight { let w1 = Self::perform_outgoing_para_cleanup(¬ification.prev_config, outgoing_paras); @@ -685,7 +685,7 @@ impl Pallet { /// Iterate over all paras that were noted for offboarding and remove all the data /// associated with them. fn perform_outgoing_para_cleanup( - config: &HostConfiguration, + config: &HostConfiguration>, outgoing: &[ParaId], ) -> Weight { let mut w = Self::clean_open_channel_requests(config, outgoing); @@ -710,7 +710,7 @@ impl Pallet { // // This will also perform the refunds for the counterparty if it doesn't offboard. pub(crate) fn clean_open_channel_requests( - config: &HostConfiguration, + config: &HostConfiguration>, outgoing: &[ParaId], ) -> Weight { // First collect all the channel ids of the open requests in which there is at least one @@ -786,7 +786,7 @@ impl Pallet { /// /// - prune the stale requests /// - enact the confirmed requests - fn process_hrmp_open_channel_requests(config: &HostConfiguration) { + fn process_hrmp_open_channel_requests(config: &HostConfiguration>) { let mut open_req_channels = HrmpOpenChannelRequestsList::::get(); if open_req_channels.is_empty() { return @@ -894,9 +894,9 @@ impl Pallet { /// Check that the candidate of the given recipient controls the HRMP watermark properly. pub(crate) fn check_hrmp_watermark( recipient: ParaId, - relay_chain_parent_number: T::BlockNumber, - new_hrmp_watermark: T::BlockNumber, - ) -> Result<(), HrmpWatermarkAcceptanceErr> { + relay_chain_parent_number: BlockNumberFor, + new_hrmp_watermark: BlockNumberFor, + ) -> Result<(), HrmpWatermarkAcceptanceErr>> { // First, check where the watermark CANNOT legally land. // // (a) For ensuring that messages are eventually processed, we require each parablock's @@ -942,7 +942,7 @@ impl Pallet { } pub(crate) fn check_outbound_hrmp( - config: &HostConfiguration, + config: &HostConfiguration>, sender: ParaId, out_hrmp_msgs: &[OutboundHrmpMessage], ) -> Result<(), OutboundHrmpAcceptanceErr> { @@ -1005,7 +1005,7 @@ impl Pallet { Ok(()) } - pub(crate) fn prune_hrmp(recipient: ParaId, new_hrmp_watermark: T::BlockNumber) -> Weight { + pub(crate) fn prune_hrmp(recipient: ParaId, new_hrmp_watermark: BlockNumberFor) -> Weight { let mut weight = Weight::zero(); // sift through the incoming messages digest to collect the paras that sent at least one @@ -1390,7 +1390,7 @@ impl Pallet { /// messages in them are also included. pub(crate) fn inbound_hrmp_channels_contents( recipient: ParaId, - ) -> BTreeMap>> { + ) -> BTreeMap>>> { let sender_set = HrmpIngressChannelsIndex::::get(&recipient); let mut inbound_hrmp_channels_contents = BTreeMap::new(); diff --git a/runtime/parachains/src/inclusion/mod.rs b/runtime/parachains/src/inclusion/mod.rs index 3815aa45a4b1..ffa74487c085 100644 --- a/runtime/parachains/src/inclusion/mod.rs +++ b/runtime/parachains/src/inclusion/mod.rs @@ -33,6 +33,7 @@ use frame_support::{ traits::{Defensive, EnqueueMessage}, BoundedSlice, }; +use frame_system::pallet_prelude::*; use pallet_message_queue::OnQueueChanged; use parity_scale_codec::{Decode, Encode}; use primitives::{ @@ -270,7 +271,7 @@ pub mod pallet { + configuration::Config { type RuntimeEvent: From> + IsType<::RuntimeEvent>; - type DisputesHandler: disputes::DisputesHandler; + type DisputesHandler: disputes::DisputesHandler>; type RewardValidators: RewardValidators; /// The system message queue. @@ -365,12 +366,16 @@ pub mod pallet { /// The latest bitfield for each validator, referred to by their index in the validator set. #[pallet::storage] pub(crate) type AvailabilityBitfields = - StorageMap<_, Twox64Concat, ValidatorIndex, AvailabilityBitfieldRecord>; + StorageMap<_, Twox64Concat, ValidatorIndex, AvailabilityBitfieldRecord>>; /// Candidates pending availability by `ParaId`. #[pallet::storage] - pub(crate) type PendingAvailability = - StorageMap<_, Twox64Concat, ParaId, CandidatePendingAvailability>; + pub(crate) type PendingAvailability = StorageMap< + _, + Twox64Concat, + ParaId, + CandidatePendingAvailability>, + >; /// The commitments of candidates pending availability, by `ParaId`. #[pallet::storage] @@ -450,7 +455,7 @@ impl fmt::Debug for UmpAcceptanceCheckErr { impl Pallet { /// Block initialization logic, called by initializer. - pub(crate) fn initializer_initialize(_now: T::BlockNumber) -> Weight { + pub(crate) fn initializer_initialize(_now: BlockNumberFor) -> Weight { Weight::zero() } @@ -459,7 +464,7 @@ impl Pallet { /// Handle an incoming session change. pub(crate) fn initializer_on_new_session( - _notification: &crate::initializer::SessionChangeNotification, + _notification: &crate::initializer::SessionChangeNotification>, outgoing_paras: &[ParaId], ) { // unlike most drain methods, drained elements are not cleared on `Drop` of the iterator @@ -832,7 +837,7 @@ impl Pallet { &validation_outputs.new_validation_code, validation_outputs.processed_downward_messages, &validation_outputs.upward_messages, - T::BlockNumber::from(validation_outputs.hrmp_watermark), + BlockNumberFor::::from(validation_outputs.hrmp_watermark), &validation_outputs.horizontal_messages, ) .is_err() @@ -849,7 +854,7 @@ impl Pallet { } fn enact_candidate( - relay_parent_number: T::BlockNumber, + relay_parent_number: BlockNumberFor, receipt: CommittedCandidateReceipt, backers: BitVec, availability_votes: BitVec, @@ -898,7 +903,7 @@ impl Pallet { )); weight.saturating_accrue(>::prune_hrmp( receipt.descriptor.para_id, - T::BlockNumber::from(commitments.hrmp_watermark), + BlockNumberFor::::from(commitments.hrmp_watermark), )); weight.saturating_accrue(>::queue_outbound_hrmp( receipt.descriptor.para_id, @@ -921,7 +926,7 @@ impl Pallet { /// Check that all the upward messages sent by a candidate pass the acceptance criteria. pub(crate) fn check_upward_messages( - config: &HostConfiguration, + config: &HostConfiguration>, para: ParaId, upward_messages: &[UpwardMessage], ) -> Result<(), UmpAcceptanceCheckErr> { @@ -1020,7 +1025,7 @@ impl Pallet { /// /// Returns a vector of cleaned-up core IDs. pub(crate) fn collect_pending( - pred: impl Fn(CoreIndex, T::BlockNumber) -> bool, + pred: impl Fn(CoreIndex, BlockNumberFor) -> bool, ) -> Vec { let mut cleaned_up_ids = Vec::new(); let mut cleaned_up_cores = Vec::new(); @@ -1115,7 +1120,7 @@ impl Pallet { /// para provided, if any. pub(crate) fn pending_availability( para: ParaId, - ) -> Option> { + ) -> Option>> { >::get(¶) } } @@ -1162,9 +1167,9 @@ impl OnQueueChanged for Pallet { /// A collection of data required for checking a candidate. pub(crate) struct CandidateCheckContext { - config: configuration::HostConfiguration, - now: T::BlockNumber, - relay_parent_number: T::BlockNumber, + config: configuration::HostConfiguration>, + now: BlockNumberFor, + relay_parent_number: BlockNumberFor, } /// An error indicating that creating Persisted Validation Data failed @@ -1172,7 +1177,7 @@ pub(crate) struct CandidateCheckContext { pub(crate) struct FailedToCreatePVD; impl CandidateCheckContext { - pub(crate) fn new(now: T::BlockNumber, relay_parent_number: T::BlockNumber) -> Self { + pub(crate) fn new(now: BlockNumberFor, relay_parent_number: BlockNumberFor) -> Self { Self { config: >::config(), now, relay_parent_number } } @@ -1244,7 +1249,7 @@ impl CandidateCheckContext { &backed_candidate.candidate.commitments.new_validation_code, backed_candidate.candidate.commitments.processed_downward_messages, &backed_candidate.candidate.commitments.upward_messages, - T::BlockNumber::from(backed_candidate.candidate.commitments.hrmp_watermark), + BlockNumberFor::::from(backed_candidate.candidate.commitments.hrmp_watermark), &backed_candidate.candidate.commitments.horizontal_messages, ) { log::debug!( @@ -1267,9 +1272,9 @@ impl CandidateCheckContext { new_validation_code: &Option, processed_downward_messages: u32, upward_messages: &[primitives::UpwardMessage], - hrmp_watermark: T::BlockNumber, + hrmp_watermark: BlockNumberFor, horizontal_messages: &[primitives::OutboundHrmpMessage], - ) -> Result<(), AcceptanceCheckErr> { + ) -> Result<(), AcceptanceCheckErr>> { ensure!( head_data.0.len() <= self.config.max_head_data_size as _, AcceptanceCheckErr::HeadDataTooLarge, diff --git a/runtime/parachains/src/initializer.rs b/runtime/parachains/src/initializer.rs index 338392b6e060..b9ecc3038ca2 100644 --- a/runtime/parachains/src/initializer.rs +++ b/runtime/parachains/src/initializer.rs @@ -116,7 +116,7 @@ pub mod pallet { + hrmp::Config { /// A randomness beacon. - type Randomness: Randomness; + type Randomness: Randomness>; /// An origin which is allowed to force updates to parachains. type ForceOrigin: EnsureOrigin<::RuntimeOrigin>; /// Weight information for extrinsics in this pallet. @@ -147,7 +147,7 @@ pub mod pallet { #[pallet::hooks] impl Hooks> for Pallet { - fn on_initialize(now: T::BlockNumber) -> Weight { + fn on_initialize(now: BlockNumberFor) -> Weight { // The other modules are initialized in this order: // - Configuration // - Paras @@ -174,7 +174,7 @@ pub mod pallet { total_weight } - fn on_finalize(now: T::BlockNumber) { + fn on_finalize(now: BlockNumberFor) { // reverse initialization order. hrmp::Pallet::::initializer_finalize(); dmp::Pallet::::initializer_finalize(); diff --git a/runtime/parachains/src/mock.rs b/runtime/parachains/src/mock.rs index b06d8429817d..df726ecf9b44 100644 --- a/runtime/parachains/src/mock.rs +++ b/runtime/parachains/src/mock.rs @@ -34,8 +34,8 @@ use frame_support::{ use frame_support_test::TestRandomness; use parity_scale_codec::Decode; use primitives::{ - AuthorityDiscoveryId, Balance, BlockNumber, CandidateHash, Header, Moment, SessionIndex, - UpwardMessage, ValidationCode, ValidatorIndex, + AuthorityDiscoveryId, Balance, BlockNumber, CandidateHash, Moment, SessionIndex, UpwardMessage, + ValidationCode, ValidatorIndex, }; use sp_core::{ConstU32, H256}; use sp_io::TestExternalities; @@ -47,13 +47,10 @@ use sp_runtime::{ use std::{cell::RefCell, collections::HashMap}; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; -type Block = frame_system::mocking::MockBlock; +type Block = frame_system::mocking::MockBlockU32; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system, Balances: pallet_balances, @@ -100,12 +97,12 @@ impl frame_system::Config for Test { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = BlockNumber; + type Hash = H256; type Hashing = BlakeTwo256; type AccountId = u64; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type Version = (); diff --git a/runtime/parachains/src/paras/benchmarking.rs b/runtime/parachains/src/paras/benchmarking.rs index 8faf8d67f7fd..9dfb8a4b37d7 100644 --- a/runtime/parachains/src/paras/benchmarking.rs +++ b/runtime/parachains/src/paras/benchmarking.rs @@ -17,7 +17,7 @@ use super::*; use crate::configuration::HostConfiguration; use frame_benchmarking::benchmarks; -use frame_system::RawOrigin; +use frame_system::{pallet_prelude::BlockNumberFor, RawOrigin}; use primitives::{HeadData, Id as ParaId, ValidationCode, MAX_CODE_SIZE, MAX_HEAD_DATA_SIZE}; use sp_runtime::traits::{One, Saturating}; @@ -44,7 +44,7 @@ fn generate_disordered_pruning() { for i in 0..SAMPLE_SIZE { let id = ParaId::from(i); - let block_number = T::BlockNumber::from(1000u32); + let block_number = BlockNumberFor::::from(1000u32); needs_pruning.push((id, block_number)); } @@ -57,7 +57,7 @@ pub(crate) fn generate_disordered_upgrades() { for i in 0..SAMPLE_SIZE { let id = ParaId::from(i); - let block_number = T::BlockNumber::from(1000u32); + let block_number = BlockNumberFor::::from(1000u32); upgrades.push((id, block_number)); cooldowns.push((id, block_number)); } @@ -103,7 +103,7 @@ benchmarks! { let c in 1 .. MAX_CODE_SIZE; let new_code = ValidationCode(vec![0; c as usize]); let para_id = ParaId::from(c as u32); - let block = T::BlockNumber::from(c); + let block = BlockNumberFor::::from(c); generate_disordered_upgrades::(); }: _(RawOrigin::Root, para_id, new_code, block) verify { @@ -118,7 +118,7 @@ benchmarks! { // schedule an expired code upgrade for this `para_id` so that force_note_new_head would use // the worst possible code path let expired = frame_system::Pallet::::block_number().saturating_sub(One::one()); - let config = HostConfiguration::::default(); + let config = HostConfiguration::>::default(); generate_disordered_pruning::(); Pallet::::schedule_code_upgrade(para_id, ValidationCode(vec![0]), expired, &config); }: _(RawOrigin::Root, para_id, new_head) diff --git a/runtime/parachains/src/paras/mod.rs b/runtime/parachains/src/paras/mod.rs index ffed7829e807..c1a53579c35a 100644 --- a/runtime/parachains/src/paras/mod.rs +++ b/runtime/parachains/src/paras/mod.rs @@ -550,7 +550,7 @@ pub mod pallet { #[pallet::constant] type UnsignedPriority: Get; - type NextSessionRotation: EstimateNextSessionRotation; + type NextSessionRotation: EstimateNextSessionRotation>; /// Retrieve how many UMP messages are enqueued for this para-chain. /// @@ -623,7 +623,7 @@ pub mod pallet { _, Twox64Concat, ValidationCodeHash, - PvfCheckActiveVoteState, + PvfCheckActiveVoteState>, OptionQuery, >; @@ -662,7 +662,7 @@ pub mod pallet { /// Corresponding code can be retrieved with [`CodeByHash`]. #[pallet::storage] pub(super) type PastCodeHash = - StorageMap<_, Twox64Concat, (ParaId, T::BlockNumber), ValidationCodeHash>; + StorageMap<_, Twox64Concat, (ParaId, BlockNumberFor), ValidationCodeHash>; /// Past code of parachains. The parachains themselves may not be registered anymore, /// but we also keep their code on-chain for the same amount of time as outdated code @@ -670,7 +670,7 @@ pub mod pallet { #[pallet::storage] #[pallet::getter(fn past_code_meta)] pub(super) type PastCodeMeta = - StorageMap<_, Twox64Concat, ParaId, ParaPastCodeMeta, ValueQuery>; + StorageMap<_, Twox64Concat, ParaId, ParaPastCodeMeta>, ValueQuery>; /// Which paras have past code that needs pruning and the relay-chain block at which the code was replaced. /// Note that this is the actual height of the included block, not the expected height at which the @@ -680,7 +680,7 @@ pub mod pallet { /// Multiple entries for a single para are permitted. Ordered ascending by block number. #[pallet::storage] pub(super) type PastCodePruning = - StorageValue<_, Vec<(ParaId, T::BlockNumber)>, ValueQuery>; + StorageValue<_, Vec<(ParaId, BlockNumberFor)>, ValueQuery>; /// The block number at which the planned code change is expected for a para. /// The change will be applied after the first parablock for this ID included which executes @@ -688,7 +688,7 @@ pub mod pallet { #[pallet::storage] #[pallet::getter(fn future_code_upgrade_at)] pub(super) type FutureCodeUpgrades = - StorageMap<_, Twox64Concat, ParaId, T::BlockNumber>; + StorageMap<_, Twox64Concat, ParaId, BlockNumberFor>; /// The actual future code hash of a para. /// @@ -728,7 +728,7 @@ pub mod pallet { /// Ordered ascending by block number. #[pallet::storage] pub(super) type UpgradeCooldowns = - StorageValue<_, Vec<(ParaId, T::BlockNumber)>, ValueQuery>; + StorageValue<_, Vec<(ParaId, BlockNumberFor)>, ValueQuery>; /// The list of upcoming code upgrades. Each item is a pair of which para performs a code /// upgrade and at which relay-chain block it is expected at. @@ -736,7 +736,7 @@ pub mod pallet { /// Ordered ascending by block number. #[pallet::storage] pub(super) type UpcomingUpgrades = - StorageValue<_, Vec<(ParaId, T::BlockNumber)>, ValueQuery>; + StorageValue<_, Vec<(ParaId, BlockNumberFor)>, ValueQuery>; /// The actions to perform during the start of a specific session index. #[pallet::storage] @@ -838,7 +838,7 @@ pub mod pallet { origin: OriginFor, para: ParaId, new_code: ValidationCode, - relay_parent_number: T::BlockNumber, + relay_parent_number: BlockNumberFor, ) -> DispatchResult { ensure_root(origin)?; let config = configuration::Pallet::::config(); @@ -1145,13 +1145,13 @@ impl Pallet { } /// Called by the initializer to initialize the paras pallet. - pub(crate) fn initializer_initialize(now: T::BlockNumber) -> Weight { + pub(crate) fn initializer_initialize(now: BlockNumberFor) -> Weight { let weight = Self::prune_old_code(now); weight + Self::process_scheduled_upgrade_changes(now) } /// Called by the initializer to finalize the paras pallet. - pub(crate) fn initializer_finalize(now: T::BlockNumber) { + pub(crate) fn initializer_finalize(now: BlockNumberFor) { Self::process_scheduled_upgrade_cooldowns(now); } @@ -1159,7 +1159,7 @@ impl Pallet { /// /// Returns the list of outgoing paras from the actions queue. pub(crate) fn initializer_on_new_session( - notification: &SessionChangeNotification, + notification: &SessionChangeNotification>, ) -> Vec { let outgoing_paras = Self::apply_actions_queue(notification.session_index); Self::groom_ongoing_pvf_votes(¬ification.new_config, notification.validators.len()); @@ -1275,8 +1275,8 @@ impl Pallet { // (i.e. number of `relay_parent` in the receipt) fn note_past_code( id: ParaId, - at: T::BlockNumber, - now: T::BlockNumber, + at: BlockNumberFor, + now: BlockNumberFor, old_code_hash: ValidationCodeHash, ) -> Weight { PastCodeMeta::::mutate(&id, |past_meta| { @@ -1298,7 +1298,7 @@ impl Pallet { // looks at old code metadata, compares them to the current acceptance window, and prunes those // that are too old. - fn prune_old_code(now: T::BlockNumber) -> Weight { + fn prune_old_code(now: BlockNumberFor) -> Weight { let config = configuration::Pallet::::config(); let code_retention_period = config.code_retention_period; if now <= code_retention_period { @@ -1310,7 +1310,7 @@ impl Pallet { let pruning_height = now - (code_retention_period + One::one()); let pruning_tasks_done = - PastCodePruning::::mutate(|pruning_tasks: &mut Vec<(_, T::BlockNumber)>| { + PastCodePruning::::mutate(|pruning_tasks: &mut Vec<(_, BlockNumberFor)>| { let (pruning_tasks_done, pruning_tasks_to_do) = { // find all past code that has just exited the pruning window. let up_to_idx = @@ -1358,11 +1358,11 @@ impl Pallet { /// the upgrade restriction, that will happen in the `initializer_finalize` function. However, /// this function does count the number of cooldown timers expired so that we can reserve weight /// for the `initializer_finalize` function. - fn process_scheduled_upgrade_changes(now: T::BlockNumber) -> Weight { + fn process_scheduled_upgrade_changes(now: BlockNumberFor) -> Weight { // account weight for `UpcomingUpgrades::mutate`. let mut weight = T::DbWeight::get().reads_writes(1, 1); let upgrades_signaled = UpcomingUpgrades::::mutate( - |upcoming_upgrades: &mut Vec<(ParaId, T::BlockNumber)>| { + |upcoming_upgrades: &mut Vec<(ParaId, BlockNumberFor)>| { let num = upcoming_upgrades.iter().take_while(|&(_, at)| at <= &now).count(); for (para, _) in upcoming_upgrades.drain(..num) { UpgradeGoAheadSignal::::insert(¶, UpgradeGoAhead::GoAhead); @@ -1389,24 +1389,26 @@ impl Pallet { /// Actually perform unsetting the expired upgrade restrictions. /// /// See `process_scheduled_upgrade_changes` for more details. - fn process_scheduled_upgrade_cooldowns(now: T::BlockNumber) { - UpgradeCooldowns::::mutate(|upgrade_cooldowns: &mut Vec<(ParaId, T::BlockNumber)>| { - // Remove all expired signals and also prune the cooldowns. - upgrade_cooldowns.retain(|(para, at)| { - if at <= &now { - UpgradeRestrictionSignal::::remove(¶); - false - } else { - true - } - }); - }); + fn process_scheduled_upgrade_cooldowns(now: BlockNumberFor) { + UpgradeCooldowns::::mutate( + |upgrade_cooldowns: &mut Vec<(ParaId, BlockNumberFor)>| { + // Remove all expired signals and also prune the cooldowns. + upgrade_cooldowns.retain(|(para, at)| { + if at <= &now { + UpgradeRestrictionSignal::::remove(¶); + false + } else { + true + } + }); + }, + ); } /// Goes over all PVF votes in progress, reinitializes ballots, increments ages and prunes the /// active votes that reached their time-to-live. fn groom_ongoing_pvf_votes( - cfg: &configuration::HostConfiguration, + cfg: &configuration::HostConfiguration>, new_n_validators: usize, ) -> Weight { let mut weight = T::DbWeight::get().reads(1); @@ -1456,11 +1458,11 @@ impl Pallet { } fn enact_pvf_accepted( - now: T::BlockNumber, + now: BlockNumberFor, code_hash: &ValidationCodeHash, - causes: &[PvfCheckCause], + causes: &[PvfCheckCause>], sessions_observed: SessionIndex, - cfg: &configuration::HostConfiguration, + cfg: &configuration::HostConfiguration>, ) -> Weight { let mut weight = Weight::zero(); for cause in causes { @@ -1503,9 +1505,9 @@ impl Pallet { fn proceed_with_upgrade( id: ParaId, code_hash: &ValidationCodeHash, - now: T::BlockNumber, - relay_parent_number: T::BlockNumber, - cfg: &configuration::HostConfiguration, + now: BlockNumberFor, + relay_parent_number: BlockNumberFor, + cfg: &configuration::HostConfiguration>, ) -> Weight { let mut weight = Weight::zero(); @@ -1545,7 +1547,7 @@ impl Pallet { fn enact_pvf_rejected( code_hash: &ValidationCodeHash, - causes: Vec>, + causes: Vec>>, ) -> Weight { let mut weight = Weight::zero(); @@ -1766,8 +1768,8 @@ impl Pallet { pub(crate) fn schedule_code_upgrade( id: ParaId, new_code: ValidationCode, - relay_parent_number: T::BlockNumber, - cfg: &configuration::HostConfiguration, + relay_parent_number: BlockNumberFor, + cfg: &configuration::HostConfiguration>, ) -> Weight { let mut weight = T::DbWeight::get().reads(1); @@ -1840,10 +1842,10 @@ impl Pallet { /// /// Unconditionally increases the reference count for the passed `code`. fn kick_off_pvf_check( - cause: PvfCheckCause, + cause: PvfCheckCause>, code_hash: ValidationCodeHash, code: ValidationCode, - cfg: &configuration::HostConfiguration, + cfg: &configuration::HostConfiguration>, ) -> Weight { let mut weight = Weight::zero(); @@ -1912,7 +1914,7 @@ impl Pallet { pub(crate) fn note_new_head( id: ParaId, new_head: HeadData, - execution_context: T::BlockNumber, + execution_context: BlockNumberFor, ) -> Weight { Heads::::insert(&id, new_head); diff --git a/runtime/parachains/src/paras_inherent/mod.rs b/runtime/parachains/src/paras_inherent/mod.rs index f20af3ba7d64..ca846949b703 100644 --- a/runtime/parachains/src/paras_inherent/mod.rs +++ b/runtime/parachains/src/paras_inherent/mod.rs @@ -191,11 +191,11 @@ pub mod pallet { #[pallet::hooks] impl Hooks> for Pallet { - fn on_initialize(_: T::BlockNumber) -> Weight { + fn on_initialize(_: BlockNumberFor) -> Weight { T::DbWeight::get().reads_writes(1, 1) // in `on_finalize`. } - fn on_finalize(_: T::BlockNumber) { + fn on_finalize(_: BlockNumberFor) { if Included::::take().is_none() { panic!("Bitfields and heads must be included every block"); } @@ -262,7 +262,7 @@ pub mod pallet { ))] pub fn enter( origin: OriginFor, - data: ParachainsInherentData, + data: ParachainsInherentData>, ) -> DispatchResultWithPostInfo { ensure_none(origin)?; @@ -277,7 +277,7 @@ pub mod pallet { impl Pallet { /// Create the `ParachainsInherentData` that gets passed to [`Self::enter`] in [`Self::create_inherent`]. /// This code is pulled out of [`Self::create_inherent`] so it can be unit tested. - fn create_inherent_inner(data: &InherentData) -> Option> { + fn create_inherent_inner(data: &InherentData) -> Option>> { let parachains_inherent_data = match data.get_data(&Self::INHERENT_IDENTIFIER) { Ok(Some(d)) => d, Ok(None) => return None, @@ -307,9 +307,9 @@ impl Pallet { /// Returns: Result containing processed inherent data and weight, the processed inherent would /// consume. fn process_inherent_data( - data: ParachainsInherentData, + data: ParachainsInherentData>, ) -> sp_std::result::Result< - (ParachainsInherentData, PostDispatchInfo), + (ParachainsInherentData>, PostDispatchInfo), DispatchErrorWithPostInfo, > { #[cfg(feature = "runtime-metrics")] @@ -530,7 +530,7 @@ impl Pallet { // Process backed candidates according to scheduled cores. let parent_storage_root = *parent_header.state_root(); - let inclusion::ProcessedCandidates::<::Hash> { + let inclusion::ProcessedCandidates::< as HeaderT>::Hash> { core_indices: occupied, candidate_receipt_with_backing_validator_indices, } = >::process_candidates( diff --git a/runtime/parachains/src/runtime_api_impl/v5.rs b/runtime/parachains/src/runtime_api_impl/v5.rs index 72425995b4b0..7708bbd69b73 100644 --- a/runtime/parachains/src/runtime_api_impl/v5.rs +++ b/runtime/parachains/src/runtime_api_impl/v5.rs @@ -21,6 +21,7 @@ use crate::{ configuration, disputes, dmp, hrmp, inclusion, initializer, paras, paras_inherent, scheduler, session_info, shared, }; +use frame_system::pallet_prelude::*; use primitives::{ slashing, AuthorityDiscoveryId, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreIndex, CoreOccupied, CoreState, DisputeState, ExecutorParams, GroupIndex, @@ -39,7 +40,7 @@ pub fn validators() -> Vec { /// Implementation for the `validator_groups` function of the runtime API. pub fn validator_groups( -) -> (Vec>, GroupRotationInfo) { +) -> (Vec>, GroupRotationInfo>) { let now = >::block_number() + One::one(); let groups = >::validator_groups(); @@ -49,7 +50,7 @@ pub fn validator_groups( } /// Implementation for the `availability_cores` function of the runtime API. -pub fn availability_cores() -> Vec> { +pub fn availability_cores() -> Vec>> { let cores = >::availability_cores(); let parachains = >::parachains(); let config = >::config(); @@ -176,7 +177,7 @@ pub fn availability_cores() -> Vec( -) -> (::BlockNumber, ::Hash) { +) -> (BlockNumberFor, ::Hash) { use parity_scale_codec::Decode as _; let state_version = >::runtime_version().state_version(); let relay_parent_number = >::block_number(); @@ -214,7 +215,7 @@ where pub fn persisted_validation_data( para_id: ParaId, assumption: OccupiedCoreAssumption, -) -> Option> { +) -> Option>> { let (relay_parent_number, relay_parent_storage_root) = current_relay_parent::(); with_assumption::(para_id, assumption, || { crate::util::make_persisted_validation_data::( @@ -229,7 +230,7 @@ pub fn persisted_validation_data( pub fn assumed_validation_data( para_id: ParaId, expected_persisted_validation_data_hash: Hash, -) -> Option<(PersistedValidationData, ValidationCodeHash)> { +) -> Option<(PersistedValidationData>, ValidationCodeHash)> { let (relay_parent_number, relay_parent_storage_root) = current_relay_parent::(); // This closure obtains the `persisted_validation_data` for the given `para_id` and matches // its hash against an expected one. @@ -355,14 +356,14 @@ pub fn session_info(index: SessionIndex) -> Option( recipient: ParaId, -) -> Vec> { +) -> Vec>> { >::dmq_contents(recipient) } /// Implementation for the `inbound_hrmp_channels_contents` function of the runtime API. pub fn inbound_hrmp_channels_contents( recipient: ParaId, -) -> BTreeMap>> { +) -> BTreeMap>>> { >::inbound_hrmp_channels_contents(recipient) } @@ -407,7 +408,7 @@ where /// Implementation for `get_session_disputes` function from the runtime API pub fn get_session_disputes( -) -> Vec<(SessionIndex, CandidateHash, DisputeState)> { +) -> Vec<(SessionIndex, CandidateHash, DisputeState>)> { >::disputes() } diff --git a/runtime/parachains/src/scheduler.rs b/runtime/parachains/src/scheduler.rs index 916df1687b9d..b69c16ae8d01 100644 --- a/runtime/parachains/src/scheduler.rs +++ b/runtime/parachains/src/scheduler.rs @@ -36,6 +36,7 @@ //! over time. use frame_support::pallet_prelude::*; +use frame_system::pallet_prelude::BlockNumberFor; use primitives::{ CollatorId, CoreIndex, CoreOccupied, GroupIndex, GroupRotationInfo, Id as ParaId, ParathreadClaim, ParathreadEntry, ScheduledCore, ValidatorIndex, @@ -208,7 +209,7 @@ pub mod pallet { /// block following the session change, block number of which we save in this storage value. #[pallet::storage] #[pallet::getter(fn session_start_block)] - pub(crate) type SessionStartBlock = StorageValue<_, T::BlockNumber, ValueQuery>; + pub(crate) type SessionStartBlock = StorageValue<_, BlockNumberFor, ValueQuery>; /// Currently scheduled cores - free but up to be occupied. /// @@ -224,7 +225,7 @@ pub mod pallet { impl Pallet { /// Called by the initializer to initialize the scheduler pallet. - pub(crate) fn initializer_initialize(_now: T::BlockNumber) -> Weight { + pub(crate) fn initializer_initialize(_now: BlockNumberFor) -> Weight { Weight::zero() } @@ -233,7 +234,7 @@ impl Pallet { /// Called by the initializer to note that a new session has started. pub(crate) fn initializer_on_new_session( - notification: &SessionChangeNotification, + notification: &SessionChangeNotification>, ) { let SessionChangeNotification { validators, new_config, .. } = notification; let config = new_config; @@ -421,7 +422,7 @@ impl Pallet { /// ascending order by core index. pub(crate) fn schedule( just_freed_cores: impl IntoIterator, - now: T::BlockNumber, + now: BlockNumberFor, ) { Self::free_cores(just_freed_cores); @@ -590,7 +591,7 @@ impl Pallet { /// or the block number is less than the session start index. pub(crate) fn group_assigned_to_core( core: CoreIndex, - at: T::BlockNumber, + at: BlockNumberFor, ) -> Option { let config = >::config(); let session_start_block = >::get(); @@ -605,11 +606,12 @@ impl Pallet { return None } - let rotations_since_session_start: T::BlockNumber = + let rotations_since_session_start: BlockNumberFor = (at - session_start_block) / config.group_rotation_frequency.into(); let rotations_since_session_start = - >::try_into(rotations_since_session_start).unwrap_or(0); + as TryInto>::try_into(rotations_since_session_start) + .unwrap_or(0); // Error case can only happen if rotations occur only once every u32::max(), // so functionally no difference in behavior. @@ -629,7 +631,7 @@ impl Pallet { /// https://github.com/rust-lang/rust/issues/73226 /// which prevents us from testing the code if using `impl Trait`. pub(crate) fn availability_timeout_predicate( - ) -> Option bool>> { + ) -> Option) -> bool>> { let now = >::block_number(); let config = >::config(); @@ -670,7 +672,9 @@ impl Pallet { } /// Returns a helper for determining group rotation. - pub(crate) fn group_rotation_info(now: T::BlockNumber) -> GroupRotationInfo { + pub(crate) fn group_rotation_info( + now: BlockNumberFor, + ) -> GroupRotationInfo> { let session_start_block = Self::session_start_block(); let group_rotation_frequency = >::config().group_rotation_frequency; diff --git a/runtime/parachains/src/session_info.rs b/runtime/parachains/src/session_info.rs index 9f47ad0b03d6..0043851be0f2 100644 --- a/runtime/parachains/src/session_info.rs +++ b/runtime/parachains/src/session_info.rs @@ -27,6 +27,7 @@ use frame_support::{ pallet_prelude::*, traits::{OneSessionHandler, ValidatorSet, ValidatorSetWithIdentification}, }; +use frame_system::pallet_prelude::BlockNumberFor; use primitives::{AssignmentId, AuthorityDiscoveryId, ExecutorParams, SessionIndex, SessionInfo}; use sp_std::vec::Vec; @@ -125,7 +126,7 @@ impl AuthorityDiscoveryConfig for T { impl Pallet { /// Handle an incoming session change. pub(crate) fn initializer_on_new_session( - notification: &crate::initializer::SessionChangeNotification, + notification: &crate::initializer::SessionChangeNotification>, ) { let config = >::config(); @@ -195,7 +196,7 @@ impl Pallet { } /// Called by the initializer to initialize the session info pallet. - pub(crate) fn initializer_initialize(_now: T::BlockNumber) -> Weight { + pub(crate) fn initializer_initialize(_now: BlockNumberFor) -> Weight { Weight::zero() } diff --git a/runtime/parachains/src/shared.rs b/runtime/parachains/src/shared.rs index 686b955175b1..857e671f0ee4 100644 --- a/runtime/parachains/src/shared.rs +++ b/runtime/parachains/src/shared.rs @@ -20,6 +20,7 @@ //! dependent on any of the other pallets. use frame_support::pallet_prelude::*; +use frame_system::pallet_prelude::BlockNumberFor; use primitives::{SessionIndex, ValidatorId, ValidatorIndex}; use sp_std::vec::Vec; @@ -73,7 +74,7 @@ pub mod pallet { impl Pallet { /// Called by the initializer to initialize the configuration pallet. - pub(crate) fn initializer_initialize(_now: T::BlockNumber) -> Weight { + pub(crate) fn initializer_initialize(_now: BlockNumberFor) -> Weight { Weight::zero() } @@ -86,7 +87,7 @@ impl Pallet { pub(crate) fn initializer_on_new_session( session_index: SessionIndex, random_seed: [u8; 32], - new_config: &HostConfiguration, + new_config: &HostConfiguration>, all_validators: Vec, ) -> Vec { CurrentSessionIndex::::set(session_index); diff --git a/runtime/parachains/src/util.rs b/runtime/parachains/src/util.rs index bf037b54a99f..d5b339b679e3 100644 --- a/runtime/parachains/src/util.rs +++ b/runtime/parachains/src/util.rs @@ -17,6 +17,7 @@ //! Utilities that don't belong to any particular module but may draw //! on all modules. +use frame_system::pallet_prelude::BlockNumberFor; use primitives::{Id as ParaId, PersistedValidationData, ValidatorIndex}; use sp_std::{collections::btree_set::BTreeSet, vec::Vec}; @@ -28,9 +29,9 @@ use crate::{configuration, hrmp, paras}; /// This ties together the storage of several modules. pub fn make_persisted_validation_data( para_id: ParaId, - relay_parent_number: T::BlockNumber, + relay_parent_number: BlockNumberFor, relay_parent_storage_root: T::Hash, -) -> Option> { +) -> Option>> { let config = >::config(); Some(PersistedValidationData { diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 81052ae1527a..357adc049b1b 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -161,12 +161,12 @@ impl frame_system::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = Nonce; - type BlockNumber = BlockNumber; + type Hash = Hash; type Hashing = BlakeTwo256; type AccountId = AccountId; type Lookup = AccountIdLookup; - type Header = generic::Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type DbWeight = RocksDbWeight; @@ -1340,10 +1340,7 @@ impl frame_support::traits::OnRuntimeUpgrade for InitiateNominationPools { } construct_runtime! { - pub enum Runtime where - Block = Block, - NodeBlock = primitives::Block, - UncheckedExtrinsic = UncheckedExtrinsic + pub enum Runtime { // Basic stuff; balances is uncallable initially. System: frame_system::{Pallet, Call, Storage, Config, Event} = 0, diff --git a/runtime/rococo/src/lib.rs b/runtime/rococo/src/lib.rs index 301a3665b023..63e70e096a1b 100644 --- a/runtime/rococo/src/lib.rs +++ b/runtime/rococo/src/lib.rs @@ -156,12 +156,12 @@ impl frame_system::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = Nonce; - type BlockNumber = BlockNumber; + type Hash = Hash; type Hashing = BlakeTwo256; type AccountId = AccountId; type Lookup = AccountIdLookup; - type Header = generic::Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type Version = Version; @@ -1359,10 +1359,7 @@ impl pallet_sudo::Config for Runtime { } construct_runtime! { - pub enum Runtime where - Block = Block, - NodeBlock = primitives::Block, - UncheckedExtrinsic = UncheckedExtrinsic + pub enum Runtime { // Basic stuff; balances is uncallable initially. System: frame_system::{Pallet, Call, Storage, Config, Event} = 0, diff --git a/runtime/test-runtime/src/lib.rs b/runtime/test-runtime/src/lib.rs index 98e661c49176..143003111063 100644 --- a/runtime/test-runtime/src/lib.rs +++ b/runtime/test-runtime/src/lib.rs @@ -141,12 +141,12 @@ impl frame_system::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = Nonce; - type BlockNumber = BlockNumber; + type Hash = HashT; type Hashing = BlakeTwo256; type AccountId = AccountId; type Lookup = Indices; - type Header = generic::Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type Version = Version; @@ -646,10 +646,7 @@ pub mod pallet_test_notifier { } construct_runtime! { - pub enum Runtime where - Block = Block, - NodeBlock = primitives::Block, - UncheckedExtrinsic = UncheckedExtrinsic + pub enum Runtime { // Basic stuff; balances is uncallable initially. System: frame_system::{Pallet, Call, Storage, Config, Event}, diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 832f10408708..fbb0646d31ee 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -151,12 +151,12 @@ impl frame_system::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = Nonce; - type BlockNumber = BlockNumber; + type Hash = Hash; type Hashing = BlakeTwo256; type AccountId = AccountId; type Lookup = AccountIdLookup; - type Header = generic::Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type DbWeight = RocksDbWeight; @@ -1144,10 +1144,7 @@ parameter_types! { } construct_runtime! { - pub enum Runtime where - Block = Block, - NodeBlock = primitives::Block, - UncheckedExtrinsic = UncheckedExtrinsic + pub enum Runtime { // Basic stuff; balances is uncallable initially. System: frame_system::{Pallet, Call, Storage, Config, Event} = 0, diff --git a/xcm/pallet-xcm-benchmarks/src/fungible/mock.rs b/xcm/pallet-xcm-benchmarks/src/fungible/mock.rs index 0ae884784bbe..742bd1bbc730 100644 --- a/xcm/pallet-xcm-benchmarks/src/fungible/mock.rs +++ b/xcm/pallet-xcm-benchmarks/src/fungible/mock.rs @@ -24,22 +24,15 @@ use frame_support::{ weights::Weight, }; use sp_core::H256; -use sp_runtime::{ - testing::Header, - traits::{BlakeTwo256, IdentityLookup}, -}; +use sp_runtime::traits::{BlakeTwo256, IdentityLookup}; use xcm::latest::prelude::*; use xcm_builder::{AllowUnpaidExecutionFrom, MintLocation}; -type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; // For testing the pallet, we construct a mock runtime. frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, @@ -59,13 +52,12 @@ impl frame_system::Config for Test { type DbWeight = (); type RuntimeOrigin = RuntimeOrigin; type Index = u64; - type BlockNumber = u64; type Hash = H256; type RuntimeCall = RuntimeCall; type Hashing = BlakeTwo256; type AccountId = u64; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type Version = (); diff --git a/xcm/pallet-xcm-benchmarks/src/generic/mock.rs b/xcm/pallet-xcm-benchmarks/src/generic/mock.rs index c84a73db052f..7df6fe43d22d 100644 --- a/xcm/pallet-xcm-benchmarks/src/generic/mock.rs +++ b/xcm/pallet-xcm-benchmarks/src/generic/mock.rs @@ -24,10 +24,7 @@ use frame_support::{ weights::Weight, }; use sp_core::H256; -use sp_runtime::{ - testing::Header, - traits::{BlakeTwo256, IdentityLookup, TrailingZeroInput}, -}; +use sp_runtime::traits::{BlakeTwo256, IdentityLookup, TrailingZeroInput}; use xcm_builder::{ test_utils::{ Assets, TestAssetExchanger, TestAssetLocker, TestAssetTrap, TestSubscriptionService, @@ -37,14 +34,10 @@ use xcm_builder::{ }; use xcm_executor::traits::ConvertOrigin; -type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, XcmGenericBenchmarks: generic::{Pallet}, @@ -64,13 +57,12 @@ impl frame_system::Config for Test { type DbWeight = (); type RuntimeOrigin = RuntimeOrigin; type Index = u64; - type BlockNumber = u64; type Hash = H256; type RuntimeCall = RuntimeCall; type Hashing = BlakeTwo256; type AccountId = u64; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type Version = (); diff --git a/xcm/pallet-xcm/src/lib.rs b/xcm/pallet-xcm/src/lib.rs index 375272fcf1fe..1d975af47384 100644 --- a/xcm/pallet-xcm/src/lib.rs +++ b/xcm/pallet-xcm/src/lib.rs @@ -180,7 +180,7 @@ pub mod pallet { /// A lockable currency. // TODO: We should really use a trait which can handle multiple currencies. - type Currency: LockableCurrency; + type Currency: LockableCurrency>; /// The `MultiAsset` matcher for `Currency`. type CurrencyMatcher: MatchesFungible>; @@ -508,7 +508,7 @@ pub mod pallet { #[pallet::storage] #[pallet::getter(fn query)] pub(super) type Queries = - StorageMap<_, Blake2_128Concat, QueryId, QueryStatus, OptionQuery>; + StorageMap<_, Blake2_128Concat, QueryId, QueryStatus>, OptionQuery>; /// The existing asset traps. /// @@ -743,7 +743,7 @@ pub mod pallet { if on_chain_storage_version < 1 { let mut count = 0; - Queries::::translate::, _>(|_key, value| { + Queries::::translate::>, _>(|_key, value| { count += 1; Some(value.into()) }); @@ -1130,14 +1130,14 @@ const MAX_ASSETS_FOR_TRANSFER: usize = 2; impl QueryHandler for Pallet { type QueryId = u64; - type BlockNumber = T::BlockNumber; + type BlockNumber = BlockNumberFor; type Error = XcmError; type UniversalLocation = T::UniversalLocation; /// Attempt to create a new query ID and register it as a query that is yet to respond. fn new_query( responder: impl Into, - timeout: T::BlockNumber, + timeout: BlockNumberFor, match_querier: impl Into, ) -> Self::QueryId { Self::do_new_query(responder, None, timeout, match_querier).into() @@ -1540,7 +1540,7 @@ impl Pallet { fn do_new_query( responder: impl Into, maybe_notify: Option<(u8, u8)>, - timeout: T::BlockNumber, + timeout: BlockNumberFor, match_querier: impl Into, ) -> u64 { QueryCounter::::mutate(|q| { @@ -1585,7 +1585,7 @@ impl Pallet { message: &mut Xcm<()>, responder: impl Into, notify: impl Into<::RuntimeCall>, - timeout: T::BlockNumber, + timeout: BlockNumberFor, ) -> Result<(), XcmError> { let responder = responder.into(); let destination = T::UniversalLocation::get() @@ -1605,7 +1605,7 @@ impl Pallet { pub fn new_notify_query( responder: impl Into, notify: impl Into<::RuntimeCall>, - timeout: T::BlockNumber, + timeout: BlockNumberFor, match_querier: impl Into, ) -> u64 { let notify = notify.into().using_encoded(|mut bytes| Decode::decode(&mut bytes)).expect( diff --git a/xcm/pallet-xcm/src/mock.rs b/xcm/pallet-xcm/src/mock.rs index 0d3021b5b001..06810cfff144 100644 --- a/xcm/pallet-xcm/src/mock.rs +++ b/xcm/pallet-xcm/src/mock.rs @@ -24,7 +24,7 @@ use frame_system::EnsureRoot; use polkadot_parachain::primitives::Id as ParaId; use polkadot_runtime_parachains::origin; use sp_core::H256; -use sp_runtime::{testing::Header, traits::IdentityLookup, AccountId32, BuildStorage}; +use sp_runtime::{traits::IdentityLookup, AccountId32, BuildStorage}; pub use sp_std::{cell::RefCell, fmt::Debug, marker::PhantomData}; use xcm::prelude::*; use xcm_builder::{ @@ -40,7 +40,6 @@ use crate::{self as pallet_xcm, TestWeightInfo}; pub type AccountId = AccountId32; pub type Balance = u128; -type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; #[frame_support::pallet] @@ -132,10 +131,7 @@ pub mod pallet_test_notifier { } construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system::{Pallet, Call, Storage, Config, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, @@ -205,12 +201,11 @@ impl frame_system::Config for Test { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = u64; type Hash = H256; type Hashing = ::sp_runtime::traits::BlakeTwo256; type AccountId = AccountId; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type BlockWeights = (); diff --git a/xcm/xcm-builder/tests/mock/mod.rs b/xcm/xcm-builder/tests/mock/mod.rs index cb3ede30db23..5694e63d9a5f 100644 --- a/xcm/xcm-builder/tests/mock/mod.rs +++ b/xcm/xcm-builder/tests/mock/mod.rs @@ -22,7 +22,7 @@ use frame_support::{ use frame_system::EnsureRoot; use parity_scale_codec::Encode; use primitive_types::H256; -use sp_runtime::{testing::Header, traits::IdentityLookup, AccountId32, BuildStorage}; +use sp_runtime::{traits::IdentityLookup, AccountId32, BuildStorage}; use sp_std::cell::RefCell; use polkadot_parachain::primitives::Id as ParaId; @@ -78,12 +78,11 @@ impl frame_system::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = u64; type Hash = H256; type Hashing = ::sp_runtime::traits::BlakeTwo256; type AccountId = AccountId; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type BlockWeights = (); @@ -244,14 +243,10 @@ impl pallet_xcm::Config for Runtime { impl origin::Config for Runtime {} -type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; construct_runtime!( - pub enum Runtime where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Runtime { System: frame_system::{Pallet, Call, Storage, Config, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, diff --git a/xcm/xcm-simulator/example/src/parachain.rs b/xcm/xcm-simulator/example/src/parachain.rs index 85df21f0699c..3549e3bead8c 100644 --- a/xcm/xcm-simulator/example/src/parachain.rs +++ b/xcm/xcm-simulator/example/src/parachain.rs @@ -27,7 +27,6 @@ use frame_support::{ use frame_system::EnsureRoot; use sp_core::{ConstU32, H256}; use sp_runtime::{ - testing::Header, traits::{Get, Hash, IdentityLookup}, AccountId32, }; @@ -68,12 +67,11 @@ impl frame_system::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = u64; type Hash = H256; type Hashing = ::sp_runtime::traits::BlakeTwo256; type AccountId = AccountId; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type BlockWeights = (); @@ -449,14 +447,10 @@ impl pallet_xcm::Config for Runtime { type AdminOrigin = EnsureRoot; } -type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; construct_runtime!( - pub enum Runtime where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Runtime { System: frame_system::{Pallet, Call, Storage, Config, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, diff --git a/xcm/xcm-simulator/example/src/relay_chain.rs b/xcm/xcm-simulator/example/src/relay_chain.rs index 8912553ebb2f..a3266781043e 100644 --- a/xcm/xcm-simulator/example/src/relay_chain.rs +++ b/xcm/xcm-simulator/example/src/relay_chain.rs @@ -24,7 +24,7 @@ use frame_support::{ use frame_system::EnsureRoot; use sp_core::{ConstU32, H256}; -use sp_runtime::{testing::Header, traits::IdentityLookup, AccountId32}; +use sp_runtime::{traits::IdentityLookup, AccountId32}; use polkadot_parachain::primitives::Id as ParaId; use polkadot_runtime_parachains::{ @@ -53,12 +53,11 @@ impl frame_system::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = u64; type Hash = H256; type Hashing = ::sp_runtime::traits::BlakeTwo256; type AccountId = AccountId; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type BlockWeights = (); @@ -239,7 +238,6 @@ parameter_types! { impl origin::Config for Runtime {} -type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; parameter_types! { @@ -284,10 +282,7 @@ impl pallet_message_queue::Config for Runtime { } construct_runtime!( - pub enum Runtime where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Runtime { System: frame_system::{Pallet, Call, Storage, Config, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, diff --git a/xcm/xcm-simulator/fuzzer/src/parachain.rs b/xcm/xcm-simulator/fuzzer/src/parachain.rs index ecb9262d73ac..bdb36ea87af0 100644 --- a/xcm/xcm-simulator/fuzzer/src/parachain.rs +++ b/xcm/xcm-simulator/fuzzer/src/parachain.rs @@ -26,7 +26,6 @@ use frame_support::{ use frame_system::EnsureRoot; use sp_core::{ConstU32, H256}; use sp_runtime::{ - testing::Header, traits::{Hash, IdentityLookup}, AccountId32, }; @@ -57,12 +56,11 @@ impl frame_system::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = u64; type Hash = H256; type Hashing = ::sp_runtime::traits::BlakeTwo256; type AccountId = AccountId; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type BlockWeights = (); @@ -347,14 +345,10 @@ impl pallet_xcm::Config for Runtime { type AdminOrigin = EnsureRoot; } -type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; construct_runtime!( - pub enum Runtime where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Runtime { System: frame_system::{Pallet, Call, Storage, Config, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, diff --git a/xcm/xcm-simulator/fuzzer/src/relay_chain.rs b/xcm/xcm-simulator/fuzzer/src/relay_chain.rs index 9ce4dc7ac71f..eb4390aca2fb 100644 --- a/xcm/xcm-simulator/fuzzer/src/relay_chain.rs +++ b/xcm/xcm-simulator/fuzzer/src/relay_chain.rs @@ -24,7 +24,7 @@ use frame_support::{ use frame_system::EnsureRoot; use sp_core::{ConstU32, H256}; -use sp_runtime::{testing::Header, traits::IdentityLookup, AccountId32}; +use sp_runtime::{traits::IdentityLookup, AccountId32}; use polkadot_parachain::primitives::Id as ParaId; use polkadot_runtime_parachains::{ @@ -52,12 +52,11 @@ impl frame_system::Config for Runtime { type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; type Index = u64; - type BlockNumber = u64; type Hash = H256; type Hashing = ::sp_runtime::traits::BlakeTwo256; type AccountId = AccountId; type Lookup = IdentityLookup; - type Header = Header; + type Block = Block; type RuntimeEvent = RuntimeEvent; type BlockHashCount = BlockHashCount; type BlockWeights = (); @@ -203,7 +202,6 @@ parameter_types! { impl origin::Config for Runtime {} -type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; parameter_types! { @@ -252,10 +250,7 @@ impl pallet_message_queue::Config for Runtime { } construct_runtime!( - pub enum Runtime where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Runtime { System: frame_system::{Pallet, Call, Storage, Config, Event}, Balances: pallet_balances::{Pallet, Call, Storage, Config, Event},