|
1 | 1 | import |
2 | 2 | std/options, |
| 3 | + stint, |
3 | 4 | ethtypes |
4 | 5 |
|
5 | 6 | export |
6 | 7 | ethtypes |
7 | 8 |
|
8 | 9 | type |
9 | | - # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.6/src/engine/specification.md#payloadattributesv1 |
| 10 | + # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.7/src/engine/specification.md#payloadattributesv1 |
10 | 11 | PayloadAttributesV1* = object |
11 | 12 | timestamp*: Quantity |
12 | 13 | random*: FixedBytes[32] |
13 | 14 | suggestedFeeRecipient*: Address |
14 | 15 |
|
15 | | - # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.6/src/engine/specification.md#payloadstatusv1 |
| 16 | + # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.7/src/engine/specification.md#payloadstatusv1 |
16 | 17 | PayloadExecutionStatus* {.pure.} = enum |
17 | 18 | valid = "VALID" |
18 | 19 | invalid = "INVALID" |
|
26 | 27 | latestValidHash*: Option[BlockHash] |
27 | 28 | validationError*: Option[string] |
28 | 29 |
|
29 | | - # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.6/src/engine/specification.md#forkchoicestatev1 |
| 30 | + # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.7/src/engine/specification.md#forkchoicestatev1 |
30 | 31 | ForkchoiceStateV1* = object |
31 | 32 | headBlockHash*: BlockHash |
32 | 33 | safeBlockHash*: BlockHash |
33 | 34 | finalizedBlockHash*: BlockHash |
34 | 35 |
|
35 | | - # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.6/src/engine/specification.md#response-1 |
| 36 | + # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.7/src/engine/specification.md#response-1 |
36 | 37 | PayloadID* = FixedBytes[8] |
37 | 38 |
|
38 | 39 | ForkchoiceUpdatedResponse* = object |
39 | 40 | payloadStatus*: PayloadStatusV1 |
40 | 41 | payloadId*: Option[PayloadID] |
41 | 42 |
|
| 43 | + # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.7/src/engine/specification.md#transitionconfigurationv1 |
| 44 | + TransitionConfigurationV1* = object |
| 45 | + terminalTotalDifficulty*: Uint256 |
| 46 | + terminalBlockHash*: BlockHash |
| 47 | + terminalBlockNumber*: Quantity |
| 48 | + |
42 | 49 | const |
43 | | - # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.6/src/engine/specification.md#errors |
| 50 | + # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.7/src/engine/specification.md#errors |
44 | 51 | engineApiParseError* = - 32700 |
45 | 52 | engineApiInvalidRequest* = -32600 |
46 | 53 | engineApiMethodNotFound* = -32601 |
|
0 commit comments