Skip to content

Commit

Permalink
chore: pointed all waku node imports to the barrel import
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo Delgado authored Apr 5, 2023
1 parent 1394288 commit e8448df
Show file tree
Hide file tree
Showing 36 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion apps/chat2/chat2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import
../../waku/v2/protocol/waku_filter,
../../waku/v2/protocol/waku_store,
../../waku/v2/protocol/waku_dnsdisc,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/waku_metrics,
../../waku/v2/node/peer_manager,
../../waku/v2/utils/compat,
Expand Down
2 changes: 1 addition & 1 deletion apps/chat2bridge/chat2bridge.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import
libp2p/crypto/crypto,
libp2p/errors,
../../../waku/v2/protocol/waku_message,
../../../waku/v2/node/waku_node,
../../../waku/v2/waku_node,
../../../waku/v2/utils/peers,
../../../waku/v2/node/peer_manager,
../../waku/v2/protocol/waku_filter,
Expand Down
2 changes: 1 addition & 1 deletion apps/wakubridge/wakubridge.nim
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import
../../waku/v2/protocol/waku_store,
../../waku/v2/protocol/waku_filter,
../../waku/v2/node/message_cache,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/peer_manager,
../../waku/v2/node/jsonrpc/debug/handlers as debug_api,
../../waku/v2/node/jsonrpc/filter/handlers as filter_api,
Expand Down
2 changes: 1 addition & 1 deletion apps/wakunode2/wakunode2_setup_rest.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import
chronicles,
presto
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/rest/server,
../../waku/v2/node/rest/debug/handlers as debug_api,
../../waku/v2/node/rest/relay/handlers as relay_api,
Expand Down
2 changes: 1 addition & 1 deletion apps/wakunode2/wakunode2_setup_rpc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import
json_rpc/rpcserver
import
../../waku/v2/node/message_cache,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/jsonrpc/admin/handlers as admin_api,
../../waku/v2/node/jsonrpc/debug/handlers as debug_api,
../../waku/v2/node/jsonrpc/filter/handlers as filter_api,
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/publisher.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import
import
../../../waku/common/logging,
../../../waku/v2/node/peer_manager,
../../../waku/v2/node/waku_node,
../../../waku/v2/waku_node,
../../../waku/v2/protocol/waku_message,
../../../waku/v2/protocol/waku_enr,
../../../waku/v2/protocol/waku_discv5,
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/subscriber.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import
import
../../../waku/common/logging,
../../../waku/v2/node/peer_manager,
../../../waku/v2/node/waku_node,
../../../waku/v2/waku_node,
../../../waku/v2/protocol/waku_message,
../../../waku/v2/protocol/waku_enr,
../../../waku/v2/protocol/waku_discv5
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/test_peer_exchange.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import
libp2p/crypto/crypto,
libp2p/protocols/pubsub/gossipsub
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/utils/peers,
./testlib/waku2

Expand Down
2 changes: 1 addition & 1 deletion tests/v2/test_peer_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import
../../waku/common/sqlite,
../../waku/v2/node/peer_manager/peer_manager,
../../waku/v2/node/peer_manager/peer_store/waku_peer_storage,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/protocol/waku_relay,
../../waku/v2/protocol/waku_store,
../../waku/v2/protocol/waku_filter,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/test_peer_store_extended.nim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import
import
../../waku/v2/node/peer_manager/peer_manager,
../../waku/v2/node/peer_manager/waku_peer_store,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
./testlib/waku2


Expand Down
2 changes: 1 addition & 1 deletion tests/v2/test_waku_dnsdisc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import
discovery/dnsdisc/builder
import
../../waku/v2/node/peer_manager,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/protocol/waku_dnsdisc,
./testlib/common,
./testlib/waku2
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/test_waku_keepalive.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import
libp2p/stream/connection,
libp2p/crypto/crypto
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/utils/peers,
./testlib/waku2

Expand Down
2 changes: 1 addition & 1 deletion tests/v2/test_waku_peer_exchange.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import
eth/keys,
eth/p2p/discoveryv5/enr
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/peer_manager,
../../waku/v2/protocol/waku_discv5,
../../waku/v2/protocol/waku_peer_exchange,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/test_wakunode.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import
libp2p/nameresolving/mockresolver,
eth/p2p/discoveryv5/enr
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/peer_manager,
../../waku/v2/protocol/waku_message,
../../waku/v2/protocol/waku_relay,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/test_wakunode_filter.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import
libp2p/crypto/crypto
import
../../waku/v2/node/peer_manager,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/protocol/waku_message,
../../waku/v2/utils/peers,
./testlib/common,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/test_wakunode_lightpush.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import
../../waku/v2/protocol/waku_lightpush,
../../waku/v2/node/peer_manager,
../../waku/v2/utils/peers,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
./testlib/common,
./testlib/waku2

Expand Down
2 changes: 1 addition & 1 deletion tests/v2/waku_relay/test_wakunode_relay.nim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import
../../waku/v2/protocol/waku_message,
../../waku/v2/node/peer_manager,
../../waku/v2/utils/peers,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/protocol/waku_relay,
../../waku/v2/protocol/waku_relay/validators,
../testlib/testutils,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/waku_rln_relay/test_wakunode_rln_relay.nim
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import
libp2p/protocols/pubsub/pubsub,
eth/keys
import
../../../waku/v2/node/waku_node,
../../../waku/v2/waku_node,
../../../waku/v2/protocol/waku_message,
../../../waku/v2/protocol/waku_rln_relay,
../../../waku/v2/protocol/waku_keystore,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/waku_store/test_wakunode_store.nim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import
../../../waku/v2/protocol/waku_store,
../../../waku/v2/protocol/waku_filter,
../../../waku/v2/utils/peers,
../../../waku/v2/node/waku_node,
../../../waku/v2/waku_node,
../testlib/common,
../testlib/waku2

Expand Down
2 changes: 1 addition & 1 deletion tests/v2/wakunode_jsonrpc/test_jsonrpc_admin.nim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import
json_rpc/[rpcserver, rpcclient]
import
../../../waku/v2/node/peer_manager,
../../../waku/v2/node/waku_node,
../../../waku/v2/waku_node,
../../../waku/v2/node/jsonrpc/admin/handlers as admin_api,
../../../waku/v2/node/jsonrpc/admin/client as admin_api_client,
../../../waku/v2/protocol/waku_relay,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/wakunode_jsonrpc/test_jsonrpc_debug.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import
json_rpc/[rpcserver, rpcclient]
import
../../../waku/v2/node/peer_manager,
../../../waku/v2/node/waku_node,
../../../waku/v2/waku_node,
../../../waku/v2/node/jsonrpc/debug/handlers as debug_api,
../../../waku/v2/node/jsonrpc/debug/client as debug_api_client,
../testlib/waku2
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/wakunode_jsonrpc/test_jsonrpc_filter.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import
json_rpc/[rpcserver, rpcclient]
import
../../../waku/v2/node/peer_manager,
../../../waku/v2/node/waku_node,
../../../waku/v2/waku_node,
../../../waku/v2/node/message_cache,
../../../waku/v2/node/jsonrpc/filter/handlers as filter_api,
../../../waku/v2/node/jsonrpc/filter/client as filter_api_client,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/wakunode_jsonrpc/test_jsonrpc_relay.nim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import
../../../waku/common/base64,
../../../waku/v2/node/peer_manager,
../../../waku/v2/node/message_cache,
../../../waku/v2/node/waku_node,
../../../waku/v2/waku_node,
../../../waku/v2/node/jsonrpc/relay/handlers as relay_api,
../../../waku/v2/node/jsonrpc/relay/client as relay_api_client,
../../../waku/v2/protocol/waku_message,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/wakunode_jsonrpc/test_jsonrpc_store.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import
json_rpc/[rpcserver, rpcclient]
import
../../../waku/v2/node/peer_manager,
../../../waku/v2/node/waku_node,
../../../waku/v2/waku_node,
../../../waku/v2/node/jsonrpc/store/handlers as store_api,
../../../waku/v2/node/jsonrpc/store/client as store_api_client,
../../../waku/v2/protocol/waku_message,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/wakunode_rest/test_rest_debug.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import
libp2p/multiaddress,
libp2p/crypto/crypto
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/rest/server,
../../waku/v2/node/rest/client,
../../waku/v2/node/rest/responses,
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/wakunode_rest/test_rest_relay.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import
libp2p/crypto/crypto
import
../../waku/common/base64,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/rest/server,
../../waku/v2/node/rest/client,
../../waku/v2/node/rest/responses,
Expand Down
2 changes: 1 addition & 1 deletion tests/wakubridge/test_wakubridge.nim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import
import
../../waku/v1/protocol/waku_protocol,
../../waku/v2/protocol/waku_message,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/utils/compat,
../../waku/v2/utils/peers,
../test_helpers
Expand Down
2 changes: 1 addition & 1 deletion tools/networkmonitor/networkmonitor.nim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import
import
../../apps/wakunode2/wakunode2,
../../waku/v2/node/peer_manager,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/protocol/waku_message,
../../waku/v2/protocol/waku_enr,
../../waku/v2/protocol/waku_discv5,
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/rpc_info.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import
system,
options
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/waku_payload,
../../waku/v2/node/jsonrpc/jsonrpc_types,
../../waku/v2/protocol/waku_filter,
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/rpc_publish.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import
system,
options
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/waku_payload,
../../waku/v2/node/jsonrpc/jsonrpc_types,
../../waku/v2/protocol/waku_filter,
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/rpc_query.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import
system,
options
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/waku_payload,
../../waku/v2/node/jsonrpc/jsonrpc_types,
../../waku/v2/protocol/waku_filter,
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/rpc_subscribe.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import
system,
options
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/waku_payload,
../../waku/v2/node/jsonrpc/jsonrpc_types,
../../waku/v2/protocol/waku_filter,
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/rpc_subscribe_filter.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import
system,
options
import
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/waku_payload,
../../waku/v2/node/jsonrpc/jsonrpc_types,
../../waku/v2/protocol/waku_filter,
Expand Down
8 changes: 4 additions & 4 deletions tools/simulation/quicksim2.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import
std/[os, strutils, times, options], #options as what # TODO: Huh? Redefinition?
chronicles,
eth/common as eth_common,
chronicles,
eth/common as eth_common,
eth/keys,
json_rpc/[rpcclient, rpcserver],
libp2p/protobuf/minprotobuf
Expand All @@ -10,10 +10,10 @@ import
../../waku/v2/protocol/waku_store/rpc,
../../waku/v2/protocol/waku_message,
../../waku/v2/utils/time,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/node/waku_payload,
../../waku/v2/node/jsonrpc/[jsonrpc_types,jsonrpc_utils]


from strutils import rsplit
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
Expand Down
2 changes: 1 addition & 1 deletion tools/wakucanary/wakucanary.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import
libp2p/nameresolving/dnsresolver
import
../../waku/v2/node/peer_manager,
../../waku/v2/node/waku_node,
../../waku/v2/waku_node,
../../waku/v2/utils/peers

# protocols and their tag
Expand Down
2 changes: 1 addition & 1 deletion waku/waku.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# - APACHEv2 ([LICENSE-APACHEv2](../LICENSE-APACHEv2) or https://www.apache.org/licenses/LICENSE-2.0)

## An implementation of the [Waku v1](https://specs.vac.dev/specs/waku/waku.html) and [Waku v2](https://specs.vac.dev/specs/waku/v2/waku-v2.html) in nim.
import v2/node/waku_node as wakunode2, v1/node/wakunode1
import v2/waku_node as wakunode2, v1/node/wakunode1
export wakunode2
export wakunode1

0 comments on commit e8448df

Please sign in to comment.