Function substrate_relay_helper::finality::initialize::initialize
source · pub async fn initialize<E: Engine<SourceChain>, SourceChain: Chain, TargetChain: ChainWithTransactions, F>(
source_client: impl Client<SourceChain>,
target_client: impl Client<TargetChain>,
target_signer: AccountKeyPairOf<TargetChain>,
prepare_initialize_transaction: F,
dry_run: bool,
)where
F: FnOnce(TargetChain::Nonce, E::InitializationData) -> Result<UnsignedTransaction<TargetChain>, Error> + Send + 'static,
TargetChain::AccountId: From<<TargetChain::AccountKeyPair as Pair>::Public>,
Expand description
Submit headers-bridge initialization transaction.