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_member(m: u32) -> Weight;
    fn change_key(m: u32) -> Weight;
    fn set_prime(m: u32) -> Weight;
    fn clear_prime(m: u32) -> Weight;
}
Expand description

Weight functions needed for pallet_membership.

Required Methods§

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 Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee Members (r:0 w:1) Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee Prime (r:0 w:1) Proof Skipped: 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 Skipped: 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 Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee Prime (r:0 w:1) Proof Skipped: 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 Skipped: 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 Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee Prime (r:0 w:1) Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) The range of component m is [2, 100].

source§

fn reset_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 Skipped: 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 Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee Prime (r:0 w:1) Proof Skipped: 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 Skipped: 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 Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured) Storage: TechnicalCommittee Prime (r:0 w:1) Proof Skipped: 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 Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) The range of component m is [1, 100].

source§

fn clear_prime(m: u32) -> 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 Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured) The range of component m is [1, 100].

Implementors§