From 4f83b3e24747ea7ed56424e7864a73c942d13c32 Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Wed, 24 Feb 2021 14:38:22 +0000 Subject: [PATCH] Properly use weights for the new election pallet (#2508) * Revert some weights * Add features * Update lock file * cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/ * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * Use read weights * cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/ * export stuff * Update substrate Co-authored-by: Parity Benchmarking Bot --- polkadot/Cargo.lock | 284 +++++++++--------- polkadot/runtime/kusama/Cargo.toml | 1 + polkadot/runtime/kusama/src/lib.rs | 3 +- polkadot/runtime/kusama/src/weights/mod.rs | 1 + .../pallet_election_provider_multi_phase.rs | 90 ++++++ polkadot/runtime/polkadot/Cargo.toml | 1 + polkadot/runtime/polkadot/src/lib.rs | 3 +- polkadot/runtime/polkadot/src/weights/mod.rs | 1 + .../pallet_election_provider_multi_phase.rs | 90 ++++++ polkadot/runtime/westend/Cargo.toml | 1 + polkadot/runtime/westend/src/lib.rs | 3 +- polkadot/runtime/westend/src/weights/mod.rs | 1 + .../pallet_election_provider_multi_phase.rs | 90 ++++++ 13 files changed, 425 insertions(+), 144 deletions(-) create mode 100644 polkadot/runtime/kusama/src/weights/pallet_election_provider_multi_phase.rs create mode 100644 polkadot/runtime/polkadot/src/weights/pallet_election_provider_multi_phase.rs create mode 100644 polkadot/runtime/westend/src/weights/pallet_election_provider_multi_phase.rs diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index 845c58b4bf..ff1c76da8a 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -1596,7 +1596,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", ] @@ -1614,7 +1614,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -1632,7 +1632,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "Inflector", "chrono", @@ -1655,7 +1655,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -1671,7 +1671,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "13.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "serde", @@ -1682,7 +1682,7 @@ dependencies = [ [[package]] name = "frame-support" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "bitflags", "frame-metadata", @@ -1708,7 +1708,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -1720,7 +1720,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1732,7 +1732,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "proc-macro2", "quote", @@ -1742,7 +1742,7 @@ dependencies = [ [[package]] name = "frame-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1758,7 +1758,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -1772,7 +1772,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "sp-api", @@ -4022,7 +4022,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-authority-discovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -4038,7 +4038,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -4053,7 +4053,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4077,7 +4077,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4091,7 +4091,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4106,7 +4106,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4122,7 +4122,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4137,11 +4137,13 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ + "frame-benchmarking", "frame-support", "frame-system", "parity-scale-codec", + "rand 0.7.3", "serde", "sp-arithmetic", "sp-election-providers", @@ -4155,7 +4157,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4170,7 +4172,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4191,7 +4193,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4207,7 +4209,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4226,7 +4228,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4243,7 +4245,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -4257,7 +4259,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4273,7 +4275,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -4287,7 +4289,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -4302,7 +4304,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4324,7 +4326,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4340,7 +4342,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -4353,7 +4355,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "enumflags2", "frame-support", @@ -4368,7 +4370,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4383,7 +4385,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -4403,7 +4405,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4419,7 +4421,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -4433,7 +4435,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4456,7 +4458,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -4467,7 +4469,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -4481,7 +4483,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4499,7 +4501,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4514,7 +4516,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-support", "frame-system", @@ -4530,7 +4532,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -4547,7 +4549,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -4558,7 +4560,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4574,7 +4576,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4590,7 +4592,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "enumflags2", "frame-benchmarking", @@ -6984,7 +6986,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "async-trait", "derive_more", @@ -7012,7 +7014,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7035,7 +7037,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -7052,7 +7054,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7073,7 +7075,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -7084,7 +7086,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "chrono", "fdlimit", @@ -7122,7 +7124,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "fnv", @@ -7156,7 +7158,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "blake2-rfc", "hash-db", @@ -7186,7 +7188,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "sc-client-api", "sp-blockchain", @@ -7197,7 +7199,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "fork-tree", @@ -7243,7 +7245,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "futures 0.3.12", @@ -7267,7 +7269,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "fork-tree", "parity-scale-codec", @@ -7280,7 +7282,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7306,7 +7308,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "log", "sc-client-api", @@ -7320,7 +7322,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "lazy_static", @@ -7349,7 +7351,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "parity-scale-codec", @@ -7365,7 +7367,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "log", "parity-scale-codec", @@ -7380,7 +7382,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "log", "parity-scale-codec", @@ -7398,7 +7400,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "dyn-clone", @@ -7437,7 +7439,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "finality-grandpa", @@ -7461,7 +7463,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-warp-sync" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "futures 0.3.12", @@ -7481,7 +7483,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "ansi_term 0.12.1", "futures 0.3.12", @@ -7499,7 +7501,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "async-trait", "derive_more", @@ -7519,7 +7521,7 @@ dependencies = [ [[package]] name = "sc-light" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "hash-db", "lazy_static", @@ -7538,7 +7540,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "async-std", "async-trait", @@ -7591,7 +7593,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7607,7 +7609,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "bytes 0.5.6", "fnv", @@ -7634,7 +7636,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "libp2p", @@ -7647,7 +7649,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -7656,7 +7658,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "hash-db", @@ -7690,7 +7692,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "futures 0.3.12", @@ -7714,7 +7716,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.1.29", "jsonrpc-core", @@ -7732,7 +7734,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "directories", "exit-future", @@ -7795,7 +7797,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "log", "parity-scale-codec", @@ -7810,7 +7812,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -7830,7 +7832,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "chrono", "futures 0.3.12", @@ -7852,7 +7854,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "ansi_term 0.12.1", "atty", @@ -7880,7 +7882,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -7891,7 +7893,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "futures 0.3.12", @@ -7913,7 +7915,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "futures-diagnose", @@ -8319,7 +8321,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "log", "sp-core", @@ -8331,7 +8333,7 @@ dependencies = [ [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "hash-db", "parity-scale-codec", @@ -8347,7 +8349,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -8359,7 +8361,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "serde", @@ -8371,7 +8373,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "integer-sqrt", "num-traits", @@ -8384,7 +8386,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "sp-api", @@ -8396,7 +8398,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -8407,7 +8409,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "sp-api", @@ -8419,7 +8421,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "log", @@ -8437,7 +8439,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "serde", "serde_json", @@ -8446,7 +8448,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -8472,7 +8474,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "merlin", "parity-scale-codec", @@ -8492,7 +8494,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "sp-arithmetic", @@ -8502,7 +8504,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -8514,7 +8516,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "base58", "blake2-rfc", @@ -8558,7 +8560,7 @@ dependencies = [ [[package]] name = "sp-database" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -8567,7 +8569,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "proc-macro2", "quote", @@ -8577,7 +8579,7 @@ dependencies = [ [[package]] name = "sp-election-providers" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "sp-arithmetic", @@ -8588,7 +8590,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "environmental", "parity-scale-codec", @@ -8599,7 +8601,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "finality-grandpa", "log", @@ -8616,7 +8618,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", @@ -8628,7 +8630,7 @@ dependencies = [ [[package]] name = "sp-io" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "hash-db", @@ -8652,7 +8654,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "lazy_static", "sp-core", @@ -8663,7 +8665,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "async-trait", "derive_more", @@ -8680,7 +8682,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "serde", @@ -8693,7 +8695,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-compact" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -8704,7 +8706,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "sp-api", "sp-core", @@ -8714,7 +8716,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "backtrace", ] @@ -8722,7 +8724,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "serde", "sp-core", @@ -8731,7 +8733,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "either", "hash256-std-hasher", @@ -8752,7 +8754,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8769,7 +8771,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "Inflector", "proc-macro-crate", @@ -8781,7 +8783,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "serde", "serde_json", @@ -8790,7 +8792,7 @@ dependencies = [ [[package]] name = "sp-session" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "sp-api", @@ -8803,7 +8805,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -8813,7 +8815,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "hash-db", "log", @@ -8835,12 +8837,12 @@ dependencies = [ [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8853,7 +8855,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "log", "sp-core", @@ -8866,7 +8868,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8880,7 +8882,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "log", "parity-scale-codec", @@ -8893,7 +8895,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "derive_more", "futures 0.3.12", @@ -8909,7 +8911,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "hash-db", "memory-db", @@ -8923,7 +8925,7 @@ dependencies = [ [[package]] name = "sp-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "futures-core", @@ -8935,7 +8937,7 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8947,7 +8949,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9079,7 +9081,7 @@ dependencies = [ [[package]] name = "substrate-browser-utils" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "chrono", "console_error_panic_hook", @@ -9106,7 +9108,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "platforms", ] @@ -9114,7 +9116,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.12", @@ -9137,7 +9139,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "async-std", "derive_more", @@ -9151,7 +9153,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.1.29", "futures 0.3.12", @@ -9178,7 +9180,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "futures 0.3.12", "substrate-test-utils-derive", @@ -9188,7 +9190,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#ad8c585d1c1704b534a92c49e0700080c9d8e13d" +source = "git+https://github.com/paritytech/substrate?branch=master#1db510877725255634dd4d50b696da79b152abb7" dependencies = [ "proc-macro-crate", "quote", diff --git a/polkadot/runtime/kusama/Cargo.toml b/polkadot/runtime/kusama/Cargo.toml index 1637b773dc..8bdac5bfde 100644 --- a/polkadot/runtime/kusama/Cargo.toml +++ b/polkadot/runtime/kusama/Cargo.toml @@ -164,6 +164,7 @@ runtime-benchmarks = [ "pallet-collective/runtime-benchmarks", "pallet-democracy/runtime-benchmarks", "pallet-elections-phragmen/runtime-benchmarks", + "pallet-election-provider-multi-phase/runtime-benchmarks", "pallet-grandpa/runtime-benchmarks", "pallet-identity/runtime-benchmarks", "pallet-im-online/runtime-benchmarks", diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index ff1a1c3ad6..e213624def 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -330,8 +330,8 @@ impl pallet_election_provider_multi_phase::Config for Runtime { type OnChainAccuracy = Perbill; type CompactSolution = pallet_staking::CompactAssignments; type Fallback = Fallback; - type WeightInfo = pallet_election_provider_multi_phase::weights::SubstrateWeight; type BenchmarkingConfig = (); + type WeightInfo = weights::pallet_election_provider_multi_phase::WeightInfo; } // TODO #6469: This shouldn't be static, but a lazily cached value, not built unless needed, and @@ -1366,6 +1366,7 @@ sp_api::impl_runtime_apis! { add_benchmark!(params, batches, pallet_collective, Council); add_benchmark!(params, batches, pallet_democracy, Democracy); add_benchmark!(params, batches, pallet_elections_phragmen, ElectionsPhragmen); + add_benchmark!(params, batches, pallet_election_provider_multi_phase, ElectionProviderMultiPhase); add_benchmark!(params, batches, pallet_identity, Identity); add_benchmark!(params, batches, pallet_im_online, ImOnline); add_benchmark!(params, batches, pallet_indices, Indices); diff --git a/polkadot/runtime/kusama/src/weights/mod.rs b/polkadot/runtime/kusama/src/weights/mod.rs index 177e167173..f4b1a3b779 100644 --- a/polkadot/runtime/kusama/src/weights/mod.rs +++ b/polkadot/runtime/kusama/src/weights/mod.rs @@ -21,6 +21,7 @@ pub mod pallet_bounties; pub mod pallet_collective; pub mod pallet_democracy; pub mod pallet_elections_phragmen; +pub mod pallet_election_provider_multi_phase; pub mod pallet_identity; pub mod pallet_im_online; pub mod pallet_indices; 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 new file mode 100644 index 0000000000..e6ae96f39b --- /dev/null +++ b/polkadot/runtime/kusama/src/weights/pallet_election_provider_multi_phase.rs @@ -0,0 +1,90 @@ +// Copyright 2017-2020 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_election_provider_multi_phase +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 +//! DATE: 2021-02-23, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128 + +// Executed Command: +// target/release/polkadot +// benchmark +// --chain=kusama-dev +// --steps=50 +// --repeat=20 +// --pallet=pallet_election_provider_multi_phase +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --header=./file_header.txt +// --output=./runtime/kusama/src/weights/ + + +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +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 { + fn on_initialize_nothing() -> Weight { + (21_355_000 as Weight) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + } + fn on_initialize_open_signed() -> Weight { + (72_565_000 as Weight) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } + fn on_initialize_open_unsigned_with_snapshot() -> Weight { + (71_673_000 as Weight) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } + fn on_initialize_open_unsigned_without_snapshot() -> Weight { + (19_070_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: 22_000 + .saturating_add((4_142_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 76_000 + .saturating_add((181_000 as Weight).saturating_mul(t as Weight)) + // Standard Error: 22_000 + .saturating_add((13_682_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 114_000 + .saturating_add((4_802_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(6 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: 13_000 + .saturating_add((4_247_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 44_000 + .saturating_add((744_000 as Weight).saturating_mul(t as Weight)) + // Standard Error: 13_000 + .saturating_add((10_137_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 67_000 + .saturating_add((4_516_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(3 as Weight)) + } +} diff --git a/polkadot/runtime/polkadot/Cargo.toml b/polkadot/runtime/polkadot/Cargo.toml index 2660f448d1..8cd961c02f 100644 --- a/polkadot/runtime/polkadot/Cargo.toml +++ b/polkadot/runtime/polkadot/Cargo.toml @@ -159,6 +159,7 @@ runtime-benchmarks = [ "pallet-collective/runtime-benchmarks", "pallet-democracy/runtime-benchmarks", "pallet-elections-phragmen/runtime-benchmarks", + "pallet-election-provider-multi-phase/runtime-benchmarks", "pallet-grandpa/runtime-benchmarks", "pallet-identity/runtime-benchmarks", "pallet-im-online/runtime-benchmarks", diff --git a/polkadot/runtime/polkadot/src/lib.rs b/polkadot/runtime/polkadot/src/lib.rs index 83502543a2..6a86390eb0 100644 --- a/polkadot/runtime/polkadot/src/lib.rs +++ b/polkadot/runtime/polkadot/src/lib.rs @@ -339,8 +339,8 @@ impl pallet_election_provider_multi_phase::Config for Runtime { type OnChainAccuracy = Perbill; type CompactSolution = pallet_staking::CompactAssignments; type Fallback = Fallback; - type WeightInfo = pallet_election_provider_multi_phase::weights::SubstrateWeight; type BenchmarkingConfig = (); + type WeightInfo = weights::pallet_election_provider_multi_phase::WeightInfo; } // TODO #6469: This shouldn't be static, but a lazily cached value, not built unless needed, and @@ -1362,6 +1362,7 @@ sp_api::impl_runtime_apis! { add_benchmark!(params, batches, pallet_collective, Council); add_benchmark!(params, batches, pallet_democracy, Democracy); add_benchmark!(params, batches, pallet_elections_phragmen, ElectionsPhragmen); + add_benchmark!(params, batches, pallet_election_provider_multi_phase, ElectionProviderMultiPhase); add_benchmark!(params, batches, pallet_identity, Identity); add_benchmark!(params, batches, pallet_im_online, ImOnline); add_benchmark!(params, batches, pallet_indices, Indices); diff --git a/polkadot/runtime/polkadot/src/weights/mod.rs b/polkadot/runtime/polkadot/src/weights/mod.rs index cb9ea434b7..2daad49be6 100644 --- a/polkadot/runtime/polkadot/src/weights/mod.rs +++ b/polkadot/runtime/polkadot/src/weights/mod.rs @@ -20,6 +20,7 @@ pub mod pallet_balances; pub mod pallet_collective; pub mod pallet_democracy; pub mod pallet_elections_phragmen; +pub mod pallet_election_provider_multi_phase; pub mod pallet_identity; pub mod pallet_im_online; pub mod pallet_indices; 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 new file mode 100644 index 0000000000..603db418d5 --- /dev/null +++ b/polkadot/runtime/polkadot/src/weights/pallet_election_provider_multi_phase.rs @@ -0,0 +1,90 @@ +// Copyright 2017-2020 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_election_provider_multi_phase +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 +//! DATE: 2021-02-24, 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_election_provider_multi_phase +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --header=./file_header.txt +// --output=./runtime/polkadot/src/weights/ + + +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +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 { + fn on_initialize_nothing() -> Weight { + (21_498_000 as Weight) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + } + fn on_initialize_open_signed() -> Weight { + (73_385_000 as Weight) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } + fn on_initialize_open_unsigned_with_snapshot() -> Weight { + (72_735_000 as Weight) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } + fn on_initialize_open_unsigned_without_snapshot() -> Weight { + (19_735_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: 22_000 + .saturating_add((4_204_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 73_000 + .saturating_add((273_000 as Weight).saturating_mul(t as Weight)) + // Standard Error: 22_000 + .saturating_add((13_840_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 110_000 + .saturating_add((4_795_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(6 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: 12_000 + .saturating_add((4_284_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 43_000 + .saturating_add((680_000 as Weight).saturating_mul(t as Weight)) + // Standard Error: 12_000 + .saturating_add((10_301_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 64_000 + .saturating_add((4_349_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(3 as Weight)) + } +} diff --git a/polkadot/runtime/westend/Cargo.toml b/polkadot/runtime/westend/Cargo.toml index cc1b4a359a..2a7f4d77e5 100644 --- a/polkadot/runtime/westend/Cargo.toml +++ b/polkadot/runtime/westend/Cargo.toml @@ -162,6 +162,7 @@ runtime-benchmarks = [ "pallet-collective/runtime-benchmarks", "pallet-democracy/runtime-benchmarks", "pallet-elections-phragmen/runtime-benchmarks", + "pallet-election-provider-multi-phase/runtime-benchmarks", "pallet-grandpa/runtime-benchmarks", "pallet-identity/runtime-benchmarks", "pallet-im-online/runtime-benchmarks", diff --git a/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index cd503410c8..b914d2c819 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -321,8 +321,8 @@ impl pallet_election_provider_multi_phase::Config for Runtime { type OnChainAccuracy = Perbill; type CompactSolution = pallet_staking::CompactAssignments; type Fallback = Fallback; - type WeightInfo = pallet_election_provider_multi_phase::weights::SubstrateWeight; type BenchmarkingConfig = (); + type WeightInfo = weights::pallet_election_provider_multi_phase::WeightInfo; } pallet_staking_reward_curve::build! { @@ -1075,6 +1075,7 @@ sp_api::impl_runtime_apis! { let params = (&config, &whitelist); add_benchmark!(params, batches, pallet_balances, Balances); + add_benchmark!(params, batches, pallet_election_provider_multi_phase, ElectionProviderMultiPhase); add_benchmark!(params, batches, pallet_identity, Identity); add_benchmark!(params, batches, pallet_im_online, ImOnline); add_benchmark!(params, batches, pallet_indices, Indices); diff --git a/polkadot/runtime/westend/src/weights/mod.rs b/polkadot/runtime/westend/src/weights/mod.rs index afc76fd214..f3141b932b 100644 --- a/polkadot/runtime/westend/src/weights/mod.rs +++ b/polkadot/runtime/westend/src/weights/mod.rs @@ -17,6 +17,7 @@ pub mod frame_system; pub mod pallet_balances; +pub mod pallet_election_provider_multi_phase; pub mod pallet_identity; pub mod pallet_im_online; pub mod pallet_indices; 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 new file mode 100644 index 0000000000..6d1276900c --- /dev/null +++ b/polkadot/runtime/westend/src/weights/pallet_election_provider_multi_phase.rs @@ -0,0 +1,90 @@ +// Copyright 2017-2020 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_election_provider_multi_phase +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 +//! DATE: 2021-02-23, 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_election_provider_multi_phase +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --header=./file_header.txt +// --output=./runtime/westend/src/weights/ + + +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +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 { + fn on_initialize_nothing() -> Weight { + (21_410_000 as Weight) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + } + fn on_initialize_open_signed() -> Weight { + (72_881_000 as Weight) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } + fn on_initialize_open_unsigned_with_snapshot() -> Weight { + (71_493_000 as Weight) + .saturating_add(T::DbWeight::get().reads(7 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } + fn on_initialize_open_unsigned_without_snapshot() -> Weight { + (18_249_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: 22_000 + .saturating_add((4_209_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 75_000 + .saturating_add((275_000 as Weight).saturating_mul(t as Weight)) + // Standard Error: 22_000 + .saturating_add((14_019_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 113_000 + .saturating_add((4_613_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(6 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: 12_000 + .saturating_add((4_292_000 as Weight).saturating_mul(v as Weight)) + // Standard Error: 41_000 + .saturating_add((707_000 as Weight).saturating_mul(t as Weight)) + // Standard Error: 12_000 + .saturating_add((10_456_000 as Weight).saturating_mul(a as Weight)) + // Standard Error: 62_000 + .saturating_add((4_432_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(3 as Weight)) + } +}