mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-08-12 18:31:38 +00:00
4c0af07370
* ".git/.scripts/commands/bench-vm/bench-vm.sh" all westend * ".git/.scripts/commands/bench-vm/bench-vm.sh" all polkadot * ".git/.scripts/commands/bench-vm/bench-vm.sh" all kusama --------- Co-authored-by: command-bot <>
797 lines
44 KiB
Rust
797 lines
44 KiB
Rust
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// This file is part of Polkadot.
|
|
|
|
// Polkadot is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Polkadot is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Autogenerated weights for `pallet_staking`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-06-19, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `runner-e8ezs4ez-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=kusama-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --no-storage-info
|
|
// --no-median-slopes
|
|
// --no-min-squares
|
|
// --pallet=pallet_staking
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/kusama/src/weights/
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
#![allow(missing_docs)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use core::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_staking`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
|
|
/// Storage: Staking Bonded (r:1 w:1)
|
|
/// 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 CurrentEra (r:1 w:0)
|
|
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: Balances Freezes (r:1 w:0)
|
|
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
|
/// Storage: Staking Payee (r:0 w:1)
|
|
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
|
|
fn bond() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `980`
|
|
// Estimated: `4764`
|
|
// Minimum execution time: 51_609_000 picoseconds.
|
|
Weight::from_parts(52_360_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4764))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
.saturating_add(T::DbWeight::get().writes(4))
|
|
}
|
|
/// Storage: Staking Bonded (r:1 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: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: Balances Freezes (r:1 w:0)
|
|
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:3 w:3)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:2 w:2)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
fn bond_extra() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1955`
|
|
// Estimated: `8877`
|
|
// Minimum execution time: 94_514_000 picoseconds.
|
|
Weight::from_parts(96_430_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 8877))
|
|
.saturating_add(T::DbWeight::get().reads(9))
|
|
.saturating_add(T::DbWeight::get().writes(7))
|
|
}
|
|
/// Storage: Staking Ledger (r:1 w:1)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: Staking Nominators (r:1 w:0)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinNominatorBond (r:1 w:0)
|
|
/// Proof: Staking MinNominatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: Staking CurrentEra (r:1 w:0)
|
|
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: Balances Freezes (r:1 w:0)
|
|
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:3 w:3)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: Staking Bonded (r:1 w:0)
|
|
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:2 w:2)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
fn unbond() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2166`
|
|
// Estimated: `8877`
|
|
// Minimum execution time: 97_981_000 picoseconds.
|
|
Weight::from_parts(102_906_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 8877))
|
|
.saturating_add(T::DbWeight::get().reads(12))
|
|
.saturating_add(T::DbWeight::get().writes(7))
|
|
}
|
|
/// Storage: Staking Ledger (r:1 w:1)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: Staking CurrentEra (r:1 w:0)
|
|
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: Balances Freezes (r:1 w:0)
|
|
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `944`
|
|
// Estimated: `4764`
|
|
// Minimum execution time: 44_962_000 picoseconds.
|
|
Weight::from_parts(46_452_900, 0)
|
|
.saturating_add(Weight::from_parts(0, 4764))
|
|
// Standard Error: 1_541
|
|
.saturating_add(Weight::from_parts(40_855, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: Staking Ledger (r:1 w:1)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: Staking CurrentEra (r:1 w:0)
|
|
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking Bonded (r:1 w:1)
|
|
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
|
/// Storage: Staking SlashingSpans (r:1 w:1)
|
|
/// Proof Skipped: Staking SlashingSpans (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Staking Validators (r:1 w:0)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
/// Storage: Staking Nominators (r:1 w:1)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// Storage: Staking CounterForNominators (r:1 w:1)
|
|
/// Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:2 w:2)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:1 w:1)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
|
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: Balances Freezes (r:1 w:0)
|
|
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, 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 SpanSlash (r:0 w:100)
|
|
/// Proof: Staking SpanSlash (max_values: None, max_size: Some(76), added: 2551, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_kill(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2217 + s * (4 ±0)`
|
|
// Estimated: `6248 + s * (4 ±0)`
|
|
// Minimum execution time: 94_257_000 picoseconds.
|
|
Weight::from_parts(102_162_641, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
// Standard Error: 4_137
|
|
.saturating_add(Weight::from_parts(1_401_944, 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())))
|
|
.saturating_add(Weight::from_parts(0, 4).saturating_mul(s.into()))
|
|
}
|
|
/// Storage: Staking Ledger (r:1 w:0)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinValidatorBond (r:1 w:0)
|
|
/// Proof: Staking MinValidatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinCommission (r:1 w:0)
|
|
/// Proof: Staking MinCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking Validators (r:1 w:1)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
/// Storage: Staking MaxValidatorsCount (r:1 w:0)
|
|
/// Proof: Staking MaxValidatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking Nominators (r:1 w:0)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// Storage: Staking Bonded (r:1 w:0)
|
|
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:1 w:1)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:1 w:1)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
|
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking CounterForValidators (r:1 w:1)
|
|
/// Proof: Staking CounterForValidators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn validate() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1341`
|
|
// Estimated: `4556`
|
|
// Minimum execution time: 57_139_000 picoseconds.
|
|
Weight::from_parts(58_021_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4556))
|
|
.saturating_add(T::DbWeight::get().reads(11))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// Storage: Staking Ledger (r:1 w:0)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: Staking Nominators (r:128 w:128)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// The range of component `k` is `[1, 128]`.
|
|
fn kick(k: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1326 + k * (823 ±0)`
|
|
// Estimated: `4556 + k * (3289 ±0)`
|
|
// Minimum execution time: 36_112_000 picoseconds.
|
|
Weight::from_parts(31_474_845, 0)
|
|
.saturating_add(Weight::from_parts(0, 4556))
|
|
// Standard Error: 13_249
|
|
.saturating_add(Weight::from_parts(9_813_360, 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())))
|
|
.saturating_add(Weight::from_parts(0, 3289).saturating_mul(k.into()))
|
|
}
|
|
/// Storage: Staking Ledger (r:1 w:0)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinNominatorBond (r:1 w:0)
|
|
/// Proof: Staking MinNominatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: Staking Nominators (r:1 w:1)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// Storage: Staking MaxNominatorsCount (r:1 w:0)
|
|
/// Proof: Staking MaxNominatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking Validators (r:25 w:0)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
/// Storage: Staking CurrentEra (r:1 w:0)
|
|
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking Bonded (r:1 w:0)
|
|
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:2 w:2)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:1 w:1)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
|
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking CounterForNominators (r:1 w:1)
|
|
/// Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// The range of component `n` is `[1, 24]`.
|
|
fn nominate(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1921 + n * (88 ±0)`
|
|
// Estimated: `6248 + n * (2520 ±0)`
|
|
// Minimum execution time: 66_845_000 picoseconds.
|
|
Weight::from_parts(67_790_022, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
// Standard Error: 18_238
|
|
.saturating_add(Weight::from_parts(3_739_950, 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))
|
|
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: Staking Ledger (r:1 w:0)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: Staking Validators (r:1 w:0)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
/// Storage: Staking Nominators (r:1 w:1)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// Storage: Staking CounterForNominators (r:1 w:1)
|
|
/// Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:2 w:2)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:1 w:1)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
|
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn chill() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1671`
|
|
// Estimated: `6248`
|
|
// Minimum execution time: 59_727_000 picoseconds.
|
|
Weight::from_parts(61_591_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
.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)
|
|
fn set_payee() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `735`
|
|
// 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))
|
|
}
|
|
/// Storage: Staking Bonded (r:1 w:1)
|
|
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
|
/// Storage: Staking Ledger (r:2 w:2)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
fn set_controller() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `834`
|
|
// Estimated: `8122`
|
|
// Minimum execution time: 21_128_000 picoseconds.
|
|
Weight::from_parts(21_739_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 8122))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
/// Storage: Staking ValidatorCount (r:0 w:1)
|
|
/// Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn set_validator_count() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_016_000 picoseconds.
|
|
Weight::from_parts(3_195_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Staking ForceEra (r:0 w:1)
|
|
/// Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
|
fn force_no_eras() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 9_431_000 picoseconds.
|
|
Weight::from_parts(9_624_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Staking ForceEra (r:0 w:1)
|
|
/// Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
|
fn force_new_era() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 9_322_000 picoseconds.
|
|
Weight::from_parts(9_551_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Staking ForceEra (r:0 w:1)
|
|
/// Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
|
fn force_new_era_always() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 9_209_000 picoseconds.
|
|
Weight::from_parts(9_772_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Staking Invulnerables (r:0 w:1)
|
|
/// Proof Skipped: Staking Invulnerables (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `v` is `[0, 1000]`.
|
|
fn set_invulnerables(v: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_228_000 picoseconds.
|
|
Weight::from_parts(3_437_995, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
// Standard Error: 50
|
|
.saturating_add(Weight::from_parts(12_179, 0).saturating_mul(v.into()))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Staking Bonded (r:1 w:1)
|
|
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
|
/// Storage: Staking SlashingSpans (r:1 w:1)
|
|
/// Proof Skipped: Staking SlashingSpans (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Staking Validators (r:1 w:0)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
/// Storage: Staking Nominators (r:1 w:1)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// Storage: Staking CounterForNominators (r:1 w:1)
|
|
/// Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:2 w:2)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:1 w:1)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
|
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: Balances Freezes (r:1 w:0)
|
|
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
|
/// Storage: Staking Ledger (r:0 w:1)
|
|
/// 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 SpanSlash (r:0 w:100)
|
|
/// Proof: Staking SpanSlash (max_values: None, max_size: Some(76), added: 2551, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn force_unstake(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1947 + s * (4 ±0)`
|
|
// Estimated: `6248 + s * (4 ±0)`
|
|
// Minimum execution time: 86_567_000 picoseconds.
|
|
Weight::from_parts(93_537_408, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
// Standard Error: 3_840
|
|
.saturating_add(Weight::from_parts(1_371_525, 0).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())))
|
|
.saturating_add(Weight::from_parts(0, 4).saturating_mul(s.into()))
|
|
}
|
|
/// Storage: Staking UnappliedSlashes (r:1 w:1)
|
|
/// Proof Skipped: Staking UnappliedSlashes (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `s` is `[1, 1000]`.
|
|
fn cancel_deferred_slash(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `66572`
|
|
// Estimated: `70037`
|
|
// Minimum execution time: 129_433_000 picoseconds.
|
|
Weight::from_parts(939_746_867, 0)
|
|
.saturating_add(Weight::from_parts(0, 70037))
|
|
// Standard Error: 58_234
|
|
.saturating_add(Weight::from_parts(4_851_875, 0).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)
|
|
/// 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]`.
|
|
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()))
|
|
}
|
|
/// 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]`.
|
|
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))
|
|
.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_mul(n.into())))
|
|
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: Staking Ledger (r:1 w:1)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: Balances Freezes (r:1 w:0)
|
|
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:3 w:3)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: Staking Bonded (r:1 w:0)
|
|
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:2 w:2)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
/// The range of component `l` is `[1, 32]`.
|
|
fn rebond(l: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1956 + l * (5 ±0)`
|
|
// Estimated: `8877`
|
|
// Minimum execution time: 88_119_000 picoseconds.
|
|
Weight::from_parts(91_343_026, 0)
|
|
.saturating_add(Weight::from_parts(0, 8877))
|
|
// Standard Error: 5_157
|
|
.saturating_add(Weight::from_parts(38_885, 0).saturating_mul(l.into()))
|
|
.saturating_add(T::DbWeight::get().reads(9))
|
|
.saturating_add(T::DbWeight::get().writes(7))
|
|
}
|
|
/// Storage: Staking Bonded (r:1 w:1)
|
|
/// 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 SlashingSpans (r:1 w:1)
|
|
/// Proof Skipped: Staking SlashingSpans (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Staking Validators (r:1 w:0)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
/// Storage: Staking Nominators (r:1 w:1)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// Storage: Staking CounterForNominators (r:1 w:1)
|
|
/// Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:2 w:2)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:1 w:1)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
|
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
|
/// Storage: Balances Freezes (r:1 w:0)
|
|
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, 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 SpanSlash (r:0 w:100)
|
|
/// Proof: Staking SpanSlash (max_values: None, max_size: Some(76), added: 2551, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[1, 100]`.
|
|
fn reap_stash(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2217 + s * (4 ±0)`
|
|
// Estimated: `6248 + s * (4 ±0)`
|
|
// Minimum execution time: 100_347_000 picoseconds.
|
|
Weight::from_parts(103_081_218, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
// Standard Error: 3_957
|
|
.saturating_add(Weight::from_parts(1_403_417, 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())))
|
|
.saturating_add(Weight::from_parts(0, 4).saturating_mul(s.into()))
|
|
}
|
|
/// Storage: VoterList CounterForListNodes (r:1 w:0)
|
|
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:166 w:0)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:110 w:0)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: Staking Nominators (r:110 w:0)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// Storage: Staking Validators (r:11 w:0)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
/// Storage: Staking Bonded (r:110 w:0)
|
|
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
|
/// Storage: Staking Ledger (r:110 w:0)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: System BlockWeight (r:1 w:1)
|
|
/// Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
|
|
/// Storage: Staking CounterForValidators (r:1 w:0)
|
|
/// Proof: Staking CounterForValidators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking ValidatorCount (r:1 w:0)
|
|
/// Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinimumValidatorCount (r:1 w:0)
|
|
/// Proof: Staking MinimumValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking CurrentEra (r:1 w:1)
|
|
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking ErasStakersClipped (r:0 w:10)
|
|
/// Proof Skipped: Staking ErasStakersClipped (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Staking ErasValidatorPrefs (r:0 w:10)
|
|
/// Proof: Staking ErasValidatorPrefs (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
|
|
/// Storage: Staking ErasStakers (r:0 w:10)
|
|
/// Proof Skipped: Staking ErasStakers (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Staking ErasTotalStake (r:0 w:1)
|
|
/// Proof: Staking ErasTotalStake (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
|
|
/// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
|
/// Proof: Staking ErasStartSessionIndex (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinimumActiveStake (r:0 w:1)
|
|
/// Proof: Staking MinimumActiveStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// The range of component `v` is `[1, 10]`.
|
|
/// The range of component `n` is `[0, 100]`.
|
|
fn new_era(v: u32, n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0 + n * (714 ±0) + v * (3592 ±0)`
|
|
// Estimated: `425452 + n * (3566 ±0) + v * (3566 ±0)`
|
|
// Minimum execution time: 543_737_000 picoseconds.
|
|
Weight::from_parts(547_799_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 425452))
|
|
// Standard Error: 2_046_982
|
|
.saturating_add(Weight::from_parts(66_708_000, 0).saturating_mul(v.into()))
|
|
// Standard Error: 203_970
|
|
.saturating_add(Weight::from_parts(20_246_221, 0).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())))
|
|
.saturating_add(Weight::from_parts(0, 3566).saturating_mul(n.into()))
|
|
.saturating_add(Weight::from_parts(0, 3566).saturating_mul(v.into()))
|
|
}
|
|
/// Storage: VoterList CounterForListNodes (r:1 w:0)
|
|
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:166 w:0)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:2000 w:0)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: Staking Nominators (r:2000 w:0)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// Storage: Staking Validators (r:1000 w:0)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
/// Storage: Staking Bonded (r:2000 w:0)
|
|
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
|
/// Storage: Staking Ledger (r:2000 w:0)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: System BlockWeight (r:1 w:1)
|
|
/// Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinimumActiveStake (r:0 w:1)
|
|
/// Proof: Staking MinimumActiveStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3151 + n * (1161 ±0) + v * (389 ±0)`
|
|
// Estimated: `425452 + n * (3566 ±0) + v * (3566 ±0)`
|
|
// Minimum execution time: 38_906_963_000 picoseconds.
|
|
Weight::from_parts(39_744_147_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 425452))
|
|
// Standard Error: 411_378
|
|
.saturating_add(Weight::from_parts(3_691_522, 0).saturating_mul(v.into()))
|
|
// Standard Error: 411_378
|
|
.saturating_add(Weight::from_parts(5_732_105, 0).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))
|
|
.saturating_add(Weight::from_parts(0, 3566).saturating_mul(n.into()))
|
|
.saturating_add(Weight::from_parts(0, 3566).saturating_mul(v.into()))
|
|
}
|
|
/// Storage: Staking CounterForValidators (r:1 w:0)
|
|
/// Proof: Staking CounterForValidators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking Validators (r:1001 w:0)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
/// Storage: System BlockWeight (r:1 w:1)
|
|
/// Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
|
|
/// The range of component `v` is `[500, 1000]`.
|
|
fn get_npos_targets(v: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `917 + v * (50 ±0)`
|
|
// Estimated: `3510 + v * (2520 ±0)`
|
|
// Minimum execution time: 2_614_613_000 picoseconds.
|
|
Weight::from_parts(127_976_836, 0)
|
|
.saturating_add(Weight::from_parts(0, 3510))
|
|
// Standard Error: 10_285
|
|
.saturating_add(Weight::from_parts(5_101_327, 0).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))
|
|
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(v.into()))
|
|
}
|
|
/// Storage: Staking MinCommission (r:0 w:1)
|
|
/// Proof: Staking MinCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinValidatorBond (r:0 w:1)
|
|
/// 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 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)
|
|
/// Proof: Staking MaxNominatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinNominatorBond (r:0 w:1)
|
|
/// Proof: Staking MinNominatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
fn set_staking_configs_all_set() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 6_533_000 picoseconds.
|
|
Weight::from_parts(6_797_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(6))
|
|
}
|
|
/// Storage: Staking MinCommission (r:0 w:1)
|
|
/// Proof: Staking MinCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinValidatorBond (r:0 w:1)
|
|
/// 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 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)
|
|
/// Proof: Staking MaxNominatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinNominatorBond (r:0 w:1)
|
|
/// Proof: Staking MinNominatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
fn set_staking_configs_all_remove() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 6_056_000 picoseconds.
|
|
Weight::from_parts(6_255_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.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 Nominators (r:1 w:1)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(814), added: 3289, mode: MaxEncodedLen)
|
|
/// Storage: Staking ChillThreshold (r:1 w:0)
|
|
/// Proof: Staking ChillThreshold (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
|
/// Storage: Staking MaxNominatorsCount (r:1 w:0)
|
|
/// Proof: Staking MaxNominatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking CounterForNominators (r:1 w:1)
|
|
/// Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking MinNominatorBond (r:1 w:0)
|
|
/// Proof: Staking MinNominatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: Staking Validators (r:1 w:0)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListNodes (r:2 w:2)
|
|
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
|
/// Storage: VoterList ListBags (r:1 w:1)
|
|
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
|
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
|
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn chill_other() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1794`
|
|
// Estimated: `6248`
|
|
// Minimum execution time: 71_915_000 picoseconds.
|
|
Weight::from_parts(73_500_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
.saturating_add(T::DbWeight::get().reads(11))
|
|
.saturating_add(T::DbWeight::get().writes(6))
|
|
}
|
|
/// Storage: Staking MinCommission (r:1 w:0)
|
|
/// Proof: Staking MinCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: Staking Validators (r:1 w:1)
|
|
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
|
fn force_apply_min_commission() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `627`
|
|
// Estimated: `3510`
|
|
// Minimum execution time: 12_994_000 picoseconds.
|
|
Weight::from_parts(13_452_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3510))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Staking MinCommission (r:0 w:1)
|
|
/// Proof: Staking MinCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn set_min_commission() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_191_000 picoseconds.
|
|
Weight::from_parts(3_315_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|