Type Alias shiden_runtime::xcm_config::CurrencyTransactor
source · pub type CurrencyTransactor = FungibleAdapter<Balances, IsConcrete<ShidenLocation>, LocationToAccountId, AccountId, ()>;
Expand description
Means for transacting the native currency on this chain.
Aliased Type§
struct CurrencyTransactor(/* private fields */);
Trait Implementations
§impl<Fungible, Matcher, AccountIdConverter, AccountId, CheckingAccount> TransactAsset for FungibleAdapter<Fungible, Matcher, AccountIdConverter, AccountId, CheckingAccount>
impl<Fungible, Matcher, AccountIdConverter, AccountId, CheckingAccount> TransactAsset for FungibleAdapter<Fungible, Matcher, AccountIdConverter, AccountId, CheckingAccount>
§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 more§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
§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 more§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
§fn deposit_asset(
what: &Asset,
who: &Location,
context: Option<&XcmContext>,
) -> Result<(), Error>
fn deposit_asset( what: &Asset, who: &Location, context: Option<&XcmContext>, ) -> Result<(), Error>
§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