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§
Structs§
- Ancestor
 - A unit struct which can be converted into a 
Locationof the innerparentsvalue. - Ancestor
Then  - A unit struct which can be converted into a 
Locationof the innerparentsvalue 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 
VecofAssets. - Hint
NumVariants  - Instruction
Error  - XCM error and the index of the instruction that caused it.
 - Location
 - A relative path between state-bearing consensus systems.
 - MaxAsset
Transfer Filters  - MaxPallet
Name Len  - MaxPallets
Info  - Pallet
Info  - Parent
 - A unit struct which can be converted into a 
Locationofparentsvalue 1. - Parent
Then  - A tuple struct which can be converted into a 
Locationofparentsvalue 1 with the inner interior. - Query
Response Info  - Information regarding the composition of a query response.
 - Weight
 - Xcm
 - XcmBuilder
 - Type used to build XCM programs
 - XcmContext
 - Contextual data pertaining to a specific list of XCM instructions.
 
Enums§
- Anything
Goes  - Access to all the instructions
 - Asset
Filter  Assetcollection, defined either by a number ofAssetsor a single wildcard.- Asset
Instance  - A general identifier for an instance of a non-fungible asset class.
 - Asset
Transfer Filter  - Matches assets based on inner 
AssetFilterand 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 ofsourceafter knowingdest. - BodyId
 - An identifier of a pluralistic body.
 - Body
Part  - A part of a pluralistic body.
 - Error
 - 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.
 - Explicit
Unpaid Required  - Need to explicitly state it won’t pay for fees
 - 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 
Junctionsimplementation uses a Rustenumin order to make pattern matching easier. - Loaded
Holding  - The holding register was loaded, now to buy execution
 - Network
Id  - A global identifier of a data structure existing within consensus.
 - Outcome
 - Outcome of an XCM execution.
 - Payment
Required  - You need to pay for execution
 - Response
 - Response data to a query.
 - Send
Error  - Error result value when attempting to send an XCM message.
 - Wild
Asset  - A wildcard representing a set of assets.
 - Wild
Fungibility  - Classification of whether an asset is fungible or not.
 
Constants§
- MAX_
ITEMS_ IN_ ASSETS  - Maximum number of items we expect in a single 
Assetsvalue. This is enforced when decoding and provides a sensiblemax_encoded_lenforAssets. - ROCOCO_
GENESIS_ HASH  - The genesis hash of the Rococo testnet. Used to identify it.
 - VERSION
 - WESTEND_
GENESIS_ HASH  - The genesis hash of the Westend testnet. Used to identify it.
 
Traits§
- Execute
Xcm  - Type of XCM message executor.
 - Prepared
Message  - Reanchorable
 - SendXcm
 - Utility for sending an XCM message to a given location.
 - XcmBuilder
State  - A trait for types that track state inside the XcmBuilder
 - XcmWeight
Info  
Functions§
- send_
xcm  - Convenience function for using a 
SendXcmimplementation. Just interprets thedestand wraps both inSomebefore passing them as mutable references intoT::send_xcm. - validate_
send  - Convenience function for using a 
SendXcmimplementation. Just interprets thedestand wraps both inSomebefore 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.
 - Result
 - Send
Result  - Result value when attempting to send an XCM message.
 - XcmHash
 - A hash type for identifying messages.