referrerpolicy=no-referrer-when-downgrade

Trait pallet_lottery::weights::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn buy_ticket() -> Weight;
    fn set_calls(n: u32) -> Weight;
    fn start_lottery() -> Weight;
    fn stop_repeat() -> Weight;
    fn on_initialize_end() -> Weight;
    fn on_initialize_repeat() -> Weight;
}
Expand description

Weight functions needed for pallet_lottery.

Required Methods§

source

fn buy_ticket() -> Weight

source

fn set_calls(n: u32) -> Weight

source

fn start_lottery() -> Weight

source

fn stop_repeat() -> Weight

source

fn on_initialize_end() -> Weight

source

fn on_initialize_repeat() -> Weight

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn buy_ticket() -> Weight

Storage: SafeMode::EnteredUntil (r:1 w:0) Proof: SafeMode::EnteredUntil (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: TxPause::PausedCalls (r:1 w:0) Proof: TxPause::PausedCalls (max_values: None, max_size: Some(532), added: 3007, mode: MaxEncodedLen) Storage: Lottery::Lottery (r:1 w:0) Proof: Lottery::Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen) Storage: Lottery::CallIndices (r:1 w:0) Proof: Lottery::CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen) Storage: Lottery::TicketsCount (r:1 w:1) Proof: Lottery::TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Lottery::Participants (r:1 w:1) Proof: Lottery::Participants (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) Storage: Lottery::LotteryIndex (r:1 w:0) Proof: Lottery::LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Lottery::Tickets (r:0 w:1) Proof: Lottery::Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)

source§

fn set_calls(n: u32) -> Weight

Storage: Lottery::CallIndices (r:0 w:1) Proof: Lottery::CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen) The range of component n is [0, 10].

source§

fn start_lottery() -> Weight

Storage: Lottery::Lottery (r:1 w:1) Proof: Lottery::Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen) Storage: Lottery::LotteryIndex (r:1 w:1) Proof: Lottery::LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)

source§

fn stop_repeat() -> Weight

Storage: Lottery::Lottery (r:1 w:1) Proof: Lottery::Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)

source§

fn on_initialize_end() -> Weight

Storage: RandomnessCollectiveFlip::RandomMaterial (r:1 w:0) Proof: RandomnessCollectiveFlip::RandomMaterial (max_values: Some(1), max_size: Some(2594), added: 3089, mode: MaxEncodedLen) Storage: Lottery::Lottery (r:1 w:1) Proof: Lottery::Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen) Storage: System::Account (r:2 w:2) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Lottery::TicketsCount (r:1 w:1) Proof: Lottery::TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Lottery::Tickets (r:1 w:0) Proof: Lottery::Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)

source§

fn on_initialize_repeat() -> Weight

Storage: RandomnessCollectiveFlip::RandomMaterial (r:1 w:0) Proof: RandomnessCollectiveFlip::RandomMaterial (max_values: Some(1), max_size: Some(2594), added: 3089, mode: MaxEncodedLen) Storage: Lottery::Lottery (r:1 w:1) Proof: Lottery::Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen) Storage: System::Account (r:2 w:2) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Lottery::TicketsCount (r:1 w:1) Proof: Lottery::TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: Lottery::Tickets (r:1 w:0) Proof: Lottery::Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) Storage: Lottery::LotteryIndex (r:1 w:1) Proof: Lottery::LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Implementors§

source§

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