-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dc5dfc
commit 2531e52
Showing
5 changed files
with
110 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/BlobSidecar.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"title" : "BlobSidecar", | ||
"type" : "object", | ||
"required" : [ "block_root", "index", "slot", "block_parent_root", "proposer_index", "blob", "kzg_commitment", "kzg_proof" ], | ||
"properties" : { | ||
"block_root" : { | ||
"type" : "string", | ||
"description" : "Bytes32 hexadecimal", | ||
"example" : "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", | ||
"format" : "byte" | ||
}, | ||
"index" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
}, | ||
"slot" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
}, | ||
"block_parent_root" : { | ||
"type" : "string", | ||
"description" : "Bytes32 hexadecimal", | ||
"example" : "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", | ||
"format" : "byte" | ||
}, | ||
"proposer_index" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
}, | ||
"blob" : { | ||
"type" : "string", | ||
"pattern" : "^0x[a-fA-F0-9]{2,}$", | ||
"description" : "SSZ hexadecimal", | ||
"format" : "bytes" | ||
}, | ||
"kzg_commitment" : { | ||
"type" : "string", | ||
"pattern" : "^0x[a-fA-F0-9]{2,}$", | ||
"description" : "Bytes48 hexadecimal", | ||
"format" : "bytes" | ||
}, | ||
"kzg_proof" : { | ||
"type" : "string", | ||
"pattern" : "^0x[a-fA-F0-9]{2,}$", | ||
"description" : "Bytes48 hexadecimal", | ||
"format" : "bytes" | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ntegration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/BlobSidecars.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"title" : "BlobSidecars", | ||
"type" : "object", | ||
"required" : [ "blob_sidecars" ], | ||
"properties" : { | ||
"blob_sidecars" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/BlobSidecar" | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...tegration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/BlockContents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"title" : "BlockContents", | ||
"type" : "object", | ||
"required" : [ "beacon_block", "blob_sidecars" ], | ||
"properties" : { | ||
"beacon_block" : { | ||
"$ref" : "#/components/schemas/BeaconBlockDeneb" | ||
}, | ||
"blob_sidecars" : { | ||
"$ref" : "#/components/schemas/BlobSidecars" | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...rces/tech/pegasys/teku/beaconrestapi/beacon/schema/ProduceBlockBlockContentsResponse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"title" : "ProduceBlockBlockContentsResponse", | ||
"type" : "object", | ||
"required" : [ "data", "version" ], | ||
"properties" : { | ||
"data" : { | ||
"title" : "BlockContents", | ||
"type" : "object", | ||
"oneOf" : [ { | ||
"$ref" : "#/components/schemas/BlockContents" | ||
} ] | ||
}, | ||
"version" : { | ||
"type" : "string", | ||
"enum" : [ "phase0", "altair", "bellatrix", "capella", "deneb" ] | ||
} | ||
} | ||
} |