referrerpolicy=no-referrer-when-downgrade
westend_runtime::xcm_config

Type Alias LocalAssetTransactor

Source
pub type LocalAssetTransactor = FungibleAdapter<Balances, IsConcrete<TokenLocation>, LocationConverter, AccountId, LocalCheckAccount>;

Aliased Type§

struct LocalAssetTransactor(/* private fields */);

Trait Implementations

Source§

impl<Fungible, Matcher, AccountIdConverter, AccountId, CheckingAccount> TransactAsset for FungibleAdapter<Fungible, Matcher, AccountIdConverter, AccountId, CheckingAccount>
where Fungible: Mutate<AccountId>, Matcher: MatchesFungible<<Fungible as Inspect<AccountId>>::Balance>, AccountIdConverter: ConvertLocation<AccountId>, AccountId: Eq + Clone, CheckingAccount: Get<Option<(AccountId, MintLocation)>>,

Source§

fn can_check_in( origin: &Location, what: &Asset, context: &XcmContext, ) -> Result<(), Error>

Ensure that check_in will do as expected. Read more
Source§

fn check_in(origin: &Location, what: &Asset, context: &XcmContext)

An asset has been teleported in from the given origin. This should do whatever housekeeping is needed. Read more
Source§

fn can_check_out( dest: &Location, what: &Asset, context: &XcmContext, ) -> Result<(), Error>

Ensure that check_out will do as expected. Read more
Source§

fn check_out(dest: &Location, what: &Asset, context: &XcmContext)

An asset has been teleported out to the given destination. This should do whatever housekeeping is needed. Read more
Source§

fn deposit_asset( what: &Asset, who: &Location, context: Option<&XcmContext>, ) -> Result<(), Error>

Deposit the what asset into the account of who. Read more
Source§

fn withdraw_asset( what: &Asset, who: &Location, maybe_context: Option<&XcmContext>, ) -> Result<AssetsInHolding, Error>

Withdraw the given asset from the consensus system. Return the actual asset(s) withdrawn, which should always be equal to _what. Read more
Source§

fn internal_transfer_asset( what: &Asset, from: &Location, to: &Location, context: &XcmContext, ) -> Result<AssetsInHolding, Error>

Move an asset from one location in to another location. Read more
Source§

fn transfer_asset( asset: &Asset, from: &Location, to: &Location, context: &XcmContext, ) -> Result<AssetsInHolding, Error>

Move an asset from one location in to another location. Read more