import "solidity-scale-codec/src/Xcm/v5/WildAsset/WildAssetCodec.sol";WildAssetCodec
Kind: library
Functions
function encode(struct WildAsset wildAsset) internal pure returns (bytes)function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)function decode(bytes data) internal pure returns (struct WildAsset, uint256)function decodeAt(bytes data, uint256 offset) internal pure returns (struct WildAsset, uint256)function asAllOf(struct WildAsset wildAsset) internal pure returns (struct AllOfParams)function asAllCounted(struct WildAsset wildAsset) internal pure returns (struct AllCountedParams)
encode(struct WildAsset wildAsset)
function encode(struct WildAsset wildAsset) internal pure returns (bytes)Encodes a `WildAsset` struct into bytes.
encodedSizeAt(bytes data, uint256 offset)
function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)Returns the number of bytes that a `WildAsset` struct would occupy when SCALE-encoded.
decode(bytes data)
function decode(bytes data) internal pure returns (struct WildAsset, uint256)Decodes a `WildAsset` instance from bytes starting at the beginning of the data.
decodeAt(bytes data, uint256 offset)
function decodeAt(bytes data, uint256 offset) internal pure returns (struct WildAsset, uint256)Decodes a `WildAsset` instance from bytes starting at a given offset.
asAllOf(struct WildAsset wildAsset)
function asAllOf(struct WildAsset wildAsset) internal pure returns (struct AllOfParams)Decodes the parameters of a `WildAsset` with the `AllOf` variant from its payload.
asAllCounted(struct WildAsset wildAsset)
function asAllCounted(struct WildAsset wildAsset) internal pure returns (struct AllCountedParams)Decodes the parameters of a `WildAsset` with the `AllCounted` variant from its payload.
asAllOfCounted(struct WildAsset wildAsset)
function asAllOfCounted(struct WildAsset wildAsset) internal pure returns (struct AllOfCountedParams)Decodes the parameters of a `WildAsset` with the `AllOfCounted` variant from its payload.