pub type FungiblesTransactor = FungiblesAdapter<Assets, (ConvertedConcreteId<AssetId, Balance, AsPrefixedGeneralIndex<AssetsPalletLocation, AssetId, JustTry>, JustTry>, ConvertedConcreteId<AssetId, Balance, AsPrefixedGeneralIndex<SystemAssetHubAssetsPalletLocation, AssetId, JustTry>, JustTry>), LocationToAccountId, AccountId, LocalMint<NonZeroIssuance<AccountId, Assets>>, CheckingAccount>;
Expand description
Means for transacting assets besides the native currency on this chain.
Aliased Type§
struct FungiblesTransactor(/* private fields */);
Trait Implementations
Source§impl<Assets, Matcher, AccountIdConverter, AccountId, CheckAsset, CheckingAccount> TransactAsset for FungiblesAdapter<Assets, Matcher, AccountIdConverter, AccountId, CheckAsset, CheckingAccount>where
Assets: Mutate<AccountId>,
Matcher: MatchesFungibles<<Assets as Inspect<AccountId>>::AssetId, <Assets as Inspect<AccountId>>::Balance>,
AccountIdConverter: ConvertLocation<AccountId>,
AccountId: Eq + Clone + Debug,
CheckAsset: AssetChecking<<Assets as Inspect<AccountId>>::AssetId>,
CheckingAccount: Get<AccountId>,
impl<Assets, Matcher, AccountIdConverter, AccountId, CheckAsset, CheckingAccount> TransactAsset for FungiblesAdapter<Assets, Matcher, AccountIdConverter, AccountId, CheckAsset, CheckingAccount>where
Assets: Mutate<AccountId>,
Matcher: MatchesFungibles<<Assets as Inspect<AccountId>>::AssetId, <Assets as Inspect<AccountId>>::Balance>,
AccountIdConverter: ConvertLocation<AccountId>,
AccountId: Eq + Clone + Debug,
CheckAsset: AssetChecking<<Assets as Inspect<AccountId>>::AssetId>,
CheckingAccount: Get<AccountId>,
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