mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-02 19:57:24 +00:00
1b27ae9549
* initial impl * add template test * linear fit proof size * always record proof when tracking storage * calculate worst case pov * remove duplicate worst case * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * more comment output * add cli for worst case map size * update name * clap does not support underscores * rename * expose worst case map values * improve some comments * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * update template * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * fix fmt * more fmt * more fmt * Dont panic when there is no proof Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix test features Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Whitelist :extrinsic_index Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use whitelist when recording proof Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add logs Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add PoV testing pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Deploy PoV testing pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Storage benches reside in the PoV pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Linear regress PoV per component Splits the PoV calculation into "measured" and "estimated". The measured part is reported by the Proof recorder and linear regressed over all components at once. The estimated part is calculated as worst-case by using the max PoV size per storage access and calculating one linear regress per component. This gives each component a (possibly) independent PoV. For now the measured size will always be lower than the PoV on Polkadot since it is measured on an empty snapshot. The measured part is therefor only used as diagnostic for debugging. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Put PoV into the weight templates Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Extra alanysis choise for PoV Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add+Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make benches faster Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Cleanup Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use same template comments Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/bench-bot.sh" pallet dev pallet_balances * ".git/.scripts/bench-bot.sh" pallet dev pallet_democracy * Update referenda mock BlockWeights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Take measured value size into account Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/bench-bot.sh" pallet dev pallet_scheduler * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * proof_size: None Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ugly, but works Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * wup Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add pov_mode attribute to the benchmarks! macro Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use pov_mode attribute in PoV benchmarking Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Scheduler, Whitelist: Add pov_mode attr Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update PoV weights * Add CLI arg: default-pov-mode Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Revert "Update PoV weights" This reverts commit 2f3ac2387396470b118122a6ff8fa4ee12216f4b. * Revert "WIP" This reverts commit c34b538cd2bc45da4544e887180184e30957904a. * Revert first approach This reverts commit range 8ddaa2fffe5930f225a30bee314d0b7c94c344dd^..4c84f8748e5395852a9e0e25b0404953fee1a59e Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add extra benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_alliance * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_whitelist * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_scheduler * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy 🤦 Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add reference benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix doc comments Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Undo logging Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add 'Ignored' pov_mode Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Allow multiple attributes per benchmark Turns out that the current benchmarking syntax does not support multiple attributes per bench 🤦. Changing it to support that since otherwise the `pov_mode` would conflict with the others. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Validate pov_mode syntax Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Ignore PoV for all contract benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Bump macro recursion limit Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update contract weights They dont have a PoV component anymore. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix test ffs Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * pov_mode is unsupported in V2 syntax Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix pallet ui tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * update pallet ui Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix pallet ui tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Parity Bot <admin@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <> Co-authored-by: Your Name <you@example.com>
922 lines
56 KiB
Rust
922 lines
56 KiB
Rust
// This file is part of Substrate.
|
|
|
|
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
//! Autogenerated weights for pallet_nomination_pools
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-01-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/substrate
|
|
// benchmark
|
|
// pallet
|
|
// --chain=dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_nomination_pools
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --output=./frame/nomination-pools/src/weights.rs
|
|
// --header=./HEADER-APACHE2
|
|
// --template=./.maintain/frame-weight-template.hbs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions needed for pallet_nomination_pools.
|
|
pub trait WeightInfo {
|
|
fn join() -> Weight;
|
|
fn bond_extra_transfer() -> Weight;
|
|
fn bond_extra_reward() -> Weight;
|
|
fn claim_payout() -> Weight;
|
|
fn unbond() -> Weight;
|
|
fn pool_withdraw_unbonded(s: u32, ) -> Weight;
|
|
fn withdraw_unbonded_update(s: u32, ) -> Weight;
|
|
fn withdraw_unbonded_kill(s: u32, ) -> Weight;
|
|
fn create() -> Weight;
|
|
fn nominate(n: u32, ) -> Weight;
|
|
fn set_state() -> Weight;
|
|
fn set_metadata(n: u32, ) -> Weight;
|
|
fn set_configs() -> Weight;
|
|
fn update_roles() -> Weight;
|
|
fn chill() -> Weight;
|
|
}
|
|
|
|
/// Weights for pallet_nomination_pools using the Substrate node and recommended hardware.
|
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|
/// Storage: NominationPools MinJoinBond (r:1 w:0)
|
|
/// Proof: NominationPools MinJoinBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, 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 Ledger (r:1 w:1)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:2 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembersPerPool (r:1 w:0)
|
|
/// Proof: NominationPools MaxPoolMembersPerPool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembers (r:1 w:0)
|
|
/// Proof: NominationPools MaxPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools CounterForPoolMembers (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: 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 join() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3573`
|
|
// Estimated: `37988`
|
|
// Minimum execution time: 140_155 nanoseconds.
|
|
Weight::from_parts(141_098_000, 37988)
|
|
.saturating_add(T::DbWeight::get().reads(17_u64))
|
|
.saturating_add(T::DbWeight::get().writes(12_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:3 w:2)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, 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 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: 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_transfer() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3615`
|
|
// Estimated: `38583`
|
|
// Minimum execution time: 136_048 nanoseconds.
|
|
Weight::from_parts(136_767_000, 38583)
|
|
.saturating_add(T::DbWeight::get().reads(14_u64))
|
|
.saturating_add(T::DbWeight::get().writes(12_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:3 w:3)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, 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 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: 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_reward() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3615`
|
|
// Estimated: `38583`
|
|
// Minimum execution time: 151_473 nanoseconds.
|
|
Weight::from_parts(152_375_000, 38583)
|
|
.saturating_add(T::DbWeight::get().reads(14_u64))
|
|
.saturating_add(T::DbWeight::get().writes(13_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
fn claim_payout() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1189`
|
|
// Estimated: `10489`
|
|
// Minimum execution time: 51_146 nanoseconds.
|
|
Weight::from_parts(51_570_000, 10489)
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(4_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, 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 Ledger (r:1 w:1)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:2 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, 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 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: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, 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)
|
|
/// Storage: NominationPools SubPoolsStorage (r:1 w:1)
|
|
/// Proof: NominationPools SubPoolsStorage (max_values: None, max_size: Some(24382), added: 26857, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForSubPoolsStorage (r:1 w:1)
|
|
/// Proof: NominationPools CounterForSubPoolsStorage (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn unbond() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3858`
|
|
// Estimated: `67379`
|
|
// Minimum execution time: 141_400 nanoseconds.
|
|
Weight::from_parts(141_822_000, 67379)
|
|
.saturating_add(T::DbWeight::get().reads(18_u64))
|
|
.saturating_add(T::DbWeight::get().writes(13_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:0)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, 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 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)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn pool_withdraw_unbonded(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1779`
|
|
// Estimated: `13025`
|
|
// Minimum execution time: 49_021 nanoseconds.
|
|
Weight::from_parts(49_954_282, 13025)
|
|
// Standard Error: 378
|
|
.saturating_add(Weight::from_ref_time(5_165).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(5_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, 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: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools SubPoolsStorage (r:1 w:1)
|
|
/// Proof: NominationPools SubPoolsStorage (max_values: None, max_size: Some(24382), added: 26857, 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 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: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools CounterForPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2303`
|
|
// Estimated: `45696`
|
|
// Minimum execution time: 92_473 nanoseconds.
|
|
Weight::from_parts(93_901_972, 45696)
|
|
// Standard Error: 618
|
|
.saturating_add(Weight::from_ref_time(12_032).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(9_u64))
|
|
.saturating_add(T::DbWeight::get().writes(7_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, 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: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools SubPoolsStorage (r:1 w:1)
|
|
/// Proof: NominationPools SubPoolsStorage (max_values: None, max_size: Some(24382), added: 26857, 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 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:0)
|
|
/// 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:0)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:2 w:2)
|
|
/// 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: NominationPools CounterForPoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools CounterForPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools ReversePoolIdLookup (r:1 w:1)
|
|
/// Proof: NominationPools ReversePoolIdLookup (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForReversePoolIdLookup (r:1 w:1)
|
|
/// Proof: NominationPools CounterForReversePoolIdLookup (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForRewardPools (r:1 w:1)
|
|
/// Proof: NominationPools CounterForRewardPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForSubPoolsStorage (r:1 w:1)
|
|
/// Proof: NominationPools CounterForSubPoolsStorage (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools Metadata (r:1 w:1)
|
|
/// Proof: NominationPools Metadata (max_values: None, max_size: Some(270), added: 2745, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForBondedPools (r:1 w:1)
|
|
/// Proof: NominationPools CounterForBondedPools (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)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2690`
|
|
// Estimated: `68812`
|
|
// Minimum execution time: 150_063 nanoseconds.
|
|
Weight::from_parts(152_321_387, 68812)
|
|
.saturating_add(T::DbWeight::get().reads(20_u64))
|
|
.saturating_add(T::DbWeight::get().writes(17_u64))
|
|
}
|
|
/// Storage: NominationPools LastPoolId (r:1 w:1)
|
|
/// Proof: NominationPools LastPoolId (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: NominationPools MinCreateBond (r:1 w:0)
|
|
/// Proof: NominationPools MinCreateBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MinJoinBond (r:1 w:0)
|
|
/// Proof: NominationPools MinJoinBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPools (r:1 w:0)
|
|
/// Proof: NominationPools MaxPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForBondedPools (r:1 w:1)
|
|
/// Proof: NominationPools CounterForBondedPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembersPerPool (r:1 w:0)
|
|
/// Proof: NominationPools MaxPoolMembersPerPool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembers (r:1 w:0)
|
|
/// Proof: NominationPools MaxPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools CounterForPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:2 w:2)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, 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 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: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForRewardPools (r:1 w:1)
|
|
/// Proof: NominationPools CounterForRewardPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools ReversePoolIdLookup (r:1 w:1)
|
|
/// Proof: NominationPools ReversePoolIdLookup (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForReversePoolIdLookup (r:1 w:1)
|
|
/// Proof: NominationPools CounterForReversePoolIdLookup (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: Staking Payee (r:0 w:1)
|
|
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
|
|
fn create() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1321`
|
|
// Estimated: `31522`
|
|
// Minimum execution time: 131_430 nanoseconds.
|
|
Weight::from_parts(132_214_000, 31522)
|
|
.saturating_add(T::DbWeight::get().reads(21_u64))
|
|
.saturating_add(T::DbWeight::get().writes(15_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:0)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, 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 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: 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 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: `1909`
|
|
// Estimated: `21998 + n * (2520 ±0)`
|
|
// Minimum execution time: 61_798 nanoseconds.
|
|
Weight::from_parts(61_504_758, 21998)
|
|
// Standard Error: 4_046
|
|
.saturating_add(Weight::from_ref_time(1_159_175).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(12_u64))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
|
.saturating_add(T::DbWeight::get().writes(5_u64))
|
|
.saturating_add(Weight::from_proof_size(2520).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, 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 Ledger (r:1 w:0)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
fn set_state() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1498`
|
|
// Estimated: `8752`
|
|
// Minimum execution time: 32_433 nanoseconds.
|
|
Weight::from_parts(32_894_000, 8752)
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:0)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools Metadata (r:1 w:1)
|
|
/// Proof: NominationPools Metadata (max_values: None, max_size: Some(270), added: 2745, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForMetadata (r:1 w:1)
|
|
/// Proof: NominationPools CounterForMetadata (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// The range of component `n` is `[1, 256]`.
|
|
fn set_metadata(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `559`
|
|
// Estimated: `5883`
|
|
// Minimum execution time: 13_608 nanoseconds.
|
|
Weight::from_parts(13_966_346, 5883)
|
|
// Standard Error: 44
|
|
.saturating_add(Weight::from_ref_time(1_511).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: NominationPools MinJoinBond (r:0 w:1)
|
|
/// Proof: NominationPools MinJoinBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembers (r:0 w:1)
|
|
/// Proof: NominationPools MaxPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembersPerPool (r:0 w:1)
|
|
/// Proof: NominationPools MaxPoolMembersPerPool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MinCreateBond (r:0 w:1)
|
|
/// Proof: NominationPools MinCreateBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPools (r:0 w:1)
|
|
/// Proof: NominationPools MaxPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn set_configs() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 5_832 nanoseconds.
|
|
Weight::from_ref_time(6_117_000)
|
|
.saturating_add(T::DbWeight::get().writes(5_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
fn update_roles() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `559`
|
|
// Estimated: `2639`
|
|
// Minimum execution time: 18_160 nanoseconds.
|
|
Weight::from_parts(18_567_000, 2639)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:0)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, 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 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: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)
|
|
fn chill() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2136`
|
|
// Estimated: `20489`
|
|
// Minimum execution time: 58_991 nanoseconds.
|
|
Weight::from_parts(59_528_000, 20489)
|
|
.saturating_add(T::DbWeight::get().reads(9_u64))
|
|
.saturating_add(T::DbWeight::get().writes(5_u64))
|
|
}
|
|
}
|
|
|
|
// For backwards compatibility and tests
|
|
impl WeightInfo for () {
|
|
/// Storage: NominationPools MinJoinBond (r:1 w:0)
|
|
/// Proof: NominationPools MinJoinBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, 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 Ledger (r:1 w:1)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:2 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembersPerPool (r:1 w:0)
|
|
/// Proof: NominationPools MaxPoolMembersPerPool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembers (r:1 w:0)
|
|
/// Proof: NominationPools MaxPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools CounterForPoolMembers (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: 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 join() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3573`
|
|
// Estimated: `37988`
|
|
// Minimum execution time: 140_155 nanoseconds.
|
|
Weight::from_parts(141_098_000, 37988)
|
|
.saturating_add(RocksDbWeight::get().reads(17_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(12_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:3 w:2)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, 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 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: 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_transfer() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3615`
|
|
// Estimated: `38583`
|
|
// Minimum execution time: 136_048 nanoseconds.
|
|
Weight::from_parts(136_767_000, 38583)
|
|
.saturating_add(RocksDbWeight::get().reads(14_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(12_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:3 w:3)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, 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 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: 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_reward() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3615`
|
|
// Estimated: `38583`
|
|
// Minimum execution time: 151_473 nanoseconds.
|
|
Weight::from_parts(152_375_000, 38583)
|
|
.saturating_add(RocksDbWeight::get().reads(14_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(13_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
fn claim_payout() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1189`
|
|
// Estimated: `10489`
|
|
// Minimum execution time: 51_146 nanoseconds.
|
|
Weight::from_parts(51_570_000, 10489)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, 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 Ledger (r:1 w:1)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:2 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, 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 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: Balances Locks (r:1 w:1)
|
|
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, 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)
|
|
/// Storage: NominationPools SubPoolsStorage (r:1 w:1)
|
|
/// Proof: NominationPools SubPoolsStorage (max_values: None, max_size: Some(24382), added: 26857, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForSubPoolsStorage (r:1 w:1)
|
|
/// Proof: NominationPools CounterForSubPoolsStorage (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn unbond() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3858`
|
|
// Estimated: `67379`
|
|
// Minimum execution time: 141_400 nanoseconds.
|
|
Weight::from_parts(141_822_000, 67379)
|
|
.saturating_add(RocksDbWeight::get().reads(18_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(13_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:0)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, 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 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)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn pool_withdraw_unbonded(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1779`
|
|
// Estimated: `13025`
|
|
// Minimum execution time: 49_021 nanoseconds.
|
|
Weight::from_parts(49_954_282, 13025)
|
|
// Standard Error: 378
|
|
.saturating_add(Weight::from_ref_time(5_165).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, 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: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools SubPoolsStorage (r:1 w:1)
|
|
/// Proof: NominationPools SubPoolsStorage (max_values: None, max_size: Some(24382), added: 26857, 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 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: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools CounterForPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2303`
|
|
// Estimated: `45696`
|
|
// Minimum execution time: 92_473 nanoseconds.
|
|
Weight::from_parts(93_901_972, 45696)
|
|
// Standard Error: 618
|
|
.saturating_add(Weight::from_ref_time(12_032).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(9_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, 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: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools SubPoolsStorage (r:1 w:1)
|
|
/// Proof: NominationPools SubPoolsStorage (max_values: None, max_size: Some(24382), added: 26857, 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 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:0)
|
|
/// 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:0)
|
|
/// Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:2 w:2)
|
|
/// 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: NominationPools CounterForPoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools CounterForPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools ReversePoolIdLookup (r:1 w:1)
|
|
/// Proof: NominationPools ReversePoolIdLookup (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForReversePoolIdLookup (r:1 w:1)
|
|
/// Proof: NominationPools CounterForReversePoolIdLookup (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForRewardPools (r:1 w:1)
|
|
/// Proof: NominationPools CounterForRewardPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForSubPoolsStorage (r:1 w:1)
|
|
/// Proof: NominationPools CounterForSubPoolsStorage (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools Metadata (r:1 w:1)
|
|
/// Proof: NominationPools Metadata (max_values: None, max_size: Some(270), added: 2745, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForBondedPools (r:1 w:1)
|
|
/// Proof: NominationPools CounterForBondedPools (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)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2690`
|
|
// Estimated: `68812`
|
|
// Minimum execution time: 150_063 nanoseconds.
|
|
Weight::from_parts(152_321_387, 68812)
|
|
.saturating_add(RocksDbWeight::get().reads(20_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(17_u64))
|
|
}
|
|
/// Storage: NominationPools LastPoolId (r:1 w:1)
|
|
/// Proof: NominationPools LastPoolId (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: NominationPools MinCreateBond (r:1 w:0)
|
|
/// Proof: NominationPools MinCreateBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MinJoinBond (r:1 w:0)
|
|
/// Proof: NominationPools MinJoinBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPools (r:1 w:0)
|
|
/// Proof: NominationPools MaxPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForBondedPools (r:1 w:1)
|
|
/// Proof: NominationPools CounterForBondedPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools PoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembersPerPool (r:1 w:0)
|
|
/// Proof: NominationPools MaxPoolMembersPerPool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembers (r:1 w:0)
|
|
/// Proof: NominationPools MaxPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForPoolMembers (r:1 w:1)
|
|
/// Proof: NominationPools CounterForPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:2 w:2)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, 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 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: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForRewardPools (r:1 w:1)
|
|
/// Proof: NominationPools CounterForRewardPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools ReversePoolIdLookup (r:1 w:1)
|
|
/// Proof: NominationPools ReversePoolIdLookup (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForReversePoolIdLookup (r:1 w:1)
|
|
/// Proof: NominationPools CounterForReversePoolIdLookup (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: Staking Payee (r:0 w:1)
|
|
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
|
|
fn create() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1321`
|
|
// Estimated: `31522`
|
|
// Minimum execution time: 131_430 nanoseconds.
|
|
Weight::from_parts(132_214_000, 31522)
|
|
.saturating_add(RocksDbWeight::get().reads(21_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(15_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:0)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, 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 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: 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 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: `1909`
|
|
// Estimated: `21998 + n * (2520 ±0)`
|
|
// Minimum execution time: 61_798 nanoseconds.
|
|
Weight::from_parts(61_504_758, 21998)
|
|
// Standard Error: 4_046
|
|
.saturating_add(Weight::from_ref_time(1_159_175).saturating_mul(n.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(12_u64))
|
|
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
|
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
|
.saturating_add(Weight::from_proof_size(2520).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, 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 Ledger (r:1 w:0)
|
|
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
|
fn set_state() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1498`
|
|
// Estimated: `8752`
|
|
// Minimum execution time: 32_433 nanoseconds.
|
|
Weight::from_parts(32_894_000, 8752)
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:0)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools Metadata (r:1 w:1)
|
|
/// Proof: NominationPools Metadata (max_values: None, max_size: Some(270), added: 2745, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools CounterForMetadata (r:1 w:1)
|
|
/// Proof: NominationPools CounterForMetadata (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// The range of component `n` is `[1, 256]`.
|
|
fn set_metadata(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `559`
|
|
// Estimated: `5883`
|
|
// Minimum execution time: 13_608 nanoseconds.
|
|
Weight::from_parts(13_966_346, 5883)
|
|
// Standard Error: 44
|
|
.saturating_add(Weight::from_ref_time(1_511).saturating_mul(n.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: NominationPools MinJoinBond (r:0 w:1)
|
|
/// Proof: NominationPools MinJoinBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembers (r:0 w:1)
|
|
/// Proof: NominationPools MaxPoolMembers (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPoolMembersPerPool (r:0 w:1)
|
|
/// Proof: NominationPools MaxPoolMembersPerPool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MinCreateBond (r:0 w:1)
|
|
/// Proof: NominationPools MinCreateBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools MaxPools (r:0 w:1)
|
|
/// Proof: NominationPools MaxPools (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn set_configs() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 5_832 nanoseconds.
|
|
Weight::from_ref_time(6_117_000)
|
|
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, mode: MaxEncodedLen)
|
|
fn update_roles() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `559`
|
|
// Estimated: `2639`
|
|
// Minimum execution time: 18_160 nanoseconds.
|
|
Weight::from_parts(18_567_000, 2639)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:0)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(164), added: 2639, 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 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: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)
|
|
fn chill() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2136`
|
|
// Estimated: `20489`
|
|
// Minimum execution time: 58_991 nanoseconds.
|
|
Weight::from_parts(59_528_000, 20489)
|
|
.saturating_add(RocksDbWeight::get().reads(9_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
|
}
|
|
}
|