Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payees lazy migration to PayoutDestination, Split variant for payouts, remove Controller #1196

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
8b4e270
payout destination
Aug 28, 2023
41c57b5
update polkadot weights
Aug 28, 2023
41a878d
Merge branch 'master' into rb-payout-destination
Sep 14, 2023
5b24718
Merge branch 'master' into rb-payout-destination
Sep 14, 2023
a74e362
Merge branch 'master' into rb-payout-destination
Sep 15, 2023
e444ddf
fix CHANGELOG
Sep 15, 2023
63b70d2
update mod
Sep 15, 2023
a9b699a
fmt
Sep 15, 2023
4a3158e
fix bounded_vec
Sep 15, 2023
10fa587
rm
Sep 15, 2023
4733027
fmt fixes
Sep 15, 2023
13b2cd7
style guide
Sep 15, 2023
3f9a64a
zetper format
Sep 15, 2023
a2e9b53
fix import
Sep 15, 2023
ada2c54
Merge branch 'master' into rb-payout-destination
Sep 15, 2023
e2606ab
Merge branch 'master' into rb-payout-destination
Sep 17, 2023
be3a745
Merge branch 'master' into rb-payout-destination
Sep 18, 2023
03773a2
Merge branch 'master' into rb-payout-destination
Sep 20, 2023
12d1d8a
make_payout fixes
Sep 20, 2023
2146243
Merge branch 'rb-payout-destination' of https://github.com/paritytech…
Sep 20, 2023
64a64d6
fmt
Sep 20, 2023
af40ebb
Merge branch 'master' into rb-payout-destination
Sep 20, 2023
8ca57cb
Merge branch 'master' into rb-payout-destination
Sep 21, 2023
9035119
Merge branch 'master' into rb-payout-destination
Sep 22, 2023
62b15e4
Merge branch 'master' into rb-payout-destination
Sep 25, 2023
9607e25
Merge branch 'master' into rb-payout-destination
Sep 28, 2023
a7b19af
add tracking issue
Sep 28, 2023
60c2f01
from_call to handle undesired Splits
Sep 28, 2023
f50ef44
comment
Sep 28, 2023
f629511
add tracking url
Sep 28, 2023
4bd3f6a
rm clone
Sep 28, 2023
2347b25
from_route for test & benches only
Sep 29, 2023
240677f
remove complexity notes
Sep 29, 2023
e757600
Payee storage_prefix, use DeprecatedPayee
Sep 29, 2023
070d219
use CheckedPayoutDestination
Sep 29, 2023
93e033f
fmt
Sep 29, 2023
6742524
fix
Sep 29, 2023
723d2a3
Merge branch 'master' into rb-payout-destination
Sep 29, 2023
2941e0f
rm conflicts
Sep 29, 2023
544d81f
Merge branch 'rb-payout-destination' of https://github.com/paritytech…
Sep 29, 2023
74bf531
Merge branch 'master' into rb-payout-destination
Sep 29, 2023
8886d83
Merge branch 'master' into rb-payout-destination
Sep 30, 2023
27039f1
Merge branch 'master' into rb-payout-destination
Oct 1, 2023
29e7b4d
Merge branch 'master' into rb-payout-destination
Oct 2, 2023
0edcfb7
Merge branch 'master' into rb-payout-destination
Oct 3, 2023
8668680
Merge branch 'master' into rb-payout-destination
Oct 4, 2023
1a15ce8
Merge branch 'master' into rb-payout-destination
Oct 5, 2023
24cc6cb
Merge branch 'master' into rb-payout-destination
Oct 6, 2023
926234c
Merge branch 'master' into rb-payout-destination
Oct 8, 2023
f6c7a25
Merge branch 'master' into rb-payout-destination
Oct 10, 2023
d443635
Merge branch 'master' into rb-payout-destination
Oct 12, 2023
42fbd04
Merge branch 'master' into rb-payout-destination
Oct 13, 2023
0122d6f
Merge branch 'master' into rb-payout-destination
Oct 14, 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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

168 changes: 94 additions & 74 deletions polkadot/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 Expand Up @@ -793,4 +813,4 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
}
}
Loading