abir

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Unlicense Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTypeName

func CreateTypeName(t reflect.Type) abi.TypeName

func Decode

func Decode(d *abi.Decoder, v any, args ...abi.TypeName) (err error)

func DecodeArray

func DecodeArray(d *abi.Decoder, t abi.TypeName, l int, v reflect.Value) (err error)

t = type of array l = length of array v has to be a slice or array or will panic

func DecodeBytes

func DecodeBytes(xs []byte, v any, hint ...abi.TypeName) (err error)

func DecodeInto

func DecodeInto(d *abi.Decoder, v any) (err error)

func DecodeTuple

func DecodeTuple(d *abi.Decoder, t abi.TypeName, v reflect.Value) (err error)

v is type struct

func Encode

func Encode(b *abi.Builder, v any, args ...abi.TypeName) (err error)

func EncodeArray

func EncodeArray(b *abi.Builder, t abi.TypeName, l int, v reflect.Value) error

Types

type IntSet

type IntSet interface {
	Set(*big.Int) *big.Int
}

type SetStringErr

type SetStringErr interface {
	SetString(string, int) error
}

type SetStringOk

type SetStringOk interface {
	SetString(string, int) bool
}

Jump to

Keyboard shortcuts

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