referrerpolicy=no-referrer-when-downgrade
pub trait WeightInfoExt: WeightInfo {
    // Required methods
    fn submit_parachain_heads_overhead_from_runtime() -> Weight;
    fn expected_extra_storage_proof_size() -> u32;

    // Provided methods
    fn submit_parachain_heads_weight(
        db_weight: RuntimeDbWeight,
        proof: &impl Size,
        parachains_count: u32,
    ) -> Weight { ... }
    fn parachain_head_storage_write_weight(db_weight: RuntimeDbWeight) -> Weight { ... }
    fn parachain_head_pruning_weight(db_weight: RuntimeDbWeight) -> Weight { ... }
    fn storage_proof_size_overhead(extra_proof_bytes: u32) -> Weight { ... }
}
Expand description

Extended weight info.

Required Methods§

source

fn submit_parachain_heads_overhead_from_runtime() -> Weight

Extra weight that is added to the submit_finality_proof call weight by signed extensions that are declared at runtime level.

source

fn expected_extra_storage_proof_size() -> u32

Storage proof overhead, that is included in every storage proof.

The relayer would pay some extra fee for additional proof bytes, since they mean more hashing operations.

Provided Methods§

source

fn submit_parachain_heads_weight( db_weight: RuntimeDbWeight, proof: &impl Size, parachains_count: u32, ) -> Weight

Weight of the parachain heads delivery extrinsic.

source

fn parachain_head_storage_write_weight(db_weight: RuntimeDbWeight) -> Weight

Returns weight of single parachain head storage update.

This weight only includes db write operations that happens if parachain head is actually updated. All extra weights (weight of storage proof validation, additional checks, …) is not included.

source

fn parachain_head_pruning_weight(db_weight: RuntimeDbWeight) -> Weight

Returns weight of single parachain head pruning.

source

fn storage_proof_size_overhead(extra_proof_bytes: u32) -> Weight

Returns weight that needs to be accounted when storage proof of given size is received.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WeightInfoExt for ()

Implementors§

source§

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