mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +00:00
* 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:
@@ -1456,17 +1456,22 @@ pub type SignedExtra = (
|
||||
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
|
||||
);
|
||||
|
||||
pub struct StakingMigrationV11OldPallet;
|
||||
impl Get<&'static str> for StakingMigrationV11OldPallet {
|
||||
fn get() -> &'static str {
|
||||
"VoterList"
|
||||
pub struct NominationPoolsMigrationV4OldPallet;
|
||||
impl Get<Perbill> for NominationPoolsMigrationV4OldPallet {
|
||||
fn get() -> Perbill {
|
||||
Perbill::from_percent(10)
|
||||
}
|
||||
}
|
||||
|
||||
/// All migrations that will run on the next runtime upgrade.
|
||||
///
|
||||
/// Should be cleared after every release.
|
||||
pub type Migrations = ();
|
||||
pub type Migrations = (
|
||||
pallet_nomination_pools::migration::v4::MigrateToV4<
|
||||
Runtime,
|
||||
NominationPoolsMigrationV4OldPallet,
|
||||
>,
|
||||
);
|
||||
|
||||
/// Unchecked extrinsic type as expected by this runtime.
|
||||
pub type UncheckedExtrinsic =
|
||||
|
||||
@@ -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-28, 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: `bm5`, 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("kusama-dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/polkadot
|
||||
// target/production/polkadot
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=kusama-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=kusama-dev
|
||||
// --header=./file_header.txt
|
||||
// --output=./runtime/kusama/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: `3501`
|
||||
// Estimated: `38468`
|
||||
// Minimum execution time: 155_259 nanoseconds.
|
||||
Weight::from_parts(159_392_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 38468))
|
||||
.saturating_add(T::DbWeight::get().reads(17))
|
||||
// Measured: `3578`
|
||||
// Estimated: `52915`
|
||||
// Minimum execution time: 155_563_000 picoseconds.
|
||||
Weight::from_parts(156_968_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: `3543`
|
||||
// Estimated: `39063`
|
||||
// Minimum execution time: 150_628 nanoseconds.
|
||||
Weight::from_parts(152_414_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 39063))
|
||||
.saturating_add(T::DbWeight::get().reads(14))
|
||||
// Measured: `3620`
|
||||
// Estimated: `49550`
|
||||
// Minimum execution time: 153_086_000 picoseconds.
|
||||
Weight::from_parts(154_699_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)
|
||||
@@ -125,50 +133,54 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListNodes (r:2 w:2)
|
||||
/// Storage: VoterList ListNodes (r:3 w:3)
|
||||
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListBags (r:2 w:2)
|
||||
/// 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: `3389`
|
||||
// Estimated: `38950`
|
||||
// Minimum execution time: 163_983 nanoseconds.
|
||||
Weight::from_parts(165_428_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 38950))
|
||||
.saturating_add(T::DbWeight::get().reads(14))
|
||||
.saturating_add(T::DbWeight::get().writes(12))
|
||||
// Measured: `3685`
|
||||
// Estimated: `53056`
|
||||
// Minimum execution time: 172_493_000 picoseconds.
|
||||
Weight::from_parts(173_786_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 53056))
|
||||
.saturating_add(T::DbWeight::get().reads(16))
|
||||
.saturating_add(T::DbWeight::get().writes(13))
|
||||
}
|
||||
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
|
||||
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
|
||||
/// 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: `1254`
|
||||
// Estimated: `13485`
|
||||
// Minimum execution time: 59_520 nanoseconds.
|
||||
Weight::from_parts(60_666_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 13485))
|
||||
.saturating_add(T::DbWeight::get().reads(5))
|
||||
// Measured: `1331`
|
||||
// Estimated: `20012`
|
||||
// Minimum execution time: 60_276_000 picoseconds.
|
||||
Weight::from_parts(60_972_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: `3779`
|
||||
// Estimated: `44930`
|
||||
// Minimum execution time: 154_659 nanoseconds.
|
||||
Weight::from_parts(156_090_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 44930))
|
||||
.saturating_add(T::DbWeight::get().reads(18))
|
||||
// Measured: `3856`
|
||||
// Estimated: `60367`
|
||||
// Minimum execution time: 156_830_000 picoseconds.
|
||||
Weight::from_parts(158_198_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 60367))
|
||||
.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: `1700`
|
||||
// Estimated: `13025`
|
||||
// Minimum execution time: 52_836 nanoseconds.
|
||||
Weight::from_parts(54_086_254, 0)
|
||||
.saturating_add(Weight::from_parts(0, 13025))
|
||||
// Standard Error: 753
|
||||
.saturating_add(Weight::from_parts(8_103, 0).saturating_mul(s.into()))
|
||||
// Measured: `1704`
|
||||
// Estimated: `18031`
|
||||
// Minimum execution time: 53_206_000 picoseconds.
|
||||
Weight::from_parts(54_391_455, 0)
|
||||
.saturating_add(Weight::from_parts(0, 18031))
|
||||
// Standard Error: 2_654
|
||||
.saturating_add(Weight::from_parts(10_172, 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(1197), added: 3672, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Bonded (r:1 w:0)
|
||||
@@ -241,15 +253,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_update(s: u32, ) -> Weight {
|
||||
fn withdraw_unbonded_update(_s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2224`
|
||||
// Estimated: `22991`
|
||||
// Minimum execution time: 102_419 nanoseconds.
|
||||
Weight::from_parts(104_332_875, 0)
|
||||
.saturating_add(Weight::from_parts(0, 22991))
|
||||
// Standard Error: 1_933
|
||||
.saturating_add(Weight::from_parts(15_901, 0).saturating_mul(s.into()))
|
||||
// Measured: `2228`
|
||||
// Estimated: `31957`
|
||||
// Minimum execution time: 102_755_000 picoseconds.
|
||||
Weight::from_parts(107_719_238, 0)
|
||||
.saturating_add(Weight::from_parts(0, 31957))
|
||||
.saturating_add(T::DbWeight::get().reads(9))
|
||||
.saturating_add(T::DbWeight::get().writes(8))
|
||||
}
|
||||
@@ -258,7 +268,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(1197), added: 3672, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Bonded (r:1 w:1)
|
||||
@@ -282,7 +292,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,13 +306,15 @@ 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: `2614`
|
||||
// Estimated: `46287`
|
||||
// Minimum execution time: 162_308 nanoseconds.
|
||||
Weight::from_parts(165_347_893, 0)
|
||||
.saturating_add(Weight::from_parts(0, 46287))
|
||||
// Measured: `2618`
|
||||
// Estimated: `65189`
|
||||
// Minimum execution time: 161_317_000 picoseconds.
|
||||
Weight::from_parts(164_663_249, 0)
|
||||
.saturating_add(Weight::from_parts(0, 65189))
|
||||
// Standard Error: 25_821
|
||||
.saturating_add(Weight::from_parts(58_147, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(20))
|
||||
.saturating_add(T::DbWeight::get().writes(18))
|
||||
}
|
||||
@@ -337,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)
|
||||
@@ -345,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: 144_295 nanoseconds.
|
||||
Weight::from_parts(145_923_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 32002))
|
||||
// Estimated: `51890`
|
||||
// Minimum execution time: 141_784_000 picoseconds.
|
||||
Weight::from_parts(142_683_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)
|
||||
@@ -385,36 +397,36 @@ impl<T: frame_system::Config> pallet_nomination_pools::WeightInfo for WeightInfo
|
||||
/// The range of component `n` is `[1, 24]`.
|
||||
fn nominate(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1834`
|
||||
// Estimated: `22254 + n * (2520 ±0)`
|
||||
// Minimum execution time: 66_817 nanoseconds.
|
||||
Weight::from_parts(67_646_764, 0)
|
||||
.saturating_add(Weight::from_parts(0, 22254))
|
||||
// Standard Error: 12_768
|
||||
.saturating_add(Weight::from_parts(1_325_294, 0).saturating_mul(n.into()))
|
||||
// Measured: `1838`
|
||||
// Estimated: `34190 + n * (2520 ±0)`
|
||||
// Minimum execution time: 65_561_000 picoseconds.
|
||||
Weight::from_parts(68_033_566, 0)
|
||||
.saturating_add(Weight::from_parts(0, 34190))
|
||||
// Standard Error: 41_874
|
||||
.saturating_add(Weight::from_parts(1_249_632, 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: `1423`
|
||||
// Estimated: `8752`
|
||||
// Minimum execution time: 35_795 nanoseconds.
|
||||
Weight::from_parts(36_450_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 8752))
|
||||
// Measured: `1427`
|
||||
// Estimated: `11778`
|
||||
// Minimum execution time: 36_008_000 picoseconds.
|
||||
Weight::from_parts(36_665_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)
|
||||
@@ -422,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: `559`
|
||||
// Estimated: `5883`
|
||||
// Minimum execution time: 14_066 nanoseconds.
|
||||
Weight::from_parts(14_523_246, 0)
|
||||
.saturating_add(Weight::from_parts(0, 5883))
|
||||
// Standard Error: 114
|
||||
.saturating_add(Weight::from_parts(1_692, 0).saturating_mul(n.into()))
|
||||
// Measured: `563`
|
||||
// Estimated: `8909`
|
||||
// Minimum execution time: 14_479_000 picoseconds.
|
||||
Weight::from_parts(15_744_317, 0)
|
||||
.saturating_add(Weight::from_parts(0, 8909))
|
||||
// Standard Error: 1_213
|
||||
.saturating_add(Weight::from_parts(2_309, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
}
|
||||
@@ -440,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_088 nanoseconds.
|
||||
Weight::from_parts(5_337_000, 0)
|
||||
// Minimum execution time: 6_288_000 picoseconds.
|
||||
Weight::from_parts(6_550_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: `559`
|
||||
// Estimated: `2639`
|
||||
// Minimum execution time: 19_312 nanoseconds.
|
||||
Weight::from_parts(19_483_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 2639))
|
||||
// Measured: `563`
|
||||
// Estimated: `3685`
|
||||
// Minimum execution time: 20_297_000 picoseconds.
|
||||
Weight::from_parts(20_698_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)
|
||||
@@ -483,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: `2061`
|
||||
// Estimated: `20745`
|
||||
// Minimum execution time: 65_721 nanoseconds.
|
||||
Weight::from_parts(66_514_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 20745))
|
||||
// Measured: `2065`
|
||||
// Estimated: `29711`
|
||||
// Minimum execution time: 64_288_000 picoseconds.
|
||||
Weight::from_parts(65_089_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 29711))
|
||||
.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: `866`
|
||||
// Estimated: `12324`
|
||||
// Minimum execution time: 32_180_000 picoseconds.
|
||||
Weight::from_parts(32_637_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: `603`
|
||||
// Estimated: `3685`
|
||||
// Minimum execution time: 18_814_000 picoseconds.
|
||||
Weight::from_parts(19_221_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: `563`
|
||||
// Estimated: `3685`
|
||||
// Minimum execution time: 19_641_000 picoseconds.
|
||||
Weight::from_parts(29_789_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)
|
||||
@@ -498,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: `542`
|
||||
// Estimated: `5708`
|
||||
// Minimum execution time: 14_637 nanoseconds.
|
||||
Weight::from_parts(15_053_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 5708))
|
||||
// Estimated: `7688`
|
||||
// Minimum execution time: 14_819_000 picoseconds.
|
||||
Weight::from_parts(21_194_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: `1096`
|
||||
// Estimated: `12324`
|
||||
// Minimum execution time: 47_609_000 picoseconds.
|
||||
Weight::from_parts(48_694_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 12324))
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user