referrerpolicy=no-referrer-when-downgrade

Trait bp_runtime::Parachain

source ·
pub trait Parachain: Chain {
    const PARACHAIN_ID: u32;
    const MAX_HEADER_SIZE: u32;
}
Expand description

Minimal parachain representation that may be used from no_std environment.

Required Associated Constants§

source

const PARACHAIN_ID: u32

Parachain identifier.

source

const MAX_HEADER_SIZE: u32

Maximal size of the parachain header.

This isn’t a strict limit. The relayer may submit larger headers and the pallet will accept the call. The limit is only used to compute whether the refund can be made.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Parachain for T

source§

const PARACHAIN_ID: u32 = <<T as UnderlyingChainProvider>::Chain as Parachain>::PARACHAIN_ID

source§

const MAX_HEADER_SIZE: u32 = <<T as UnderlyingChainProvider>::Chain as Parachain>::MAX_HEADER_SIZE