Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Update payee weights. Companion for #14451 #7425

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1ed9f6d
update payee weights
Jun 25, 2023
fcf7d65
DbWeight
Jun 25, 2023
bb628db
add update_payee to SafeCallFilter
Jun 25, 2023
94d8db4
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Jun 26, 2023
15d787f
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Jul 17, 2023
889653f
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Jul 20, 2023
bc0a32b
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Jul 25, 2023
16aee65
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Jul 26, 2023
c9bfe08
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Jul 31, 2023
8c1e5f6
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Aug 1, 2023
2a70194
update weights again
Aug 3, 2023
a26cd6f
Merge branch 'rb-update-payee-weights' of https://github.com/parityte…
Aug 3, 2023
fb1c99b
fix
Aug 3, 2023
cceda46
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Aug 3, 2023
b242b76
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Aug 6, 2023
508ec4a
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Aug 10, 2023
43cf2ee
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Aug 15, 2023
446428d
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Aug 16, 2023
ac5fbce
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Aug 17, 2023
ccc0a75
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Aug 17, 2023
2a63ea2
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Aug 20, 2023
9e06ba7
Merge remote-tracking branch 'origin/master' into rb-update-payee-wei…
Aug 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 93 additions & 73 deletions runtime/kusama/src/weights/pallet_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,19 +298,37 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(6))
}
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Staking Payee (r:0 w:1)
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `Staking::Payees` (r:1 w:1)
/// Proof: `Staking::Payees` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`)
/// Storage: `Staking::Payee` (r:1 w:1)
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
fn set_payee() -> Weight {
// Proof Size summary in bytes:
// Measured: `735`
// Measured: `1011`
// Estimated: `4556`
// Minimum execution time: 13_578_000 picoseconds.
Weight::from_parts(14_266_000, 0)
.saturating_add(Weight::from_parts(0, 4556))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
// Minimum execution time: 26_163_000 picoseconds.
Weight::from_parts(26_736_000, 4556)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `Staking::Payees` (r:1 w:1)
/// Proof: `Staking::Payees` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`)
/// Storage: `Staking::Payee` (r:1 w:1)
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
/// Storage: `Staking::CounterForPayees` (r:1 w:1)
/// Proof: `Staking::CounterForPayees` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
fn update_payee() -> Weight {
// Proof Size summary in bytes:
// Measured: `989`
// Estimated: `4556`
// Minimum execution time: 29_795_000 picoseconds.
Weight::from_parts(30_505_000, 4556)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: Staking Bonded (r:1 w:1)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
Expand Down Expand Up @@ -442,75 +460,77 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking ErasValidatorReward (r:1 w:0)
/// Proof: Staking ErasValidatorReward (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:513 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: Staking ErasStakersClipped (r:1 w:0)
/// Proof Skipped: Staking ErasStakersClipped (max_values: None, max_size: None, mode: Measured)
/// Storage: Staking ErasRewardPoints (r:1 w:0)
/// Proof Skipped: Staking ErasRewardPoints (max_values: None, max_size: None, mode: Measured)
/// Storage: Staking ErasValidatorPrefs (r:1 w:0)
/// Proof: Staking ErasValidatorPrefs (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
/// Storage: Staking Payee (r:513 w:0)
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
/// Storage: System Account (r:513 w:513)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 512]`.
/// Storage: `Staking::CurrentEra` (r:1 w:0)
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::ErasValidatorReward` (r:1 w:0)
/// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `Staking::Bonded` (r:257 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:257 w:257)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `Staking::ErasStakersClipped` (r:1 w:0)
/// Proof: `Staking::ErasStakersClipped` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Staking::ErasRewardPoints` (r:1 w:0)
/// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Staking::ErasValidatorPrefs` (r:1 w:0)
/// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
/// Storage: `Staking::Payees` (r:257 w:0)
/// Proof: `Staking::Payees` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:514 w:514)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:257 w:257)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:257 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 256]`.
fn payout_stakers_dead_controller(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `34175 + n * (149 ±0)`
// Estimated: `32387 + n * (2603 ±1)`
// Minimum execution time: 121_648_000 picoseconds.
Weight::from_parts(145_330_037, 0)
.saturating_add(Weight::from_parts(0, 32387))
// Standard Error: 30_044
.saturating_add(Weight::from_parts(35_396_961, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(n.into()))
// Measured: `35615 + n * (408 ±0)`
// Estimated: `32897 + n * (5206 ±0)`
// Minimum execution time: 170_530_000 picoseconds.
Weight::from_parts(126_452_100, 32897)
// Standard Error: 83_193
.saturating_add(Weight::from_parts(81_128_879, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(12_u64))
.saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 5206).saturating_mul(n.into()))
}
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking ErasValidatorReward (r:1 w:0)
/// Proof: Staking ErasValidatorReward (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:513 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:513 w:513)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Staking ErasStakersClipped (r:1 w:0)
/// Proof Skipped: Staking ErasStakersClipped (max_values: None, max_size: None, mode: Measured)
/// Storage: Staking ErasRewardPoints (r:1 w:0)
/// Proof Skipped: Staking ErasRewardPoints (max_values: None, max_size: None, mode: Measured)
/// Storage: Staking ErasValidatorPrefs (r:1 w:0)
/// Proof: Staking ErasValidatorPrefs (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
/// Storage: Staking Payee (r:513 w:0)
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
/// Storage: System Account (r:513 w:513)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:513 w:513)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:513 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 512]`.
/// Storage: `Staking::CurrentEra` (r:1 w:0)
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::ErasValidatorReward` (r:1 w:0)
/// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `Staking::Bonded` (r:257 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:257 w:257)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `Staking::ErasStakersClipped` (r:1 w:0)
/// Proof: `Staking::ErasStakersClipped` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Staking::ErasRewardPoints` (r:1 w:0)
/// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Staking::ErasValidatorPrefs` (r:1 w:0)
/// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
/// Storage: `Staking::Payees` (r:257 w:0)
/// Proof: `Staking::Payees` (`max_values`: None, `max_size`: Some(77), added: 2552, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:257 w:257)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:257 w:257)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:257 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 256]`.
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `58149 + n * (385 ±0)`
// Estimated: `53036 + n * (3774 ±2)`
// Minimum execution time: 159_726_000 picoseconds.
Weight::from_parts(163_012_000, 0)
.saturating_add(Weight::from_parts(0, 53036))
// Standard Error: 96_376
.saturating_add(Weight::from_parts(59_227_426, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(11))
// Measured: `33254 + n * (415 ±0)`
// Estimated: `30909 + n * (3774 ±0)`
// Minimum execution time: 151_627_000 picoseconds.
Weight::from_parts(182_153_785, 30909)
// Standard Error: 65_276
.saturating_add(Weight::from_parts(68_254_025, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(11_u64))
.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(n.into()))
}
Expand Down
1 change: 1 addition & 0 deletions runtime/kusama/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ impl Contains<RuntimeCall> for SafeCallFilter {
pallet_staking::Call::nominate { .. } |
pallet_staking::Call::chill { .. } |
pallet_staking::Call::set_payee { .. } |
pallet_staking::Call::update_payee { .. } |
pallet_staking::Call::set_controller { .. } |
pallet_staking::Call::set_validator_count { .. } |
pallet_staking::Call::increase_validator_count { .. } |
Expand Down
Loading