pub trait XcmAssetTransfers {
type IsReserve: ContainsPair<Asset, Location>;
type IsTeleporter: ContainsPair<Asset, Location>;
type AssetTransactor: TransactAsset;
// Provided method
fn determine_for(
asset: &Asset,
dest: &Location,
) -> Result<TransferType, Error> { ... }
}
Expand description
A trait for identifying asset transfer type based on IsTeleporter
and IsReserve
configurations.
Required Associated Types§
sourcetype IsReserve: ContainsPair<Asset, Location>
type IsReserve: ContainsPair<Asset, Location>
Combinations of (Asset, Location) pairs which we trust as reserves. Meaning reserve-based-transfers are to be used for assets matching this filter.
sourcetype IsTeleporter: ContainsPair<Asset, Location>
type IsTeleporter: ContainsPair<Asset, Location>
Combinations of (Asset, Location) pairs which we trust as teleporters. Meaning teleports are to be used for assets matching this filter.
sourcetype AssetTransactor: TransactAsset
type AssetTransactor: TransactAsset
How to withdraw and deposit an asset.
Provided Methods§
sourcefn determine_for(asset: &Asset, dest: &Location) -> Result<TransferType, Error>
fn determine_for(asset: &Asset, dest: &Location) -> Result<TransferType, Error>
Determine transfer type to be used for transferring asset
from local chain to dest
.
Object Safety§
This trait is not object safe.