Function pallet_xcm_bridge_hub::pallet::dispatchables::open_bridge
source · pub fn open_bridge<T: Config<I>, I: 'static>(
bridge_destination_universal_location: Box<VersionedInteriorLocation>,
)
Expand description
Open a bridge between two locations.
The caller must be within the T::OpenBridgeOrigin
filter (presumably: a sibling
parachain or a parent relay chain). The bridge_destination_universal_location
must be
a destination within the consensus of the T::BridgedNetwork
network.
The BridgeDeposit
amount is reserved on the caller account. This deposit
is unreserved after bridge is closed.
The states after this call: bridge is Opened
, outbound lane is Opened
, inbound lane
is Opened
.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::open_bridge
.