mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-16 06:58:20 +00:00
132ad5beb8
* begin list accounts impl * colorize * show deposit data * separate responsibility * comprehensive test for list complete * gaz viz * print account creation timestamp * handle errs * ask for wallet and pass dir * Merge refs/heads/master into implement-v2-list
37 lines
1.0 KiB
Go
37 lines
1.0 KiB
Go
package v2
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/validator/flags"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// Commands for accounts-v2 for Prysm validators.
|
|
var Commands = &cli.Command{
|
|
Name: "accounts-v2",
|
|
Category: "accounts-v2",
|
|
Usage: "defines commands for interacting with eth2 validator accounts (work in progress)",
|
|
Subcommands: []*cli.Command{
|
|
{
|
|
Name: "new",
|
|
Description: `creates a new validator account for eth2. If no account exists at the wallet path, creates a new wallet for a user based on
|
|
specified input, capable of creating a direct, derived, or remote wallet.
|
|
this command outputs a deposit data string which is required to become a validator in eth2.`,
|
|
Flags: []cli.Flag{
|
|
flags.WalletDirFlag,
|
|
flags.WalletPasswordsDirFlag,
|
|
},
|
|
Action: NewAccount,
|
|
},
|
|
{
|
|
Name: "list",
|
|
Description: "Lists all validator accounts in a user's wallet directory",
|
|
Flags: []cli.Flag{
|
|
flags.WalletDirFlag,
|
|
flags.WalletPasswordsDirFlag,
|
|
flags.ShowDepositDataFlag,
|
|
},
|
|
Action: ListAccounts,
|
|
},
|
|
},
|
|
}
|