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

add EIP-4788 parentBeaconBlockRoot fields #99

Merged
merged 1 commit into from
Aug 19, 2023
Merged
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
12 changes: 7 additions & 5 deletions web3/ethtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ type
timestamp*: Quantity
nonce*: FixedBytes[8]
mixHash*: Hash256
baseFeePerGas*: Option[UInt256] # EIP-1559
withdrawalsRoot*: Option[Hash256] # EIP-4895
blobGasUsed*: Option[Quantity] # EIP-4844
excessBlobGas*: Option[Quantity] # EIP-4844
baseFeePerGas*: Option[UInt256] # EIP-1559
withdrawalsRoot*: Option[Hash256] # EIP-4895
blobGasUsed*: Option[Quantity] # EIP-4844
excessBlobGas*: Option[Quantity] # EIP-4844
parentBeaconBlockRoot*: Option[Hash256] # EIP-4788

WithdrawalObject = object
index*: Quantity
Expand Down Expand Up @@ -155,6 +156,7 @@ type
withdrawalsRoot*: Option[Hash256] # EIP-4895
blobGasUsed*: Option[Quantity] # EIP-4844
excessBlobGas*: Option[Quantity] # EIP-4844
parentBeaconBlockRoot*: Option[Hash256] # EIP-4788

AccessTuple* = object
address*: Address
Expand Down Expand Up @@ -313,7 +315,7 @@ type
transactions*: seq[TypedTransaction]
withdrawals*: Option[seq[WithdrawalV1]]

# https://github.com/ethereum/execution-apis/blob/ee3df5bc38f28ef35385cefc9d9ca18d5e502778/src/engine/cancun.md#executionpayloadv3
# https://github.com/ethereum/execution-apis/blob/fe8e13c288c592ec154ce25c534e26cb7ce0530d/src/engine/cancun.md#executionpayloadv3
ExecutionPayloadV3* = object
parentHash*: Hash256
feeRecipient*: Address
Expand Down