Module staging_xcm_builder::test_utils
source · Modules§
Structs§
- A unit struct which can be converted into a
Location
of the innerparents
value. - A unit struct which can be converted into a
Location
of the innerparents
value and the inner interior. - 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. - Map of non-wildcard fungible and non-fungible assets held in the holding register.
- A relative path between state-bearing consensus systems.
- A unit struct which can be converted into a
Location
ofparents
value 1. - A tuple struct which can be converted into a
Location
ofparents
value 1 with the inner interior. - Information regarding the composition of a query response.
- Contextual data pertaining to a specific list of XCM instructions.
Enums§
Asset
collection, defined either by a number ofAssets
or a single wildcard.- A general identifier for an instance of a non-fungible asset class.
- An identifier of a pluralistic body.
- A part of a pluralistic body.
- Classification of whether an asset is fungible or not, along with a mandatory amount or instance.
- Cross-Consensus Message: A message from one consensus system to another.
- A single item in a path to describe the relative location of a consensus system.
- Non-parent junctions that can be constructed, up to the length of 8. This specific
Junctions
implementation uses a Rustenum
in order to make pattern matching easier. - A global identifier of a data structure existing within consensus.
- Basically just the XCM (more general) version of
ParachainDispatchOrigin
. - Outcome of an XCM execution.
- Response data to a query.
- Error result value when attempting to send an XCM message.
- An optional weight limit.
- A wildcard representing a set of assets.
- Classification of whether an asset is fungible or not.
- Error codes used in XCM. The first errors codes have explicit indices and are part of the XCM format. Those trailing are merely part of the XCM implementation; there is no expectation that they will retain the same index over time.
Constants§
Traits§
- A service for exchanging assets.
- Define a handler for notification of an asset being locked and for the unlock instruction.
- The trait to parameterize the
XcmExecutor
. - A converter
trait
for origin types. - Type of XCM message executor.
- Define what needs to be done upon receiving a query response.
- Utility for sending an XCM message to a given location.
- Facility for asset transacting.
Functions§
- Convenience function for using a
SendXcm
implementation. Just interprets thedest
and wraps both inSome
before passing them as as mutable references intoT::send_xcm
. - Convenience function for using a
SendXcm
implementation. Just interprets thedest
and wraps both inSome
before passing them as as mutable references intoT::send_xcm
.
Type Aliases§
- A relative location which is constrained to be an interior location of the context.
- An identifier for a query.
- Result value when attempting to send an XCM message.
- A hash type for identifying messages.