Skip to content

Commit

Permalink
Merge pull request #138 from rolfyone/sync-committee-contribution
Browse files Browse the repository at this point in the history
GET `/eth/v1/validator/sync_committee_contribution`
  • Loading branch information
mpetrunic authored May 27, 2021
2 parents 33eb8a9 + 0df1c80 commit d7666a6
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 6 deletions.
43 changes: 43 additions & 0 deletions apis/validator/sync_committee_contribution.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
get:
tags:
- ValidatorRequiredApi
- Validator
operationId: "produceSyncCommitteeContribution"
summary: "Produce a sync committee contribution"
description: "Requests that the beacon node produce a sync committee contribution."
parameters:
- name: slot
in: query
required: true
description: "The slot for which a sync committee contribution should be created."
schema:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Uint64'
- name: subcommittee_index
in: query
description: "the subcommittee index for which to produce the contribution."
required: true
schema:
$ref: "../../beacon-node-oapi.yaml#/components/schemas/Uint64"
- name: beacon_block_root
in: query
description: "the block root for which to produce the contribution."
required: true
schema:
$ref: "../../beacon-node-oapi.yaml#/components/schemas/Root"
responses:
"200":
description: Success response
content:
application/json:
schema:
title: produceSyncCommitteeContributionResponse
type: object
properties:
data:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Altair.SyncCommitteeContribution'
"400":
$ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest'
"500":
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'
"503":
$ref: '../../beacon-node-oapi.yaml#/components/responses/CurrentlySyncing'
2 changes: 2 additions & 0 deletions beacon-node-oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ paths:
$ref: "./apis/validator/beacon_committee_subscriptions.yaml"
/eth/v1/validator/sync_committee_subscriptions:
$ref: "./apis/validator/sync_committee_subscriptions.yaml"
/eth/v1/validator/sync_committee_contribution:
$ref: "./apis/validator/sync_committee_contribution.yaml"
/eth/v1/validator/contribution_and_proofs:
$ref: "./apis/validator/sync_committee_contribution_and_proof.yaml"

Expand Down
11 changes: 5 additions & 6 deletions types/altair/sync_committee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ Altair:
- $ref: "../primitive.yaml#/Uint64"
- description: "The slot at which the validator is providing a sync committee contribution."
beacon_block_root:
allOf:
- $ref: '../primitive.yaml#/Root'
- description: "Block root for this contribution."
allOf:
- $ref: '../primitive.yaml#/Root'
- description: "Block root for this contribution."
subcommittee_index:
allOf:
- $ref: '../primitive.yaml#/Uint64'
Expand All @@ -84,9 +84,8 @@ Altair:
- example: "0x01"
signature:
allOf:
- $ref: '../primitive.yaml#/Signature'
- description: 'Signature by the validator(s) over the block root of `slot`'

- $ref: '../primitive.yaml#/Signature'
- description: 'Signature by the validator(s) over the block root of `slot`'
ValidatorsByIndex:
type: array
items:
Expand Down

0 comments on commit d7666a6

Please sign in to comment.