referrerpolicy=no-referrer-when-downgrade
pub trait BridgeInitializer: CliBridgeBase
where <Self::Target as ChainBase>::AccountId: From<<AccountKeyPairOf<Self::Target> as Pair>::Public>,
{ type Engine: Engine<Self::Source>; // Required method fn encode_init_bridge( init_data: <Self::Engine as Engine<Self::Source>>::InitializationData, ) -> <Self::Target as Chain>::Call; // Provided method fn init_bridge<'async_trait>( data: InitBridgeParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: Send + 'async_trait { ... } }
Expand description

Trait used for bridge initializing.

Required Associated Types§

source

type Engine: Engine<Self::Source>

The finality engine used by the source chain.

Required Methods§

source

fn encode_init_bridge( init_data: <Self::Engine as Engine<Self::Source>>::InitializationData, ) -> <Self::Target as Chain>::Call

Get the encoded call to init the bridge.

Provided Methods§

source

fn init_bridge<'async_trait>( data: InitBridgeParams, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Send + 'async_trait,

Initialize the bridge.

Object Safety§

This trait is not object safe.

Implementors§