Trait pallet_democracy::weights::WeightInfo
source · pub trait WeightInfo {
Show 22 methods
// Required methods
fn propose() -> Weight;
fn second() -> Weight;
fn vote_new() -> Weight;
fn vote_existing() -> Weight;
fn emergency_cancel() -> Weight;
fn blacklist() -> Weight;
fn external_propose() -> Weight;
fn external_propose_majority() -> Weight;
fn external_propose_default() -> Weight;
fn fast_track() -> Weight;
fn veto_external() -> Weight;
fn cancel_proposal() -> Weight;
fn cancel_referendum() -> Weight;
fn on_initialize_base(r: u32) -> Weight;
fn on_initialize_base_with_launch_period(r: u32) -> Weight;
fn delegate(r: u32) -> Weight;
fn undelegate(r: u32) -> Weight;
fn clear_public_proposals() -> Weight;
fn unlock_remove(r: u32) -> Weight;
fn unlock_set(r: u32) -> Weight;
fn remove_vote(r: u32) -> Weight;
fn remove_other_vote(r: u32) -> Weight;
}
Expand description
Weight functions needed for pallet_democracy.
Required Methods§
fn propose() -> Weight
fn second() -> Weight
fn vote_new() -> Weight
fn vote_existing() -> Weight
fn emergency_cancel() -> Weight
fn blacklist() -> Weight
fn external_propose() -> Weight
fn external_propose_majority() -> Weight
fn external_propose_default() -> Weight
fn fast_track() -> Weight
fn veto_external() -> Weight
fn cancel_proposal() -> Weight
fn cancel_referendum() -> Weight
fn on_initialize_base(r: u32) -> Weight
fn on_initialize_base_with_launch_period(r: u32) -> Weight
fn delegate(r: u32) -> Weight
fn undelegate(r: u32) -> Weight
fn clear_public_proposals() -> Weight
fn unlock_remove(r: u32) -> Weight
fn unlock_set(r: u32) -> Weight
fn remove_vote(r: u32) -> Weight
fn remove_other_vote(r: u32) -> Weight
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn on_initialize_base(r: u32) -> Weight
fn on_initialize_base(r: u32) -> Weight
The range of component r
is [0, 99]
.
source§fn on_initialize_base_with_launch_period(r: u32) -> Weight
fn on_initialize_base_with_launch_period(r: u32) -> Weight
The range of component r
is [0, 99]
.
source§fn undelegate(r: u32) -> Weight
fn undelegate(r: u32) -> Weight
The range of component r
is [0, 99]
.
source§fn unlock_remove(r: u32) -> Weight
fn unlock_remove(r: u32) -> Weight
The range of component r
is [0, 99]
.
source§fn unlock_set(r: u32) -> Weight
fn unlock_set(r: u32) -> Weight
The range of component r
is [0, 99]
.
source§fn remove_vote(r: u32) -> Weight
fn remove_vote(r: u32) -> Weight
The range of component r
is [1, 100]
.
source§fn remove_other_vote(r: u32) -> Weight
fn remove_other_vote(r: u32) -> Weight
The range of component r
is [1, 100]
.