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)>>,
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>
fn can_check_in( origin: &Location, what: &Asset, context: &XcmContext, ) -> Result<(), Error>
Ensure that
check_in
will do as expected. Read moreSource§fn check_in(origin: &Location, what: &Asset, context: &XcmContext)
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>
fn can_check_out( dest: &Location, what: &Asset, context: &XcmContext, ) -> Result<(), Error>
Ensure that
check_out
will do as expected. Read moreSource§fn check_out(dest: &Location, what: &Asset, context: &XcmContext)
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>
fn deposit_asset( what: &Asset, who: &Location, context: Option<&XcmContext>, ) -> Result<(), Error>
Source§fn withdraw_asset(
what: &Asset,
who: &Location,
maybe_context: Option<&XcmContext>,
) -> Result<AssetsInHolding, Error>
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