referrerpolicy=no-referrer-when-downgrade

Trait staging_xcm_executor::traits::XcmAssetTransfers

source ·
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§

source

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.

source

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.

source

type AssetTransactor: TransactAsset

How to withdraw and deposit an asset.

Provided Methods§

source

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.

Implementations on Foreign Types§

source§

impl XcmAssetTransfers for ()

Implementors§

source§

impl<Config: Config> XcmAssetTransfers for XcmExecutor<Config>

§

type IsReserve = <Config as Config>::IsReserve

§

type IsTeleporter = <Config as Config>::IsTeleporter

§

type AssetTransactor = <Config as Config>::AssetTransactor