File: src/Xcm/v5/WildAsset/WildAssetCodec.sol
WildAssetCodec
Kind: library
ABI Surface
Errors
error InvalidWildAssetLength()error InvalidWildAssetPayload()error InvalidWildAssetVariant(uint8 variant)
Function Surface
function encode(struct WildAsset wildAsset) internal pure returns (bytes)- Encodes a
WildAssetstruct into bytes.
- Encodes a
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)- Returns the number of bytes that a
WildAssetstruct would occupy when SCALE-encoded.
- Returns the number of bytes that a
function decode(bytes data) internal pure returns (struct WildAsset, uint256)- Decodes a
WildAssetinstance from bytes starting at the beginning of the data.
- Decodes a
function decodeAt(bytes data, uint256 offset) internal pure returns (struct WildAsset, uint256)- Decodes a
WildAssetinstance from bytes starting at a given offset.
- Decodes a
function asAllOf(struct WildAsset wildAsset) internal pure returns (struct AllOfParams)- Decodes the parameters of a
WildAssetwith theAllOfvariant from its payload.
- Decodes the parameters of a
function asAllCounted(struct WildAsset wildAsset) internal pure returns (struct AllCountedParams)- Decodes the parameters of a
WildAssetwith theAllCountedvariant from its payload.
- Decodes the parameters of a
function asAllOfCounted(struct WildAsset wildAsset) internal pure returns (struct AllOfCountedParams)- Decodes the parameters of a
WildAssetwith theAllOfCountedvariant from its payload.
- Decodes the parameters of a
function \_assertVariant(struct WildAsset wildAsset, enum WildAssetVariant expected) internal pure