pub trait WeightInfo {
Show 13 methods // Required methods fn note_preimage(s: u32) -> Weight; fn note_requested_preimage(s: u32) -> Weight; fn note_no_deposit_preimage(s: u32) -> Weight; fn unnote_preimage() -> Weight; fn unnote_no_deposit_preimage() -> Weight; fn request_preimage() -> Weight; fn request_no_deposit_preimage() -> Weight; fn request_unnoted_preimage() -> Weight; fn request_requested_preimage() -> Weight; fn unrequest_preimage() -> Weight; fn unrequest_unnoted_preimage() -> Weight; fn unrequest_multi_referenced_preimage() -> Weight; fn ensure_updated(n: u32) -> Weight;
}
Expand description

Weight functions needed for pallet_preimage.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn note_preimage(s: u32) -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) Storage: Preimage::PreimageFor (r:0 w:1) Proof: Preimage::PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen) The range of component s is [0, 4194304].

source§

fn note_requested_preimage(s: u32) -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) Storage: Preimage::PreimageFor (r:0 w:1) Proof: Preimage::PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen) The range of component s is [0, 4194304].

source§

fn note_no_deposit_preimage(s: u32) -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) Storage: Preimage::PreimageFor (r:0 w:1) Proof: Preimage::PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen) The range of component s is [0, 4194304].

source§

fn unnote_preimage() -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) Storage: Preimage::PreimageFor (r:0 w:1) Proof: Preimage::PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)

source§

fn unnote_no_deposit_preimage() -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) Storage: Preimage::PreimageFor (r:0 w:1) Proof: Preimage::PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)

source§

fn request_preimage() -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen)

source§

fn request_no_deposit_preimage() -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen)

source§

fn request_unnoted_preimage() -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen)

source§

fn request_requested_preimage() -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen)

source§

fn unrequest_preimage() -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) Storage: Preimage::PreimageFor (r:0 w:1) Proof: Preimage::PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)

source§

fn unrequest_unnoted_preimage() -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen)

source§

fn unrequest_multi_referenced_preimage() -> Weight

Storage: Preimage::StatusFor (r:1 w:0) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:1 w:1) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen)

source§

fn ensure_updated(n: u32) -> Weight

Storage: Preimage::StatusFor (r:1024 w:1024) Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen) Storage: System::Account (r:1 w:1) Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) Storage: Preimage::RequestStatusFor (r:0 w:1024) Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) The range of component n is [0, 1024].

Implementors§

source§

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