mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-17 07:18:46 +00:00
df73851749
* edit remote config * gets messed up when writing to file again * proper editing * noninteractive mode * test for edit wallet * Merge branch 'master' into edit-wallet * wallet edit test done * imports * Merge refs/heads/master into edit-wallet * Merge refs/heads/master into edit-wallet
34 lines
937 B
Go
34 lines
937 B
Go
package v2
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/validator/flags"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// WalletCommands for accounts-v2 for Prysm validators.
|
|
var WalletCommands = &cli.Command{
|
|
Name: "wallet-v2",
|
|
Category: "wallet-v2",
|
|
Usage: "defines commands for interacting with eth2 validator wallets (work in progress)",
|
|
Subcommands: []*cli.Command{
|
|
{
|
|
Name: "create",
|
|
Usage: "creates a new wallet with a desired type of keymanager: " +
|
|
"either on-disk (direct), derived, or using remote credentials",
|
|
Action: CreateWallet,
|
|
},
|
|
{
|
|
Name: "edit-config",
|
|
Usage: "edits a wallet configuration options, such as gRPC connection credentials and TLS certificates",
|
|
Flags: []cli.Flag{
|
|
flags.WalletDirFlag,
|
|
flags.GrpcRemoteAddressFlag,
|
|
flags.RemoteSignerCertPathFlag,
|
|
flags.RemoteSignerKeyPathFlag,
|
|
flags.RemoteSignerCACertPathFlag,
|
|
},
|
|
Action: EditWalletConfiguration,
|
|
},
|
|
},
|
|
}
|