Modules§
Structs§
- Ancestor
- A unit struct which can be converted into a
Location
of the innerparents
value. - Ancestor
Then - A unit struct which can be converted into a
Location
of the innerparents
value and the inner interior. - Asset
- Either an amount of a single fungible asset, or a single well-identified non-fungible asset.
- AssetId
- Location to identify an asset.
- Assets
- A
Vec
ofAsset
s. - Assets
InHolding - Map of non-wildcard fungible and non-fungible assets held in the holding register.
- Hint
NumVariants - Instruction
Error - XCM error and the index of the instruction that caused it.
- Location
- A relative path between state-bearing consensus systems.
- Locked
Assets - MaxAsset
Transfer Filters - MaxAssets
Into Holding - Pallet
Info - Parent
- A unit struct which can be converted into a
Location
ofparents
value 1. - Parent
Then - A tuple struct which can be converted into a
Location
ofparents
value 1 with the inner interior. - Query
Response Info - Information regarding the composition of a query response.
- Subscription
Requests - Test
Asset Exchanger - Test
Asset Locker - Test
Asset Trap - Test
Lock Ticket - Test
Pallets Info - Test
Reduce Ticket - Test
Subscription Service - Test
Universal Aliases - Test
Unlock Ticket - Trapped
Assets - Weight
- Xcm
- XcmContext
- Contextual data pertaining to a specific list of XCM instructions.
Enums§
- Asset
Filter Asset
collection, defined either by a number ofAssets
or a single wildcard.- Asset
Instance - A general identifier for an instance of a non-fungible asset class.
- BodyId
- An identifier of a pluralistic body.
- Body
Part - A part of a pluralistic body.
- Fungibility
- Classification of whether an asset is fungible or not, along with a mandatory amount or instance.
- Hint
- Instruction
- Cross-Consensus Message: A message from one consensus system to another.
- Junction
- A single item in a path to describe the relative location of a consensus system.
- Junctions
- 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. - Lock
Error - Maybe
Error Code - Network
Id - A global identifier of a data structure existing within consensus.
- Origin
Kind - Basically just the XCM (more general) version of
ParachainDispatchOrigin
. - Outcome
- Outcome of an XCM execution.
- Response
- Response data to a query.
- Send
Error - Error result value when attempting to send an XCM message.
- Weight
Limit - An optional weight limit.
- Wild
Asset - A wildcard representing a set of assets.
- Wild
Fungibility - Classification of whether an asset is fungible or not.
- XcmError
- 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§
- Asset
Exchange - A service for exchanging assets.
- Asset
Lock - Define a handler for notification of an asset being locked and for the unlock instruction.
- Config
- The trait to parameterize the
XcmExecutor
. - Convert
Origin - A converter
trait
for origin types. - Enact
- Execute
Xcm - Type of XCM message executor.
- OnResponse
- Define what needs to be done upon receiving a query response.
- Prepared
Message - Reanchorable
- SendXcm
- Utility for sending an XCM message to a given location.
- Transact
Asset - Facility for asset transacting.
- XcmWeight
Info
Functions§
- send_
xcm - Convenience function for using a
SendXcm
implementation. Just interprets thedest
and wraps both inSome
before passing them as mutable references intoT::send_xcm
. - validate_
send - Convenience function for using a
SendXcm
implementation. Just interprets thedest
and wraps both inSome
before passing them as mutable references intoT::send_xcm
.
Type Aliases§
- Instruction
Index - The index of an instruction in an XCM.
- Interior
Location - A relative location which is constrained to be an interior location of the context.
- QueryId
- An identifier for a query.
- Send
Result - Result value when attempting to send an XCM message.
- XcmHash
- A hash type for identifying messages.
- XcmResult