Skip to content

Commit

Permalink
Remove array from attestation rewards response (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul authored Feb 5, 2023
1 parent 1741560 commit 181575d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
2 changes: 0 additions & 2 deletions apis/beacon/rewards/attestations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ post:
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:
Expand Down
22 changes: 11 additions & 11 deletions types/rewards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ SyncCommitteeRewards:
- description: "sync committee reward in gwei for the validator"

AttestationsRewards:
type: object
description: "Rewards info for attestations"
type: array
items:
properties:
ideal_rewards:
type: array
items:
$ref: ./rewards.yaml#/IdealAttestationRewards
total_rewards:
type: array
items:
$ref: ./rewards.yaml#/AttestationRewards
required: ["ideal_rewards", "total_rewards"]
properties:
ideal_rewards:
type: array
items:
$ref: ./rewards.yaml#/IdealAttestationRewards
total_rewards:
type: array
items:
$ref: ./rewards.yaml#/AttestationRewards

AttestationRewards:
type: object
Expand Down

0 comments on commit 181575d

Please sign in to comment.