referrerpolicy=no-referrer-when-downgrade

WeightInfo

Trait WeightInfo 

Source
pub trait WeightInfo {
    // Required methods
    fn reserve() -> Weight;
    fn register(h: u32) -> Weight;
    fn cancel_registration() -> Weight;
    fn receive() -> Weight;
}
Expand description

Weight functions needed for pallet_registrar_para.

Required Methods§

Source

fn reserve() -> Weight

Source

fn register(h: u32) -> Weight

Source

fn cancel_registration() -> Weight

Source

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

Source§

fn reserve() -> Weight

Storage: RegistrarPara::NextFreeParaId (r:1 w:1) Proof: RegistrarPara::NextFreeParaId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: RegistrarPara::Paras (r:1 w:1) Proof: RegistrarPara::Paras (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(607), added: 3082, mode: MaxEncodedLen)

Source§

fn register(h: u32) -> Weight

Storage: RegistrarPara::Paras (r:1 w:1) Proof: RegistrarPara::Paras (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(607), added: 3082, mode: MaxEncodedLen) Storage: RegistrarPara::NextMessageId (r:1 w:1) Proof: RegistrarPara::NextMessageId (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) The range of component h is [0, 1048576].

Source§

fn cancel_registration() -> Weight

Storage: RegistrarPara::Paras (r:1 w:1) Proof: RegistrarPara::Paras (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) Storage: RegistrarPara::NextMessageId (r:1 w:1) Proof: RegistrarPara::NextMessageId (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)

Source§

fn receive() -> Weight

Storage: RegistrarPara::Paras (r:1 w:1) Proof: RegistrarPara::Paras (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Balances::Holds (r:1 w:1) Proof: Balances::Holds (max_values: None, max_size: Some(607), added: 3082, mode: MaxEncodedLen)

Implementors§

Source§

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