HTTP Validator API: /eth/v1/validator/{pubkey}/feerecipient (#13085)

* migrating fee recipient endpoints to pure http implementation

* fixing linting

* fixing type name

* fixing after merging develop

* fixing linting and tests

* Update validator/rpc/structs.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* Update validator/rpc/structs.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* Update validator/rpc/structs.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

---------

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
james-prysm
2023-10-24 11:55:45 -05:00
committed by GitHub
parent a2f60364ae
commit 2a067d5d03
14 changed files with 683 additions and 1478 deletions

View File

@@ -57,8 +57,8 @@ func getValidatorHappyPathTestServer(t *testing.T) *httptest.Server {
}
address, ok := feeMap[validatorKey]
require.Equal(t, ok, true)
err := json.NewEncoder(w).Encode(&apimiddleware.GetFeeRecipientByPubkeyResponseJson{
Data: &apimiddleware.FeeRecipientJson{
err := json.NewEncoder(w).Encode(&rpc.GetFeeRecipientByPubkeyResponse{
Data: &rpc.FeeRecipient{
Pubkey: validatorKey,
Ethaddress: address,
},