abi

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMethodsByType

func GetMethodsByType(contractABI abi.ABI, rw MethodType) map[string]abi.Method

func LoadABIs

func LoadABIs(abiDir string) (map[string]abi.ABI, error)

LoadABIs reads all abi files in the abiDir and returns a map of contract name to ABI

func ParseArrayOrSliceInput

func ParseArrayOrSliceInput(input string, typ abi.Type) interface{}

func ParseTupleInput

func ParseTupleInput(input string, typ abi.Type) interface{}

Types

type MethodType

type MethodType string
const (
	ReadMethod  MethodType = "Read"
	WriteMethod MethodType = "Write"
	AllMethod   MethodType = "All"
)

Jump to

Keyboard shortcuts

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