mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
[Companion] Allow StakingAdmin to set min_commission (#6444)
* rename staking origin
* fix comments
* rename origin
* give fake weight before re-benchmarking
* ".git/.scripts/bench-bot.sh" runtime westend-dev pallet_staking
* ".git/.scripts/bench-bot.sh" runtime polkadot-dev pallet_staking
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_staking
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -509,8 +509,7 @@ impl pallet_staking::Config for Runtime {
|
||||
type SessionsPerEra = SessionsPerEra;
|
||||
type BondingDuration = BondingDuration;
|
||||
type SlashDeferDuration = SlashDeferDuration;
|
||||
// A majority of the council can cancel the slash.
|
||||
type SlashCancelOrigin = EnsureRoot<AccountId>;
|
||||
type AdminOrigin = EnsureRoot<AccountId>;
|
||||
type SessionInterface = Self;
|
||||
type EraPayout = pallet_staking::ConvertCurve<RewardCurve>;
|
||||
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
|
||||
|
||||
@@ -16,21 +16,23 @@
|
||||
//! Autogenerated weights for `pallet_staking`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! DATE: 2022-12-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/polkadot
|
||||
// /home/benchbot/cargo_target_dir/production/polkadot
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=westend-dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_staking
|
||||
// --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_staking
|
||||
// --chain=westend-dev
|
||||
// --header=./file_header.txt
|
||||
// --output=./runtime/westend/src/weights/
|
||||
|
||||
@@ -50,10 +52,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn bond() -> Weight {
|
||||
// Minimum execution time: 47_864 nanoseconds.
|
||||
Weight::from_ref_time(48_374_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
// Minimum execution time: 47_938 nanoseconds.
|
||||
Weight::from_ref_time(48_766_000)
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(4))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: Staking Ledger (r:1 w:1)
|
||||
@@ -61,10 +63,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: VoterList ListNodes (r:3 w:3)
|
||||
// Storage: VoterList ListBags (r:2 w:2)
|
||||
fn bond_extra() -> Weight {
|
||||
// Minimum execution time: 92_224 nanoseconds.
|
||||
Weight::from_ref_time(92_673_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7 as u64))
|
||||
// Minimum execution time: 83_008 nanoseconds.
|
||||
Weight::from_ref_time(84_097_000)
|
||||
.saturating_add(T::DbWeight::get().reads(8))
|
||||
.saturating_add(T::DbWeight::get().writes(7))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:1)
|
||||
// Storage: Staking Nominators (r:1 w:0)
|
||||
@@ -76,10 +78,10 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: VoterList ListBags (r:2 w:2)
|
||||
fn unbond() -> Weight {
|
||||
// Minimum execution time: 89_173 nanoseconds.
|
||||
Weight::from_ref_time(91_518_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(12 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as u64))
|
||||
// Minimum execution time: 89_429 nanoseconds.
|
||||
Weight::from_ref_time(90_577_000)
|
||||
.saturating_add(T::DbWeight::get().reads(12))
|
||||
.saturating_add(T::DbWeight::get().writes(8))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:1)
|
||||
// Storage: Staking CurrentEra (r:1 w:0)
|
||||
@@ -87,12 +89,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_525 nanoseconds.
|
||||
Weight::from_ref_time(42_785_087 as u64)
|
||||
// Standard Error: 689
|
||||
.saturating_add(Weight::from_ref_time(16_918 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Minimum execution time: 40_837 nanoseconds.
|
||||
Weight::from_ref_time(42_187_130)
|
||||
// Standard Error: 894
|
||||
.saturating_add(Weight::from_ref_time(19_689).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:1)
|
||||
// Storage: Staking CurrentEra (r:1 w:0)
|
||||
@@ -107,12 +109,16 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:2)
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
|
||||
// Minimum execution time: 77_930 nanoseconds.
|
||||
Weight::from_ref_time(79_791_309 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(13 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(11 as u64))
|
||||
fn withdraw_unbonded_kill(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 79_648 nanoseconds.
|
||||
Weight::from_ref_time(83_017_096)
|
||||
// Standard Error: 2_010
|
||||
.saturating_add(Weight::from_ref_time(922_930).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())))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking MinValidatorBond (r:1 w:0)
|
||||
@@ -126,22 +132,22 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: VoterList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForValidators (r:1 w:1)
|
||||
fn validate() -> Weight {
|
||||
// Minimum execution time: 61_039 nanoseconds.
|
||||
Weight::from_ref_time(61_864_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(11 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as u64))
|
||||
// Minimum execution time: 60_320 nanoseconds.
|
||||
Weight::from_ref_time(61_086_000)
|
||||
.saturating_add(T::DbWeight::get().reads(11))
|
||||
.saturating_add(T::DbWeight::get().writes(5))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
/// The range of component `k` is `[1, 128]`.
|
||||
fn kick(k: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_744 nanoseconds.
|
||||
Weight::from_ref_time(31_656_370 as u64)
|
||||
// Standard Error: 7_390
|
||||
.saturating_add(Weight::from_ref_time(6_320_562 as u64).saturating_mul(k as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(k as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(k as u64)))
|
||||
// Minimum execution time: 33_877 nanoseconds.
|
||||
Weight::from_ref_time(30_158_812)
|
||||
// Standard Error: 9_093
|
||||
.saturating_add(Weight::from_ref_time(6_467_073).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())))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking MinNominatorBond (r:1 w:0)
|
||||
@@ -156,13 +162,13 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
/// The range of component `n` is `[1, 16]`.
|
||||
fn nominate(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 64_103 nanoseconds.
|
||||
Weight::from_ref_time(63_617_315 as u64)
|
||||
// Standard Error: 5_476
|
||||
.saturating_add(Weight::from_ref_time(2_416_112 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(12 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(n as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Minimum execution time: 64_372 nanoseconds.
|
||||
Weight::from_ref_time(64_284_684)
|
||||
// Standard Error: 8_143
|
||||
.saturating_add(Weight::from_ref_time(2_395_175).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))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Validators (r:1 w:0)
|
||||
@@ -172,59 +178,59 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: VoterList ListBags (r:1 w:1)
|
||||
// Storage: VoterList CounterForListNodes (r:1 w:1)
|
||||
fn chill() -> Weight {
|
||||
// Minimum execution time: 59_072 nanoseconds.
|
||||
Weight::from_ref_time(59_664_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Minimum execution time: 58_793 nanoseconds.
|
||||
Weight::from_ref_time(59_523_000)
|
||||
.saturating_add(T::DbWeight::get().reads(8))
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn set_payee() -> Weight {
|
||||
// Minimum execution time: 16_287 nanoseconds.
|
||||
Weight::from_ref_time(16_474_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 16_281 nanoseconds.
|
||||
Weight::from_ref_time(16_747_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
// Storage: Staking Ledger (r:2 w:2)
|
||||
fn set_controller() -> Weight {
|
||||
// Minimum execution time: 23_295 nanoseconds.
|
||||
Weight::from_ref_time(23_742_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Minimum execution time: 23_145 nanoseconds.
|
||||
Weight::from_ref_time(23_556_000)
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
}
|
||||
// Storage: Staking ValidatorCount (r:0 w:1)
|
||||
fn set_validator_count() -> Weight {
|
||||
// Minimum execution time: 4_606 nanoseconds.
|
||||
Weight::from_ref_time(4_753_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 4_658 nanoseconds.
|
||||
Weight::from_ref_time(4_781_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_no_eras() -> Weight {
|
||||
// Minimum execution time: 4_714 nanoseconds.
|
||||
Weight::from_ref_time(4_870_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 4_881 nanoseconds.
|
||||
Weight::from_ref_time(5_148_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era() -> Weight {
|
||||
// Minimum execution time: 4_811 nanoseconds.
|
||||
Weight::from_ref_time(4_915_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 4_713 nanoseconds.
|
||||
Weight::from_ref_time(4_874_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era_always() -> Weight {
|
||||
// Minimum execution time: 4_815 nanoseconds.
|
||||
Weight::from_ref_time(4_888_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 4_864 nanoseconds.
|
||||
Weight::from_ref_time(5_081_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking Invulnerables (r:0 w:1)
|
||||
/// The range of component `v` is `[0, 1000]`.
|
||||
fn set_invulnerables(v: u32, ) -> Weight {
|
||||
// Minimum execution time: 4_957 nanoseconds.
|
||||
Weight::from_ref_time(5_458_970 as u64)
|
||||
// Standard Error: 37
|
||||
.saturating_add(Weight::from_ref_time(11_689 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 5_060 nanoseconds.
|
||||
Weight::from_ref_time(5_422_382)
|
||||
// Standard Error: 29
|
||||
.saturating_add(Weight::from_ref_time(11_331).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
// Storage: Staking SlashingSpans (r:1 w:0)
|
||||
@@ -241,23 +247,23 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking SpanSlash (r:0 w:2)
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn force_unstake(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 72_209 nanoseconds.
|
||||
Weight::from_ref_time(77_298_663 as u64)
|
||||
// Standard Error: 3_183
|
||||
.saturating_add(Weight::from_ref_time(888_800 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(11 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(12 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Minimum execution time: 71_417 nanoseconds.
|
||||
Weight::from_ref_time(76_800_091)
|
||||
// Standard Error: 2_434
|
||||
.saturating_add(Weight::from_ref_time(923_979).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(11))
|
||||
.saturating_add(T::DbWeight::get().writes(12))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
}
|
||||
// Storage: Staking UnappliedSlashes (r:1 w:1)
|
||||
/// The range of component `s` is `[1, 1000]`.
|
||||
fn cancel_deferred_slash(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 118_262 nanoseconds.
|
||||
Weight::from_ref_time(930_422_429 as u64)
|
||||
// Standard Error: 58_358
|
||||
.saturating_add(Weight::from_ref_time(4_891_639 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 113_334 nanoseconds.
|
||||
Weight::from_ref_time(924_450_107)
|
||||
// Standard Error: 58_953
|
||||
.saturating_add(Weight::from_ref_time(4_923_031).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking CurrentEra (r:1 w:0)
|
||||
// Storage: Staking ErasValidatorReward (r:1 w:0)
|
||||
@@ -270,14 +276,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// The range of component `n` is `[0, 64]`.
|
||||
fn payout_stakers_dead_controller(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 79_513 nanoseconds.
|
||||
Weight::from_ref_time(93_058_704 as u64)
|
||||
// Standard Error: 20_402
|
||||
.saturating_add(Weight::from_ref_time(19_965_835 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(9 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(n as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(n as u64)))
|
||||
// Minimum execution time: 77_615 nanoseconds.
|
||||
Weight::from_ref_time(91_849_000)
|
||||
// Standard Error: 29_974
|
||||
.saturating_add(Weight::from_ref_time(20_052_379).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())))
|
||||
}
|
||||
// Storage: Staking CurrentEra (r:1 w:0)
|
||||
// Storage: Staking ErasValidatorReward (r:1 w:0)
|
||||
@@ -291,14 +297,14 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// The range of component `n` is `[0, 64]`.
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 91_791 nanoseconds.
|
||||
Weight::from_ref_time(119_133_841 as u64)
|
||||
// Standard Error: 31_093
|
||||
.saturating_add(Weight::from_ref_time(26_717_359 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(10 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(n as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(n as u64)))
|
||||
// Minimum execution time: 90_513 nanoseconds.
|
||||
Weight::from_ref_time(115_255_437)
|
||||
// Standard Error: 29_960
|
||||
.saturating_add(Weight::from_ref_time(27_135_740).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(10))
|
||||
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
@@ -308,12 +314,12 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: VoterList ListBags (r:2 w:2)
|
||||
/// The range of component `l` is `[1, 32]`.
|
||||
fn rebond(l: u32, ) -> Weight {
|
||||
// Minimum execution time: 82_457 nanoseconds.
|
||||
Weight::from_ref_time(83_869_512 as u64)
|
||||
// Standard Error: 4_174
|
||||
.saturating_add(Weight::from_ref_time(46_937 as u64).saturating_mul(l as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(9 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as u64))
|
||||
// Minimum execution time: 82_630 nanoseconds.
|
||||
Weight::from_ref_time(83_204_882)
|
||||
// Standard Error: 22_390
|
||||
.saturating_add(Weight::from_ref_time(122_845).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(9))
|
||||
.saturating_add(T::DbWeight::get().writes(8))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
@@ -330,16 +336,15 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking SpanSlash (r:0 w:1)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn reap_stash(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 82_568 nanoseconds.
|
||||
Weight::from_ref_time(83_999_520 as u64)
|
||||
// Standard Error: 2_098
|
||||
.saturating_add(Weight::from_ref_time(884_734 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(12 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(12 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Minimum execution time: 82_488 nanoseconds.
|
||||
Weight::from_ref_time(84_514_448)
|
||||
// Standard Error: 2_464
|
||||
.saturating_add(Weight::from_ref_time(922_810).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(12))
|
||||
.saturating_add(T::DbWeight::get().writes(12))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
}
|
||||
// Storage: VoterList CounterForListNodes (r:1 w:0)
|
||||
// Storage: Staking SlashingSpans (r:1 w:0)
|
||||
// Storage: VoterList ListBags (r:178 w:0)
|
||||
// Storage: VoterList ListNodes (r:101 w:0)
|
||||
// Storage: Staking Nominators (r:101 w:0)
|
||||
@@ -356,53 +361,57 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking ErasStakers (r:0 w:1)
|
||||
// Storage: Staking ErasTotalStake (r:0 w:1)
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
// Storage: Staking MinimumActiveStake (r:0 w:1)
|
||||
/// The range of component `v` is `[1, 10]`.
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
fn new_era(v: u32, n: u32, ) -> Weight {
|
||||
// Minimum execution time: 433_425 nanoseconds.
|
||||
Weight::from_ref_time(435_379_000 as u64)
|
||||
// Standard Error: 1_833_800
|
||||
.saturating_add(Weight::from_ref_time(60_252_147 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 182_728
|
||||
.saturating_add(Weight::from_ref_time(13_188_805 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(186 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(v as u64)))
|
||||
.saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(n as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(v as u64)))
|
||||
// Minimum execution time: 441_729 nanoseconds.
|
||||
Weight::from_ref_time(443_065_000)
|
||||
// Standard Error: 1_706_307
|
||||
.saturating_add(Weight::from_ref_time(56_054_739).saturating_mul(v.into()))
|
||||
// Standard Error: 170_024
|
||||
.saturating_add(Weight::from_ref_time(12_968_442).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(185))
|
||||
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(5))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(v.into())))
|
||||
}
|
||||
// Storage: VoterList CounterForListNodes (r:1 w:0)
|
||||
// Storage: VoterList ListBags (r:200 w:0)
|
||||
// Storage: VoterList ListBags (r:178 w:0)
|
||||
// Storage: VoterList ListNodes (r:1500 w:0)
|
||||
// Storage: Staking Nominators (r:1500 w:0)
|
||||
// Storage: Staking Validators (r:500 w:0)
|
||||
// Storage: Staking Bonded (r:1500 w:0)
|
||||
// Storage: Staking Ledger (r:1500 w:0)
|
||||
// Storage: System BlockWeight (r:1 w:1)
|
||||
// Storage: Staking MinimumActiveStake (r:0 w:1)
|
||||
/// The range of component `v` is `[500, 1000]`.
|
||||
/// The range of component `n` is `[500, 1000]`.
|
||||
fn get_npos_voters(v: u32, n: u32, ) -> Weight {
|
||||
// Minimum execution time: 24_634_585 nanoseconds.
|
||||
Weight::from_ref_time(24_718_377_000)
|
||||
// Standard Error: 324_839
|
||||
.saturating_add(Weight::from_ref_time(3_654_508).saturating_mul(v.into()))
|
||||
// Standard Error: 324_839
|
||||
.saturating_add(Weight::from_ref_time(2_927_535).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(201))
|
||||
// Minimum execution time: 25_152_628 nanoseconds.
|
||||
Weight::from_ref_time(25_317_200_000)
|
||||
// Standard Error: 594_512
|
||||
.saturating_add(Weight::from_ref_time(6_190_157).saturating_mul(v.into()))
|
||||
// Standard Error: 594_512
|
||||
.saturating_add(Weight::from_ref_time(3_302_412).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(180))
|
||||
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
}
|
||||
// Storage: Staking CounterForValidators (r:1 w:0)
|
||||
// Storage: Staking Validators (r:501 w:0)
|
||||
// Storage: System BlockWeight (r:1 w:1)
|
||||
/// The range of component `v` is `[500, 1000]`.
|
||||
fn get_npos_targets(v: u32, ) -> Weight {
|
||||
// Minimum execution time: 3_513_761 nanoseconds.
|
||||
Weight::from_ref_time(168_738_313 as u64)
|
||||
// Standard Error: 55_974
|
||||
.saturating_add(Weight::from_ref_time(7_130_301 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 3_621_768 nanoseconds.
|
||||
Weight::from_ref_time(3_647_367_000)
|
||||
// Standard Error: 42_035
|
||||
.saturating_add(Weight::from_ref_time(2_772_156).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking MinCommission (r:0 w:1)
|
||||
// Storage: Staking MinValidatorBond (r:0 w:1)
|
||||
@@ -411,9 +420,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
||||
// Storage: Staking MinNominatorBond (r:0 w:1)
|
||||
fn set_staking_configs_all_set() -> Weight {
|
||||
// Minimum execution time: 8_232 nanoseconds.
|
||||
Weight::from_ref_time(8_510_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Minimum execution time: 8_259 nanoseconds.
|
||||
Weight::from_ref_time(8_629_000)
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
}
|
||||
// Storage: Staking MinCommission (r:0 w:1)
|
||||
// Storage: Staking MinValidatorBond (r:0 w:1)
|
||||
@@ -422,9 +431,9 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
||||
// Storage: Staking MinNominatorBond (r:0 w:1)
|
||||
fn set_staking_configs_all_remove() -> Weight {
|
||||
// Minimum execution time: 7_257 nanoseconds.
|
||||
Weight::from_ref_time(7_425_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Minimum execution time: 7_335 nanoseconds.
|
||||
Weight::from_ref_time(7_594_000)
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
@@ -437,17 +446,23 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
||||
// Storage: VoterList ListBags (r:1 w:1)
|
||||
// Storage: VoterList CounterForListNodes (r:1 w:1)
|
||||
fn chill_other() -> Weight {
|
||||
// Minimum execution time: 69_220 nanoseconds.
|
||||
Weight::from_ref_time(70_070_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(11 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Minimum execution time: 69_559 nanoseconds.
|
||||
Weight::from_ref_time(70_363_000)
|
||||
.saturating_add(T::DbWeight::get().reads(11))
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
}
|
||||
// Storage: Staking MinCommission (r:1 w:0)
|
||||
// Storage: Staking Validators (r:1 w:1)
|
||||
fn force_apply_min_commission() -> Weight {
|
||||
// Minimum execution time: 16_197 nanoseconds.
|
||||
Weight::from_ref_time(16_518_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 15_447 nanoseconds.
|
||||
Weight::from_ref_time(15_760_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking MinCommission (r:0 w:1)
|
||||
fn set_min_commission() -> Weight {
|
||||
// Minimum execution time: 4_793 nanoseconds.
|
||||
Weight::from_ref_time(4_929_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user