Expand description
Various traits used in configuring the executor.
Modules§
Structs§
- Identity
- A structure that performs identity conversion.
- JustTry
- A structure that performs standard conversion using the standard Rust conversion traits.
- Properties
- Properties of an XCM message and its imminent execution.
- With
Origin Filter
Enums§
- Asset
Transfer Error - Errors related to determining asset transfer support.
- Error
- Errors associated with
MatchesFungibles
operation. - FeeReason
- Context under which a fee is paid.
- Lock
Error - Query
Response Status - The possible state of an XCM query response.
- Transfer
Type - Specify which type of asset transfer is required for a particular
(asset, dest)
combination.
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.
- Call
Dispatcher - Defines how a call is dispatched with given origin. Allows to customize call dispatch, such as adapting the origin based on the call or modifying the call.
- Check
Suspension - Trait to determine whether the execution engine is suspended from executing a given XCM.
- Claim
Assets - Define any handlers for the
AssetClaim
instruction. - Convert
Location - Means of converting a location into an account identifier.
- Convert
Origin - A converter
trait
for origin types. - Deny
Execution - Trait to determine whether the execution engine should not execute a given XCM.
- Drop
Assets - Define a handler for when some non-empty
AssetsInHolding
value should be dropped. - Enact
- Event
Emitter - Defines the event emitter for the XCM executor. This trait allows implementations to emit events related to XCM handling, including successful sends and failure cases.
- Export
Xcm - Utility for delivering a message to a system under a different (non-local) consensus with a
spoofed origin. This essentially defines the behaviour of the
ExportMessage
XCM instruction. - FeeManager
- Handle stuff to do with taking fees in certain XCM instructions.
- Filter
Asset Location Deprecated - Filters assets/location pairs.
- Handle
Hrmp Channel Accepted - Executes optional logic when a
HrmpChannelAccepted
XCM notification is received. - Handle
Hrmp Channel Closing - Executes optional logic when a
HrmpChannelClosing
XCM notification is received. - Handle
Hrmp NewChannel Open Request - Executes logic when a
HrmpNewChannelOpenRequest
XCM notification is received. - Matches
Fungible - Matches
Fungibles - Matches
Instance - Unique instances matcher trait.
- Matches
NonFungible - Matches
NonFungibles - OnResponse
- Define what needs to be done upon receiving a query response.
- Process
Transaction - Provides mechanisms for transactional processing of XCM instructions.
- Query
Handler - Provides methods to expect responses from XCMs and query their status.
- Record
Xcm - Trait for recording XCMs.
- Should
Execute - Trait to determine whether the execution engine should actually execute a given XCM.
- Transact
Asset - Facility for asset transacting.
- Version
Change Notifier - Trait for a type which handles notifying a destination of XCM version changes.
- Weight
Bounds - Determine the weight of an XCM message.
- Weight
Trader - Charge for weight in order to execute XCM.
- XcmAsset
Transfers - A trait for identifying asset transfer type based on
IsTeleporter
andIsReserve
configurations.
Functions§
- export_
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_
export - Convenience function for using a
SendXcm
implementation. Just interprets thedest
and wraps both inSome
before passing them as mutable references intoT::send_xcm
.