From 04224aa4f6ec128448b90e876faaca4a57e4b8c8 Mon Sep 17 00:00:00 2001
From: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Date: Tue, 22 Sep 2020 16:01:06 +0200
Subject: [PATCH] Companion for substrate/pull/7161 (#1739)

* Companion for https://github.com/paritytech/substrate/pull/7161

* Update weights

* Update tests

* remove weight tests

* Update weights using benchmarking machine

./substrate2/target/release/substrate benchmark --chain dev --steps 50 --repeat 20 --pallet pallet_elections_phragmen --extrinsic "*" --raw --execution=wasm --wasm-execution=compiled --output

* "Update Substrate"

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: parity-processbot <>
---
 polkadot/Cargo.lock                           | 268 +++++++++---------
 polkadot/runtime/kusama/src/lib.rs            |   2 +-
 polkadot/runtime/kusama/src/weights/mod.rs    |   1 +
 .../src/weights/pallet_elections_phragmen.rs  |  89 ++++++
 polkadot/runtime/polkadot/src/lib.rs          |   2 +-
 polkadot/runtime/polkadot/src/weights/mod.rs  |   1 +
 .../src/weights/pallet_elections_phragmen.rs  |  89 ++++++
 polkadot/runtime/polkadot/tests/weights.rs    |  83 ------
 8 files changed, 316 insertions(+), 219 deletions(-)
 create mode 100644 polkadot/runtime/kusama/src/weights/pallet_elections_phragmen.rs
 create mode 100644 polkadot/runtime/polkadot/src/weights/pallet_elections_phragmen.rs
 delete mode 100644 polkadot/runtime/polkadot/tests/weights.rs

diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock
index e0c889a6deb..12267ca34ce 100644
--- a/polkadot/Cargo.lock
+++ b/polkadot/Cargo.lock
@@ -1429,7 +1429,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
 [[package]]
 name = "fork-tree"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
 ]
@@ -1437,7 +1437,7 @@ dependencies = [
 [[package]]
 name = "frame-benchmarking"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -1455,7 +1455,7 @@ dependencies = [
 [[package]]
 name = "frame-benchmarking-cli"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "parity-scale-codec",
@@ -1473,7 +1473,7 @@ dependencies = [
 [[package]]
 name = "frame-executive"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -1489,7 +1489,7 @@ dependencies = [
 [[package]]
 name = "frame-metadata"
 version = "11.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "serde",
@@ -1500,7 +1500,7 @@ dependencies = [
 [[package]]
 name = "frame-support"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "bitmask",
  "frame-metadata",
@@ -1525,7 +1525,7 @@ dependencies = [
 [[package]]
 name = "frame-support-procedural"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support-procedural-tools",
  "proc-macro2 1.0.18",
@@ -1536,7 +1536,7 @@ dependencies = [
 [[package]]
 name = "frame-support-procedural-tools"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support-procedural-tools-derive",
  "proc-macro-crate",
@@ -1548,7 +1548,7 @@ dependencies = [
 [[package]]
 name = "frame-support-procedural-tools-derive"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "proc-macro2 1.0.18",
  "quote 1.0.7",
@@ -1558,7 +1558,7 @@ dependencies = [
 [[package]]
 name = "frame-system"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "impl-trait-for-tuples",
@@ -1574,7 +1574,7 @@ dependencies = [
 [[package]]
 name = "frame-system-benchmarking"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -1588,7 +1588,7 @@ dependencies = [
 [[package]]
 name = "frame-system-rpc-runtime-api"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "sp-api",
@@ -3756,7 +3756,7 @@ dependencies = [
 [[package]]
 name = "pallet-authority-discovery"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -3772,7 +3772,7 @@ dependencies = [
 [[package]]
 name = "pallet-authorship"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -3787,7 +3787,7 @@ dependencies = [
 [[package]]
 name = "pallet-babe"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -3812,7 +3812,7 @@ dependencies = [
 [[package]]
 name = "pallet-balances"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -3826,7 +3826,7 @@ dependencies = [
 [[package]]
 name = "pallet-collective"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -3842,7 +3842,7 @@ dependencies = [
 [[package]]
 name = "pallet-democracy"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -3857,7 +3857,7 @@ dependencies = [
 [[package]]
 name = "pallet-elections-phragmen"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -3872,7 +3872,7 @@ dependencies = [
 [[package]]
 name = "pallet-finality-tracker"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -3888,7 +3888,7 @@ dependencies = [
 [[package]]
 name = "pallet-grandpa"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -3910,7 +3910,7 @@ dependencies = [
 [[package]]
 name = "pallet-identity"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "enumflags2",
  "frame-benchmarking",
@@ -3926,7 +3926,7 @@ dependencies = [
 [[package]]
 name = "pallet-im-online"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -3946,7 +3946,7 @@ dependencies = [
 [[package]]
 name = "pallet-indices"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -3962,7 +3962,7 @@ dependencies = [
 [[package]]
 name = "pallet-membership"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -3976,7 +3976,7 @@ dependencies = [
 [[package]]
 name = "pallet-multisig"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -3991,7 +3991,7 @@ dependencies = [
 [[package]]
 name = "pallet-nicks"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -4005,7 +4005,7 @@ dependencies = [
 [[package]]
 name = "pallet-offences"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -4020,7 +4020,7 @@ dependencies = [
 [[package]]
 name = "pallet-offences-benchmarking"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -4041,7 +4041,7 @@ dependencies = [
 [[package]]
 name = "pallet-proxy"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -4056,7 +4056,7 @@ dependencies = [
 [[package]]
 name = "pallet-randomness-collective-flip"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -4069,7 +4069,7 @@ dependencies = [
 [[package]]
 name = "pallet-recovery"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "enumflags2",
  "frame-support",
@@ -4084,7 +4084,7 @@ dependencies = [
 [[package]]
 name = "pallet-scheduler"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -4099,7 +4099,7 @@ dependencies = [
 [[package]]
 name = "pallet-session"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -4119,7 +4119,7 @@ dependencies = [
 [[package]]
 name = "pallet-session-benchmarking"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -4135,7 +4135,7 @@ dependencies = [
 [[package]]
 name = "pallet-society"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -4149,7 +4149,7 @@ dependencies = [
 [[package]]
 name = "pallet-staking"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -4171,7 +4171,7 @@ dependencies = [
 [[package]]
 name = "pallet-staking-reward-curve"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "proc-macro-crate",
  "proc-macro2 1.0.18",
@@ -4182,7 +4182,7 @@ dependencies = [
 [[package]]
 name = "pallet-sudo"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -4196,7 +4196,7 @@ dependencies = [
 [[package]]
 name = "pallet-timestamp"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -4214,7 +4214,7 @@ dependencies = [
 [[package]]
 name = "pallet-transaction-payment"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "frame-system",
@@ -4231,7 +4231,7 @@ dependencies = [
 [[package]]
 name = "pallet-transaction-payment-rpc"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "jsonrpc-core",
  "jsonrpc-core-client",
@@ -4249,7 +4249,7 @@ dependencies = [
 [[package]]
 name = "pallet-transaction-payment-rpc-runtime-api"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-support",
  "parity-scale-codec",
@@ -4262,7 +4262,7 @@ dependencies = [
 [[package]]
 name = "pallet-treasury"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -4277,7 +4277,7 @@ dependencies = [
 [[package]]
 name = "pallet-utility"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -4293,7 +4293,7 @@ dependencies = [
 [[package]]
 name = "pallet-vesting"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "enumflags2",
  "frame-benchmarking",
@@ -6480,7 +6480,7 @@ dependencies = [
 [[package]]
 name = "sc-authority-discovery"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "bytes 0.5.6",
  "derive_more 0.99.9",
@@ -6508,7 +6508,7 @@ dependencies = [
 [[package]]
 name = "sc-basic-authorship"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.3.5",
  "futures-timer 3.0.2",
@@ -6532,7 +6532,7 @@ dependencies = [
 [[package]]
 name = "sc-block-builder"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "sc-client-api",
@@ -6549,7 +6549,7 @@ dependencies = [
 [[package]]
 name = "sc-chain-spec"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "impl-trait-for-tuples",
  "parity-scale-codec",
@@ -6566,7 +6566,7 @@ dependencies = [
 [[package]]
 name = "sc-chain-spec-derive"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "proc-macro-crate",
  "proc-macro2 1.0.18",
@@ -6577,7 +6577,7 @@ dependencies = [
 [[package]]
 name = "sc-cli"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "ansi_term 0.12.1",
  "atty",
@@ -6626,7 +6626,7 @@ dependencies = [
 [[package]]
 name = "sc-client-api"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "fnv",
@@ -6662,7 +6662,7 @@ dependencies = [
 [[package]]
 name = "sc-client-db"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "blake2-rfc",
  "hash-db",
@@ -6692,7 +6692,7 @@ dependencies = [
 [[package]]
 name = "sc-consensus"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "sc-client-api",
  "sp-blockchain",
@@ -6703,7 +6703,7 @@ dependencies = [
 [[package]]
 name = "sc-consensus-babe"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "fork-tree",
@@ -6747,7 +6747,7 @@ dependencies = [
 [[package]]
 name = "sc-consensus-babe-rpc"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "futures 0.3.5",
@@ -6771,7 +6771,7 @@ dependencies = [
 [[package]]
 name = "sc-consensus-epochs"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "fork-tree",
  "parity-scale-codec",
@@ -6784,7 +6784,7 @@ dependencies = [
 [[package]]
 name = "sc-consensus-slots"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.3.5",
  "futures-timer 3.0.2",
@@ -6807,7 +6807,7 @@ dependencies = [
 [[package]]
 name = "sc-consensus-uncles"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "log 0.4.11",
  "sc-client-api",
@@ -6821,7 +6821,7 @@ dependencies = [
 [[package]]
 name = "sc-executor"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "lazy_static",
@@ -6849,7 +6849,7 @@ dependencies = [
 [[package]]
 name = "sc-executor-common"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "log 0.4.11",
@@ -6866,7 +6866,7 @@ dependencies = [
 [[package]]
 name = "sc-executor-wasmi"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "log 0.4.11",
  "parity-scale-codec",
@@ -6881,7 +6881,7 @@ dependencies = [
 [[package]]
 name = "sc-executor-wasmtime"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "log 0.4.11",
  "parity-scale-codec",
@@ -6899,7 +6899,7 @@ dependencies = [
 [[package]]
 name = "sc-finality-grandpa"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "finality-grandpa",
@@ -6936,7 +6936,7 @@ dependencies = [
 [[package]]
 name = "sc-finality-grandpa-rpc"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "finality-grandpa",
@@ -6960,7 +6960,7 @@ dependencies = [
 [[package]]
 name = "sc-informant"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "ansi_term 0.12.1",
  "futures 0.3.5",
@@ -6978,7 +6978,7 @@ dependencies = [
 [[package]]
 name = "sc-keystore"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "hex",
@@ -6994,7 +6994,7 @@ dependencies = [
 [[package]]
 name = "sc-light"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "hash-db",
  "lazy_static",
@@ -7013,7 +7013,7 @@ dependencies = [
 [[package]]
 name = "sc-network"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "async-std",
  "async-trait",
@@ -7067,7 +7067,7 @@ dependencies = [
 [[package]]
 name = "sc-network-gossip"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.3.5",
  "futures-timer 3.0.2",
@@ -7082,7 +7082,7 @@ dependencies = [
 [[package]]
 name = "sc-offchain"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "bytes 0.5.6",
  "fnv",
@@ -7109,7 +7109,7 @@ dependencies = [
 [[package]]
 name = "sc-peerset"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.3.5",
  "libp2p",
@@ -7122,7 +7122,7 @@ dependencies = [
 [[package]]
 name = "sc-proposer-metrics"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "log 0.4.11",
  "substrate-prometheus-endpoint",
@@ -7131,7 +7131,7 @@ dependencies = [
 [[package]]
 name = "sc-rpc"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.3.5",
  "hash-db",
@@ -7163,7 +7163,7 @@ dependencies = [
 [[package]]
 name = "sc-rpc-api"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "futures 0.3.5",
@@ -7187,7 +7187,7 @@ dependencies = [
 [[package]]
 name = "sc-rpc-server"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.1.29",
  "jsonrpc-core",
@@ -7205,7 +7205,7 @@ dependencies = [
 [[package]]
 name = "sc-service"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "directories",
@@ -7267,7 +7267,7 @@ dependencies = [
 [[package]]
 name = "sc-state-db"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "log 0.4.11",
  "parity-scale-codec",
@@ -7281,7 +7281,7 @@ dependencies = [
 [[package]]
 name = "sc-telemetry"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.3.5",
  "futures-timer 3.0.2",
@@ -7302,7 +7302,7 @@ dependencies = [
 [[package]]
 name = "sc-tracing"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "erased-serde",
  "log 0.4.11",
@@ -7321,7 +7321,7 @@ dependencies = [
 [[package]]
 name = "sc-transaction-graph"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "futures 0.3.5",
@@ -7342,7 +7342,7 @@ dependencies = [
 [[package]]
 name = "sc-transaction-pool"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "futures 0.3.5",
@@ -7809,7 +7809,7 @@ dependencies = [
 [[package]]
 name = "sp-allocator"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "log 0.4.11",
@@ -7821,7 +7821,7 @@ dependencies = [
 [[package]]
 name = "sp-api"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "hash-db",
  "parity-scale-codec",
@@ -7836,7 +7836,7 @@ dependencies = [
 [[package]]
 name = "sp-api-proc-macro"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "blake2-rfc",
  "proc-macro-crate",
@@ -7848,7 +7848,7 @@ dependencies = [
 [[package]]
 name = "sp-application-crypto"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "serde",
@@ -7860,7 +7860,7 @@ dependencies = [
 [[package]]
 name = "sp-arithmetic"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "integer-sqrt",
  "num-traits 0.2.12",
@@ -7873,7 +7873,7 @@ dependencies = [
 [[package]]
 name = "sp-authority-discovery"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "sp-api",
@@ -7885,7 +7885,7 @@ dependencies = [
 [[package]]
 name = "sp-authorship"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "sp-inherents",
@@ -7896,7 +7896,7 @@ dependencies = [
 [[package]]
 name = "sp-block-builder"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "sp-api",
@@ -7908,7 +7908,7 @@ dependencies = [
 [[package]]
 name = "sp-blockchain"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "log 0.4.11",
@@ -7925,7 +7925,7 @@ dependencies = [
 [[package]]
 name = "sp-chain-spec"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "serde",
  "serde_json",
@@ -7934,7 +7934,7 @@ dependencies = [
 [[package]]
 name = "sp-consensus"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "futures 0.3.5",
@@ -7960,7 +7960,7 @@ dependencies = [
 [[package]]
 name = "sp-consensus-babe"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "merlin",
  "parity-scale-codec",
@@ -7979,7 +7979,7 @@ dependencies = [
 [[package]]
 name = "sp-consensus-slots"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "sp-runtime",
@@ -7988,7 +7988,7 @@ dependencies = [
 [[package]]
 name = "sp-consensus-vrf"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "schnorrkel",
@@ -8000,7 +8000,7 @@ dependencies = [
 [[package]]
 name = "sp-core"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "base58",
  "blake2-rfc",
@@ -8044,7 +8044,7 @@ dependencies = [
 [[package]]
 name = "sp-database"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "kvdb",
  "parking_lot 0.10.2",
@@ -8053,7 +8053,7 @@ dependencies = [
 [[package]]
 name = "sp-debug-derive"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "proc-macro2 1.0.18",
  "quote 1.0.7",
@@ -8063,7 +8063,7 @@ dependencies = [
 [[package]]
 name = "sp-externalities"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "environmental",
  "parity-scale-codec",
@@ -8074,7 +8074,7 @@ dependencies = [
 [[package]]
 name = "sp-finality-grandpa"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "finality-grandpa",
  "log 0.4.11",
@@ -8090,7 +8090,7 @@ dependencies = [
 [[package]]
 name = "sp-finality-tracker"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "sp-inherents",
@@ -8100,7 +8100,7 @@ dependencies = [
 [[package]]
 name = "sp-inherents"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "parity-scale-codec",
@@ -8112,7 +8112,7 @@ dependencies = [
 [[package]]
 name = "sp-io"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.3.5",
  "hash-db",
@@ -8135,7 +8135,7 @@ dependencies = [
 [[package]]
 name = "sp-keyring"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "lazy_static",
  "sp-core",
@@ -8146,7 +8146,7 @@ dependencies = [
 [[package]]
 name = "sp-npos-elections"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "serde",
@@ -8158,7 +8158,7 @@ dependencies = [
 [[package]]
 name = "sp-npos-elections-compact"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "proc-macro-crate",
  "proc-macro2 1.0.18",
@@ -8169,7 +8169,7 @@ dependencies = [
 [[package]]
 name = "sp-offchain"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "sp-api",
  "sp-core",
@@ -8179,7 +8179,7 @@ dependencies = [
 [[package]]
 name = "sp-panic-handler"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "backtrace",
  "log 0.4.11",
@@ -8188,7 +8188,7 @@ dependencies = [
 [[package]]
 name = "sp-rpc"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "serde",
  "sp-core",
@@ -8197,7 +8197,7 @@ dependencies = [
 [[package]]
 name = "sp-runtime"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "either",
  "hash256-std-hasher",
@@ -8219,7 +8219,7 @@ dependencies = [
 [[package]]
 name = "sp-runtime-interface"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "primitive-types",
@@ -8235,7 +8235,7 @@ dependencies = [
 [[package]]
 name = "sp-runtime-interface-proc-macro"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "Inflector",
  "proc-macro-crate",
@@ -8247,7 +8247,7 @@ dependencies = [
 [[package]]
 name = "sp-serializer"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "serde",
  "serde_json",
@@ -8256,7 +8256,7 @@ dependencies = [
 [[package]]
 name = "sp-session"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "sp-api",
@@ -8269,7 +8269,7 @@ dependencies = [
 [[package]]
 name = "sp-staking"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "parity-scale-codec",
  "sp-runtime",
@@ -8279,7 +8279,7 @@ dependencies = [
 [[package]]
 name = "sp-state-machine"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "hash-db",
  "log 0.4.11",
@@ -8300,12 +8300,12 @@ dependencies = [
 [[package]]
 name = "sp-std"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 
 [[package]]
 name = "sp-storage"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "impl-serde",
  "parity-scale-codec",
@@ -8318,7 +8318,7 @@ dependencies = [
 [[package]]
 name = "sp-timestamp"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "impl-trait-for-tuples",
  "parity-scale-codec",
@@ -8332,7 +8332,7 @@ dependencies = [
 [[package]]
 name = "sp-tracing"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "log 0.4.11",
  "parity-scale-codec",
@@ -8345,7 +8345,7 @@ dependencies = [
 [[package]]
 name = "sp-transaction-pool"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "derive_more 0.99.9",
  "futures 0.3.5",
@@ -8360,7 +8360,7 @@ dependencies = [
 [[package]]
 name = "sp-trie"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "hash-db",
  "memory-db",
@@ -8374,7 +8374,7 @@ dependencies = [
 [[package]]
 name = "sp-utils"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.3.5",
  "futures-core",
@@ -8386,7 +8386,7 @@ dependencies = [
 [[package]]
 name = "sp-version"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "impl-serde",
  "parity-scale-codec",
@@ -8398,7 +8398,7 @@ dependencies = [
 [[package]]
 name = "sp-wasm-interface"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "impl-trait-for-tuples",
  "parity-scale-codec",
@@ -8539,7 +8539,7 @@ dependencies = [
 [[package]]
 name = "substrate-browser-utils"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "chrono",
  "console_error_panic_hook",
@@ -8565,7 +8565,7 @@ dependencies = [
 [[package]]
 name = "substrate-build-script-utils"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "platforms",
 ]
@@ -8573,7 +8573,7 @@ dependencies = [
 [[package]]
 name = "substrate-frame-rpc-system"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "frame-system-rpc-runtime-api",
  "futures 0.3.5",
@@ -8596,7 +8596,7 @@ dependencies = [
 [[package]]
 name = "substrate-prometheus-endpoint"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "async-std",
  "derive_more 0.99.9",
@@ -8610,7 +8610,7 @@ dependencies = [
 [[package]]
 name = "substrate-test-client"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.1.29",
  "futures 0.3.5",
@@ -8636,7 +8636,7 @@ dependencies = [
 [[package]]
 name = "substrate-test-utils"
 version = "2.0.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "futures 0.3.5",
  "substrate-test-utils-derive",
@@ -8646,7 +8646,7 @@ dependencies = [
 [[package]]
 name = "substrate-test-utils-derive"
 version = "0.8.0-rc6"
-source = "git+https://github.com/paritytech/substrate#93b2c36622eed3257d8750c112adb4f23f4f4c5e"
+source = "git+https://github.com/paritytech/substrate#c392ca5b5ea6d0b5acb0e7682fd091f059f01a74"
 dependencies = [
  "proc-macro-crate",
  "quote 1.0.7",
diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs
index fcea5510989..474ad2e2ee0 100644
--- a/polkadot/runtime/kusama/src/lib.rs
+++ b/polkadot/runtime/kusama/src/lib.rs
@@ -459,7 +459,7 @@ impl pallet_elections_phragmen::Trait for Runtime {
 	type DesiredRunnersUp = DesiredRunnersUp;
 	type TermDuration = TermDuration;
 	type ModuleId = ElectionsPhragmenModuleId;
-	type WeightInfo = ();
+	type WeightInfo = weights::pallet_elections_phragmen::WeightInfo;
 }
 
 parameter_types! {
diff --git a/polkadot/runtime/kusama/src/weights/mod.rs b/polkadot/runtime/kusama/src/weights/mod.rs
index 9aa57bd71fd..3818a53ccd2 100644
--- a/polkadot/runtime/kusama/src/weights/mod.rs
+++ b/polkadot/runtime/kusama/src/weights/mod.rs
@@ -27,3 +27,4 @@ pub mod pallet_timestamp;
 pub mod pallet_treasury;
 pub mod pallet_utility;
 pub mod pallet_vesting;
+pub mod pallet_elections_phragmen;
diff --git a/polkadot/runtime/kusama/src/weights/pallet_elections_phragmen.rs b/polkadot/runtime/kusama/src/weights/pallet_elections_phragmen.rs
new file mode 100644
index 00000000000..f7ce1620a1f
--- /dev/null
+++ b/polkadot/runtime/kusama/src/weights/pallet_elections_phragmen.rs
@@ -0,0 +1,89 @@
+// This file is part of Substrate.
+
+// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd.
+// SPDX-License-Identifier: Apache-2.0
+
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// 	http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0-rc6
+
+#![allow(unused_parens)]
+#![allow(unused_imports)]
+
+use frame_support::weights::{Weight, constants::RocksDbWeight as DbWeight};
+
+pub struct WeightInfo;
+impl pallet_elections_phragmen::WeightInfo for WeightInfo {
+	fn vote(v: u32, ) -> Weight {
+		(91_489_000 as Weight)
+			.saturating_add((199_000 as Weight).saturating_mul(v as Weight))
+			.saturating_add(DbWeight::get().reads(5 as Weight))
+			.saturating_add(DbWeight::get().writes(2 as Weight))
+	}
+	fn vote_update(v: u32, ) -> Weight {
+		(56_511_000 as Weight)
+			.saturating_add((245_000 as Weight).saturating_mul(v as Weight))
+			.saturating_add(DbWeight::get().reads(5 as Weight))
+			.saturating_add(DbWeight::get().writes(2 as Weight))
+	}
+	fn remove_voter() -> Weight {
+		(76_714_000 as Weight)
+			.saturating_add(DbWeight::get().reads(2 as Weight))
+			.saturating_add(DbWeight::get().writes(2 as Weight))
+	}
+	fn report_defunct_voter_correct(c: u32, v: u32, ) -> Weight {
+		(0 as Weight)
+			.saturating_add((1_743_000 as Weight).saturating_mul(c as Weight))
+			.saturating_add((31_750_000 as Weight).saturating_mul(v as Weight))
+			.saturating_add(DbWeight::get().reads(7 as Weight))
+			.saturating_add(DbWeight::get().writes(3 as Weight))
+	}
+	fn report_defunct_voter_incorrect(c: u32, v: u32, ) -> Weight {
+		(0 as Weight)
+			.saturating_add((1_733_000 as Weight).saturating_mul(c as Weight))
+			.saturating_add((31_861_000 as Weight).saturating_mul(v as Weight))
+			.saturating_add(DbWeight::get().reads(6 as Weight))
+			.saturating_add(DbWeight::get().writes(2 as Weight))
+	}
+	fn submit_candidacy(c: u32, ) -> Weight {
+		(74_714_000 as Weight)
+			.saturating_add((315_000 as Weight).saturating_mul(c as Weight))
+			.saturating_add(DbWeight::get().reads(3 as Weight))
+			.saturating_add(DbWeight::get().writes(1 as Weight))
+	}
+	fn renounce_candidacy_candidate(c: u32, ) -> Weight {
+		(50_408_000 as Weight)
+			.saturating_add((159_000 as Weight).saturating_mul(c as Weight))
+			.saturating_add(DbWeight::get().reads(1 as Weight))
+			.saturating_add(DbWeight::get().writes(1 as Weight))
+	}
+	fn renounce_candidacy_members() -> Weight {
+		(79_626_000 as Weight)
+			.saturating_add(DbWeight::get().reads(3 as Weight))
+			.saturating_add(DbWeight::get().writes(4 as Weight))
+	}
+	fn renounce_candidacy_runners_up() -> Weight {
+		(49_715_000 as Weight)
+			.saturating_add(DbWeight::get().reads(1 as Weight))
+			.saturating_add(DbWeight::get().writes(1 as Weight))
+	}
+	fn remove_member_with_replacement() -> Weight {
+		(76_572_000 as Weight)
+			.saturating_add(DbWeight::get().reads(4 as Weight))
+			.saturating_add(DbWeight::get().writes(5 as Weight))
+	}
+	fn remove_member_wrong_refund() -> Weight {
+		(8_777_000 as Weight)
+			.saturating_add(DbWeight::get().reads(1 as Weight))
+	}
+}
diff --git a/polkadot/runtime/polkadot/src/lib.rs b/polkadot/runtime/polkadot/src/lib.rs
index 32adf1eb0ae..7dd889133c5 100644
--- a/polkadot/runtime/polkadot/src/lib.rs
+++ b/polkadot/runtime/polkadot/src/lib.rs
@@ -515,7 +515,7 @@ impl pallet_elections_phragmen::Trait for Runtime {
 	type DesiredMembers = DesiredMembers;
 	type DesiredRunnersUp = DesiredRunnersUp;
 	type TermDuration = TermDuration;
-	type WeightInfo = ();
+	type WeightInfo = weights::pallet_elections_phragmen::WeightInfo;
 }
 
 parameter_types! {
diff --git a/polkadot/runtime/polkadot/src/weights/mod.rs b/polkadot/runtime/polkadot/src/weights/mod.rs
index 9aa57bd71fd..3818a53ccd2 100644
--- a/polkadot/runtime/polkadot/src/weights/mod.rs
+++ b/polkadot/runtime/polkadot/src/weights/mod.rs
@@ -27,3 +27,4 @@ pub mod pallet_timestamp;
 pub mod pallet_treasury;
 pub mod pallet_utility;
 pub mod pallet_vesting;
+pub mod pallet_elections_phragmen;
diff --git a/polkadot/runtime/polkadot/src/weights/pallet_elections_phragmen.rs b/polkadot/runtime/polkadot/src/weights/pallet_elections_phragmen.rs
new file mode 100644
index 00000000000..f7ce1620a1f
--- /dev/null
+++ b/polkadot/runtime/polkadot/src/weights/pallet_elections_phragmen.rs
@@ -0,0 +1,89 @@
+// This file is part of Substrate.
+
+// Copyright (C) 2019-2020 Parity Technologies (UK) Ltd.
+// SPDX-License-Identifier: Apache-2.0
+
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// 	http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0-rc6
+
+#![allow(unused_parens)]
+#![allow(unused_imports)]
+
+use frame_support::weights::{Weight, constants::RocksDbWeight as DbWeight};
+
+pub struct WeightInfo;
+impl pallet_elections_phragmen::WeightInfo for WeightInfo {
+	fn vote(v: u32, ) -> Weight {
+		(91_489_000 as Weight)
+			.saturating_add((199_000 as Weight).saturating_mul(v as Weight))
+			.saturating_add(DbWeight::get().reads(5 as Weight))
+			.saturating_add(DbWeight::get().writes(2 as Weight))
+	}
+	fn vote_update(v: u32, ) -> Weight {
+		(56_511_000 as Weight)
+			.saturating_add((245_000 as Weight).saturating_mul(v as Weight))
+			.saturating_add(DbWeight::get().reads(5 as Weight))
+			.saturating_add(DbWeight::get().writes(2 as Weight))
+	}
+	fn remove_voter() -> Weight {
+		(76_714_000 as Weight)
+			.saturating_add(DbWeight::get().reads(2 as Weight))
+			.saturating_add(DbWeight::get().writes(2 as Weight))
+	}
+	fn report_defunct_voter_correct(c: u32, v: u32, ) -> Weight {
+		(0 as Weight)
+			.saturating_add((1_743_000 as Weight).saturating_mul(c as Weight))
+			.saturating_add((31_750_000 as Weight).saturating_mul(v as Weight))
+			.saturating_add(DbWeight::get().reads(7 as Weight))
+			.saturating_add(DbWeight::get().writes(3 as Weight))
+	}
+	fn report_defunct_voter_incorrect(c: u32, v: u32, ) -> Weight {
+		(0 as Weight)
+			.saturating_add((1_733_000 as Weight).saturating_mul(c as Weight))
+			.saturating_add((31_861_000 as Weight).saturating_mul(v as Weight))
+			.saturating_add(DbWeight::get().reads(6 as Weight))
+			.saturating_add(DbWeight::get().writes(2 as Weight))
+	}
+	fn submit_candidacy(c: u32, ) -> Weight {
+		(74_714_000 as Weight)
+			.saturating_add((315_000 as Weight).saturating_mul(c as Weight))
+			.saturating_add(DbWeight::get().reads(3 as Weight))
+			.saturating_add(DbWeight::get().writes(1 as Weight))
+	}
+	fn renounce_candidacy_candidate(c: u32, ) -> Weight {
+		(50_408_000 as Weight)
+			.saturating_add((159_000 as Weight).saturating_mul(c as Weight))
+			.saturating_add(DbWeight::get().reads(1 as Weight))
+			.saturating_add(DbWeight::get().writes(1 as Weight))
+	}
+	fn renounce_candidacy_members() -> Weight {
+		(79_626_000 as Weight)
+			.saturating_add(DbWeight::get().reads(3 as Weight))
+			.saturating_add(DbWeight::get().writes(4 as Weight))
+	}
+	fn renounce_candidacy_runners_up() -> Weight {
+		(49_715_000 as Weight)
+			.saturating_add(DbWeight::get().reads(1 as Weight))
+			.saturating_add(DbWeight::get().writes(1 as Weight))
+	}
+	fn remove_member_with_replacement() -> Weight {
+		(76_572_000 as Weight)
+			.saturating_add(DbWeight::get().reads(4 as Weight))
+			.saturating_add(DbWeight::get().writes(5 as Weight))
+	}
+	fn remove_member_wrong_refund() -> Weight {
+		(8_777_000 as Weight)
+			.saturating_add(DbWeight::get().reads(1 as Weight))
+	}
+}
diff --git a/polkadot/runtime/polkadot/tests/weights.rs b/polkadot/runtime/polkadot/tests/weights.rs
deleted file mode 100644
index 671a01094c5..00000000000
--- a/polkadot/runtime/polkadot/tests/weights.rs
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright 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 <http://www.gnu.org/licenses/>.
-
-//! Tests to make sure that Polkadot's weights and fees match what we
-//! expect from Substrate.
-//!
-//! These test are not meant to be exhaustive, as it is inevitable that
-//! weights in Substrate will change. Instead they are supposed to provide
-//! some sort of indicator that calls we consider important (e.g pallet_balances::transfer)
-//! have not suddenly changed from under us.
-//!
-//! Some of the tests in this crate print insightful logs. Run with:
-//!
-//! ```
-//! $ cargo test -p polkadot-runtime -- --nocapture --test-threads=1
-//! ```
-
-use frame_support::weights::{constants::*, GetDispatchInfo};
-use polkadot_runtime::{self, Runtime};
-use runtime_common::MaximumBlockWeight;
-
-use pallet_elections_phragmen::Call as PhragmenCall;
-use frame_system::Call as SystemCall;
-
-type DbWeight = <Runtime as frame_system::Trait>::DbWeight;
-
-#[test]
-fn sanity_check_weight_per_time_constants_are_as_expected() {
-	// These values comes from Substrate, we want to make sure that if it
-	// ever changes we don't accidentally break Polkadot
-	assert_eq!(WEIGHT_PER_SECOND, 1_000_000_000_000);
-	assert_eq!(WEIGHT_PER_MILLIS, WEIGHT_PER_SECOND / 1000);
-	assert_eq!(WEIGHT_PER_MICROS, WEIGHT_PER_MILLIS / 1000);
-	assert_eq!(WEIGHT_PER_NANOS, WEIGHT_PER_MICROS / 1000);
-}
-
-#[test]
-fn weight_of_system_set_code_is_correct() {
-	// #[weight = (T::MaximumBlockWeight::get(), DispatchClass::Operational)]
-	let expected_weight = MaximumBlockWeight::get();
-	let weight = SystemCall::set_code::<Runtime>(vec![]).get_dispatch_info().weight;
-
-	assert_eq!(weight, expected_weight);
-}
-
-#[test]
-fn weight_of_phragmen_vote_is_correct() {
-	// #[weight = 100_000_000]
-	let expected_weight = 350_000_000;
-	let weight = PhragmenCall::vote::<Runtime>(Default::default(), Default::default()).get_dispatch_info().weight;
-
-	assert_eq!(weight, expected_weight);
-}
-
-#[test]
-fn weight_of_phragmen_submit_candidacy_is_correct() {
-	let expected_weight = WEIGHT_PER_MICROS * 35 + 1 * 375 * WEIGHT_PER_NANOS + DbWeight::get().reads_writes(4, 1);
-	let weight = PhragmenCall::submit_candidacy::<Runtime>(1).get_dispatch_info().weight;
-
-	assert_eq!(weight, expected_weight);
-}
-
-#[test]
-fn weight_of_phragmen_renounce_candidacy_is_correct() {
-	let expected_weight = 46 * WEIGHT_PER_MICROS + DbWeight::get().reads_writes(2, 2);
-	let weight = PhragmenCall::renounce_candidacy::<Runtime>(pallet_elections_phragmen::Renouncing::Member)
-		.get_dispatch_info().weight;
-
-	assert_eq!(weight, expected_weight);
-}
-- 
GitLab