pub trait WeightInfo {
// Required methods
fn whitelist_call() -> Weight;
fn remove_whitelisted_call() -> Weight;
fn dispatch_whitelisted_call(n: u32) -> Weight;
fn dispatch_whitelisted_call_with_preimage(n: u32) -> Weight;
}
Expand description
Weight functions needed for pallet_whitelist
.
Required Methods§
fn whitelist_call() -> Weight
fn remove_whitelisted_call() -> Weight
fn dispatch_whitelisted_call(n: u32) -> Weight
fn dispatch_whitelisted_call_with_preimage(n: u32) -> 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 ()
impl WeightInfo for ()
Source§fn whitelist_call() -> Weight
fn whitelist_call() -> Weight
Storage: Whitelist::WhitelistedCall
(r:1 w:1)
Proof: Whitelist::WhitelistedCall
(max_values
: None, max_size
: Some(40), added: 2515, mode: MaxEncodedLen
)
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 remove_whitelisted_call() -> Weight
fn remove_whitelisted_call() -> Weight
Storage: Whitelist::WhitelistedCall
(r:1 w:1)
Proof: Whitelist::WhitelistedCall
(max_values
: None, max_size
: Some(40), added: 2515, mode: MaxEncodedLen
)
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 dispatch_whitelisted_call(n: u32) -> Weight
fn dispatch_whitelisted_call(n: u32) -> Weight
Storage: Whitelist::WhitelistedCall
(r:1 w:1)
Proof: Whitelist::WhitelistedCall
(max_values
: None, max_size
: Some(40), added: 2515, mode: MaxEncodedLen
)
Storage: Preimage::PreimageFor
(r:1 w:1)
Proof: Preimage::PreimageFor
(max_values
: None, max_size
: Some(4194344), added: 4196819, mode: Measured
)
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
)
The range of component n
is [1, 4194294]
.
Source§fn dispatch_whitelisted_call_with_preimage(n: u32) -> Weight
fn dispatch_whitelisted_call_with_preimage(n: u32) -> Weight
Storage: Whitelist::WhitelistedCall
(r:1 w:1)
Proof: Whitelist::WhitelistedCall
(max_values
: None, max_size
: Some(40), added: 2515, mode: MaxEncodedLen
)
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
)
The range of component n
is [1, 10000]
.