terence
774b9a7159
Migrate Prysm repo to Offchain Labs organization ahead of Pectra V6 ( #15140 )
...
* Migrate Prysm repo to Offchain Labs organization ahead of Pectra upgrade v6
* Replace prysmaticlabs with OffchainLabs on general markdowns
* Update mock
* Gazelle and add mock.go to excluded generated mock file
2025-04-10 15:40:39 +00:00
Preston Van Loon
2aa52fb56a
Add static analyzer to discourage use of panic() ( #15075 )
...
* Implement static analysis to prevent panics
* Add nopanic to nogo
* Fix violations and add exclusions
Fix violations and add exclusions for all
* Changelog fragment
* Use pass.Report instead of pass.Reportf
* Remove strings.ToLower for checking init method name
* Add exclusion for herumi init
* Move api/client/beacon template function to init and its own file
* Fix nopanic testcase
2025-03-19 18:04:15 +00:00
kasey
842f241cb9
Reduce size of api/client import graph ( #14871 )
...
* relocate DownloadFinalizedData from api to sync
* unexpected go mod changes
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2025-02-05 20:40:13 +00:00
Manu NALEPA
b2e3c29ab3
Improve logging. ( #13708 )
...
* Improve logging.
* Make deepsource happy.
* Fix comment.
2024-03-08 12:23:34 +00:00
Radosław Kapka
0b261cba5e
Unify log fields ( #13654 )
...
* unify fields
* fix tests
2024-02-22 22:40:36 +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
e3ce1bde45
Move API structs to api module ( #13577 )
2024-02-03 11:57:01 +00:00
Radosław Kapka
4c47756aed
HTTP endpoints cleanup ( #13251 )
...
* remove validation package
* structs cleanup
* merge with apimiddleware removal
* more validation and Bls capitalization
* builder test fix
* use strconv for uint->str conversions
* use DecodeHexWithLength
* use exact param names
* rename http package to httputil
* change conversions to fmt.Sprintf
* handle query paramsd and route variables
* spans and receiver name
* split structs, move bytes helper
* missing ok check
* fix reference to indexed failure
* errors fixup
* add godoc to helper
* fix BLS casing and chainhead ref
* review
* fix import in tests
* gzl
2023-12-08 20:37:20 +00:00
Radosław Kapka
a0ca4a67b0
Remove API Middleware ( #13243 )
...
* remove api/gateway/apimiddleware
* fix errors in api/gateway
* remove beacon-chain/rpc/apimiddleware
* fix errors in api/client/beacon
* fix errors in validator/client/beacon-api
* fix errors in beacon-chain/node
* fix errors in validator/node
* fix errors in cmd/prysmctl/validator
* fix errors in testing/endtoend
* fix all other code
* remove comment
* fix tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-12-04 11:55:21 +00:00
Radosław Kapka
cd8d499198
Move weak subjectivity endpoint to HTTP ( #13220 )
...
* Move weak subjectivity endpoint to HTTP
* remove server test file
* remove deprecation
2023-11-27 14:44:26 +00:00
Radosław Kapka
28aa11c976
Config HTTP endpoints ( #13168 )
...
* Config HTTP endpoints
* error on unsupported type
* type assertion
2023-11-13 23:38:23 +00:00
james-prysm
55e4c6e1db
HTTP API: /eth/v1/beacon/pool/bls_to_execution_changes ( #12963 )
...
* wip
* wip changes for beacon handlers
* wip
* updating protos
* fixing conflict
* fixing protos
* fixing more tests
* migrating tests and removing one that is irrelevant
* fixing e2e
* fixing unit tests
* missed adding routes
* gaz
* fixing more tests
* Update beacon-chain/rpc/eth/beacon/handlers_pool.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* radek's comments
* fixing protos after conflict
* accidently removed a proto type
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-10-11 14:08:06 +00:00
james-prysm
c8b39e08ef
cleanup on api types ( #12961 )
...
* removing code duplication using shared types
* gaz
* fixing test
* fixing tests
2023-09-27 09:26:32 -05:00
james-prysm
6672d1499a
prysmctl: output proposer settings ( #12181 )
...
* wip proposer settings
* WIP validator client APIs
* adding proposer settings output
* adding unit tests
* fixing linting
* fixing deepsource issues
* fixing e2e
* fixing deep source issue
* updating naming to not stutter
* updating bazel
* fixing linting error
* reverting comment
* adding builder settings
* gaz
* Update validator/client/validator.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* adding comments
* adding some tests
* gaz
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/errors.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/validator/client.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 api/client/validator/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/validator/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/errors.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing feedback
* fixing unit test
* addressign comments
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-06-06 17:03:30 +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
0c025ab719
prysmctl: fix withdrawals fork checking logic ( #12130 )
...
* coded based on suggestions from slack
* fixing linting
* removing unused flags and space
* small improvement to log
2023-03-15 12:32:11 +08:00
Radosław Kapka
77d3ccb9ad
Clean up state types ( #11916 )
...
* Clean up state types
* rename package
2023-01-26 14:40:12 +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
Håvard Anda Estensen
4796827d22
Replace deprecated linter deadcode with unused ( #11334 )
...
* Replace deprecated linter deadcode with unused
* Ignore unused warnings
* Print filename and line number when linting fails
* Fix path
* Remove unused methods
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-29 12:45:25 -04: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
kasey
a1a12243be
Sync from finalized ( #10723 )
...
* checkpoint sync use finalized state+block
instead of finding the block at the beginning of the weak subjectivity
epoch.
* happy path test for sync-from-finalized
* gofmt
* functional opts for the minimal e2e
* add TestCheckpointSync option
* wip: pushing for CI
* include conn index in log for debugging
* lint
* block until regular sync test finishes
* restore TestSync->testDoppelGangerProtection link
* update bazel deps for all the test targets
* updating to match current checksum from github
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-05-25 22:52:43 +00:00
terencechain
092e9e1d19
Clean up various warnings ( #10710 )
...
* Clean up various warnings
* Update beacon-chain/rpc/prysm/v1alpha1/debug/state_test.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Fix redundant casting genState
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-05-19 04:38:04 +00:00
kasey
58b18c7996
Fix URL handling in beacon node api client ( #10632 )
...
* if url.Parse suceeds, don't mess with node urls
* lint
* add test case for basic auth
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-05-05 16:03:31 +00:00
kasey
10e1f04ce4
Checkpoint sync fixes ( #10630 )
...
* fixes for checkpoint sync
* improve node version regex; real client test cases
* add test case for checkpoint sync finalization fix
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-05-04 23:41:33 +00:00
Raul Jordan
84916672c6
Remove Eth2-Types Dependency in Prysm ( #10578 )
...
* replace eth2 types
* replace protos
* regen proto
* replace
* gaz
* deps
* amend
* regen proto
* mod
* gaz
* gaz
* ensure build
* ssz
* add dep
* no more eth2 types
* no more eth2
* remg
* all builds
* buidl
* tidy
* clean
* fmt
* val serv
* gaz
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-04-29 10:32:11 -04:00
Håvard Anda Estensen
d2f4a8cc7c
Replace ioutil with io and os ( #10541 )
...
* Replace ioutil with io and os
* Fix build errors
2022-04-18 20:42:07 +00:00
kasey
0df8d7f0c0
refactor genesis state flag handling, support url ( #10449 )
...
* refactor genesis state flag handling, support url
* lint fix
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-03-30 22:23:34 +00:00
kasey
bfbf693660
Checkpoint Sync 3/5 - beacon node api client lib and prysmctl cli tool ( #10385 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-03-25 17:18:03 +00:00