pub trait BridgeInitializer: CliBridgeBasewhere
<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§
Required Methods§
sourcefn encode_init_bridge(
init_data: <Self::Engine as Engine<Self::Source>>::InitializationData,
) -> <Self::Target as Chain>::Call
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§
sourcefn init_bridge<'async_trait>(
data: InitBridgeParams,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
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.