referrerpolicy=no-referrer-when-downgrade
bp_header_chain

Type Alias BridgeGrandpaCallOf

Source
pub type BridgeGrandpaCallOf<C> = BridgeGrandpaCall<HeaderOf<C>>;
Expand description

The BridgeGrandpaCall for a pallet that bridges with given C;

Aliased Type§

enum BridgeGrandpaCallOf<C> {
    submit_finality_proof {
        finality_target: Box<<C as Chain>::Header>,
        justification: GrandpaJustification<<C as Chain>::Header>,
    },
    initialize {
        init_data: InitializationData<<C as Chain>::Header>,
    },
    submit_finality_proof_ex {
        finality_target: Box<<C as Chain>::Header>,
        justification: GrandpaJustification<<C as Chain>::Header>,
        current_set_id: u64,
    },
}

Variants§

§

submit_finality_proof

pallet-bridge-grandpa::Call::submit_finality_proof

Fields

§finality_target: Box<<C as Chain>::Header>

The header that we are going to finalize.

§justification: GrandpaJustification<<C as Chain>::Header>

Finality justification for the finality_target.

§

initialize

pallet-bridge-grandpa::Call::initialize

Fields

§init_data: InitializationData<<C as Chain>::Header>

All data, required to initialize the pallet.

§

submit_finality_proof_ex

pallet-bridge-grandpa::Call::submit_finality_proof_ex

Fields

§finality_target: Box<<C as Chain>::Header>

The header that we are going to finalize.

§justification: GrandpaJustification<<C as Chain>::Header>

Finality justification for the finality_target.

§current_set_id: u64

An identifier of the validators set, that have signed the justification.

Trait Implementations

Source§

impl<Header: Clone + HeaderT> Clone for BridgeGrandpaCall<Header>

Source§

fn clone(&self) -> BridgeGrandpaCall<Header>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Header: Debug + HeaderT> Debug for BridgeGrandpaCall<Header>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Header: HeaderT> Decode for BridgeGrandpaCall<Header>
where Box<Header>: Decode, GrandpaJustification<Header>: Decode, InitializationData<Header>: Decode,

Source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>

Attempt to deserialise the value from input.
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
Source§

impl<Header: HeaderT> Encode for BridgeGrandpaCall<Header>
where Box<Header>: Encode, GrandpaJustification<Header>: Encode, InitializationData<Header>: Encode,

Source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
Source§

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
Source§

impl<Header: PartialEq + HeaderT> PartialEq for BridgeGrandpaCall<Header>

Source§

fn eq(&self, other: &BridgeGrandpaCall<Header>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Header> TypeInfo for BridgeGrandpaCall<Header>
where Box<Header>: TypeInfo + 'static, GrandpaJustification<Header>: TypeInfo + 'static, InitializationData<Header>: TypeInfo + 'static, Header: HeaderT + TypeInfo + 'static,

Source§

type Identity = BridgeGrandpaCall<Header>

The type identifying for which type info is provided. Read more
Source§

fn type_info() -> Type

Returns the static type identifier for Self.
Source§

impl<Header: HeaderT> EncodeLike for BridgeGrandpaCall<Header>
where Box<Header>: Encode, GrandpaJustification<Header>: Encode, InitializationData<Header>: Encode,

Source§

impl<Header: Eq + HeaderT> Eq for BridgeGrandpaCall<Header>

Source§

impl<Header: HeaderT> StructuralPartialEq for BridgeGrandpaCall<Header>