mirror of https://github.com/waku-org/nwaku.git
27 lines
803 B
Nim
27 lines
803 B
Nim
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
|
|
import
|
|
../../waku/v2/node/waku_node,
|
|
../../waku/v2/node/waku_payload,
|
|
../../waku/v2/node/jsonrpc/jsonrpc_types,
|
|
../../waku/v2/protocol/waku_filter,
|
|
../../waku/v2/protocol/waku_store,
|
|
../../waku/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
|