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;
fn receive_deregister() -> Weight;
fn receive_set_current_head(h: u32) -> Weight;
fn receive_authorize_code_upgrade() -> Weight;
fn authorize_apply_authorized_code_upgrade(c: u32) -> Weight;
fn apply_authorized_code_upgrade(c: u32) -> 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
fn receive_deregister() -> Weight
fn receive_set_current_head(h: 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 receive_register(h: u32) -> Weight
fn receive_register(h: u32) -> Weight
Storage: UNKNOWN KEY 0x416363657074696e6752656769737472617292100000 (r:1 w:0)
Proof: UNKNOWN KEY 0x416363657074696e6752656769737472617292100000 (r:1 w:0)
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)
Storage: UNKNOWN KEY 0x416363657074696e6752656769737472617292100000 (r:0 w:1)
Proof: UNKNOWN KEY 0x416363657074696e6752656769737472617292100000 (r:0 w:1)
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)
Storage: UNKNOWN KEY 0x416363657074696e6752656769737472617292100000 (r:1 w:0)
Proof: UNKNOWN KEY 0x416363657074696e6752656769737472617292100000 (r:1 w:0)
Storage: RegistrarRelay::AwaitingFirstHead (r:0 w:1)
Proof: RegistrarRelay::AwaitingFirstHead (max_values: None, max_size: Some(20), added: 2495, 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)
Source§fn receive_deregister() -> Weight
fn receive_deregister() -> Weight
Storage: UNKNOWN KEY 0x416363657074696e6752656769737472617292100000 (r:0 w:1)
Proof: UNKNOWN KEY 0x416363657074696e6752656769737472617292100000 (r:0 w:1)
Storage: RegistrarRelay::AwaitingFirstHead (r:0 w:1)
Proof: RegistrarRelay::AwaitingFirstHead (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen)
Source§fn receive_set_current_head(h: u32) -> Weight
fn receive_set_current_head(h: u32) -> Weight
Storage: UNKNOWN KEY 0x416363657074696e6752656769737472617292100000 (r:1 w:0)
Proof: UNKNOWN KEY 0x416363657074696e6752656769737472617292100000 (r:1 w:0)
The range of component h is [0, 1048576].
Storage: UNKNOWN KEY 0x1c5b7931414d5d82c2165c2278c2c400 (r:1 w:0)
Proof: UNKNOWN KEY 0x1c5b7931414d5d82c2165c2278c2c400 (r:1 w:0)
Storage: RegistrarRelay::PendingCodeUpgrades (r:0 w:1)
Proof: RegistrarRelay::PendingCodeUpgrades (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
Storage: RegistrarRelay::PendingCodeUpgrades (r:1 w:0)
Proof: RegistrarRelay::PendingCodeUpgrades (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
The range of component c is [9, 3145728].
Storage: RegistrarRelay::PendingCodeUpgrades (r:1 w:1)
Proof: RegistrarRelay::PendingCodeUpgrades (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
The range of component c is [9, 3145728].