Function bridge_hub_test_utils::ensure_opened_bridge
source · pub fn ensure_opened_bridge<Runtime, XcmOverBridgePalletInstance, LocationToAccountId, TokenLocation>(
source: Location,
destination: InteriorLocation,
is_paid_xcm_execution: bool,
bridge_opener: impl Fn(BridgeLocations, Option<Asset>),
) -> (BridgeLocations, LaneIdOf<Runtime, XcmOverBridgePalletInstance>)where
Runtime: BasicParachainRuntime + BridgeXcmOverBridgeConfig<XcmOverBridgePalletInstance>,
XcmOverBridgePalletInstance: 'static,
<Runtime as Config>::RuntimeCall: GetDispatchInfo + From<BridgeXcmOverBridgeCall<Runtime, XcmOverBridgePalletInstance>>,
<Runtime as Config>::Balance: From<<<Runtime as Config<<Runtime as Config<XcmOverBridgePalletInstance>>::BridgeMessagesPalletInstance>>::ThisChain as Chain>::Balance> + From<u128>,
LocationToAccountId: ConvertLocation<AccountIdOf<Runtime>>,
TokenLocation: Get<Location>,
Expand description
Helper function to open the bridge/lane for source
and destination
while ensuring all
required balances are placed into the SA of the source.