Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET /eth/v1/validator/sync_committee_contribution #138

Merged
merged 4 commits into from
May 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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