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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl WeightInfo for ()
impl WeightInfo for ()
Source§fn buy_ticket() -> Weight
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
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
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
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
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
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
)