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
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.