util

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ABIErrorHandler

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

func AccountsInfo

func AccountsInfo(account, field string, client *def.Client) (string, error)

func ChainErrorHandler

func ChainErrorHandler(account string, err error) error

func Exit

func Exit(err error)

func GetBlockHeight

func GetBlockHeight(client *def.Client) (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, client *def.Client) (string, error)

func PreProcess

func PreProcess(toProcess string, do *def.DeployArgs, client *def.Client) (string, error)

func PreProcessFields

func PreProcessFields(value interface{}, do *def.DeployArgs, client *def.Client) (err error)

func PreProcessInputData

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

func PreProcessLibs

func PreProcessLibs(libs string, do *def.DeployArgs, client *def.Client) (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, client *def.Client) (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