pallet_stateful_storage::weights

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn apply_item_actions_add(s: u32) -> Weight;
    fn apply_item_actions_delete(n: u32) -> Weight;
    fn upsert_page(s: u32) -> Weight;
    fn delete_page() -> Weight;
    fn apply_item_actions_with_signature_v2_add(s: u32) -> Weight;
    fn apply_item_actions_with_signature_v2_delete(n: u32) -> Weight;
    fn upsert_page_with_signature_v2(s: u32) -> Weight;
    fn delete_page_with_signature_v2() -> Weight;
}
Expand description

Weight functions needed for pallet_stateful_storage.

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 apply_item_actions_add(s: u32) -> Weight

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: Schemas::SchemaInfos (r:1 w:0) Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(15), added: 2490, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1) Proof: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1) The range of component s is [1024, 5120].

Source§

fn apply_item_actions_delete(_n: u32) -> Weight

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: Schemas::SchemaInfos (r:1 w:0) Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(15), added: 2490, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1) Proof: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1) The range of component n is [1, 5].

Source§

fn upsert_page(s: u32) -> Weight

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: Schemas::SchemaInfos (r:1 w:0) Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(15), added: 2490, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1) Proof: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1) The range of component s is [1, 1024].

Source§

fn delete_page() -> Weight

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: Schemas::SchemaInfos (r:1 w:0) Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(15), added: 2490, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1) Proof: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)

Source§

fn apply_item_actions_with_signature_v2_add(s: u32) -> Weight

Storage: Msa::PublicKeyToMsaId (r:1 w:0) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Schemas::SchemaInfos (r:1 w:0) Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(15), added: 2490, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1) Proof: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1) The range of component s is [1024, 5120].

Source§

fn apply_item_actions_with_signature_v2_delete(_n: u32) -> Weight

Storage: Msa::PublicKeyToMsaId (r:1 w:0) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Schemas::SchemaInfos (r:1 w:0) Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(15), added: 2490, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1) Proof: UNKNOWN KEY 0xbd1557c8db6bd8599a811a7175fbc2fc6400 (r:1 w:1) The range of component n is [1, 5].

Source§

fn upsert_page_with_signature_v2(s: u32) -> Weight

Storage: Msa::PublicKeyToMsaId (r:1 w:0) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Schemas::SchemaInfos (r:1 w:0) Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(15), added: 2490, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1) Proof: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1) The range of component s is [1, 1024].

Source§

fn delete_page_with_signature_v2() -> Weight

Storage: Msa::PublicKeyToMsaId (r:1 w:0) Proof: Msa::PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) Storage: Schemas::SchemaInfos (r:1 w:0) Proof: Schemas::SchemaInfos (max_values: None, max_size: Some(15), added: 2490, mode: MaxEncodedLen) Storage: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1) Proof: UNKNOWN KEY 0x0763c98381dc89abe38627fe2f98cb7af1577fbf1d628fdddb4ebfc6e8d95fb1 (r:1 w:1)

Implementors§

Source§

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