account

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ValueCfx is the string representation of value in CFX.
	ValueCfx string

	// DefaultAccountManager is the default account manager under keystore folder.
	DefaultAccountManager *sdk.AccountManager = am
)

Functions

func AddAccountVar

func AddAccountVar(cmd *cobra.Command)

AddAccountVar adds account variable for specified command.

func AddFromVar added in v1.0.2

func AddFromVar(cmd *cobra.Command)

func AddGasPriceVar

func AddGasPriceVar(cmd *cobra.Command)

AddGasPriceVar addds price variable for specified command.

func MustInputPassword

func MustInputPassword(prompt string) string

MustInputPassword prompt user to input password.

func MustParseAccount

func MustParseAccount() string

MustParseAccount parse account from input parameter.

func MustParsePrice

func MustParsePrice() *big.Int

MustParsePrice parse gas price from input parameter.

func MustParseValue

func MustParseValue() *big.Int

MustParseValue parse value in CFX from input parameter.

func SetParent

func SetParent(parent *cobra.Command)

SetParent sets parent command

Types

This section is empty.

Jump to

Keyboard shortcuts

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