Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildABIFields ¶
func BuildABIFields(structType any) ([]abi.ArgumentMarshaling, error)
BuildABIFields constructs ABI ArgumentMarshaling slice from a struct type using reflection It uses the "abiarg" tag to determine field names and optionally types Tag format: `abiarg:"fieldName"` or `abiarg:"fieldName,type"` If type is omitted, it will be inferred from the Go type
func DecodeABIEncodedStructArray ¶
DecodeABIEncodedStructArray is a generic helper that decodes ABI-encoded tuple array It handles the ABI unpacking and type conversion boilerplate
func EncodeABIStructArray ¶
EncodeABIStructArray is a generic helper that encodes a slice of structs to ABI-encoded tuple array It automatically builds ABI fields from the struct type using reflection and abiarg tags
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.