referrerpolicy=no-referrer-when-downgrade
substrate_relay_helper::messages

Trait ReceiveMessagesProofCallBuilder

Source
pub trait ReceiveMessagesProofCallBuilder<P: SubstrateMessageLane> {
    // Required method
    fn build_receive_messages_proof_call(
        relayer_id_at_source: AccountIdOf<P::SourceChain>,
        proof: SubstrateMessagesProof<P::SourceChain, P::LaneId>,
        messages_count: u32,
        dispatch_weight: Weight,
        trace_call: bool,
    ) -> CallOf<P::TargetChain>;
}
Expand description

Different ways of building receive_messages_proof calls.

Required Methods§

Source

fn build_receive_messages_proof_call( relayer_id_at_source: AccountIdOf<P::SourceChain>, proof: SubstrateMessagesProof<P::SourceChain, P::LaneId>, messages_count: u32, dispatch_weight: Weight, trace_call: bool, ) -> CallOf<P::TargetChain>

Given messages proof, build call of receive_messages_proof function of bridge messages module at the target chain.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P, R, I> ReceiveMessagesProofCallBuilder<P> for DirectReceiveMessagesProofCallBuilder<P, R, I>
where P: SubstrateMessageLane, R: BridgeMessagesConfig<I, LaneId = P::LaneId>, I: 'static, R::BridgedChain: Chain<AccountId = AccountIdOf<P::SourceChain>, Hash = HashOf<P::SourceChain>>, CallOf<P::TargetChain>: From<Call<R, I>> + GetDispatchInfo,