File: src/Xcm/v5/Response/Response.sol
Response
Kind: source
Structs
struct Response
Response data to a query.
| Field | Type | Description |
|---|---|---|
variant | enum ResponseVariant | The type of the response. See `ResponseVariant` enum for possible values. |
payload | bytes | The SCALE-encoded payload of the response. Structure depends on `variant`. |
struct AssetsParams
Parameters for the Assets response variant.
| Field | Type | Description |
|---|---|---|
assets | struct Assets | Assets payload. |
struct ExecutionResultParams
Parameters for the ExecutionResult response variant.
| Field | Type | Description |
|---|---|---|
hasError | bool | Indicates if there was an error. |
index | uint32 | The index of the instruction that caused the error. |
err | struct XcmError | The XCM error that occurred. |
struct VersionParams
Parameters for the Version response variant.
| Field | Type | Description |
|---|---|---|
version | uint32 | XCM version value. |
struct PalletsInfoParams
Parameters for the PalletsInfo response variant.
| Field | Type | Description |
|---|---|---|
pallets | struct PalletInfo\[\] | Array of `PalletInfo` structs, containing the info of the pallets. Max length is MAX_PALLETS_INFO (64). |
struct DispatchResultParams
Parameters for the DispatchResult response variant.
| Field | Type | Description |
|---|---|---|
result | struct MaybeErrorCode | Dispatch result status. |
Enums
enum ResponseVariant
Discriminant for the Response enum.
| Variant | Description |
|---|---|
Null | No response. Serves as a neutral default. |
Assets | Some assets. |
ExecutionResult | The outcome of an XCM instruction. |
Version | An XCM version. |
PalletsInfo | The index, instance name, pallet name and version of some pallets. |
DispatchResult | The status of a dispatch attempt using `Transact`. |
Top-Level Functions
function null\_() internal pure returns (struct Response)- Creates a
Nullresponse.
- Creates a
function assets(struct AssetsParams params) internal pure returns (struct Response)- Creates an
Assetsresponse.
- Creates an
function executionResult(struct ExecutionResultParams params) internal pure returns (struct Response)- Creates an
ExecutionResultresponse.
- Creates an
function version(struct VersionParams params) internal pure returns (struct Response)- Creates a
Versionresponse.
- Creates a
function palletsInfo(struct PalletsInfoParams params) internal pure returns (struct Response)- Creates a
PalletsInforesponse.
- Creates a
function dispatchResult(struct DispatchResultParams params) internal pure returns (struct Response)- Creates a
DispatchResultresponse.
- Creates a