pub trait WeightInfo {
// Required methods
fn on_initialize_nothing() -> Weight;
fn on_initialize_open_signed() -> Weight;
fn on_initialize_open_unsigned() -> Weight;
fn finalize_signed_phase_accept_solution() -> Weight;
fn finalize_signed_phase_reject_solution() -> Weight;
fn create_snapshot_internal(v: u32, t: u32) -> Weight;
fn elect_queued(a: u32, d: u32) -> Weight;
fn submit() -> Weight;
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32) -> Weight;
fn feasibility_check(v: u32, t: u32, a: u32, d: u32) -> Weight;
}
Expand description
Weight functions needed for pallet_election_provider_multi_phase.
Required Methods§
fn on_initialize_nothing() -> Weight
fn on_initialize_open_signed() -> Weight
fn on_initialize_open_unsigned() -> Weight
fn finalize_signed_phase_accept_solution() -> Weight
fn finalize_signed_phase_reject_solution() -> Weight
fn create_snapshot_internal(v: u32, t: u32) -> Weight
fn elect_queued(a: u32, d: u32) -> Weight
fn submit() -> Weight
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32) -> Weight
fn feasibility_check(v: u32, t: u32, a: u32, d: u32) -> Weight
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn create_snapshot_internal(v: u32, _t: u32) -> Weight
fn create_snapshot_internal(v: u32, _t: u32) -> Weight
The range of component v
is [1000, 2000]
.
The range of component t
is [500, 1000]
.
source§fn elect_queued(a: u32, d: u32) -> Weight
fn elect_queued(a: u32, d: u32) -> Weight
The range of component a
is [500, 800]
.
The range of component d
is [200, 400]
.
source§fn submit_unsigned(v: u32, _t: u32, a: u32, _d: u32) -> Weight
fn submit_unsigned(v: u32, _t: u32, a: u32, _d: u32) -> Weight
The range of component v
is [1000, 2000]
.
The range of component t
is [500, 1000]
.
The range of component a
is [500, 800]
.
The range of component d
is [200, 400]
.
source§fn feasibility_check(v: u32, _t: u32, a: u32, _d: u32) -> Weight
fn feasibility_check(v: u32, _t: u32, a: u32, _d: u32) -> Weight
The range of component v
is [1000, 2000]
.
The range of component t
is [500, 1000]
.
The range of component a
is [500, 800]
.
The range of component d
is [200, 400]
.