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

Trait SubstrateMessageLane

Source
pub trait SubstrateMessageLane:
    'static
    + Clone
    + Debug
    + Send
    + Sync {
    type SourceChain: ChainWithMessages + ChainWithTransactions;
    type TargetChain: ChainWithMessages + ChainWithTransactions;
    type LaneId: Clone + Copy + Debug + Codec + EncodeLike + Send + Sync + Labeled + TryFrom<Vec<u8>> + Default;
    type ReceiveMessagesProofCallBuilder: ReceiveMessagesProofCallBuilder<Self>;
    type ReceiveMessagesDeliveryProofCallBuilder: ReceiveMessagesDeliveryProofCallBuilder<Self>;
    type SourceBatchCallBuilder: BatchCallBuilderConstructor<CallOf<Self::SourceChain>>;
    type TargetBatchCallBuilder: BatchCallBuilderConstructor<CallOf<Self::TargetChain>>;
}
Expand description

Substrate -> Substrate messages synchronization pipeline.

Required Associated Types§

Source

type SourceChain: ChainWithMessages + ChainWithTransactions

Messages of this chain are relayed to the TargetChain.

Source

type TargetChain: ChainWithMessages + ChainWithTransactions

Messages from the SourceChain are dispatched on this chain.

Source

type LaneId: Clone + Copy + Debug + Codec + EncodeLike + Send + Sync + Labeled + TryFrom<Vec<u8>> + Default

Lane identifier type.

Source

type ReceiveMessagesProofCallBuilder: ReceiveMessagesProofCallBuilder<Self>

How receive messages proof call is built?

Source

type ReceiveMessagesDeliveryProofCallBuilder: ReceiveMessagesDeliveryProofCallBuilder<Self>

How receive messages delivery proof call is built?

Source

type SourceBatchCallBuilder: BatchCallBuilderConstructor<CallOf<Self::SourceChain>>

How batch calls are built at the source chain?

Source

type TargetBatchCallBuilder: BatchCallBuilderConstructor<CallOf<Self::TargetChain>>

How batch calls are built 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§