mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-16 00:15:45 +00:00
fde44474e4
This PR implements an (optional) cap of the era inflation that is allocated to staking rewards. The remaining is minted directly into the [`RewardRemainder`](https://github.com/paritytech/polkadot-sdk/blob/fb0fd3e62445eb2dee2b2456a0c8574d1ecdcc73/substrate/frame/staking/src/pallet/mod.rs#L160) account, which is the treasury pot account in Polkadot and Kusama. The staking pallet now has a percent storage item, `MaxStakersRewards`, which defines the max percentage of the era inflation that should be allocated to staking rewards. The remaining era inflation (i.e. `remaining = max_era_payout - staking_payout.min(staking_payout * MaxStakersRewards))` is minted directly into the treasury. The `MaxStakersRewards` can be set by a privileged origin through the `set_staking_configs` extrinsic. **To finish** - [x] run benchmarks for westend-runtime Replaces https://github.com/paritytech/polkadot-sdk/pull/1483 Closes https://github.com/paritytech/polkadot-sdk/issues/403 --------- Co-authored-by: command-bot <>
804 lines
47 KiB
Rust
804 lines
47 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 32.0.0
|
|
//! DATE: 2024-01-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `runner-8idpd4bs-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("westend-dev")`, DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --extrinsic=*
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
|
// --pallet=pallet_staking
|
|
// --chain=westend-dev
|
|
// --header=./polkadot/file_header.txt
|
|
// --output=./polkadot/runtime/westend/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: `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(67), added: 2542, 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`)
|
|
fn bond() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `894`
|
|
// Estimated: `4764`
|
|
// Minimum execution time: 37_340_000 picoseconds.
|
|
Weight::from_parts(38_930_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4764))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(4))
|
|
}
|
|
/// 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(67), added: 2542, 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: `1921`
|
|
// Estimated: `8877`
|
|
// Minimum execution time: 80_630_000 picoseconds.
|
|
Weight::from_parts(82_196_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 8877))
|
|
.saturating_add(T::DbWeight::get().reads(9))
|
|
.saturating_add(T::DbWeight::get().writes(7))
|
|
}
|
|
/// 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(558), added: 3033, 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: `Staking::Bonded` (r:1 w:0)
|
|
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, 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(67), added: 2542, 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 unbond() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2128`
|
|
// Estimated: `8877`
|
|
// Minimum execution time: 83_523_000 picoseconds.
|
|
Weight::from_parts(86_639_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 8877))
|
|
.saturating_add(T::DbWeight::get().reads(12))
|
|
.saturating_add(T::DbWeight::get().writes(7))
|
|
}
|
|
/// 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:0)
|
|
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, 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(67), added: 2542, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1075`
|
|
// Estimated: `4764`
|
|
// Minimum execution time: 38_636_000 picoseconds.
|
|
Weight::from_parts(40_399_283, 0)
|
|
.saturating_add(Weight::from_parts(0, 4764))
|
|
// Standard Error: 869
|
|
.saturating_add(Weight::from_parts(37_752, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// 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::SlashingSpans` (r:1 w:1)
|
|
/// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `Staking::Bonded` (r:1 w:1)
|
|
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, 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(67), added: 2542, 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(558), added: 3033, 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: `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: `2127 + s * (4 ±0)`
|
|
// Estimated: `6248 + s * (4 ±0)`
|
|
// Minimum execution time: 81_301_000 picoseconds.
|
|
Weight::from_parts(88_609_205, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
// Standard Error: 3_388
|
|
.saturating_add(Weight::from_parts(1_253_692, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(13))
|
|
.saturating_add(T::DbWeight::get().writes(11))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
|
.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(558), added: 3033, 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: `1301`
|
|
// Estimated: `4556`
|
|
// Minimum execution time: 47_292_000 picoseconds.
|
|
Weight::from_parts(48_566_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4556))
|
|
.saturating_add(T::DbWeight::get().reads(11))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// 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(558), added: 3033, mode: `MaxEncodedLen`)
|
|
/// The range of component `k` is `[1, 128]`.
|
|
fn kick(k: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1243 + k * (569 ±0)`
|
|
// Estimated: `4556 + k * (3033 ±0)`
|
|
// Minimum execution time: 28_840_000 picoseconds.
|
|
Weight::from_parts(27_510_817, 0)
|
|
.saturating_add(Weight::from_parts(0, 4556))
|
|
// Standard Error: 6_603
|
|
.saturating_add(Weight::from_parts(6_268_853, 0).saturating_mul(k.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into())))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into())))
|
|
.saturating_add(Weight::from_parts(0, 3033).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(558), added: 3033, 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:17 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, 16]`.
|
|
fn nominate(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1797 + n * (102 ±0)`
|
|
// Estimated: `6248 + n * (2520 ±0)`
|
|
// Minimum execution time: 57_537_000 picoseconds.
|
|
Weight::from_parts(55_854_233, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
// Standard Error: 14_427
|
|
.saturating_add(Weight::from_parts(3_844_957, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(12))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
|
.saturating_add(T::DbWeight::get().writes(6))
|
|
.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(558), added: 3033, 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: `1581`
|
|
// Estimated: `6248`
|
|
// Minimum execution time: 49_997_000 picoseconds.
|
|
Weight::from_parts(51_266_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
.saturating_add(T::DbWeight::get().reads(8))
|
|
.saturating_add(T::DbWeight::get().writes(6))
|
|
}
|
|
/// Storage: `Staking::Ledger` (r:1 w:0)
|
|
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::Bonded` (r:1 w:0)
|
|
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, 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: `865`
|
|
// Estimated: `4556`
|
|
// Minimum execution time: 15_342_000 picoseconds.
|
|
Weight::from_parts(15_970_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4556))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// 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:1 w:1)
|
|
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::Bonded` (r:1 w:0)
|
|
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
|
fn update_payee() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `932`
|
|
// Estimated: `4556`
|
|
// Minimum execution time: 20_719_000 picoseconds.
|
|
Weight::from_parts(21_373_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4556))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// 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: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: `865`
|
|
// Estimated: `4556`
|
|
// Minimum execution time: 18_237_000 picoseconds.
|
|
Weight::from_parts(18_896_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 4556))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
/// 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: 1_946_000 picoseconds.
|
|
Weight::from_parts(2_131_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// 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: 6_840_000 picoseconds.
|
|
Weight::from_parts(7_208_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// 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: 6_812_000 picoseconds.
|
|
Weight::from_parts(7_254_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// 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: 6_787_000 picoseconds.
|
|
Weight::from_parts(7_206_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Staking::Invulnerables` (r:0 w:1)
|
|
/// Proof: `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: 2_045_000 picoseconds.
|
|
Weight::from_parts(2_281_841, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
// Standard Error: 70
|
|
.saturating_add(Weight::from_parts(11_592, 0).saturating_mul(v.into()))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Staking::Ledger` (r:751 w:1502)
|
|
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::Payee` (r:751 w:0)
|
|
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::Bonded` (r:0 w:751)
|
|
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
|
/// The range of component `i` is `[0, 751]`.
|
|
fn deprecate_controller_batch(i: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `668 + i * (148 ±0)`
|
|
// Estimated: `990 + i * (3566 ±0)`
|
|
// Minimum execution time: 1_657_000 picoseconds.
|
|
Weight::from_parts(1_702_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 990))
|
|
// Standard Error: 20_041
|
|
.saturating_add(Weight::from_parts(13_165_254, 0).saturating_mul(i.into()))
|
|
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(i.into())))
|
|
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(i.into())))
|
|
.saturating_add(Weight::from_parts(0, 3566).saturating_mul(i.into()))
|
|
}
|
|
/// Storage: `Staking::SlashingSpans` (r:1 w:1)
|
|
/// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// 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: `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(67), added: 2542, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, 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(558), added: 3033, 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: `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: `2127 + s * (4 ±0)`
|
|
// Estimated: `6248 + s * (4 ±0)`
|
|
// Minimum execution time: 78_774_000 picoseconds.
|
|
Weight::from_parts(85_770_713, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
// Standard Error: 2_815
|
|
.saturating_add(Weight::from_parts(1_244_494, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(13))
|
|
.saturating_add(T::DbWeight::get().writes(12))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
|
.saturating_add(Weight::from_parts(0, 4).saturating_mul(s.into()))
|
|
}
|
|
/// Storage: `Staking::UnappliedSlashes` (r:1 w:1)
|
|
/// Proof: `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: `66639`
|
|
// Estimated: `70104`
|
|
// Minimum execution time: 129_905_000 picoseconds.
|
|
Weight::from_parts(932_195_554, 0)
|
|
.saturating_add(Weight::from_parts(0, 70104))
|
|
// Standard Error: 57_492
|
|
.saturating_add(Weight::from_parts(4_826_754, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Staking::Bonded` (r:65 w:0)
|
|
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::Ledger` (r:65 w:65)
|
|
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::ErasStakersClipped` (r:1 w:0)
|
|
/// Proof: `Staking::ErasStakersClipped` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `Staking::ErasStakersOverview` (r:1 w:0)
|
|
/// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::ClaimedRewards` (r:1 w:1)
|
|
/// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// 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: `Balances::Locks` (r:65 w:65)
|
|
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Freezes` (r:65 w:0)
|
|
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:65 w:65)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::ErasStakersPaged` (r:1 w:0)
|
|
/// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `Staking::ErasRewardPoints` (r:1 w:0)
|
|
/// Proof: `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:65 w:0)
|
|
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
|
/// The range of component `n` is `[0, 64]`.
|
|
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `8249 + n * (396 ±0)`
|
|
// Estimated: `10779 + n * (3774 ±0)`
|
|
// Minimum execution time: 127_094_000 picoseconds.
|
|
Weight::from_parts(160_088_053, 0)
|
|
.saturating_add(Weight::from_parts(0, 10779))
|
|
// Standard Error: 32_978
|
|
.saturating_add(Weight::from_parts(39_845_710, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(14))
|
|
.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(n.into())))
|
|
.saturating_add(T::DbWeight::get().writes(4))
|
|
.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: `Staking::Bonded` (r:1 w:0)
|
|
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, 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(67), added: 2542, 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`)
|
|
/// The range of component `l` is `[1, 32]`.
|
|
fn rebond(l: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1922 + l * (5 ±0)`
|
|
// Estimated: `8877`
|
|
// Minimum execution time: 75_672_000 picoseconds.
|
|
Weight::from_parts(78_708_335, 0)
|
|
.saturating_add(Weight::from_parts(0, 8877))
|
|
// Standard Error: 3_387
|
|
.saturating_add(Weight::from_parts(37_084, 0).saturating_mul(l.into()))
|
|
.saturating_add(T::DbWeight::get().reads(9))
|
|
.saturating_add(T::DbWeight::get().writes(7))
|
|
}
|
|
/// 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: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// 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(67), added: 2542, 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(558), added: 3033, 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: `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: `2127 + s * (4 ±0)`
|
|
// Estimated: `6248 + s * (4 ±0)`
|
|
// Minimum execution time: 87_991_000 picoseconds.
|
|
Weight::from_parts(90_272_005, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
// Standard Error: 2_815
|
|
.saturating_add(Weight::from_parts(1_232_322, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(12))
|
|
.saturating_add(T::DbWeight::get().writes(11))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
|
.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:178 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::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: `Staking::Nominators` (r:110 w:0)
|
|
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, 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::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::ErasValidatorPrefs` (r:0 w:10)
|
|
/// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::ErasStakersPaged` (r:0 w:20)
|
|
/// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `Staking::ErasStakersOverview` (r:0 w:10)
|
|
/// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
|
|
/// 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 * (716 ±0) + v * (3594 ±0)`
|
|
// Estimated: `456136 + n * (3566 ±0) + v * (3566 ±0)`
|
|
// Minimum execution time: 528_862_000 picoseconds.
|
|
Weight::from_parts(534_620_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 456136))
|
|
// Standard Error: 2_005_553
|
|
.saturating_add(Weight::from_parts(65_586_008, 0).saturating_mul(v.into()))
|
|
// Standard Error: 199_842
|
|
.saturating_add(Weight::from_parts(18_155_389, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(184))
|
|
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
|
|
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
|
|
.saturating_add(T::DbWeight::get().writes(8))
|
|
.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:178 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::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: `Staking::Nominators` (r:2000 w:0)
|
|
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, 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::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: `3108 + n * (907 ±0) + v * (391 ±0)`
|
|
// Estimated: `456136 + n * (3566 ±0) + v * (3566 ±0)`
|
|
// Minimum execution time: 33_532_110_000 picoseconds.
|
|
Weight::from_parts(33_926_321_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 456136))
|
|
// Standard Error: 374_134
|
|
.saturating_add(Weight::from_parts(4_627_629, 0).saturating_mul(v.into()))
|
|
// Standard Error: 374_134
|
|
.saturating_add(Weight::from_parts(4_068_168, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(179))
|
|
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
|
|
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
.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`)
|
|
/// The range of component `v` is `[500, 1000]`.
|
|
fn get_npos_targets(v: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `946 + v * (50 ±0)`
|
|
// Estimated: `3510 + v * (2520 ±0)`
|
|
// Minimum execution time: 2_395_956_000 picoseconds.
|
|
Weight::from_parts(88_416_870, 0)
|
|
.saturating_add(Weight::from_parts(0, 3510))
|
|
// Standard Error: 8_731
|
|
.saturating_add(Weight::from_parts(4_750_956, 0).saturating_mul(v.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
|
|
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(v.into()))
|
|
}
|
|
/// 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::MaxStakedRewards` (r:0 w:1)
|
|
/// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::ChillThreshold` (r:0 w:1)
|
|
/// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
|
|
/// 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: 3_761_000 picoseconds.
|
|
Weight::from_parts(4_013_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(7))
|
|
}
|
|
/// Storage: `Staking::MinCommission` (r:0 w:1)
|
|
/// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
|
/// 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::MaxStakedRewards` (r:0 w:1)
|
|
/// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::ChillThreshold` (r:0 w:1)
|
|
/// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
|
/// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
|
|
/// 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: 3_325_000 picoseconds.
|
|
Weight::from_parts(3_519_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(7))
|
|
}
|
|
/// Storage: `Staking::Bonded` (r:1 w:0)
|
|
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
|
/// 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(558), added: 3033, 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: `1870`
|
|
// Estimated: `6248`
|
|
// Minimum execution time: 63_583_000 picoseconds.
|
|
Weight::from_parts(65_917_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 6248))
|
|
.saturating_add(T::DbWeight::get().reads(12))
|
|
.saturating_add(T::DbWeight::get().writes(6))
|
|
}
|
|
/// 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: `658`
|
|
// Estimated: `3510`
|
|
// Minimum execution time: 10_975_000 picoseconds.
|
|
Weight::from_parts(11_328_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3510))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// 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: 1_954_000 picoseconds.
|
|
Weight::from_parts(2_081_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|