util

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

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

func PreProcessFields

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

func PreProcessInputData

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

func PreProcessLibs

func PreProcessLibs(libs string, do *def.DeployArgs, script *def.Playbook, 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