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§
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
Object Safety§
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn add_member(m: u32) -> Weight
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
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
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
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
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
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
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
)