Skip to content
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
1 change: 0 additions & 1 deletion web3/engine_api_callsigs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ proc engine_getPayloadV2(payloadId: PayloadID): GetPayloadV2Response
proc engine_getPayloadV2_exact(payloadId: PayloadID): GetPayloadV2ResponseExact
proc engine_getPayloadV3(payloadId: PayloadID): GetPayloadV3Response
proc engine_exchangeTransitionConfigurationV1(transitionConfiguration: TransitionConfigurationV1): TransitionConfigurationV1
proc engine_getBlobsBundleV1(payloadId: PayloadID): BlobsBundleV1
proc engine_getPayloadBodiesByHashV1(hashes: seq[BlockHash]): seq[Option[ExecutionPayloadBodyV1]]
1 change: 1 addition & 0 deletions web3/engine_api_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type
GetPayloadV3Response* = object
executionPayload*: ExecutionPayloadV3
blockValue*: UInt256
blobsBundle*: BlobsBundleV1

SomeGetPayloadResponse* =
ExecutionPayloadV1 |
Expand Down
5 changes: 3 additions & 2 deletions web3/ethtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type
Quantity* = distinct uint64

KZGCommitment* = FixedBytes[48]
KZGProof* = FixedBytes[48]
Blob* = FixedBytes[fieldElementsPerBlob * 32]

EthSend* = object
Expand Down Expand Up @@ -314,8 +315,8 @@ type

# https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.3/src/engine/experimental/blob-extension.md#BlobsBundleV1
BlobsBundleV1* = object
blockHash*: Hash256
kzgs*: seq[KZGCommitment]
commitments*: seq[KZGCommitment]
proofs*: seq[KZGProof]
blobs*: seq[Blob]

RlpEncodedBytes* = distinct seq[byte]
Expand Down