// This file is part of Substrate.

// Copyright (C) 2021 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_staking
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-08-21, STEPS: `100`, REPEAT: 5, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 512
//! HOSTNAME: `ubuntu-8gb-nbg1-1-bench2`, CPU: `AMD EPYC-Milan Processor`

// Executed Command:
// ./polymesh
// benchmark
// pallet
// -s
// 100
// -r
// 5
// -p=*
// -e=*
// --heap-pages
// 4096
// --db-cache
// 512
// --execution
// wasm
// --wasm-execution
// compiled
// --output
// ./Polymesh/pallets/weights/src/
// --template
// ./Polymesh/.maintain/frame-weight-template.hbs

#![allow(unused_parens)]
#![allow(unused_imports)]

use polymesh_runtime_common::{RocksDbWeight as DbWeight, Weight};

/// Weights for pallet_staking using the Substrate node and recommended hardware.
pub struct SubstrateWeight;
impl pallet_staking::WeightInfo for SubstrateWeight {
    // Storage: Staking Bonded (r:1 w:1)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking Ledger (r:2 w: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: Identity KeyRecords (r:1 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    // Storage: Balances Locks (r:1 w:1)
    // Proof Skipped: Balances Locks (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Payee (r:0 w:1)
    // Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
    fn bond() -> Weight {
        // Minimum execution time: 63_796 nanoseconds.
        Weight::from_ref_time(64_067_000)
            .saturating_add(DbWeight::get().reads(6))
            .saturating_add(DbWeight::get().writes(4))
    }
    // Storage: Staking Bonded (r:1 w:0)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking Ledger (r:1 w:1)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Balances Locks (r:1 w:1)
    // Proof Skipped: Balances Locks (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Nominators (r:1 w:0)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
    // Storage: Staking Validators (r:1 w:0)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Identity KeyRecords (r:1 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    fn bond_extra() -> Weight {
        // Minimum execution time: 63_345 nanoseconds.
        Weight::from_ref_time(67_862_000)
            .saturating_add(DbWeight::get().reads(6))
            .saturating_add(DbWeight::get().writes(2))
    }
    // Storage: Staking Ledger (r:1 w:1)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking Nominators (r:1 w:0)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, 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 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 Skipped: Balances Locks (max_values: None, max_size: None, mode: Measured)
    // Storage: System Account (r:1 w:1)
    // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
    // Storage: Identity KeyRecords (r:1 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    // Storage: Identity IsDidFrozen (r:1 w:0)
    // Proof Skipped: Identity IsDidFrozen (max_values: None, max_size: None, mode: Measured)
    fn unbond() -> Weight {
        // Minimum execution time: 66_020 nanoseconds.
        Weight::from_ref_time(67_903_000)
            .saturating_add(DbWeight::get().reads(8))
            .saturating_add(DbWeight::get().writes(3))
    }
    // 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 Skipped: Balances Locks (max_values: None, max_size: None, mode: Measured)
    // Storage: System Account (r:1 w:1)
    // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
    /// The range of component `s` is `[0, 100]`.
    fn withdraw_unbonded_update(s: u32) -> Weight {
        // Minimum execution time: 41_253 nanoseconds.
        Weight::from_ref_time(44_870_564)
            // Standard Error: 5_046
            .saturating_add(Weight::from_ref_time(23_411).saturating_mul(s.into()))
            .saturating_add(DbWeight::get().reads(4))
            .saturating_add(DbWeight::get().writes(3))
    }
    // Storage: Staking Ledger (r:1 w:1)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking CurrentEra (r:1 w:0)
    // Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking Bonded (r:1 w:1)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking SlashingSpans (r:1 w:1)
    // Proof Skipped: Staking SlashingSpans (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Validators (r:1 w:0)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Staking Nominators (r:1 w:0)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
    // Storage: System Account (r:1 w:1)
    // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
    // Storage: Balances Locks (r:1 w:1)
    // Proof Skipped: Balances Locks (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Payee (r:0 w:1)
    // Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
    // Storage: Staking SpanSlash (r:0 w:99)
    // Proof: Staking SpanSlash (max_values: None, max_size: Some(76), added: 2551, mode: MaxEncodedLen)
    /// The range of component `s` is `[0, 100]`.
    fn withdraw_unbonded_kill(s: u32) -> Weight {
        // Minimum execution time: 69_344 nanoseconds.
        Weight::from_ref_time(72_240_757)
            // Standard Error: 11_888
            .saturating_add(Weight::from_ref_time(1_774_231).saturating_mul(s.into()))
            .saturating_add(DbWeight::get().reads(8))
            .saturating_add(DbWeight::get().writes(6))
            .saturating_add(DbWeight::get().writes((1_u64).saturating_mul(s.into())))
    }
    // Storage: Staking Ledger (r:1 w:0)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking MinValidatorBond (r:1 w:0)
    // Proof: Staking MinValidatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
    // Storage: Staking MinCommission (r:1 w:0)
    // Proof: Staking MinCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking ValidatorCommissionCap (r:1 w:0)
    // Proof: Staking ValidatorCommissionCap (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Identity KeyRecords (r:1 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking PermissionedIdentity (r:1 w:1)
    // Proof Skipped: Staking PermissionedIdentity (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Validators (r:1 w:1)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Staking MaxValidatorsCount (r:1 w:0)
    // Proof: Staking MaxValidatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Identity AccountKeyRefCount (r:1 w:1)
    // Proof Skipped: Identity AccountKeyRefCount (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Nominators (r:1 w:0)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
    // Storage: Staking Bonded (r:1 w:0)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking CounterForValidators (r:1 w:1)
    // Proof: Staking CounterForValidators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    fn validate() -> Weight {
        // Minimum execution time: 71_578 nanoseconds.
        Weight::from_ref_time(72_260_000)
            .saturating_add(DbWeight::get().reads(12))
            .saturating_add(DbWeight::get().writes(4))
    }
    // Storage: Staking Ledger (r:1 w:0)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking Nominators (r:128 w:128)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
    /// The range of component `k` is `[1, 128]`.
    fn kick(k: u32) -> Weight {
        // Minimum execution time: 35_764 nanoseconds.
        Weight::from_ref_time(30_553_902)
            // Standard Error: 18_944
            .saturating_add(Weight::from_ref_time(9_517_782).saturating_mul(k.into()))
            .saturating_add(DbWeight::get().reads(1))
            .saturating_add(DbWeight::get().reads((1_u64).saturating_mul(k.into())))
            .saturating_add(DbWeight::get().writes((1_u64).saturating_mul(k.into())))
    }
    // Storage: Staking Ledger (r:1 w:0)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking MinNominatorBond (r:1 w:0)
    // Proof: Staking MinNominatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
    // Storage: Staking Nominators (r:1 w:1)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
    // Storage: Staking MaxNominatorsCount (r:1 w:0)
    // Proof: Staking MaxNominatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking Validators (r:17 w:0)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Identity KeyRecords (r:1 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    // Storage: Timestamp Now (r:1 w:0)
    // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
    // Storage: Instance2Group ActiveMembers (r:1 w:0)
    // Proof Skipped: Instance2Group ActiveMembers (max_values: Some(1), max_size: None, mode: Measured)
    // Storage: Identity Claims (r:2 w:0)
    // Proof Skipped: Identity Claims (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking CurrentEra (r:1 w:0)
    // Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking Bonded (r:1 w:0)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, 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 {
        // Minimum execution time: 89_996 nanoseconds.
        Weight::from_ref_time(89_989_638)
            // Standard Error: 64_479
            .saturating_add(Weight::from_ref_time(5_029_983).saturating_mul(n.into()))
            .saturating_add(DbWeight::get().reads(13))
            .saturating_add(DbWeight::get().reads((1_u64).saturating_mul(n.into())))
            .saturating_add(DbWeight::get().writes(2))
    }
    // 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:1)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Identity KeyRecords (r:1 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking PermissionedIdentity (r:1 w:1)
    // Proof Skipped: Staking PermissionedIdentity (max_values: None, max_size: None, mode: Measured)
    // Storage: Identity AccountKeyRefCount (r:1 w:1)
    // Proof Skipped: Identity AccountKeyRefCount (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking CounterForValidators (r:1 w:1)
    // Proof: Staking CounterForValidators (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)
    fn chill() -> Weight {
        // Minimum execution time: 61_193 nanoseconds.
        Weight::from_ref_time(62_215_000)
            .saturating_add(DbWeight::get().reads(7))
            .saturating_add(DbWeight::get().writes(4))
    }
    // Storage: Staking Ledger (r:1 w:0)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking Payee (r:0 w:1)
    // Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
    fn set_payee() -> Weight {
        // Minimum execution time: 18_860 nanoseconds.
        Weight::from_ref_time(20_512_000)
            .saturating_add(DbWeight::get().reads(1))
            .saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking Bonded (r:1 w:1)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking Ledger (r:3 w:2)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    fn set_controller() -> Weight {
        // Minimum execution time: 29_805 nanoseconds.
        Weight::from_ref_time(31_076_000)
            .saturating_add(DbWeight::get().reads(4))
            .saturating_add(DbWeight::get().writes(3))
    }
    // Storage: Staking ValidatorCount (r:0 w:1)
    // Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    fn set_validator_count() -> Weight {
        // Minimum execution time: 3_576 nanoseconds.
        Weight::from_ref_time(4_166_000).saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking ForceEra (r:0 w:1)
    // Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
    fn force_no_eras() -> Weight {
        // Minimum execution time: 13_069 nanoseconds.
        Weight::from_ref_time(16_275_000).saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking ForceEra (r:0 w:1)
    // Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
    fn force_new_era() -> Weight {
        // Minimum execution time: 13_601 nanoseconds.
        Weight::from_ref_time(17_987_000).saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking ForceEra (r:0 w:1)
    // Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
    fn force_new_era_always() -> Weight {
        // Minimum execution time: 11_949 nanoseconds.
        Weight::from_ref_time(14_802_000).saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking Invulnerables (r:0 w:1)
    // Proof Skipped: Staking Invulnerables (max_values: Some(1), max_size: None, mode: Measured)
    /// The range of component `v` is `[0, 100]`.
    fn set_invulnerables(v: u32) -> Weight {
        // Minimum execution time: 3_515 nanoseconds.
        Weight::from_ref_time(4_932_700)
            // Standard Error: 2_527
            .saturating_add(Weight::from_ref_time(10_993).saturating_mul(v.into()))
            .saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking Bonded (r:1 w:1)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking SlashingSpans (r:1 w:1)
    // Proof Skipped: Staking SlashingSpans (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Validators (r:1 w:1)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Staking CounterForValidators (r:1 w:1)
    // Proof: Staking CounterForValidators (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: System Account (r:1 w:1)
    // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
    // Storage: Balances Locks (r:1 w:1)
    // Proof Skipped: Balances Locks (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Ledger (r:0 w:1)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking Payee (r:0 w:1)
    // Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
    // Storage: Staking SpanSlash (r:0 w:99)
    // Proof: Staking SpanSlash (max_values: None, max_size: Some(76), added: 2551, mode: MaxEncodedLen)
    /// The range of component `s` is `[0, 100]`.
    fn force_unstake(s: u32) -> Weight {
        // Minimum execution time: 57_456 nanoseconds.
        Weight::from_ref_time(68_741_110)
            // Standard Error: 12_574
            .saturating_add(Weight::from_ref_time(1_675_401).saturating_mul(s.into()))
            .saturating_add(DbWeight::get().reads(7))
            .saturating_add(DbWeight::get().writes(8))
            .saturating_add(DbWeight::get().writes((1_u64).saturating_mul(s.into())))
    }
    // Storage: Staking UnappliedSlashes (r:1 w:1)
    // Proof Skipped: Staking UnappliedSlashes (max_values: None, max_size: None, mode: Measured)
    /// The range of component `s` is `[1, 1000]`.
    fn cancel_deferred_slash(s: u32) -> Weight {
        // Minimum execution time: 114_704 nanoseconds.
        Weight::from_ref_time(797_194_575)
            // Standard Error: 61_369
            .saturating_add(Weight::from_ref_time(4_009_613).saturating_mul(s.into()))
            .saturating_add(DbWeight::get().reads(1))
            .saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking CurrentEra (r:1 w:0)
    // Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking ErasValidatorReward (r:1 w:0)
    // Proof: Staking ErasValidatorReward (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
    // Storage: Staking Bonded (r:2049 w:0)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking Ledger (r:1 w:1)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking ErasStakersClipped (r:1 w:0)
    // Proof Skipped: Staking ErasStakersClipped (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking ErasRewardPoints (r:1 w:0)
    // Proof Skipped: Staking ErasRewardPoints (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking ErasValidatorPrefs (r:1 w:0)
    // Proof: Staking ErasValidatorPrefs (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
    // Storage: Staking Payee (r:2049 w:0)
    // Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
    // Storage: System Account (r:2050 w:2050)
    // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
    // Storage: Identity KeyRecords (r:4098 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    // Storage: Identity IsDidFrozen (r:2048 w:0)
    // Proof Skipped: Identity IsDidFrozen (max_values: None, max_size: None, mode: Measured)
    /// The range of component `n` is `[0, 2048]`.
    fn payout_stakers_dead_controller(n: u32) -> Weight {
        // Minimum execution time: 204_790 nanoseconds.
        Weight::from_ref_time(1_035_902_993)
            // Standard Error: 71_151
            .saturating_add(Weight::from_ref_time(46_851_644).saturating_mul(n.into()))
            .saturating_add(DbWeight::get().reads(12))
            .saturating_add(DbWeight::get().reads((6_u64).saturating_mul(n.into())))
            .saturating_add(DbWeight::get().writes(3))
            .saturating_add(DbWeight::get().writes((1_u64).saturating_mul(n.into())))
    }
    // Storage: Staking CurrentEra (r:1 w:0)
    // Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking ErasValidatorReward (r:1 w:0)
    // Proof: Staking ErasValidatorReward (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
    // Storage: Staking Bonded (r:2049 w:0)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking Ledger (r:2049 w:2049)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking ErasStakersClipped (r:1 w:0)
    // Proof Skipped: Staking ErasStakersClipped (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking ErasRewardPoints (r:1 w:0)
    // Proof Skipped: Staking ErasRewardPoints (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking ErasValidatorPrefs (r:1 w:0)
    // Proof: Staking ErasValidatorPrefs (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
    // Storage: Staking Payee (r:2049 w:0)
    // Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
    // Storage: System Account (r:2050 w:2050)
    // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
    // Storage: Balances Locks (r:2049 w:2049)
    // Proof Skipped: Balances Locks (max_values: None, max_size: None, mode: Measured)
    // Storage: Identity KeyRecords (r:2050 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    /// The range of component `n` is `[0, 2048]`.
    fn payout_stakers_alive_staked(n: u32) -> Weight {
        // Minimum execution time: 247_764 nanoseconds.
        Weight::from_ref_time(731_465_304)
            // Standard Error: 66_775
            .saturating_add(Weight::from_ref_time(55_914_936).saturating_mul(n.into()))
            .saturating_add(DbWeight::get().reads(13))
            .saturating_add(DbWeight::get().reads((6_u64).saturating_mul(n.into())))
            .saturating_add(DbWeight::get().writes(4))
            .saturating_add(DbWeight::get().writes((3_u64).saturating_mul(n.into())))
    }
    // Storage: Staking Ledger (r:1 w:1)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Balances Locks (r:1 w:1)
    // Proof Skipped: Balances Locks (max_values: None, max_size: None, mode: Measured)
    // Storage: System Account (r:1 w:1)
    // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, 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 Validators (r:1 w:0)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    /// The range of component `l` is `[1, 32]`.
    fn rebond(l: u32) -> Weight {
        // Minimum execution time: 46_812 nanoseconds.
        Weight::from_ref_time(52_298_234)
            // Standard Error: 22_411
            .saturating_add(Weight::from_ref_time(46_048).saturating_mul(l.into()))
            .saturating_add(DbWeight::get().reads(5))
            .saturating_add(DbWeight::get().writes(3))
    }
    // Storage: System Account (r:1 w:1)
    // 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 SlashingSpans (r:1 w:1)
    // Proof Skipped: Staking SlashingSpans (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Validators (r:1 w:1)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Staking CounterForValidators (r:1 w:1)
    // Proof: Staking CounterForValidators (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: Balances Locks (r:1 w:1)
    // Proof Skipped: Balances Locks (max_values: None, max_size: None, mode: Measured)
    // Storage: Identity KeyRecords (r:1 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Ledger (r:0 w:1)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking Payee (r:0 w:1)
    // Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
    // Storage: Staking SpanSlash (r:0 w:100)
    // Proof: Staking SpanSlash (max_values: None, max_size: Some(76), added: 2551, mode: MaxEncodedLen)
    /// The range of component `s` is `[1, 100]`.
    fn reap_stash(s: u32) -> Weight {
        // Minimum execution time: 86_381 nanoseconds.
        Weight::from_ref_time(90_432_396)
            // Standard Error: 17_317
            .saturating_add(Weight::from_ref_time(1_719_343).saturating_mul(s.into()))
            .saturating_add(DbWeight::get().reads(8))
            .saturating_add(DbWeight::get().writes(8))
            .saturating_add(DbWeight::get().writes((1_u64).saturating_mul(s.into())))
    }
    // Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
    // Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
    // Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
    // Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
    // Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
    // Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
    // Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
    // Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
    // Storage: System BlockWeight (r:1 w:1)
    // Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
    // Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:0)
    // Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
    // Storage: Staking CounterForNominators (r:1 w:0)
    // Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking CounterForValidators (r:1 w:0)
    // Proof: Staking CounterForValidators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking Validators (r:11 w:0)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Staking Nominators (r:110 w:0)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
    // Storage: Staking Bonded (r:109 w:0)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking Ledger (r:109 w:0)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking ValidatorCount (r:1 w:0)
    // Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: ElectionProviderMultiPhase Round (r:1 w:1)
    // Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
    // Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
    // Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
    // Storage: Staking MinimumValidatorCount (r:1 w:0)
    // Proof: Staking MinimumValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking CurrentEra (r:1 w:1)
    // Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking ErasStakersClipped (r:0 w:10)
    // Proof Skipped: Staking ErasStakersClipped (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking ErasValidatorPrefs (r:0 w:10)
    // Proof: Staking ErasValidatorPrefs (max_values: None, max_size: Some(57), added: 2532, mode: MaxEncodedLen)
    // Storage: Staking ErasStakers (r:0 w:10)
    // Proof Skipped: Staking ErasStakers (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking ErasTotalStake (r:0 w:1)
    // Proof: Staking ErasTotalStake (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
    // Storage: Staking ErasStartSessionIndex (r:0 w:1)
    // Proof: Staking ErasStartSessionIndex (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
    // Storage: Staking MinimumActiveStake (r:0 w:1)
    // Proof: Staking MinimumActiveStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
    // Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
    // Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
    // Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
    // Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
    /// The range of component `v` is `[1, 10]`.
    /// The range of component `n` is `[0, 100]`.
    fn new_era(v: u32, n: u32) -> Weight {
        // Minimum execution time: 469_410 nanoseconds.
        Weight::from_ref_time(472_936_000)
            // Standard Error: 2_195_868
            .saturating_add(Weight::from_ref_time(50_171_060).saturating_mul(v.into()))
            // Standard Error: 226_488
            .saturating_add(Weight::from_ref_time(19_090_362).saturating_mul(n.into()))
            .saturating_add(DbWeight::get().reads(15))
            .saturating_add(DbWeight::get().reads((4_u64).saturating_mul(v.into())))
            .saturating_add(DbWeight::get().reads((3_u64).saturating_mul(n.into())))
            .saturating_add(DbWeight::get().writes(12))
            .saturating_add(DbWeight::get().writes((3_u64).saturating_mul(v.into())))
    }
    // Storage: Staking CounterForNominators (r:1 w:0)
    // Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking CounterForValidators (r:1 w:0)
    // Proof: Staking CounterForValidators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking Validators (r:101 w:0)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Staking Nominators (r:201 w:0)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
    // Storage: Staking Bonded (r:200 w:0)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking Ledger (r:200 w:0)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: System BlockWeight (r:1 w:1)
    // Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
    // Storage: Staking MinimumActiveStake (r:0 w:1)
    // Proof: Staking MinimumActiveStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
    /// The range of component `v` is `[50, 100]`.
    /// The range of component `n` is `[50, 100]`.
    fn get_npos_voters(v: u32, n: u32) -> Weight {
        // Minimum execution time: 2_515_276 nanoseconds.
        Weight::from_ref_time(2_555_206_000)
            // Standard Error: 310_987
            .saturating_add(Weight::from_ref_time(3_035_415).saturating_mul(v.into()))
            // Standard Error: 310_987
            .saturating_add(Weight::from_ref_time(2_398_985).saturating_mul(n.into()))
            .saturating_add(DbWeight::get().reads(5))
            .saturating_add(DbWeight::get().reads((4_u64).saturating_mul(v.into())))
            .saturating_add(DbWeight::get().reads((3_u64).saturating_mul(n.into())))
            .saturating_add(DbWeight::get().writes(2))
    }
    // Storage: Staking CounterForValidators (r:1 w:0)
    // Proof: Staking CounterForValidators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking Validators (r:101 w:0)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: System BlockWeight (r:1 w:1)
    // Proof: System BlockWeight (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
    /// The range of component `v` is `[50, 100]`.
    fn get_npos_targets(v: u32) -> Weight {
        // Minimum execution time: 334_306 nanoseconds.
        Weight::from_ref_time(70_798_550)
            // Standard Error: 38_610
            .saturating_add(Weight::from_ref_time(5_546_131).saturating_mul(v.into()))
            .saturating_add(DbWeight::get().reads(3))
            .saturating_add(DbWeight::get().reads((1_u64).saturating_mul(v.into())))
            .saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking MinCommission (r:0 w:1)
    // Proof: Staking MinCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking MinValidatorBond (r:0 w:1)
    // Proof: Staking MinValidatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
    // Storage: Staking MaxValidatorsCount (r:0 w:1)
    // Proof: Staking MaxValidatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking ChillThreshold (r:0 w:1)
    // Proof: Staking ChillThreshold (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
    // Storage: Staking MaxNominatorsCount (r:0 w:1)
    // Proof: Staking MaxNominatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking MinNominatorBond (r:0 w:1)
    // Proof: Staking MinNominatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
    fn set_staking_configs_all_set() -> Weight {
        // Minimum execution time: 7_882 nanoseconds.
        Weight::from_ref_time(9_094_000).saturating_add(DbWeight::get().writes(6))
    }
    // Storage: Staking MinCommission (r:0 w:1)
    // Proof: Staking MinCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking MinValidatorBond (r:0 w:1)
    // Proof: Staking MinValidatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
    // Storage: Staking MaxValidatorsCount (r:0 w:1)
    // Proof: Staking MaxValidatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking ChillThreshold (r:0 w:1)
    // Proof: Staking ChillThreshold (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
    // Storage: Staking MaxNominatorsCount (r:0 w:1)
    // Proof: Staking MaxNominatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking MinNominatorBond (r:0 w:1)
    // Proof: Staking MinNominatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
    fn set_staking_configs_all_remove() -> Weight {
        // Minimum execution time: 7_371 nanoseconds.
        Weight::from_ref_time(7_872_000).saturating_add(DbWeight::get().writes(6))
    }
    // Storage: Staking Ledger (r:1 w:0)
    // Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
    // Storage: Staking Nominators (r:1 w:0)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
    // Storage: Staking ChillThreshold (r:1 w:0)
    // Proof: Staking ChillThreshold (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
    // Storage: Staking Validators (r:1 w:1)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Staking MaxValidatorsCount (r:1 w:0)
    // Proof: Staking MaxValidatorsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking CounterForValidators (r:1 w:1)
    // Proof: Staking CounterForValidators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking MinValidatorBond (r:1 w:0)
    // Proof: Staking MinValidatorBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
    // Storage: Identity KeyRecords (r:1 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking PermissionedIdentity (r:1 w:1)
    // Proof Skipped: Staking PermissionedIdentity (max_values: None, max_size: None, mode: Measured)
    // Storage: Identity AccountKeyRefCount (r:1 w:1)
    // Proof Skipped: Identity AccountKeyRefCount (max_values: None, max_size: None, mode: Measured)
    fn chill_other() -> Weight {
        // Minimum execution time: 78_088 nanoseconds.
        Weight::from_ref_time(78_879_000)
            .saturating_add(DbWeight::get().reads(10))
            .saturating_add(DbWeight::get().writes(4))
    }
    // Storage: Staking MinCommission (r:1 w:0)
    // Proof: Staking MinCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking Validators (r:1 w:1)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    fn force_apply_min_commission() -> Weight {
        // Minimum execution time: 17_807 nanoseconds.
        Weight::from_ref_time(18_448_000)
            .saturating_add(DbWeight::get().reads(2))
            .saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking MinCommission (r:0 w:1)
    // Proof: Staking MinCommission (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    fn set_min_commission() -> Weight {
        // Minimum execution time: 3_335 nanoseconds.
        Weight::from_ref_time(4_517_000).saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking PermissionedIdentity (r:1 w:1)
    // Proof Skipped: Staking PermissionedIdentity (max_values: None, max_size: None, mode: Measured)
    // Storage: Timestamp Now (r:1 w:0)
    // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
    // Storage: Instance2Group ActiveMembers (r:1 w:0)
    // Proof Skipped: Instance2Group ActiveMembers (max_values: Some(1), max_size: None, mode: Measured)
    // Storage: Identity Claims (r:2 w:0)
    // Proof Skipped: Identity Claims (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking ValidatorCount (r:1 w:0)
    // Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    fn add_permissioned_validator() -> Weight {
        // Minimum execution time: 44_828 nanoseconds.
        Weight::from_ref_time(46_170_000)
            .saturating_add(DbWeight::get().reads(6))
            .saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking PermissionedIdentity (r:1 w:1)
    // Proof Skipped: Staking PermissionedIdentity (max_values: None, max_size: None, mode: Measured)
    fn remove_permissioned_validator() -> Weight {
        // Minimum execution time: 23_115 nanoseconds.
        Weight::from_ref_time(23_415_000)
            .saturating_add(DbWeight::get().reads(1))
            .saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking SlashingAllowedFor (r:0 w:1)
    // Proof: Staking SlashingAllowedFor (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
    fn change_slashing_allowed_for() -> Weight {
        // Minimum execution time: 8_753 nanoseconds.
        Weight::from_ref_time(11_127_000).saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking ValidatorCount (r:1 w:0)
    // Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking PermissionedIdentity (r:1 w:1)
    // Proof Skipped: Staking PermissionedIdentity (max_values: None, max_size: None, mode: Measured)
    fn update_permissioned_validator_intended_count() -> Weight {
        // Minimum execution time: 17_115 nanoseconds.
        Weight::from_ref_time(17_607_000)
            .saturating_add(DbWeight::get().reads(2))
            .saturating_add(DbWeight::get().writes(1))
    }
    // Storage: Staking PermissionedIdentity (r:1 w:1)
    // Proof Skipped: Staking PermissionedIdentity (max_values: None, max_size: None, mode: Measured)
    // Storage: Identity KeyRecords (r:100 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    // Storage: Identity IsDidFrozen (r:1 w:0)
    // Proof Skipped: Identity IsDidFrozen (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Validators (r:100 w:100)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    // Storage: Identity AccountKeyRefCount (r:100 w:100)
    // Proof Skipped: Identity AccountKeyRefCount (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking CounterForValidators (r:1 w:1)
    // Proof: Staking CounterForValidators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking Nominators (r:100 w:0)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
    /// The range of component `s` is `[1, 100]`.
    fn chill_from_governance(s: u32) -> Weight {
        // Minimum execution time: 68_033 nanoseconds.
        Weight::from_ref_time(45_715_823)
            // Standard Error: 23_835
            .saturating_add(Weight::from_ref_time(32_048_149).saturating_mul(s.into()))
            .saturating_add(DbWeight::get().reads(3))
            .saturating_add(DbWeight::get().reads((4_u64).saturating_mul(s.into())))
            .saturating_add(DbWeight::get().writes(2))
            .saturating_add(DbWeight::get().writes((2_u64).saturating_mul(s.into())))
    }
    // Storage: Staking ValidatorCommissionCap (r:1 w:1)
    // Proof: Staking ValidatorCommissionCap (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Staking Validators (r:152 w:151)
    // Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
    /// The range of component `m` is `[0, 150]`.
    fn set_commission_cap(m: u32) -> Weight {
        // Minimum execution time: 28_222 nanoseconds.
        Weight::from_ref_time(42_688_554)
            // Standard Error: 10_317
            .saturating_add(Weight::from_ref_time(4_793_324).saturating_mul(m.into()))
            .saturating_add(DbWeight::get().reads(3))
            .saturating_add(DbWeight::get().reads((1_u64).saturating_mul(m.into())))
            .saturating_add(DbWeight::get().writes(2))
            .saturating_add(DbWeight::get().writes((1_u64).saturating_mul(m.into())))
    }
    // Storage: Staking Nominators (r:16 w:16)
    // Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
    // Storage: Identity KeyRecords (r:32 w:0)
    // Proof Skipped: Identity KeyRecords (max_values: None, max_size: None, mode: Measured)
    // Storage: Timestamp Now (r:1 w:0)
    // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
    // Storage: Instance2Group ActiveMembers (r:1 w:0)
    // Proof Skipped: Instance2Group ActiveMembers (max_values: Some(1), max_size: None, mode: Measured)
    // Storage: Identity Claims (r:16 w:0)
    // Proof Skipped: Identity Claims (max_values: None, max_size: None, mode: Measured)
    // Storage: Identity ParentDid (r:16 w:0)
    // Proof Skipped: Identity ParentDid (max_values: None, max_size: None, mode: Measured)
    // Storage: Staking Bonded (r:16 w:0)
    // Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
    // Storage: Staking Ledger (r:16 w:16)
    // 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 CurrentEra (r:1 w:0)
    // Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
    // Storage: Balances Locks (r:16 w:16)
    // Proof Skipped: Balances Locks (max_values: None, max_size: None, mode: Measured)
    // Storage: System Account (r:16 w:16)
    // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
    // Storage: Identity IsDidFrozen (r:16 w:0)
    // Proof Skipped: Identity IsDidFrozen (max_values: None, max_size: None, mode: Measured)
    // 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 validate_cdd_expiry_nominators(n: u32) -> Weight {
        // Minimum execution time: 241_866 nanoseconds.
        Weight::from_ref_time(181_979_005)
            // Standard Error: 299_546
            .saturating_add(Weight::from_ref_time(95_125_384).saturating_mul(n.into()))
            .saturating_add(DbWeight::get().reads(5))
            .saturating_add(DbWeight::get().reads((10_u64).saturating_mul(n.into())))
            .saturating_add(DbWeight::get().writes(1))
            .saturating_add(DbWeight::get().writes((4_u64).saturating_mul(n.into())))
    }
}
