From 5cbc418a61a3942cef155da312d357334ad3ef69 Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Wed, 16 Sep 2020 14:47:54 +0200 Subject: [PATCH] Bump Nominator Reward Limits (#1668) * Add reward limits * Fix weight tests and whatnot * add weight files * Update runtime/kusama/src/lib.rs * "Update Substrate" Co-authored-by: Shawn Tabrizi Co-authored-by: parity-processbot <> --- Cargo.lock | 268 +++++++++--------- runtime/kusama/src/lib.rs | 4 +- runtime/kusama/src/weights/mod.rs | 1 + runtime/kusama/src/weights/pallet_staking.rs | 168 +++++++++++ runtime/polkadot/src/lib.rs | 4 +- runtime/polkadot/src/weights/mod.rs | 1 + .../polkadot/src/weights/pallet_staking.rs | 168 +++++++++++ runtime/polkadot/tests/weights.rs | 88 ++++-- runtime/westend/src/lib.rs | 2 +- runtime/westend/src/weights/mod.rs | 3 +- runtime/westend/src/weights/pallet_staking.rs | 168 +++++++++++ 11 files changed, 716 insertions(+), 159 deletions(-) create mode 100644 runtime/kusama/src/weights/pallet_staking.rs create mode 100644 runtime/polkadot/src/weights/pallet_staking.rs create mode 100644 runtime/westend/src/weights/pallet_staking.rs diff --git a/Cargo.lock b/Cargo.lock index 660bd9347c7c..5e7c4a14ab5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1429,7 +1429,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" 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#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" 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#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" 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#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -1488,7 +1488,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "11.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "serde", @@ -1499,7 +1499,7 @@ dependencies = [ [[package]] name = "frame-support" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "bitmask", "frame-metadata", @@ -1524,7 +1524,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support-procedural-tools", "proc-macro2 1.0.18", @@ -1535,7 +1535,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1547,7 +1547,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "proc-macro2 1.0.18", "quote 1.0.7", @@ -1557,7 +1557,7 @@ dependencies = [ [[package]] name = "frame-system" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1573,7 +1573,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -1587,7 +1587,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "sp-api", @@ -3755,7 +3755,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -3771,7 +3771,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -3786,7 +3786,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -3811,7 +3811,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -3825,7 +3825,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -3841,7 +3841,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -3856,7 +3856,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -3871,7 +3871,7 @@ dependencies = [ [[package]] name = "pallet-finality-tracker" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -3887,7 +3887,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -3909,7 +3909,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "enumflags2", "frame-benchmarking", @@ -3925,7 +3925,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -3945,7 +3945,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -3961,7 +3961,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -3975,7 +3975,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -3990,7 +3990,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -4004,7 +4004,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -4019,7 +4019,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4040,7 +4040,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -4055,7 +4055,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -4068,7 +4068,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "enumflags2", "frame-support", @@ -4083,7 +4083,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4098,7 +4098,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -4118,7 +4118,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4134,7 +4134,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -4148,7 +4148,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4170,7 +4170,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.18", @@ -4181,7 +4181,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -4195,7 +4195,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4213,7 +4213,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "frame-system", @@ -4230,7 +4230,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -4248,7 +4248,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-support", "parity-scale-codec", @@ -4261,7 +4261,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4276,7 +4276,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4292,7 +4292,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "enumflags2", "frame-benchmarking", @@ -6479,7 +6479,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "bytes 0.5.6", "derive_more 0.99.9", @@ -6507,7 +6507,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", @@ -6531,7 +6531,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -6548,7 +6548,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -6565,7 +6565,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.18", @@ -6576,7 +6576,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "ansi_term 0.12.1", "atty", @@ -6623,7 +6623,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "fnv", @@ -6659,7 +6659,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "blake2-rfc", "hash-db", @@ -6689,7 +6689,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "sc-client-api", "sp-blockchain", @@ -6700,7 +6700,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "fork-tree", @@ -6744,7 +6744,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "futures 0.3.5", @@ -6768,7 +6768,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "fork-tree", "parity-scale-codec", @@ -6781,7 +6781,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", @@ -6804,7 +6804,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "log 0.4.11", "sc-client-api", @@ -6818,7 +6818,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "lazy_static", @@ -6846,7 +6846,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "log 0.4.11", @@ -6863,7 +6863,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "log 0.4.11", "parity-scale-codec", @@ -6878,7 +6878,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "log 0.4.11", "parity-scale-codec", @@ -6896,7 +6896,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "finality-grandpa", @@ -6933,7 +6933,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "finality-grandpa", @@ -6955,7 +6955,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "ansi_term 0.12.1", "futures 0.3.5", @@ -6973,7 +6973,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "hex", @@ -6989,7 +6989,7 @@ dependencies = [ [[package]] name = "sc-light" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "hash-db", "lazy_static", @@ -7008,7 +7008,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "async-std", "async-trait", @@ -7062,7 +7062,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", @@ -7077,7 +7077,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "bytes 0.5.6", "fnv", @@ -7104,7 +7104,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "futures 0.3.5", "libp2p", @@ -7117,7 +7117,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "log 0.4.11", "substrate-prometheus-endpoint", @@ -7126,7 +7126,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "futures 0.3.5", "hash-db", @@ -7158,7 +7158,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "futures 0.3.5", @@ -7182,7 +7182,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "jsonrpc-core", "jsonrpc-http-server", @@ -7198,7 +7198,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "directories", @@ -7259,7 +7259,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "log 0.4.11", "parity-scale-codec", @@ -7273,7 +7273,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", @@ -7294,7 +7294,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "erased-serde", "log 0.4.11", @@ -7312,7 +7312,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "futures 0.3.5", @@ -7333,7 +7333,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "futures 0.3.5", @@ -7800,7 +7800,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "log 0.4.11", @@ -7812,7 +7812,7 @@ dependencies = [ [[package]] name = "sp-api" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "hash-db", "parity-scale-codec", @@ -7827,7 +7827,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -7839,7 +7839,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "serde", @@ -7851,7 +7851,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "integer-sqrt", "num-traits 0.2.12", @@ -7864,7 +7864,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "sp-api", @@ -7876,7 +7876,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -7887,7 +7887,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "sp-api", @@ -7899,7 +7899,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "log 0.4.11", @@ -7916,7 +7916,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "serde", "serde_json", @@ -7925,7 +7925,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "futures 0.3.5", @@ -7951,7 +7951,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "merlin", "parity-scale-codec", @@ -7970,7 +7970,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -7979,7 +7979,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -7991,7 +7991,7 @@ dependencies = [ [[package]] name = "sp-core" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "base58", "blake2-rfc", @@ -8035,7 +8035,7 @@ dependencies = [ [[package]] name = "sp-database" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "kvdb", "parking_lot 0.10.2", @@ -8044,7 +8044,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "proc-macro2 1.0.18", "quote 1.0.7", @@ -8054,7 +8054,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "environmental", "parity-scale-codec", @@ -8065,7 +8065,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "finality-grandpa", "log 0.4.11", @@ -8081,7 +8081,7 @@ dependencies = [ [[package]] name = "sp-finality-tracker" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -8091,7 +8091,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "parity-scale-codec", @@ -8103,7 +8103,7 @@ dependencies = [ [[package]] name = "sp-io" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "futures 0.3.5", "hash-db", @@ -8124,7 +8124,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "lazy_static", "sp-core", @@ -8135,7 +8135,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "serde", @@ -8147,7 +8147,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-compact" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.18", @@ -8158,7 +8158,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "sp-api", "sp-core", @@ -8168,7 +8168,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "backtrace", "log 0.4.11", @@ -8177,7 +8177,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "serde", "sp-core", @@ -8186,7 +8186,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "either", "hash256-std-hasher", @@ -8208,7 +8208,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "primitive-types", @@ -8224,7 +8224,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "Inflector", "proc-macro-crate", @@ -8236,7 +8236,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "serde", "serde_json", @@ -8245,7 +8245,7 @@ dependencies = [ [[package]] name = "sp-session" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "sp-api", @@ -8258,7 +8258,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -8268,7 +8268,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "hash-db", "log 0.4.11", @@ -8289,12 +8289,12 @@ dependencies = [ [[package]] name = "sp-std" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" [[package]] name = "sp-storage" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8307,7 +8307,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8321,7 +8321,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "log 0.4.11", "rental", @@ -8331,7 +8331,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "derive_more 0.99.9", "futures 0.3.5", @@ -8346,7 +8346,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "hash-db", "memory-db", @@ -8360,7 +8360,7 @@ dependencies = [ [[package]] name = "sp-utils" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "futures 0.3.5", "futures-core", @@ -8372,7 +8372,7 @@ dependencies = [ [[package]] name = "sp-version" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8384,7 +8384,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8525,7 +8525,7 @@ dependencies = [ [[package]] name = "substrate-browser-utils" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "chrono", "console_error_panic_hook", @@ -8551,7 +8551,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "platforms", ] @@ -8559,7 +8559,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.5", @@ -8582,7 +8582,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "async-std", "derive_more 0.99.9", @@ -8596,7 +8596,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "futures 0.1.29", "futures 0.3.5", @@ -8622,7 +8622,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "2.0.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "futures 0.3.5", "substrate-test-utils-derive", @@ -8632,7 +8632,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.8.0-rc6" -source = "git+https://github.com/paritytech/substrate#89bdfcc26a1301298eac893ec1560cdd9d27c6a9" +source = "git+https://github.com/paritytech/substrate#647ad15565d7c35ecf00b73b12cccad9858780b9" dependencies = [ "proc-macro-crate", "quote 1.0.7", diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index d853a57439ff..31490a40ebec 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -317,7 +317,7 @@ parameter_types! { // 27 eras in which slashes can be cancelled (slightly less than 7 days). pub const SlashDeferDuration: pallet_staking::EraIndex = 27; pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; - pub const MaxNominatorRewardedPerValidator: u32 = 64; + pub const MaxNominatorRewardedPerValidator: u32 = 256; // quarter of the last session will be for election. pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4; pub const MaxIterations: u32 = 10; @@ -352,7 +352,7 @@ impl pallet_staking::Trait for Runtime { type UnsignedPriority = StakingUnsignedPriority; type MaxIterations = MaxIterations; type MinSolutionScoreBump = MinSolutionScoreBump; - type WeightInfo = (); + type WeightInfo = weights::pallet_staking::WeightInfo; } parameter_types! { diff --git a/runtime/kusama/src/weights/mod.rs b/runtime/kusama/src/weights/mod.rs index bdd52a128e1c..25efdf81eda2 100644 --- a/runtime/kusama/src/weights/mod.rs +++ b/runtime/kusama/src/weights/mod.rs @@ -20,6 +20,7 @@ pub mod frame_system; pub mod pallet_balances; pub mod pallet_collective; pub mod pallet_democracy; +pub mod pallet_staking; pub mod pallet_timestamp; pub mod pallet_utility; pub mod pallet_proxy; diff --git a/runtime/kusama/src/weights/pallet_staking.rs b/runtime/kusama/src/weights/pallet_staking.rs new file mode 100644 index 000000000000..3379cb76749f --- /dev/null +++ b/runtime/kusama/src/weights/pallet_staking.rs @@ -0,0 +1,168 @@ +// Copyright (C) 2017-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. + +//! Default weights of pallet-staking. +//! 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_staking::WeightInfo for WeightInfo { + fn bond() -> Weight { + (144278000 as Weight) + .saturating_add(DbWeight::get().reads(5 as Weight)) + .saturating_add(DbWeight::get().writes(4 as Weight)) + } + fn bond_extra() -> Weight { + (110715000 as Weight) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn unbond() -> Weight { + (99840000 as Weight) + .saturating_add(DbWeight::get().reads(5 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn withdraw_unbonded_update(s: u32, ) -> Weight { + (100728000 as Weight) + .saturating_add((63000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(5 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn withdraw_unbonded_kill(s: u32, ) -> Weight { + (168879000 as Weight) + .saturating_add((6666000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(7 as Weight)) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + fn validate() -> Weight { + (35539000 as Weight) + .saturating_add(DbWeight::get().reads(2 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn nominate(n: u32, ) -> Weight { + (48596000 as Weight) + .saturating_add((308000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads(3 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn chill() -> Weight { + (35144000 as Weight) + .saturating_add(DbWeight::get().reads(2 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn set_payee() -> Weight { + (24255000 as Weight) + .saturating_add(DbWeight::get().reads(1 as Weight)) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn set_controller() -> Weight { + (52294000 as Weight) + .saturating_add(DbWeight::get().reads(3 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn set_validator_count() -> Weight { + (5185000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_no_eras() -> Weight { + (5907000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_new_era() -> Weight { + (5917000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_new_era_always() -> Weight { + (5952000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn set_invulnerables(v: u32, ) -> Weight { + (6324000 as Weight) + .saturating_add((9000 as Weight).saturating_mul(v as Weight)) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_unstake(s: u32, ) -> Weight { + (119691000 as Weight) + .saturating_add((6681000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + fn cancel_deferred_slash(s: u32, ) -> Weight { + (5820201000 as Weight) + .saturating_add((34672000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(1 as Weight)) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn payout_stakers_dead_controller(n: u32, ) -> Weight { + (0 as Weight) + .saturating_add((92486000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight))) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(n as Weight))) + } + fn payout_stakers_alive_staked(n: u32, ) -> Weight { + (0 as Weight) + .saturating_add((117324000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads((5 as Weight).saturating_mul(n as Weight))) + .saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(n as Weight))) + } + fn rebond(l: u32, ) -> Weight { + (71316000 as Weight) + .saturating_add((142000 as Weight).saturating_mul(l as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn set_history_depth(e: u32, ) -> Weight { + (0 as Weight) + .saturating_add((51901000 as Weight).saturating_mul(e as Weight)) + .saturating_add(DbWeight::get().reads(2 as Weight)) + .saturating_add(DbWeight::get().writes(4 as Weight)) + .saturating_add(DbWeight::get().writes((7 as Weight).saturating_mul(e as Weight))) + } + fn reap_stash(s: u32, ) -> Weight { + (147166000 as Weight) + .saturating_add((6661000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + fn new_era(v: u32, n: u32, ) -> Weight { + (0 as Weight) + .saturating_add((1440459000 as Weight).saturating_mul(v as Weight)) + .saturating_add((182580000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads(10 as Weight)) + .saturating_add(DbWeight::get().reads((4 as Weight).saturating_mul(v as Weight))) + .saturating_add(DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight))) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(v as Weight))) + } + fn submit_solution_better(v: u32, n: u32, a: u32, w: u32, ) -> Weight { + (0 as Weight) + .saturating_add((964000 as Weight).saturating_mul(v as Weight)) + .saturating_add((432000 as Weight).saturating_mul(n as Weight)) + .saturating_add((204294000 as Weight).saturating_mul(a as Weight)) + .saturating_add((9546000 as Weight).saturating_mul(w as Weight)) + .saturating_add(DbWeight::get().reads(6 as Weight)) + .saturating_add(DbWeight::get().reads((4 as Weight).saturating_mul(a as Weight))) + .saturating_add(DbWeight::get().reads((1 as Weight).saturating_mul(w as Weight))) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } +} diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index ffa3a7db9825..18cde69d16b8 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -326,7 +326,7 @@ parameter_types! { pub const BondingDuration: pallet_staking::EraIndex = 28; pub const SlashDeferDuration: pallet_staking::EraIndex = 27; pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; - pub const MaxNominatorRewardedPerValidator: u32 = 64; + pub const MaxNominatorRewardedPerValidator: u32 = 256; // last 15 minutes of the last session will be for election. pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 16; pub const MaxIterations: u32 = 10; @@ -361,7 +361,7 @@ impl pallet_staking::Trait for Runtime { type UnsignedPriority = StakingUnsignedPriority; type MaxIterations = MaxIterations; type MinSolutionScoreBump = MinSolutionScoreBump; - type WeightInfo = (); + type WeightInfo = weights::pallet_staking::WeightInfo; } parameter_types! { diff --git a/runtime/polkadot/src/weights/mod.rs b/runtime/polkadot/src/weights/mod.rs index bdd52a128e1c..25efdf81eda2 100644 --- a/runtime/polkadot/src/weights/mod.rs +++ b/runtime/polkadot/src/weights/mod.rs @@ -20,6 +20,7 @@ pub mod frame_system; pub mod pallet_balances; pub mod pallet_collective; pub mod pallet_democracy; +pub mod pallet_staking; pub mod pallet_timestamp; pub mod pallet_utility; pub mod pallet_proxy; diff --git a/runtime/polkadot/src/weights/pallet_staking.rs b/runtime/polkadot/src/weights/pallet_staking.rs new file mode 100644 index 000000000000..3379cb76749f --- /dev/null +++ b/runtime/polkadot/src/weights/pallet_staking.rs @@ -0,0 +1,168 @@ +// Copyright (C) 2017-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. + +//! Default weights of pallet-staking. +//! 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_staking::WeightInfo for WeightInfo { + fn bond() -> Weight { + (144278000 as Weight) + .saturating_add(DbWeight::get().reads(5 as Weight)) + .saturating_add(DbWeight::get().writes(4 as Weight)) + } + fn bond_extra() -> Weight { + (110715000 as Weight) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn unbond() -> Weight { + (99840000 as Weight) + .saturating_add(DbWeight::get().reads(5 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn withdraw_unbonded_update(s: u32, ) -> Weight { + (100728000 as Weight) + .saturating_add((63000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(5 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn withdraw_unbonded_kill(s: u32, ) -> Weight { + (168879000 as Weight) + .saturating_add((6666000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(7 as Weight)) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + fn validate() -> Weight { + (35539000 as Weight) + .saturating_add(DbWeight::get().reads(2 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn nominate(n: u32, ) -> Weight { + (48596000 as Weight) + .saturating_add((308000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads(3 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn chill() -> Weight { + (35144000 as Weight) + .saturating_add(DbWeight::get().reads(2 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn set_payee() -> Weight { + (24255000 as Weight) + .saturating_add(DbWeight::get().reads(1 as Weight)) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn set_controller() -> Weight { + (52294000 as Weight) + .saturating_add(DbWeight::get().reads(3 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn set_validator_count() -> Weight { + (5185000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_no_eras() -> Weight { + (5907000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_new_era() -> Weight { + (5917000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_new_era_always() -> Weight { + (5952000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn set_invulnerables(v: u32, ) -> Weight { + (6324000 as Weight) + .saturating_add((9000 as Weight).saturating_mul(v as Weight)) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_unstake(s: u32, ) -> Weight { + (119691000 as Weight) + .saturating_add((6681000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + fn cancel_deferred_slash(s: u32, ) -> Weight { + (5820201000 as Weight) + .saturating_add((34672000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(1 as Weight)) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn payout_stakers_dead_controller(n: u32, ) -> Weight { + (0 as Weight) + .saturating_add((92486000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight))) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(n as Weight))) + } + fn payout_stakers_alive_staked(n: u32, ) -> Weight { + (0 as Weight) + .saturating_add((117324000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads((5 as Weight).saturating_mul(n as Weight))) + .saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(n as Weight))) + } + fn rebond(l: u32, ) -> Weight { + (71316000 as Weight) + .saturating_add((142000 as Weight).saturating_mul(l as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn set_history_depth(e: u32, ) -> Weight { + (0 as Weight) + .saturating_add((51901000 as Weight).saturating_mul(e as Weight)) + .saturating_add(DbWeight::get().reads(2 as Weight)) + .saturating_add(DbWeight::get().writes(4 as Weight)) + .saturating_add(DbWeight::get().writes((7 as Weight).saturating_mul(e as Weight))) + } + fn reap_stash(s: u32, ) -> Weight { + (147166000 as Weight) + .saturating_add((6661000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + fn new_era(v: u32, n: u32, ) -> Weight { + (0 as Weight) + .saturating_add((1440459000 as Weight).saturating_mul(v as Weight)) + .saturating_add((182580000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads(10 as Weight)) + .saturating_add(DbWeight::get().reads((4 as Weight).saturating_mul(v as Weight))) + .saturating_add(DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight))) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(v as Weight))) + } + fn submit_solution_better(v: u32, n: u32, a: u32, w: u32, ) -> Weight { + (0 as Weight) + .saturating_add((964000 as Weight).saturating_mul(v as Weight)) + .saturating_add((432000 as Weight).saturating_mul(n as Weight)) + .saturating_add((204294000 as Weight).saturating_mul(a as Weight)) + .saturating_add((9546000 as Weight).saturating_mul(w as Weight)) + .saturating_add(DbWeight::get().reads(6 as Weight)) + .saturating_add(DbWeight::get().reads((4 as Weight).saturating_mul(a as Weight))) + .saturating_add(DbWeight::get().reads((1 as Weight).saturating_mul(w as Weight))) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } +} diff --git a/runtime/polkadot/tests/weights.rs b/runtime/polkadot/tests/weights.rs index 3583a614e3c0..76bcfeae7d87 100644 --- a/runtime/polkadot/tests/weights.rs +++ b/runtime/polkadot/tests/weights.rs @@ -21,10 +21,17 @@ //! 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 codec::Encode; use frame_support::{ traits::ContainsLengthBound, - weights::{constants::*, GetDispatchInfo, Weight}, + weights::{constants::*, GetDispatchInfo, Weight, DispatchInfo}, }; use keyring::AccountKeyring; use polkadot_runtime::constants::currency::*; @@ -40,10 +47,26 @@ use pallet_treasury::Call as TreasuryCall; type DbWeight = ::DbWeight; + +fn report_portion(name: &'static str, info: DispatchInfo, len: usize) { + let maximum_weight = ::MaximumBlockWeight::get(); + let fee = sp_io::TestExternalities::new(Default::default()).execute_with(|| { + >::compute_fee(len as u32, &info, 0) + }); + + let portion = info.weight as f64 / maximum_weight as f64; + + if portion > 0.5 { + panic!("Weight of some call seem to have exceeded half of the block. Probably something is wrong."); + } + + println!("\nCall {} (with default args) takes {} of the block weight, pays {} in fee.", name, portion, fee); +} + #[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 accidently break Polkadot + // 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); @@ -54,37 +77,64 @@ fn sanity_check_weight_per_time_constants_are_as_expected() { fn weight_of_staking_bond_is_correct() { let controller: AccountId = AccountKeyring::Alice.into(); - // #[weight = 67 * WEIGHT_PER_MICROS + T::DbWeight::get().reads_writes(5, 4)] - let expected_weight = 67 * WEIGHT_PER_MICROS + (DbWeight::get().read * 5) + (DbWeight::get().write * 4); - let weight = StakingCall::bond::(controller, 1 * DOLLARS, Default::default()).get_dispatch_info().weight; + // (144278000 as Weight) + // .saturating_add(DbWeight::get().reads(5 as Weight)) + // .saturating_add(DbWeight::get().writes(4 as Weight)) + let expected_weight = 144278000 + (DbWeight::get().read * 5) + (DbWeight::get().write * 4); + let call = StakingCall::bond::(controller, 1 * DOLLARS, Default::default()); + let info = call.get_dispatch_info(); - assert_eq!(weight, expected_weight); + assert_eq!(info.weight, expected_weight); + report_portion("staking_bond", info, call.encode().len()) } #[test] fn weight_of_staking_validate_is_correct() { - // #[weight = 17 * WEIGHT_PER_MICROS + T::DbWeight::get().reads_writes(2, 2)] - let expected_weight = 17 * WEIGHT_PER_MICROS + (DbWeight::get().read * 2) + (DbWeight::get().write * 2); - let weight = StakingCall::validate::(Default::default()).get_dispatch_info().weight; - - assert_eq!(weight, expected_weight); + // (35539000 as Weight) + // .saturating_add(DbWeight::get().reads(2 as Weight)) + // .saturating_add(DbWeight::get().writes(2 as Weight)) + let expected_weight = 35539000 + (DbWeight::get().read * 2) + (DbWeight::get().write * 2); + let call = StakingCall::validate::(Default::default()); + let info = call.get_dispatch_info(); + + assert_eq!(info.weight, expected_weight); + report_portion("staking_validate", info, call.encode().len()) } #[test] fn weight_of_staking_nominate_is_correct() { let targets: Vec = vec![Default::default(), Default::default(), Default::default()]; - // #[weight = T::DbWeight::get().reads_writes(3, 2) - // .saturating_add(22 * WEIGHT_PER_MICROS) - // .saturating_add((360 * WEIGHT_PER_NANOS).saturating_mul(targets.len() as Weight)) - // ] + // (48596000 as Weight) + // .saturating_add((308000 as Weight).saturating_mul(n as Weight)) + // .saturating_add(DbWeight::get().reads(3 as Weight)) + // .saturating_add(DbWeight::get().writes(2 as Weight)) let db_weight = (DbWeight::get().read * 3) + (DbWeight::get().write * 2); - let targets_weight = (360 * WEIGHT_PER_NANOS).saturating_mul(targets.len() as Weight); + let targets_weight = (308 * WEIGHT_PER_NANOS).saturating_mul(targets.len() as Weight); - let expected_weight = db_weight.saturating_add(22 * WEIGHT_PER_MICROS).saturating_add(targets_weight); - let weight = StakingCall::nominate::(targets).get_dispatch_info().weight; + let expected_weight = db_weight.saturating_add(48596000).saturating_add(targets_weight); + let call = StakingCall::nominate::(targets); + let info = call.get_dispatch_info(); - assert_eq!(weight, expected_weight); + assert_eq!(info.weight, expected_weight); + report_portion("staking_nominate", info, call.encode().len()) +} + +#[test] +fn weight_of_staking_payout_staker_is_correct() { + // (0 as Weight) + // .saturating_add((117324000 as Weight).saturating_mul(n as Weight)) + // .saturating_add(DbWeight::get().reads((5 as Weight).saturating_mul(n as Weight))) + // .saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(n as Weight))) + let call = StakingCall::payout_stakers::(Default::default(), 0u32); + let info = call.get_dispatch_info(); + + let n = ::MaxNominatorRewardedPerValidator::get() as Weight; + let mut expected_weight = (117324000 as Weight).saturating_mul(n as Weight); + expected_weight += (DbWeight::get().read * 5 * n) + (DbWeight::get().write * 3 * n); + + assert_eq!(info.weight, expected_weight); + report_portion("staking_payout_stakers", info, call.encode().len()) } #[test] diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 8093b44a1fa5..ca5f7d122087 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -324,7 +324,7 @@ impl pallet_staking::Trait for Runtime { type UnsignedPriority = StakingUnsignedPriority; type MaxIterations = MaxIterations; type MinSolutionScoreBump = MinSolutionScoreBump; - type WeightInfo = (); + type WeightInfo = weights::pallet_staking::WeightInfo; } parameter_types! { diff --git a/runtime/westend/src/weights/mod.rs b/runtime/westend/src/weights/mod.rs index 76368abe6b43..0008cd7f2a80 100644 --- a/runtime/westend/src/weights/mod.rs +++ b/runtime/westend/src/weights/mod.rs @@ -18,6 +18,7 @@ pub mod frame_system; pub mod pallet_balances; +pub mod pallet_proxy; +pub mod pallet_staking; pub mod pallet_timestamp; pub mod pallet_utility; -pub mod pallet_proxy; diff --git a/runtime/westend/src/weights/pallet_staking.rs b/runtime/westend/src/weights/pallet_staking.rs new file mode 100644 index 000000000000..3379cb76749f --- /dev/null +++ b/runtime/westend/src/weights/pallet_staking.rs @@ -0,0 +1,168 @@ +// Copyright (C) 2017-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. + +//! Default weights of pallet-staking. +//! 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_staking::WeightInfo for WeightInfo { + fn bond() -> Weight { + (144278000 as Weight) + .saturating_add(DbWeight::get().reads(5 as Weight)) + .saturating_add(DbWeight::get().writes(4 as Weight)) + } + fn bond_extra() -> Weight { + (110715000 as Weight) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn unbond() -> Weight { + (99840000 as Weight) + .saturating_add(DbWeight::get().reads(5 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn withdraw_unbonded_update(s: u32, ) -> Weight { + (100728000 as Weight) + .saturating_add((63000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(5 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn withdraw_unbonded_kill(s: u32, ) -> Weight { + (168879000 as Weight) + .saturating_add((6666000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(7 as Weight)) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + fn validate() -> Weight { + (35539000 as Weight) + .saturating_add(DbWeight::get().reads(2 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn nominate(n: u32, ) -> Weight { + (48596000 as Weight) + .saturating_add((308000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads(3 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn chill() -> Weight { + (35144000 as Weight) + .saturating_add(DbWeight::get().reads(2 as Weight)) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } + fn set_payee() -> Weight { + (24255000 as Weight) + .saturating_add(DbWeight::get().reads(1 as Weight)) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn set_controller() -> Weight { + (52294000 as Weight) + .saturating_add(DbWeight::get().reads(3 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn set_validator_count() -> Weight { + (5185000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_no_eras() -> Weight { + (5907000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_new_era() -> Weight { + (5917000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_new_era_always() -> Weight { + (5952000 as Weight) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn set_invulnerables(v: u32, ) -> Weight { + (6324000 as Weight) + .saturating_add((9000 as Weight).saturating_mul(v as Weight)) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn force_unstake(s: u32, ) -> Weight { + (119691000 as Weight) + .saturating_add((6681000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + fn cancel_deferred_slash(s: u32, ) -> Weight { + (5820201000 as Weight) + .saturating_add((34672000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(1 as Weight)) + .saturating_add(DbWeight::get().writes(1 as Weight)) + } + fn payout_stakers_dead_controller(n: u32, ) -> Weight { + (0 as Weight) + .saturating_add((92486000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight))) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(n as Weight))) + } + fn payout_stakers_alive_staked(n: u32, ) -> Weight { + (0 as Weight) + .saturating_add((117324000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads((5 as Weight).saturating_mul(n as Weight))) + .saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(n as Weight))) + } + fn rebond(l: u32, ) -> Weight { + (71316000 as Weight) + .saturating_add((142000 as Weight).saturating_mul(l as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(3 as Weight)) + } + fn set_history_depth(e: u32, ) -> Weight { + (0 as Weight) + .saturating_add((51901000 as Weight).saturating_mul(e as Weight)) + .saturating_add(DbWeight::get().reads(2 as Weight)) + .saturating_add(DbWeight::get().writes(4 as Weight)) + .saturating_add(DbWeight::get().writes((7 as Weight).saturating_mul(e as Weight))) + } + fn reap_stash(s: u32, ) -> Weight { + (147166000 as Weight) + .saturating_add((6661000 as Weight).saturating_mul(s as Weight)) + .saturating_add(DbWeight::get().reads(4 as Weight)) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight))) + } + fn new_era(v: u32, n: u32, ) -> Weight { + (0 as Weight) + .saturating_add((1440459000 as Weight).saturating_mul(v as Weight)) + .saturating_add((182580000 as Weight).saturating_mul(n as Weight)) + .saturating_add(DbWeight::get().reads(10 as Weight)) + .saturating_add(DbWeight::get().reads((4 as Weight).saturating_mul(v as Weight))) + .saturating_add(DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight))) + .saturating_add(DbWeight::get().writes(8 as Weight)) + .saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(v as Weight))) + } + fn submit_solution_better(v: u32, n: u32, a: u32, w: u32, ) -> Weight { + (0 as Weight) + .saturating_add((964000 as Weight).saturating_mul(v as Weight)) + .saturating_add((432000 as Weight).saturating_mul(n as Weight)) + .saturating_add((204294000 as Weight).saturating_mul(a as Weight)) + .saturating_add((9546000 as Weight).saturating_mul(w as Weight)) + .saturating_add(DbWeight::get().reads(6 as Weight)) + .saturating_add(DbWeight::get().reads((4 as Weight).saturating_mul(a as Weight))) + .saturating_add(DbWeight::get().reads((1 as Weight).saturating_mul(w as Weight))) + .saturating_add(DbWeight::get().writes(2 as Weight)) + } +}