Module staging_xcm::v5
source · Expand description
Version 5 of the Cross-Consensus Message format data structures.
Re-exports§
pub use super::v3::GetWeight;
pub use super::v4::MaxDispatchErrorLen;
pub use super::v4::MaybeErrorCode;
pub use super::v4::OriginKind;
pub use super::v4::WeightLimit;
Modules§
- A prelude for importing all types typically used when interacting with XCM messages.
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. - 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.
- Type used to build XCM programs
- Contextual data pertaining to a specific list of XCM instructions.
Enums§
- Access to all the instructions
Asset
collection, defined either by a number ofAssets
or a single wildcard.- A general identifier for an instance of a non-fungible asset class.
- 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
. - An identifier of a pluralistic body.
- A part of a pluralistic body.
- 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.
- Need to explicitly state it won’t pay for fees
- 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. - The holding register was loaded, now to buy execution
- A global identifier of a data structure existing within consensus.
- Outcome of an XCM execution.
- You need to pay for execution
- Response data to a query.
- Error result value when attempting to send an XCM message.
- A wildcard representing a set of assets.
- Classification of whether an asset is fungible or not.
Constants§
- Maximum number of items we expect in a single
Assets
value. Note this is not (yet) enforced, and just serves to provide a sensiblemax_encoded_len
forAssets
. - The genesis hash of the Rococo testnet. Used to identify it.
- The genesis hash of the Westend testnet. Used to identify it.
Traits§
- Type of XCM message executor.
- Utility for sending an XCM message to a given location.
- A trait for types that track state inside the XcmBuilder
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.