Documentation ¶
Index ¶
- Variables
- func AddAccountVar(cmd *cobra.Command)
- func AddFromVar(cmd *cobra.Command)
- func AddGasPriceVar(cmd *cobra.Command)
- func MustInputPassword(prompt string) string
- func MustParseAccount() string
- func MustParsePrice() *big.Int
- func MustParseValue() *big.Int
- func SetParent(parent *cobra.Command)
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 ¶
AddAccountVar adds account variable for specified command.
func AddFromVar ¶ added in v1.0.2
func AddGasPriceVar ¶
AddGasPriceVar addds price variable for specified command.
func MustInputPassword ¶
MustInputPassword prompt user to input password.
func MustParseAccount ¶
func MustParseAccount() string
MustParseAccount parse account from input parameter.
func MustParsePrice ¶
MustParsePrice parse gas price from input parameter.
func MustParseValue ¶
MustParseValue parse value in CFX from input parameter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.