pub trait WeightInfo {
    // Required methods
    fn add_onchain_message(n: u32) -> Weight;
    fn add_ipfs_message() -> Weight;
}
Expand description

Weight functions needed for pallet_messages.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn add_onchain_message(n: u32) -> Weight

Storage: Schemas::SchemaInfos (r:1 w:0) Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(15), added: 2490, mode: MaxEncodedLen) Storage: Msa::PublicKeyToMsaId (r:1 w:0) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Msa::DelegatorAndProviderToDelegation (r:1 w:0) Proof: Msa::DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: MaxEncodedLen) Storage: Messages::MessagesV2 (r:0 w:1) Proof: Messages::MessagesV2 (max_values: None, max_size: Some(3123), added: 5598, mode: MaxEncodedLen) The range of component n is [0, 3071].

source§

fn add_ipfs_message() -> Weight

Storage: Schemas::SchemaInfos (r:1 w:0) Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(15), added: 2490, mode: MaxEncodedLen) Storage: Msa::PublicKeyToMsaId (r:1 w:0) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Messages::MessagesV2 (r:0 w:1) Proof: Messages::MessagesV2 (max_values: None, max_size: Some(3123), added: 5598, mode: MaxEncodedLen)

Implementors§

source§

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