mirror of https://github.com/waku-org/nwaku.git
fix: clean and normalize module imports
This commit is contained in:
parent
412ac20606
commit
0bf8d573a7
|
@ -9,11 +9,11 @@ import
|
|||
json_rpc/rpcserver,
|
||||
libp2p/[peerinfo, switch]
|
||||
import
|
||||
../../../../waku/v2/protocol/waku_store,
|
||||
../../../../waku/v2/protocol/waku_filter,
|
||||
../../../../waku/v2/protocol/waku_relay,
|
||||
../../../../waku/v2/node/peer_manager,
|
||||
../../../../waku/v2/node/waku_node,
|
||||
../../../protocol/waku_store,
|
||||
../../../protocol/waku_filter,
|
||||
../../../protocol/waku_relay,
|
||||
../../peer_manager,
|
||||
../../waku_node,
|
||||
./types
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
std/[os, strutils],
|
||||
json_rpc/rpcclient
|
||||
import
|
||||
../../../../waku/v2/node/waku_node
|
||||
../../waku_node
|
||||
|
||||
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
chronicles,
|
||||
json_rpc/rpcserver
|
||||
import
|
||||
../../../../waku/v2/node/waku_node
|
||||
../../waku_node
|
||||
|
||||
logScope:
|
||||
topics = "waku node jsonrpc debug_api"
|
||||
|
|
|
@ -7,8 +7,8 @@ import
|
|||
std/[os, strutils],
|
||||
json_rpc/rpcclient
|
||||
import
|
||||
../../../../waku/v2/protocol/waku_message,
|
||||
../../../../waku/v2/protocol/waku_filter/rpc
|
||||
../../../protocol/waku_message,
|
||||
../../../protocol/waku_filter/rpc
|
||||
|
||||
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
||||
|
||||
|
|
|
@ -8,13 +8,13 @@ import
|
|||
chronicles,
|
||||
json_rpc/rpcserver
|
||||
import
|
||||
../../../../waku/v2/protocol/waku_message,
|
||||
../../../../waku/v2/protocol/waku_filter,
|
||||
../../../../waku/v2/protocol/waku_filter/rpc,
|
||||
../../../../waku/v2/protocol/waku_filter/client,
|
||||
../../../../waku/v2/node/message_cache,
|
||||
../../../../waku/v2/node/peer_manager,
|
||||
../../../../waku/v2/node/waku_node
|
||||
../../../protocol/waku_message,
|
||||
../../../protocol/waku_filter,
|
||||
../../../protocol/waku_filter/rpc,
|
||||
../../../protocol/waku_filter/client,
|
||||
../../message_cache,
|
||||
../../peer_manager,
|
||||
../../waku_node
|
||||
|
||||
|
||||
logScope:
|
||||
|
|
|
@ -3,9 +3,9 @@ import
|
|||
json,
|
||||
json_rpc/rpcserver
|
||||
import
|
||||
../../../waku/common/base64,
|
||||
../../../waku/v2/protocol/waku_message,
|
||||
../../../waku/v2/utils/time
|
||||
../../../common/base64,
|
||||
../../protocol/waku_message,
|
||||
../../utils/time
|
||||
|
||||
|
||||
type
|
||||
|
|
|
@ -7,8 +7,8 @@ import
|
|||
std/[os, strutils],
|
||||
json_rpc/rpcclient
|
||||
import
|
||||
../../../../waku/v2/protocol/waku_message,
|
||||
../../../../waku/v2/utils/compat,
|
||||
../../../protocol/waku_message,
|
||||
../../../utils/compat,
|
||||
./types
|
||||
|
||||
export types
|
||||
|
|
|
@ -10,13 +10,13 @@ import
|
|||
eth/keys,
|
||||
nimcrypto/sysrand
|
||||
import
|
||||
../../../../waku/common/base64,
|
||||
../../../../waku/v2/protocol/waku_message,
|
||||
../../../../waku/v2/protocol/waku_relay,
|
||||
../../../../waku/v2/node/waku_node,
|
||||
../../../../waku/v2/node/message_cache,
|
||||
../../../../waku/v2/utils/compat,
|
||||
../../../../waku/v2/utils/time,
|
||||
../../../../common/base64,
|
||||
../../../protocol/waku_message,
|
||||
../../../protocol/waku_relay,
|
||||
../../../utils/compat,
|
||||
../../../utils/time,
|
||||
../../waku_node,
|
||||
../../message_cache,
|
||||
./types
|
||||
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ import
|
|||
std/[os, strutils],
|
||||
json_rpc/rpcclient
|
||||
import
|
||||
../../../../waku/v2/protocol/waku_store/rpc,
|
||||
../../../../waku/v2/utils/time,
|
||||
../../../protocol/waku_store/rpc,
|
||||
../../../utils/time,
|
||||
./types
|
||||
|
||||
export types
|
||||
|
|
|
@ -8,11 +8,11 @@ import
|
|||
chronicles,
|
||||
json_rpc/rpcserver
|
||||
import
|
||||
../../../../../waku/v2/protocol/waku_store,
|
||||
../../../../../waku/v2/protocol/waku_store/rpc,
|
||||
../../../../../waku/v2/utils/time,
|
||||
../../../../waku/v2/node/waku_node,
|
||||
../../../../waku/v2/node/peer_manager,
|
||||
../../../protocol/waku_store,
|
||||
../../../protocol/waku_store/rpc,
|
||||
../../../utils/time,
|
||||
../../waku_node,
|
||||
../../peer_manager,
|
||||
./types
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ else:
|
|||
import
|
||||
std/options
|
||||
import
|
||||
../../../../waku/v2/protocol/waku_store/rpc,
|
||||
../../../protocol/waku_store/rpc,
|
||||
../message
|
||||
|
||||
export message
|
||||
|
|
|
@ -11,8 +11,8 @@ import
|
|||
metrics,
|
||||
libp2p/multistream
|
||||
import
|
||||
../../protocol/waku_relay,
|
||||
../../utils/peers,
|
||||
../../waku/v2/protocol/waku_relay,
|
||||
./peer_store/peer_storage,
|
||||
./waku_peer_store
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
json_serialization,
|
||||
presto/route
|
||||
import
|
||||
../../../../waku/v2/node/waku_node,
|
||||
../../waku_node,
|
||||
../responses,
|
||||
../serdes,
|
||||
./types
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
json_serialization,
|
||||
json_serialization/std/options
|
||||
import
|
||||
../../../../waku/v2/node/waku_node,
|
||||
../../waku_node,
|
||||
../serdes
|
||||
|
||||
#### Types
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
json_serialization/std/options,
|
||||
presto/[route, client, common]
|
||||
import
|
||||
../../../../waku/v2/protocol/waku_message,
|
||||
../../../protocol/waku_message,
|
||||
../serdes,
|
||||
../responses,
|
||||
./types
|
||||
|
|
|
@ -12,7 +12,7 @@ import
|
|||
presto/route,
|
||||
presto/common
|
||||
import
|
||||
../../../../waku/v2/node/waku_node,
|
||||
../../waku_node,
|
||||
../serdes,
|
||||
../responses,
|
||||
./types,
|
||||
|
|
|
@ -7,9 +7,9 @@ import
|
|||
chronos,
|
||||
chronicles
|
||||
import
|
||||
../../../../waku/v2/protocol/waku_relay,
|
||||
../../../../waku/v2/protocol/waku_message,
|
||||
../../../../waku/v2/node/message_cache
|
||||
../../../protocol/waku_relay,
|
||||
../../../protocol/waku_message,
|
||||
../../message_cache
|
||||
|
||||
export message_cache
|
||||
|
||||
|
|
|
@ -37,16 +37,20 @@ else:
|
|||
|
||||
import
|
||||
std/[tables, options, json],
|
||||
stew/results,
|
||||
chronos,
|
||||
chronicles,
|
||||
metrics,
|
||||
bearssl/rand,
|
||||
chronos, chronicles, metrics, stew/results,
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/protocols/protocol,
|
||||
libp2p/protobuf/minprotobuf,
|
||||
libp2p/stream/connection,
|
||||
../../node/peer_manager,
|
||||
./waku_swap_types,
|
||||
libp2p/stream/connection
|
||||
import
|
||||
../../../common/protobuf,
|
||||
../../waku/v2/protocol/waku_swap/waku_swap_contracts
|
||||
../../node/peer_manager,
|
||||
./waku_swap_contracts,
|
||||
./waku_swap_types
|
||||
|
||||
export waku_swap_types
|
||||
|
||||
|
|
Loading…
Reference in New Issue