mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
f12f75224e
* begin on the proto definitions * define remote signer service protos * basic implementation * remote keymanager docs * finalize remote client doc * amend response * fix proto defs * test new and begin test sign * test sign done * remote oneof * rename * fix build * viz * Update validator/keymanager/v2/remote/remote_test.go Co-authored-by: Ivan Martinez <ivanthegreatdev@gmail.com> * Update validator/accounts/v2/wallet.go Co-authored-by: Ivan Martinez <ivanthegreatdev@gmail.com> * fmt * move the input check to accounts new * begin on requesting cli input for remote keymanager config * move the input check to accounts new * begin on requesting cli input for remote keymanager config * define wallet v2 * create wallet most logic done * init remote wallet * create wallet moving nicely * ensure wallet create works * reenable import export list * further refactor * improve handling of input wallet dir * add all validation to cert path checks * lint * list test * new wallet lint Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Ivan Martinez <ivanthegreatdev@gmail.com>
60 lines
1.8 KiB
Go
60 lines
1.8 KiB
Go
package v2
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/validator/flags"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// AccountCommands for accounts-v2 for Prysm validators.
|
|
var AccountCommands = &cli.Command{
|
|
Name: "accounts-v2",
|
|
Category: "accounts",
|
|
Usage: "defines commands for interacting with eth2 validator accounts (work in progress)",
|
|
Subcommands: []*cli.Command{
|
|
// AccountCommands for accounts-v2 for Prysm validators.
|
|
{
|
|
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,
|
|
flags.PasswordFileFlag,
|
|
flags.SkipMnemonicConfirmFlag,
|
|
},
|
|
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,
|
|
},
|
|
{
|
|
Name: "export",
|
|
Description: `exports the account of a given directory into a zip of the provided output path. This zip can be used to later import the account to another directory`,
|
|
Flags: []cli.Flag{
|
|
flags.WalletDirFlag,
|
|
flags.WalletPasswordsDirFlag,
|
|
flags.BackupPathFlag,
|
|
},
|
|
Action: ExportAccount,
|
|
},
|
|
{
|
|
Name: "import",
|
|
Description: `imports the accounts from a given zip file to the provided wallet path. This zip can be created using the export command`,
|
|
Flags: []cli.Flag{
|
|
flags.WalletDirFlag,
|
|
flags.WalletPasswordsDirFlag,
|
|
flags.BackupPathFlag,
|
|
},
|
|
Action: ImportAccount,
|
|
},
|
|
},
|
|
}
|