Skip to content

Commit

Permalink
https://github.com/ethereum/execution-apis/pull/407
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec committed Jun 9, 2023
1 parent 7a835d7 commit ebd1d89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions web3/engine_api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ template newPayload*(

template newPayload*(
rpcClient: RpcClient,
payload: ExecutionPayloadV3): Future[PayloadStatusV1] =
engine_newPayloadV3(rpcClient, payload)
payload: ExecutionPayloadV3,
versioned_hashes: seq[VersionedHash]): Future[PayloadStatusV1] =
engine_newPayloadV3(rpcClient, payload, versioned_hashes)
2 changes: 1 addition & 1 deletion web3/engine_api_callsigs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ethtypes, engine_api_types

proc engine_newPayloadV1(payload: ExecutionPayloadV1): PayloadStatusV1
proc engine_newPayloadV2(payload: ExecutionPayloadV2): PayloadStatusV1
proc engine_newPayloadV3(payload: ExecutionPayloadV3): PayloadStatusV1
proc engine_newPayloadV3(payload: ExecutionPayloadV3, versioned_hashes: seq[VersionedHash]): PayloadStatusV1
proc engine_forkchoiceUpdatedV1(forkchoiceState: ForkchoiceStateV1, payloadAttributes: Option[PayloadAttributesV1]): ForkchoiceUpdatedResponse
proc engine_forkchoiceUpdatedV2(forkchoiceState: ForkchoiceStateV1, payloadAttributes: Option[PayloadAttributesV2]): ForkchoiceUpdatedResponse
proc engine_getPayloadV1(payloadId: PayloadID): ExecutionPayloadV1
Expand Down
2 changes: 2 additions & 0 deletions web3/ethtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ type
KZGProof* = FixedBytes[48]
Blob* = FixedBytes[fieldElementsPerBlob * 32]

VersionedHash* = FixedBytes[32]

EthSend* = object
source*: Address # the address the transaction is sent from.
to*: Option[Address] # (optional when creating new contract) the address the transaction is directed to.
Expand Down

0 comments on commit ebd1d89

Please sign in to comment.