referrerpolicy=no-referrer-when-downgrade

Trait pallet_membership::weights::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn add_member(m: u32) -> Weight;
    fn remove_member(m: u32) -> Weight;
    fn swap_member(m: u32) -> Weight;
    fn reset_members(m: u32) -> Weight;
    fn change_key(m: u32) -> Weight;
    fn set_prime(m: u32) -> Weight;
    fn clear_prime() -> Weight;
}
Expand description

Weight functions needed for pallet_membership.

Required Methods§

source

fn add_member(m: u32) -> Weight

source

fn remove_member(m: u32) -> Weight

source

fn swap_member(m: u32) -> Weight

source

fn reset_members(m: u32) -> Weight

source

fn change_key(m: u32) -> Weight

source

fn set_prime(m: u32) -> Weight

source

fn clear_prime() -> Weight

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn add_member(m: u32) -> Weight

Storage: TechnicalMembership::Members (r:1 w:1) Proof: TechnicalMembership::Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) Storage: TechnicalCommittee::Proposals (r:1 w:0) Proof: TechnicalCommittee::Proposals (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee::Members (r:0 w:1) Proof: TechnicalCommittee::Members (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee::Prime (r:0 w:1) Proof: TechnicalCommittee::Prime (max_values: Some(1), max_size: None, mode: Measured) The range of component m is [1, 99].

source§

fn remove_member(m: u32) -> Weight

Storage: TechnicalMembership::Members (r:1 w:1) Proof: TechnicalMembership::Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) Storage: TechnicalCommittee::Proposals (r:1 w:0) Proof: TechnicalCommittee::Proposals (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalMembership::Prime (r:1 w:0) Proof: TechnicalMembership::Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: TechnicalCommittee::Members (r:0 w:1) Proof: TechnicalCommittee::Members (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee::Prime (r:0 w:1) Proof: TechnicalCommittee::Prime (max_values: Some(1), max_size: None, mode: Measured) The range of component m is [2, 100].

source§

fn swap_member(m: u32) -> Weight

Storage: TechnicalMembership::Members (r:1 w:1) Proof: TechnicalMembership::Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) Storage: TechnicalCommittee::Proposals (r:1 w:0) Proof: TechnicalCommittee::Proposals (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalMembership::Prime (r:1 w:0) Proof: TechnicalMembership::Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: TechnicalCommittee::Members (r:0 w:1) Proof: TechnicalCommittee::Members (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee::Prime (r:0 w:1) Proof: TechnicalCommittee::Prime (max_values: Some(1), max_size: None, mode: Measured) The range of component m is [2, 100].

source§

fn reset_members(m: u32) -> Weight

Storage: TechnicalMembership::Members (r:1 w:1) Proof: TechnicalMembership::Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) Storage: TechnicalCommittee::Proposals (r:1 w:0) Proof: TechnicalCommittee::Proposals (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalMembership::Prime (r:1 w:0) Proof: TechnicalMembership::Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: TechnicalCommittee::Members (r:0 w:1) Proof: TechnicalCommittee::Members (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee::Prime (r:0 w:1) Proof: TechnicalCommittee::Prime (max_values: Some(1), max_size: None, mode: Measured) The range of component m is [1, 100].

source§

fn change_key(m: u32) -> Weight

Storage: TechnicalMembership::Members (r:1 w:1) Proof: TechnicalMembership::Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) Storage: TechnicalCommittee::Proposals (r:1 w:0) Proof: TechnicalCommittee::Proposals (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalMembership::Prime (r:1 w:1) Proof: TechnicalMembership::Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: TechnicalCommittee::Members (r:0 w:1) Proof: TechnicalCommittee::Members (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee::Prime (r:0 w:1) Proof: TechnicalCommittee::Prime (max_values: Some(1), max_size: None, mode: Measured) The range of component m is [1, 100].

source§

fn set_prime(m: u32) -> Weight

Storage: TechnicalMembership::Members (r:1 w:0) Proof: TechnicalMembership::Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) Storage: TechnicalMembership::Prime (r:0 w:1) Proof: TechnicalMembership::Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: TechnicalCommittee::Prime (r:0 w:1) Proof: TechnicalCommittee::Prime (max_values: Some(1), max_size: None, mode: Measured) The range of component m is [1, 100].

source§

fn clear_prime() -> Weight

Storage: TechnicalMembership::Prime (r:0 w:1) Proof: TechnicalMembership::Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: TechnicalCommittee::Prime (r:0 w:1) Proof: TechnicalCommittee::Prime (max_values: Some(1), max_size: None, mode: Measured)

Implementors§

source§

impl<T: Config> WeightInfo for SubstrateWeight<T>