Radosław Kapka
8ad547c969
Remove Beacon API endpoints that were deprecated in Electra ( #15962 )
...
* Remove Beacon API endpoints that were deprecated in Electra
* changelog <3
* build fix
* remove more stuff
* fix post-submit e2e and remove structs
* list endpoints in the changelog
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2025-11-05 18:20:34 +00:00
Jun Song
5a897dfa6b
SSZ-QL: Add endpoints (BeaconState/BeaconBlock) ( #15888 )
...
* Move ssz_query objects into testing folder (ensuring test objects only used in test environment)
* Add containers for response
* Export sszInfo
* Add QueryBeaconState/Block
* Add comments and few refactor
* Fix merge conflict issues
* Return 500 when calculate offset fails
* Add test for QueryBeaconState
* Add test for QueryBeaconBlock
* Changelog :)
* Rename `QuerySSZRequest` to `SSZQueryRequest`
* Fix middleware hooks for RPC to accept JSON from client and return SSZ
* Convert to `SSZObject` directly from proto
* Move marshalling/calculating hash tree root part after `CalculateOffsetAndLength`
* Make nogo happy
* Add informing comment for using proto unsafe conversion
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-10-20 16:24:06 +00:00
james-prysm
7e32bbc199
Get blob fulu ( #15610 )
...
* wip
* wip
* adding ssz marshalling
* updating function for readability
* adding unit tests and fixing ssz
* gaz
* linting
* fixing test
* wip
* fixing mock blocker
* fixing test
* fixing tests and handler
* updating unit test for more coverage
* adding some comments
* self review
* gofmt
* updating and consolidating tests
* moving functional options so it can be used properly
* gofmt
* more missed gofmt
* Update beacon-chain/rpc/endpoints.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/lookup/blocker.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* radek feedback
* fixing tests
* fixing test
* moving endpoint in test
* removed unneeded comment
* fixing linting from latest develop merge
* fixing linting from latest develop merge
* Update beacon-chain/rpc/eth/blob/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/blob/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* reverting change
* reverting change
* adding in better error for which hashes are missing
* Update beacon-chain/rpc/lookup/blocker.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing unit test
* gofmt
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-09-17 15:42:25 +00:00
james-prysm
b740a4ff83
implements the proposer lookahead api ( #15525 )
...
* implements the proposer lookahead api
* radek's feedback
2025-07-24 15:00:43 +00:00
Radosław Kapka
bde7a57ec9
Implement pending consolidations Beacon API endpoint ( #15219 )
...
* get block
* Implement pending consolidations API endpoint
* changelog
* fixing test
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: james-prysm <james@prysmaticlabs.com >
2025-04-25 18:27:58 +00:00
Radosław Kapka
6a27c41aad
Implement validator identities Beacon API endpoint ( #15086 )
...
* implementation
* tests
* changelog <3
* linter fix
* test fix
2025-03-25 16:49:35 +00:00
james-prysm
7cef3b0491
adding omitempty to request object ( #15031 )
2025-03-11 13:43:00 +00:00
Sammy Rosso
3baaa732df
Add get pending partial withdrawals ( #14949 )
...
* add pending partial withdrawals endpoint
* changelog
* missing new line
* fix changelog
* removing unneeded header
* using generic instead of redundant functions
---------
Co-authored-by: james-prysm <james@prysmaticlabs.com >
2025-02-19 12:34:48 +00:00
Sammy Rosso
55efccb07f
Add get pending deposits endpoint ( #14941 )
...
* Add GetPendingDeposits endpoint
* add comment
* add changelog
* gaz
* Radek' review
* move JSON object params
* gaz
* Radek' nits xD
* James' review
2025-02-18 16:16:20 +00:00
Sammy Rosso
c0f9689e30
Add POST /eth/v2/beacon/pool/attestations endpoint ( #14621 )
...
* modify v1 and add v2
* test
* changelog
* small fixes
* fix tests
* simplify functions + remove duplication
* Radek' review + group V2 tests
* better errors
* fix tests
2024-11-08 11:33:27 +00:00
Sammy Rosso
09accc7132
Add GET /eth/v2/beacon/pool/attestations endpoint ( #14560 )
...
* add ListAttestationsV2 endpoint
* fix endpoint
* changelog
* add endpoint to tests
* add trailing comma
* add version header + lint fix
* all reviews
* modify v1 and comments
* fix linter
* Radek' review
2024-10-28 10:59:27 +00:00
Sammy Rosso
2afa63b442
Add GET /eth/v2/beacon/pool/attester_slashings ( #14479 )
...
* add endpoint
* changelog
* correct resp with both attestationSlashings types
* fix and comment
* fix test
* fix version check
* review + fixes
* fix
* James' review
* Review items
* Radek' review
* Radek' review
2024-10-16 09:23:23 +00:00
Sammy Rosso
57cc4950c0
Add /eth/v2/beacon/blocks/{block_id}/attestations ( #14478 )
...
* add endpoint
* changelog
* fix response
* improvement
* fix test
* James' review
* fix test
* fix version check
* add test for non electra V2
* Review items
* James' review
* Radek' review
* Update CHANGELOG.md
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-10-10 10:19:26 +00:00
Sammy Rosso
fb2620364a
HTTP endpoint for GetChainHead ( #14262 )
...
* add getChainHead endpoint
* James' review
* Radek' review
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-08-05 08:49:37 +00:00
Sammy Rosso
57ffc12f17
HTTP endpoint GetIndividualVotes ( #14198 )
...
* add http endpoint
* add tests
* Gaz
* Add pointers
* add endpoint to test
* Electra: EIP-7251 Update `process_voluntary_exit` (#14176 )
* Electra: EIP-7251 Update `process_voluntary_exit`
* Add unit test for VerifyExitAndSignature EIP-7251
* @potuz peer feedback
* Avoid Cloning When Creating a New Gossip Message (#14201 )
* Add Current Changes
* add back check
* Avoid a Panic
* fix: Multiple network flags should prevent the BN to start (#14169 )
* Implement Initial Logic
* Include check in main.go
* Add tests for multiple flags
* remove usage of append
* remove config/features dependency
* Move ValidateNetworkFlags to config/features
* Nit
* removed NetworkFlags from cmd
* remove usage of empty string literal
* add comment
* add flag validation to prysctl validator-exit
---------
Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com >
* fix tests
* Radek' review + tests
* fix tests
* Radek' review
* forgot one
* almost forgot the tests
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: kira <shyampkira@gmail.com >
Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-07-19 12:23:36 +00:00
Sammy Rosso
5afb1255fe
Add /eth/v1/beacon/deposit_snapshot endpoint ( #13514 )
...
* Add endpoint
* Uncomment in InitializeRoutes
* Add test
* Add 404
* Add more checks
* Test improvements
* Ssz
* Add ssz tags
* Add DepositSnapshot to bazel
* Fix tests
* Fix max size
* Resolve conflicts
* Revert untouched code
* Fix test + review
* Lint
* Oops
* Preston + Radek' review
* Only return 3 finalized roots
* Change to deposit contract depth
* Radek' review
* Gaz
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-02-07 22:53:08 +00:00
Radosław Kapka
e3ce1bde45
Move API structs to api module ( #13577 )
2024-02-03 11:57:01 +00:00