Skip to content

Commit 3c99163

Browse files
committed
Merge branch 'master' into nflaig/remove-block-apis
2 parents d4e98c2 + 203410d commit 3c99163

31 files changed

+627
-57
lines changed

apis/beacon/blob_sidecars/blob_sidecars.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ get:
3939
properties:
4040
version:
4141
type: string
42-
enum: [phase0, altair, bellatrix, capella, deneb]
42+
enum: [phase0, altair, bellatrix, capella, deneb, electra]
4343
example: "deneb"
4444
execution_optimistic:
4545
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
@@ -68,5 +68,7 @@ get:
6868
example:
6969
code: 404
7070
message: "Block not found"
71+
"406":
72+
$ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
7173
"500":
7274
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError"

apis/beacon/blocks/attestations.v2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ get:
1515
headers:
1616
Eth-Consensus-Version:
1717
$ref: '../../../beacon-node-oapi.yaml#/components/headers/Eth-Consensus-Version'
18+
description: "The active consensus version to which the attestations belong."
1819
content:
1920
application/json:
2021
schema:

apis/beacon/blocks/blinded_block.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ get:
2626
properties:
2727
version:
2828
type: string
29-
enum: [phase0, altair, bellatrix, capella, deneb]
29+
enum: [phase0, altair, bellatrix, capella, deneb, electra]
3030
example: "phase0"
3131
execution_optimistic:
3232
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
@@ -39,6 +39,7 @@ get:
3939
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBlindedBeaconBlock"
4040
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBlindedBeaconBlock"
4141
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlindedBeaconBlock"
42+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBlindedBeaconBlock"
4243
application/octet-stream:
4344
schema:
4445
description: "SSZ serialized block bytes. Use Accept header to choose this response type"
@@ -60,5 +61,7 @@ get:
6061
example:
6162
code: 404
6263
message: "Block not found"
64+
"406":
65+
$ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
6366
"500":
6467
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError"

apis/beacon/blocks/blinded_blocks.v2.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ post:
4242
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion'
4343
required: true
4444
name: Eth-Consensus-Version
45-
description: "Version of the block being submitted."
45+
description: "The active consensus version to which the block being submitted belongs."
4646
requestBody:
4747
description: "The `SignedBlindedBeaconBlock` object composed of `BlindedBeaconBlock` object (produced by beacon node) and validator signature."
4848
required: true
@@ -55,6 +55,7 @@ post:
5555
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBlindedBeaconBlock"
5656
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBlindedBeaconBlock"
5757
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlindedBeaconBlock"
58+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBlindedBeaconBlock"
5859
application/octet-stream:
5960
schema:
6061
description: "SSZ serialized block bytes. Use content type header to indicate that SSZ data is contained in the request body."

apis/beacon/blocks/blinded_blocks.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ post:
33
- Beacon
44
- ValidatorRequiredApi
55
summary: "Publish a signed block."
6+
deprecated: true
67
operationId: "publishBlindedBlock"
78
description: |
89
Instructs the beacon node to use the components of the `SignedBlindedBeaconBlock` to construct and publish a
@@ -20,7 +21,7 @@ post:
2021
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion'
2122
required: false
2223
name: Eth-Consensus-Version
23-
description: "Version of the block being submitted, if using SSZ encoding."
24+
description: "The active consensus version to which the block being submitted belongs."
2425
requestBody:
2526
description: "The `SignedBlindedBeaconBlock` object composed of `BlindedBeaconBlock` object (produced by beacon node) and validator signature."
2627
required: true
@@ -33,6 +34,7 @@ post:
3334
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBlindedBeaconBlock"
3435
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBlindedBeaconBlock"
3536
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlindedBeaconBlock"
37+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBlindedBeaconBlock"
3638
application/octet-stream:
3739
schema:
3840
description: "SSZ serialized block bytes. Use content type header to indicate that SSZ data is contained in the request body."

apis/beacon/blocks/block.v2.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ get:
2626
properties:
2727
version:
2828
type: string
29-
enum: [phase0, altair, bellatrix, capella, deneb]
29+
enum: [phase0, altair, bellatrix, capella, deneb, electra]
3030
example: "phase0"
3131
execution_optimistic:
3232
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
@@ -39,9 +39,9 @@ get:
3939
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBeaconBlock"
4040
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBeaconBlock"
4141
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBeaconBlock"
42+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBeaconBlock"
4243
application/octet-stream:
4344
schema:
44-
4545
description: "SSZ serialized block bytes. Use Accept header to choose this response type"
4646
"400":
4747
description: "The block ID supplied could not be parsed"
@@ -61,5 +61,7 @@ get:
6161
example:
6262
code: 404
6363
message: "Block not found"
64+
"406":
65+
$ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
6466
"500":
6567
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError"

apis/beacon/blocks/blocks.v2.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ post:
4141
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion'
4242
required: true
4343
name: Eth-Consensus-Version
44-
description: "Version of the block being submitted."
44+
description: "The active consensus version to which the block being submitted belongs."
4545
requestBody:
4646
description: "The `SignedBeaconBlock` object composed of `BeaconBlock` object (produced by beacon node) and validator signature."
4747
required: true
@@ -54,6 +54,7 @@ post:
5454
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBeaconBlock"
5555
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBeaconBlock"
5656
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlockContents"
57+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBlockContents"
5758
application/octet-stream:
5859
schema:
5960
description: "SSZ serialized block bytes. Use content type header to indicate that SSZ data is contained in the request body."

apis/beacon/blocks/blocks.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ post:
33
- Beacon
44
- ValidatorRequiredApi
55
summary: "Publish a signed block."
6+
deprecated: true
67
operationId: "publishBlock"
78
description: |
89
Instructs the beacon node to broadcast a newly signed beacon block to the beacon network,
@@ -19,7 +20,7 @@ post:
1920
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion'
2021
required: false
2122
name: Eth-Consensus-Version
22-
description: "Version of the block being submitted, if using SSZ encoding."
23+
description: "The active consensus version to which the block being submitted belongs."
2324
requestBody:
2425
description: "The `SignedBeaconBlock` object composed of `BeaconBlock` object (produced by beacon node) and validator signature."
2526
required: true
@@ -32,6 +33,7 @@ post:
3233
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Bellatrix.SignedBeaconBlock"
3334
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Capella.SignedBeaconBlock"
3435
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.SignedBlockContents"
36+
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedBlockContents"
3537
application/octet-stream:
3638
schema:
3739
description: "SSZ serialized block bytes. Use content type header to indicate that SSZ data is contained in the request body."

apis/beacon/deposit_snapshot.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
summary: "Get Deposit Tree Snapshot"
44
description: |
55
Retrieve [EIP-4881](https://eips.ethereum.org/EIPS/eip-4881) Deposit Tree Snapshot.
6-
Depending on `Accept` header it can be returned either as json or as bytes serialzed by SSZ
6+
Depending on `Accept` header it can be returned either as json or as bytes serialized by SSZ
77
tags:
88
- Beacon
99
responses:
@@ -30,5 +30,7 @@
3030
example:
3131
code: 404
3232
message: "No Finalized Snapshot Available"
33+
"406":
34+
$ref: "../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
3335
"500":
3436
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'

apis/beacon/light_client/bootstrap.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ get:
3232
anyOf:
3333
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Altair.LightClientBootstrap'
3434
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Capella.LightClientBootstrap'
35+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Deneb.LightClientBootstrap'
36+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.LightClientBootstrap'
3537
application/octet-stream:
3638
schema:
3739
description: "SSZ serialized `LightClientBootstrap` bytes. Use Accept header to choose this response type"
@@ -54,13 +56,6 @@ get:
5456
code: 404
5557
message: "LC bootstrap unavailable"
5658
"406":
57-
description: Unacceptable media type
58-
content:
59-
application/json:
60-
schema:
61-
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
62-
example:
63-
code: 406
64-
message: "Accepted media type not supported"
59+
$ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
6560
"500":
6661
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError"

0 commit comments

Comments
 (0)