Expand description
Cross-Consensus Message format data structures.
Modules§
- latest
- lts
- opaque
- prelude
- v3
- Version 3 of the Cross-Consensus Message format data structures.
- v4
- Version 4 of the Cross-Consensus Message format data structures.
- v5
- Version 5 of the Cross-Consensus Message format data structures.
Structs§
- Always
V3 WrapVersion
implementation which attempts to always convert the XCM to version 3 before wrapping it.- Always
V4 WrapVersion
implementation which attempts to always convert the XCM to version 4 before wrapping it.- Always
V5 WrapVersion
implementation which attempts to always convert the XCM to version 5 before wrapping it.- Double
Encoded - Wrapper around the encoded and decoded versions of a value. Caches the decoded value once computed.
Enums§
- Unsupported
- Versioned
Asset - A single
Asset
value, together with its version code. - Versioned
Asset Id - A single version’s
AssetId
value, together with its version code. - Versioned
Assets - A single
MultiAssets
value, together with its version code. - Versioned
Interior Location - A single
InteriorLocation
value, together with its version code. - Versioned
Junction - A single
Junction
value, together with its version code. - Versioned
Location - A single
Location
value, together with its version code. - Versioned
Network Id - A single
NetworkId
value, together with its version code. - Versioned
Response - A single version’s
Response
value, together with its version code. - Versioned
Xcm - A single XCM message, together with its version code.
Constants§
- MAX_
INSTRUCTIONS_ TO_ DECODE - The maximal number of instructions in an XCM before decoding fails.
- MAX_
XCM_ DECODE_ DEPTH - Maximum nesting level for XCM decoding.
Traits§
- GetVersion
- Check and return the
Version
that should be used for theXcm
datum for the destinationLocation
, which will interpret it. - Identify
Version - Used to get the version out of a versioned type.
- Into
Version - Attempt to convert
self
into a particular version of itself. - TryAs
- Wrap
Version - Convert an
Xcm
datum into aVersionedXcm
, based on a destinationLocation
which will interpret it.
Type Aliases§
- Always
Latest WrapVersion
implementation which attempts to always convert the XCM to the latest version before wrapping it.- Always
Lts WrapVersion
implementation which attempts to always convert the XCM to the most recent Long- Term-Support version before wrapping it.- Version
- A version of XCM.