account

package
v0.0.0-...-d673ec7 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountCmd = cli.Command{
	Name:  "account",
	Usage: "manage accounts",
	Flags: []cli.Flag{FlagKeystore},
	Subcommands: []cli.Command{
		NewAccountCmd,
		ListAccountCmd,
		UpdateAccountCmd,
		DeleteAccountCmd,
	},
}
View Source
var DefaultKeystore = utils.DefaultKeystore
View Source
var DeleteAccountCmd = cli.Command{
	Name:      "delete",
	Usage:     "delete an account",
	UsageText: "delete <account|index>",
	Action:    DeleteAccountAction,
	Flags:     []cli.Flag{},
}
View Source
var (
	ErrInsufficientArguments = fmt.Errorf("insufficient arguments")
)
View Source
var (
	FlagKeystore = cli.StringFlag{
		Name:  "keystore",
		Usage: "keystore directory",
		Value: DefaultKeystore(),
	}
)
View Source
var ListAccountCmd = cli.Command{
	Name:      "list",
	Usage:     "list account",
	UsageText: "list [index]",
	Action:    ListAccountAction,
	Flags:     []cli.Flag{},
}
View Source
var NewAccountCmd = cli.Command{
	Name:      "new",
	Usage:     "generate a new account",
	UsageText: "new",
	Action:    NewAccountAction,
	Flags:     []cli.Flag{},
}
View Source
var ParseBigInt = utils.ParseBigInt
View Source
var ParseUint64 = utils.ParseUint64
View Source
var UpdateAccountCmd = cli.Command{
	Name:      "update",
	Usage:     "update an account",
	UsageText: "update <address|index>",
	Action:    UpdateAccountAction,
	Flags:     []cli.Flag{},
}

Functions

func DeleteAccount

func DeleteAccount(ksPath, account string) error

func DeleteAccountAction

func DeleteAccountAction(c *cli.Context) error

func ListAccount

func ListAccount(ksPath string, index string) error

func ListAccountAction

func ListAccountAction(c *cli.Context) error

func NewAccount

func NewAccount(ksPath string) error

func NewAccountAction

func NewAccountAction(c *cli.Context) error

func ParseFlagKeystore

func ParseFlagKeystore(c *cli.Context) string

func ReadPassphrase

func ReadPassphrase(prompt string) (string, error)

func UpdateAccount

func UpdateAccount(ksPath, account string) error

func UpdateAccountAction

func UpdateAccountAction(c *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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