diff --git a/Cargo.lock b/Cargo.lock index 483104fa08b8..a9547e8fba2a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -466,7 +466,7 @@ dependencies = [ [[package]] name = "binary-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "hash-db", "log", @@ -2282,7 +2282,7 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", ] @@ -2305,7 +2305,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-support-procedural", @@ -2330,7 +2330,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "Inflector", "array-bytes", @@ -2377,7 +2377,7 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2388,7 +2388,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -2405,7 +2405,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -2434,7 +2434,7 @@ dependencies = [ [[package]] name = "frame-remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "futures", "log", @@ -2450,7 +2450,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "bitflags", "environmental", @@ -2483,7 +2483,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "Inflector", "cfg-expr", @@ -2498,7 +2498,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -2510,7 +2510,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "proc-macro2", "quote", @@ -2520,7 +2520,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -2544,7 +2544,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -2555,7 +2555,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "log", @@ -2573,7 +2573,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -2588,7 +2588,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "sp-api", @@ -2597,7 +2597,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "parity-scale-codec", @@ -2779,7 +2779,7 @@ dependencies = [ [[package]] name = "generate-bags" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "chrono", "frame-election-provider-support", @@ -4559,7 +4559,7 @@ dependencies = [ [[package]] name = "mmr-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "futures", "log", @@ -4578,7 +4578,7 @@ dependencies = [ [[package]] name = "mmr-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "anyhow", "jsonrpsee", @@ -5140,7 +5140,7 @@ dependencies = [ [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5155,7 +5155,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -5171,7 +5171,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -5185,7 +5185,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5209,7 +5209,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5229,7 +5229,7 @@ dependencies = [ [[package]] name = "pallet-bags-list-remote-tests" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-election-provider-support", "frame-remote-externalities", @@ -5248,7 +5248,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5263,7 +5263,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -5282,7 +5282,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "binary-merkle-tree", @@ -5306,7 +5306,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5324,7 +5324,7 @@ dependencies = [ [[package]] name = "pallet-child-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5343,7 +5343,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5360,7 +5360,7 @@ dependencies = [ [[package]] name = "pallet-conviction-voting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "assert_matches", "frame-benchmarking", @@ -5377,7 +5377,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5395,7 +5395,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5418,7 +5418,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5431,7 +5431,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5449,7 +5449,7 @@ dependencies = [ [[package]] name = "pallet-fast-unstake" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5467,7 +5467,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5490,7 +5490,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "enumflags2", "frame-benchmarking", @@ -5506,7 +5506,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5526,7 +5526,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5543,7 +5543,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5560,7 +5560,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5577,7 +5577,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5593,7 +5593,7 @@ dependencies = [ [[package]] name = "pallet-nis" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5609,7 +5609,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools" version = "1.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -5626,7 +5626,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-benchmarking" version = "1.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5646,7 +5646,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-runtime-api" version = "1.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", @@ -5657,7 +5657,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -5674,7 +5674,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5698,7 +5698,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5715,7 +5715,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5730,7 +5730,7 @@ dependencies = [ [[package]] name = "pallet-ranked-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5748,7 +5748,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5763,7 +5763,7 @@ dependencies = [ [[package]] name = "pallet-referenda" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "assert_matches", "frame-benchmarking", @@ -5782,7 +5782,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5799,7 +5799,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -5820,7 +5820,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5836,7 +5836,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -5850,7 +5850,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5873,7 +5873,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -5884,7 +5884,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "log", "sp-arithmetic", @@ -5893,7 +5893,7 @@ dependencies = [ [[package]] name = "pallet-staking-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "sp-api", @@ -5902,7 +5902,7 @@ dependencies = [ [[package]] name = "pallet-state-trie-migration" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5919,7 +5919,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -5933,7 +5933,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5951,7 +5951,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -5970,7 +5970,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-support", "frame-system", @@ -5986,7 +5986,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -6002,7 +6002,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -6014,7 +6014,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -6031,7 +6031,7 @@ dependencies = [ [[package]] name = "pallet-uniques" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -6046,7 +6046,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -6062,7 +6062,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -6077,7 +6077,7 @@ dependencies = [ [[package]] name = "pallet-whitelist" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-benchmarking", "frame-support", @@ -9007,7 +9007,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "log", "sp-core", @@ -9018,7 +9018,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "futures", @@ -9045,7 +9045,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "futures", "futures-timer", @@ -9068,7 +9068,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -9083,7 +9083,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "memmap2", "sc-chain-spec-derive", @@ -9102,7 +9102,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -9113,7 +9113,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "chrono", @@ -9153,7 +9153,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "fnv", "futures", @@ -9179,7 +9179,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "hash-db", "kvdb", @@ -9205,7 +9205,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "futures", @@ -9230,7 +9230,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "fork-tree", @@ -9269,7 +9269,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "futures", "jsonrpsee", @@ -9291,7 +9291,7 @@ dependencies = [ [[package]] name = "sc-consensus-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "async-trait", @@ -9326,7 +9326,7 @@ dependencies = [ [[package]] name = "sc-consensus-beefy-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "futures", "jsonrpsee", @@ -9345,7 +9345,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "fork-tree", "parity-scale-codec", @@ -9358,7 +9358,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "ahash 0.8.2", "array-bytes", @@ -9398,7 +9398,7 @@ dependencies = [ [[package]] name = "sc-consensus-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "finality-grandpa", "futures", @@ -9418,7 +9418,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "futures", @@ -9441,7 +9441,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "lru 0.8.1", "parity-scale-codec", @@ -9465,7 +9465,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", @@ -9478,7 +9478,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "log", "sc-allocator", @@ -9491,7 +9491,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "anyhow", "cfg-if", @@ -9509,7 +9509,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "ansi_term", "futures", @@ -9524,7 +9524,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "async-trait", @@ -9539,7 +9539,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "async-channel", @@ -9582,7 +9582,7 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "cid", "futures", @@ -9601,7 +9601,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "async-trait", @@ -9630,7 +9630,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "ahash 0.8.2", "futures", @@ -9648,7 +9648,7 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "futures", @@ -9669,7 +9669,7 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "async-trait", @@ -9702,7 +9702,7 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "futures", @@ -9721,7 +9721,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "bytes", @@ -9751,7 +9751,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "futures", "libp2p", @@ -9764,7 +9764,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -9773,7 +9773,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "futures", "jsonrpsee", @@ -9803,7 +9803,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -9822,7 +9822,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "http", "jsonrpsee", @@ -9837,7 +9837,7 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "futures", @@ -9863,7 +9863,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "directories", @@ -9929,7 +9929,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "log", "parity-scale-codec", @@ -9940,7 +9940,7 @@ dependencies = [ [[package]] name = "sc-storage-monitor" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "clap 4.0.15", "fs4", @@ -9956,7 +9956,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -9975,7 +9975,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "6.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "futures", "libc", @@ -9994,7 +9994,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "chrono", "futures", @@ -10013,7 +10013,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "ansi_term", "atty", @@ -10044,7 +10044,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -10055,7 +10055,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "futures", @@ -10082,7 +10082,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "futures", @@ -10096,7 +10096,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-channel", "futures", @@ -10611,7 +10611,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "hash-db", "log", @@ -10629,7 +10629,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "blake2", "proc-macro-crate", @@ -10641,7 +10641,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "scale-info", @@ -10654,7 +10654,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "integer-sqrt", "num-traits", @@ -10668,7 +10668,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "scale-info", @@ -10681,7 +10681,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "sp-api", @@ -10693,7 +10693,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "futures", "log", @@ -10711,7 +10711,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "futures", @@ -10726,7 +10726,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "parity-scale-codec", @@ -10744,7 +10744,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "merlin", @@ -10767,7 +10767,7 @@ dependencies = [ [[package]] name = "sp-consensus-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "lazy_static", "parity-scale-codec", @@ -10786,7 +10786,7 @@ dependencies = [ [[package]] name = "sp-consensus-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "finality-grandpa", "log", @@ -10804,7 +10804,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "scale-info", @@ -10816,7 +10816,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "scale-info", @@ -10829,7 +10829,7 @@ dependencies = [ [[package]] name = "sp-core" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "base58", @@ -10872,7 +10872,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "blake2b_simd", "byteorder", @@ -10886,7 +10886,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "proc-macro2", "quote", @@ -10897,7 +10897,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -10906,7 +10906,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "proc-macro2", "quote", @@ -10916,7 +10916,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "environmental", "parity-scale-codec", @@ -10927,7 +10927,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -10942,7 +10942,7 @@ dependencies = [ [[package]] name = "sp-io" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "bytes", "ed25519", @@ -10967,7 +10967,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "lazy_static", "sp-core", @@ -10978,7 +10978,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "futures", @@ -10995,7 +10995,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "thiserror", "zstd", @@ -11004,7 +11004,7 @@ dependencies = [ [[package]] name = "sp-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "ckb-merkle-mountain-range", "log", @@ -11022,7 +11022,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "scale-info", @@ -11036,7 +11036,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "sp-api", "sp-core", @@ -11046,7 +11046,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "backtrace", "lazy_static", @@ -11056,7 +11056,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "rustc-hash", "serde", @@ -11066,7 +11066,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "either", "hash256-std-hasher", @@ -11088,7 +11088,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -11106,7 +11106,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "Inflector", "proc-macro-crate", @@ -11118,7 +11118,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "scale-info", @@ -11132,7 +11132,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "scale-info", @@ -11144,7 +11144,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "hash-db", "log", @@ -11164,12 +11164,12 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" [[package]] name = "sp-storage" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11182,7 +11182,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "futures-timer", @@ -11197,7 +11197,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "sp-std", @@ -11209,7 +11209,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "sp-api", "sp-runtime", @@ -11218,7 +11218,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "log", @@ -11234,7 +11234,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "ahash 0.8.2", "hash-db", @@ -11257,7 +11257,7 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11274,7 +11274,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -11285,7 +11285,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "anyhow", "impl-trait-for-tuples", @@ -11299,7 +11299,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "parity-scale-codec", "scale-info", @@ -11519,7 +11519,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "platforms", ] @@ -11527,7 +11527,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -11546,7 +11546,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "hyper", "log", @@ -11558,7 +11558,7 @@ dependencies = [ [[package]] name = "substrate-rpc-client" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "jsonrpsee", @@ -11571,7 +11571,7 @@ dependencies = [ [[package]] name = "substrate-state-trie-migration-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "jsonrpsee", "log", @@ -11590,7 +11590,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "array-bytes", "async-trait", @@ -11616,7 +11616,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "futures", "substrate-test-utils-derive", @@ -11626,7 +11626,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -11637,7 +11637,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "ansi_term", "build-helper", @@ -12438,7 +12438,7 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#310fe4095bff177ddcfa660ac0ab06171a25a9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#1bbde5d7c50e55458ff3925ed0ee911d035719d5" dependencies = [ "async-trait", "clap 4.0.15", diff --git a/primitives/src/v2/mod.rs b/primitives/src/v2/mod.rs index 27ad3fb278c5..d39c322e37be 100644 --- a/primitives/src/v2/mod.rs +++ b/primitives/src/v2/mod.rs @@ -143,12 +143,12 @@ pub mod well_known_keys { // // The `StorageValue`, such as `ACTIVE_CONFIG` was obtained by calling: // - // ::ActiveConfig::hashed_key() + // ActiveConfig::::hashed_key() // // The `StorageMap` values require `prefix`, and for example for `hrmp_egress_channel_index`, // it could be obtained like: // - // ::HrmpEgressChannelsIndex::prefix_hash(); + // HrmpEgressChannelsIndex::::prefix_hash(); // /// The current epoch index. diff --git a/runtime/common/src/assigned_slots.rs b/runtime/common/src/assigned_slots.rs index 5186b255168a..96e14820f751 100644 --- a/runtime/common/src/assigned_slots.rs +++ b/runtime/common/src/assigned_slots.rs @@ -78,7 +78,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); #[pallet::config] diff --git a/runtime/common/src/auctions.rs b/runtime/common/src/auctions.rs index 41924ff2e514..a75ca812f7b0 100644 --- a/runtime/common/src/auctions.rs +++ b/runtime/common/src/auctions.rs @@ -84,7 +84,6 @@ pub mod pallet { use frame_system::{ensure_root, ensure_signed, pallet_prelude::*}; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); /// The module's configuration trait. diff --git a/runtime/common/src/claims.rs b/runtime/common/src/claims.rs index 3c40aab11dc7..82bca143e18b 100644 --- a/runtime/common/src/claims.rs +++ b/runtime/common/src/claims.rs @@ -164,7 +164,6 @@ pub mod pallet { use frame_system::pallet_prelude::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/runtime/common/src/crowdloan/mod.rs b/runtime/common/src/crowdloan/mod.rs index e8ef2ee0344f..9f70ac3dd895 100644 --- a/runtime/common/src/crowdloan/mod.rs +++ b/runtime/common/src/crowdloan/mod.rs @@ -186,7 +186,6 @@ pub mod pallet { const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] #[pallet::storage_version(STORAGE_VERSION)] pub struct Pallet(_); diff --git a/runtime/common/src/paras_registrar.rs b/runtime/common/src/paras_registrar.rs index ec65cac94414..2fe16f141683 100644 --- a/runtime/common/src/paras_registrar.rs +++ b/runtime/common/src/paras_registrar.rs @@ -97,7 +97,6 @@ pub mod pallet { use frame_system::pallet_prelude::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/runtime/common/src/paras_sudo_wrapper.rs b/runtime/common/src/paras_sudo_wrapper.rs index 5cf6e74e28a6..33b9d18071a3 100644 --- a/runtime/common/src/paras_sudo_wrapper.rs +++ b/runtime/common/src/paras_sudo_wrapper.rs @@ -33,7 +33,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); #[pallet::config] diff --git a/runtime/common/src/purchase.rs b/runtime/common/src/purchase.rs index ed4647531ff0..47190c5f2690 100644 --- a/runtime/common/src/purchase.rs +++ b/runtime/common/src/purchase.rs @@ -91,7 +91,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/runtime/common/src/slots/mod.rs b/runtime/common/src/slots/mod.rs index 23781cd89338..2c3fd39ae00a 100644 --- a/runtime/common/src/slots/mod.rs +++ b/runtime/common/src/slots/mod.rs @@ -67,7 +67,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/runtime/parachains/src/configuration.rs b/runtime/parachains/src/configuration.rs index 9bc061f071a9..14926c726b48 100644 --- a/runtime/parachains/src/configuration.rs +++ b/runtime/parachains/src/configuration.rs @@ -473,7 +473,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::storage_version(migration::STORAGE_VERSION)] #[pallet::without_storage_info] pub struct Pallet(_); @@ -1155,7 +1154,7 @@ pub mod pallet { ))] pub fn set_bypass_consistency_check(origin: OriginFor, new: bool) -> DispatchResult { ensure_root(origin)?; - ::BypassConsistencyCheck::put(new); + BypassConsistencyCheck::::put(new); Ok(()) } } @@ -1200,7 +1199,7 @@ impl Pallet { session_index: &SessionIndex, ) -> SessionChangeOutcome { let pending_configs = >::get(); - let prev_config = ::ActiveConfig::get(); + let prev_config = ActiveConfig::::get(); // No pending configuration changes, so we're done. if pending_configs.is_empty() { @@ -1223,7 +1222,7 @@ impl Pallet { let new_config = past_and_present.pop().map(|(_, config)| config); if let Some(ref new_config) = new_config { // Apply the new configuration. - ::ActiveConfig::put(new_config); + ActiveConfig::::put(new_config); } >::put(future); @@ -1240,7 +1239,7 @@ impl Pallet { /// 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) { - ::ActiveConfig::set(config); + ActiveConfig::::set(config); } /// This function should be used to update members of the configuration. @@ -1302,7 +1301,7 @@ impl Pallet { updater(&mut base_config); let new_config = base_config; - if ::BypassConsistencyCheck::get() { + if BypassConsistencyCheck::::get() { // This will emit a warning each configuration update if the consistency check is // bypassed. This is an attempt to make sure the bypass is not accidentally left on. log::warn!( diff --git a/runtime/parachains/src/configuration/migration.rs b/runtime/parachains/src/configuration/migration.rs index abef3c0ccc11..7b2092cfc2c1 100644 --- a/runtime/parachains/src/configuration/migration.rs +++ b/runtime/parachains/src/configuration/migration.rs @@ -16,7 +16,7 @@ //! A module that is responsible for migration of storage. -use crate::configuration::{self, Config, Pallet, Store, MAX_POV_SIZE}; +use crate::configuration::{self, ActiveConfig, Config, Pallet, MAX_POV_SIZE}; use frame_support::{pallet_prelude::*, traits::StorageVersion, weights::Weight}; use frame_system::pallet_prelude::BlockNumberFor; @@ -230,7 +230,7 @@ minimum_validation_upgrade_delay : pre.minimum_validation_upgrade_delay, } }; - if let Err(_) = as Store>::ActiveConfig::translate(|pre| pre.map(translate)) { + if let Err(_) = ActiveConfig::::translate(|pre| pre.map(translate)) { // `Err` is returned when the pre-migration type cannot be deserialized. This // cannot happen if the migration runs correctly, i.e. against the expected version. // diff --git a/runtime/parachains/src/configuration/tests.rs b/runtime/parachains/src/configuration/tests.rs index 52ce3929dadb..2d89aebc19d3 100644 --- a/runtime/parachains/src/configuration/tests.rs +++ b/runtime/parachains/src/configuration/tests.rs @@ -72,18 +72,18 @@ fn config_changes_after_2_session_boundary() { // Verify that the current configuration has not changed and that there is a scheduled // change for the SESSION_DELAY sessions in advance. assert_eq!(Configuration::config(), old_config); - assert_eq!(::PendingConfigs::get(), vec![(2, config.clone())]); + assert_eq!(PendingConfigs::::get(), vec![(2, config.clone())]); on_new_session(1); // One session has passed, we should be still waiting for the pending configuration. assert_eq!(Configuration::config(), old_config); - assert_eq!(::PendingConfigs::get(), vec![(2, config.clone())]); + assert_eq!(PendingConfigs::::get(), vec![(2, config.clone())]); on_new_session(2); assert_eq!(Configuration::config(), config); - assert_eq!(::PendingConfigs::get(), vec![]); + assert_eq!(PendingConfigs::::get(), vec![]); }) } @@ -99,17 +99,17 @@ fn consecutive_changes_within_one_session() { assert_ok!(Configuration::set_validation_upgrade_delay(RuntimeOrigin::root(), 100)); assert_ok!(Configuration::set_validation_upgrade_cooldown(RuntimeOrigin::root(), 100)); assert_eq!(Configuration::config(), old_config); - assert_eq!(::PendingConfigs::get(), vec![(2, config.clone())]); + assert_eq!(PendingConfigs::::get(), vec![(2, config.clone())]); on_new_session(1); assert_eq!(Configuration::config(), old_config); - assert_eq!(::PendingConfigs::get(), vec![(2, config.clone())]); + assert_eq!(PendingConfigs::::get(), vec![(2, config.clone())]); on_new_session(2); assert_eq!(Configuration::config(), config); - assert_eq!(::PendingConfigs::get(), vec![]); + assert_eq!(PendingConfigs::::get(), vec![]); }); } @@ -127,10 +127,7 @@ fn pending_next_session_but_we_upgrade_once_more() { assert_ok!(Configuration::set_validation_upgrade_delay(RuntimeOrigin::root(), 100)); assert_eq!(Configuration::config(), initial_config); - assert_eq!( - ::PendingConfigs::get(), - vec![(2, intermediate_config.clone())] - ); + assert_eq!(PendingConfigs::::get(), vec![(2, intermediate_config.clone())]); on_new_session(1); @@ -141,22 +138,19 @@ fn pending_next_session_but_we_upgrade_once_more() { // This should result in yet another configiguration change scheduled. assert_eq!(Configuration::config(), initial_config); assert_eq!( - ::PendingConfigs::get(), + PendingConfigs::::get(), vec![(2, intermediate_config.clone()), (3, final_config.clone())] ); on_new_session(2); assert_eq!(Configuration::config(), intermediate_config); - assert_eq!( - ::PendingConfigs::get(), - vec![(3, final_config.clone())] - ); + assert_eq!(PendingConfigs::::get(), vec![(3, final_config.clone())]); on_new_session(3); assert_eq!(Configuration::config(), final_config); - assert_eq!(::PendingConfigs::get(), vec![]); + assert_eq!(PendingConfigs::::get(), vec![]); }); } @@ -175,10 +169,7 @@ fn scheduled_session_config_update_while_next_session_pending() { assert_ok!(Configuration::set_validation_upgrade_delay(RuntimeOrigin::root(), 100)); assert_eq!(Configuration::config(), initial_config); - assert_eq!( - ::PendingConfigs::get(), - vec![(2, intermediate_config.clone())] - ); + assert_eq!(PendingConfigs::::get(), vec![(2, intermediate_config.clone())]); on_new_session(1); @@ -190,22 +181,19 @@ fn scheduled_session_config_update_while_next_session_pending() { // This should result in yet another configiguration change scheduled. assert_eq!(Configuration::config(), initial_config); assert_eq!( - ::PendingConfigs::get(), + PendingConfigs::::get(), vec![(2, intermediate_config.clone()), (3, final_config.clone())] ); on_new_session(2); assert_eq!(Configuration::config(), intermediate_config); - assert_eq!( - ::PendingConfigs::get(), - vec![(3, final_config.clone())] - ); + assert_eq!(PendingConfigs::::get(), vec![(3, final_config.clone())]); on_new_session(3); assert_eq!(Configuration::config(), final_config); - assert_eq!(::PendingConfigs::get(), vec![]); + assert_eq!(PendingConfigs::::get(), vec![]); }); } @@ -240,7 +228,7 @@ fn invariants() { Error::::InvalidNewValue ); - ::ActiveConfig::put(HostConfiguration { + ActiveConfig::::put(HostConfiguration { chain_availability_period: 10, thread_availability_period: 8, minimum_validation_upgrade_delay: 11, @@ -514,10 +502,7 @@ fn setting_pending_config_members() { Configuration::set_pvf_voting_ttl(RuntimeOrigin::root(), new_config.pvf_voting_ttl) .unwrap(); - assert_eq!( - ::PendingConfigs::get(), - vec![(shared::SESSION_DELAY, new_config)], - ); + assert_eq!(PendingConfigs::::get(), vec![(shared::SESSION_DELAY, new_config)],); }) } @@ -539,7 +524,7 @@ fn verify_externally_accessible() { let ground_truth = HostConfiguration::default(); // Make sure that the configuration is stored in the storage. - ::ActiveConfig::put(ground_truth.clone()); + ActiveConfig::::put(ground_truth.clone()); // Extract the active config via the well known key. let raw_active_config = sp_io::storage::get(well_known_keys::ACTIVE_CONFIG) diff --git a/runtime/parachains/src/dmp.rs b/runtime/parachains/src/dmp.rs index 855ae1bd85b6..03a767eb428f 100644 --- a/runtime/parachains/src/dmp.rs +++ b/runtime/parachains/src/dmp.rs @@ -75,7 +75,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); @@ -135,8 +134,8 @@ impl Pallet { /// Remove all relevant storage items for an outgoing parachain. fn clean_dmp_after_outgoing(outgoing_para: &ParaId) { - ::DownwardMessageQueues::remove(outgoing_para); - ::DownwardMessageQueueHeads::remove(outgoing_para); + DownwardMessageQueues::::remove(outgoing_para); + DownwardMessageQueueHeads::::remove(outgoing_para); } /// Determine whether enqueuing a downward message to a specific recipient para would result @@ -152,9 +151,7 @@ impl Pallet { return Err(QueueDownwardMessageError::ExceedsMaxMessageSize) } - if ::DownwardMessageQueues::decode_len(para).unwrap_or(0) > - MAX_MESSAGE_QUEUE_SIZE - { + if DownwardMessageQueues::::decode_len(para).unwrap_or(0) > MAX_MESSAGE_QUEUE_SIZE { return Err(QueueDownwardMessageError::ExceedsMaxMessageSize) } @@ -179,9 +176,7 @@ impl Pallet { return Err(QueueDownwardMessageError::ExceedsMaxMessageSize) } - if ::DownwardMessageQueues::decode_len(para).unwrap_or(0) > - MAX_MESSAGE_QUEUE_SIZE - { + if DownwardMessageQueues::::decode_len(para).unwrap_or(0) > MAX_MESSAGE_QUEUE_SIZE { return Err(QueueDownwardMessageError::ExceedsMaxMessageSize) } @@ -189,13 +184,13 @@ impl Pallet { InboundDownwardMessage { msg, sent_at: >::block_number() }; // obtain the new link in the MQC and update the head. - ::DownwardMessageQueueHeads::mutate(para, |head| { + DownwardMessageQueueHeads::::mutate(para, |head| { let new_head = BlakeTwo256::hash_of(&(*head, inbound.sent_at, T::Hashing::hash_of(&inbound.msg))); *head = new_head; }); - ::DownwardMessageQueues::mutate(para, |v| { + DownwardMessageQueues::::mutate(para, |v| { v.push(inbound); }); @@ -224,7 +219,7 @@ impl Pallet { /// Prunes the specified number of messages from the downward message queue of the given para. pub(crate) fn prune_dmq(para: ParaId, processed_downward_messages: u32) -> Weight { - ::DownwardMessageQueues::mutate(para, |q| { + DownwardMessageQueues::::mutate(para, |q| { let processed_downward_messages = processed_downward_messages as usize; if processed_downward_messages > q.len() { // reaching this branch is unexpected due to the constraint established by @@ -241,14 +236,14 @@ impl Pallet { /// associated with it. #[cfg(test)] fn dmq_mqc_head(para: ParaId) -> Hash { - ::DownwardMessageQueueHeads::get(¶) + DownwardMessageQueueHeads::::get(¶) } /// Returns the number of pending downward messages addressed to the given para. /// /// Returns 0 if the para doesn't have an associated downward message queue. pub(crate) fn dmq_length(para: ParaId) -> u32 { - ::DownwardMessageQueues::decode_len(¶) + DownwardMessageQueues::::decode_len(¶) .unwrap_or(0) .saturated_into::() } @@ -257,6 +252,6 @@ impl Pallet { /// /// The most recent messages are the latest in the vector. pub(crate) fn dmq_contents(recipient: ParaId) -> Vec> { - ::DownwardMessageQueues::get(&recipient) + DownwardMessageQueues::::get(&recipient) } } diff --git a/runtime/parachains/src/dmp/tests.rs b/runtime/parachains/src/dmp/tests.rs index b19c2db0914a..a3d9b6e3ac85 100644 --- a/runtime/parachains/src/dmp/tests.rs +++ b/runtime/parachains/src/dmp/tests.rs @@ -15,7 +15,7 @@ // along with Polkadot. If not, see . use super::*; -use crate::mock::{new_test_ext, Configuration, Dmp, MockGenesisConfig, Paras, System}; +use crate::mock::{new_test_ext, Configuration, Dmp, MockGenesisConfig, Paras, System, Test}; use hex_literal::hex; use parity_scale_codec::Encode; use primitives::BlockNumber; @@ -73,9 +73,9 @@ fn clean_dmp_works() { let outgoing_paras = vec![a, b]; Dmp::initializer_on_new_session(¬ification, &outgoing_paras); - assert!(::DownwardMessageQueues::get(&a).is_empty()); - assert!(::DownwardMessageQueues::get(&b).is_empty()); - assert!(!::DownwardMessageQueues::get(&c).is_empty()); + assert!(DownwardMessageQueues::::get(&a).is_empty()); + assert!(DownwardMessageQueues::::get(&b).is_empty()); + assert!(!DownwardMessageQueues::::get(&c).is_empty()); }); } diff --git a/runtime/parachains/src/hrmp.rs b/runtime/parachains/src/hrmp.rs index 396ba1f5f73b..fe87f85db757 100644 --- a/runtime/parachains/src/hrmp.rs +++ b/runtime/parachains/src/hrmp.rs @@ -235,7 +235,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); @@ -584,8 +583,8 @@ pub mod pallet { ) -> DispatchResult { let origin = ensure_parachain(::RuntimeOrigin::from(origin))?; ensure!( - ::HrmpOpenChannelRequestsList::decode_len().unwrap_or_default() - as u32 <= open_requests, + HrmpOpenChannelRequestsList::::decode_len().unwrap_or_default() as u32 <= + open_requests, Error::::WrongWitness ); Self::cancel_open_request(origin, channel_id.clone())?; @@ -685,10 +684,10 @@ impl Pallet { // we need a few extra bits of data to weigh this -- all of this is read internally // anyways, so no overhead. - let ingress_count = ::HrmpIngressChannelsIndex::decode_len(outgoing_para) - .unwrap_or_default() as u32; - let egress_count = ::HrmpEgressChannelsIndex::decode_len(outgoing_para) - .unwrap_or_default() as u32; + let ingress_count = + HrmpIngressChannelsIndex::::decode_len(outgoing_para).unwrap_or_default() as u32; + let egress_count = + HrmpEgressChannelsIndex::::decode_len(outgoing_para).unwrap_or_default() as u32; w = w.saturating_add(::WeightInfo::force_clean_hrmp( ingress_count, egress_count, @@ -709,16 +708,16 @@ impl Pallet { // // Both the open channel request list and outgoing list are expected to be small enough. // In the most common case there will be only single outgoing para. - let open_channel_reqs = ::HrmpOpenChannelRequestsList::get(); + let open_channel_reqs = HrmpOpenChannelRequestsList::::get(); let (go, stay): (Vec, Vec) = open_channel_reqs .into_iter() .partition(|req_id| outgoing.iter().any(|id| req_id.is_participant(*id))); - ::HrmpOpenChannelRequestsList::put(stay); + HrmpOpenChannelRequestsList::::put(stay); // Then iterate over all open requests to be removed, pull them out of the set and perform // the refunds if applicable. for req_id in go { - let req_data = match ::HrmpOpenChannelRequests::take(&req_id) { + let req_data = match HrmpOpenChannelRequests::::take(&req_id) { Some(req_data) => req_data, None => { // Can't normally happen but no need to panic. @@ -755,13 +754,13 @@ impl Pallet { /// Remove all storage entries associated with the given para. fn clean_hrmp_after_outgoing(outgoing_para: &ParaId) { - ::HrmpOpenChannelRequestCount::remove(outgoing_para); - ::HrmpAcceptedChannelRequestCount::remove(outgoing_para); + HrmpOpenChannelRequestCount::::remove(outgoing_para); + HrmpAcceptedChannelRequestCount::::remove(outgoing_para); - let ingress = ::HrmpIngressChannelsIndex::take(outgoing_para) + let ingress = HrmpIngressChannelsIndex::::take(outgoing_para) .into_iter() .map(|sender| HrmpChannelId { sender, recipient: *outgoing_para }); - let egress = ::HrmpEgressChannelsIndex::take(outgoing_para) + let egress = HrmpEgressChannelsIndex::::take(outgoing_para) .into_iter() .map(|recipient| HrmpChannelId { sender: *outgoing_para, recipient }); let mut to_close = ingress.chain(egress).collect::>(); @@ -778,7 +777,7 @@ impl Pallet { /// - prune the stale requests /// - enact the confirmed requests fn process_hrmp_open_channel_requests(config: &HostConfiguration) { - let mut open_req_channels = ::HrmpOpenChannelRequestsList::get(); + let mut open_req_channels = HrmpOpenChannelRequestsList::::get(); if open_req_channels.is_empty() { return } @@ -794,7 +793,7 @@ impl Pallet { idx -= 1; let channel_id = open_req_channels[idx].clone(); - let request = ::HrmpOpenChannelRequests::get(&channel_id).expect( + let request = HrmpOpenChannelRequests::::get(&channel_id).expect( "can't be `None` due to the invariant that the list contains the same items as the set; qed", ); @@ -802,7 +801,7 @@ impl Pallet { if >::is_valid_para(channel_id.sender) && >::is_valid_para(channel_id.recipient) { - ::HrmpChannels::insert( + HrmpChannels::::insert( &channel_id, HrmpChannel { sender_deposit: request.sender_deposit, @@ -816,12 +815,12 @@ impl Pallet { }, ); - ::HrmpIngressChannelsIndex::mutate(&channel_id.recipient, |v| { + HrmpIngressChannelsIndex::::mutate(&channel_id.recipient, |v| { if let Err(i) = v.binary_search(&channel_id.sender) { v.insert(i, channel_id.sender); } }); - ::HrmpEgressChannelsIndex::mutate(&channel_id.sender, |v| { + HrmpEgressChannelsIndex::::mutate(&channel_id.sender, |v| { if let Err(i) = v.binary_search(&channel_id.recipient) { v.insert(i, channel_id.recipient); } @@ -832,18 +831,18 @@ impl Pallet { Self::decrease_accepted_channel_request_count(channel_id.recipient); let _ = open_req_channels.swap_remove(idx); - ::HrmpOpenChannelRequests::remove(&channel_id); + HrmpOpenChannelRequests::::remove(&channel_id); } } - ::HrmpOpenChannelRequestsList::put(open_req_channels); + HrmpOpenChannelRequestsList::::put(open_req_channels); } /// Iterate over all close channel requests unconditionally closing the channels. fn process_hrmp_close_channel_requests() { - let close_reqs = ::HrmpCloseChannelRequestsList::take(); + let close_reqs = HrmpCloseChannelRequestsList::::take(); for condemned_ch_id in close_reqs { - ::HrmpCloseChannelRequests::remove(&condemned_ch_id); + HrmpCloseChannelRequests::::remove(&condemned_ch_id); Self::close_hrmp_channel(&condemned_ch_id); } } @@ -856,7 +855,7 @@ impl Pallet { /// effect (i.e. it won't return the deposits twice). fn close_hrmp_channel(channel_id: &HrmpChannelId) { if let Some(HrmpChannel { sender_deposit, recipient_deposit, .. }) = - ::HrmpChannels::take(channel_id) + HrmpChannels::::take(channel_id) { T::Currency::unreserve( &channel_id.sender.into_account_truncating(), @@ -868,14 +867,14 @@ impl Pallet { ); } - ::HrmpChannelContents::remove(channel_id); + HrmpChannelContents::::remove(channel_id); - ::HrmpEgressChannelsIndex::mutate(&channel_id.sender, |v| { + HrmpEgressChannelsIndex::::mutate(&channel_id.sender, |v| { if let Ok(i) = v.binary_search(&channel_id.recipient) { v.remove(i); } }); - ::HrmpIngressChannelsIndex::mutate(&channel_id.recipient, |v| { + HrmpIngressChannelsIndex::::mutate(&channel_id.recipient, |v| { if let Ok(i) = v.binary_search(&channel_id.sender) { v.remove(i); } @@ -895,7 +894,7 @@ impl Pallet { // // (b) However, a parachain cannot read into "the future", therefore the watermark should // not be greater than the relay-chain context block which the parablock refers to. - if let Some(last_watermark) = ::HrmpWatermarks::get(&recipient) { + if let Some(last_watermark) = HrmpWatermarks::::get(&recipient) { if new_hrmp_watermark <= last_watermark { return Err(HrmpWatermarkAcceptanceErr::AdvancementRule { new_watermark: new_hrmp_watermark, @@ -917,7 +916,7 @@ impl Pallet { if new_hrmp_watermark == relay_chain_parent_number { Ok(()) } else { - let digest = ::HrmpChannelDigests::get(&recipient); + let digest = HrmpChannelDigests::::get(&recipient); if !digest .binary_search_by_key(&new_hrmp_watermark, |(block_no, _)| *block_no) .is_ok() @@ -958,7 +957,7 @@ impl Pallet { let channel_id = HrmpChannelId { sender, recipient: out_msg.recipient }; - let channel = match ::HrmpChannels::get(&channel_id) { + let channel = match HrmpChannels::::get(&channel_id) { Some(channel) => channel, None => return Err(OutboundHrmpAcceptanceErr::NoSuchChannel { channel_id, idx }), }; @@ -999,7 +998,7 @@ impl Pallet { // sift through the incoming messages digest to collect the paras that sent at least one // message to this parachain between the old and new watermarks. - let senders = ::HrmpChannelDigests::mutate(&recipient, |digest| { + let senders = HrmpChannelDigests::::mutate(&recipient, |digest| { let mut senders = BTreeSet::new(); let mut leftover = Vec::with_capacity(digest.len()); for (block_no, paras_sent_msg) in mem::replace(digest, Vec::new()) { @@ -1022,7 +1021,7 @@ impl Pallet { // and what is the total byte size of them. let (mut pruned_cnt, mut pruned_size) = (0, 0); - let contents = ::HrmpChannelContents::get(&channel_id); + let contents = HrmpChannelContents::::get(&channel_id); let mut leftover = Vec::with_capacity(contents.len()); for msg in contents { if msg.sent_at <= new_hrmp_watermark { @@ -1033,13 +1032,13 @@ impl Pallet { } } if !leftover.is_empty() { - ::HrmpChannelContents::insert(&channel_id, leftover); + HrmpChannelContents::::insert(&channel_id, leftover); } else { - ::HrmpChannelContents::remove(&channel_id); + HrmpChannelContents::::remove(&channel_id); } // update the channel metadata. - ::HrmpChannels::mutate(&channel_id, |channel| { + HrmpChannels::::mutate(&channel_id, |channel| { if let Some(ref mut channel) = channel { channel.msg_count -= pruned_cnt as u32; channel.total_size -= pruned_size as u32; @@ -1049,7 +1048,7 @@ impl Pallet { weight += T::DbWeight::get().reads_writes(2, 2); } - ::HrmpWatermarks::insert(&recipient, new_hrmp_watermark); + HrmpWatermarks::::insert(&recipient, new_hrmp_watermark); weight += T::DbWeight::get().reads_writes(0, 1); weight @@ -1065,7 +1064,7 @@ impl Pallet { for out_msg in out_hrmp_msgs { let channel_id = HrmpChannelId { sender, recipient: out_msg.recipient }; - let mut channel = match ::HrmpChannels::get(&channel_id) { + let mut channel = match HrmpChannels::::get(&channel_id) { Some(channel) => channel, None => { // apparently, that since acceptance of this candidate the recipient was @@ -1089,8 +1088,8 @@ impl Pallet { )); channel.mqc_head = Some(new_head); - ::HrmpChannels::insert(&channel_id, channel); - ::HrmpChannelContents::append(&channel_id, inbound); + HrmpChannels::::insert(&channel_id, channel); + HrmpChannelContents::::append(&channel_id, inbound); // The digests are sorted in ascending by block number order. Assuming absence of // contextual execution, there are only two possible scenarios here: @@ -1104,8 +1103,7 @@ impl Pallet { // // Note that having the latest entry greater than the current block number is a logical // error. - let mut recipient_digest = - ::HrmpChannelDigests::get(&channel_id.recipient); + let mut recipient_digest = HrmpChannelDigests::::get(&channel_id.recipient); if let Some(cur_block_digest) = recipient_digest .last_mut() .filter(|(block_no, _)| *block_no == now) @@ -1115,7 +1113,7 @@ impl Pallet { } else { recipient_digest.push((now, vec![sender])); } - ::HrmpChannelDigests::insert(&channel_id.recipient, recipient_digest); + HrmpChannelDigests::::insert(&channel_id.recipient, recipient_digest); weight += T::DbWeight::get().reads_writes(2, 2); } @@ -1154,17 +1152,16 @@ impl Pallet { let channel_id = HrmpChannelId { sender: origin, recipient }; ensure!( - ::HrmpOpenChannelRequests::get(&channel_id).is_none(), + HrmpOpenChannelRequests::::get(&channel_id).is_none(), Error::::OpenHrmpChannelAlreadyRequested, ); ensure!( - ::HrmpChannels::get(&channel_id).is_none(), + HrmpChannels::::get(&channel_id).is_none(), Error::::OpenHrmpChannelAlreadyExists, ); - let egress_cnt = - ::HrmpEgressChannelsIndex::decode_len(&origin).unwrap_or(0) as u32; - let open_req_cnt = ::HrmpOpenChannelRequestCount::get(&origin); + let egress_cnt = HrmpEgressChannelsIndex::::decode_len(&origin).unwrap_or(0) as u32; + let open_req_cnt = HrmpOpenChannelRequestCount::::get(&origin); let channel_num_limit = if >::is_parathread(origin) { config.hrmp_max_parathread_outbound_channels } else { @@ -1182,8 +1179,8 @@ impl Pallet { // mutating storage directly now -- shall not bail henceforth. - ::HrmpOpenChannelRequestCount::insert(&origin, open_req_cnt + 1); - ::HrmpOpenChannelRequests::insert( + HrmpOpenChannelRequestCount::::insert(&origin, open_req_cnt + 1); + HrmpOpenChannelRequests::::insert( &channel_id, HrmpOpenChannelRequest { confirmed: false, @@ -1194,7 +1191,7 @@ impl Pallet { max_total_size: config.hrmp_channel_max_total_size, }, ); - ::HrmpOpenChannelRequestsList::append(channel_id); + HrmpOpenChannelRequestsList::::append(channel_id); let notification_bytes = { use parity_scale_codec::Encode as _; @@ -1228,7 +1225,7 @@ impl Pallet { /// intended for calling directly from other pallets rather than dispatched. pub fn accept_open_channel(origin: ParaId, sender: ParaId) -> DispatchResult { let channel_id = HrmpChannelId { sender, recipient: origin }; - let mut channel_req = ::HrmpOpenChannelRequests::get(&channel_id) + let mut channel_req = HrmpOpenChannelRequests::::get(&channel_id) .ok_or(Error::::AcceptHrmpChannelDoesntExist)?; ensure!(!channel_req.confirmed, Error::::AcceptHrmpChannelAlreadyConfirmed); @@ -1240,9 +1237,8 @@ impl Pallet { } else { config.hrmp_max_parachain_inbound_channels }; - let ingress_cnt = - ::HrmpIngressChannelsIndex::decode_len(&origin).unwrap_or(0) as u32; - let accepted_cnt = ::HrmpAcceptedChannelRequestCount::get(&origin); + let ingress_cnt = HrmpIngressChannelsIndex::::decode_len(&origin).unwrap_or(0) as u32; + let accepted_cnt = HrmpAcceptedChannelRequestCount::::get(&origin); ensure!( ingress_cnt + accepted_cnt < channel_num_limit, Error::::AcceptHrmpChannelLimitExceeded, @@ -1256,8 +1252,8 @@ impl Pallet { // persist the updated open channel request and then increment the number of accepted // channels. channel_req.confirmed = true; - ::HrmpOpenChannelRequests::insert(&channel_id, channel_req); - ::HrmpAcceptedChannelRequestCount::insert(&origin, accepted_cnt + 1); + HrmpOpenChannelRequests::::insert(&channel_id, channel_req); + HrmpAcceptedChannelRequestCount::::insert(&origin, accepted_cnt + 1); let notification_bytes = { use parity_scale_codec::Encode as _; @@ -1284,13 +1280,13 @@ impl Pallet { // check if the origin is allowed to close the channel. ensure!(channel_id.is_participant(origin), Error::::CancelHrmpOpenChannelUnauthorized); - let open_channel_req = ::HrmpOpenChannelRequests::get(&channel_id) + let open_channel_req = HrmpOpenChannelRequests::::get(&channel_id) .ok_or(Error::::OpenHrmpChannelDoesntExist)?; ensure!(!open_channel_req.confirmed, Error::::OpenHrmpChannelAlreadyConfirmed); // Remove the request by the channel id and sync the accompanying list with the set. - ::HrmpOpenChannelRequests::remove(&channel_id); - ::HrmpOpenChannelRequestsList::mutate(|open_req_channels| { + HrmpOpenChannelRequests::::remove(&channel_id); + HrmpOpenChannelRequestsList::::mutate(|open_req_channels| { if let Some(pos) = open_req_channels.iter().position(|x| x == &channel_id) { open_req_channels.swap_remove(pos); } @@ -1316,18 +1312,18 @@ impl Pallet { // check if the channel requested to close does exist. ensure!( - ::HrmpChannels::get(&channel_id).is_some(), + HrmpChannels::::get(&channel_id).is_some(), Error::::CloseHrmpChannelDoesntExist, ); // check that there is no outstanding close request for this channel ensure!( - ::HrmpCloseChannelRequests::get(&channel_id).is_none(), + HrmpCloseChannelRequests::::get(&channel_id).is_none(), Error::::CloseHrmpChannelAlreadyUnderway, ); - ::HrmpCloseChannelRequests::insert(&channel_id, ()); - ::HrmpCloseChannelRequestsList::append(channel_id.clone()); + HrmpCloseChannelRequests::::insert(&channel_id, ()); + HrmpCloseChannelRequestsList::::append(channel_id.clone()); let config = >::config(); let notification_bytes = { @@ -1363,13 +1359,12 @@ impl Pallet { /// multiple entries with the same sender. #[cfg(test)] fn hrmp_mqc_heads(recipient: ParaId) -> Vec<(ParaId, Hash)> { - let sender_set = ::HrmpIngressChannelsIndex::get(&recipient); + let sender_set = HrmpIngressChannelsIndex::::get(&recipient); // The ingress channels vector is sorted, thus `mqc_heads` is sorted as well. let mut mqc_heads = Vec::with_capacity(sender_set.len()); for sender in sender_set { - let channel_metadata = - ::HrmpChannels::get(&HrmpChannelId { sender, recipient }); + let channel_metadata = HrmpChannels::::get(&HrmpChannelId { sender, recipient }); let mqc_head = channel_metadata .and_then(|metadata| metadata.mqc_head) .unwrap_or(Hash::default()); @@ -1384,12 +1379,12 @@ impl Pallet { pub(crate) fn inbound_hrmp_channels_contents( recipient: ParaId, ) -> BTreeMap>> { - let sender_set = ::HrmpIngressChannelsIndex::get(&recipient); + let sender_set = HrmpIngressChannelsIndex::::get(&recipient); let mut inbound_hrmp_channels_contents = BTreeMap::new(); for sender in sender_set { let channel_contents = - ::HrmpChannelContents::get(&HrmpChannelId { sender, recipient }); + HrmpChannelContents::::get(&HrmpChannelId { sender, recipient }); inbound_hrmp_channels_contents.insert(sender, channel_contents); } @@ -1401,7 +1396,7 @@ impl Pallet { /// Decreases the open channel request count for the given sender. If the value reaches zero /// it is removed completely. fn decrease_open_channel_request_count(sender: ParaId) { - ::HrmpOpenChannelRequestCount::mutate_exists(&sender, |opt_rc| { + HrmpOpenChannelRequestCount::::mutate_exists(&sender, |opt_rc| { *opt_rc = opt_rc.and_then(|rc| match rc.saturating_sub(1) { 0 => None, n => Some(n), @@ -1412,7 +1407,7 @@ impl Pallet { /// Decreases the accepted channel request count for the given sender. If the value reaches /// zero it is removed completely. fn decrease_accepted_channel_request_count(recipient: ParaId) { - ::HrmpAcceptedChannelRequestCount::mutate_exists(&recipient, |opt_rc| { + HrmpAcceptedChannelRequestCount::::mutate_exists(&recipient, |opt_rc| { *opt_rc = opt_rc.and_then(|rc| match rc.saturating_sub(1) { 0 => None, n => Some(n), @@ -1438,12 +1433,8 @@ impl Pallet { }; assert_eq!( - ::HrmpOpenChannelRequests::iter() - .map(|(k, _)| k) - .collect::>(), - ::HrmpOpenChannelRequestsList::get() - .into_iter() - .collect::>(), + HrmpOpenChannelRequests::::iter().map(|(k, _)| k).collect::>(), + HrmpOpenChannelRequestsList::::get().into_iter().collect::>(), ); // verify that the set of keys in `HrmpOpenChannelRequestCount` corresponds to the set @@ -1451,17 +1442,15 @@ impl Pallet { // // having ensured that, we can go ahead and go over all counts and verify that they match. assert_eq!( - ::HrmpOpenChannelRequestCount::iter() + HrmpOpenChannelRequestCount::::iter() .map(|(k, _)| k) .collect::>(), - ::HrmpOpenChannelRequests::iter() + HrmpOpenChannelRequests::::iter() .map(|(k, _)| k.sender) .collect::>(), ); - for (open_channel_initiator, expected_num) in - ::HrmpOpenChannelRequestCount::iter() - { - let actual_num = ::HrmpOpenChannelRequests::iter() + for (open_channel_initiator, expected_num) in HrmpOpenChannelRequestCount::::iter() { + let actual_num = HrmpOpenChannelRequests::::iter() .filter(|(ch, _)| ch.sender == open_channel_initiator) .count() as u32; assert_eq!(expected_num, actual_num); @@ -1470,43 +1459,37 @@ impl Pallet { // The same as above, but for accepted channel request count. Note that we are interested // only in confirmed open requests. assert_eq!( - ::HrmpAcceptedChannelRequestCount::iter() + HrmpAcceptedChannelRequestCount::::iter() .map(|(k, _)| k) .collect::>(), - ::HrmpOpenChannelRequests::iter() + HrmpOpenChannelRequests::::iter() .filter(|(_, v)| v.confirmed) .map(|(k, _)| k.recipient) .collect::>(), ); - for (channel_recipient, expected_num) in - ::HrmpAcceptedChannelRequestCount::iter() - { - let actual_num = ::HrmpOpenChannelRequests::iter() + for (channel_recipient, expected_num) in HrmpAcceptedChannelRequestCount::::iter() { + let actual_num = HrmpOpenChannelRequests::::iter() .filter(|(ch, v)| ch.recipient == channel_recipient && v.confirmed) .count() as u32; assert_eq!(expected_num, actual_num); } assert_eq!( - ::HrmpCloseChannelRequests::iter() - .map(|(k, _)| k) - .collect::>(), - ::HrmpCloseChannelRequestsList::get() - .into_iter() - .collect::>(), + HrmpCloseChannelRequests::::iter().map(|(k, _)| k).collect::>(), + HrmpCloseChannelRequestsList::::get().into_iter().collect::>(), ); // A HRMP watermark can be None for an onboarded parachain. However, an offboarded parachain // cannot have an HRMP watermark: it should've been cleanup. assert_contains_only_onboarded( - ::HrmpWatermarks::iter().map(|(k, _)| k).collect::>(), + HrmpWatermarks::::iter().map(|(k, _)| k).collect::>(), "HRMP watermarks should contain only onboarded paras", ); // An entry in `HrmpChannels` indicates that the channel is open. Only open channels can // have contents. - for (non_empty_channel, contents) in ::HrmpChannelContents::iter() { - assert!(::HrmpChannels::contains_key(&non_empty_channel)); + for (non_empty_channel, contents) in HrmpChannelContents::::iter() { + assert!(HrmpChannels::::contains_key(&non_empty_channel)); // pedantic check: there should be no empty vectors in storage, those should be modeled // by a removed kv pair. @@ -1516,7 +1499,7 @@ impl Pallet { // Senders and recipients must be onboarded. Otherwise, all channels associated with them // are removed. assert_contains_only_onboarded( - ::HrmpChannels::iter() + HrmpChannels::::iter() .flat_map(|(k, _)| vec![k.sender, k.recipient]) .collect::>(), "senders and recipients in all channels should be onboarded", @@ -1541,30 +1524,30 @@ impl Pallet { // (b, z) (b, z) // // and then that we compare that to the channel list in the `HrmpChannels`. - let channel_set_derived_from_ingress = ::HrmpIngressChannelsIndex::iter() + let channel_set_derived_from_ingress = HrmpIngressChannelsIndex::::iter() .flat_map(|(p, v)| v.into_iter().map(|i| (i, p)).collect::>()) .collect::>(); - let channel_set_derived_from_egress = ::HrmpEgressChannelsIndex::iter() + let channel_set_derived_from_egress = HrmpEgressChannelsIndex::::iter() .flat_map(|(p, v)| v.into_iter().map(|e| (p, e)).collect::>()) .collect::>(); - let channel_set_ground_truth = ::HrmpChannels::iter() + let channel_set_ground_truth = HrmpChannels::::iter() .map(|(k, _)| (k.sender, k.recipient)) .collect::>(); assert_eq!(channel_set_derived_from_ingress, channel_set_derived_from_egress); assert_eq!(channel_set_derived_from_egress, channel_set_ground_truth); - ::HrmpIngressChannelsIndex::iter() + HrmpIngressChannelsIndex::::iter() .map(|(_, v)| v) .for_each(|v| assert_is_sorted(&v, "HrmpIngressChannelsIndex")); - ::HrmpEgressChannelsIndex::iter() + HrmpEgressChannelsIndex::::iter() .map(|(_, v)| v) .for_each(|v| assert_is_sorted(&v, "HrmpIngressChannelsIndex")); assert_contains_only_onboarded( - ::HrmpChannelDigests::iter().map(|(k, _)| k).collect::>(), + HrmpChannelDigests::::iter().map(|(k, _)| k).collect::>(), "HRMP channel digests should contain only onboarded paras", ); - for (_digest_for_para, digest) in ::HrmpChannelDigests::iter() { + for (_digest_for_para, digest) in HrmpChannelDigests::::iter() { // Assert that items are in **strictly** ascending order. The strictness also implies // there are no duplicates. assert!(digest.windows(2).all(|xs| xs[0].0 < xs[1].0)); diff --git a/runtime/parachains/src/hrmp/tests.rs b/runtime/parachains/src/hrmp/tests.rs index 3c9fedaa9dcb..33737126dbf5 100644 --- a/runtime/parachains/src/hrmp/tests.rs +++ b/runtime/parachains/src/hrmp/tests.rs @@ -150,7 +150,7 @@ fn deregister_parachain(id: ParaId) { } fn channel_exists(sender: ParaId, recipient: ParaId) -> bool { - ::HrmpChannels::get(&HrmpChannelId { sender, recipient }).is_some() + HrmpChannels::::get(&HrmpChannelId { sender, recipient }).is_some() } #[test] diff --git a/runtime/parachains/src/inclusion/mod.rs b/runtime/parachains/src/inclusion/mod.rs index da63abe3a433..d73dac903128 100644 --- a/runtime/parachains/src/inclusion/mod.rs +++ b/runtime/parachains/src/inclusion/mod.rs @@ -184,7 +184,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/runtime/parachains/src/initializer.rs b/runtime/parachains/src/initializer.rs index 60b95cf0db9c..8f59b687d97f 100644 --- a/runtime/parachains/src/initializer.rs +++ b/runtime/parachains/src/initializer.rs @@ -99,7 +99,6 @@ pub mod pallet { use frame_system::pallet_prelude::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/runtime/parachains/src/initializer/tests.rs b/runtime/parachains/src/initializer/tests.rs index c9522330a4cd..9b5b38446e54 100644 --- a/runtime/parachains/src/initializer/tests.rs +++ b/runtime/parachains/src/initializer/tests.rs @@ -17,6 +17,7 @@ use super::*; use crate::mock::{ new_test_ext, Configuration, Dmp, Initializer, MockGenesisConfig, Paras, SessionInfo, System, + Test, }; use primitives::{HeadData, Id as ParaId}; use test_helpers::dummy_validation_code; @@ -32,7 +33,7 @@ fn session_0_is_instantly_applied() { new_test_ext(Default::default()).execute_with(|| { Initializer::on_new_session(false, 0, Vec::new().into_iter(), Some(Vec::new().into_iter())); - let v = ::BufferedSessionChanges::get(); + let v = BufferedSessionChanges::::get(); assert!(v.is_empty()); assert_eq!(SessionInfo::earliest_stored_session(), 0); @@ -48,7 +49,7 @@ fn session_change_before_initialize_is_still_buffered_after() { let now = System::block_number(); Initializer::on_initialize(now); - let v = ::BufferedSessionChanges::get(); + let v = BufferedSessionChanges::::get(); assert_eq!(v.len(), 1); }); } @@ -61,7 +62,7 @@ fn session_change_applied_on_finalize() { Initializer::on_finalize(1); - assert!(::BufferedSessionChanges::get().is_empty()); + assert!(BufferedSessionChanges::::get().is_empty()); }); } @@ -70,7 +71,7 @@ fn sets_flag_on_initialize() { new_test_ext(Default::default()).execute_with(|| { Initializer::on_initialize(1); - assert!(::HasInitialized::get().is_some()); + assert!(HasInitialized::::get().is_some()); }) } @@ -80,7 +81,7 @@ fn clears_flag_on_finalize() { Initializer::on_initialize(1); Initializer::on_finalize(1); - assert!(::HasInitialized::get().is_none()); + assert!(HasInitialized::::get().is_none()); }) } diff --git a/runtime/parachains/src/origin.rs b/runtime/parachains/src/origin.rs index aa8096982569..cbb662c6eef3 100644 --- a/runtime/parachains/src/origin.rs +++ b/runtime/parachains/src/origin.rs @@ -46,7 +46,6 @@ pub mod pallet { use frame_support::pallet_prelude::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); #[pallet::config] diff --git a/runtime/parachains/src/paras/benchmarking.rs b/runtime/parachains/src/paras/benchmarking.rs index e1ecd98ab4d0..0d961c94bfff 100644 --- a/runtime/parachains/src/paras/benchmarking.rs +++ b/runtime/parachains/src/paras/benchmarking.rs @@ -48,7 +48,7 @@ fn generate_disordered_pruning() { needs_pruning.push((id, block_number)); } - as Store>::PastCodePruning::put(needs_pruning); + PastCodePruning::::put(needs_pruning); } pub(crate) fn generate_disordered_upgrades() { @@ -62,8 +62,8 @@ pub(crate) fn generate_disordered_upgrades() { cooldowns.push((id, block_number)); } - as Store>::UpcomingUpgrades::put(upgrades); - as Store>::UpgradeCooldowns::put(cooldowns); + UpcomingUpgrades::::put(upgrades); + UpgradeCooldowns::::put(cooldowns); } fn generate_disordered_actions_queue() { @@ -75,7 +75,7 @@ fn generate_disordered_actions_queue() { queue.push(id); } - as Store>::ActionsQueue::mutate(next_session, |v| { + ActionsQueue::::mutate(next_session, |v| { *v = queue; }); } @@ -85,7 +85,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); - as Store>::CurrentCodeHash::insert(¶_id, new_code.hash()); + CurrentCodeHash::::insert(¶_id, new_code.hash()); generate_disordered_pruning::(); }: _(RawOrigin::Root, para_id, new_code) verify { @@ -114,7 +114,7 @@ benchmarks! { let para_id = ParaId::from(1000); let new_head = HeadData(vec![0; s as usize]); let old_code_hash = ValidationCode(vec![0]).hash(); - as Store>::CurrentCodeHash::insert(¶_id, old_code_hash); + CurrentCodeHash::::insert(¶_id, old_code_hash); // 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()); diff --git a/runtime/parachains/src/paras/mod.rs b/runtime/parachains/src/paras/mod.rs index 7103b05152d1..420ed3e6409e 100644 --- a/runtime/parachains/src/paras/mod.rs +++ b/runtime/parachains/src/paras/mod.rs @@ -533,7 +533,6 @@ pub mod pallet { }; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); @@ -799,10 +798,10 @@ pub mod pallet { new_code: ValidationCode, ) -> DispatchResult { ensure_root(origin)?; - let maybe_prior_code_hash = ::CurrentCodeHash::get(¶); + let maybe_prior_code_hash = CurrentCodeHash::::get(¶); let new_code_hash = new_code.hash(); Self::increase_code_ref(&new_code_hash, &new_code); - ::CurrentCodeHash::insert(¶, new_code_hash); + CurrentCodeHash::::insert(¶, new_code_hash); let now = frame_system::Pallet::::block_number(); if let Some(prior_code_hash) = maybe_prior_code_hash { @@ -901,7 +900,7 @@ pub mod pallet { ensure_root(origin)?; let code_hash = validation_code.hash(); - if let Some(vote) = ::PvfActiveVoteMap::get(&code_hash) { + if let Some(vote) = PvfActiveVoteMap::::get(&code_hash) { // Remove the existing vote. PvfActiveVoteMap::::remove(&code_hash); PvfActiveVoteList::::mutate(|l| { @@ -921,7 +920,7 @@ pub mod pallet { return Ok(()) } - if ::CodeByHash::contains_key(&code_hash) { + if CodeByHash::::contains_key(&code_hash) { // There is no vote, but the code exists. Nothing to do here. return Ok(()) } @@ -931,7 +930,7 @@ pub mod pallet { // // NOTE That we do not use `increase_code_ref` here, because the code is not yet used // by any parachain. - ::CodeByHash::insert(code_hash, &validation_code); + CodeByHash::::insert(code_hash, &validation_code); Ok(()) } @@ -948,8 +947,8 @@ pub mod pallet { validation_code_hash: ValidationCodeHash, ) -> DispatchResult { ensure_root(origin)?; - if ::CodeByHashRefs::get(&validation_code_hash) == 0 { - ::CodeByHash::remove(&validation_code_hash); + if CodeByHashRefs::::get(&validation_code_hash) == 0 { + CodeByHash::::remove(&validation_code_hash); } Ok(()) } @@ -1151,7 +1150,7 @@ impl Pallet { /// Set the current head of a parachain. pub(crate) fn set_current_head(para: ParaId, new_head: HeadData) { - ::Heads::insert(¶, new_head); + Heads::::insert(¶, new_head); Self::deposit_event(Event::CurrentHeadUpdated(para)); } @@ -1212,7 +1211,7 @@ impl Pallet { None | Some(ParaLifecycle::Parathread) | Some(ParaLifecycle::Parachain) => { /* Nothing to do... */ }, Some(ParaLifecycle::Onboarding) => { - if let Some(genesis_data) = ::UpcomingParasGenesis::take(¶) { + if let Some(genesis_data) = UpcomingParasGenesis::::take(¶) { Self::initialize_para_now(&mut parachains, para, &genesis_data); } }, @@ -1231,17 +1230,17 @@ impl Pallet { Some(ParaLifecycle::OffboardingParathread) => { parachains.remove(para); - ::Heads::remove(¶); - ::FutureCodeUpgrades::remove(¶); - ::UpgradeGoAheadSignal::remove(¶); - ::UpgradeRestrictionSignal::remove(¶); + Heads::::remove(¶); + FutureCodeUpgrades::::remove(¶); + UpgradeGoAheadSignal::::remove(¶); + UpgradeRestrictionSignal::::remove(¶); ParaLifecycles::::remove(¶); - let removed_future_code_hash = ::FutureCodeHash::take(¶); + let removed_future_code_hash = FutureCodeHash::::take(¶); if let Some(removed_future_code_hash) = removed_future_code_hash { Self::decrease_code_ref(&removed_future_code_hash); } - let removed_code_hash = ::CurrentCodeHash::take(¶); + let removed_code_hash = CurrentCodeHash::::take(¶); if let Some(removed_code_hash) = removed_code_hash { Self::note_past_code(para, now, now, removed_code_hash); } @@ -1258,13 +1257,13 @@ impl Pallet { // // NOTE both of those iterates over the list and the outgoing. We do not expect either // of these to be large. Thus should be fine. - ::UpcomingUpgrades::mutate(|upcoming_upgrades| { + UpcomingUpgrades::::mutate(|upcoming_upgrades| { *upcoming_upgrades = mem::take(upcoming_upgrades) .into_iter() .filter(|&(ref para, _)| !outgoing.contains(para)) .collect(); }); - ::UpgradeCooldowns::mutate(|upgrade_cooldowns| { + UpgradeCooldowns::::mutate(|upgrade_cooldowns| { *upgrade_cooldowns = mem::take(upgrade_cooldowns) .into_iter() .filter(|&(ref para, _)| !outgoing.contains(para)) @@ -1290,15 +1289,15 @@ impl Pallet { now: T::BlockNumber, old_code_hash: ValidationCodeHash, ) -> Weight { - ::PastCodeMeta::mutate(&id, |past_meta| { + PastCodeMeta::::mutate(&id, |past_meta| { past_meta.note_replacement(at, now); }); - ::PastCodeHash::insert(&(id, at), old_code_hash); + PastCodeHash::::insert(&(id, at), old_code_hash); // Schedule pruning for this past-code to be removed as soon as it // exits the slashing window. - ::PastCodePruning::mutate(|pruning| { + PastCodePruning::::mutate(|pruning| { let insert_idx = pruning.binary_search_by_key(&now, |&(_, b)| b).unwrap_or_else(|idx| idx); pruning.insert(insert_idx, (id, now)); @@ -1320,8 +1319,8 @@ impl Pallet { // The height of any changes we no longer should keep around. let pruning_height = now - (code_retention_period + One::one()); - let pruning_tasks_done = ::PastCodePruning::mutate( - |pruning_tasks: &mut Vec<(_, T::BlockNumber)>| { + let pruning_tasks_done = + PastCodePruning::::mutate(|pruning_tasks: &mut Vec<(_, T::BlockNumber)>| { let (pruning_tasks_done, pruning_tasks_to_do) = { // find all past code that has just exited the pruning window. let up_to_idx = @@ -1330,10 +1329,10 @@ impl Pallet { }; for (para_id, _) in pruning_tasks_to_do { - let full_deactivate = ::PastCodeMeta::mutate(¶_id, |meta| { + let full_deactivate = PastCodeMeta::::mutate(¶_id, |meta| { for pruned_repl_at in meta.prune_up_to(pruning_height) { let removed_code_hash = - ::PastCodeHash::take(&(para_id, pruned_repl_at)); + PastCodeHash::::take(&(para_id, pruned_repl_at)); if let Some(removed_code_hash) = removed_code_hash { Self::decrease_code_ref(&removed_code_hash); @@ -1352,13 +1351,12 @@ impl Pallet { // This parachain has been removed and now the vestigial code // has been removed from the state. clean up meta as well. if full_deactivate { - ::PastCodeMeta::remove(¶_id); + PastCodeMeta::::remove(¶_id); } } pruning_tasks_done as u64 - }, - ); + }); // 1 read for the meta for each pruning task, 1 read for the config // 2 writes: updating the meta and pruning the code @@ -1373,11 +1371,11 @@ impl Pallet { fn process_scheduled_upgrade_changes(now: T::BlockNumber) -> Weight { // account weight for `UpcomingUpgrades::mutate`. let mut weight = T::DbWeight::get().reads_writes(1, 1); - let upgrades_signaled = ::UpcomingUpgrades::mutate( + let upgrades_signaled = UpcomingUpgrades::::mutate( |upcoming_upgrades: &mut Vec<(ParaId, T::BlockNumber)>| { let num = upcoming_upgrades.iter().take_while(|&(_, at)| at <= &now).count(); for (para, _) in upcoming_upgrades.drain(..num) { - ::UpgradeGoAheadSignal::insert(¶, UpgradeGoAhead::GoAhead); + UpgradeGoAheadSignal::::insert(¶, UpgradeGoAhead::GoAhead); } num }, @@ -1386,10 +1384,8 @@ impl Pallet { // account weight for `UpgradeCooldowns::get`. weight += T::DbWeight::get().reads(1); - let cooldowns_expired = ::UpgradeCooldowns::get() - .iter() - .take_while(|&(_, at)| at <= &now) - .count(); + let cooldowns_expired = + UpgradeCooldowns::::get().iter().take_while(|&(_, at)| at <= &now).count(); // reserve weight for `initializer_finalize`: // - 1 read and 1 write for `UpgradeCooldowns::mutate`. @@ -1404,13 +1400,11 @@ impl Pallet { /// /// 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)>| { - for &(para, _) in upgrade_cooldowns.iter().take_while(|&(_, at)| at <= &now) { - ::UpgradeRestrictionSignal::remove(¶); - } - }, - ); + UpgradeCooldowns::::mutate(|upgrade_cooldowns: &mut Vec<(ParaId, T::BlockNumber)>| { + for &(para, _) in upgrade_cooldowns.iter().take_while(|&(_, at)| at <= &now) { + UpgradeRestrictionSignal::::remove(¶); + } + }); } /// Goes over all PVF votes in progress, reinitializes ballots, increments ages and prunes the @@ -1539,7 +1533,7 @@ impl Pallet { weight += T::DbWeight::get().reads_writes(1, 4); FutureCodeUpgrades::::insert(&id, expected_at); - ::UpcomingUpgrades::mutate(|upcoming_upgrades| { + UpcomingUpgrades::::mutate(|upcoming_upgrades| { let insert_idx = upcoming_upgrades .binary_search_by_key(&expected_at, |&(_, b)| b) .unwrap_or_else(|idx| idx); @@ -1653,7 +1647,7 @@ impl Pallet { mem::replace(&mut genesis_data.validation_code, ValidationCode(Vec::new())); UpcomingParasGenesis::::insert(&id, genesis_data); let validation_code_hash = validation_code.hash(); - ::CurrentCodeHash::insert(&id, validation_code_hash); + CurrentCodeHash::::insert(&id, validation_code_hash); let cfg = configuration::Pallet::::config(); Self::kick_off_pvf_check( @@ -1814,7 +1808,7 @@ impl Pallet { weight += T::DbWeight::get().reads_writes(1, 1); let next_possible_upgrade_at = relay_parent_number + cfg.validation_upgrade_cooldown; - ::UpgradeCooldowns::mutate(|upgrade_cooldowns| { + UpgradeCooldowns::::mutate(|upgrade_cooldowns| { let insert_idx = upgrade_cooldowns .binary_search_by_key(&next_possible_upgrade_at, |&(_, b)| b) .unwrap_or_else(|idx| idx); @@ -1926,10 +1920,10 @@ impl Pallet { ) -> Weight { Heads::::insert(&id, new_head); - if let Some(expected_at) = ::FutureCodeUpgrades::get(&id) { + if let Some(expected_at) = FutureCodeUpgrades::::get(&id) { if expected_at <= execution_context { - ::FutureCodeUpgrades::remove(&id); - ::UpgradeGoAheadSignal::remove(&id); + FutureCodeUpgrades::::remove(&id); + UpgradeGoAheadSignal::::remove(&id); // Both should always be `Some` in this case, since a code upgrade is scheduled. let new_code_hash = if let Some(new_code_hash) = FutureCodeHash::::take(&id) { @@ -2048,10 +2042,10 @@ impl Pallet { /// Returns the weight consumed. fn increase_code_ref(code_hash: &ValidationCodeHash, code: &ValidationCode) -> Weight { let mut weight = T::DbWeight::get().reads_writes(1, 1); - ::CodeByHashRefs::mutate(code_hash, |refs| { + CodeByHashRefs::::mutate(code_hash, |refs| { if *refs == 0 { weight += T::DbWeight::get().writes(1); - ::CodeByHash::insert(code_hash, code); + CodeByHash::::insert(code_hash, code); } *refs += 1; }); @@ -2064,18 +2058,18 @@ impl Pallet { /// Returns the weight consumed. fn decrease_code_ref(code_hash: &ValidationCodeHash) -> Weight { let mut weight = T::DbWeight::get().reads(1); - let refs = ::CodeByHashRefs::get(code_hash); + let refs = CodeByHashRefs::::get(code_hash); if refs == 0 { log::error!(target: LOG_TARGET, "Code refs is already zero for {:?}", code_hash); return weight } if refs <= 1 { weight += T::DbWeight::get().writes(2); - ::CodeByHash::remove(code_hash); - ::CodeByHashRefs::remove(code_hash); + CodeByHash::::remove(code_hash); + CodeByHashRefs::::remove(code_hash); } else { weight += T::DbWeight::get().writes(1); - ::CodeByHashRefs::insert(code_hash, refs - 1); + CodeByHashRefs::::insert(code_hash, refs - 1); } weight } diff --git a/runtime/parachains/src/paras/tests.rs b/runtime/parachains/src/paras/tests.rs index 98233887b61f..89acfc9bc9b9 100644 --- a/runtime/parachains/src/paras/tests.rs +++ b/runtime/parachains/src/paras/tests.rs @@ -102,13 +102,13 @@ fn upgrade_at( } fn check_code_is_stored(validation_code: &ValidationCode) { - assert!(::CodeByHashRefs::get(validation_code.hash()) != 0); - assert!(::CodeByHash::contains_key(validation_code.hash())); + assert!(CodeByHashRefs::::get(validation_code.hash()) != 0); + assert!(CodeByHash::::contains_key(validation_code.hash())); } fn check_code_is_not_stored(validation_code: &ValidationCode) { - assert!(!::CodeByHashRefs::contains_key(validation_code.hash())); - assert!(!::CodeByHash::contains_key(validation_code.hash())); + assert!(!CodeByHashRefs::::contains_key(validation_code.hash())); + assert!(!CodeByHash::::contains_key(validation_code.hash())); } /// An utility for checking that certain events were deposited. @@ -276,32 +276,26 @@ fn para_past_code_pruning_in_initialize() { let validation_code = ValidationCode(vec![4, 5, 6]); Paras::increase_code_ref(&validation_code.hash(), &validation_code); - ::PastCodeHash::insert(&(id, at_block), &validation_code.hash()); - ::PastCodePruning::put(&vec![(id, included_block)]); + PastCodeHash::::insert(&(id, at_block), &validation_code.hash()); + PastCodePruning::::put(&vec![(id, included_block)]); { let mut code_meta = Paras::past_code_meta(&id); code_meta.note_replacement(at_block, included_block); - ::PastCodeMeta::insert(&id, &code_meta); + PastCodeMeta::::insert(&id, &code_meta); } let pruned_at: BlockNumber = included_block + code_retention_period + 1; - assert_eq!( - ::PastCodeHash::get(&(id, at_block)), - Some(validation_code.hash()) - ); + assert_eq!(PastCodeHash::::get(&(id, at_block)), Some(validation_code.hash())); check_code_is_stored(&validation_code); run_to_block(pruned_at - 1, None); - assert_eq!( - ::PastCodeHash::get(&(id, at_block)), - Some(validation_code.hash()) - ); + assert_eq!(PastCodeHash::::get(&(id, at_block)), Some(validation_code.hash())); assert_eq!(Paras::past_code_meta(&id).most_recent_change(), Some(at_block)); check_code_is_stored(&validation_code); run_to_block(pruned_at, None); - assert!(::PastCodeHash::get(&(id, at_block)).is_none()); + assert!(PastCodeHash::::get(&(id, at_block)).is_none()); assert!(Paras::past_code_meta(&id).most_recent_change().is_none()); check_code_is_not_stored(&validation_code); }); @@ -377,7 +371,7 @@ fn note_past_code_sets_up_pruning_correctly() { Paras::note_past_code(id_a, 10, 12, ValidationCode(vec![1, 2, 3]).hash()); Paras::note_past_code(id_b, 20, 23, ValidationCode(vec![4, 5, 6]).hash()); - assert_eq!(::PastCodePruning::get(), vec![(id_a, 12), (id_b, 23)]); + assert_eq!(PastCodePruning::::get(), vec![(id_a, 12), (id_b, 23)]); assert_eq!( Paras::past_code_meta(&id_a), ParaPastCodeMeta { upgrade_times: vec![upgrade_at(10, 12)], last_pruned: None } @@ -437,13 +431,10 @@ fn code_upgrade_applied_after_delay() { Paras::note_new_head(para_id, Default::default(), 1); assert!(Paras::past_code_meta(¶_id).most_recent_change().is_none()); - assert_eq!(::FutureCodeUpgrades::get(¶_id), Some(expected_at)); - assert_eq!(::FutureCodeHash::get(¶_id), Some(new_code.hash())); - assert_eq!(::UpcomingUpgrades::get(), vec![(para_id, expected_at)]); - assert_eq!( - ::UpgradeCooldowns::get(), - vec![(para_id, next_possible_upgrade_at)] - ); + assert_eq!(FutureCodeUpgrades::::get(¶_id), Some(expected_at)); + assert_eq!(FutureCodeHash::::get(¶_id), Some(new_code.hash())); + assert_eq!(UpcomingUpgrades::::get(), vec![(para_id, expected_at)]); + assert_eq!(UpgradeCooldowns::::get(), vec![(para_id, next_possible_upgrade_at)]); assert_eq!(Paras::current_code(¶_id), Some(original_code.clone())); check_code_is_stored(&original_code); check_code_is_stored(&new_code); @@ -459,12 +450,9 @@ fn code_upgrade_applied_after_delay() { Paras::note_new_head(para_id, Default::default(), expected_at - 1); assert!(Paras::past_code_meta(¶_id).most_recent_change().is_none()); - assert_eq!(::FutureCodeUpgrades::get(¶_id), Some(expected_at)); - assert_eq!(::FutureCodeHash::get(¶_id), Some(new_code.hash())); - assert_eq!( - ::UpgradeGoAheadSignal::get(¶_id), - Some(UpgradeGoAhead::GoAhead) - ); + assert_eq!(FutureCodeUpgrades::::get(¶_id), Some(expected_at)); + assert_eq!(FutureCodeHash::::get(¶_id), Some(new_code.hash())); + assert_eq!(UpgradeGoAheadSignal::::get(¶_id), Some(UpgradeGoAhead::GoAhead)); assert_eq!(Paras::current_code(¶_id), Some(original_code.clone())); check_code_is_stored(&original_code); check_code_is_stored(&new_code); @@ -479,12 +467,12 @@ fn code_upgrade_applied_after_delay() { assert_eq!(Paras::past_code_meta(¶_id).most_recent_change(), Some(expected_at)); assert_eq!( - ::PastCodeHash::get(&(para_id, expected_at)), + PastCodeHash::::get(&(para_id, expected_at)), Some(original_code.hash()), ); - assert!(::FutureCodeUpgrades::get(¶_id).is_none()); - assert!(::FutureCodeHash::get(¶_id).is_none()); - assert!(::UpgradeGoAheadSignal::get(¶_id).is_none()); + assert!(FutureCodeUpgrades::::get(¶_id).is_none()); + assert!(FutureCodeHash::::get(¶_id).is_none()); + assert!(UpgradeGoAheadSignal::::get(¶_id).is_none()); assert_eq!(Paras::current_code(¶_id), Some(new_code.clone())); check_code_is_stored(&original_code); check_code_is_stored(&new_code); @@ -538,14 +526,11 @@ fn code_upgrade_applied_after_delay_even_when_late() { Paras::note_new_head(para_id, Default::default(), 1); assert!(Paras::past_code_meta(¶_id).most_recent_change().is_none()); - assert_eq!(::FutureCodeUpgrades::get(¶_id), Some(expected_at)); - assert_eq!(::FutureCodeHash::get(¶_id), Some(new_code.hash())); - assert_eq!(::UpcomingUpgrades::get(), vec![(para_id, expected_at)]); - assert_eq!( - ::UpgradeCooldowns::get(), - vec![(para_id, next_possible_upgrade_at)] - ); - assert!(::UpgradeGoAheadSignal::get(¶_id).is_none()); + assert_eq!(FutureCodeUpgrades::::get(¶_id), Some(expected_at)); + assert_eq!(FutureCodeHash::::get(¶_id), Some(new_code.hash())); + assert_eq!(UpcomingUpgrades::::get(), vec![(para_id, expected_at)]); + assert_eq!(UpgradeCooldowns::::get(), vec![(para_id, next_possible_upgrade_at)]); + assert!(UpgradeGoAheadSignal::::get(¶_id).is_none()); assert_eq!(Paras::current_code(¶_id), Some(original_code.clone())); expected_at @@ -557,22 +542,19 @@ fn code_upgrade_applied_after_delay_even_when_late() { // the upgrade. { // The signal should be set to go-ahead until the new head is actually processed. - assert_eq!( - ::UpgradeGoAheadSignal::get(¶_id), - Some(UpgradeGoAhead::GoAhead), - ); + assert_eq!(UpgradeGoAheadSignal::::get(¶_id), Some(UpgradeGoAhead::GoAhead),); Paras::note_new_head(para_id, Default::default(), expected_at + 4); assert_eq!(Paras::past_code_meta(¶_id).most_recent_change(), Some(expected_at)); assert_eq!( - ::PastCodeHash::get(&(para_id, expected_at)), + PastCodeHash::::get(&(para_id, expected_at)), Some(original_code.hash()), ); - assert!(::FutureCodeUpgrades::get(¶_id).is_none()); - assert!(::FutureCodeHash::get(¶_id).is_none()); - assert!(::UpgradeGoAheadSignal::get(¶_id).is_none()); + assert!(FutureCodeUpgrades::::get(¶_id).is_none()); + assert!(FutureCodeHash::::get(¶_id).is_none()); + assert!(UpgradeGoAheadSignal::::get(¶_id).is_none()); assert_eq!(Paras::current_code(¶_id), Some(new_code.clone())); } }); @@ -615,11 +597,8 @@ fn submit_code_change_when_not_allowed_is_err() { run_to_block(1, None); Paras::schedule_code_upgrade(para_id, new_code.clone(), 1, &Configuration::config()); - assert_eq!( - ::FutureCodeUpgrades::get(¶_id), - Some(1 + validation_upgrade_delay) - ); - assert_eq!(::FutureCodeHash::get(¶_id), Some(new_code.hash())); + assert_eq!(FutureCodeUpgrades::::get(¶_id), Some(1 + validation_upgrade_delay)); + assert_eq!(FutureCodeHash::::get(¶_id), Some(new_code.hash())); check_code_is_stored(&new_code); // We expect that if an upgrade is signalled while there is already one pending we just @@ -628,10 +607,10 @@ fn submit_code_change_when_not_allowed_is_err() { assert!(!Paras::can_upgrade_validation_code(para_id)); Paras::schedule_code_upgrade(para_id, newer_code.clone(), 2, &Configuration::config()); assert_eq!( - ::FutureCodeUpgrades::get(¶_id), + FutureCodeUpgrades::::get(¶_id), Some(1 + validation_upgrade_delay), // did not change since the same assertion from the last time. ); - assert_eq!(::FutureCodeHash::get(¶_id), Some(new_code.hash())); + assert_eq!(FutureCodeHash::::get(¶_id), Some(new_code.hash())); check_code_is_not_stored(&newer_code); }); } @@ -685,27 +664,21 @@ fn upgrade_restriction_elapsed_doesnt_mean_can_upgrade() { Paras::schedule_code_upgrade(para_id, new_code.clone(), 0, &Configuration::config()); Paras::note_new_head(para_id, dummy_head_data(), 0); assert_eq!( - ::UpgradeRestrictionSignal::get(¶_id), + UpgradeRestrictionSignal::::get(¶_id), Some(UpgradeRestriction::Present), ); - assert_eq!( - ::FutureCodeUpgrades::get(¶_id), - Some(0 + validation_upgrade_delay) - ); + assert_eq!(FutureCodeUpgrades::::get(¶_id), Some(0 + validation_upgrade_delay)); assert!(!Paras::can_upgrade_validation_code(para_id)); run_to_block(31, None); - assert!(::UpgradeRestrictionSignal::get(¶_id).is_none()); + assert!(UpgradeRestrictionSignal::::get(¶_id).is_none()); // Note the para still cannot upgrade the validation code. assert!(!Paras::can_upgrade_validation_code(para_id)); // And scheduling another upgrade does not do anything. `expected_at` is still the same. Paras::schedule_code_upgrade(para_id, newer_code.clone(), 30, &Configuration::config()); - assert_eq!( - ::FutureCodeUpgrades::get(¶_id), - Some(0 + validation_upgrade_delay) - ); + assert_eq!(FutureCodeUpgrades::::get(¶_id), Some(0 + validation_upgrade_delay)); }); } @@ -760,8 +733,8 @@ fn full_parachain_cleanup_storage() { Paras::note_new_head(para_id, Default::default(), 1); assert!(Paras::past_code_meta(¶_id).most_recent_change().is_none()); - assert_eq!(::FutureCodeUpgrades::get(¶_id), Some(expected_at)); - assert_eq!(::FutureCodeHash::get(¶_id), Some(new_code.hash())); + assert_eq!(FutureCodeUpgrades::::get(¶_id), Some(expected_at)); + assert_eq!(FutureCodeHash::::get(¶_id), Some(new_code.hash())); assert_eq!(Paras::current_code(¶_id), Some(original_code.clone())); check_code_is_stored(&original_code); check_code_is_stored(&new_code); @@ -789,15 +762,15 @@ fn full_parachain_cleanup_storage() { // Why 7 and 8? See above, the clean up scheduled above was processed at the block 8. // The initial upgrade was enacted at the block 7. assert_eq!(Paras::past_code_meta(¶_id).most_recent_change(), Some(8)); - assert_eq!(::PastCodeHash::get(&(para_id, 8)), Some(new_code.hash())); - assert_eq!(::PastCodePruning::get(), vec![(para_id, 7), (para_id, 8)]); + assert_eq!(PastCodeHash::::get(&(para_id, 8)), Some(new_code.hash())); + assert_eq!(PastCodePruning::::get(), vec![(para_id, 7), (para_id, 8)]); check_code_is_stored(&original_code); check_code_is_stored(&new_code); // any future upgrades haven't been used to validate yet, so those // are cleaned up immediately. - assert!(::FutureCodeUpgrades::get(¶_id).is_none()); - assert!(::FutureCodeHash::get(¶_id).is_none()); + assert!(FutureCodeUpgrades::::get(¶_id).is_none()); + assert!(FutureCodeHash::::get(¶_id).is_none()); assert!(Paras::current_code(¶_id).is_none()); // run to do the final cleanup @@ -806,9 +779,9 @@ fn full_parachain_cleanup_storage() { // now the final cleanup: last past code cleaned up, and this triggers meta cleanup. assert_eq!(Paras::past_code_meta(¶_id), Default::default()); - assert!(::PastCodeHash::get(&(para_id, 7)).is_none()); - assert!(::PastCodeHash::get(&(para_id, 8)).is_none()); - assert!(::PastCodePruning::get().is_empty()); + assert!(PastCodeHash::::get(&(para_id, 7)).is_none()); + assert!(PastCodeHash::::get(&(para_id, 8)).is_none()); + assert!(PastCodePruning::::get().is_empty()); check_code_is_not_stored(&original_code); check_code_is_not_stored(&new_code); }); @@ -948,34 +921,34 @@ fn para_incoming_at_session() { }) .for_each(sign_and_include_pvf_check_statement); - assert_eq!(::ActionsQueue::get(Paras::scheduled_session()), vec![c, b, a],); + assert_eq!(ActionsQueue::::get(Paras::scheduled_session()), vec![c, b, a],); // Lifecycle is tracked correctly - assert_eq!(::ParaLifecycles::get(&a), Some(ParaLifecycle::Onboarding)); - assert_eq!(::ParaLifecycles::get(&b), Some(ParaLifecycle::Onboarding)); - assert_eq!(::ParaLifecycles::get(&c), Some(ParaLifecycle::Onboarding)); + assert_eq!(ParaLifecycles::::get(&a), Some(ParaLifecycle::Onboarding)); + assert_eq!(ParaLifecycles::::get(&b), Some(ParaLifecycle::Onboarding)); + assert_eq!(ParaLifecycles::::get(&c), Some(ParaLifecycle::Onboarding)); // run to block without session change. run_to_block(2, None); assert_eq!(Paras::parachains(), Vec::new()); - assert_eq!(::ActionsQueue::get(Paras::scheduled_session()), vec![c, b, a],); + assert_eq!(ActionsQueue::::get(Paras::scheduled_session()), vec![c, b, a],); // Lifecycle is tracked correctly - assert_eq!(::ParaLifecycles::get(&a), Some(ParaLifecycle::Onboarding)); - assert_eq!(::ParaLifecycles::get(&b), Some(ParaLifecycle::Onboarding)); - assert_eq!(::ParaLifecycles::get(&c), Some(ParaLifecycle::Onboarding)); + assert_eq!(ParaLifecycles::::get(&a), Some(ParaLifecycle::Onboarding)); + assert_eq!(ParaLifecycles::::get(&b), Some(ParaLifecycle::Onboarding)); + assert_eq!(ParaLifecycles::::get(&c), Some(ParaLifecycle::Onboarding)); // Two sessions pass, so action queue is triggered run_to_block(4, Some(vec![3, 4])); assert_eq!(Paras::parachains(), vec![c, b]); - assert_eq!(::ActionsQueue::get(Paras::scheduled_session()), Vec::new()); + assert_eq!(ActionsQueue::::get(Paras::scheduled_session()), Vec::new()); // Lifecycle is tracked correctly - assert_eq!(::ParaLifecycles::get(&a), Some(ParaLifecycle::Parathread)); - assert_eq!(::ParaLifecycles::get(&b), Some(ParaLifecycle::Parachain)); - assert_eq!(::ParaLifecycles::get(&c), Some(ParaLifecycle::Parachain)); + assert_eq!(ParaLifecycles::::get(&a), Some(ParaLifecycle::Parathread)); + assert_eq!(ParaLifecycles::::get(&b), Some(ParaLifecycle::Parachain)); + assert_eq!(ParaLifecycles::::get(&c), Some(ParaLifecycle::Parachain)); assert_eq!(Paras::current_code(&a), Some(vec![2].into())); assert_eq!(Paras::current_code(&b), Some(vec![1].into())); @@ -1054,18 +1027,18 @@ fn code_ref_is_cleaned_correctly() { Paras::increase_code_ref(&code.hash(), &code); Paras::increase_code_ref(&code.hash(), &code); - assert!(::CodeByHash::contains_key(code.hash())); - assert_eq!(::CodeByHashRefs::get(code.hash()), 2); + assert!(CodeByHash::::contains_key(code.hash())); + assert_eq!(CodeByHashRefs::::get(code.hash()), 2); Paras::decrease_code_ref(&code.hash()); - assert!(::CodeByHash::contains_key(code.hash())); - assert_eq!(::CodeByHashRefs::get(code.hash()), 1); + assert!(CodeByHash::::contains_key(code.hash())); + assert_eq!(CodeByHashRefs::::get(code.hash()), 1); Paras::decrease_code_ref(&code.hash()); - assert!(!::CodeByHash::contains_key(code.hash())); - assert!(!::CodeByHashRefs::contains_key(code.hash())); + assert!(!CodeByHash::::contains_key(code.hash())); + assert!(!CodeByHashRefs::::contains_key(code.hash())); }); } @@ -1140,11 +1113,11 @@ fn pvf_check_coalescing_onboarding_and_upgrade() { .for_each(sign_and_include_pvf_check_statement); // Check that `b` actually onboards. - assert_eq!(::ActionsQueue::get(EXPECTED_SESSION + 2), vec![b]); + assert_eq!(ActionsQueue::::get(EXPECTED_SESSION + 2), vec![b]); // Check that the upgrade got scheduled. assert_eq!( - ::FutureCodeUpgrades::get(&a), + FutureCodeUpgrades::::get(&a), Some(RELAY_PARENT + validation_upgrade_delay), ); @@ -1190,7 +1163,7 @@ fn pvf_check_onboarding_reject_on_expiry() { // Make sure that we kicked off the PVF vote for this validation code and that the // validation code is stored. - assert!(::PvfActiveVoteMap::get(&validation_code.hash()).is_some()); + assert!(PvfActiveVoteMap::::get(&validation_code.hash()).is_some()); check_code_is_stored(&validation_code); // Skip 2 sessions (i.e. `pvf_voting_ttl`) verifying that the code is still stored in @@ -1204,7 +1177,7 @@ fn pvf_check_onboarding_reject_on_expiry() { // Verify that the PVF is no longer stored and there is no active PVF vote. check_code_is_not_stored(&validation_code); - assert!(::PvfActiveVoteMap::get(&validation_code.hash()).is_none()); + assert!(PvfActiveVoteMap::::get(&validation_code.hash()).is_none()); assert!(Paras::pvfs_require_precheck().is_empty()); // Verify that at this point we can again try to initialize the same para. @@ -1271,9 +1244,9 @@ fn pvf_check_upgrade_reject() { // Verify that the new code is discarded. check_code_is_not_stored(&new_code); - assert!(::PvfActiveVoteMap::get(&new_code.hash()).is_none()); + assert!(PvfActiveVoteMap::::get(&new_code.hash()).is_none()); assert!(Paras::pvfs_require_precheck().is_empty()); - assert!(::FutureCodeHash::get(&a).is_none()); + assert!(FutureCodeHash::::get(&a).is_none()); // Verify that the required events were emitted. EventValidator::new().started(&new_code, a).rejected(&new_code, a).check(); @@ -1516,7 +1489,7 @@ fn add_trusted_validation_code_inserts_with_no_users() { RuntimeOrigin::root(), validation_code.clone() )); - assert_eq!(::CodeByHashRefs::get(&validation_code.hash()), 0,); + assert_eq!(CodeByHashRefs::::get(&validation_code.hash()), 0,); }); } @@ -1554,8 +1527,8 @@ fn poke_unused_validation_code_removes_code_cleanly() { validation_code.hash() )); - assert_eq!(::CodeByHashRefs::get(&validation_code.hash()), 0); - assert!(!::CodeByHash::contains_key(&validation_code.hash())); + assert_eq!(CodeByHashRefs::::get(&validation_code.hash()), 0); + assert!(!CodeByHash::::contains_key(&validation_code.hash())); }); } @@ -1598,15 +1571,15 @@ fn increase_code_ref_doesnt_have_allergy_on_add_trusted_validation_code() { assert_ok!(Paras::add_trusted_validation_code(RuntimeOrigin::root(), code.clone())); Paras::increase_code_ref(&code.hash(), &code); Paras::increase_code_ref(&code.hash(), &code); - assert!(::CodeByHash::contains_key(code.hash())); - assert_eq!(::CodeByHashRefs::get(code.hash()), 2); + assert!(CodeByHash::::contains_key(code.hash())); + assert_eq!(CodeByHashRefs::::get(code.hash()), 2); }); new_test_ext(Default::default()).execute_with(|| { assert_ok!(Paras::add_trusted_validation_code(RuntimeOrigin::root(), code.clone())); Paras::decrease_code_ref(&code.hash()); - assert!(::CodeByHash::contains_key(code.hash())); - assert_eq!(::CodeByHashRefs::get(code.hash()), 0); + assert!(CodeByHash::::contains_key(code.hash())); + assert_eq!(CodeByHashRefs::::get(code.hash()), 0); }); } @@ -1643,10 +1616,7 @@ fn add_trusted_validation_code_insta_approval() { // Verify that the code upgrade has `expected_at` set to `26`. This is the behavior // equal to that of `pvf_checking_enabled: false`. - assert_eq!( - ::FutureCodeUpgrades::get(¶_id), - Some(1 + validation_upgrade_delay) - ); + assert_eq!(FutureCodeUpgrades::::get(¶_id), Some(1 + validation_upgrade_delay)); // Verify that the required events were emitted. EventValidator::new() @@ -1685,16 +1655,16 @@ fn add_trusted_validation_code_enacts_existing_pvf_vote() { // No upgrade should be scheduled at this point. PVF pre-checking vote should run for // that PVF. - assert!(::FutureCodeUpgrades::get(¶_id).is_none()); - assert!(::PvfActiveVoteMap::contains_key(&validation_code.hash())); + assert!(FutureCodeUpgrades::::get(¶_id).is_none()); + assert!(PvfActiveVoteMap::::contains_key(&validation_code.hash())); // Then we add a trusted validation code. That should conclude the vote. assert_ok!(Paras::add_trusted_validation_code( RuntimeOrigin::root(), validation_code.clone() )); - assert!(::FutureCodeUpgrades::get(¶_id).is_some()); - assert!(!::PvfActiveVoteMap::contains_key(&validation_code.hash())); + assert!(FutureCodeUpgrades::::get(¶_id).is_some()); + assert!(!PvfActiveVoteMap::::contains_key(&validation_code.hash())); }); } @@ -1706,7 +1676,7 @@ fn verify_upgrade_go_ahead_signal_is_externally_accessible() { new_test_ext(Default::default()).execute_with(|| { assert!(sp_io::storage::get(&well_known_keys::upgrade_go_ahead_signal(a)).is_none()); - ::UpgradeGoAheadSignal::insert(&a, UpgradeGoAhead::GoAhead); + UpgradeGoAheadSignal::::insert(&a, UpgradeGoAhead::GoAhead); assert_eq!( sp_io::storage::get(&well_known_keys::upgrade_go_ahead_signal(a)).unwrap(), vec![1u8], @@ -1722,7 +1692,7 @@ fn verify_upgrade_restriction_signal_is_externally_accessible() { new_test_ext(Default::default()).execute_with(|| { assert!(sp_io::storage::get(&well_known_keys::upgrade_restriction_signal(a)).is_none()); - ::UpgradeRestrictionSignal::insert(&a, UpgradeRestriction::Present); + UpgradeRestrictionSignal::::insert(&a, UpgradeRestriction::Present); assert_eq!( sp_io::storage::get(&well_known_keys::upgrade_restriction_signal(a)).unwrap(), vec![0], @@ -1783,7 +1753,7 @@ fn parachains_cache_is_set() { drop(parachains_cache); // In order after addition - assert_eq!(::Parachains::get(), vec![a]); + assert_eq!(Parachains::::get(), vec![a]); let mut parachains_cache: ParachainsCache = ParachainsCache::new(); @@ -1795,14 +1765,14 @@ fn parachains_cache_is_set() { drop(parachains_cache); // In order after removal - assert_eq!(::Parachains::get(), vec![]); + assert_eq!(Parachains::::get(), vec![]); let mut parachains_cache: ParachainsCache = ParachainsCache::new(); // Remove nonexisting element parachains_cache.remove(a); assert_storage_noop!(drop(parachains_cache)); - assert_eq!(::Parachains::get(), vec![]); + assert_eq!(Parachains::::get(), vec![]); }); } @@ -1826,7 +1796,7 @@ fn parachains_cache_preserves_order() { drop(parachains_cache); // In order after addition - assert_eq!(::Parachains::get(), vec![a, b, c, d]); + assert_eq!(Parachains::::get(), vec![a, b, c, d]); let mut parachains_cache: ParachainsCache = ParachainsCache::new(); @@ -1838,6 +1808,6 @@ fn parachains_cache_preserves_order() { drop(parachains_cache); // In order after removal - assert_eq!(::Parachains::get(), vec![a, c]); + assert_eq!(Parachains::::get(), vec![a, c]); }); } diff --git a/runtime/parachains/src/paras_inherent/mod.rs b/runtime/parachains/src/paras_inherent/mod.rs index ee6666b0060b..db9caca49d1b 100644 --- a/runtime/parachains/src/paras_inherent/mod.rs +++ b/runtime/parachains/src/paras_inherent/mod.rs @@ -104,7 +104,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/runtime/parachains/src/scheduler.rs b/runtime/parachains/src/scheduler.rs index 3c671b9e86e3..58509350a3a6 100644 --- a/runtime/parachains/src/scheduler.rs +++ b/runtime/parachains/src/scheduler.rs @@ -158,7 +158,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/runtime/parachains/src/scheduler/tests.rs b/runtime/parachains/src/scheduler/tests.rs index 1d679eca1b39..76bdc563d827 100644 --- a/runtime/parachains/src/scheduler/tests.rs +++ b/runtime/parachains/src/scheduler/tests.rs @@ -865,7 +865,7 @@ fn schedule_rotates_groups() { _ => None, }); - let session_start_block = ::SessionStartBlock::get(); + let session_start_block = SessionStartBlock::::get(); assert_eq!(session_start_block, 1); Scheduler::add_parathread_claim(ParathreadClaim(thread_a, collator.clone())); diff --git a/runtime/parachains/src/session_info.rs b/runtime/parachains/src/session_info.rs index 1105bc2e5023..11d430d1ef72 100644 --- a/runtime/parachains/src/session_info.rs +++ b/runtime/parachains/src/session_info.rs @@ -63,7 +63,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::storage_version(migration::STORAGE_VERSION)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/runtime/parachains/src/shared.rs b/runtime/parachains/src/shared.rs index 70e23644d232..3cc59c32878d 100644 --- a/runtime/parachains/src/shared.rs +++ b/runtime/parachains/src/shared.rs @@ -43,7 +43,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/runtime/parachains/src/ump.rs b/runtime/parachains/src/ump.rs index 992392c8b500..0a6fc06db9b4 100644 --- a/runtime/parachains/src/ump.rs +++ b/runtime/parachains/src/ump.rs @@ -215,7 +215,6 @@ pub mod pallet { use super::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] #[pallet::storage_version(migration::STORAGE_VERSION)] pub struct Pallet(_); @@ -402,22 +401,20 @@ impl Pallet { /// Remove all relevant storage items for an outgoing parachain. pub(crate) fn clean_ump_after_outgoing(outgoing_para: &ParaId) -> Weight { - ::RelayDispatchQueueSize::remove(outgoing_para); - ::RelayDispatchQueues::remove(outgoing_para); + RelayDispatchQueueSize::::remove(outgoing_para); + RelayDispatchQueues::::remove(outgoing_para); // Remove the outgoing para from the `NeedsDispatch` list and from // `NextDispatchRoundStartWith`. // // That's needed for maintaining invariant that `NextDispatchRoundStartWith` points to an // existing item in `NeedsDispatch`. - ::NeedsDispatch::mutate(|v| { + NeedsDispatch::::mutate(|v| { if let Ok(i) = v.binary_search(outgoing_para) { v.remove(i); } }); - ::NextDispatchRoundStartWith::mutate(|v| { - *v = v.filter(|p| p == outgoing_para) - }); + NextDispatchRoundStartWith::::mutate(|v| *v = v.filter(|p| p == outgoing_para)); ::WeightInfo::clean_ump_after_outgoing() } @@ -436,8 +433,7 @@ impl Pallet { }) } - let (mut para_queue_count, mut para_queue_size) = - ::RelayDispatchQueueSize::get(¶); + let (mut para_queue_count, mut para_queue_size) = RelayDispatchQueueSize::::get(¶); for (idx, msg) in upward_messages.into_iter().enumerate() { let msg_size = msg.len() as u32; @@ -479,19 +475,14 @@ impl Pallet { .iter() .fold((0, 0), |(cnt, size), d| (cnt + 1, size + d.len() as u32)); - ::RelayDispatchQueues::mutate(¶, |v| { - v.extend(upward_messages.into_iter()) - }); + RelayDispatchQueues::::mutate(¶, |v| v.extend(upward_messages.into_iter())); - ::RelayDispatchQueueSize::mutate( - ¶, - |(ref mut cnt, ref mut size)| { - *cnt += extra_count; - *size += extra_size; - }, - ); + RelayDispatchQueueSize::::mutate(¶, |(ref mut cnt, ref mut size)| { + *cnt += extra_count; + *size += extra_size; + }); - ::NeedsDispatch::mutate(|v| { + NeedsDispatch::::mutate(|v| { if let Err(i) = v.binary_search(¶) { v.insert(i, para); } @@ -592,13 +583,13 @@ impl Pallet { /// Puts a given upward message into the list of overweight messages allowing it to be executed /// later. fn stash_overweight(sender: ParaId, upward_message: Vec) -> OverweightIndex { - let index = ::OverweightCount::mutate(|count| { + let index = OverweightCount::::mutate(|count| { let index = *count; *count += 1; index }); - ::Overweight::insert(index, (sender, upward_message)); + Overweight::::insert(index, (sender, upward_message)); index } } @@ -714,8 +705,8 @@ struct NeedsDispatchCursor { impl NeedsDispatchCursor { fn new() -> Self { - let needs_dispatch: Vec = as Store>::NeedsDispatch::get(); - let start_with = as Store>::NextDispatchRoundStartWith::get(); + let needs_dispatch: Vec = NeedsDispatch::::get(); + let start_with = NextDispatchRoundStartWith::::get(); let initial_index = match start_with { Some(para) => match needs_dispatch.binary_search(¶) { @@ -766,7 +757,7 @@ impl NeedsDispatchCursor { /// Flushes the dispatcher state into the persistent storage. fn flush(self) { let next_one = self.peek(); - as Store>::NextDispatchRoundStartWith::set(next_one); - as Store>::NeedsDispatch::put(self.needs_dispatch); + NextDispatchRoundStartWith::::set(next_one); + NeedsDispatch::::put(self.needs_dispatch); } } diff --git a/runtime/parachains/src/ump/tests.rs b/runtime/parachains/src/ump/tests.rs index 39f78c8eba99..60cc02ff0ff7 100644 --- a/runtime/parachains/src/ump/tests.rs +++ b/runtime/parachains/src/ump/tests.rs @@ -79,13 +79,13 @@ fn queue_upward_msg(para: ParaId, msg: UpwardMessage) { fn assert_storage_consistency_exhaustive() { // check that empty queues don't clutter the storage. - for (_para, queue) in ::RelayDispatchQueues::iter() { + for (_para, queue) in RelayDispatchQueues::::iter() { assert!(!queue.is_empty()); } // actually count the counts and sizes in queues and compare them to the bookkept version. - for (para, queue) in ::RelayDispatchQueues::iter() { - let (expected_count, expected_size) = ::RelayDispatchQueueSize::get(para); + for (para, queue) in RelayDispatchQueues::::iter() { + let (expected_count, expected_size) = RelayDispatchQueueSize::::get(para); let (actual_count, actual_size) = queue .into_iter() .fold((0, 0), |(acc_count, acc_size), x| (acc_count + 1, acc_size + x.len() as u32)); @@ -96,24 +96,22 @@ fn assert_storage_consistency_exhaustive() { // since we wipe the empty queues the sets of paras in queue contents, queue sizes and // need dispatch set should all be equal. - let queue_contents_set = ::RelayDispatchQueues::iter() + let queue_contents_set = + RelayDispatchQueues::::iter().map(|(k, _)| k).collect::>(); + let queue_sizes_set = RelayDispatchQueueSize::::iter() .map(|(k, _)| k) .collect::>(); - let queue_sizes_set = ::RelayDispatchQueueSize::iter() - .map(|(k, _)| k) - .collect::>(); - let needs_dispatch_set = - ::NeedsDispatch::get().into_iter().collect::>(); + let needs_dispatch_set = NeedsDispatch::::get().into_iter().collect::>(); assert_eq!(queue_contents_set, queue_sizes_set); assert_eq!(queue_contents_set, needs_dispatch_set); // `NextDispatchRoundStartWith` should point into a para that is tracked. - if let Some(para) = ::NextDispatchRoundStartWith::get() { + if let Some(para) = NextDispatchRoundStartWith::::get() { assert!(queue_contents_set.contains(¶)); } // `NeedsDispatch` is always sorted. - assert!(::NeedsDispatch::get().windows(2).all(|xs| xs[0] <= xs[1])); + assert!(NeedsDispatch::::get().windows(2).all(|xs| xs[0] <= xs[1])); } #[test] diff --git a/runtime/test-runtime/src/lib.rs b/runtime/test-runtime/src/lib.rs index 35ec219f4685..2fdaa60513d3 100644 --- a/runtime/test-runtime/src/lib.rs +++ b/runtime/test-runtime/src/lib.rs @@ -546,7 +546,6 @@ pub mod pallet_test_notifier { use xcm::latest::prelude::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); #[pallet::config] diff --git a/xcm/pallet-xcm/src/lib.rs b/xcm/pallet-xcm/src/lib.rs index 914c177399cc..47a9d7d75d0a 100644 --- a/xcm/pallet-xcm/src/lib.rs +++ b/xcm/pallet-xcm/src/lib.rs @@ -157,7 +157,6 @@ pub mod pallet { } #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::storage_version(migration::STORAGE_VERSION)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/xcm/pallet-xcm/src/migration.rs b/xcm/pallet-xcm/src/migration.rs index c7e8ca786244..247b9f8adaca 100644 --- a/xcm/pallet-xcm/src/migration.rs +++ b/xcm/pallet-xcm/src/migration.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Polkadot. If not, see . -use crate::{Config, Pallet, Store}; +use crate::{Config, Pallet, VersionNotifyTargets}; use frame_support::{ pallet_prelude::*, traits::{OnRuntimeUpgrade, StorageVersion}, @@ -48,7 +48,7 @@ pub mod v1 { Some(translated) }; - as Store>::VersionNotifyTargets::translate_values(translate); + VersionNotifyTargets::::translate_values(translate); log::info!("v1 applied successfully"); STORAGE_VERSION.put::>(); diff --git a/xcm/pallet-xcm/src/mock.rs b/xcm/pallet-xcm/src/mock.rs index 3c9184898f63..74e69c55b31c 100644 --- a/xcm/pallet-xcm/src/mock.rs +++ b/xcm/pallet-xcm/src/mock.rs @@ -51,7 +51,6 @@ pub mod pallet_test_notifier { use xcm::latest::prelude::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); #[pallet::config] diff --git a/xcm/xcm-simulator/example/src/parachain.rs b/xcm/xcm-simulator/example/src/parachain.rs index d42f862c21ce..9801a847b712 100644 --- a/xcm/xcm-simulator/example/src/parachain.rs +++ b/xcm/xcm-simulator/example/src/parachain.rs @@ -260,7 +260,6 @@ pub mod mock_msg_queue { impl Pallet {} #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_); diff --git a/xcm/xcm-simulator/fuzzer/src/parachain.rs b/xcm/xcm-simulator/fuzzer/src/parachain.rs index f1e3f4a6220e..adf134124c93 100644 --- a/xcm/xcm-simulator/fuzzer/src/parachain.rs +++ b/xcm/xcm-simulator/fuzzer/src/parachain.rs @@ -174,7 +174,6 @@ pub mod mock_msg_queue { impl Pallet {} #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] #[pallet::without_storage_info] pub struct Pallet(_);