Sammy Rosso
9136d30121
Return error when using unsupported mnemonic language ( #11805 )
...
* Return error when using unsupported mnemonic language
* Fix failing tests
* More test fixes
* Add MnemonicLanguage to CreateWalletRequest
* Add MnemonicLanguage to remaining tests
* Add language to error
* Add missing (.)
* Set default language + fix renumbered fields
* Replace hardcoded language with default var
* default set
* gaz
* fix proto field setting
* fix up
* Remove WithMnemonicLanguage from tests
* Remove WithMnemonicLanguage from tests
* Fix conflicting information failure
* Gazelle + remove hardcoded english values
* fix
* Fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-26 23:44:38 +00:00
james-prysm
38f095d556
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
Patrice Vignola
ead9a83d8d
Add customizable endpoints for the validator's REST API ( #11633 )
...
* WIP
* Refactor to use iface.ValidatorClient instead of ethpb.BeaconNodeValidatorClient
* Add mocks for iface.ValidatorClient
* Fix mocks
* Update update-mockgen.sh
* Fix warnings
* Fix config_setting syntax
* Use custom build settings
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Fix endpoint address and reduce timeout
* Revert most e2e changes
* Use e2e.TestParams.Ports.PrysmBeaconNodeGatewayPort
* Fix BeaconRESTApiProviderFlag port
* Revert e2e changes
2022-11-11 17:33:48 +00:00
Patrice Vignola
d33af46c90
Add support for building a Beacon API validator client versus a gRPC one ( #11612 )
2022-11-07 11:29:27 +01:00
Radosław Kapka
8fa481cb93
Flag to exit validators without confirmation prompt ( #11588 )
2022-10-27 17:24:41 +02:00
Sammy Rosso
a15e0797e4
Support non english mnemonics for wallet creation ( #11543 )
...
* add option to log rejected gossip message
* add bip39 supported mnemonic languages
* Revert "add option to log rejected gossip message"
This reverts commit 9a3d4486f6c8a623d9eb6b3af1a5a89aa62ecf2f.
* Add mnemonic language flag
* Update go.mod
* Simplify language mapping
* Add test for setBip39Lang
* Update go.mod
* Improve language matching
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Run gazelle + fix maligned struct
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-26 21:04:00 +00:00
james-prysm
648ab9f2c2
revert moving validator-exit command ( #11575 )
2022-10-25 03:52:30 +00:00
james-prysm
df694aad71
prysmctl: validator exit ( #11515 )
...
* moving voluntary exit command to prysmctl
* fixing linting
* fixing imports
* removing unused import:
* refactoring and adding a new unit test
* rolling back some changes
* fixing parameters
* fixing tests
* adding to main prysm ctl
* refactoring how wallet function works and ux to validator exit
* adding interop support
* fixing bazel build
* fixing if statement
* fixing beaconcha.in printout
* fixing web3signer bug, missing signing slot info
* fixing deep source issues
* fixing bazel package visibility for prysmctl
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-10-17 16:04:19 -05:00
Mike Neuder
cbc2153664
Wallet Create CLI manager integration ( #11331 )
...
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* Wallet create CLI Manager migration
* Wallet recover CLI Manager migration (#11278 )
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* add TODO to remove duplicate code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* Wallet recover CLI Manager migration (#11278 )
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* add TODO to remove duplicate code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* bazel run //:gazelle -- fix
* rename to ConstructCLIManagerOpts
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-09-02 14:56:47 +00:00
Raul Jordan
d077483577
Add V3 Suffix to All Prysm Packages ( #11083 )
...
* v3 import renamings
* tidy
* fmt
* rev
* Update beacon-chain/core/epoch/precompute/reward_penalty_test.go
* Update beacon-chain/core/helpers/validators_test.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/iface/BUILD.bazel
* Update beacon-chain/db/kv/kv.go
* Update beacon-chain/db/kv/state.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/sync/initial-sync/service.go
* fix deps
* fix bad replacements
* fix bad replacements
* change back
* gohashtree version
* fix deps
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-08-16 12:20:13 +00:00
Preston Van Loon
9d375969d1
Enforce log.WithError(err) static analysis and fix all violations ( #11163 )
...
* Use log.WithError static analysis from #11143 and fix all violations
* Fix another log violation after pulling from develop
* Update beacon-chain/sync/pending_blocks_queue.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
* @potuz feedback
* Copy paste fail
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-08-05 10:52:02 +00:00
Radosław Kapka
7f56ac6355
Massive code cleanup ( #10913 )
...
* Massive code cleanup
* fix test issues
* remove GetGenesis mock expectations
* unused receiver
* rename unused params
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-27 13:34:38 +00:00
Mike Neuder
a80c15f3a9
Refactor validator accounts import to remove cli context dependency ( #10890 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-06-16 14:14:03 +00:00
Nishant Das
23e8e695cc
Fix Sepolia Testnet Initialization ( #10886 )
2022-06-15 15:05:44 +00:00
Mike Neuder
80f4f22401
Refactor validator accounts exit to remove cli context dependency ( #10841 )
...
* Refactor validator accounts exit to remove cli context dependency
* bazel run //:gazelle -- fix
* fixing deepsource findings
* fixing broken test
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-06-13 15:17:46 +00:00
Mike Neuder
6357860cc2
Refactor validator accounts backup to remove cli context dependency ( #10824 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-06-07 15:19:12 +00:00
kasey
588dea83b7
Config registry ( #10683 )
...
* test coverage and updates to config twiddlers
* LoadChainConfigFile error if SetActive conflicts
* lint
* wip working around test issues
* more fixes, mass test updates
* lint
* linting
* thanks deepsource!
* fix undeclared vars
* fixing more undefined
* fix a bug, make a bug, repeat
* gaz
* use stock mainnet in case fork schedule matters
* remove unused KnownConfigs
* post-merge cleanup
* eliminating OverrideBeaconConfig outside tests
* more cleanup of OverrideBeaconConfig outside tests
* config for interop w/ genesis gen support
* improve var name
* API on package instead of exported value
* cleanup remainders of "registry" naming
* Nishant feedback
* add ropstein to configset
* lint
* lint #2
* ✂️
* revert accidental commented line
* check if active is nil (replace called on empty)
* Nishant feedback
* replace OverrideBeaconConfig call
* update interop instructions w/ new flag
* don't let interop replace config set via cli flags
Co-authored-by: kasey <kasey@users.noreply.github.com>
2022-05-20 07:16:53 +00:00
terencechain
0d2696ed4e
Add bopsten config and cli flag ( #10700 )
...
* Add bopsten config and cli flag
* Rename : )
* Update genesis time
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-18 19:29:24 +00:00
Mike Neuder
9fab9df61e
Refactor validator accounts delete to remove cli context dependency ( #10686 )
...
* add functional options accounts delete
* bazel run //:gazelle -- fix
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-05-17 23:13:36 +00:00
Mike Neuder
231208c977
Refactor validator accounts list to remove cli context dependency ( #10554 )
...
* accounts list cleanup
* go.sum
* go mod tidy -compat=1.17
* add comment back
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-04-28 14:46:46 +00:00
Leo Lara
7f53700306
Remove feature and flag Pyrmont testnet ( #10522 )
...
* Remove feature and flag Pyrmont testnet
* Remove unused parameter
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-15 15:30:32 +00:00
Raul Jordan
eebcd52ee6
Miscellaneous Packages from Shared Into Proper Folders ( #9638 )
...
* slashutil
* builds
* interop
* viz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 18:11:16 +00:00
Raul Jordan
495e92ce9f
Create Runtime Package for Moving Several Packages in Shared/ ( #9588 )
...
* add maxprocs
* add prereqs
* add tos and version pkg
* add in all runtime packages
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 09:46:29 +00:00
terence tsao
31a78ab22a
Create config package for Shared/featureconfig ( #9593 )
...
* add config/features
* Gazelle
* Gazelle
* Fix build
* Go mod tidy
* active cache
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
2021-09-15 01:18:39 +00:00
Raul Jordan
7d5f30b01e
Delete Deprecated Flags and Old Slashing Protection for V2 ( #9453 )
...
* delete deprecated flags and old slashing protection schema
* remove toledo mentions
* build
* do not remove migration
2021-08-26 13:48:25 -05:00
Raul Jordan
a860648960
Reduce Usage of Eth2 Terminology in Prysm ( #9104 )
...
* remove all mentions
* more changes
* folder by folder
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-06-26 19:00:33 +00:00
Preston Van Loon
034a28710e
Add Prater config ( #8613 )
...
* Add Prater config
* Register flag everywhere
* gofmt
* Apply suggestions from code review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Update shared/params/testnet_prater_config.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-03-17 14:14:07 +00:00
Raul Jordan
ff329df808
Add All Other Prysm CLI Entrypoints to "cmd" Folder ( #8545 )
...
* other cmd
* comments
* gaz
* gaz ignored file
* build
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-03 17:05:37 +00:00