utils

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: GPL-3.0 Imports: 17 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddressAndKey

func GetAddressAndKey(keystoreFilePath, password string) (common.Address, *keystore.Key)

func GetFirstBoolArgument

func GetFirstBoolArgument(ctx *cli.Context) bool

func GetFirstIntArgument

func GetFirstIntArgument(ctx *cli.Context) int64

GetFirstIntArgument returns the value of the first uint64 argument

func GetFirstStringArgument

func GetFirstStringArgument(ctx *cli.Context) string

GetFirstStringArgument returns the value of the first string argument

func GetFirstTwoIntArgument

func GetFirstTwoIntArgument(ctx *cli.Context) (int64, int64)

func GetPassword

func GetPassword() string

func PrepareAll

func PrepareAll(ctx *cli.Context, withTransactor bool) (addr common.Address, client *cpclient.Client, key *keystore.Key, err error)

func PrepareCpclient

func PrepareCpclient(endpoint string) (*cpclient.Client, error)

func WaitMined

func WaitMined(client *cpclient.Client, tx *types.Transaction) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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