Trait orml_traits::xcm_transfer::XcmTransfer
source · pub trait XcmTransfer<AccountId, Balance, CurrencyId> {
fn transfer(
who: AccountId,
currency_id: CurrencyId,
amount: Balance,
dest: MultiLocation,
dest_weight: Weight
) -> DispatchResult;
fn transfer_multi_asset(
who: AccountId,
asset: MultiAsset,
dest: MultiLocation,
dest_weight: Weight
) -> DispatchResult;
}
Expand description
Abstraction over cross-chain token transfers.
Required Methods§
sourcefn transfer(
who: AccountId,
currency_id: CurrencyId,
amount: Balance,
dest: MultiLocation,
dest_weight: Weight
) -> DispatchResult
fn transfer(
who: AccountId,
currency_id: CurrencyId,
amount: Balance,
dest: MultiLocation,
dest_weight: Weight
) -> DispatchResult
Transfer native currencies.
sourcefn transfer_multi_asset(
who: AccountId,
asset: MultiAsset,
dest: MultiLocation,
dest_weight: Weight
) -> DispatchResult
fn transfer_multi_asset(
who: AccountId,
asset: MultiAsset,
dest: MultiLocation,
dest_weight: Weight
) -> DispatchResult
Transfer MultiAsset