From 94b415de754dfc759bb3a4c26e44242cff20165e Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Thu, 19 Aug 2021 10:53:06 +0100 Subject: [PATCH] Companion for https://github.com/paritytech/substrate/pull/9569 (#3662) * Fix weights * Fix more * update Substrate * fmt Co-authored-by: parity-processbot <> --- polkadot/Cargo.lock | 332 ++++++++++-------- .../pallet_election_provider_multi_phase.rs | 142 +++++--- .../pallet_election_provider_multi_phase.rs | 136 ++++--- polkadot/runtime/test-runtime/src/lib.rs | 1 - .../pallet_election_provider_multi_phase.rs | 136 ++++--- 5 files changed, 449 insertions(+), 298 deletions(-) diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index fce796875a..58092e13c6 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -1923,7 +1923,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", ] @@ -1941,7 +1941,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -1960,7 +1960,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "Inflector", "chrono", @@ -1986,7 +1986,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -1999,7 +1999,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -2014,7 +2014,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "14.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "serde", @@ -2025,7 +2025,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "bitflags", "frame-metadata", @@ -2051,7 +2051,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -2063,7 +2063,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.0.0", @@ -2075,7 +2075,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "proc-macro2", "quote", @@ -2085,7 +2085,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-metadata", "frame-support", @@ -2106,7 +2106,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -2116,7 +2116,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "log", @@ -2132,7 +2132,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -2146,7 +2146,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "sp-api", @@ -2155,7 +2155,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "sp-api", @@ -4554,7 +4554,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -4569,7 +4569,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -4583,7 +4583,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4606,7 +4606,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4661,7 +4661,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4739,7 +4739,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4755,7 +4755,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4770,7 +4770,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4786,12 +4786,14 @@ dependencies = [ "sp-runtime", "sp-std", "static_assertions", + "strum 0.21.0", + "strum_macros 0.21.1", ] [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4808,7 +4810,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4822,7 +4824,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4844,7 +4846,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4859,7 +4861,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4878,7 +4880,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4894,7 +4896,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4909,7 +4911,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -4926,7 +4928,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -4942,7 +4944,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -4959,7 +4961,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -4973,7 +4975,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -4986,7 +4988,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -5002,7 +5004,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5024,7 +5026,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -5038,7 +5040,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -5051,7 +5053,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -5066,7 +5068,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -5086,7 +5088,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -5102,7 +5104,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -5115,7 +5117,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5137,7 +5139,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -5148,7 +5150,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "log", "sp-arithmetic", @@ -5157,7 +5159,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -5170,7 +5172,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -5187,7 +5189,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -5202,7 +5204,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-support", "frame-system", @@ -5218,7 +5220,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5235,7 +5237,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5246,7 +5248,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -5262,7 +5264,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -5277,7 +5279,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-benchmarking", "frame-support", @@ -6324,7 +6326,7 @@ dependencies = [ "polkadot-primitives", "sc-authority-discovery", "sc-network", - "strum", + "strum 0.20.0", "thiserror", ] @@ -7810,7 +7812,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "env_logger 0.9.0", "jsonrpsee-proc-macros", @@ -8092,7 +8094,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "log", "sp-core", @@ -8103,7 +8105,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "derive_more", @@ -8130,7 +8132,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "futures 0.3.16", "futures-timer 3.0.2", @@ -8153,7 +8155,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -8169,7 +8171,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8185,7 +8187,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -8196,7 +8198,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "chrono", "fdlimit", @@ -8234,7 +8236,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "fnv", "futures 0.3.16", @@ -8262,7 +8264,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "hash-db", "kvdb", @@ -8287,7 +8289,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "futures 0.3.16", @@ -8311,7 +8313,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "derive_more", @@ -8354,7 +8356,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "derive_more", "futures 0.3.16", @@ -8378,7 +8380,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8391,7 +8393,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "assert_matches", "async-trait", @@ -8425,7 +8427,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "futures 0.3.16", @@ -8451,7 +8453,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "sc-client-api", "sp-authorship", @@ -8462,7 +8464,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "lazy_static", "libsecp256k1 0.6.0", @@ -8488,7 +8490,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "derive_more", "parity-scale-codec", @@ -8505,7 +8507,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "log", "parity-scale-codec", @@ -8520,7 +8522,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8539,7 +8541,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "derive_more", @@ -8576,7 +8578,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "derive_more", "finality-grandpa", @@ -8600,7 +8602,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "ansi_term 0.12.1", "futures 0.3.16", @@ -8617,7 +8619,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "derive_more", @@ -8632,7 +8634,7 @@ dependencies = [ [[package]] name = "sc-light" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "hash-db", "parity-scale-codec", @@ -8650,7 +8652,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-std", "async-trait", @@ -8701,7 +8703,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "futures 0.3.16", "futures-timer 3.0.2", @@ -8717,7 +8719,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "bytes 1.0.1", "fnv", @@ -8744,7 +8746,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "futures 0.3.16", "libp2p", @@ -8757,7 +8759,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8766,7 +8768,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "futures 0.3.16", "hash-db", @@ -8797,7 +8799,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "derive_more", "futures 0.3.16", @@ -8822,7 +8824,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "futures 0.3.16", "jsonrpc-core", @@ -8838,7 +8840,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "directories", @@ -8902,7 +8904,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "log", "parity-scale-codec", @@ -8916,7 +8918,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8938,7 +8940,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "chrono", "futures 0.3.16", @@ -8956,7 +8958,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "ansi_term 0.12.1", "atty", @@ -8987,7 +8989,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -8998,7 +9000,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "futures 0.3.16", "intervalier", @@ -9025,7 +9027,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "derive_more", "futures 0.3.16", @@ -9459,7 +9461,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "hash-db", "log", @@ -9476,7 +9478,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", @@ -9488,7 +9490,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "serde", @@ -9500,7 +9502,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "integer-sqrt", "num-traits", @@ -9514,7 +9516,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "sp-api", @@ -9526,7 +9528,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "parity-scale-codec", @@ -9538,7 +9540,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "sp-api", @@ -9550,7 +9552,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "futures 0.3.16", "log", @@ -9568,7 +9570,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "futures 0.3.16", @@ -9587,7 +9589,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "merlin", @@ -9609,7 +9611,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "sp-arithmetic", @@ -9619,7 +9621,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9631,7 +9633,7 @@ dependencies = [ [[package]] name = "sp-core" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "base58", "blake2-rfc", @@ -9675,7 +9677,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -9684,7 +9686,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "proc-macro2", "quote", @@ -9694,7 +9696,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "environmental", "parity-scale-codec", @@ -9705,7 +9707,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "finality-grandpa", "log", @@ -9722,7 +9724,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9736,7 +9738,7 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "futures 0.3.16", "hash-db", @@ -9761,18 +9763,18 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "lazy_static", "sp-core", "sp-runtime", - "strum", + "strum 0.20.0", ] [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "derive_more", @@ -9789,7 +9791,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "ruzstd", "zstd", @@ -9798,7 +9800,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "serde", @@ -9811,7 +9813,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -9822,7 +9824,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "sp-api", "sp-core", @@ -9832,7 +9834,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "backtrace", ] @@ -9840,7 +9842,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "rustc-hash", "serde", @@ -9850,7 +9852,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "either", "hash256-std-hasher", @@ -9871,7 +9873,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9888,7 +9890,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", @@ -9900,7 +9902,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "serde", "serde_json", @@ -9909,7 +9911,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "sp-api", @@ -9922,7 +9924,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -9932,7 +9934,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "hash-db", "log", @@ -9955,12 +9957,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" [[package]] name = "sp-storage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9973,7 +9975,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "log", "sp-core", @@ -9986,7 +9988,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -10002,7 +10004,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "erased-serde", "log", @@ -10020,7 +10022,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "sp-api", "sp-runtime", @@ -10029,7 +10031,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "log", @@ -10044,7 +10046,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "hash-db", "memory-db", @@ -10058,7 +10060,7 @@ dependencies = [ [[package]] name = "sp-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "futures 0.3.16", "futures-timer 3.0.2", @@ -10069,7 +10071,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10084,7 +10086,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -10095,7 +10097,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10233,9 +10235,15 @@ version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7318c509b5ba57f18533982607f24070a55d353e90d4cae30c467cdb2ad5ac5c" dependencies = [ - "strum_macros", + "strum_macros 0.20.1", ] +[[package]] +name = "strum" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aaf86bbcfd1fa9670b7a129f64fc0c9fcbbfe4f1bc4210e9e98fe71ffc12cde2" + [[package]] name = "strum_macros" version = "0.20.1" @@ -10248,6 +10256,18 @@ dependencies = [ "syn", ] +[[package]] +name = "strum_macros" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d06aaeeee809dbc59eb4556183dd927df67db1540de5be8d3ec0b6636358a5ec" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sub-tokens" version = "0.1.0" @@ -10272,7 +10292,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "platforms", ] @@ -10280,7 +10300,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.16", @@ -10302,7 +10322,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-std", "derive_more", @@ -10316,7 +10336,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "async-trait", "futures 0.3.16", @@ -10343,7 +10363,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "futures 0.3.16", "substrate-test-utils-derive", @@ -10353,7 +10373,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "proc-macro-crate 1.0.0", "quote", @@ -10363,7 +10383,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "ansi_term 0.12.1", "build-helper", @@ -10518,7 +10538,7 @@ dependencies = [ [[package]] name = "test-runner" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "frame-system", "futures 0.3.16", @@ -10969,7 +10989,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#3c2b2675c80f63b5371f4ea70890edb8d556a93c" +source = "git+https://github.com/paritytech/substrate?branch=master#44ee839d5b2a224da099d367df8313077776b736" dependencies = [ "log", "parity-scale-codec", diff --git a/polkadot/runtime/kusama/src/weights/pallet_election_provider_multi_phase.rs b/polkadot/runtime/kusama/src/weights/pallet_election_provider_multi_phase.rs index 54f42a7f0a..913050e484 100644 --- a/polkadot/runtime/kusama/src/weights/pallet_election_provider_multi_phase.rs +++ b/polkadot/runtime/kusama/src/weights/pallet_election_provider_multi_phase.rs @@ -42,69 +42,113 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_election_provider_multi_phase`. pub struct WeightInfo(PhantomData); impl pallet_election_provider_multi_phase::WeightInfo for WeightInfo { + // Storage: Staking CurrentEra (r:1 w:0) + // Storage: Staking CurrentPlannedSession (r:1 w:0) + // Storage: Staking ErasStartSessionIndex (r:1 w:0) + // Storage: Babe EpochIndex (r:1 w:0) + // Storage: Babe GenesisSlot (r:1 w:0) + // Storage: Babe CurrentSlot (r:1 w:0) + // Storage: Staking ForceEra (r:1 w:0) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0) fn on_initialize_nothing() -> Weight { - (22_984_000 as Weight).saturating_add(T::DbWeight::get().reads(8 as Weight)) + (23_878_000 as Weight).saturating_add(T::DbWeight::get().reads(8 as Weight)) } + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1) fn on_initialize_open_signed() -> Weight { - (83_667_000 as Weight) - .saturating_add(T::DbWeight::get().reads(10 as Weight)) - .saturating_add(T::DbWeight::get().writes(4 as Weight)) - } - fn on_initialize_open_unsigned_with_snapshot() -> Weight { - (83_403_000 as Weight) - .saturating_add(T::DbWeight::get().reads(10 as Weight)) - .saturating_add(T::DbWeight::get().writes(4 as Weight)) - } - fn on_initialize_open_unsigned_without_snapshot() -> Weight { - (18_070_000 as Weight) + (34_547_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - fn elect_queued(_v: u32, _t: u32, _a: u32, _d: u32) -> Weight { - (8_641_847_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(6 as Weight)) - } - fn submit(c: u32) -> Weight { - (84_430_000 as Weight) - // Standard Error: 146_000 - .saturating_add((2_758_000 as Weight).saturating_mul(c as Weight)) - .saturating_add(T::DbWeight::get().reads(3 as Weight)) + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1) + fn on_initialize_open_unsigned() -> Weight { + (33_568_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - fn submit_unsigned(v: u32, t: u32, a: u32, d: u32) -> Weight { - (0 as Weight) - // Standard Error: 13_000 - .saturating_add((4_805_000 as Weight).saturating_mul(v as Weight)) - // Standard Error: 44_000 - .saturating_add((305_000 as Weight).saturating_mul(t as Weight)) - // Standard Error: 13_000 - .saturating_add((16_090_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 67_000 - .saturating_add((5_619_000 as Weight).saturating_mul(d as Weight)) - .saturating_add(T::DbWeight::get().reads(7 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) - } - fn feasibility_check(v: u32, t: u32, a: u32, d: u32) -> Weight { - (0 as Weight) - // Standard Error: 8_000 - .saturating_add((4_729_000 as Weight).saturating_mul(v as Weight)) - // Standard Error: 29_000 - .saturating_add((124_000 as Weight).saturating_mul(t as Weight)) - // Standard Error: 8_000 - .saturating_add((13_511_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 44_000 - .saturating_add((4_469_000 as Weight).saturating_mul(d as Weight)) - .saturating_add(T::DbWeight::get().reads(4 as Weight)) - } + // Storage: System Account (r:1 w:1) + // Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1) fn finalize_signed_phase_accept_solution() -> Weight { - (47_783_000 as Weight) + (50_596_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } + // Storage: System Account (r:1 w:1) fn finalize_signed_phase_reject_solution() -> Weight { - (21_277_000 as Weight) + (33_389_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1) + // Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1) + fn create_snapshot_internal() -> Weight { + (8_835_233_000 as Weight).saturating_add(T::DbWeight::get().writes(3 as Weight)) + } + // Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1) + // Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1) + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1) + // Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0) + // Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1) + // Storage: ElectionProviderMultiPhase Round (r:1 w:1) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1) + // Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1) + fn elect_queued(a: u32, d: u32) -> Weight { + (82_395_000 as Weight) + // Standard Error: 1_000 + .saturating_add((1_769_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 13_000 + .saturating_add((320_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(6 as Weight)) + .saturating_add(T::DbWeight::get().writes(8 as Weight)) + } + // Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0) + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) + // Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1) + // Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1) + fn submit(c: u32) -> Weight { + (77_368_000 as Weight) + // Standard Error: 9_000 + .saturating_add((369_000 as Weight).saturating_mul(c as Weight)) + .saturating_add(T::DbWeight::get().reads(5 as Weight)) + .saturating_add(T::DbWeight::get().writes(3 as Weight)) + } + // Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0) + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0) + // Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1) + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0) + // Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0) + // Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0) + fn submit_unsigned(v: u32, t: u32, a: u32, d: u32) -> Weight { + (0 as Weight) + // Standard Error: 4_000 + .saturating_add((3_553_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 23_000 + .saturating_add((35_000 as Weight).saturating_mul(t as Weight)) + // Standard Error: 7_000 + .saturating_add((10_600_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 59_000 + .saturating_add((6_128_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0) + // Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0) + // Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0) + fn feasibility_check(v: u32, _t: u32, a: u32, d: u32) -> Weight { + (0 as Weight) + // Standard Error: 3_000 + .saturating_add((3_478_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 6_000 + .saturating_add((8_930_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 47_000 + .saturating_add((5_199_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(4 as Weight)) + } } diff --git a/polkadot/runtime/polkadot/src/weights/pallet_election_provider_multi_phase.rs b/polkadot/runtime/polkadot/src/weights/pallet_election_provider_multi_phase.rs index bb45af1883..82de96068f 100644 --- a/polkadot/runtime/polkadot/src/weights/pallet_election_provider_multi_phase.rs +++ b/polkadot/runtime/polkadot/src/weights/pallet_election_provider_multi_phase.rs @@ -42,69 +42,113 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_election_provider_multi_phase`. pub struct WeightInfo(PhantomData); impl pallet_election_provider_multi_phase::WeightInfo for WeightInfo { + // Storage: Staking CurrentEra (r:1 w:0) + // Storage: Staking CurrentPlannedSession (r:1 w:0) + // Storage: Staking ErasStartSessionIndex (r:1 w:0) + // Storage: Babe EpochIndex (r:1 w:0) + // Storage: Babe GenesisSlot (r:1 w:0) + // Storage: Babe CurrentSlot (r:1 w:0) + // Storage: Staking ForceEra (r:1 w:0) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0) fn on_initialize_nothing() -> Weight { - (23_244_000 as Weight).saturating_add(T::DbWeight::get().reads(8 as Weight)) + (23_878_000 as Weight).saturating_add(T::DbWeight::get().reads(8 as Weight)) } + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1) fn on_initialize_open_signed() -> Weight { - (82_453_000 as Weight) - .saturating_add(T::DbWeight::get().reads(10 as Weight)) - .saturating_add(T::DbWeight::get().writes(4 as Weight)) - } - fn on_initialize_open_unsigned_with_snapshot() -> Weight { - (81_883_000 as Weight) - .saturating_add(T::DbWeight::get().reads(10 as Weight)) - .saturating_add(T::DbWeight::get().writes(4 as Weight)) - } - fn on_initialize_open_unsigned_without_snapshot() -> Weight { - (17_601_000 as Weight) + (34_547_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - fn elect_queued(_v: u32, _t: u32, _a: u32, _d: u32) -> Weight { - (5_408_539_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(6 as Weight)) - } - fn submit_unsigned(v: u32, t: u32, a: u32, d: u32) -> Weight { - (0 as Weight) - // Standard Error: 15_000 - .saturating_add((3_352_000 as Weight).saturating_mul(v as Weight)) - // Standard Error: 52_000 - .saturating_add((150_000 as Weight).saturating_mul(t as Weight)) - // Standard Error: 15_000 - .saturating_add((10_531_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 78_000 - .saturating_add((3_302_000 as Weight).saturating_mul(d as Weight)) - .saturating_add(T::DbWeight::get().reads(7 as Weight)) + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1) + fn on_initialize_open_unsigned() -> Weight { + (33_568_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - fn feasibility_check(v: u32, t: u32, a: u32, d: u32) -> Weight { - (0 as Weight) - // Standard Error: 10_000 - .saturating_add((3_365_000 as Weight).saturating_mul(v as Weight)) - // Standard Error: 34_000 - .saturating_add((295_000 as Weight).saturating_mul(t as Weight)) - // Standard Error: 10_000 - .saturating_add((8_438_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 52_000 - .saturating_add((3_606_000 as Weight).saturating_mul(d as Weight)) - .saturating_add(T::DbWeight::get().reads(4 as Weight)) - } + // Storage: System Account (r:1 w:1) + // Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1) fn finalize_signed_phase_accept_solution() -> Weight { - (47_783_000 as Weight) + (50_596_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } + // Storage: System Account (r:1 w:1) fn finalize_signed_phase_reject_solution() -> Weight { - (21_277_000 as Weight) + (33_389_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1) + // Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1) + fn create_snapshot_internal() -> Weight { + (8_835_233_000 as Weight).saturating_add(T::DbWeight::get().writes(3 as Weight)) + } + // Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1) + // Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1) + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1) + // Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0) + // Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1) + // Storage: ElectionProviderMultiPhase Round (r:1 w:1) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1) + // Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1) + fn elect_queued(a: u32, d: u32) -> Weight { + (82_395_000 as Weight) + // Standard Error: 1_000 + .saturating_add((1_769_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 13_000 + .saturating_add((320_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(6 as Weight)) + .saturating_add(T::DbWeight::get().writes(8 as Weight)) + } + // Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0) + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) + // Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1) + // Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1) fn submit(c: u32) -> Weight { - (78_972_000 as Weight) - // Standard Error: 16_000 - .saturating_add((308_000 as Weight).saturating_mul(c as Weight)) - .saturating_add(T::DbWeight::get().reads(4 as Weight)) + (77_368_000 as Weight) + // Standard Error: 9_000 + .saturating_add((369_000 as Weight).saturating_mul(c as Weight)) + .saturating_add(T::DbWeight::get().reads(5 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + // Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0) + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0) + // Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1) + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0) + // Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0) + // Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0) + fn submit_unsigned(v: u32, t: u32, a: u32, d: u32) -> Weight { + (0 as Weight) + // Standard Error: 4_000 + .saturating_add((3_553_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 23_000 + .saturating_add((35_000 as Weight).saturating_mul(t as Weight)) + // Standard Error: 7_000 + .saturating_add((10_600_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 59_000 + .saturating_add((6_128_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0) + // Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0) + // Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0) + fn feasibility_check(v: u32, _t: u32, a: u32, d: u32) -> Weight { + (0 as Weight) + // Standard Error: 3_000 + .saturating_add((3_478_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 6_000 + .saturating_add((8_930_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 47_000 + .saturating_add((5_199_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(4 as Weight)) + } } diff --git a/polkadot/runtime/test-runtime/src/lib.rs b/polkadot/runtime/test-runtime/src/lib.rs index a8f6f384cb..fa70d3ee91 100644 --- a/polkadot/runtime/test-runtime/src/lib.rs +++ b/polkadot/runtime/test-runtime/src/lib.rs @@ -315,7 +315,6 @@ parameter_types! { impl frame_election_provider_support::onchain::Config for Runtime { type AccountId = ::AccountId; type BlockNumber = ::BlockNumber; - type BlockWeights = (); type Accuracy = sp_runtime::Perbill; type DataProvider = Staking; } diff --git a/polkadot/runtime/westend/src/weights/pallet_election_provider_multi_phase.rs b/polkadot/runtime/westend/src/weights/pallet_election_provider_multi_phase.rs index 6f6c7f4be3..a285e77f01 100644 --- a/polkadot/runtime/westend/src/weights/pallet_election_provider_multi_phase.rs +++ b/polkadot/runtime/westend/src/weights/pallet_election_provider_multi_phase.rs @@ -42,69 +42,113 @@ use sp_std::marker::PhantomData; /// Weight functions for `pallet_election_provider_multi_phase`. pub struct WeightInfo(PhantomData); impl pallet_election_provider_multi_phase::WeightInfo for WeightInfo { + // Storage: Staking CurrentEra (r:1 w:0) + // Storage: Staking CurrentPlannedSession (r:1 w:0) + // Storage: Staking ErasStartSessionIndex (r:1 w:0) + // Storage: Babe EpochIndex (r:1 w:0) + // Storage: Babe GenesisSlot (r:1 w:0) + // Storage: Babe CurrentSlot (r:1 w:0) + // Storage: Staking ForceEra (r:1 w:0) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0) fn on_initialize_nothing() -> Weight { - (23_792_000 as Weight).saturating_add(T::DbWeight::get().reads(8 as Weight)) + (23_878_000 as Weight).saturating_add(T::DbWeight::get().reads(8 as Weight)) } + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1) fn on_initialize_open_signed() -> Weight { - (86_272_000 as Weight) - .saturating_add(T::DbWeight::get().reads(10 as Weight)) - .saturating_add(T::DbWeight::get().writes(4 as Weight)) - } - fn on_initialize_open_unsigned_with_snapshot() -> Weight { - (85_465_000 as Weight) - .saturating_add(T::DbWeight::get().reads(10 as Weight)) - .saturating_add(T::DbWeight::get().writes(4 as Weight)) - } - fn on_initialize_open_unsigned_without_snapshot() -> Weight { - (17_864_000 as Weight) + (34_547_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - fn elect_queued(_v: u32, _t: u32, _a: u32, _d: u32) -> Weight { - (5_511_380_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(6 as Weight)) - } - fn submit_unsigned(v: u32, t: u32, a: u32, d: u32) -> Weight { - (0 as Weight) - // Standard Error: 12_000 - .saturating_add((3_399_000 as Weight).saturating_mul(v as Weight)) - // Standard Error: 43_000 - .saturating_add((169_000 as Weight).saturating_mul(t as Weight)) - // Standard Error: 12_000 - .saturating_add((10_510_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 64_000 - .saturating_add((3_259_000 as Weight).saturating_mul(d as Weight)) - .saturating_add(T::DbWeight::get().reads(7 as Weight)) + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1) + fn on_initialize_open_unsigned() -> Weight { + (33_568_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - fn feasibility_check(v: u32, t: u32, a: u32, d: u32) -> Weight { - (0 as Weight) - // Standard Error: 7_000 - .saturating_add((3_426_000 as Weight).saturating_mul(v as Weight)) - // Standard Error: 25_000 - .saturating_add((419_000 as Weight).saturating_mul(t as Weight)) - // Standard Error: 7_000 - .saturating_add((8_695_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 38_000 - .saturating_add((3_731_000 as Weight).saturating_mul(d as Weight)) - .saturating_add(T::DbWeight::get().reads(4 as Weight)) - } + // Storage: System Account (r:1 w:1) + // Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1) fn finalize_signed_phase_accept_solution() -> Weight { - (47_783_000 as Weight) + (50_596_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } + // Storage: System Account (r:1 w:1) fn finalize_signed_phase_reject_solution() -> Weight { - (21_277_000 as Weight) + (33_389_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1) + // Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1) + fn create_snapshot_internal() -> Weight { + (8_835_233_000 as Weight).saturating_add(T::DbWeight::get().writes(3 as Weight)) + } + // Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1) + // Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1) + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1) + // Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0) + // Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1) + // Storage: ElectionProviderMultiPhase Round (r:1 w:1) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1) + // Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1) + fn elect_queued(a: u32, d: u32) -> Weight { + (82_395_000 as Weight) + // Standard Error: 1_000 + .saturating_add((1_769_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 13_000 + .saturating_add((320_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(6 as Weight)) + .saturating_add(T::DbWeight::get().writes(8 as Weight)) + } + // Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1) + // Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0) + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) + // Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1) + // Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1) fn submit(c: u32) -> Weight { - (78_972_000 as Weight) - // Standard Error: 16_000 - .saturating_add((308_000 as Weight).saturating_mul(c as Weight)) - .saturating_add(T::DbWeight::get().reads(4 as Weight)) + (77_368_000 as Weight) + // Standard Error: 9_000 + .saturating_add((369_000 as Weight).saturating_mul(c as Weight)) + .saturating_add(T::DbWeight::get().reads(5 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } + // Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0) + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0) + // Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1) + // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0) + // Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0) + // Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0) + fn submit_unsigned(v: u32, t: u32, a: u32, d: u32) -> Weight { + (0 as Weight) + // Standard Error: 4_000 + .saturating_add((3_553_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 23_000 + .saturating_add((35_000 as Weight).saturating_mul(t as Weight)) + // Standard Error: 7_000 + .saturating_add((10_600_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 59_000 + .saturating_add((6_128_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + // Storage: ElectionProviderMultiPhase Round (r:1 w:0) + // Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0) + // Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0) + // Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0) + fn feasibility_check(v: u32, _t: u32, a: u32, d: u32) -> Weight { + (0 as Weight) + // Standard Error: 3_000 + .saturating_add((3_478_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 6_000 + .saturating_add((8_930_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 47_000 + .saturating_add((5_199_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(4 as Weight)) + } }