mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-26 12:08:59 +00:00
move eth_callsigs from test_rpc to rpcclient/eth_api
This commit is contained in:
parent
ad51bd68fc
commit
32915fde46
15
tests/rpcclient/eth_api.nim
Normal file
15
tests/rpcclient/eth_api.nim
Normal file
@ -0,0 +1,15 @@
|
||||
import
|
||||
strutils,
|
||||
json_serialization/std/[sets, net], serialization/errors,
|
||||
json_rpc/[client, jsonmarshal],
|
||||
web3/conversions,
|
||||
eth/common,
|
||||
../../nimbus/rpc/[rpc_types, hexstrings]
|
||||
|
||||
export
|
||||
rpc_types, conversions, hexstrings
|
||||
|
||||
from os import DirSep, AltSep
|
||||
template sourceDir: string = currentSourcePath.rsplit({DirSep, AltSep}, 1)[0]
|
||||
|
||||
createRpcSigs(RpcClient, sourceDir & "/ethcallsigs.nim")
|
@ -9,8 +9,8 @@ import
|
||||
asynctest, json, strformat, strutils, options, tables, os,
|
||||
nimcrypto, stew/byteutils, times,
|
||||
json_rpc/[rpcserver, rpcclient], eth/common as eth_common,
|
||||
eth/[rlp, keys, trie/db, p2p/private/p2p_types], web3/conversions,
|
||||
../nimbus/rpc/[common, p2p, hexstrings, rpc_types, rpc_utils],
|
||||
eth/[rlp, keys, trie/db, p2p/private/p2p_types],
|
||||
../nimbus/rpc/[common, p2p, rpc_utils],
|
||||
../nimbus/[constants, config, genesis, utils, transaction,
|
||||
vm_state, vm_types],
|
||||
../nimbus/db/[accounts_cache, db_chain],
|
||||
@ -18,19 +18,7 @@ import
|
||||
../nimbus/p2p/[chain, executor, executor/executor_helpers],
|
||||
../nimbus/utils/[difficulty, tx_pool],
|
||||
../nimbus/[context, chain_config],
|
||||
./test_helpers, ./macro_assembler
|
||||
|
||||
# Perform checks for hex string validation
|
||||
#doHexStrTests()
|
||||
|
||||
from os import getCurrentDir, DirSep
|
||||
from strutils import rsplit
|
||||
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
||||
|
||||
## Generate client convenience marshalling wrappers from forward declarations
|
||||
## For testing, ethcallsigs needs to be kept in sync with ../nimbus/rpc/[common, p2p]
|
||||
const sigPath = &"{sourceDir}{DirSep}rpcclient{DirSep}ethcallsigs.nim"
|
||||
createRpcSigs(RpcSocketClient, sigPath)
|
||||
./test_helpers, ./macro_assembler, ./rpcclient/eth_api
|
||||
|
||||
const
|
||||
zeroAddress = block:
|
||||
|
Loading…
x
Reference in New Issue
Block a user