polkadot companion: #13128 (Pools commission) (#6264)

* migrate to pools v4

* update types + weights

* rm BlockNumberToU32

* fmt

* fix

* update weights

* fix RocksDbWeight

* fix function name

* weights

* use 1 weight format

* update claim payout weights

* + as u64

* fix rebase + fmt

* add weights

* more weights

* ".git/.scripts/commands/bench/bench.sh" runtime polkadot-dev pallet_nomination_pools

* ".git/.scripts/commands/bench/bench.sh" runtime kusama-dev pallet_nomination_pools

* ".git/.scripts/commands/bench/bench.sh" runtime westend-dev pallet_nomination_pools

* fix

* fix

* ".git/.scripts/commands/bench/bench.sh" runtime polkadot-dev pallet_nomination_pools

* ".git/.scripts/commands/bench/bench.sh" runtime westend-dev pallet_nomination_pools

* ".git/.scripts/commands/bench/bench.sh" runtime kusama-dev pallet_nomination_pools

* add InitialGlobalMaxCommission

* revert

* global max commission migration generic

* remove StakingMigrationV11OldPallet

* initial global max commission

* adjust global max

* update lockfile for {"substrate"}

* Use master lock file

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* cargo update -p sp-io

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Ross Bulat
2023-03-15 22:29:40 +08:00
committed by GitHub
parent b6593bbfa5
commit a715a33ab9
7 changed files with 786 additions and 550 deletions
@@ -16,22 +16,24 @@
//! Autogenerated weights for `pallet_nomination_pools`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-03-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/polkadot
// target/production/polkadot
// benchmark
// pallet
// --chain=westend-dev
// --steps=50
// --repeat=20
// --pallet=pallet_nomination_pools
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/polkadot/.git/.artifacts/bench.json
// --pallet=pallet_nomination_pools
// --chain=westend-dev
// --header=./file_header.txt
// --output=./runtime/westend/src/weights/
@@ -50,13 +52,15 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Storage: NominationPools PoolMembers (r:1 w:1)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(717), added: 3192, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:1)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: NominationPools MaxPoolMembersPerPool (r:1 w:0)
@@ -73,20 +77,22 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn join() -> Weight {
// Proof Size summary in bytes:
// Measured: `3586`
// Estimated: `38468`
// Minimum execution time: 154_304 nanoseconds.
Weight::from_parts(155_220_000, 0)
.saturating_add(Weight::from_parts(0, 38468))
.saturating_add(T::DbWeight::get().reads(17))
// Measured: `3663`
// Estimated: `52915`
// Minimum execution time: 152_798_000 picoseconds.
Weight::from_parts(154_136_000, 0)
.saturating_add(Weight::from_parts(0, 52915))
.saturating_add(T::DbWeight::get().reads(18))
.saturating_add(T::DbWeight::get().writes(12))
}
/// Storage: NominationPools PoolMembers (r:1 w:1)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(717), added: 3192, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:3 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
@@ -101,12 +107,12 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn bond_extra_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `3628`
// Estimated: `39063`
// Minimum execution time: 150_523 nanoseconds.
Weight::from_parts(154_073_000, 0)
.saturating_add(Weight::from_parts(0, 39063))
.saturating_add(T::DbWeight::get().reads(14))
// Measured: `3705`
// Estimated: `49550`
// Minimum execution time: 149_896_000 picoseconds.
Weight::from_parts(151_049_000, 0)
.saturating_add(Weight::from_parts(0, 49550))
.saturating_add(T::DbWeight::get().reads(15))
.saturating_add(T::DbWeight::get().writes(12))
}
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
@@ -114,9 +120,11 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Storage: NominationPools PoolMembers (r:1 w:1)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(717), added: 3192, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:3 w:3)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
@@ -131,12 +139,12 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn bond_extra_other() -> Weight {
// Proof Size summary in bytes:
// Measured: `3427`
// Estimated: `38950`
// Minimum execution time: 162_554 nanoseconds.
Weight::from_parts(164_041_000, 0)
.saturating_add(Weight::from_parts(0, 38950))
.saturating_add(T::DbWeight::get().reads(14))
// Measured: `3504`
// Estimated: `50427`
// Minimum execution time: 161_501_000 picoseconds.
Weight::from_parts(163_539_000, 0)
.saturating_add(Weight::from_parts(0, 50427))
.saturating_add(T::DbWeight::get().reads(15))
.saturating_add(T::DbWeight::get().writes(12))
}
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
@@ -144,31 +152,35 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Storage: NominationPools PoolMembers (r:1 w:1)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(717), added: 3192, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn claim_payout() -> Weight {
// Proof Size summary in bytes:
// Measured: `1220`
// Estimated: `13485`
// Minimum execution time: 58_946 nanoseconds.
Weight::from_parts(59_799_000, 0)
.saturating_add(Weight::from_parts(0, 13485))
.saturating_add(T::DbWeight::get().reads(5))
// Measured: `1297`
// Estimated: `20012`
// Minimum execution time: 58_717_000 picoseconds.
Weight::from_parts(59_543_000, 0)
.saturating_add(Weight::from_parts(0, 20012))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(4))
}
/// Storage: NominationPools PoolMembers (r:1 w:1)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(717), added: 3192, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:1)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Staking CurrentEra (r:1 w:0)
@@ -189,16 +201,16 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Proof: NominationPools CounterForSubPoolsStorage (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn unbond() -> Weight {
// Proof Size summary in bytes:
// Measured: `3865`
// Estimated: `43738`
// Minimum execution time: 155_416 nanoseconds.
Weight::from_parts(157_093_000, 0)
.saturating_add(Weight::from_parts(0, 43738))
.saturating_add(T::DbWeight::get().reads(18))
// Measured: `3942`
// Estimated: `59175`
// Minimum execution time: 154_589_000 picoseconds.
Weight::from_parts(155_708_000, 0)
.saturating_add(Weight::from_parts(0, 59175))
.saturating_add(T::DbWeight::get().reads(19))
.saturating_add(T::DbWeight::get().writes(13))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:1)
@@ -210,13 +222,13 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// The range of component `s` is `[0, 100]`.
fn pool_withdraw_unbonded(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1706`
// Estimated: `13025`
// Minimum execution time: 52_621 nanoseconds.
Weight::from_parts(53_508_921, 0)
.saturating_add(Weight::from_parts(0, 13025))
// Standard Error: 790
.saturating_add(Weight::from_parts(15_066, 0).saturating_mul(s.into()))
// Measured: `1710`
// Estimated: `18031`
// Minimum execution time: 52_663_000 picoseconds.
Weight::from_parts(54_091_646, 0)
.saturating_add(Weight::from_parts(0, 18031))
// Standard Error: 2_889
.saturating_add(Weight::from_parts(7_400, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -225,7 +237,7 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: NominationPools SubPoolsStorage (r:1 w:1)
/// Proof: NominationPools SubPoolsStorage (max_values: None, max_size: Some(261), added: 2736, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
@@ -243,13 +255,13 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_update(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `2230`
// Estimated: `22055`
// Minimum execution time: 102_019 nanoseconds.
Weight::from_parts(104_029_094, 0)
.saturating_add(Weight::from_parts(0, 22055))
// Standard Error: 1_344
.saturating_add(Weight::from_parts(13_886, 0).saturating_mul(s.into()))
// Measured: `2234`
// Estimated: `31021`
// Minimum execution time: 101_113_000 picoseconds.
Weight::from_parts(103_367_891, 0)
.saturating_add(Weight::from_parts(0, 31021))
// Standard Error: 1_536
.saturating_add(Weight::from_parts(9_937, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(8))
}
@@ -258,7 +270,7 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: NominationPools SubPoolsStorage (r:1 w:1)
/// Proof: NominationPools SubPoolsStorage (max_values: None, max_size: Some(261), added: 2736, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:1)
@@ -282,7 +294,7 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Storage: NominationPools CounterForReversePoolIdLookup (r:1 w:1)
/// Proof: NominationPools CounterForReversePoolIdLookup (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForRewardPools (r:1 w:1)
/// Proof: NominationPools CounterForRewardPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForSubPoolsStorage (r:1 w:1)
@@ -296,15 +308,13 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Storage: NominationPools ClaimPermissions (r:0 w:1)
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
/// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_kill(s: u32, ) -> Weight {
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `2618`
// Estimated: `45099`
// Minimum execution time: 161_236 nanoseconds.
Weight::from_parts(164_070_568, 0)
.saturating_add(Weight::from_parts(0, 45099))
// Standard Error: 2_621
.saturating_add(Weight::from_parts(10_297, 0).saturating_mul(s.into()))
// Measured: `2622`
// Estimated: `64001`
// Minimum execution time: 158_497_000 picoseconds.
Weight::from_parts(162_554_414, 0)
.saturating_add(Weight::from_parts(0, 64001))
.saturating_add(T::DbWeight::get().reads(20))
.saturating_add(T::DbWeight::get().writes(18))
}
@@ -339,7 +349,7 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForRewardPools (r:1 w:1)
/// Proof: NominationPools CounterForRewardPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools ReversePoolIdLookup (r:1 w:1)
@@ -347,21 +357,21 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Storage: NominationPools CounterForReversePoolIdLookup (r:1 w:1)
/// Proof: NominationPools CounterForReversePoolIdLookup (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: Staking Payee (r:0 w:1)
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
fn create() -> Weight {
// Proof Size summary in bytes:
// Measured: `1254`
// Estimated: `32002`
// Minimum execution time: 142_981 nanoseconds.
Weight::from_parts(144_237_000, 0)
.saturating_add(Weight::from_parts(0, 32002))
// Estimated: `51890`
// Minimum execution time: 140_839_000 picoseconds.
Weight::from_parts(143_493_000, 0)
.saturating_add(Weight::from_parts(0, 51890))
.saturating_add(T::DbWeight::get().reads(21))
.saturating_add(T::DbWeight::get().writes(15))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:0)
@@ -387,36 +397,36 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// The range of component `n` is `[1, 16]`.
fn nominate(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1839`
// Estimated: `21998 + n * (2520 ±0)`
// Minimum execution time: 65_217 nanoseconds.
Weight::from_parts(65_750_377, 0)
.saturating_add(Weight::from_parts(0, 21998))
// Standard Error: 7_685
.saturating_add(Weight::from_parts(1_336_128, 0).saturating_mul(n.into()))
// Measured: `1843`
// Estimated: `33934 + n * (2520 ±0)`
// Minimum execution time: 65_363_000 picoseconds.
Weight::from_parts(66_269_952, 0)
.saturating_add(Weight::from_parts(0, 33934))
// Standard Error: 10_011
.saturating_add(Weight::from_parts(1_294_057, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(12))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(5))
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(n.into()))
}
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
fn set_state() -> Weight {
// Proof Size summary in bytes:
// Measured: `1427`
// Estimated: `8752`
// Minimum execution time: 35_863 nanoseconds.
Weight::from_parts(36_287_000, 0)
.saturating_add(Weight::from_parts(0, 8752))
// Measured: `1431`
// Estimated: `11778`
// Minimum execution time: 36_747_000 picoseconds.
Weight::from_parts(37_477_000, 0)
.saturating_add(Weight::from_parts(0, 11778))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: NominationPools Metadata (r:1 w:1)
/// Proof: NominationPools Metadata (max_values: None, max_size: Some(270), added: 2745, mode: MaxEncodedLen)
/// Storage: NominationPools CounterForMetadata (r:1 w:1)
@@ -424,13 +434,13 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// The range of component `n` is `[1, 256]`.
fn set_metadata(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `525`
// Estimated: `5883`
// Minimum execution time: 13_860 nanoseconds.
Weight::from_parts(14_425_990, 0)
.saturating_add(Weight::from_parts(0, 5883))
// Standard Error: 94
.saturating_add(Weight::from_parts(1_103, 0).saturating_mul(n.into()))
// Measured: `529`
// Estimated: `8909`
// Minimum execution time: 14_658_000 picoseconds.
Weight::from_parts(15_258_809, 0)
.saturating_add(Weight::from_parts(0, 8909))
// Standard Error: 850
.saturating_add(Weight::from_parts(3_615, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
@@ -442,31 +452,33 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Proof: NominationPools MaxPoolMembersPerPool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools MinCreateBond (r:0 w:1)
/// Proof: NominationPools MinCreateBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
/// Storage: NominationPools GlobalMaxCommission (r:0 w:1)
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: NominationPools MaxPools (r:0 w:1)
/// Proof: NominationPools MaxPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn set_configs() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_097 nanoseconds.
Weight::from_parts(5_385_000, 0)
// Minimum execution time: 6_314_000 picoseconds.
Weight::from_parts(6_573_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(5))
.saturating_add(T::DbWeight::get().writes(6))
}
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
fn update_roles() -> Weight {
// Proof Size summary in bytes:
// Measured: `525`
// Estimated: `2639`
// Minimum execution time: 19_168 nanoseconds.
Weight::from_parts(19_566_000, 0)
.saturating_add(Weight::from_parts(0, 2639))
// Measured: `529`
// Estimated: `3685`
// Minimum execution time: 19_551_000 picoseconds.
Weight::from_parts(19_827_000, 0)
.saturating_add(Weight::from_parts(0, 3685))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:0)
@@ -485,14 +497,56 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn chill() -> Weight {
// Proof Size summary in bytes:
// Measured: `2066`
// Estimated: `20489`
// Minimum execution time: 64_030 nanoseconds.
Weight::from_parts(64_573_000, 0)
.saturating_add(Weight::from_parts(0, 20489))
// Measured: `2070`
// Estimated: `29455`
// Minimum execution time: 63_836_000 picoseconds.
Weight::from_parts(64_440_000, 0)
.saturating_add(Weight::from_parts(0, 29455))
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(5))
}
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:0)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn set_commission() -> Weight {
// Proof Size summary in bytes:
// Measured: `832`
// Estimated: `12324`
// Minimum execution time: 32_116_000 picoseconds.
Weight::from_parts(32_651_000, 0)
.saturating_add(Weight::from_parts(0, 12324))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
fn set_commission_max() -> Weight {
// Proof Size summary in bytes:
// Measured: `569`
// Estimated: `3685`
// Minimum execution time: 18_582_000 picoseconds.
Weight::from_parts(19_029_000, 0)
.saturating_add(Weight::from_parts(0, 3685))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: NominationPools BondedPools (r:1 w:1)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
fn set_commission_change_rate() -> Weight {
// Proof Size summary in bytes:
// Measured: `529`
// Estimated: `3685`
// Minimum execution time: 19_668_000 picoseconds.
Weight::from_parts(20_103_000, 0)
.saturating_add(Weight::from_parts(0, 3685))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: NominationPools PoolMembers (r:1 w:0)
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(717), added: 3192, mode: MaxEncodedLen)
/// Storage: NominationPools ClaimPermissions (r:1 w:1)
@@ -500,11 +554,29 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
fn set_claim_permission() -> Weight {
// Proof Size summary in bytes:
// Measured: `508`
// Estimated: `5708`
// Minimum execution time: 14_137 nanoseconds.
Weight::from_parts(14_483_000, 0)
.saturating_add(Weight::from_parts(0, 5708))
// Estimated: `7688`
// Minimum execution time: 14_730_000 picoseconds.
Weight::from_parts(15_088_000, 0)
.saturating_add(Weight::from_parts(0, 7688))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: NominationPools BondedPools (r:1 w:0)
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
/// Storage: NominationPools RewardPools (r:1 w:1)
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn claim_commission() -> Weight {
// Proof Size summary in bytes:
// Measured: `1062`
// Estimated: `12324`
// Minimum execution time: 47_120_000 picoseconds.
Weight::from_parts(47_597_000, 0)
.saturating_add(Weight::from_parts(0, 12324))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
}