Trait pallet_preimage::weights::WeightInfo
source · 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§
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
Object Safety§
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn note_preimage(s: u32) -> Weight
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(91), added: 2566, mode: MaxEncodedLen)
Storage: Parameters::Parameters (r:2 w:0)
Proof: Parameters::Parameters (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(193), added: 2668, 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
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(91), added: 2566, 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
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(91), added: 2566, 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
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(91), added: 2566, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1 w:1)
Proof: Balances::Holds (max_values: None, max_size: Some(193), added: 2668, 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
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(91), added: 2566, 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
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(91), added: 2566, mode: MaxEncodedLen)
source§fn request_no_deposit_preimage() -> Weight
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(91), added: 2566, mode: MaxEncodedLen)
source§fn request_unnoted_preimage() -> Weight
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(91), added: 2566, mode: MaxEncodedLen)
source§fn request_requested_preimage() -> Weight
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(91), added: 2566, mode: MaxEncodedLen)
source§fn unrequest_preimage() -> Weight
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(91), added: 2566, 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
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(91), added: 2566, mode: MaxEncodedLen)
source§fn unrequest_multi_referenced_preimage() -> Weight
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(91), added: 2566, mode: MaxEncodedLen)
source§fn ensure_updated(n: u32) -> Weight
fn ensure_updated(n: u32) -> Weight
Storage: Preimage::StatusFor (r:1023 w:1023)
Proof: Preimage::StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
Storage: System::Account (r:1023 w:1023)
Proof: System::Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
Storage: Parameters::Parameters (r:2 w:0)
Proof: Parameters::Parameters (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
Storage: Balances::Holds (r:1023 w:1023)
Proof: Balances::Holds (max_values: None, max_size: Some(193), added: 2668, mode: MaxEncodedLen)
Storage: Preimage::RequestStatusFor (r:0 w:1023)
Proof: Preimage::RequestStatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
The range of component n is [1, 1024].