-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into sync_committee_rewards
- Loading branch information
Showing
5 changed files
with
237 additions
and
3 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
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,67 @@ | ||
post: | ||
operationId: getAttestationsRewards | ||
summary: Get attestations rewards | ||
description: Retrieve attestation reward info for validators specified by array of public keys or validator index. If no array is provided, return reward info for every validator. | ||
tags: | ||
- Beacon | ||
- Rewards | ||
- Experimental | ||
parameters: | ||
- name: epoch | ||
in: path | ||
required: true | ||
description: "The epoch to get rewards info from" | ||
schema: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Uint64" | ||
requestBody: | ||
description: "An array of either hex encoded public key (any bytes48 with 0x prefix) or validator index" | ||
required: false | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
uniqueItems: true | ||
items: | ||
description: "Either hex encoded public key (any bytes48 with 0x prefix) or validator index" | ||
type: string | ||
responses: | ||
"200": | ||
description: "Success" | ||
content: | ||
application/json: | ||
schema: | ||
title: GetAttestationsRewardsResponse | ||
type: object | ||
properties: | ||
execution_optimistic: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic" | ||
finalized: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized" | ||
data: | ||
type: array | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/AttestationsRewards" | ||
|
||
"400": | ||
description: "Invalid get attestations rewards request" | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" | ||
examples: | ||
InvalidRequest: | ||
value: | ||
code: 400 | ||
message: "Invalid request to retrieve attestations rewards info" | ||
"404": | ||
description: "Epoch not known or required data not available" | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" | ||
examples: | ||
InvalidRequest: | ||
value: | ||
code: 404 | ||
message: "Epoch not known or required data not available" | ||
"500": | ||
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError" |
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,52 @@ | ||
get: | ||
operationId: getBlockRewards | ||
summary: Get block rewards | ||
description: Retrieve block reward info for a single block | ||
tags: | ||
- Beacon | ||
- Rewards | ||
- Experimental | ||
parameters: | ||
- name: block_id | ||
in: path | ||
required: true | ||
$ref: '../../../beacon-node-oapi.yaml#/components/parameters/BlockId' | ||
responses: | ||
"200": | ||
description: "Success" | ||
content: | ||
application/json: | ||
schema: | ||
title: GetBlockRewardsResponse | ||
type: object | ||
properties: | ||
execution_optimistic: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic" | ||
finalized: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized" | ||
data: | ||
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/BlockRewards' | ||
"400": | ||
description: "Invalid get block rewards request" | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" | ||
examples: | ||
InvalidRequest: | ||
value: | ||
code: 400 | ||
message: "Invalid request to retrieve block rewards info" | ||
"404": | ||
description: "Block or required state not found" | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" | ||
examples: | ||
InvalidRequest: | ||
value: | ||
code: 404 | ||
message: "Block or required state not found" | ||
"500": | ||
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError" |
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