diff --git a/Cargo.lock b/Cargo.lock index 87bae9a4aef6..505be8e28d55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -448,7 +448,7 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "beefy-primitives", "fnv", @@ -476,7 +476,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -496,12 +496,12 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" [[package]] name = "beefy-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "scale-info", @@ -1845,7 +1845,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", ] @@ -1863,7 +1863,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -1884,7 +1884,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "Inflector", "chrono", @@ -1910,7 +1910,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -1924,7 +1924,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -1952,7 +1952,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "bitflags", "frame-metadata", @@ -1981,7 +1981,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -1993,7 +1993,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.1.0", @@ -2005,7 +2005,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "proc-macro2", "quote", @@ -2015,7 +2015,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-support-test-pallet", @@ -2038,7 +2038,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -2049,7 +2049,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "log", @@ -2066,7 +2066,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -2081,7 +2081,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "sp-api", @@ -2090,7 +2090,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "sp-api", @@ -2292,7 +2292,7 @@ dependencies = [ [[package]] name = "generate-bags" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "chrono", "frame-election-provider-support", @@ -3145,6 +3145,7 @@ dependencies = [ "pallet-nicks", "pallet-offences", "pallet-offences-benchmarking", + "pallet-preimage", "pallet-proxy", "pallet-recovery", "pallet-scheduler", @@ -4556,7 +4557,7 @@ checksum = "2386b4ebe91c2f7f51082d4cefa145d030e33a1842a96b12e4885cc3c01f7a55" [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4570,7 +4571,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -4586,7 +4587,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -4601,7 +4602,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4625,7 +4626,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4645,7 +4646,7 @@ dependencies = [ [[package]] name = "pallet-bags-list-remote-tests" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "clap", "frame-election-provider-support", @@ -4667,7 +4668,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4682,7 +4683,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "beefy-primitives", "frame-support", @@ -4698,7 +4699,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "beefy-merkle-tree", "beefy-primitives", @@ -4723,7 +4724,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4807,7 +4808,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4824,7 +4825,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4840,7 +4841,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4864,7 +4865,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4882,7 +4883,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4897,7 +4898,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4920,7 +4921,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4936,7 +4937,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4956,7 +4957,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4973,7 +4974,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4990,7 +4991,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -5008,7 +5009,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -5024,7 +5025,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5041,7 +5042,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5056,7 +5057,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -5070,7 +5071,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -5087,7 +5088,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5107,10 +5108,26 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-preimage" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5125,7 +5142,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -5139,7 +5156,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5155,7 +5172,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -5176,7 +5193,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5192,7 +5209,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -5206,7 +5223,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5229,7 +5246,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -5240,7 +5257,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "log", "sp-arithmetic", @@ -5249,7 +5266,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -5263,7 +5280,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5281,7 +5298,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5300,7 +5317,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-support", "frame-system", @@ -5317,7 +5334,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5334,7 +5351,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5345,7 +5362,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5362,7 +5379,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5378,7 +5395,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-benchmarking", "frame-support", @@ -6687,6 +6704,7 @@ dependencies = [ "pallet-nicks", "pallet-offences", "pallet-offences-benchmarking", + "pallet-preimage", "pallet-proxy", "pallet-scheduler", "pallet-session", @@ -7758,7 +7776,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "env_logger 0.9.0", "jsonrpsee", @@ -8049,7 +8067,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "log", "sp-core", @@ -8060,7 +8078,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "derive_more", @@ -8087,7 +8105,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "futures-timer 3.0.2", @@ -8110,7 +8128,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -8126,7 +8144,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "impl-trait-for-tuples", "memmap2 0.5.0", @@ -8143,7 +8161,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8154,7 +8172,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "chrono", "fdlimit", @@ -8192,7 +8210,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "fnv", "futures 0.3.18", @@ -8220,7 +8238,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "hash-db", "kvdb", @@ -8245,7 +8263,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "futures 0.3.18", @@ -8269,7 +8287,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "derive_more", @@ -8312,7 +8330,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "derive_more", "futures 0.3.18", @@ -8336,7 +8354,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8349,7 +8367,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "assert_matches", "async-trait", @@ -8383,7 +8401,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "futures 0.3.18", @@ -8409,7 +8427,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "sc-client-api", "sp-authorship", @@ -8420,7 +8438,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "lazy_static", "libsecp256k1", @@ -8448,7 +8466,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "derive_more", "environmental", @@ -8466,7 +8484,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "log", "parity-scale-codec", @@ -8482,7 +8500,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8500,7 +8518,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "derive_more", @@ -8537,7 +8555,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "derive_more", "finality-grandpa", @@ -8561,7 +8579,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "ansi_term", "futures 0.3.18", @@ -8578,7 +8596,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "derive_more", @@ -8593,7 +8611,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-std", "async-trait", @@ -8644,7 +8662,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "futures-timer 3.0.2", @@ -8660,7 +8678,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "bytes 1.1.0", "fnv", @@ -8688,7 +8706,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "libp2p", @@ -8701,7 +8719,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8710,7 +8728,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "hash-db", @@ -8741,7 +8759,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "jsonrpc-core", @@ -8766,7 +8784,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "jsonrpc-core", @@ -8783,7 +8801,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "directories", @@ -8847,7 +8865,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "log", "parity-scale-codec", @@ -8861,7 +8879,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8883,7 +8901,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "chrono", "futures 0.3.18", @@ -8901,7 +8919,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "ansi_term", "atty", @@ -8932,7 +8950,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8943,7 +8961,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "intervalier", @@ -8970,7 +8988,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "derive_more", "futures 0.3.18", @@ -8984,7 +9002,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "futures-timer 3.0.2", @@ -9389,7 +9407,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "hash-db", "log", @@ -9406,7 +9424,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "blake2-rfc", "proc-macro-crate 1.1.0", @@ -9418,7 +9436,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9431,7 +9449,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "integer-sqrt", "num-traits", @@ -9446,7 +9464,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9459,7 +9477,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "parity-scale-codec", @@ -9471,7 +9489,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "sp-api", @@ -9483,7 +9501,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "log", @@ -9501,7 +9519,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "futures 0.3.18", @@ -9520,7 +9538,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "merlin", @@ -9543,7 +9561,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9555,7 +9573,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9567,7 +9585,7 @@ dependencies = [ [[package]] name = "sp-core" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "base58", "bitflags", @@ -9615,7 +9633,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "blake2-rfc", "byteorder", @@ -9628,7 +9646,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "proc-macro2", "quote", @@ -9639,7 +9657,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "kvdb", "parking_lot", @@ -9648,7 +9666,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "proc-macro2", "quote", @@ -9658,7 +9676,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "environmental", "parity-scale-codec", @@ -9669,7 +9687,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "finality-grandpa", "log", @@ -9687,7 +9705,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9701,7 +9719,7 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "hash-db", @@ -9725,7 +9743,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "lazy_static", "sp-core", @@ -9736,7 +9754,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "derive_more", @@ -9753,7 +9771,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "zstd", ] @@ -9761,7 +9779,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9776,7 +9794,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -9787,7 +9805,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "sp-api", "sp-core", @@ -9797,7 +9815,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "backtrace", "lazy_static", @@ -9807,7 +9825,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "rustc-hash", "serde", @@ -9817,7 +9835,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "either", "hash256-std-hasher", @@ -9839,7 +9857,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9856,7 +9874,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "Inflector", "proc-macro-crate 1.1.0", @@ -9868,7 +9886,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "serde", "serde_json", @@ -9877,7 +9895,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9891,7 +9909,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9902,7 +9920,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "hash-db", "log", @@ -9925,12 +9943,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" [[package]] name = "sp-storage" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9943,7 +9961,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "log", "sp-core", @@ -9956,7 +9974,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -9972,7 +9990,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "sp-std", @@ -9984,7 +10002,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "sp-api", "sp-runtime", @@ -9993,7 +10011,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "log", @@ -10009,7 +10027,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "hash-db", "memory-db", @@ -10024,7 +10042,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10040,7 +10058,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -10051,7 +10069,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10262,7 +10280,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "platforms", ] @@ -10270,7 +10288,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.18", @@ -10292,7 +10310,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-std", "derive_more", @@ -10306,7 +10324,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "async-trait", "futures 0.3.18", @@ -10332,7 +10350,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "futures 0.3.18", "substrate-test-utils-derive", @@ -10342,7 +10360,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -10353,7 +10371,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "ansi_term", "build-helper", @@ -10495,7 +10513,7 @@ dependencies = [ [[package]] name = "test-runner" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "frame-system", "futures 0.3.18", @@ -10937,7 +10955,7 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#a991b0aecba1635861eaf104a7912f55fc1f323c" +source = "git+https://github.com/paritytech/substrate?branch=master#914f6e50ea39682cb1e881bd3d67f4bcb2c01af9" dependencies = [ "jsonrpsee", "log", @@ -11561,6 +11579,7 @@ dependencies = [ "pallet-nicks", "pallet-offences", "pallet-offences-benchmarking", + "pallet-preimage", "pallet-proxy", "pallet-recovery", "pallet-scheduler", diff --git a/runtime/kusama/Cargo.toml b/runtime/kusama/Cargo.toml index eb66353bea72..d20f3335257c 100644 --- a/runtime/kusama/Cargo.toml +++ b/runtime/kusama/Cargo.toml @@ -58,6 +58,7 @@ pallet-mmr-primitives = { git = "https://github.com/paritytech/substrate", branc pallet-multisig = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-nicks = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-offences = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } +pallet-preimage = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-proxy = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-recovery = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-scheduler = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } @@ -143,6 +144,7 @@ std = [ "pallet-multisig/std", "pallet-nicks/std", "pallet-offences/std", + "pallet-preimage/std", "pallet-proxy/std", "pallet-recovery/std", "pallet-scheduler/std", @@ -199,6 +201,7 @@ runtime-benchmarks = [ "pallet-indices/runtime-benchmarks", "pallet-membership/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", "pallet-scheduler/runtime-benchmarks", "pallet-society/runtime-benchmarks", @@ -239,6 +242,7 @@ try-runtime = [ "pallet-multisig/try-runtime", "pallet-nicks/try-runtime", "pallet-offences/try-runtime", + "pallet-preimage/try-runtime", "pallet-proxy/try-runtime", "pallet-recovery/try-runtime", "pallet-scheduler/try-runtime", diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index 2ce293f019a8..2a3ccf4fa989 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -189,6 +189,7 @@ parameter_types! { pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) * BlockWeights::get().max_block; pub const MaxScheduledPerBlock: u32 = 50; + pub const NoPreimagePostponement: Option = Some(10); } type ScheduleOrigin = EnsureOneOf< @@ -229,6 +230,24 @@ impl pallet_scheduler::Config for Runtime { type MaxScheduledPerBlock = MaxScheduledPerBlock; type WeightInfo = weights::pallet_scheduler::WeightInfo; type OriginPrivilegeCmp = OriginPrivilegeCmp; + type PreimageProvider = Preimage; + type NoPreimagePostponement = NoPreimagePostponement; +} + +parameter_types! { + pub const PreimageMaxSize: u32 = 4096 * 1024; + pub const PreimageBaseDeposit: Balance = deposit(2, 64); + pub const PreimageByteDeposit: Balance = deposit(0, 1); +} + +impl pallet_preimage::Config for Runtime { + type WeightInfo = weights::pallet_preimage::WeightInfo; + type Event = Event; + type Currency = Balances; + type ManagerOrigin = EnsureRoot; + type MaxSize = PreimageMaxSize; + type BaseDeposit = PreimageBaseDeposit; + type ByteDeposit = PreimageByteDeposit; } parameter_types! { @@ -562,8 +581,6 @@ parameter_types! { pub const MinimumDeposit: Balance = 100 * CENTS; pub const EnactmentPeriod: BlockNumber = 8 * DAYS; pub const CooloffPeriod: BlockNumber = 7 * DAYS; - // One cent: $10,000 / MB - pub const PreimageByteDeposit: Balance = 10 * MILLICENTS; pub const InstantAllowed: bool = true; pub const MaxVotes: u32 = 100; pub const MaxProposals: u32 = 100; @@ -1502,6 +1519,7 @@ construct_runtime! { TechnicalMembership: pallet_membership::::{Pallet, Call, Storage, Event, Config} = 17, Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event} = 18, + // Claims. Usable initially. Claims: claims::{Pallet, Call, Storage, Event, Config, ValidateUnsigned} = 19, @@ -1529,6 +1547,9 @@ construct_runtime! { // Multisig module. Late addition. Multisig: pallet_multisig::{Pallet, Call, Storage, Event} = 31, + // Preimage registrar. + Preimage: pallet_preimage::{Pallet, Call, Storage, Event} = 32, + // Bounties module. Bounties: pallet_bounties::{Pallet, Call, Storage, Event} = 35, @@ -1599,11 +1620,30 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPalletsWithSystem, - (SessionHistoricalPalletPrefixMigration,), + (SessionHistoricalPalletPrefixMigration, SchedulerMigrationV3), >; /// The payload being signed in the transactions. pub type SignedPayload = generic::SignedPayload; +// Migration for scheduler pallet to move from a plain Call to a CallOrHash. +pub struct SchedulerMigrationV3; + +impl OnRuntimeUpgrade for SchedulerMigrationV3 { + fn on_runtime_upgrade() -> frame_support::weights::Weight { + Scheduler::migrate_v2_to_v3() + } + + #[cfg(feature = "try-runtime")] + fn pre_upgrade() -> Result<(), &'static str> { + Scheduler::pre_migrate_to_v3() + } + + #[cfg(feature = "try-runtime")] + fn post_upgrade() -> Result<(), &'static str> { + Scheduler::post_migrate_to_v3() + } +} + /// Migrate session-historical from `Session` to the new pallet prefix `Historical` pub struct SessionHistoricalPalletPrefixMigration; @@ -1979,6 +2019,7 @@ sp_api::impl_runtime_apis! { list_benchmark!(list, extra, pallet_membership, TechnicalMembership); list_benchmark!(list, extra, pallet_multisig, Multisig); list_benchmark!(list, extra, pallet_offences, OffencesBench::); + list_benchmark!(list, extra, pallet_preimage, Preimage); list_benchmark!(list, extra, pallet_proxy, Proxy); list_benchmark!(list, extra, pallet_scheduler, Scheduler); list_benchmark!(list, extra, pallet_session, SessionBench::); @@ -2058,6 +2099,7 @@ sp_api::impl_runtime_apis! { add_benchmark!(params, batches, pallet_membership, TechnicalMembership); add_benchmark!(params, batches, pallet_multisig, Multisig); add_benchmark!(params, batches, pallet_offences, OffencesBench::); + add_benchmark!(params, batches, pallet_preimage, Preimage); add_benchmark!(params, batches, pallet_proxy, Proxy); add_benchmark!(params, batches, pallet_scheduler, Scheduler); add_benchmark!(params, batches, pallet_session, SessionBench::); diff --git a/runtime/kusama/src/weights/mod.rs b/runtime/kusama/src/weights/mod.rs index 240a583232c8..93c12c2083d3 100644 --- a/runtime/kusama/src/weights/mod.rs +++ b/runtime/kusama/src/weights/mod.rs @@ -30,6 +30,7 @@ pub mod pallet_im_online; pub mod pallet_indices; pub mod pallet_membership; pub mod pallet_multisig; +pub mod pallet_preimage; pub mod pallet_proxy; pub mod pallet_scheduler; pub mod pallet_session; diff --git a/runtime/kusama/src/weights/pallet_preimage.rs b/runtime/kusama/src/weights/pallet_preimage.rs new file mode 100644 index 000000000000..99be523c773c --- /dev/null +++ b/runtime/kusama/src/weights/pallet_preimage.rs @@ -0,0 +1,131 @@ +// Copyright 2017-2021 Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . +//! Autogenerated weights for `pallet_preimage` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2021-12-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 128 + +// Executed Command: +// target/release/polkadot +// benchmark +// --chain=kusama-dev +// --steps=50 +// --repeat=20 +// --pallet=pallet_preimage +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --header=./file_header.txt +// --output=./runtime/polkadot/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_preimage`. +pub struct WeightInfo(PhantomData); +impl pallet_preimage::weights::WeightInfo for WeightInfo { + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + fn note_preimage(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 0 + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:0) + fn note_requested_preimage(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 0 + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:0) + fn note_no_deposit_preimage(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 0 + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unnote_preimage() -> Weight { + (57_735_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unnote_no_deposit_preimage() -> Weight { + (36_686_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_preimage() -> Weight { + (54_443_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_no_deposit_preimage() -> Weight { + (34_868_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_unnoted_preimage() -> Weight { + (20_741_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_requested_preimage() -> Weight { + (7_543_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unrequest_preimage() -> Weight { + (36_829_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unrequest_unnoted_preimage() -> Weight { + (21_581_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn unrequest_multi_referenced_preimage() -> Weight { + (7_188_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } +} diff --git a/runtime/kusama/src/weights/pallet_scheduler.rs b/runtime/kusama/src/weights/pallet_scheduler.rs index e68d1c90927e..8a6f627709b7 100644 --- a/runtime/kusama/src/weights/pallet_scheduler.rs +++ b/runtime/kusama/src/weights/pallet_scheduler.rs @@ -1,4 +1,4 @@ -// Copyright 2017-2020 Parity Technologies (UK) Ltd. +// Copyright 2017-2021 Parity Technologies (UK) Ltd. // This file is part of Polkadot. // Polkadot is free software: you can redistribute it and/or modify @@ -15,8 +15,8 @@ // along with Polkadot. If not, see . //! Autogenerated weights for `pallet_scheduler` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-07-01, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2021-12-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128 // Executed Command: @@ -33,6 +33,7 @@ // --header=./file_header.txt // --output=./runtime/kusama/src/weights/ +#![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -42,31 +43,149 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_scheduler`. pub struct WeightInfo(PhantomData); impl pallet_scheduler::WeightInfo for WeightInfo { - fn schedule(s: u32) -> Weight { - (28_202_000 as Weight) - // Standard Error: 0 - .saturating_add((42_000 as Weight).saturating_mul(s as Weight)) + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight { + (2_821_000 as Weight) + // Standard Error: 39_000 + .saturating_add((39_671_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight))) .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(s as Weight))) } - fn cancel(s: u32) -> Weight { - (27_640_000 as Weight) - // Standard Error: 14_000 - .saturating_add((5_699_000 as Weight).saturating_mul(s as Weight)) + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_named_resolved(s: u32, ) -> Weight { + (674_000 as Weight) + // Standard Error: 36_000 + .saturating_add((31_391_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + fn on_initialize_periodic_resolved(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 39_000 + .saturating_add((34_637_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + fn on_initialize_resolved(s: u32, ) -> Weight { + (3_619_000 as Weight) + // Standard Error: 34_000 + .saturating_add((28_969_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:0) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_named_aborted(s: u32, ) -> Weight { + (8_846_000 as Weight) + // Standard Error: 17_000 + .saturating_add((14_687_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:0) + fn on_initialize_aborted(s: u32, ) -> Weight { + (8_849_000 as Weight) + // Standard Error: 19_000 + .saturating_add((9_900_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_periodic_named(s: u32, ) -> Weight { + (9_087_000 as Weight) + // Standard Error: 31_000 + .saturating_add((22_780_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + fn on_initialize_periodic(s: u32, ) -> Weight { + (10_653_000 as Weight) + // Standard Error: 25_000 + .saturating_add((17_581_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_named(s: u32, ) -> Weight { + (13_412_000 as Weight) + // Standard Error: 19_000 + .saturating_add((14_529_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + fn on_initialize(s: u32, ) -> Weight { + (12_636_000 as Weight) + // Standard Error: 18_000 + .saturating_add((12_548_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Scheduler Agenda (r:1 w:1) + fn schedule(s: u32, ) -> Weight { + (23_530_000 as Weight) + // Standard Error: 1_000 + .saturating_add((38_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn cancel(s: u32, ) -> Weight { + (22_003_000 as Weight) + // Standard Error: 6_000 + .saturating_add((2_495_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - fn schedule_named(s: u32) -> Weight { - (34_298_000 as Weight) + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + fn schedule_named(s: u32, ) -> Weight { + (28_604_000 as Weight) // Standard Error: 1_000 .saturating_add((56_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - fn cancel_named(s: u32) -> Weight { - (29_004_000 as Weight) - // Standard Error: 15_000 - .saturating_add((5_720_000 as Weight).saturating_mul(s as Weight)) + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + fn cancel_named(s: u32, ) -> Weight { + (24_130_000 as Weight) + // Standard Error: 6_000 + .saturating_add((2_513_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } diff --git a/runtime/polkadot/Cargo.toml b/runtime/polkadot/Cargo.toml index a48e57273816..ee02c0b4b090 100644 --- a/runtime/polkadot/Cargo.toml +++ b/runtime/polkadot/Cargo.toml @@ -55,6 +55,7 @@ pallet-mmr-primitives = { git = "https://github.com/paritytech/substrate", branc pallet-multisig = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-nicks = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-offences = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } +pallet-preimage = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-proxy = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-scheduler = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } @@ -138,6 +139,7 @@ std = [ "pallet-multisig/std", "pallet-nicks/std", "pallet-offences/std", + "pallet-preimage/std", "pallet-proxy/std", "pallet-scheduler/std", "pallet-session/std", @@ -189,6 +191,7 @@ runtime-benchmarks = [ "pallet-indices/runtime-benchmarks", "pallet-membership/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", "pallet-scheduler/runtime-benchmarks", "pallet-staking/runtime-benchmarks", @@ -228,6 +231,7 @@ try-runtime = [ "pallet-multisig/try-runtime", "pallet-nicks/try-runtime", "pallet-offences/try-runtime", + "pallet-preimage/try-runtime", "pallet-proxy/try-runtime", "pallet-scheduler/try-runtime", "pallet-session/try-runtime", diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 1157171e7534..11c49079d506 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -152,6 +152,7 @@ impl Contains for BaseFilter { Call::PhragmenElection(_) | Call::System(_) | Call::Scheduler(_) | + Call::Preimage(_) | Call::Indices(_) | Call::Babe(_) | Call::Timestamp(_) | @@ -232,6 +233,7 @@ parameter_types! { pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) * BlockWeights::get().max_block; pub const MaxScheduledPerBlock: u32 = 50; + pub const NoPreimagePostponement: Option = Some(10); } type ScheduleOrigin = EnsureOneOf< @@ -272,6 +274,24 @@ impl pallet_scheduler::Config for Runtime { type MaxScheduledPerBlock = MaxScheduledPerBlock; type WeightInfo = weights::pallet_scheduler::WeightInfo; type OriginPrivilegeCmp = OriginPrivilegeCmp; + type PreimageProvider = Preimage; + type NoPreimagePostponement = NoPreimagePostponement; +} + +parameter_types! { + pub const PreimageMaxSize: u32 = 4096 * 1024; + pub const PreimageBaseDeposit: Balance = deposit(2, 64); + pub const PreimageByteDeposit: Balance = deposit(0, 1); +} + +impl pallet_preimage::Config for Runtime { + type WeightInfo = pallet_preimage::weights::SubstrateWeight; + type Event = Event; + type Currency = Balances; + type ManagerOrigin = EnsureRoot; + type MaxSize = PreimageMaxSize; + type BaseDeposit = PreimageBaseDeposit; + type ByteDeposit = PreimageByteDeposit; } parameter_types! { @@ -582,8 +602,6 @@ parameter_types! { pub const MinimumDeposit: Balance = 100 * DOLLARS; pub const EnactmentPeriod: BlockNumber = 28 * DAYS; pub const CooloffPeriod: BlockNumber = 7 * DAYS; - // One cent: $10,000 / MB - pub const PreimageByteDeposit: Balance = 1 * CENTS; pub const InstantAllowed: bool = true; pub const MaxVotes: u32 = 100; pub const MaxProposals: u32 = 100; @@ -1438,6 +1456,7 @@ construct_runtime! { // Basic stuff; balances is uncallable initially. System: frame_system::{Pallet, Call, Storage, Config, Event} = 0, Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event} = 1, + Preimage: pallet_preimage::{Pallet, Call, Storage, Event} = 10, // Babe must be before session. Babe: pallet_babe::{Pallet, Call, Storage, Config, ValidateUnsigned} = 2, @@ -1467,6 +1486,7 @@ construct_runtime! { TechnicalMembership: pallet_membership::::{Pallet, Call, Storage, Event, Config} = 18, Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event} = 19, + // Claims. Usable initially. Claims: claims::{Pallet, Call, Storage, Event, Config, ValidateUnsigned} = 24, // Vesting. Usable initially, but removed once all vesting is finished. @@ -1550,11 +1570,30 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPalletsWithSystem, - (StakingBagsListMigrationV8, SessionHistoricalPalletPrefixMigration), + (StakingBagsListMigrationV8, SessionHistoricalPalletPrefixMigration, SchedulerMigrationV3), >; /// The payload being signed in transactions. pub type SignedPayload = generic::SignedPayload; +// Migration for scheduler pallet to move from a plain Call to a CallOrHash. +pub struct SchedulerMigrationV3; + +impl OnRuntimeUpgrade for SchedulerMigrationV3 { + fn on_runtime_upgrade() -> frame_support::weights::Weight { + Scheduler::migrate_v2_to_v3() + } + + #[cfg(feature = "try-runtime")] + fn pre_upgrade() -> Result<(), &'static str> { + Scheduler::pre_migrate_to_v3() + } + + #[cfg(feature = "try-runtime")] + fn post_upgrade() -> Result<(), &'static str> { + Scheduler::post_migrate_to_v3() + } +} + // Migration to generate pallet staking's `SortedListProvider` from pre-existing nominators. pub struct StakingBagsListMigrationV8; @@ -1947,6 +1986,7 @@ sp_api::impl_runtime_apis! { list_benchmark!(list, extra, pallet_membership, TechnicalMembership); list_benchmark!(list, extra, pallet_multisig, Multisig); list_benchmark!(list, extra, pallet_offences, OffencesBench::); + list_benchmark!(list, extra, pallet_preimage, Preimage); list_benchmark!(list, extra, pallet_proxy, Proxy); list_benchmark!(list, extra, pallet_scheduler, Scheduler); list_benchmark!(list, extra, pallet_session, SessionBench::); @@ -2023,6 +2063,7 @@ sp_api::impl_runtime_apis! { add_benchmark!(params, batches, pallet_membership, TechnicalMembership); add_benchmark!(params, batches, pallet_multisig, Multisig); add_benchmark!(params, batches, pallet_offences, OffencesBench::); + add_benchmark!(params, batches, pallet_preimage, Preimage); add_benchmark!(params, batches, pallet_proxy, Proxy); add_benchmark!(params, batches, pallet_scheduler, Scheduler); add_benchmark!(params, batches, pallet_session, SessionBench::); diff --git a/runtime/polkadot/src/weights/mod.rs b/runtime/polkadot/src/weights/mod.rs index bf4d83844fd2..867877111a1e 100644 --- a/runtime/polkadot/src/weights/mod.rs +++ b/runtime/polkadot/src/weights/mod.rs @@ -29,6 +29,7 @@ pub mod pallet_im_online; pub mod pallet_indices; pub mod pallet_membership; pub mod pallet_multisig; +pub mod pallet_preimage; pub mod pallet_proxy; pub mod pallet_scheduler; pub mod pallet_session; diff --git a/runtime/polkadot/src/weights/pallet_preimage.rs b/runtime/polkadot/src/weights/pallet_preimage.rs new file mode 100644 index 000000000000..c8e8111db037 --- /dev/null +++ b/runtime/polkadot/src/weights/pallet_preimage.rs @@ -0,0 +1,131 @@ +// Copyright 2017-2021 Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . +//! Autogenerated weights for `pallet_preimage` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2021-12-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 128 + +// Executed Command: +// target/release/polkadot +// benchmark +// --chain=polkadot-dev +// --steps=50 +// --repeat=20 +// --pallet=pallet_preimage +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --header=./file_header.txt +// --output=./runtime/polkadot/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_preimage`. +pub struct WeightInfo(PhantomData); +impl pallet_preimage::weights::WeightInfo for WeightInfo { + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + fn note_preimage(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 0 + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:0) + fn note_requested_preimage(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 0 + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:0) + fn note_no_deposit_preimage(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 0 + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unnote_preimage() -> Weight { + (56_144_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unnote_no_deposit_preimage() -> Weight { + (37_440_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_preimage() -> Weight { + (53_361_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_no_deposit_preimage() -> Weight { + (34_320_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_unnoted_preimage() -> Weight { + (20_598_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_requested_preimage() -> Weight { + (7_612_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unrequest_preimage() -> Weight { + (37_617_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unrequest_unnoted_preimage() -> Weight { + (22_042_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn unrequest_multi_referenced_preimage() -> Weight { + (7_536_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } +} diff --git a/runtime/polkadot/src/weights/pallet_scheduler.rs b/runtime/polkadot/src/weights/pallet_scheduler.rs index 12b30c34df56..372c2d0584de 100644 --- a/runtime/polkadot/src/weights/pallet_scheduler.rs +++ b/runtime/polkadot/src/weights/pallet_scheduler.rs @@ -1,4 +1,4 @@ -// Copyright 2017-2020 Parity Technologies (UK) Ltd. +// Copyright 2017-2021 Parity Technologies (UK) Ltd. // This file is part of Polkadot. // Polkadot is free software: you can redistribute it and/or modify @@ -15,8 +15,8 @@ // along with Polkadot. If not, see . //! Autogenerated weights for `pallet_scheduler` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-07-01, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2021-12-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 128 // Executed Command: @@ -33,6 +33,7 @@ // --header=./file_header.txt // --output=./runtime/polkadot/src/weights/ +#![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -42,31 +43,149 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_scheduler`. pub struct WeightInfo(PhantomData); impl pallet_scheduler::WeightInfo for WeightInfo { - fn schedule(s: u32) -> Weight { - (23_340_000 as Weight) - // Standard Error: 0 + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 48_000 + .saturating_add((40_013_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_named_resolved(s: u32, ) -> Weight { + (1_566_000 as Weight) + // Standard Error: 44_000 + .saturating_add((31_257_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + fn on_initialize_periodic_resolved(s: u32, ) -> Weight { + (1_287_000 as Weight) + // Standard Error: 37_000 + .saturating_add((34_241_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + fn on_initialize_resolved(s: u32, ) -> Weight { + (4_114_000 as Weight) + // Standard Error: 36_000 + .saturating_add((28_866_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:0) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_named_aborted(s: u32, ) -> Weight { + (8_330_000 as Weight) + // Standard Error: 23_000 + .saturating_add((14_865_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:0) + fn on_initialize_aborted(s: u32, ) -> Weight { + (9_651_000 as Weight) + // Standard Error: 13_000 + .saturating_add((9_988_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_periodic_named(s: u32, ) -> Weight { + (10_615_000 as Weight) + // Standard Error: 26_000 + .saturating_add((22_813_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + fn on_initialize_periodic(s: u32, ) -> Weight { + (12_942_000 as Weight) + // Standard Error: 22_000 + .saturating_add((17_319_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_named(s: u32, ) -> Weight { + (15_477_000 as Weight) + // Standard Error: 19_000 + .saturating_add((14_459_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + fn on_initialize(s: u32, ) -> Weight { + (14_600_000 as Weight) + // Standard Error: 15_000 + .saturating_add((12_446_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Scheduler Agenda (r:1 w:1) + fn schedule(s: u32, ) -> Weight { + (23_900_000 as Weight) + // Standard Error: 1_000 .saturating_add((39_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - fn cancel(s: u32) -> Weight { - (22_347_000 as Weight) - // Standard Error: 4_000 - .saturating_add((1_864_000 as Weight).saturating_mul(s as Weight)) + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn cancel(s: u32, ) -> Weight { + (22_423_000 as Weight) + // Standard Error: 5_000 + .saturating_add((2_482_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - fn schedule_named(s: u32) -> Weight { - (29_626_000 as Weight) + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + fn schedule_named(s: u32, ) -> Weight { + (29_054_000 as Weight) // Standard Error: 1_000 - .saturating_add((58_000 as Weight).saturating_mul(s as Weight)) + .saturating_add((52_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - fn cancel_named(s: u32) -> Weight { - (25_024_000 as Weight) - // Standard Error: 4_000 - .saturating_add((1_882_000 as Weight).saturating_mul(s as Weight)) + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + fn cancel_named(s: u32, ) -> Weight { + (24_594_000 as Weight) + // Standard Error: 6_000 + .saturating_add((2_496_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } diff --git a/runtime/westend/Cargo.toml b/runtime/westend/Cargo.toml index 40e654ab47b4..336515713738 100644 --- a/runtime/westend/Cargo.toml +++ b/runtime/westend/Cargo.toml @@ -56,6 +56,7 @@ pallet-mmr-primitives = { git = "https://github.com/paritytech/substrate", branc pallet-multisig = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-nicks = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-offences = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } +pallet-preimage = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-proxy = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-recovery = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-scheduler = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } @@ -139,6 +140,7 @@ std = [ "pallet-multisig/std", "pallet-nicks/std", "pallet-offences/std", + "pallet-preimage/std", "pallet-proxy/std", "pallet-recovery/std", "pallet-scheduler/std", @@ -191,6 +193,7 @@ runtime-benchmarks = [ "pallet-im-online/runtime-benchmarks", "pallet-indices/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", + "pallet-preimage/runtime-benchmarks", "pallet-proxy/runtime-benchmarks", "pallet-scheduler/runtime-benchmarks", "pallet-society/runtime-benchmarks", @@ -230,6 +233,7 @@ try-runtime = [ "pallet-multisig/try-runtime", "pallet-nicks/try-runtime", "pallet-offences/try-runtime", + "pallet-preimage/try-runtime", "pallet-proxy/try-runtime", "pallet-recovery/try-runtime", "pallet-scheduler/try-runtime", diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 5593324258a2..f646dff3571b 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -184,6 +184,7 @@ parameter_types! { pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) * BlockWeights::get().max_block; pub const MaxScheduledPerBlock: u32 = 50; + pub const NoPreimagePostponement: Option = Some(10); } impl pallet_scheduler::Config for Runtime { @@ -196,6 +197,24 @@ impl pallet_scheduler::Config for Runtime { type MaxScheduledPerBlock = MaxScheduledPerBlock; type WeightInfo = weights::pallet_scheduler::WeightInfo; type OriginPrivilegeCmp = frame_support::traits::EqualPrivilegeOnly; + type PreimageProvider = Preimage; + type NoPreimagePostponement = NoPreimagePostponement; +} + +parameter_types! { + pub const PreimageMaxSize: u32 = 4096 * 1024; + pub const PreimageBaseDeposit: Balance = deposit(2, 64); + pub const PreimageByteDeposit: Balance = deposit(0, 1); +} + +impl pallet_preimage::Config for Runtime { + type WeightInfo = weights::pallet_preimage::WeightInfo; + type Event = Event; + type Currency = Balances; + type ManagerOrigin = EnsureRoot; + type MaxSize = PreimageMaxSize; + type BaseDeposit = PreimageBaseDeposit; + type ByteDeposit = PreimageByteDeposit; } parameter_types! { @@ -471,8 +490,6 @@ parameter_types! { pub const MinimumDeposit: Balance = 100 * CENTS; pub const EnactmentPeriod: BlockNumber = 8 * DAYS; pub const CooloffPeriod: BlockNumber = 7 * DAYS; - // One cent: $10,000 / MB - pub const PreimageByteDeposit: Balance = 10 * MILLICENTS; pub const InstantAllowed: bool = true; pub const MaxAuthorities: u32 = 100_000; } @@ -1098,6 +1115,9 @@ construct_runtime! { // System scheduler. Scheduler: pallet_scheduler::{Pallet, Call, Storage, Event} = 20, + // Preimage registrar. + Preimage: pallet_preimage::{Pallet, Call, Storage, Event} = 28, + // Sudo. Sudo: pallet_sudo::{Pallet, Call, Storage, Event, Config} = 21, @@ -1169,11 +1189,30 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPalletsWithSystem, - (SessionHistoricalPalletPrefixMigration,), + (SessionHistoricalPalletPrefixMigration, SchedulerMigrationV3), >; /// The payload being signed in transactions. pub type SignedPayload = generic::SignedPayload; +// Migration for scheduler pallet to move from a plain Call to a CallOrHash. +pub struct SchedulerMigrationV3; + +impl OnRuntimeUpgrade for SchedulerMigrationV3 { + fn on_runtime_upgrade() -> frame_support::weights::Weight { + Scheduler::migrate_v2_to_v3() + } + + #[cfg(feature = "try-runtime")] + fn pre_upgrade() -> Result<(), &'static str> { + Scheduler::pre_migrate_to_v3() + } + + #[cfg(feature = "try-runtime")] + fn post_upgrade() -> Result<(), &'static str> { + Scheduler::post_migrate_to_v3() + } +} + /// Migrate session-historical from `Session` to the new pallet prefix `Historical` pub struct SessionHistoricalPalletPrefixMigration; @@ -1544,6 +1583,7 @@ sp_api::impl_runtime_apis! { list_benchmark!(list, extra, pallet_indices, Indices); list_benchmark!(list, extra, pallet_multisig, Multisig); list_benchmark!(list, extra, pallet_offences, OffencesBench::); + list_benchmark!(list, extra, pallet_preimage, Preimage); list_benchmark!(list, extra, pallet_proxy, Proxy); list_benchmark!(list, extra, pallet_scheduler, Scheduler); list_benchmark!(list, extra, pallet_session, SessionBench::); @@ -1689,6 +1729,7 @@ sp_api::impl_runtime_apis! { add_benchmark!(params, batches, pallet_indices, Indices); add_benchmark!(params, batches, pallet_multisig, Multisig); add_benchmark!(params, batches, pallet_offences, OffencesBench::); + add_benchmark!(params, batches, pallet_preimage, Preimage); add_benchmark!(params, batches, pallet_proxy, Proxy); add_benchmark!(params, batches, pallet_scheduler, Scheduler); add_benchmark!(params, batches, pallet_session, SessionBench::); diff --git a/runtime/westend/src/weights/mod.rs b/runtime/westend/src/weights/mod.rs index 8e7c4c4e0d55..600233f4cf7a 100644 --- a/runtime/westend/src/weights/mod.rs +++ b/runtime/westend/src/weights/mod.rs @@ -23,6 +23,7 @@ pub mod pallet_identity; pub mod pallet_im_online; pub mod pallet_indices; pub mod pallet_multisig; +pub mod pallet_preimage; pub mod pallet_proxy; pub mod pallet_scheduler; pub mod pallet_session; diff --git a/runtime/westend/src/weights/pallet_preimage.rs b/runtime/westend/src/weights/pallet_preimage.rs new file mode 100644 index 000000000000..7a7869cf9d48 --- /dev/null +++ b/runtime/westend/src/weights/pallet_preimage.rs @@ -0,0 +1,131 @@ +// Copyright 2017-2021 Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . +//! Autogenerated weights for `pallet_preimage` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2021-12-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 128 + +// Executed Command: +// target/release/polkadot +// benchmark +// --chain=westend-dev +// --steps=50 +// --repeat=20 +// --pallet=pallet_preimage +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --header=./file_header.txt +// --output=./runtime/westend/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_preimage`. +pub struct WeightInfo(PhantomData); +impl pallet_preimage::WeightInfo for WeightInfo { + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + fn note_preimage(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 0 + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:0) + fn note_requested_preimage(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 0 + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:0) + fn note_no_deposit_preimage(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 0 + .saturating_add((3_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unnote_preimage() -> Weight { + (58_618_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unnote_no_deposit_preimage() -> Weight { + (38_343_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_preimage() -> Weight { + (54_935_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_no_deposit_preimage() -> Weight { + (35_262_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_unnoted_preimage() -> Weight { + (20_709_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_requested_preimage() -> Weight { + (8_233_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unrequest_preimage() -> Weight { + (37_739_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unrequest_unnoted_preimage() -> Weight { + (22_624_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn unrequest_multi_referenced_preimage() -> Weight { + (7_715_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } +} diff --git a/runtime/westend/src/weights/pallet_scheduler.rs b/runtime/westend/src/weights/pallet_scheduler.rs index 779bb007400b..ae9b93f6364d 100644 --- a/runtime/westend/src/weights/pallet_scheduler.rs +++ b/runtime/westend/src/weights/pallet_scheduler.rs @@ -1,4 +1,4 @@ -// Copyright 2017-2020 Parity Technologies (UK) Ltd. +// Copyright 2017-2021 Parity Technologies (UK) Ltd. // This file is part of Polkadot. // Polkadot is free software: you can redistribute it and/or modify @@ -15,8 +15,8 @@ // along with Polkadot. If not, see . //! Autogenerated weights for `pallet_scheduler` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-07-02, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2021-12-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 128 // Executed Command: @@ -33,6 +33,7 @@ // --header=./file_header.txt // --output=./runtime/westend/src/weights/ +#![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -42,31 +43,149 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_scheduler`. pub struct WeightInfo(PhantomData); impl pallet_scheduler::WeightInfo for WeightInfo { - fn schedule(s: u32) -> Weight { - (28_493_000 as Weight) + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 37_000 + .saturating_add((39_315_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((4 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_named_resolved(s: u32, ) -> Weight { + (4_231_000 as Weight) + // Standard Error: 32_000 + .saturating_add((30_830_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + fn on_initialize_periodic_resolved(s: u32, ) -> Weight { + (0 as Weight) + // Standard Error: 37_000 + .saturating_add((33_897_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + fn on_initialize_resolved(s: u32, ) -> Weight { + (3_095_000 as Weight) + // Standard Error: 34_000 + .saturating_add((28_718_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:0) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_named_aborted(s: u32, ) -> Weight { + (8_499_000 as Weight) + // Standard Error: 22_000 + .saturating_add((14_712_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Preimage PreimageFor (r:1 w:0) + fn on_initialize_aborted(s: u32, ) -> Weight { + (9_314_000 as Weight) + // Standard Error: 17_000 + .saturating_add((9_745_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + // Storage: Scheduler Agenda (r:2 w:2) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_periodic_named(s: u32, ) -> Weight { + (10_351_000 as Weight) + // Standard Error: 25_000 + .saturating_add((22_248_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:2 w:2) + fn on_initialize_periodic(s: u32, ) -> Weight { + (12_597_000 as Weight) + // Standard Error: 21_000 + .saturating_add((16_961_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn on_initialize_named(s: u32, ) -> Weight { + (14_024_000 as Weight) + // Standard Error: 18_000 + .saturating_add((14_306_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + // Storage: Scheduler Agenda (r:1 w:1) + fn on_initialize(s: u32, ) -> Weight { + (13_450_000 as Weight) + // Standard Error: 19_000 + .saturating_add((12_353_000 as Weight).saturating_mul(s as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: Scheduler Agenda (r:1 w:1) + fn schedule(s: u32, ) -> Weight { + (22_805_000 as Weight) // Standard Error: 0 - .saturating_add((39_000 as Weight).saturating_mul(s as Weight)) + .saturating_add((38_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - fn cancel(s: u32) -> Weight { - (27_793_000 as Weight) - // Standard Error: 14_000 - .saturating_add((6_333_000 as Weight).saturating_mul(s as Weight)) + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + fn cancel(s: u32, ) -> Weight { + (20_933_000 as Weight) + // Standard Error: 5_000 + .saturating_add((2_267_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - fn schedule_named(s: u32) -> Weight { - (34_482_000 as Weight) + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + fn schedule_named(s: u32, ) -> Weight { + (28_047_000 as Weight) // Standard Error: 1_000 - .saturating_add((56_000 as Weight).saturating_mul(s as Weight)) + .saturating_add((49_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } - fn cancel_named(s: u32) -> Weight { - (29_087_000 as Weight) - // Standard Error: 14_000 - .saturating_add((6_341_000 as Weight).saturating_mul(s as Weight)) + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + fn cancel_named(s: u32, ) -> Weight { + (23_474_000 as Weight) + // Standard Error: 6_000 + .saturating_add((2_242_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) }