WeightInfo

Trait WeightInfo 

Source
pub trait WeightInfo {
    // Required methods
    fn handle_transfers(t: u32) -> Weight;
    fn set_main_chain_scripts() -> Weight;
}
Expand description

Weight functions needed for pallet_partner_chains_bridge.

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 handle_transfers(t: u32) -> Weight

Storage: System::Account (r:2 w:2) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Bridge::DataCheckpoint (r:0 w:1) Proof: Bridge::DataCheckpoint (max_values: Some(1), max_size: None, mode: Measured) The range of component t is [1, 256].

Source§

fn set_main_chain_scripts() -> Weight

Storage: Bridge::MainChainScriptsConfiguration (r:0 w:1) Proof: Bridge::MainChainScriptsConfiguration (max_values: Some(1), max_size: None, mode: Measured) Storage: Bridge::DataCheckpoint (r:0 w:1) Proof: Bridge::DataCheckpoint (max_values: Some(1), max_size: None, mode: Measured)

Implementors§

Source§

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