2021-02-04 08:39:55 +00:00
|
|
|
import
|
|
|
|
os, strutils, chronicles, json_rpc/[rpcclient, rpcserver], nimcrypto/sysrand,
|
|
|
|
libp2p/protobuf/minprotobuf,
|
|
|
|
libp2p/[peerinfo, multiaddress],
|
|
|
|
eth/common as eth_common, eth/keys,
|
|
|
|
system,
|
|
|
|
options,
|
|
|
|
../wakunode2,
|
|
|
|
../waku_payload,
|
|
|
|
../jsonrpc/jsonrpc_types,
|
2022-08-12 10:15:51 +00:00
|
|
|
../../protocol/waku_filter,
|
2022-07-25 11:01:37 +00:00
|
|
|
../../protocol/waku_store,
|
2021-02-04 08:39:55 +00:00
|
|
|
../../../v1/node/rpc/hexstrings
|
|
|
|
|
|
|
|
from strutils import rsplit
|
|
|
|
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
|
|
|
|
|
|
|
const sigWakuPath = sourceDir / "../jsonrpc/jsonrpc_callsigs.nim"
|
|
|
|
createRpcSigs(RpcHttpClient, sigWakuPath)
|
|
|
|
|
|
|
|
var node = newRpcHttpClient()
|
|
|
|
waitfor node.connect("localhost", Port(8545))
|
|
|
|
|
|
|
|
var res = waitfor node.get_waku_v2_debug_v1_info()
|
|
|
|
echo "Waku info res: ", res
|