abi

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABI

type ABI struct {
	// contains filtered or unexported fields
}

func JSON

func JSON(reader io.Reader) (*ABI, error)

JSON create an ABI instance by Json Reader @param reader @return *ABI @return error

func NewAbi

func NewAbi(abiJSON string) (*ABI, error)

NewAbi create a new ABI instance by abi string @param abiData @return *ABI @return error

func NewAbiFromFile

func NewAbiFromFile(fpath string) (*ABI, error)

NewAbiFromFile create an ABI instance by abi json file path @param fpath @return *ABI @return error

func (*ABI) Pack

func (a *ABI) Pack(funcName string, args ...interface{}) ([]byte, error)

Pack encode function name and arguments to a binary data @param funcName @param args @return []byte @return error

func (*ABI) Unpack

func (a *ABI) Unpack(funcName string, data []byte) ([]interface{}, error)

Unpack decode function out put binary data to interface(string) array @param funcName @param data @return []interface{} @return error

Directories

Path Synopsis
burrow
abi

Jump to

Keyboard shortcuts

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