More complete Engine API v1.0.0-alpha.5
* Added error codes * Renamed ExecutionPayloadResponse.message to validationError
This commit is contained in:
parent
0f82cf22f3
commit
7daafe7b9c
|
@ -22,7 +22,7 @@ type
|
||||||
ExecutePayloadResponse* = object
|
ExecutePayloadResponse* = object
|
||||||
status*: PayloadExecutionStatus
|
status*: PayloadExecutionStatus
|
||||||
latestValidHash*: Option[BlockHash]
|
latestValidHash*: Option[BlockHash]
|
||||||
message*: Option[string]
|
validationError*: Option[string]
|
||||||
|
|
||||||
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.5/src/engine/specification.md#forkchoicestatev1
|
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.5/src/engine/specification.md#forkchoicestatev1
|
||||||
ForkchoiceStateV1* = object
|
ForkchoiceStateV1* = object
|
||||||
|
@ -37,3 +37,13 @@ type
|
||||||
ForkchoiceUpdatedResponse* = object
|
ForkchoiceUpdatedResponse* = object
|
||||||
status*: ForkchoiceUpdatedStatus
|
status*: ForkchoiceUpdatedStatus
|
||||||
payloadId*: Option[PayloadID]
|
payloadId*: Option[PayloadID]
|
||||||
|
|
||||||
|
const
|
||||||
|
engineApiParseError* = - 32700
|
||||||
|
engineApiInvalidRequest* = -32600
|
||||||
|
engineApiMethodNotFound* = -32601
|
||||||
|
engineApiInvalidParams* = -32602
|
||||||
|
engineApiInternalError* = -32603
|
||||||
|
engineApiServerError* = -32000
|
||||||
|
engineApiUnknownPayload* = -32001
|
||||||
|
engineApiInvalidTerminalBlock* = -32002
|
||||||
|
|
Loading…
Reference in New Issue