Crate bp_header_chain

Source
Expand description

Defines traits which represent a common interface for Substrate pallets which want to incorporate bridge functionality.

Modules§

justification
Logic for checking GRANDPA Finality Proofs.
storage_keys
Storage keys of bridge GRANDPA pallet.

Structs§

AuthoritySet
A GRANDPA Authority List and ID.
GrandpaConsensusLogReader
A struct that provides helper methods for querying the GRANDPA consensus log.
HeaderFinalityInfo
The finality-related info associated to a header.
InitializationData
Data required for initializing the GRANDPA bridge pallet.
StoredHeaderData
Header data that we’re storing on-chain.
SubmitFinalityProofCallExtras
Result of checking maximal expected submit finality proof call weight and size.
SubmitFinalityProofInfo
A digest information on the BridgeGrandpaCall::submit_finality_proof call.

Enums§

BridgeGrandpaCall
A minimized version of pallet-bridge-grandpa::Call that can be used without a runtime.
HeaderChainError
Header chain error.

Traits§

ChainWithGrandpa
Substrate-based chain that is using direct GRANDPA finality.
ConsensusLogReader
A trait that provides helper methods for querying the consensus log.
FinalityProof
Abstract finality proof that is justifying block finality.
FindEquivocations
Helper trait for finding equivocations in finality proofs.
HeaderChain
Substrate header chain, abstracted from the way it is stored.
Parameter
A type that can be used as a parameter in a dispatchable function.
StoredHeaderDataBuilder
Stored header data builder.

Functions§

max_expected_submit_finality_proof_arguments_size
Returns maximal expected size of submit_finality_proof call arguments.
submit_finality_proof_limits_extras
Checks whether the given header and its finality proof 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§

BridgeGrandpaCallOf
The BridgeGrandpaCall for a pallet that bridges with given C;
HeaderGrandpaInfo
Processed Grandpa-related info associated to a header.
StoredHeaderGrandpaInfo
Grandpa-related info associated to a header. This info can be saved to events.