Trait xcm_builder::ExporterFor
source · pub trait ExporterFor {
// Required method
fn exporter_for(
network: &NetworkId,
remote_location: &InteriorMultiLocation,
message: &Xcm<()>
) -> Option<(MultiLocation, Option<MultiAsset>)>;
}
Required Methods§
sourcefn exporter_for(
network: &NetworkId,
remote_location: &InteriorMultiLocation,
message: &Xcm<()>
) -> Option<(MultiLocation, Option<MultiAsset>)>
fn exporter_for( network: &NetworkId, remote_location: &InteriorMultiLocation, message: &Xcm<()> ) -> Option<(MultiLocation, Option<MultiAsset>)>
Return the locally-routable bridge (if any) capable of forwarding message
to the
remote_location
on the remote network
, together with the payment which is required.
The payment is specified from the local context, not the bridge chain. This is the
total amount to withdraw in to Holding and should cover both payment for the execution on
the bridge chain as well as payment for the use of the ExportMessage
instruction.