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§
- Authority
Set - A GRANDPA Authority List and ID.
- Grandpa
Consensus LogReader - A struct that provides helper methods for querying the GRANDPA consensus log.
- Header
Finality Info - The finality-related info associated to a header.
- Initialization
Data - Data required for initializing the GRANDPA bridge pallet.
- Stored
Header Data - Header data that we’re storing on-chain.
- Submit
Finality Proof Call Extras - Result of checking maximal expected submit finality proof call weight and size.
- Submit
Finality Proof Info - A digest information on the
BridgeGrandpaCall::submit_finality_proof
call.
Enums§
- Bridge
Grandpa Call - A minimized version of
pallet-bridge-grandpa::Call
that can be used without a runtime. - Header
Chain Error - Header chain error.
Traits§
- Chain
With Grandpa - Substrate-based chain that is using direct GRANDPA finality.
- Consensus
LogReader - A trait that provides helper methods for querying the consensus log.
- Finality
Proof - Abstract finality proof that is justifying block finality.
- Find
Equivocations - Helper trait for finding equivocations in finality proofs.
- Header
Chain - Substrate header chain, abstracted from the way it is stored.
- Parameter
- A type that can be used as a parameter in a dispatchable function.
- Stored
Header Data Builder - 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 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§
- Bridge
Grandpa Call Of - The
BridgeGrandpaCall
for a pallet that bridges with givenC
; - Header
Grandpa Info - Processed Grandpa-related info associated to a header.
- Stored
Header Grandpa Info - Grandpa-related info associated to a header. This info can be saved to events.