import "solidity-scale-codec/src/Xcm/v5/Response/Response.sol";File-Level Functions
function assets(struct AssetsParams params) internal pure returns (struct Response)function version(struct VersionParams params) internal pure returns (struct Response)function palletsInfo(struct PalletsInfoParams params) internal pure returns (struct Response)function dispatchResult(struct DispatchResultParams params) internal pure returns (struct Response)
null_()
function null_() internal pure returns (struct Response)Creates a `Null` response.
assets(struct AssetsParams params)
function assets(struct AssetsParams params) internal pure returns (struct Response)Creates an `Assets` response.
executionResult(struct ExecutionResultParams params)
function executionResult(struct ExecutionResultParams params) internal pure returns (struct Response)Creates an `ExecutionResult` response.
version(struct VersionParams params)
function version(struct VersionParams params) internal pure returns (struct Response)Creates a `Version` response.
palletsInfo(struct PalletsInfoParams params)
function palletsInfo(struct PalletsInfoParams params) internal pure returns (struct Response)Creates a `PalletsInfo` response.
dispatchResult(struct DispatchResultParams params)
function dispatchResult(struct DispatchResultParams params) internal pure returns (struct Response)Creates a `DispatchResult` response.
File-Level Structs
Response
struct ResponseResponse data to a query.
| Field | Type | Description |
|---|---|---|
variant | 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`. |
AssetsParams
struct AssetsParamsParameters for the `Assets` response variant.
| Field | Type | Description |
|---|---|---|
assets | Assets | Assets payload. |
ExecutionResultParams
struct ExecutionResultParamsParameters 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 | XcmError | The XCM error that occurred. |
VersionParams
struct VersionParamsParameters for the `Version` response variant.
| Field | Type | Description |
|---|---|---|
version | uint32 | XCM version value. |
PalletsInfoParams
struct PalletsInfoParamsParameters for the `PalletsInfo` response variant.
| Field | Type | Description |
|---|---|---|
pallets | PalletInfo[] | Array of `PalletInfo` structs, containing the info of the pallets. Max length is MAX_PALLETS_INFO (64). |
DispatchResultParams
struct DispatchResultParamsParameters for the `DispatchResult` response variant.
| Field | Type | Description |
|---|---|---|
result | MaybeErrorCode | Dispatch result status. |
File-Level Enums
ResponseVariant
enum ResponseVariantDiscriminant 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`. |
Response
Kind: source