referrerpolicy=no-referrer-when-downgrade

Trait pallet_bridge_grandpa::weights::WeightInfo

source ·
pub trait WeightInfo {
    // Required methods
    fn submit_finality_proof(p: u32, v: u32) -> Weight;
    fn force_set_pallet_state() -> Weight;
}
Expand description

Weight functions needed for pallet_bridge_grandpa.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfo for ()

source§

fn submit_finality_proof(p: u32, v: u32) -> Weight

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

Proof: BridgeUnknownGrandpa PalletOperatingMode (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa RequestCount (r:1 w:1)

Proof: BridgeUnknownGrandpa RequestCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa BestFinalized (r:1 w:1)

Proof: BridgeUnknownGrandpa BestFinalized (max_values: Some(1), max_size: Some(36), added: 531, mode: MaxEncodedLen)

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

Proof: BridgeUnknownGrandpa CurrentAuthoritySet (max_values: Some(1), max_size: Some(209), added: 704, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa ImportedHashesPointer (r:1 w:1)

Proof: BridgeUnknownGrandpa ImportedHashesPointer (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Storage: BridgeUnknownGrandpa ImportedHashes (r:1 w:1)

Proof: BridgeUnknownGrandpa ImportedHashes (max_values: Some(14400), max_size: Some(36), added: 2016, mode: MaxEncodedLen)

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

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

The range of component p is [1, 4].

The range of component v is [50, 100].

source§

fn force_set_pallet_state() -> Weight

Storage: BridgeWestendGrandpa::CurrentAuthoritySet (r:1 w:1) Proof: BridgeWestendGrandpa::CurrentAuthoritySet (max_values: Some(1), max_size: Some(50250), added: 50745, mode: MaxEncodedLen) Storage: BridgeWestendGrandpa::ImportedHashesPointer (r:1 w:1) Proof: BridgeWestendGrandpa::ImportedHashesPointer (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) Storage: BridgeWestendGrandpa::ImportedHashes (r:1 w:1) Proof: BridgeWestendGrandpa::ImportedHashes (max_values: Some(1024), max_size: Some(36), added: 1521, mode: MaxEncodedLen) Storage: BridgeWestendGrandpa::BestFinalized (r:0 w:1) Proof: BridgeWestendGrandpa::BestFinalized (max_values: Some(1), max_size: Some(36), added: 531, mode: MaxEncodedLen) Storage: BridgeWestendGrandpa::ImportedHeaders (r:0 w:2) Proof: BridgeWestendGrandpa::ImportedHeaders (max_values: Some(1024), max_size: Some(68), added: 1553, mode: MaxEncodedLen)

Implementors§

source§

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