mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 14:27:57 +00:00
Implements a % cap on staking rewards from era inflation (#1660)
This PR implements an (optional) cap of the era inflation that is allocated to staking rewards. The remaining is minted directly into the [`RewardRemainder`](https://github.com/paritytech/polkadot-sdk/blob/fb0fd3e62445eb2dee2b2456a0c8574d1ecdcc73/substrate/frame/staking/src/pallet/mod.rs#L160) account, which is the treasury pot account in Polkadot and Kusama. The staking pallet now has a percent storage item, `MaxStakersRewards`, which defines the max percentage of the era inflation that should be allocated to staking rewards. The remaining era inflation (i.e. `remaining = max_era_payout - staking_payout.min(staking_payout * MaxStakersRewards))` is minted directly into the treasury. The `MaxStakersRewards` can be set by a privileged origin through the `set_staking_configs` extrinsic. **To finish** - [x] run benchmarks for westend-runtime Replaces https://github.com/paritytech/polkadot-sdk/pull/1483 Closes https://github.com/paritytech/polkadot-sdk/issues/403 --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -16,10 +16,10 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_staking`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-12-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-01-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-itmxxexx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-8idpd4bs-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("westend-dev")`, DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
@@ -62,8 +62,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `894`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 38_316_000 picoseconds.
|
||||
Weight::from_parts(40_022_000, 0)
|
||||
// Minimum execution time: 37_340_000 picoseconds.
|
||||
Weight::from_parts(38_930_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 4764))
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(4))
|
||||
@@ -84,8 +84,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1921`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 81_027_000 picoseconds.
|
||||
Weight::from_parts(83_964_000, 0)
|
||||
// Minimum execution time: 80_630_000 picoseconds.
|
||||
Weight::from_parts(82_196_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 8877))
|
||||
.saturating_add(T::DbWeight::get().reads(9))
|
||||
.saturating_add(T::DbWeight::get().writes(7))
|
||||
@@ -112,8 +112,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2128`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 85_585_000 picoseconds.
|
||||
Weight::from_parts(87_256_000, 0)
|
||||
// Minimum execution time: 83_523_000 picoseconds.
|
||||
Weight::from_parts(86_639_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 8877))
|
||||
.saturating_add(T::DbWeight::get().reads(12))
|
||||
.saturating_add(T::DbWeight::get().writes(7))
|
||||
@@ -133,11 +133,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1075`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 39_520_000 picoseconds.
|
||||
Weight::from_parts(41_551_548, 0)
|
||||
// Minimum execution time: 38_636_000 picoseconds.
|
||||
Weight::from_parts(40_399_283, 0)
|
||||
.saturating_add(Weight::from_parts(0, 4764))
|
||||
// Standard Error: 1_094
|
||||
.saturating_add(Weight::from_parts(50_426, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 869
|
||||
.saturating_add(Weight::from_parts(37_752, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
}
|
||||
@@ -174,11 +174,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2127 + s * (4 ±0)`
|
||||
// Estimated: `6248 + s * (4 ±0)`
|
||||
// Minimum execution time: 82_915_000 picoseconds.
|
||||
Weight::from_parts(89_597_160, 0)
|
||||
// Minimum execution time: 81_301_000 picoseconds.
|
||||
Weight::from_parts(88_609_205, 0)
|
||||
.saturating_add(Weight::from_parts(0, 6248))
|
||||
// Standard Error: 3_146
|
||||
.saturating_add(Weight::from_parts(1_228_061, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 3_388
|
||||
.saturating_add(Weight::from_parts(1_253_692, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(13))
|
||||
.saturating_add(T::DbWeight::get().writes(11))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
@@ -210,8 +210,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1301`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 48_070_000 picoseconds.
|
||||
Weight::from_parts(49_226_000, 0)
|
||||
// Minimum execution time: 47_292_000 picoseconds.
|
||||
Weight::from_parts(48_566_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 4556))
|
||||
.saturating_add(T::DbWeight::get().reads(11))
|
||||
.saturating_add(T::DbWeight::get().writes(5))
|
||||
@@ -225,11 +225,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1243 + k * (569 ±0)`
|
||||
// Estimated: `4556 + k * (3033 ±0)`
|
||||
// Minimum execution time: 29_140_000 picoseconds.
|
||||
Weight::from_parts(30_225_579, 0)
|
||||
// Minimum execution time: 28_840_000 picoseconds.
|
||||
Weight::from_parts(27_510_817, 0)
|
||||
.saturating_add(Weight::from_parts(0, 4556))
|
||||
// Standard Error: 5_394
|
||||
.saturating_add(Weight::from_parts(6_401_367, 0).saturating_mul(k.into()))
|
||||
// Standard Error: 6_603
|
||||
.saturating_add(Weight::from_parts(6_268_853, 0).saturating_mul(k.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into())))
|
||||
@@ -262,11 +262,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1797 + n * (102 ±0)`
|
||||
// Estimated: `6248 + n * (2520 ±0)`
|
||||
// Minimum execution time: 59_287_000 picoseconds.
|
||||
Weight::from_parts(58_285_052, 0)
|
||||
// Minimum execution time: 57_537_000 picoseconds.
|
||||
Weight::from_parts(55_854_233, 0)
|
||||
.saturating_add(Weight::from_parts(0, 6248))
|
||||
// Standard Error: 14_556
|
||||
.saturating_add(Weight::from_parts(3_863_008, 0).saturating_mul(n.into()))
|
||||
// Standard Error: 14_427
|
||||
.saturating_add(Weight::from_parts(3_844_957, 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(6))
|
||||
@@ -290,8 +290,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1581`
|
||||
// Estimated: `6248`
|
||||
// Minimum execution time: 51_035_000 picoseconds.
|
||||
Weight::from_parts(52_163_000, 0)
|
||||
// Minimum execution time: 49_997_000 picoseconds.
|
||||
Weight::from_parts(51_266_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 6248))
|
||||
.saturating_add(T::DbWeight::get().reads(8))
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
@@ -306,8 +306,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `865`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 15_809_000 picoseconds.
|
||||
Weight::from_parts(16_451_000, 0)
|
||||
// Minimum execution time: 15_342_000 picoseconds.
|
||||
Weight::from_parts(15_970_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 4556))
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
@@ -322,8 +322,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `932`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 21_695_000 picoseconds.
|
||||
Weight::from_parts(22_351_000, 0)
|
||||
// Minimum execution time: 20_719_000 picoseconds.
|
||||
Weight::from_parts(21_373_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 4556))
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
@@ -336,8 +336,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `865`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 18_548_000 picoseconds.
|
||||
Weight::from_parts(19_205_000, 0)
|
||||
// Minimum execution time: 18_237_000 picoseconds.
|
||||
Weight::from_parts(18_896_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 4556))
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
@@ -348,8 +348,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_193_000 picoseconds.
|
||||
Weight::from_parts(2_408_000, 0)
|
||||
// Minimum execution time: 1_946_000 picoseconds.
|
||||
Weight::from_parts(2_131_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
@@ -359,8 +359,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_475_000 picoseconds.
|
||||
Weight::from_parts(7_874_000, 0)
|
||||
// Minimum execution time: 6_840_000 picoseconds.
|
||||
Weight::from_parts(7_208_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
@@ -370,8 +370,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_393_000 picoseconds.
|
||||
Weight::from_parts(7_643_000, 0)
|
||||
// Minimum execution time: 6_812_000 picoseconds.
|
||||
Weight::from_parts(7_254_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
@@ -381,8 +381,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_474_000 picoseconds.
|
||||
Weight::from_parts(7_814_000, 0)
|
||||
// Minimum execution time: 6_787_000 picoseconds.
|
||||
Weight::from_parts(7_206_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
@@ -393,11 +393,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_358_000 picoseconds.
|
||||
Weight::from_parts(2_589_423, 0)
|
||||
// Minimum execution time: 2_045_000 picoseconds.
|
||||
Weight::from_parts(2_281_841, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
// Standard Error: 81
|
||||
.saturating_add(Weight::from_parts(13_612, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 70
|
||||
.saturating_add(Weight::from_parts(11_592, 0).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
/// Storage: `Staking::Ledger` (r:751 w:1502)
|
||||
@@ -411,11 +411,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `668 + i * (148 ±0)`
|
||||
// Estimated: `990 + i * (3566 ±0)`
|
||||
// Minimum execution time: 1_934_000 picoseconds.
|
||||
Weight::from_parts(2_070_000, 0)
|
||||
// Minimum execution time: 1_657_000 picoseconds.
|
||||
Weight::from_parts(1_702_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 990))
|
||||
// Standard Error: 19_129
|
||||
.saturating_add(Weight::from_parts(13_231_580, 0).saturating_mul(i.into()))
|
||||
// Standard Error: 20_041
|
||||
.saturating_add(Weight::from_parts(13_165_254, 0).saturating_mul(i.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(i.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(i.into())))
|
||||
.saturating_add(Weight::from_parts(0, 3566).saturating_mul(i.into()))
|
||||
@@ -453,11 +453,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2127 + s * (4 ±0)`
|
||||
// Estimated: `6248 + s * (4 ±0)`
|
||||
// Minimum execution time: 80_290_000 picoseconds.
|
||||
Weight::from_parts(87_901_664, 0)
|
||||
// Minimum execution time: 78_774_000 picoseconds.
|
||||
Weight::from_parts(85_770_713, 0)
|
||||
.saturating_add(Weight::from_parts(0, 6248))
|
||||
// Standard Error: 2_960
|
||||
.saturating_add(Weight::from_parts(1_195_050, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 2_815
|
||||
.saturating_add(Weight::from_parts(1_244_494, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(13))
|
||||
.saturating_add(T::DbWeight::get().writes(12))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
@@ -470,11 +470,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `66639`
|
||||
// Estimated: `70104`
|
||||
// Minimum execution time: 132_682_000 picoseconds.
|
||||
Weight::from_parts(932_504_297, 0)
|
||||
// Minimum execution time: 129_905_000 picoseconds.
|
||||
Weight::from_parts(932_195_554, 0)
|
||||
.saturating_add(Weight::from_parts(0, 70104))
|
||||
// Standard Error: 57_593
|
||||
.saturating_add(Weight::from_parts(4_829_705, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 57_492
|
||||
.saturating_add(Weight::from_parts(4_826_754, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
@@ -510,12 +510,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `8249 + n * (396 ±0)`
|
||||
// Estimated: `10779 + n * (3774 ±3)`
|
||||
// Minimum execution time: 129_091_000 picoseconds.
|
||||
Weight::from_parts(166_186_167, 0)
|
||||
// Estimated: `10779 + n * (3774 ±0)`
|
||||
// Minimum execution time: 127_094_000 picoseconds.
|
||||
Weight::from_parts(160_088_053, 0)
|
||||
.saturating_add(Weight::from_parts(0, 10779))
|
||||
// Standard Error: 36_242
|
||||
.saturating_add(Weight::from_parts(40_467_481, 0).saturating_mul(n.into()))
|
||||
// Standard Error: 32_978
|
||||
.saturating_add(Weight::from_parts(39_845_710, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(14))
|
||||
.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(4))
|
||||
@@ -539,11 +539,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1922 + l * (5 ±0)`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 77_461_000 picoseconds.
|
||||
Weight::from_parts(80_118_021, 0)
|
||||
// Minimum execution time: 75_672_000 picoseconds.
|
||||
Weight::from_parts(78_708_335, 0)
|
||||
.saturating_add(Weight::from_parts(0, 8877))
|
||||
// Standard Error: 4_343
|
||||
.saturating_add(Weight::from_parts(59_113, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_387
|
||||
.saturating_add(Weight::from_parts(37_084, 0).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(9))
|
||||
.saturating_add(T::DbWeight::get().writes(7))
|
||||
}
|
||||
@@ -578,11 +578,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2127 + s * (4 ±0)`
|
||||
// Estimated: `6248 + s * (4 ±0)`
|
||||
// Minimum execution time: 89_366_000 picoseconds.
|
||||
Weight::from_parts(91_964_557, 0)
|
||||
// Minimum execution time: 87_991_000 picoseconds.
|
||||
Weight::from_parts(90_272_005, 0)
|
||||
.saturating_add(Weight::from_parts(0, 6248))
|
||||
// Standard Error: 2_799
|
||||
.saturating_add(Weight::from_parts(1_206_123, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 2_815
|
||||
.saturating_add(Weight::from_parts(1_232_322, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(12))
|
||||
.saturating_add(T::DbWeight::get().writes(11))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
@@ -627,14 +627,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
fn new_era(v: u32, n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + n * (716 ±0) + v * (3594 ±0)`
|
||||
// Estimated: `456136 + n * (3566 ±4) + v * (3566 ±40)`
|
||||
// Minimum execution time: 520_430_000 picoseconds.
|
||||
Weight::from_parts(527_125_000, 0)
|
||||
// Estimated: `456136 + n * (3566 ±0) + v * (3566 ±0)`
|
||||
// Minimum execution time: 528_862_000 picoseconds.
|
||||
Weight::from_parts(534_620_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 456136))
|
||||
// Standard Error: 1_974_092
|
||||
.saturating_add(Weight::from_parts(64_885_491, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 196_707
|
||||
.saturating_add(Weight::from_parts(18_100_326, 0).saturating_mul(n.into()))
|
||||
// Standard Error: 2_005_553
|
||||
.saturating_add(Weight::from_parts(65_586_008, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 199_842
|
||||
.saturating_add(Weight::from_parts(18_155_389, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(184))
|
||||
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
|
||||
@@ -665,13 +665,13 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3108 + n * (907 ±0) + v * (391 ±0)`
|
||||
// Estimated: `456136 + n * (3566 ±0) + v * (3566 ±0)`
|
||||
// Minimum execution time: 33_917_323_000 picoseconds.
|
||||
Weight::from_parts(34_173_565_000, 0)
|
||||
// Minimum execution time: 33_532_110_000 picoseconds.
|
||||
Weight::from_parts(33_926_321_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 456136))
|
||||
// Standard Error: 367_135
|
||||
.saturating_add(Weight::from_parts(4_696_840, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 367_135
|
||||
.saturating_add(Weight::from_parts(3_889_075, 0).saturating_mul(n.into()))
|
||||
// Standard Error: 374_134
|
||||
.saturating_add(Weight::from_parts(4_627_629, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 374_134
|
||||
.saturating_add(Weight::from_parts(4_068_168, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(179))
|
||||
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
|
||||
@@ -688,11 +688,11 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `946 + v * (50 ±0)`
|
||||
// Estimated: `3510 + v * (2520 ±0)`
|
||||
// Minimum execution time: 2_447_197_000 picoseconds.
|
||||
Weight::from_parts(13_003_614, 0)
|
||||
// Minimum execution time: 2_395_956_000 picoseconds.
|
||||
Weight::from_parts(88_416_870, 0)
|
||||
.saturating_add(Weight::from_parts(0, 3510))
|
||||
// Standard Error: 9_738
|
||||
.saturating_add(Weight::from_parts(4_953_442, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 8_731
|
||||
.saturating_add(Weight::from_parts(4_750_956, 0).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(v.into()))
|
||||
@@ -703,6 +703,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
/// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
|
||||
/// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
|
||||
/// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::ChillThreshold` (r:0 w:1)
|
||||
/// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
|
||||
@@ -713,10 +715,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_714_000 picoseconds.
|
||||
Weight::from_parts(3_956_000, 0)
|
||||
// Minimum execution time: 3_761_000 picoseconds.
|
||||
Weight::from_parts(4_013_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
.saturating_add(T::DbWeight::get().writes(7))
|
||||
}
|
||||
/// Storage: `Staking::MinCommission` (r:0 w:1)
|
||||
/// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
@@ -724,6 +726,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
/// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
|
||||
/// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
|
||||
/// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::ChillThreshold` (r:0 w:1)
|
||||
/// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
|
||||
@@ -734,10 +738,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_361_000 picoseconds.
|
||||
Weight::from_parts(3_632_000, 0)
|
||||
// Minimum execution time: 3_325_000 picoseconds.
|
||||
Weight::from_parts(3_519_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
.saturating_add(T::DbWeight::get().writes(7))
|
||||
}
|
||||
/// Storage: `Staking::Bonded` (r:1 w:0)
|
||||
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
||||
@@ -765,8 +769,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1870`
|
||||
// Estimated: `6248`
|
||||
// Minimum execution time: 65_329_000 picoseconds.
|
||||
Weight::from_parts(67_247_000, 0)
|
||||
// Minimum execution time: 63_583_000 picoseconds.
|
||||
Weight::from_parts(65_917_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 6248))
|
||||
.saturating_add(T::DbWeight::get().reads(12))
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
@@ -779,8 +783,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `658`
|
||||
// Estimated: `3510`
|
||||
// Minimum execution time: 11_760_000 picoseconds.
|
||||
Weight::from_parts(12_095_000, 0)
|
||||
// Minimum execution time: 10_975_000 picoseconds.
|
||||
Weight::from_parts(11_328_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 3510))
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
@@ -791,8 +795,8 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_256_000 picoseconds.
|
||||
Weight::from_parts(2_378_000, 0)
|
||||
// Minimum execution time: 1_954_000 picoseconds.
|
||||
Weight::from_parts(2_081_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user