pub trait WeightInfo {
// Required methods
fn claim_handle(b: u32) -> Weight;
fn change_handle(b: u32) -> Weight;
fn retire_handle() -> Weight;
fn validate_retire_handle_benchmark() -> Weight;
}
Expand description
Weight functions needed for pallet_handles
.
Required Methods§
fn claim_handle(b: u32) -> Weight
fn change_handle(b: u32) -> Weight
fn retire_handle() -> Weight
fn validate_retire_handle_benchmark() -> 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 claim_handle(b: u32) -> Weight
fn claim_handle(b: u32) -> Weight
Storage: Msa::PublicKeyToMsaId
(r:1 w:0)
Proof: Msa::PublicKeyToMsaId
(max_values
: None, max_size
: Some(48), added: 2523, mode: MaxEncodedLen
)
Storage: Handles::MSAIdToDisplayName
(r:1 w:1)
Proof: Handles::MSAIdToDisplayName
(max_values
: None, max_size
: Some(59), added: 2534, mode: MaxEncodedLen
)
Storage: Handles::CanonicalBaseHandleToSuffixIndex
(r:1 w:1)
Proof: Handles::CanonicalBaseHandleToSuffixIndex
(max_values
: None, max_size
: Some(53), added: 2528, mode: MaxEncodedLen
)
Storage: Handles::CanonicalBaseHandleAndSuffixToMSAId
(r:0 w:1)
Proof: Handles::CanonicalBaseHandleAndSuffixToMSAId
(max_values
: None, max_size
: Some(67), added: 2542, mode: MaxEncodedLen
)
The range of component b
is [3, 30]
.
Source§fn change_handle(b: u32) -> Weight
fn change_handle(b: u32) -> Weight
Storage: Msa::PublicKeyToMsaId
(r:1 w:0)
Proof: Msa::PublicKeyToMsaId
(max_values
: None, max_size
: Some(48), added: 2523, mode: MaxEncodedLen
)
Storage: Handles::MSAIdToDisplayName
(r:1 w:1)
Proof: Handles::MSAIdToDisplayName
(max_values
: None, max_size
: Some(59), added: 2534, mode: MaxEncodedLen
)
Storage: Handles::CanonicalBaseHandleToSuffixIndex
(r:1 w:1)
Proof: Handles::CanonicalBaseHandleToSuffixIndex
(max_values
: None, max_size
: Some(53), added: 2528, mode: MaxEncodedLen
)
Storage: Handles::CanonicalBaseHandleAndSuffixToMSAId
(r:0 w:2)
Proof: Handles::CanonicalBaseHandleAndSuffixToMSAId
(max_values
: None, max_size
: Some(67), added: 2542, mode: MaxEncodedLen
)
The range of component b
is [3, 30]
.
Source§fn retire_handle() -> Weight
fn retire_handle() -> Weight
Storage: Msa::PublicKeyToMsaId
(r:1 w:0)
Proof: Msa::PublicKeyToMsaId
(max_values
: None, max_size
: Some(48), added: 2523, mode: MaxEncodedLen
)
Storage: Handles::MSAIdToDisplayName
(r:1 w:1)
Proof: Handles::MSAIdToDisplayName
(max_values
: None, max_size
: Some(59), added: 2534, mode: MaxEncodedLen
)
Storage: Handles::CanonicalBaseHandleAndSuffixToMSAId
(r:0 w:1)
Proof: Handles::CanonicalBaseHandleAndSuffixToMSAId
(max_values
: None, max_size
: Some(67), added: 2542, mode: MaxEncodedLen
)
Source§fn validate_retire_handle_benchmark() -> Weight
fn validate_retire_handle_benchmark() -> Weight
Storage: Msa::PublicKeyToMsaId
(r:1 w:0)
Proof: Msa::PublicKeyToMsaId
(max_values
: None, max_size
: Some(48), added: 2523, mode: MaxEncodedLen
)
Storage: Handles::MSAIdToDisplayName
(r:1 w:0)
Proof: Handles::MSAIdToDisplayName
(max_values
: None, max_size
: Some(59), added: 2534, mode: MaxEncodedLen
)