Dhruv Bodani
c89ab764e3
Add REST implementation for validator's GetSyncMessageBlockRoot ( #11824 )
...
* add REST implementation for GetSyncMessageBlockRoot
* improve sync_message_block_root_test.go to handle errors
* include context
* fix unit tests
2023-01-09 19:35:33 +00:00
Manu NALEPA
375a76d6c9
Add REST implementation for SubmitSyncMessage
( #11827 )
...
* Add REST implementation for `SubmitSyncMessage`
* Use context
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-01-09 17:05:18 +00:00
Manu NALEPA
4c9a0bf772
Add REST implementation for SubmitValidatorRegistrations
( #11816 )
...
* Add REST implementation for `SubmitValidatorRegistrations`
* Remove unused context
* Use context
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-01-06 19:46:09 +00:00
Patrice Vignola
3ff5895548
Add REST implementation for Validator's ProposeExit
( #11785 )
...
* Add REST implementation for Validator's GetBeaconBlock
* Move endpoint into constant
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-19 12:58:52 +00:00
Patrice Vignola
4eb4cd9756
Add REST implementation for Validator's PrepareBeaconProposer
( #11784 )
...
* Add REST implementation for Validator's PrepareBeaconProposer
* Change fee recipients
* Handle error in a better way
* Move endpoint into constant
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-19 12:23:54 +00:00
Patrice Vignola
e843cafe7d
Add REST implementation for Validator's GetBeaconBlock
( #11772 )
...
* WIP
* WIP
* WIP
* Remove unused parameter
* Address PR comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-15 22:34:05 +00:00
Manu NALEPA
9c21809c50
Add REST implementation for ValidatorStatus
( #11757 )
...
* Add REST implementation for `ValidatorStatus`
* Fix review comments
2022-12-14 12:58:36 +00:00
Patrice Vignola
fa01ee5eba
Add REST implementation for Validator's ProposeBeaconBlock
( #11731 )
...
* WIP
* WIP
* WIP
* Add tests
* WIP
* Add more tests
* Address DeepSource errors
* Remove unused param
* Add more tests
* Address PR comments
* Address PR comments
* Fix formatting
* Remove unused parameter
* Fix TestLittleEndianBytesToBigInt
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-12 10:39:51 +00:00
Patrice Vignola
dbeb3ee886
Onboard validator's Beacon REST API usage to e2e tests ( #11704 )
...
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Onboard validator's Beacon REST API usage to e2e tests
* Remove unused variables
* Remove use_beacon_api tags
* Fix DeepSource errors
* Revert unneeded changes
* Revert evaluator changes
* Revert import reordering
* Address PR comments
* Remove all REST API e2e tests except minimal one
* Fix validator pointing to inexisting beacon node port
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-08 14:38:56 +00:00
Manu NALEPA
6eee539425
Add REST implementation for Validator's WaitForActivation
(Ethereum Protocol Fellowship) ( #11671 )
...
* Implement REST `WaitForActivation`
* Activation: Factorize tests
* Fix PR comments
* `missingPubKeys`: Replace map by slice (no need to have a map here)
* Fix typo
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-12-07 19:20:11 +00:00
Manu NALEPA
0a5c65e29c
Add REST implementation for Validator's ValidatorIndex
( #11712 )
...
* Add GetAttestationData
* Add tests
* Add many more tests and refactor
* Fix logic
* Address PR comments
* Address PR comments
* Add jsonRestHandler and decouple http logic from rest of the code
* Add buildURL tests
* Remove handlers_test.go
* Improve tests
* Implement `ValidatorIndex` of `beaconApiValidatorClient` using Beacon API
* Implement getStateValidators
* `validatorIndex`: Use `getStateValidators`
Co-authored-by: Patrice Vignola <vignola.patrice@gmail.com>
2022-12-06 12:27:26 +00:00
Patrice Vignola
943a0556e9
Add REST implementation for Validator's DomainData
( #11711 )
...
* Add REST implementation for Validator's DomainData
* Add missing dependency
* Fix getForkVersion logic
* Remove unused helpers
* Fix deepsource error
* Fix deepsource error
* Address PR comments
* Remove outdated comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-05 10:27:41 +00:00
Patrice Vignola
e231cfd59d
Onboard validator's beacon REST API tests to CI ( #11682 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-11-24 11:50:13 +01:00
Patrice Vignola
0d4b98cd0a
Add REST implementation for Validator's WaitForChainStart ( #11654 )
...
* Add REST implementation for Validator's WaitForChainStart
* Add missing error mapping
* Add missing bazel dependency
* Add missing tests
* Address PR comments
* Replace EventErrorJson with DefaultErrorJson
* Add tests for WaitForChainStart
* Refactor tests
* Address PR comments
* Add gazelle:build_tag use_beacon_api comment in BUILD.bazel
* Address PR comments
* Address PR comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-11-22 12:12:55 +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