Skip to content

Commit

Permalink
working Geth engine RPC interop
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec committed Nov 9, 2021
1 parent 94635bb commit 183cc8f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions web3/engine_api_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,10 @@ type
syncing = "SYNCING"

ForkchoiceUpdatedResponse* = object
status*: ForkchoiceUpdatedStatus
status*: string
payloadId*: Option[Quantity]

const
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/specification.md#errors
PARSE_ERROR* = -32700
INVALID_REQUEST* = -32600
METHOD_NOT_FOUND* = -32601
INVALID_PARAMS* = -32602
INTERNAL_ERROR* = -32603
SERVER_ERROR* = -32000
UNKNOWN_PAYLOAD* = -32001
# 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

0 comments on commit 183cc8f

Please sign in to comment.