james-prysm
d6ae838bbf
replace receive slot with event stream ( #13563 )
...
* WIP
* event stream wip
* returning nil
* temp removing some tests
* wip health checks
* fixing conficts
* updating fields based on linting
* fixing more errors
* fixing mocks
* fixing more mocks
* fixing more linting
* removing white space for lint
* fixing log format
* gaz
* reverting changes on grpc
* fixing unit tests
* adding in tests for health tracker and event stream
* adding more tests for streaming slot
* gaz
* Update api/client/event/event_stream.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* review comments
* Update validator/client/runner.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/beacon-api/beacon_api_validator_client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing radek comments
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing review feedback
* moving things to below next slot ticker
* fixing tests
* update naming
* adding TODO comment
* Update api/client/beacon/health.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing comments
* fixing broken linting
* fixing more import issues
* fixing more import issues
* linting
* updating based on radek's comments
* addressing more comments
* fixing nogo error
* fixing duplicate import
* gaz
* adding radek's review suggestion
* Update proto/prysm/v1alpha1/node.proto
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* preston review comments
* Update api/client/event/event_stream.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* Update validator/client/validator.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* addressing some more preston review items
* fixing tests for linting
* fixing missed linting
* updating based on feedback to simplify
* adding interface check at the top
* reverting some comments
* cleaning up intatiations
* reworking the health tracker
* fixing linting
* fixing more linting to adhear to interface
* adding interface check at the the top of the file
* fixing unit tests
* attempting to fix dependency cycle
* addressing radek's comment
* Update validator/client/beacon-api/beacon_api_validator_client.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* adding more tests and feedback items
* fixing TODO comment
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2024-03-13 13:01:05 +00:00
james-prysm
3a2734f249
removing show deposit data flag ( #13618 )
...
* removing show deposit data flag
* removing flag insted of deprecating
* fixing test
* fixing test
2024-02-15 19:49:50 +00:00
terence
5a66807989
Update to V5 ( #13622 )
...
* First take at updating everything to v5
* Patch gRPC gateway to use prysm v5
Fix patch
* Update go ssz
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2024-02-15 05:46:47 +00:00
Radosław Kapka
2875ce6ee1
Use a single rest handler ( #13446 )
2024-01-11 16:03:35 +00:00
james-prysm
27b4e32e1c
HTTP Validator API: /eth/v1/keystores
( #13113 )
...
* WIP
* fixing tests
* fixing bazel
* fixing api client
* fixing tests
* fixing more tests and bazel
* fixing trace and more bazel issues
* fixing router path function definitions
* fixing more tests and deep source issues
* adding delete test
* if a route is provided, reregister before the catch all on the middleware.
* fixing linting
* fixing deepsource complaint
* gaz
* more deepsource issues
* fixing missed err check
* changing how routes are registered
* radek reviews
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
* fixing unit test after sammy's review
* adding radek's comments
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
2023-10-31 16:33:54 +00:00
terencechain
9387a36b66
Refactor Exported Names to Follow Golang Best Practices ( #13075 )
...
* Fix exported names that start with a package name
* A few more renames
* Fix exported names that start with a package name
* A few more renames
* Radek's feedback
* Fix conflict
* fix keymanager test
* Fix comments
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-20 16:45:33 +00:00
Preston Van Loon
0c7292b85b
prysmctl: Add support for writing signed validator exits to disk ( #12262 )
...
* prysmctl: Add support for writing signed validator exits to disk
* Add dir suffix
* Add test to ensure no broadcast call was made
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-17 18:01:13 +00:00
Patrice Vignola
7c49277e83
Add REST API stubs for beacon chain, node and slasher clients ( #12094 )
...
* WIP
* WIP
* Remove duplicate mock
* WIP
* Revert "WIP"
This reverts commit a8010057fef4209dfddde34ea868b88f1e196c44.
* Fix build break
* Remove unused variable
* Fix build break
* Rename validator_mock to validatormock
* Fix failing test
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-03-20 16:32:32 +00:00
terencechain
d17996f8b0
Update to V4
🚀 ( #12134 )
...
* Update V3 from V4
* Fix build v3 -> v4
* Update ssz
* Update beacon_chain.pb.go
* Fix formatter import
* Update update-mockgen.sh comment to v4
* Fix conflicts. Pass build and tests
* Fix test
2023-03-17 18:52:56 +00:00
james-prysm
753e285fb6
Prysm V4: Remove Prysm Remote Signer ( #11895 )
...
* removing all prysm remote signer code
* fixing unit tests
* resolving more build issues
* resolving deepsource complaint
* fixing lint
* trying to fix bazel library
* trying testonly true
* removing assert and require from non test settings
* fixing bazel and tests
* removing more unused files related to remote signer
* fixing linting
* reverting some changes
* reverting a change that broke some code
* removing typo
* fixing unit test
* fixing mnemonic information
2023-03-08 21:21:12 -06:00
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
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
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
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
Mike Neuder
e99de7726d
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>
2022-08-24 16:57:03 +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
Mike Neuder
8aa6057b60
Wallet edit CLI Manager migration ( #11136 )
...
* Wallet edit CLI Manager migration
* TODO for code deduplication
* s/walletEdit/remoteWalletEdit/g
* s/walletEdit/remoteWalletEdit/g
* remove unused struct field
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-08-03 19:44:37 +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
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
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