util

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ABIErrorHandler

func ABIErrorHandler(do *def.Packages, err error, call *def.Call, query *def.QueryContract) (string, error)

func AccountsInfo

func AccountsInfo(account, field string, do *def.Packages) (string, error)

func ChainErrorHandler

func ChainErrorHandler(do *def.Packages, err error) error

func Exit

func Exit(err error)

func GetBlockHeight

func GetBlockHeight(do *def.Packages) (latestBlockHeight uint64, err error)

func GetBoolResponse

func GetBoolResponse(question string, defaultAnswer bool, reader *os.File) (bool, error)

displays the question, scans for the response, if the response is an empty string will return default, otherwise will parseBool and return the result.

func GetIntResponse

func GetIntResponse(question string, defaultAnswer int64, reader *os.File) (int64, error)

func GetReturnValue

func GetReturnValue(vars []*abi.Variable) string

func GetStringResponse

func GetStringResponse(question string, defaultAnswer string, reader *os.File) (string, error)

func IfExit

func IfExit(err error)

func NamesInfo

func NamesInfo(name, field string, do *def.Packages) (string, error)

func PreProcess

func PreProcess(toProcess string, do *def.Packages) (string, error)

func PreProcessFields

func PreProcessFields(value interface{}, do *def.Packages) (err error)

func PreProcessInputData

func PreProcessInputData(function string, data interface{}, do *def.Packages, constructor bool) (string, []string, error)

func PreProcessLibs

func PreProcessLibs(libs string, do *def.Packages) (string, error)

func ReadTxSignAndBroadcast

func ReadTxSignAndBroadcast(txe *exec.TxExecution, err error) error

This is a closer function which is called by most of the tx_run functions

func ValidatorsInfo

func ValidatorsInfo(query string, do *def.Packages) (interface{}, error)

func Variables

func Variables(value interface{}) []*abi.Variable

Types

This section is empty.

Jump to

Keyboard shortcuts

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