util

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 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 added in v1.3.0

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

func BuildPayloadByABIFile added in v1.3.0

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

func LoadABI added in v1.3.0

func LoadABI(abiFileAbsPath string) (string, error)

func StrToInt64

func StrToInt64(str string) (int64, error)

func StrToInt64IgnoreErr

func StrToInt64IgnoreErr(str string) int64

func ToJsonIgnoreErr

func ToJsonIgnoreErr(obj interface{}) string

func UnpackEventValuesByABI added in v1.3.1

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

func UnpackEventValuesByABIFile added in v1.3.1

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

func UnpackValuesByABI added in v1.3.1

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

func UnpackValuesByABI2 added in v1.3.1

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

func UnpackValuesByABIFile added in v1.3.1

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

func UnpackValuesByABIFile2 added in v1.3.1

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