prysm-pulse/cmd/prysmctl/main.go

36 lines
1.0 KiB
Go
Raw Normal View History

package main
import (
"os"
"github.com/prysmaticlabs/prysm/v5/cmd/prysmctl/checkpointsync"
"github.com/prysmaticlabs/prysm/v5/cmd/prysmctl/db"
"github.com/prysmaticlabs/prysm/v5/cmd/prysmctl/p2p"
"github.com/prysmaticlabs/prysm/v5/cmd/prysmctl/testnet"
"github.com/prysmaticlabs/prysm/v5/cmd/prysmctl/validator"
"github.com/prysmaticlabs/prysm/v5/cmd/prysmctl/weaksubjectivity"
log "github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"
)
var prysmctlCommands []*cli.Command
func main() {
app := &cli.App{
Commands: prysmctlCommands,
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}
func init() {
prysmctlCommands = append(prysmctlCommands, checkpointsync.Commands...)
prysmctlCommands = append(prysmctlCommands, db.Commands...)
prysmctlCommands = append(prysmctlCommands, p2p.Commands...)
prysmctlCommands = append(prysmctlCommands, testnet.Commands...)
prysmctlCommands = append(prysmctlCommands, weaksubjectivity.Commands...)
prysmctl: changeblstoexecutionaddress ( withdrawals) (#11790) * adding unit test for withdrawal * updating to handle api changes * Update cmd/prysmctl/withdrawal/withdrawal.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/withdrawal/cmd.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/withdrawal/withdrawal.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/withdrawal/cmd.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/withdrawal/withdrawal.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/withdrawal/withdrawal.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/withdrawal/withdrawal.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * updating based on feedback * rewording prints * Update cmd/prysmctl/withdrawal/withdrawal.go Co-authored-by: Potuz <potuz@prysmaticlabs.com> * add error handling when status not ok * addressing some of the feedback, adding new tests * adding unit test with error return * adjusting based on review comments * addressing more comments and fixing unit test * updating prompts * migrating some functions to api/client * removing unused function * adding review feedback * removing unused functions * migrating command, old command under accounts still exist * reverting tos.go * fixing bazel lint * fixing build * resolving unused parameter caught by deepsource * fixing unit tests * Update cmd/prysmctl/validator/cmd.go Co-authored-by: Potuz <potuz@prysmaticlabs.com> * Update cmd/prysmctl/validator/cmd.go Co-authored-by: Potuz <potuz@prysmaticlabs.com> * adding in website * addressing review comment * adding new verify only flag * Update cmd/prysmctl/validator/withdraw.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/validator/withdraw.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/validator/withdraw.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/validator/withdraw.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update api/client/beacon/client.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update api/client/beacon/client.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update api/client/beacon/client.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update api/client/beacon/client.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/validator/withdraw.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * addressing comments * fixing unit test * Update cmd/prysmctl/validator/cmd.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/validator/cmd.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/validator/cmd.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update cmd/prysmctl/validator/cmd.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * address comments * Update cmd/prysmctl/validator/cmd.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * adjusting object for new provided format * adding omit empty * fixing unit test, and linting * adjusting based on cli changes * fixing test data and metadata property * addressing backwards compatability * reverting based on review comment Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: Potuz <potuz@prysmaticlabs.com> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 10:05:55 +00:00
prysmctlCommands = append(prysmctlCommands, validator.Commands...)
}