mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18: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:
@@ -584,8 +584,7 @@ impl pallet_staking::Config for Runtime {
|
||||
type SessionsPerEra = SessionsPerEra;
|
||||
type BondingDuration = BondingDuration;
|
||||
type SlashDeferDuration = SlashDeferDuration;
|
||||
// The staking admin or root can cancel the slash.
|
||||
type SlashCancelOrigin = EitherOf<EnsureRoot<Self::AccountId>, StakingAdmin>;
|
||||
type AdminOrigin = EitherOf<EnsureRoot<Self::AccountId>, StakingAdmin>;
|
||||
type SessionInterface = Self;
|
||||
type EraPayout = EraPayout;
|
||||
type NextNewSession = Session;
|
||||
|
||||
@@ -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-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! DATE: 2022-12-26, 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("kusama-dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/polkadot
|
||||
// /home/benchbot/cargo_target_dir/production/polkadot
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=kusama-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=kusama-dev
|
||||
// --header=./file_header.txt
|
||||
// --output=./runtime/kusama/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: 46_644 nanoseconds.
|
||||
Weight::from_ref_time(47_601_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
// Minimum execution time: 46_498 nanoseconds.
|
||||
Weight::from_ref_time(47_017_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: 83_700 nanoseconds.
|
||||
Weight::from_ref_time(84_180_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_337 nanoseconds.
|
||||
Weight::from_ref_time(84_125_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: 88_626 nanoseconds.
|
||||
Weight::from_ref_time(89_533_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_555 nanoseconds.
|
||||
Weight::from_ref_time(90_189_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: 39_857 nanoseconds.
|
||||
Weight::from_ref_time(41_762_625 as u64)
|
||||
// Standard Error: 793
|
||||
.saturating_add(Weight::from_ref_time(19_027 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: 39_859 nanoseconds.
|
||||
Weight::from_ref_time(41_164_480)
|
||||
// Standard Error: 870
|
||||
.saturating_add(Weight::from_ref_time(22_362).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,14 +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_333 nanoseconds.
|
||||
Weight::from_ref_time(78_922_702 as u64)
|
||||
// Standard Error: 1_167
|
||||
.saturating_add(Weight::from_ref_time(2_228 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(13 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(11 as u64))
|
||||
// Minimum execution time: 78_182 nanoseconds.
|
||||
Weight::from_ref_time(82_653_282)
|
||||
// Standard Error: 2_211
|
||||
.saturating_add(Weight::from_ref_time(919_603).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)
|
||||
@@ -128,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: 60_771 nanoseconds.
|
||||
Weight::from_ref_time(62_120_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_801 nanoseconds.
|
||||
Weight::from_ref_time(61_461_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: 35_488 nanoseconds.
|
||||
Weight::from_ref_time(31_260_124 as u64)
|
||||
// Standard Error: 10_282
|
||||
.saturating_add(Weight::from_ref_time(6_618_104 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: 34_706 nanoseconds.
|
||||
Weight::from_ref_time(30_155_201)
|
||||
// Standard Error: 9_801
|
||||
.saturating_add(Weight::from_ref_time(6_812_249).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)
|
||||
@@ -158,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, 24]`.
|
||||
fn nominate(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 63_100 nanoseconds.
|
||||
Weight::from_ref_time(61_836_772 as u64)
|
||||
// Standard Error: 7_808
|
||||
.saturating_add(Weight::from_ref_time(2_532_660 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: 63_815 nanoseconds.
|
||||
Weight::from_ref_time(62_277_624)
|
||||
// Standard Error: 8_020
|
||||
.saturating_add(Weight::from_ref_time(2_558_933).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)
|
||||
@@ -174,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: 58_416 nanoseconds.
|
||||
Weight::from_ref_time(59_201_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Minimum execution time: 59_765 nanoseconds.
|
||||
Weight::from_ref_time(60_359_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: 15_931 nanoseconds.
|
||||
Weight::from_ref_time(16_155_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 15_948 nanoseconds.
|
||||
Weight::from_ref_time(16_331_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: 22_947 nanoseconds.
|
||||
Weight::from_ref_time(23_520_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Minimum execution time: 22_707 nanoseconds.
|
||||
Weight::from_ref_time(23_051_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_206 nanoseconds.
|
||||
Weight::from_ref_time(4_371_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 4_236 nanoseconds.
|
||||
Weight::from_ref_time(4_468_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_no_eras() -> Weight {
|
||||
// Minimum execution time: 4_225 nanoseconds.
|
||||
Weight::from_ref_time(4_324_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 4_264 nanoseconds.
|
||||
Weight::from_ref_time(4_397_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era() -> Weight {
|
||||
// Minimum execution time: 4_361 nanoseconds.
|
||||
Weight::from_ref_time(4_489_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 4_334 nanoseconds.
|
||||
Weight::from_ref_time(4_478_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_369 nanoseconds.
|
||||
Weight::from_ref_time(4_611_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 4_429 nanoseconds.
|
||||
Weight::from_ref_time(4_522_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_450 nanoseconds.
|
||||
Weight::from_ref_time(4_810_067 as u64)
|
||||
// Standard Error: 25
|
||||
.saturating_add(Weight::from_ref_time(10_502 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Minimum execution time: 4_573 nanoseconds.
|
||||
Weight::from_ref_time(4_979_271)
|
||||
// Standard Error: 29
|
||||
.saturating_add(Weight::from_ref_time(10_199).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)
|
||||
@@ -243,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: 71_970 nanoseconds.
|
||||
Weight::from_ref_time(77_083_021 as u64)
|
||||
// Standard Error: 2_001
|
||||
.saturating_add(Weight::from_ref_time(866_865 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_604 nanoseconds.
|
||||
Weight::from_ref_time(76_356_335)
|
||||
// Standard Error: 2_128
|
||||
.saturating_add(Weight::from_ref_time(924_544).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_673 nanoseconds.
|
||||
Weight::from_ref_time(1_326_106_039 as u64)
|
||||
// Standard Error: 87_435
|
||||
.saturating_add(Weight::from_ref_time(7_437_525 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: 111_696 nanoseconds.
|
||||
Weight::from_ref_time(919_128_155)
|
||||
// Standard Error: 58_383
|
||||
.saturating_add(Weight::from_ref_time(4_917_235).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)
|
||||
@@ -272,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, 512]`.
|
||||
fn payout_stakers_dead_controller(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 109_550 nanoseconds.
|
||||
Weight::from_ref_time(206_474_081 as u64)
|
||||
// Standard Error: 16_169
|
||||
.saturating_add(Weight::from_ref_time(21_555_193 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: 110_470 nanoseconds.
|
||||
Weight::from_ref_time(214_513_056)
|
||||
// Standard Error: 17_132
|
||||
.saturating_add(Weight::from_ref_time(21_681_392).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)
|
||||
@@ -293,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, 512]`.
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 126_170 nanoseconds.
|
||||
Weight::from_ref_time(194_778_058 as u64)
|
||||
// Standard Error: 27_867
|
||||
.saturating_add(Weight::from_ref_time(30_845_851 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: 127_623 nanoseconds.
|
||||
Weight::from_ref_time(71_193_329)
|
||||
// Standard Error: 104_006
|
||||
.saturating_add(Weight::from_ref_time(31_734_017).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)
|
||||
@@ -310,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_627 nanoseconds.
|
||||
Weight::from_ref_time(84_126_338 as u64)
|
||||
// Standard Error: 4_351
|
||||
.saturating_add(Weight::from_ref_time(45_779 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: 81_989 nanoseconds.
|
||||
Weight::from_ref_time(84_089_774)
|
||||
// Standard Error: 3_862
|
||||
.saturating_add(Weight::from_ref_time(34_551).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)
|
||||
@@ -332,17 +336,16 @@ 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: 84_348 nanoseconds.
|
||||
Weight::from_ref_time(84_781_622 as u64)
|
||||
// Standard Error: 3_494
|
||||
.saturating_add(Weight::from_ref_time(869_042 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: 81_744 nanoseconds.
|
||||
Weight::from_ref_time(83_697_917)
|
||||
// Standard Error: 2_378
|
||||
.saturating_add(Weight::from_ref_time(928_791).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:183 w:0)
|
||||
// Storage: VoterList ListBags (r:166 w:0)
|
||||
// Storage: VoterList ListNodes (r:101 w:0)
|
||||
// Storage: Staking Nominators (r:101 w:0)
|
||||
// Storage: Staking Validators (r:2 w:0)
|
||||
@@ -358,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: 431_295 nanoseconds.
|
||||
Weight::from_ref_time(434_958_000 as u64)
|
||||
// Standard Error: 1_764_016
|
||||
.saturating_add(Weight::from_ref_time(57_522_953 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 175_774
|
||||
.saturating_add(Weight::from_ref_time(13_158_469 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(191 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: 426_726 nanoseconds.
|
||||
Weight::from_ref_time(427_956_000)
|
||||
// Standard Error: 1_694_488
|
||||
.saturating_add(Weight::from_ref_time(55_297_221).saturating_mul(v.into()))
|
||||
// Standard Error: 168_846
|
||||
.saturating_add(Weight::from_ref_time(12_858_483).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(173))
|
||||
.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:166 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_092_560 nanoseconds.
|
||||
Weight::from_ref_time(25_487_312_000)
|
||||
// Standard Error: 547_909
|
||||
.saturating_add(Weight::from_ref_time(4_859_299).saturating_mul(v.into()))
|
||||
// Standard Error: 547_909
|
||||
.saturating_add(Weight::from_ref_time(4_082_635).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(168))
|
||||
.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_520_733 nanoseconds.
|
||||
Weight::from_ref_time(3_602_387_000 as u64)
|
||||
// Standard Error: 41_226
|
||||
.saturating_add(Weight::from_ref_time(2_633_121 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_516_893 nanoseconds.
|
||||
Weight::from_ref_time(139_483_001)
|
||||
// Standard Error: 43_749
|
||||
.saturating_add(Weight::from_ref_time(7_181_910).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)
|
||||
@@ -413,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: 7_287 nanoseconds.
|
||||
Weight::from_ref_time(7_534_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Minimum execution time: 7_596 nanoseconds.
|
||||
Weight::from_ref_time(7_960_000)
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
}
|
||||
// Storage: Staking MinCommission (r:0 w:1)
|
||||
// Storage: Staking MinValidatorBond (r:0 w:1)
|
||||
@@ -424,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: 6_570 nanoseconds.
|
||||
Weight::from_ref_time(6_834_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Minimum execution time: 7_041 nanoseconds.
|
||||
Weight::from_ref_time(7_258_000)
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
@@ -439,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_446 nanoseconds.
|
||||
Weight::from_ref_time(71_663_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_602 nanoseconds.
|
||||
Weight::from_ref_time(71_173_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: 15_387 nanoseconds.
|
||||
Weight::from_ref_time(15_571_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_488 nanoseconds.
|
||||
Weight::from_ref_time(15_690_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_360 nanoseconds.
|
||||
Weight::from_ref_time(4_617_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user