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

+3-1
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

+1
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

+4-1
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

+2-1
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

+3-1
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

+4-2
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

+2-1
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

+3-1
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

+3-1
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

+3-8
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"

apis/beacon/light_client/finality_update.yaml

+3-8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ get:
2727
anyOf:
2828
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Altair.LightClientFinalityUpdate'
2929
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Capella.LightClientFinalityUpdate'
30+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Deneb.LightClientFinalityUpdate'
31+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.LightClientFinalityUpdate'
3032
application/octet-stream:
3133
schema:
3234
description: "SSZ serialized `LightClientFinalityUpdate` bytes. Use Accept header to choose this response type"
@@ -40,13 +42,6 @@ get:
4042
code: 404
4143
message: "LC finality update unavailable"
4244
"406":
43-
description: Unacceptable media type
44-
content:
45-
application/json:
46-
schema:
47-
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
48-
example:
49-
code: 406
50-
message: "Accepted media type not supported"
45+
$ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
5146
"500":
5247
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError"

apis/beacon/light_client/optimistic_update.yaml

+3-8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ get:
2727
anyOf:
2828
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Altair.LightClientOptimisticUpdate'
2929
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Capella.LightClientOptimisticUpdate'
30+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Deneb.LightClientOptimisticUpdate'
31+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.LightClientOptimisticUpdate'
3032
application/octet-stream:
3133
schema:
3234
description: "SSZ serialized `LightClientOptimisticUpdate` bytes. Use Accept header to choose this response type"
@@ -40,13 +42,6 @@ get:
4042
code: 404
4143
message: "LC optimistic update unavailable"
4244
"406":
43-
description: Unacceptable media type
44-
content:
45-
application/json:
46-
schema:
47-
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
48-
example:
49-
code: 406
50-
message: "Accepted media type not supported"
45+
$ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
5146
"500":
5247
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError"

apis/beacon/light_client/updates.yaml

+6-9
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ get:
3737
anyOf:
3838
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Altair.LightClientUpdate'
3939
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Capella.LightClientUpdate'
40+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Deneb.LightClientUpdate'
41+
- $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.LightClientUpdate'
4042
application/octet-stream:
4143
schema:
4244
description: |
@@ -60,7 +62,9 @@ get:
6062
| ------------------------------------------------------------------- | ------------------------------------- |
6163
| `GENESIS_FORK_VERSION` | n/a |
6264
| <nobr>`ALTAIR_FORK_VERSION` through `BELLATRIX_FORK_VERSION`</nobr> | `altair.LightClientUpdate` |
63-
| <nobr>`CAPELLA_FORK_VERSION` and later</nobr> | `capella.LightClientUpdate` |
65+
| <nobr>`CAPELLA_FORK_VERSION` </nobr> | `capella.LightClientUpdate` |
66+
| <nobr>`DENEB_FORK_VERSION` </nobr> | `deneb.LightClientUpdate` |
67+
| <nobr>`ELECTRA_FORK_VERSION` and later</nobr> | `electra.LightClientUpdate` |
6468
"400":
6569
description: Malformed or missing request parameter
6670
content:
@@ -85,13 +89,6 @@ get:
8589
code: 400
8690
message: "Missing `count` value"
8791
"406":
88-
description: Unacceptable media type
89-
content:
90-
application/json:
91-
schema:
92-
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
93-
example:
94-
code: 406
95-
message: "Accepted media type not supported"
92+
$ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
9693
"500":
9794
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError"

apis/beacon/pool/attestations.v2.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ post:
6767
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion'
6868
required: true
6969
name: Eth-Consensus-Version
70-
description: "Version of the attestations being submitted."
70+
description: "The consensus version to which the attestations being submitted belong."
7171
tags:
7272
- Beacon
7373
- ValidatorRequiredApi

apis/beacon/pool/attester_slashings.v2.yaml

+1-1
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 attester slashing being submitted."
45+
description: "The active consensus version to which the attester slashing being submitted belongs."
4646
tags:
4747
- Beacon
4848
requestBody:

apis/builder/states/expected_withdrawals.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@ get:
5656
example:
5757
code: 404
5858
message: "State not found"
59+
"406":
60+
$ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
5961
"500":
6062
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'

apis/debug/state.v2.yaml

+4-1
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.BeaconState"
4040
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Capella.BeaconState"
4141
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Deneb.BeaconState"
42+
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Electra.BeaconState"
4243
application/octet-stream:
4344
schema:
4445
description: "SSZ serialized state bytes. Use Accept header to choose this response type"
@@ -60,6 +61,8 @@ get:
6061
example:
6162
code: 404
6263
message: "State not found"
64+
"406":
65+
$ref: "../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
6366
"500":
6467
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'
6568

apis/validator/aggregate_and_proofs.v2.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ post:
1111
$ref: '../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion'
1212
required: true
1313
name: Eth-Consensus-Version
14-
description: "Version of the aggregate and proofs being submitted."
14+
description: "The active consensus version to which the aggregate and proofs being submitted belong."
1515
requestBody:
1616
required: true
1717
content:

apis/validator/block.v3.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ get:
9090
properties:
9191
version:
9292
type: string
93-
enum: [ phase0, altair, bellatrix, capella, deneb ]
93+
enum: [phase0, altair, bellatrix, capella, deneb, electra]
9494
example: "phase0"
9595
execution_payload_blinded:
9696
type: boolean
@@ -111,6 +111,8 @@ get:
111111
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Capella.BlindedBeaconBlock"
112112
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlockContents"
113113
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlindedBeaconBlock"
114+
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Electra.BlockContents"
115+
- $ref: "../../beacon-node-oapi.yaml#/components/schemas/Electra.BlindedBeaconBlock"
114116
application/octet-stream:
115117
schema:
116118
description: "SSZ serialized block or blinded block bytes. Use Accept header to choose this response type, version string is sent in header `Eth-Consensus-Version` and block type in `Eth-Blinded-Payload`."
@@ -125,6 +127,8 @@ get:
125127
value:
126128
code: 400
127129
message: "Invalid request to produce a block"
130+
"406":
131+
$ref: "../../beacon-node-oapi.yaml#/components/responses/NotAcceptable"
128132
"500":
129133
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'
130134
"503":

0 commit comments

Comments
 (0)