update engine API signatures to alpha.5

This commit is contained in:
Dustin Brody 2021-12-07 11:25:48 +00:00
parent 065c13cd81
commit fe0674be9c
No known key found for this signature in database
GPG Key ID: 3D7A11A0156519DC
3 changed files with 8 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/specification.md
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.5/src/engine/specification.md
import ethtypes, engine_api_types

View File

@ -1,4 +1,4 @@
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/specification.md
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.5/src/engine/specification.md
import
std/options,
@ -8,11 +8,11 @@ export
ethtypes
type
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/specification.md#payloadattributesv1
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.5/src/engine/specification.md#payloadattributesv1
PayloadAttributesV1* = object
timestamp*: Quantity
random*: FixedBytes[32]
feeRecipient*: Address
suggestedFeeRecipient*: Address
PayloadExecutionStatus* {.pure.} = enum
valid = "VALID"
@ -26,7 +26,7 @@ type
latestValidHash*: Option[BlockHash]
message*: Option[string]
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/specification.md#forkchoicestatev1
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.5/src/engine/specification.md#forkchoicestatev1
ForkchoiceStateV1* = object
headBlockHash*: BlockHash
safeBlockHash*: BlockHash
@ -39,8 +39,3 @@ type
ForkchoiceUpdatedResponse* = object
status*: string
payloadId*: Option[PayloadID]
const
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/interop/specification.md#error-codes
UNKNOWN_HEADER* = 4
UNKNOWN_PAYLOAD* = 5

View File

@ -201,12 +201,12 @@ type
TypedTransaction* = distinct seq[byte]
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/specification.md#executionpayloadv1
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.5/src/engine/specification.md#executionpayloadv1
ExecutionPayloadV1* = object
parentHash*: BlockHash
coinbase*: Address
feeRecipient*: Address
stateRoot*: BlockHash
receiptRoot*: BlockHash
receiptsRoot*: BlockHash
logsBloom*: FixedBytes[256]
random*: FixedBytes[32]
blockNumber*: Quantity