mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 17:17:56 +00:00
20d5e3584d
* + nomination pool commission * fmt * use register_update() * Update frame/nomination-pools/src/lib.rs Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> * Update frame/nomination-pools/src/lib.rs Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> * fmt * amend comments * + test for set_commission * fix * Update frame/nomination-pools/fuzzer/src/call.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * rm comment * use PalletError * some feedback item amendments * update weights * revert PalletError stuff * ".git/.scripts/commands/fmt/fmt.sh" * make pool_events_since_last_call more modular * fmt * fix call indexes + test * add payout teste * add event to max_commisson updating current * begin refactor * some debugging * update * more tests * rewardpol not working * commission refactor * pending rewards returns commission * fmt * add claim_commission call * + claim_commission * fix benchmarks * weight 0 for now * + claim_commission benchmark * fmt * apply commission to benchmarks * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools * ".git/.scripts/commands/fmt/fmt.sh" * clippy * + pending * add RewardPool.total_rewards_acounted * fixes * println * more logs * Fix plus cleanups * fix assert * tidy up * tests work + tidy up * rm unused * clippy fix * persist reward_pool update * claim_commission_works tests * . * some test formatting * add high level docs * add calls * docs * rename * rename * docs * rename * fmt * use matches! * Update frame/nomination-pools/src/lib.rs Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> * Update frame/nomination-pools/src/lib.rs Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> * Update frame/nomination-pools/src/tests.rs Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> * comment * Update frame/nomination-pools/src/lib.rs Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> * . * weights order * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools * use from_parts * comment * ".git/.scripts/commands/fmt/fmt.sh" * revert clippy suggestions on old migrations * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools * add InitialGlobalMaxCommission * fix migration * reward counter comments & explanations * format * add commission implementation note * fmt * revert InitialGlobalMaxCommission * global max commission migration generic * text * 100% commission no payout test * add commission_accumulates_on_multiple_rewards * non-zero fuzzer GlobalMaxCommission * add last_recorded_total_payouts_needs_commission * commission event fix + claim commission test --------- Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher <info@kchr.de>
1110 lines
67 KiB
Rust
1110 lines
67 KiB
Rust
// This file is part of Substrate.
|
|
|
|
// Copyright (C) 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-03-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `bm3`, 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
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/substrate/.git/.artifacts/bench.json
|
|
// --pallet=pallet_nomination_pools
|
|
// --chain=dev
|
|
// --header=./HEADER-APACHE2
|
|
// --output=./frame/nomination-pools/src/weights.rs
|
|
// --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_other() -> 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;
|
|
fn set_commission() -> Weight;
|
|
fn set_commission_max() -> Weight;
|
|
fn set_commission_change_rate() -> Weight;
|
|
fn set_claim_permission() -> Weight;
|
|
fn claim_commission() -> 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(220), added: 2695, 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(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, 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: `3650`
|
|
// Estimated: `52435`
|
|
// Minimum execution time: 160_401_000 picoseconds.
|
|
Weight::from_parts(161_798_000, 52435)
|
|
.saturating_add(T::DbWeight::get().reads(18_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(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, 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: `3692`
|
|
// Estimated: `49070`
|
|
// Minimum execution time: 157_668_000 picoseconds.
|
|
Weight::from_parts(161_129_000, 49070)
|
|
.saturating_add(T::DbWeight::get().reads(15_u64))
|
|
.saturating_add(T::DbWeight::get().writes(12_u64))
|
|
}
|
|
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
|
|
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, 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(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, 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_other() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3757`
|
|
// Estimated: `52576`
|
|
// Minimum execution time: 176_034_000 picoseconds.
|
|
Weight::from_parts(176_956_000, 52576)
|
|
.saturating_add(T::DbWeight::get().reads(16_u64))
|
|
.saturating_add(T::DbWeight::get().writes(13_u64))
|
|
}
|
|
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
|
|
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, 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(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
fn claim_payout() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1331`
|
|
// Estimated: `19532`
|
|
// Minimum execution time: 61_551_000 picoseconds.
|
|
Weight::from_parts(62_201_000, 19532)
|
|
.saturating_add(T::DbWeight::get().reads(6_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(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, 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 GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, 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: `3935`
|
|
// Estimated: `82816`
|
|
// Minimum execution time: 162_755_000 picoseconds.
|
|
Weight::from_parts(163_518_000, 82816)
|
|
.saturating_add(T::DbWeight::get().reads(19_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(220), added: 2695, 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: `1783`
|
|
// Estimated: `18031`
|
|
// Minimum execution time: 54_752_000 picoseconds.
|
|
Weight::from_parts(56_248_171, 18031)
|
|
// Standard Error: 1_891
|
|
.saturating_add(Weight::from_parts(4_767, 0).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(220), added: 2695, 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)
|
|
/// Storage: NominationPools ClaimPermissions (r:0 w:1)
|
|
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2307`
|
|
// Estimated: `54662`
|
|
// Minimum execution time: 106_166_000 picoseconds.
|
|
Weight::from_parts(107_806_373, 54662)
|
|
// Standard Error: 6_985
|
|
.saturating_add(Weight::from_parts(18_449, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(9_u64))
|
|
.saturating_add(T::DbWeight::get().writes(8_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(220), added: 2695, 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(92), added: 2567, 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)
|
|
/// Storage: NominationPools ClaimPermissions (r:0 w:1)
|
|
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_kill(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2694`
|
|
// Estimated: `87714`
|
|
// Minimum execution time: 170_047_000 picoseconds.
|
|
Weight::from_parts(172_125_770, 87714)
|
|
// Standard Error: 2_599
|
|
.saturating_add(Weight::from_parts(9_964, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(20_u64))
|
|
.saturating_add(T::DbWeight::get().writes(18_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(92), added: 2567, 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(220), added: 2695, 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: `51410`
|
|
// Minimum execution time: 149_672_000 picoseconds.
|
|
Weight::from_parts(153_613_000, 51410)
|
|
.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(220), added: 2695, 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: `1913`
|
|
// Estimated: `33934 + n * (2520 ±0)`
|
|
// Minimum execution time: 68_892_000 picoseconds.
|
|
Weight::from_parts(69_062_946, 33934)
|
|
// Standard Error: 6_448
|
|
.saturating_add(Weight::from_parts(1_422_774, 0).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_parts(0, 2520).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, 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: `1502`
|
|
// Estimated: `11778`
|
|
// Minimum execution time: 36_447_000 picoseconds.
|
|
Weight::from_parts(36_837_000, 11778)
|
|
.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(220), added: 2695, 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: `563`
|
|
// Estimated: `8909`
|
|
// Minimum execution time: 15_221_000 picoseconds.
|
|
Weight::from_parts(15_632_286, 8909)
|
|
// Standard Error: 343
|
|
.saturating_add(Weight::from_parts(2_299, 0).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 GlobalMaxCommission (r:0 w:1)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, 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: 7_409_000 picoseconds.
|
|
Weight::from_parts(7_702_000, 0)
|
|
.saturating_add(T::DbWeight::get().writes(6_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
|
|
fn update_roles() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `563`
|
|
// Estimated: `3685`
|
|
// Minimum execution time: 20_451_000 picoseconds.
|
|
Weight::from_parts(20_703_000, 3685)
|
|
.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(220), added: 2695, 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: `2140`
|
|
// Estimated: `29455`
|
|
// Minimum execution time: 66_001_000 picoseconds.
|
|
Weight::from_parts(66_894_000, 29455)
|
|
.saturating_add(T::DbWeight::get().reads(9_u64))
|
|
.saturating_add(T::DbWeight::get().writes(5_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:0)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
fn set_commission() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `866`
|
|
// Estimated: `12324`
|
|
// Minimum execution time: 34_011_000 picoseconds.
|
|
Weight::from_parts(34_521_000, 12324)
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
|
|
fn set_commission_max() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `603`
|
|
// Estimated: `3685`
|
|
// Minimum execution time: 19_524_000 picoseconds.
|
|
Weight::from_parts(19_855_000, 3685)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
|
|
fn set_commission_change_rate() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `563`
|
|
// Estimated: `3685`
|
|
// Minimum execution time: 20_457_000 picoseconds.
|
|
Weight::from_parts(20_698_000, 3685)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:0)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools ClaimPermissions (r:1 w:1)
|
|
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
|
|
fn set_claim_permission() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `542`
|
|
// Estimated: `7208`
|
|
// Minimum execution time: 15_183_000 picoseconds.
|
|
Weight::from_parts(15_597_000, 7208)
|
|
.saturating_add(T::DbWeight::get().reads(2_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(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
fn claim_commission() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1096`
|
|
// Estimated: `12324`
|
|
// Minimum execution time: 48_957_000 picoseconds.
|
|
Weight::from_parts(50_207_000, 12324)
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_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(220), added: 2695, 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(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, 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: `3650`
|
|
// Estimated: `52435`
|
|
// Minimum execution time: 160_401_000 picoseconds.
|
|
Weight::from_parts(161_798_000, 52435)
|
|
.saturating_add(RocksDbWeight::get().reads(18_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(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, 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: `3692`
|
|
// Estimated: `49070`
|
|
// Minimum execution time: 157_668_000 picoseconds.
|
|
Weight::from_parts(161_129_000, 49070)
|
|
.saturating_add(RocksDbWeight::get().reads(15_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(12_u64))
|
|
}
|
|
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
|
|
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, 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(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, 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_other() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3757`
|
|
// Estimated: `52576`
|
|
// Minimum execution time: 176_034_000 picoseconds.
|
|
Weight::from_parts(176_956_000, 52576)
|
|
.saturating_add(RocksDbWeight::get().reads(16_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(13_u64))
|
|
}
|
|
/// Storage: NominationPools ClaimPermissions (r:1 w:0)
|
|
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, 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(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
fn claim_payout() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1331`
|
|
// Estimated: `19532`
|
|
// Minimum execution time: 61_551_000 picoseconds.
|
|
Weight::from_parts(62_201_000, 19532)
|
|
.saturating_add(RocksDbWeight::get().reads(6_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(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, 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 GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, 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: `3935`
|
|
// Estimated: `82816`
|
|
// Minimum execution time: 162_755_000 picoseconds.
|
|
Weight::from_parts(163_518_000, 82816)
|
|
.saturating_add(RocksDbWeight::get().reads(19_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(13_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:0)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, 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: `1783`
|
|
// Estimated: `18031`
|
|
// Minimum execution time: 54_752_000 picoseconds.
|
|
Weight::from_parts(56_248_171, 18031)
|
|
// Standard Error: 1_891
|
|
.saturating_add(Weight::from_parts(4_767, 0).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(220), added: 2695, 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)
|
|
/// Storage: NominationPools ClaimPermissions (r:0 w:1)
|
|
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2307`
|
|
// Estimated: `54662`
|
|
// Minimum execution time: 106_166_000 picoseconds.
|
|
Weight::from_parts(107_806_373, 54662)
|
|
// Standard Error: 6_985
|
|
.saturating_add(Weight::from_parts(18_449, 0).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(9_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(8_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(220), added: 2695, 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(92), added: 2567, 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)
|
|
/// Storage: NominationPools ClaimPermissions (r:0 w:1)
|
|
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn withdraw_unbonded_kill(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `2694`
|
|
// Estimated: `87714`
|
|
// Minimum execution time: 170_047_000 picoseconds.
|
|
Weight::from_parts(172_125_770, 87714)
|
|
// Standard Error: 2_599
|
|
.saturating_add(Weight::from_parts(9_964, 0).saturating_mul(s.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(20_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(18_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(92), added: 2567, 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(220), added: 2695, 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: `51410`
|
|
// Minimum execution time: 149_672_000 picoseconds.
|
|
Weight::from_parts(153_613_000, 51410)
|
|
.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(220), added: 2695, 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: `1913`
|
|
// Estimated: `33934 + n * (2520 ±0)`
|
|
// Minimum execution time: 68_892_000 picoseconds.
|
|
Weight::from_parts(69_062_946, 33934)
|
|
// Standard Error: 6_448
|
|
.saturating_add(Weight::from_parts(1_422_774, 0).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_parts(0, 2520).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, 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: `1502`
|
|
// Estimated: `11778`
|
|
// Minimum execution time: 36_447_000 picoseconds.
|
|
Weight::from_parts(36_837_000, 11778)
|
|
.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(220), added: 2695, 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: `563`
|
|
// Estimated: `8909`
|
|
// Minimum execution time: 15_221_000 picoseconds.
|
|
Weight::from_parts(15_632_286, 8909)
|
|
// Standard Error: 343
|
|
.saturating_add(Weight::from_parts(2_299, 0).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 GlobalMaxCommission (r:0 w:1)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, 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: 7_409_000 picoseconds.
|
|
Weight::from_parts(7_702_000, 0)
|
|
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
|
|
fn update_roles() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `563`
|
|
// Estimated: `3685`
|
|
// Minimum execution time: 20_451_000 picoseconds.
|
|
Weight::from_parts(20_703_000, 3685)
|
|
.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(220), added: 2695, 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: `2140`
|
|
// Estimated: `29455`
|
|
// Minimum execution time: 66_001_000 picoseconds.
|
|
Weight::from_parts(66_894_000, 29455)
|
|
.saturating_add(RocksDbWeight::get().reads(9_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:0)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
fn set_commission() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `866`
|
|
// Estimated: `12324`
|
|
// Minimum execution time: 34_011_000 picoseconds.
|
|
Weight::from_parts(34_521_000, 12324)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
|
|
fn set_commission_max() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `603`
|
|
// Estimated: `3685`
|
|
// Minimum execution time: 19_524_000 picoseconds.
|
|
Weight::from_parts(19_855_000, 3685)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:1)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
|
|
fn set_commission_change_rate() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `563`
|
|
// Estimated: `3685`
|
|
// Minimum execution time: 20_457_000 picoseconds.
|
|
Weight::from_parts(20_698_000, 3685)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: NominationPools PoolMembers (r:1 w:0)
|
|
/// Proof: NominationPools PoolMembers (max_values: None, max_size: Some(237), added: 2712, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools ClaimPermissions (r:1 w:1)
|
|
/// Proof: NominationPools ClaimPermissions (max_values: None, max_size: Some(41), added: 2516, mode: MaxEncodedLen)
|
|
fn set_claim_permission() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `542`
|
|
// Estimated: `7208`
|
|
// Minimum execution time: 15_183_000 picoseconds.
|
|
Weight::from_parts(15_597_000, 7208)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: NominationPools BondedPools (r:1 w:0)
|
|
/// Proof: NominationPools BondedPools (max_values: None, max_size: Some(220), added: 2695, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools RewardPools (r:1 w:1)
|
|
/// Proof: NominationPools RewardPools (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
|
/// Storage: NominationPools GlobalMaxCommission (r:1 w:0)
|
|
/// Proof: NominationPools GlobalMaxCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
fn claim_commission() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1096`
|
|
// Estimated: `12324`
|
|
// Minimum execution time: 48_957_000 picoseconds.
|
|
Weight::from_parts(50_207_000, 12324)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
}
|