Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

abi source pure

Constants 1

Variables 1

Functions 2

func Decode

1func Decode(schema Schema, data []byte) ([]any, error)
source

Decode ABI-decodes data according to schema using Solidity's params tuple form.

func Encode

1func Encode(schema Schema, values []any) ([]byte, error)
source

Encode ABI-encodes values according to schema using Solidity's params tuple form.

Types 3

type Field

struct
1type Field struct {
2	Type Type
3	Sub  *Schema
4	Elem *Field
5}
source

Field describes one ABI tuple field.

type Schema

struct
1type Schema struct {
2	Fields []Field
3}
source

Schema describes a Solidity ABI tuple.

type Type

ident
1type Type int
source

Type identifies a Solidity ABI field kind supported by this package.

Imports 3

Source Files 4