Skip to content

File: src/Xcm/v5/Response/ResponseCodec.sol

ResponseCodec

Kind: library

ABI Surface

Errors

  • error InvalidResponseLength()
  • error InvalidResponseVariant(uint8 variant)

Function Surface

  • function encode(struct Response r) internal pure returns (bytes)
    • Encodes a Response struct into SCALE bytes.
  • function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)
    • Returns the number of bytes that a Response would occupy when SCALE-encoded.
  • function decode(bytes data) internal pure returns (struct Response, uint256)
    • Decodes a Response from SCALE bytes starting at the beginning.
  • function decodeAt(bytes data, uint256 offset) internal pure returns (struct Response, uint256)
    • Decodes a Response from SCALE bytes starting at a given offset.
  • function asAssets(struct Response r) internal pure returns (struct AssetsParams)
    • Decodes the Assets from an Assets response.
  • function asExecutionResult(struct Response r) internal pure returns (struct ExecutionResultParams)
    • Decodes the execution result from an ExecutionResult response.
  • function asVersion(struct Response r) internal pure returns (struct VersionParams)
    • Decodes the version from a Version response.
  • function asPalletsInfo(struct Response r) internal pure returns (struct PalletsInfoParams)
    • Decodes the pallets info from a PalletsInfo response.
  • function asDispatchResult(struct Response r) internal pure returns (struct DispatchResultParams)
    • Decodes the dispatch result from a DispatchResult response.
  • function \_assertVariant(struct Response r, enum ResponseVariant expected) internal pure

Created with solidity-doc-generator