referrerpolicy=no-referrer-when-downgrade

Trait pallet_bridge_messages::weights::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn receive_single_message_proof() -> Weight;
    fn receive_n_messages_proof(n: u32) -> Weight;
    fn receive_single_message_proof_with_outbound_lane_state() -> Weight;
    fn receive_single_n_bytes_message_proof(n: u32) -> Weight;
    fn receive_delivery_proof_for_single_message() -> Weight;
    fn receive_delivery_proof_for_two_messages_by_single_relayer() -> Weight;
    fn receive_delivery_proof_for_two_messages_by_two_relayers() -> Weight;
    fn receive_single_n_bytes_message_proof_with_dispatch(n: u32) -> Weight;
}
Expand description

Weight functions needed for pallet_bridge_messages.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn receive_single_message_proof() -> Weight

Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)

Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)

Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen)

Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)

Proof: BridgeUnknownMessages InboundLanes (max_values: None, max_size: Some(49180), added: 51655, mode: MaxEncodedLen)

source§

fn receive_n_messages_proof(n: u32) -> Weight

Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0)

Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0)

Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen)

Storage: BridgeRialtoMessages InboundLanes (r:1 w:1)

Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49208), added: 51683, mode: MaxEncodedLen)

The range of component n is [1, 1004].

The range of component n is [1, 1004].

source§

fn receive_single_message_proof_with_outbound_lane_state() -> Weight

Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)

Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)

Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen)

Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)

Proof: BridgeUnknownMessages InboundLanes (max_values: None, max_size: Some(49180), added: 51655, mode: MaxEncodedLen)

source§

fn receive_single_n_bytes_message_proof(n: u32) -> Weight

Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)

Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)

Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen)

Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)

Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49208), added: 51683, mode: MaxEncodedLen)

The range of component n is [1, 16384].

The range of component n is [1, 16384].

source§

fn receive_delivery_proof_for_single_message() -> Weight

Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)

Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)

Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen)

Storage: BridgeUnknownMessages OutboundLanes (r:1 w:1)

Proof: BridgeUnknownMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added: 539, mode: MaxEncodedLen)

Storage: BridgeRelayers RelayerRewards (r:1 w:1)

Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)

Storage: BridgeRialtoMessages OutboundMessages (r:0 w:1)

Proof: BridgeRialtoMessages OutboundMessages (max_values: None, max_size: Some(65596), added: 68071, mode: MaxEncodedLen)

source§

fn receive_delivery_proof_for_two_messages_by_single_relayer() -> Weight

Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)

Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)

Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen)

Storage: BridgeUnknownMessages OutboundLanes (r:1 w:1)

Proof: BridgeUnknownMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added: 539, mode: MaxEncodedLen)

Storage: BridgeRelayers RelayerRewards (r:1 w:1)

Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)

Storage: BridgeRialtoMessages OutboundMessages (r:0 w:2)

Proof: BridgeRialtoMessages OutboundMessages (max_values: None, max_size: Some(65596), added: 68071, mode: MaxEncodedLen)

source§

fn receive_delivery_proof_for_two_messages_by_two_relayers() -> Weight

Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)

Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)

Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen)

Storage: BridgeUnknownMessages OutboundLanes (r:1 w:1)

Proof: BridgeUnknownMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added: 539, mode: MaxEncodedLen)

Storage: BridgeRelayers RelayerRewards (r:2 w:2)

Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)

Storage: BridgeRialtoMessages OutboundMessages (r:0 w:2)

Proof: BridgeRialtoMessages OutboundMessages (max_values: None, max_size: Some(65596), added: 68071, mode: MaxEncodedLen)

source§

fn receive_single_n_bytes_message_proof_with_dispatch(n: u32) -> Weight

Storage: BridgeUnknownMessages PalletOperatingMode (r:1 w:0)

Proof: BridgeUnknownMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa ImportedHeaders (r:1 w:0)

Proof: BridgeUnknownGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen)

Storage: BridgeUnknownMessages InboundLanes (r:1 w:1)

Proof: BridgeUnknownMessages InboundLanes (max_values: None, max_size: Some(49180), added: 51655, mode: MaxEncodedLen)

The range of component n is [1, 16384].

Implementors§

source§

impl<T: Config> WeightInfo for BridgeWeight<T>