pub trait WeightInfo {
    // Required methods
    fn collator_add_orbiter() -> Weight;
    fn collator_remove_orbiter() -> Weight;
    fn orbiter_leave_collator_pool() -> Weight;
    fn orbiter_register() -> Weight;
    fn orbiter_unregister(n: u32) -> Weight;
    fn add_collator() -> Weight;
    fn remove_collator() -> Weight;
    fn on_initialize(x: u32) -> Weight;
    fn distribute_rewards() -> Weight;
    fn on_new_round() -> Weight;
}
Expand description

Weight functions needed for pallet_moonbeam_orbiters.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn collator_add_orbiter() -> Weight

Storage: MoonbeamOrbiters CollatorsPool (r:1 w:1) Proof Skipped: MoonbeamOrbiters CollatorsPool (max_values: None, max_size: None, mode: Measured) Storage: Balances Reserves (r:1 w:0) Proof: Balances Reserves (max_values: None, max_size: Some(1037), added: 3512, mode: MaxEncodedLen)

source§

fn collator_remove_orbiter() -> Weight

Storage: MoonbeamOrbiters CollatorsPool (r:1 w:1) Proof Skipped: MoonbeamOrbiters CollatorsPool (max_values: None, max_size: None, mode: Measured)

source§

fn orbiter_leave_collator_pool() -> Weight

Storage: MoonbeamOrbiters CollatorsPool (r:1 w:1) Proof Skipped: MoonbeamOrbiters CollatorsPool (max_values: None, max_size: None, mode: Measured)

source§

fn orbiter_register() -> Weight

Storage: MoonbeamOrbiters MinOrbiterDeposit (r:1 w:0) Proof Skipped: MoonbeamOrbiters MinOrbiterDeposit (max_values: Some(1), max_size: None, mode: Measured) Storage: Balances Reserves (r:1 w:1) Proof: Balances Reserves (max_values: None, max_size: Some(1037), added: 3512, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(116), added: 2591, mode: MaxEncodedLen) Storage: MoonbeamOrbiters RegisteredOrbiter (r:0 w:1) Proof Skipped: MoonbeamOrbiters RegisteredOrbiter (max_values: None, max_size: None, mode: Measured)

source§

fn orbiter_unregister(n: u32) -> Weight

Storage: MoonbeamOrbiters CounterForCollatorsPool (r:1 w:0) Proof: MoonbeamOrbiters CounterForCollatorsPool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: MoonbeamOrbiters CollatorsPool (r:101 w:0) Proof Skipped: MoonbeamOrbiters CollatorsPool (max_values: None, max_size: None, mode: Measured) Storage: Balances Reserves (r:1 w:1) Proof: Balances Reserves (max_values: None, max_size: Some(1037), added: 3512, mode: MaxEncodedLen) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(116), added: 2591, mode: MaxEncodedLen) Storage: MoonbeamOrbiters RegisteredOrbiter (r:0 w:1) Proof Skipped: MoonbeamOrbiters RegisteredOrbiter (max_values: None, max_size: None, mode: Measured) The range of component n is [0, 100].

source§

fn add_collator() -> Weight

Storage: MoonbeamOrbiters CollatorsPool (r:1 w:1) Proof Skipped: MoonbeamOrbiters CollatorsPool (max_values: None, max_size: None, mode: Measured) Storage: MoonbeamOrbiters CounterForCollatorsPool (r:1 w:1) Proof: MoonbeamOrbiters CounterForCollatorsPool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

source§

fn remove_collator() -> Weight

Storage: MoonbeamOrbiters CollatorsPool (r:1 w:1) Proof Skipped: MoonbeamOrbiters CollatorsPool (max_values: None, max_size: None, mode: Measured) Storage: MoonbeamOrbiters CounterForCollatorsPool (r:1 w:1) Proof: MoonbeamOrbiters CounterForCollatorsPool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: MoonbeamOrbiters AccountLookupOverride (r:0 w:9) Proof Skipped: MoonbeamOrbiters AccountLookupOverride (max_values: None, max_size: None, mode: Measured)

source§

fn on_initialize(x: u32) -> Weight

Storage: MoonbeamOrbiters CurrentRound (r:1 w:0) Proof Skipped: MoonbeamOrbiters CurrentRound (max_values: Some(1), max_size: None, mode: Measured) Storage: MoonbeamOrbiters OrbiterPerRound (r:100 w:100) Proof Skipped: MoonbeamOrbiters OrbiterPerRound (max_values: None, max_size: None, mode: Measured) The range of component x is [0, 100].

source§

fn distribute_rewards() -> Weight

Storage: MoonbeamOrbiters OrbiterPerRound (r:1 w:1) Proof Skipped: MoonbeamOrbiters OrbiterPerRound (max_values: None, max_size: None, mode: Measured) Storage: System Account (r:1 w:1) Proof: System Account (max_values: None, max_size: Some(116), added: 2591, mode: MaxEncodedLen)

source§

fn on_new_round() -> Weight

Storage: MoonbeamOrbiters ForceRotation (r:1 w:1) Proof Skipped: MoonbeamOrbiters ForceRotation (max_values: Some(1), max_size: None, mode: Measured) Storage: MoonbeamOrbiters CollatorsPool (r:2 w:1) Proof Skipped: MoonbeamOrbiters CollatorsPool (max_values: None, max_size: None, mode: Measured) Storage: MoonbeamOrbiters OrbiterPerRound (r:0 w:3) Proof Skipped: MoonbeamOrbiters OrbiterPerRound (max_values: None, max_size: None, mode: Measured) Storage: MoonbeamOrbiters AccountLookupOverride (r:0 w:3) Proof Skipped: MoonbeamOrbiters AccountLookupOverride (max_values: None, max_size: None, mode: Measured) Storage: MoonbeamOrbiters CurrentRound (r:0 w:1) Proof Skipped: MoonbeamOrbiters CurrentRound (max_values: Some(1), max_size: None, mode: Measured)

Implementors§

source§

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