referrerpolicy=no-referrer-when-downgrade
pallet_bridge_grandpa::weights

Trait 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§

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 ()

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>