pub trait WeightInfo {
// Required methods
fn receive_register(h: u32) -> Weight;
fn apply_authorized_code(c: u32) -> Weight;
fn authorize_apply_authorized_code(c: u32) -> Weight;
fn receive_cancel_registration() -> Weight;
fn on_new_head() -> Weight;
fn on_new_head_already_noted() -> Weight;
}Expand description
Weight functions needed for pallet_registrar_relay.
Required Methods§
fn receive_register(h: u32) -> Weight
fn receive_cancel_registration() -> Weight
fn on_new_head() -> Weight
fn on_new_head_already_noted() -> 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 receive_register(h: u32) -> Weight
fn receive_register(h: u32) -> Weight
Storage: RegistrarRelay::PendingRegistrations (r:1 w:1)
Proof: RegistrarRelay::PendingRegistrations (max_values: None, max_size: Some(1048676), added: 1051151, mode: MaxEncodedLen)
Storage: RegistrarRelay::CounterForPendingRegistrations (r:1 w:1)
Proof: RegistrarRelay::CounterForPendingRegistrations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Storage: RegistrarRelay::AwaitingFirstHead (r:0 w:1)
Proof: RegistrarRelay::AwaitingFirstHead (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen)
The range of component h is [0, 1048576].
Storage: RegistrarRelay::PendingRegistrations (r:1 w:1)
Proof: RegistrarRelay::PendingRegistrations (max_values: None, max_size: Some(1048676), added: 1051151, mode: MaxEncodedLen)
Storage: RegistrarRelay::CounterForPendingRegistrations (r:1 w:1)
Proof: RegistrarRelay::CounterForPendingRegistrations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
The range of component c is [0, 3145728].
Storage: RegistrarRelay::PendingRegistrations (r:1 w:0)
Proof: RegistrarRelay::PendingRegistrations (max_values: None, max_size: Some(1048676), added: 1051151, mode: MaxEncodedLen)
The range of component c is [0, 3145728].
Source§fn receive_cancel_registration() -> Weight
fn receive_cancel_registration() -> Weight
Storage: RegistrarRelay::PendingRegistrations (r:1 w:1)
Proof: RegistrarRelay::PendingRegistrations (max_values: None, max_size: Some(1048676), added: 1051151, mode: MaxEncodedLen)
Storage: RegistrarRelay::CounterForPendingRegistrations (r:1 w:1)
Proof: RegistrarRelay::CounterForPendingRegistrations (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Source§fn on_new_head() -> Weight
fn on_new_head() -> Weight
Storage: RegistrarRelay::AwaitingFirstHead (r:1 w:1)
Proof: RegistrarRelay::AwaitingFirstHead (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen)
Source§fn on_new_head_already_noted() -> Weight
fn on_new_head_already_noted() -> Weight
Storage: RegistrarRelay::AwaitingFirstHead (r:1 w:0)
Proof: RegistrarRelay::AwaitingFirstHead (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen)