Skip to content

Commit 7daafe7

Browse files
committed
More complete Engine API v1.0.0-alpha.5
* Added error codes * Renamed ExecutionPayloadResponse.message to validationError
1 parent 0f82cf2 commit 7daafe7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

web3/engine_api_types.nim

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type
2222
ExecutePayloadResponse* = object
2323
status*: PayloadExecutionStatus
2424
latestValidHash*: Option[BlockHash]
25-
message*: Option[string]
25+
validationError*: Option[string]
2626

2727
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.5/src/engine/specification.md#forkchoicestatev1
2828
ForkchoiceStateV1* = object
@@ -37,3 +37,13 @@ type
3737
ForkchoiceUpdatedResponse* = object
3838
status*: ForkchoiceUpdatedStatus
3939
payloadId*: Option[PayloadID]
40+
41+
const
42+
engineApiParseError* = - 32700
43+
engineApiInvalidRequest* = -32600
44+
engineApiMethodNotFound* = -32601
45+
engineApiInvalidParams* = -32602
46+
engineApiInternalError* = -32603
47+
engineApiServerError* = -32000
48+
engineApiUnknownPayload* = -32001
49+
engineApiInvalidTerminalBlock* = -32002

0 commit comments

Comments
 (0)