package
23.1.6+incompatible
Repository: https://github.com/zeta-chain/node.git
Documentation: pkg.go.dev
# Functions
ArgAbortAddress wraps the abort address in a CodecArg.
ArgPayload wraps the payload in a CodecArg.
ArgReceiver wraps the receiver address in a CodecArg.
ArgRevertAddress wraps the revert address in a CodecArg.
ArgRevertMessage wraps the revert message in a CodecArg.
DecodeFromBytes decodes a InboundMemo struct from raw bytes
Returns: - [memo, true, nil] if given data is successfully decoded as a memo.
DecodeLegacyMemoHex decodes hex encoded memo message into address and calldata
The layout of legacy memo is: [20-byte address, variable calldata].
GetCodec returns the codec based on the encoding format.
GetLenBytes returns the number of bytes used to encode the length of the data.
NewArg create a new codec argument.
NewCodecABI creates a new ABI codec.
NewCodecCompact creates a new compact codec.
# Constants
Define all the types supported by the codec.
Define all the types supported by the codec.
Define all the types supported by the codec.
EncodingFmtABI represents ABI encoding format.
EncodingFmtCompactLong represents 'compact long' encoding format.
EncodingFmtCompactShort represents 'compact short' encoding format.
EncodingFmtInvalid represents invalid encoding format.
HeaderSize is the size of the memo header: [identifier + ctrlByte1+ ctrlByte2 + dataFlags].
Identifier is the ASCII code of 'Z' (0x5A).
Enum for length of bytes used to encode compact data.
Enum for length of bytes used to encode compact data.
MaskFlagsReserved is the mask for reserved data flags.
operation 'call'.
operation 'deposit'.
operation 'deposit_and_call'.
invalid operation code.
# Structs
CodecABI is a coder/decoder for ABI encoded memo fields.
CodecArg represents a codec argument.
CodecCompact is a coder/decoder for compact encoded memo fields
This encoding format concatenates the memo fields into a single byte array with zero padding to minimize the total size of the memo.
FieldsV0 contains the data fields of the inbound memo V0.
Header represent the memo header.
InboundMemo represents the inbound memo structure for non-EVM chains.
# Type aliases
ArgType is the enum for types supported by the codec.
No description provided by the author
No description provided by the author