Re-exports§
pub use crate::ASSETS_PALLET_ID;
pub use crate::USDT_ID;
pub use paste;
pub use pallet_asset_conversion;
pub use pallet_assets;
pub use pallet_balances;
pub use pallet_message_queue;
pub use pallet_xcm;
pub use xcm::prelude::AliasOrigin;
pub use xcm::prelude::All;
pub use xcm::prelude::AllCounted;
pub use xcm::prelude::BuyExecution;
pub use xcm::prelude::DepositAsset;
pub use xcm::prelude::ExpectTransactStatus;
pub use xcm::prelude::Fungible;
pub use xcm::prelude::GeneralIndex;
pub use xcm::prelude::Here;
pub use xcm::prelude::InitiateTransfer;
pub use xcm::prelude::PalletInstance;
pub use xcm::prelude::Parachain;
pub use xcm::prelude::PayFees;
pub use xcm::prelude::RefundSurplus;
pub use xcm::prelude::Transact;
pub use xcm::prelude::Unlimited;
pub use xcm::prelude::Wild;
pub use xcm::prelude::WithdrawAsset;
pub use asset_test_utils;
pub use cumulus_pallet_xcmp_queue;
Macros§
- Panic if an expression doesn’t evaluate to
Ok
.
Structs§
- An opaque 32-byte cryptographic identifier.
- Either an amount of a single fungible asset, or a single well-identified non-fungible asset.
- Location to identify an asset.
- A
Vec
ofAsset
s. - A bounded vector.
- The
Pallet
struct, the main type that implements traits and standalone functions within the pallet. - A relative path between state-bearing consensus systems.
- A unit struct which can be converted into a
Location
ofparents
value 1. - Default
Args
provided by xcm-emulator to be stored in aTest
instance - Auxiliar struct to help creating a new
Test
instance - Contextual data pertaining to a specific list of XCM instructions.
Enums§
- Matches assets based on inner
AssetFilter
and tags them for a specific type of asset transfer. Please note: the transfer type is specific to each particular(asset, source, dest)
combination, so it should always be built in the context ofsource
after knowingdest
. - A single item in a path to describe the relative location of a consensus system.
- Basically just the XCM (more general) version of
ParachainDispatchOrigin
. - Outcome of an XCM execution.
- Origin for the System pallet.
- A single version’s
AssetId
value, together with its version code. - A single
MultiAssets
value, together with its version code. - A single
Location
value, together with its version code. - A single XCM message, together with its version code.
- An optional weight limit.
Constants§
Traits§
- Abstraction over a fungible assets system.
- A lazy call (module function and argument values) that can be executed via its
dispatch
method. - Define a handler for when some non-empty
AssetsInHolding
value should be dropped. - API for dry-running extrinsics and XCM programs to get the programs that need to be passed to the fees API.
- A
Dispatchable
function (aka transaction) that can carry some static information along with it, using the#[pallet::weight]
attribute. - Trait for providing balance-inspection access to a set of named fungible assets.
- Trait for providing a basic fungible asset.
- A trait that describes the weight to fee calculation.
- A trait of XCM payment API.
Type Aliases§
- Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.