Expand description
Cumulus related core primitive types and traits.
Modules§
- opaque
- relay_
chain - A module that re-exports relevant relay chain definitions.
Structs§
- Abridged
Host Configuration - Abridged version of
HostConfiguration
(from theConfiguration
parachains host runtime module) meant to be used by a parachain or PDK such as cumulus. - Abridged
Hrmp Channel - Abridged version of
HrmpChannel
(from theHrmp
parachains host runtime module) meant to be used by a parachain or PDK such as cumulus. - 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. - Channel
Info - Information about an XCMP channel.
- Claim
Queue Offset - An offset in the relay chain claim queue.
- Collation
Info - Information about a collation.
- Collation
Info V1 - Information about a collation.
- Core
Selector - A strictly increasing sequence number, typically this would be the least significant byte of the block number.
- Digest
- Generic header digest.
- Hint
NumVariants - Inbound
Downward Message - A wrapped version of
DownwardMessage
. The difference is that it has attached the block number when the message was sent. - Location
- A relative path between state-bearing consensus systems.
- MaxAsset
Transfer Filters - Pallet
Info - ParaId
- Unique identifier of a parachain.
- Parachain
Block Data - The parachain block that is created by a collator.
- 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. - Persisted
Validation Data - The validation data provides information about how to create the inputs for validation of a candidate. This information is derived from the chain state and will vary from para to para, although some fields may be the same for every para.
- Query
Response Info - Information regarding the composition of a query response.
- Validation
Params - Validation parameters for evaluating the parachain validity function.
- Weight
- Xcm
- XcmContext
- Contextual data pertaining to a specific list of XCM instructions.
Enums§
- Aggregate
Message Origin - The origin of an inbound message.
- 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.
- Channel
Status - The status of a channel.
- Cumulus
Digest Item - Consensus header digests for Cumulus parachains.
- Digest
Item - Digest item that is able to encode/decode ‘system’ digest items and provide opaque access to other items.
- 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. - Maybe
Error Code - Message
Send Error - Error description of a message send failure.
- 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.
- Service
Quality - The “quality of service” considerations for message sending.
- 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.
- Xcmp
Message Format - The aggregate XCMP message format.
Constants§
- CUMULUS_
CONSENSUS_ ID - A consensus engine ID indicating that this is a Cumulus Parachain.
- XCM_
VERSION
Traits§
- BlockT
- Something which fulfills the abstract idea of a Substrate block. It has types for
Extrinsic
pieces of information as well as aHeader
. - Collect
Collation Info - Runtime api to collect information about a collation.
- DmpMessage
Handler - Something that should be called when a downward message is received.
- Execute
Xcm - Type of XCM message executor.
- GetChannel
Info - GetCore
Selector Api - Runtime api used to select the core for which the next block will be built.
- IsSystem
- Determine if a parachain is a system parachain or not.
- List
Channel Infos - List all open outgoing channels.
- Prepared
Message - Reanchorable
- SendXcm
- Utility for sending an XCM message to a given location.
- Upward
Message Sender - Something that should be called when sending an upward message.
- XcmWeight
Info - Xcmp
Message Handler - Something that should be called for each batch of messages received over XCMP.
- Xcmp
Message Source - A means of figuring out what outbound XCMP messages should be being sent.
Functions§
- extract_
relay_ parent - Extract the relay-parent from the provided header digest. Returns
None
if none were found. - 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§
- Consensus
Engine Id - Consensus engine unique ID.
- Inbound
Hrmp Message - An inbound HRMP message.
- Interior
Location - A relative location which is constrained to be an interior location of the context.
- Outbound
Hrmp Message - And outbound HRMP message
- QueryId
- An identifier for a query.
- Send
Result - Result value when attempting to send an XCM message.
- Upward
Message - A message from a parachain to its Relay Chain.
- XcmHash
- A hash type for identifying messages.
- XcmResult