Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://github.com/ethereum/execution-apis/pull/407 #87

Merged
merged 1 commit into from
Jun 9, 2023
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
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