evmabi

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIterStop               = errors.New("iter stop")
	ErrDynamicIndexedArgument = errors.New("dynamic indexed argument")
)

Functions

func DecodeArguments

func DecodeArguments(data []byte, args eth_abi.Arguments) iter.Seq2[*Event, error]

func DecodeValue

func DecodeValue(data []byte, t eth_abi.Type) iter.Seq2[*Event, error]

func Yield

func Yield(fn YieldFunc, evt *Event) error

Types

type Event

type Event struct {
	Type    EventType
	ABIType eth_abi.Type
	Len     int
	Index   int
	Key     string
	Value   interface{}
}

type EventType

type EventType string
const (
	TupleStart EventType = "TUPLE_START"
	TupleEnd   EventType = "TUPLE_END"
	ArrayStart EventType = "ARRAY_START"
	ArrayEnd   EventType = "ARRAY_END"
	Key        EventType = "KEY"
	Value      EventType = "VALUE"
)

type YieldFunc

type YieldFunc func(*Event, error) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL