import os, strformat, chronicles, json_rpc/[rpcclient, rpcserver], nimcrypto/sysrand, eth/common as eth_common, eth/keys, eth/p2p/rlpx_protocols/waku_protocol, ../nimbus/rpc/[hexstrings, rpc_types, waku], options as what # TODO: Huh? from os import DirSep from strutils import rsplit template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0] # TODO: move this to rpc folder? Or just directly to nim-web3 and import that? const sigEthPath = &"{sourceDir}{DirSep}..{DirSep}tests{DirSep}rpcclient{DirSep}ethcallsigs.nim" createRpcSigs(RpcHttpClient, sigEthPath) const sigWakuPath = &"{sourceDir}{DirSep}rpc{DirSep}wakucallsigs.nim" createRpcSigs(RpcHttpClient, sigWakuPath) let trafficNode = newRpcHttpClient() lightWakuNode = newRpcHttpClient() lightNode = newRpcHttpClient() waitFor lightWakuNode.connect("localhost", Port(8545)) waitFor lightNode.connect("localhost", Port(8546)) waitFor trafficNode.connect("localhost", Port(8548)) proc generateTopics(amount = 100): seq[waku_protocol.Topic] = var topic: waku_protocol.Topic for i in 0..