referrerpolicy=no-referrer-when-downgrade
pub trait SubmitFinalityProofCallBuilder<P: SubstrateFinalitySyncPipeline> {
    // Required method
    fn build_submit_finality_proof_call(
        header: SyncHeader<HeaderOf<P::SourceChain>>,
        proof: SubstrateFinalityProof<P>,
        is_free_execution_expected: bool,
        context: <<P as SubstrateFinalityPipeline>::FinalityEngine as Engine<P::SourceChain>>::FinalityVerificationContext,
    ) -> CallOf<P::TargetChain>;
}
Expand description

Different ways of building submit_finality_proof calls.

Required Methods§

source

fn build_submit_finality_proof_call( header: SyncHeader<HeaderOf<P::SourceChain>>, proof: SubstrateFinalityProof<P>, is_free_execution_expected: bool, context: <<P as SubstrateFinalityPipeline>::FinalityEngine as Engine<P::SourceChain>>::FinalityVerificationContext, ) -> CallOf<P::TargetChain>

Given source chain header, its finality proof and the current authority set id, build call of submit_finality_proof function of bridge GRANDPA module at the target chain.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<P, R, I> SubmitFinalityProofCallBuilder<P> for DirectSubmitGrandpaFinalityProofCallBuilder<P, R, I>
where P: SubstrateFinalitySyncPipeline, R: BridgeGrandpaConfig<I>, I: 'static, R::BridgedChain: Chain<Header = HeaderOf<P::SourceChain>>, CallOf<P::TargetChain>: From<Call<R, I>>, P::FinalityEngine: Engine<P::SourceChain, FinalityProof = GrandpaJustification<HeaderOf<P::SourceChain>>, FinalityVerificationContext = JustificationVerificationContext>,