Skip to content
solidity
import "solidity-scale-codec/src/Xcm/v5/Response/ResponseCodec.sol";

ResponseCodec

Kind: library

Functions

encode(struct Response r)

solidity
function encode(struct Response r) internal pure returns (bytes)

Encodes a `Response` struct into SCALE bytes.

encodedSizeAt(bytes data, uint256 offset)

solidity
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)

Returns the number of bytes that a `Response` would occupy when SCALE-encoded.

decode(bytes data)

solidity
function decode(bytes data) internal pure returns (struct Response, uint256)

Decodes a `Response` from SCALE bytes starting at the beginning.

decodeAt(bytes data, uint256 offset)

solidity
function decodeAt(bytes data, uint256 offset) internal pure returns (struct Response, uint256)

Decodes a `Response` from SCALE bytes starting at a given offset.

asAssets(struct Response r)

solidity
function asAssets(struct Response r) internal pure returns (struct AssetsParams)

Decodes the `Assets` from an `Assets` response.

asExecutionResult(struct Response r)

solidity
function asExecutionResult(struct Response r) internal pure returns (struct ExecutionResultParams)

Decodes the execution result from an `ExecutionResult` response.

asVersion(struct Response r)

solidity
function asVersion(struct Response r) internal pure returns (struct VersionParams)

Decodes the version from a `Version` response.

asPalletsInfo(struct Response r)

solidity
function asPalletsInfo(struct Response r) internal pure returns (struct PalletsInfoParams)

Decodes the pallets info from a `PalletsInfo` response.

asDispatchResult(struct Response r)

solidity
function asDispatchResult(struct Response r) internal pure returns (struct DispatchResultParams)

Decodes the dispatch result from a `DispatchResult` response.