pub trait MessagesRelayer: MessagesCliBridgewhere
Self::Source: ChainWithTransactions + ChainWithRuntimeVersion,
AccountIdOf<Self::Source>: From<<AccountKeyPairOf<Self::Source> as Pair>::Public>,
AccountIdOf<Self::Target>: From<<AccountKeyPairOf<Self::Target> as Pair>::Public>,
BalanceOf<Self::Source>: TryFrom<BalanceOf<Self::Target>>,{
// Provided methods
fn relay_messages<'async_trait>(
data: RelayMessagesParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait { ... }
fn relay_messages_range<'async_trait>(
data: RelayMessagesRangeParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait { ... }
fn relay_messages_delivery_confirmation<'async_trait>(
data: RelayMessagesDeliveryConfirmationParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait { ... }
fn start_relay_guards<'life0, 'async_trait>(
target_client: &'life0 (impl 'async_trait + Client<Self::Target>),
enable_version_guard: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Trait used for relaying messages between 2 chains.
Provided Methods§
sourcefn relay_messages<'async_trait>(
data: RelayMessagesParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn relay_messages<'async_trait>(
data: RelayMessagesParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
Start relaying messages.
sourcefn relay_messages_range<'async_trait>(
data: RelayMessagesRangeParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn relay_messages_range<'async_trait>(
data: RelayMessagesRangeParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
Relay a consequitive range of messages.
sourcefn relay_messages_delivery_confirmation<'async_trait>(
data: RelayMessagesDeliveryConfirmationParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn relay_messages_delivery_confirmation<'async_trait>(
data: RelayMessagesDeliveryConfirmationParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
Relay a messages delivery confirmation.
Object Safety§
This trait is not object safe.