util

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPayloadByABI

func BuildPayloadByABI(contractAbi, funcName string, args ...interface{}) ([]byte, error)

func BuildPayloadByABIFile

func BuildPayloadByABIFile(abiFilePath, funcName string, args ...interface{}) ([]byte, error)

func LoadABI

func LoadABI(abiFileAbsPath string) (string, error)

func StrToInt64

func StrToInt64(str string) (int64, error)

func ToJsonIgnoreErr

func ToJsonIgnoreErr(obj interface{}) string

func UnpackEventValuesByABI

func UnpackEventValuesByABI(contractAbi, eventName string, d []byte) ([]interface{}, error)

func UnpackEventValuesByABIFile

func UnpackEventValuesByABIFile(abiFilePath, funcName string, d []byte) ([]interface{}, error)

func UnpackValuesByABI

func UnpackValuesByABI(contractAbi, funcName string, d []byte) ([]interface{}, error)

func UnpackValuesByABI2

func UnpackValuesByABI2(contractAbi, funcName string, d []byte, isInput bool) ([]interface{}, error)

func UnpackValuesByABIFile

func UnpackValuesByABIFile(abiFilePath, funcName string, d []byte) ([]interface{}, error)

func UnpackValuesByABIFile2

func UnpackValuesByABIFile2(abiFilePath, funcName string, d []byte, isInput bool) ([]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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