referrerpolicy=no-referrer-when-downgrade
pallet_beefy_mmr

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn n_leafs_proof_is_optimal(n: u32) -> Weight;
    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§

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 ()

Source§

fn n_leafs_proof_is_optimal(n: u32) -> Weight

The range of component n is [2, 512].

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§