Skip to content

Commit

Permalink
Add Electra blob sidecars type to support max blobs from EIP-7691
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 21, 2025
1 parent aa1be25 commit 2a212b7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apis/beacon/blob_sidecars/blob_sidecars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ get:
schema:
title: GetBlobSidecarsResponse
type: object
required: [data]
required: [version, execution_optimistic, finalized, data]
properties:
version:
type: string
Expand All @@ -46,7 +46,9 @@ get:
finalized:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized"
data:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlobSidecars"
anyOf:
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlobSidecars"
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Electra.BlobSidecars"
application/octet-stream:
schema:
description: "SSZ serialized `BlobSidecars` bytes. Use Accept header to choose this response type"
Expand Down
2 changes: 2 additions & 0 deletions beacon-node-oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ components:
$ref: './types/electra/light_client.yaml#/Electra/LightClientFinalityUpdate'
Electra.LightClientOptimisticUpdate:
$ref: './types/electra/light_client.yaml#/Electra/LightClientOptimisticUpdate'
Electra.BlobSidecars:
$ref: './types/electra/blob_sidecar.yaml#/Electra/BlobSidecars'
Node:
$ref: './types/fork_choice.yaml#/Node'
ExtraData:
Expand Down
7 changes: 7 additions & 0 deletions types/electra/blob_sidecar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Electra:
BlobSidecars:
type: array
items:
$ref: "../deneb/blob_sidecar.yaml#/Deneb/BlobSidecar"
minItems: 0
maxItems: 9

0 comments on commit 2a212b7

Please sign in to comment.