38
38
// dev
39
39
// --pallet
40
40
// parachain-staking
41
- // --extrinsic=set_inflation
41
+ // --extrinsic=execute_scheduled_reward_change
42
42
// --output=./runtimes/peregrine/src/weights/
43
43
44
44
#![ cfg_attr( rustfmt, rustfmt_skip) ]
@@ -53,6 +53,10 @@ pub struct WeightInfo<T>(PhantomData<T>);
53
53
impl < T : frame_system:: Config > parachain_staking:: WeightInfo for WeightInfo < T > {
54
54
/// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:0)
55
55
/// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
56
+ /// Storage: `ParachainStaking::LastRewardReduction` (r:1 w:1)
57
+ /// Proof: `ParachainStaking::LastRewardReduction` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
58
+ /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
59
+ /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`)
56
60
/// Storage: `ParachainStaking::CandidatePool` (r:76 w:0)
57
61
/// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(1790), added: 4265, mode: `MaxEncodedLen`)
58
62
/// Storage: `ParachainStaking::BlocksAuthored` (r:75 w:0)
@@ -63,25 +67,23 @@ impl<T: frame_system::Config> parachain_staking::WeightInfo for WeightInfo<T> {
63
67
/// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
64
68
/// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0)
65
69
/// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
66
- /// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
67
- /// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`)
68
70
/// The range of component `n` is `[0, 75]`.
69
71
/// The range of component `m` is `[0, 35]`.
70
- fn set_inflation ( n : u32 , m : u32 , ) -> Weight {
72
+ fn execute_scheduled_reward_change ( n : u32 , m : u32 , ) -> Weight {
71
73
// Proof Size summary in bytes:
72
- // Measured: `0 + m * (7573 ±0) + n * (3709 ±0)`
74
+ // Measured: `0 + m * (7573 ±0) + n * (3647 ±0)`
73
75
// Estimated: `183222 + m * (64823 ±2_167) + n * (31965 ±1_009)`
74
- // Minimum execution time: 704_611_000 picoseconds.
75
- Weight :: from_parts ( 707_105_000 , 0 )
76
+ // Minimum execution time: 683_160_000 picoseconds.
77
+ Weight :: from_parts ( 687_351_000 , 0 )
76
78
. saturating_add ( Weight :: from_parts ( 0 , 183222 ) )
77
- // Standard Error: 4_876_636
78
- . saturating_add ( Weight :: from_parts ( 150_694_630 , 0 ) . saturating_mul ( n. into ( ) ) )
79
- // Standard Error: 10_470_032
80
- . saturating_add ( Weight :: from_parts ( 290_425_882 , 0 ) . saturating_mul ( m. into ( ) ) )
81
- . saturating_add ( T :: DbWeight :: get ( ) . reads ( 152 ) )
79
+ // Standard Error: 4_643_820
80
+ . saturating_add ( Weight :: from_parts ( 141_740_256 , 0 ) . saturating_mul ( n. into ( ) ) )
81
+ // Standard Error: 9_970_180
82
+ . saturating_add ( Weight :: from_parts ( 280_674_034 , 0 ) . saturating_mul ( m. into ( ) ) )
83
+ . saturating_add ( T :: DbWeight :: get ( ) . reads ( 153 ) )
82
84
. saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 27_u64 ) . saturating_mul ( n. into ( ) ) ) )
83
85
. saturating_add ( T :: DbWeight :: get ( ) . reads ( ( 51_u64 ) . saturating_mul ( m. into ( ) ) ) )
84
- . saturating_add ( T :: DbWeight :: get ( ) . writes ( 145 ) )
86
+ . saturating_add ( T :: DbWeight :: get ( ) . writes ( 146 ) )
85
87
. saturating_add ( T :: DbWeight :: get ( ) . writes ( ( 25_u64 ) . saturating_mul ( n. into ( ) ) ) )
86
88
. saturating_add ( T :: DbWeight :: get ( ) . writes ( ( 51_u64 ) . saturating_mul ( m. into ( ) ) ) )
87
89
. saturating_add ( Weight :: from_parts ( 0 , 64823 ) . saturating_mul ( m. into ( ) ) )
@@ -92,7 +94,7 @@ impl<T: frame_system::Config> parachain_staking::WeightInfo for WeightInfo<T> {
92
94
#[ cfg( test) ]
93
95
mod tests {
94
96
#[ test]
95
- fn test_set_inflation ( ) {
97
+ fn test_execute_scheduled_reward_change ( ) {
96
98
assert ! (
97
99
<crate :: Runtime as frame_system:: Config >:: BlockWeights :: get( )
98
100
. per_class
0 commit comments