Crate bp_header_chain
source ·Expand description
Defines traits which represent a common interface for Substrate pallets which want to incorporate bridge functionality.
Modules§
- Logic for checking GRANDPA Finality Proofs.
- Storage keys of bridge GRANDPA pallet.
Structs§
- A GRANDPA Authority List and ID.
- A struct that provides helper methods for querying the GRANDPA consensus log.
- The finality-related info associated to a header.
- Data required for initializing the GRANDPA bridge pallet.
- Header data that we’re storing on-chain.
- Result of checking maximal expected submit finality proof call weight and size.
- A digest information on the
BridgeGrandpaCall::submit_finality_proof
call.
Enums§
- A minimized version of
pallet-bridge-grandpa::Call
that can be used without a runtime. - Header chain error.
Traits§
- Substrate-based chain that is using direct GRANDPA finality.
- A trait that provides helper methods for querying the consensus log.
- Abstract finality proof that is justifying block finality.
- Helper trait for finding equivocations in finality proofs.
- Substrate header chain, abstracted from the way it is stored.
- A type that can be used as a parameter in a dispatchable function.
- Stored header data builder.
Functions§
- Returns maximal expected size of
submit_finality_proof
call arguments. - Checks whether the given
header
and its finalityproof
fit the maximal expected call limits (size and weight). The submission may be refunded sometimes (see pallet configuration for details), but it should fit some limits. If the call has some extra weight and/or size included, though, we won’t refund it or refund will be partial.
Type Aliases§
- The
BridgeGrandpaCall
for a pallet that bridges with givenC
; - Processed Grandpa-related info associated to a header.
- Grandpa-related info associated to a header. This info can be saved to events.