-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prysm flow * prysm specific info * remove DS_Store * removed... * initial commit * fixing tags * fixing linting * adding warning that API works only post bellatrix * updating based on some review comments * fixing linting tabbing * adjusting functions based on comment feedback * updating description * removing unneeded file * deleted the wrong file adding it back in and deleting the correct one * updating based on review comments * updating based on review comments * updating based on comments * adjusting path
- Loading branch information
1 parent
e9617c2
commit 28c18e1
Showing
5 changed files
with
103 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
get: | ||
operationId: ListFeeRecipient | ||
summary: List Fee Recipient. | ||
description: | | ||
List the validator public key to eth address mapping for fee recipient feature on a specific public key. | ||
The validator public key will return with the default fee recipient address if a specific one was not found. | ||
WARNING: The fee_recipient is not used on Phase0 or Altair networks. | ||
security: | ||
- bearerAuth: [] | ||
tags: | ||
- Fee Recipient | ||
parameters: | ||
- in: path | ||
name: pubkey | ||
schema: | ||
$ref: "../keymanager-oapi.yaml#/components/schemas/Pubkey" | ||
required: true | ||
responses: | ||
"200": | ||
description: success response | ||
content: | ||
application/json: | ||
schema: | ||
title: ListFeeRecipientResponse | ||
type: object | ||
required: [data] | ||
properties: | ||
data: | ||
$ref: "../keymanager-oapi.yaml#/components/schemas/FeeRecipient" | ||
"401": | ||
$ref: "../keymanager-oapi.yaml#/components/responses/Unauthorized" | ||
"403": | ||
$ref: "../keymanager-oapi.yaml#/components/responses/Forbidden" | ||
"404": | ||
$ref: "../keymanager-oapi.yaml#/components/responses/NotFound" | ||
"500": | ||
$ref: "../keymanager-oapi.yaml#/components/responses/InternalError" | ||
|
||
post: | ||
operationId: SetFeeRecipient | ||
summary: Set Fee Recipient. | ||
description: | | ||
Sets the validator client fee recipient mapping which will then update the beacon node. | ||
Existing mappings for the same validator public key will be overwritten. | ||
Specific Public keys not mapped will continue to use the default address for fee recipient in accordance to the startup of the validator client and beacon node. | ||
Cannot specify default fee recipient address through API. | ||
WARNING: The fee_recipient is not used on Phase0 or Altair networks. | ||
security: | ||
- bearerAuth: [] | ||
tags: | ||
- Fee Recipient | ||
parameters: | ||
- in: path | ||
name: pubkey | ||
schema: | ||
$ref: "../keymanager-oapi.yaml#/components/schemas/Pubkey" | ||
required: true | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../keymanager-oapi.yaml#/components/schemas/EthAddress' | ||
required: true | ||
responses: | ||
"202": | ||
description: successfully updated | ||
"400": | ||
$ref: "../keymanager-oapi.yaml#/components/responses/BadRequest" | ||
"401": | ||
$ref: "../keymanager-oapi.yaml#/components/responses/Unauthorized" | ||
"403": | ||
$ref: "../keymanager-oapi.yaml#/components/responses/Forbidden" | ||
"404": | ||
$ref: "../keymanager-oapi.yaml#/components/responses/NotFound" | ||
"500": | ||
$ref: "../keymanager-oapi.yaml#/components/responses/InternalError" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type: string | ||
description: "An address on the execution (Ethereum 1) network." | ||
example: "0xabcf8e0d4e9587369b2301d0790347320302cc09" | ||
pattern: "^0x[a-fA-F0-9]{40}$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: object | ||
required: [pubkey,ethaddress] | ||
properties: | ||
pubkey: | ||
$ref: './public_key.yaml' | ||
ethaddress: | ||
$ref: './eth_address.yaml' |