referrerpolicy=no-referrer-when-downgrade

Trait pallet_beefy_mmr::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn extract_validation_context() -> Weight;
    fn read_peak() -> Weight;
    fn n_items_proof_is_non_canonical(n: u32) -> Weight;
}
Expand description

Weight functions needed for pallet_beefy_mmr.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn extract_validation_context() -> Weight

Storage: System::BlockHash (r:1 w:0) Proof: System::BlockHash (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)

source§

fn read_peak() -> Weight

Storage: Mmr::Nodes (r:1 w:0) Proof: Mmr::Nodes (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)

source§

fn n_items_proof_is_non_canonical(n: u32) -> Weight

Storage: Mmr::RootHash (r:1 w:0) Proof: Mmr::RootHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) Storage: Mmr::NumberOfLeaves (r:1 w:0) Proof: Mmr::NumberOfLeaves (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) The range of component n is [2, 512].

Implementors§