import "solidity-scale-codec/src/Xcm/v5/Response/ResponseCodec.sol";ResponseCodec
Kind: library
Functions
function encode(struct Response r) internal pure returns (bytes)function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)function decode(bytes data) internal pure returns (struct Response, uint256)function decodeAt(bytes data, uint256 offset) internal pure returns (struct Response, uint256)function asAssets(struct Response r) internal pure returns (struct AssetsParams)function asExecutionResult(struct Response r) internal pure returns (struct ExecutionResultParams)function asVersion(struct Response r) internal pure returns (struct VersionParams)function asPalletsInfo(struct Response r) internal pure returns (struct PalletsInfoParams)function asDispatchResult(struct Response r) internal pure returns (struct DispatchResultParams)
encode(struct Response r)
function encode(struct Response r) internal pure returns (bytes)Encodes a `Response` struct into SCALE bytes.
encodedSizeAt(bytes data, uint256 offset)
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)
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)
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)
function asAssets(struct Response r) internal pure returns (struct AssetsParams)Decodes the `Assets` from an `Assets` response.
asExecutionResult(struct Response r)
function asExecutionResult(struct Response r) internal pure returns (struct ExecutionResultParams)Decodes the execution result from an `ExecutionResult` response.
asVersion(struct Response r)
function asVersion(struct Response r) internal pure returns (struct VersionParams)Decodes the version from a `Version` response.
asPalletsInfo(struct Response r)
function asPalletsInfo(struct Response r) internal pure returns (struct PalletsInfoParams)Decodes the pallets info from a `PalletsInfo` response.
asDispatchResult(struct Response r)
function asDispatchResult(struct Response r) internal pure returns (struct DispatchResultParams)Decodes the dispatch result from a `DispatchResult` response.