mirror of https://github.com/waku-org/nwaku.git
chore: pointed all waku node imports to the barrel import
This commit is contained in:
parent
139428883f
commit
e8448dfdbe
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue