fix: clean and normalize module imports

This commit is contained in:
Lorenzo Delgado 2023-03-06 17:19:06 +01:00 committed by GitHub
parent 412ac20606
commit 0bf8d573a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 53 additions and 49 deletions

View File

@ -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

View File

@ -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]

View File

@ -7,7 +7,7 @@ import
chronicles,
json_rpc/rpcserver
import
../../../../waku/v2/node/waku_node
../../waku_node
logScope:
topics = "waku node jsonrpc debug_api"

View File

@ -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]

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -6,7 +6,7 @@ else:
import
std/options
import
../../../../waku/v2/protocol/waku_store/rpc,
../../../protocol/waku_store/rpc,
../message
export message

View File

@ -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

View File

@ -8,7 +8,7 @@ import
json_serialization,
presto/route
import
../../../../waku/v2/node/waku_node,
../../waku_node,
../responses,
../serdes,
./types

View File

@ -8,7 +8,7 @@ import
json_serialization,
json_serialization/std/options
import
../../../../waku/v2/node/waku_node,
../../waku_node,
../serdes
#### Types

View File

@ -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

View File

@ -12,7 +12,7 @@ import
presto/route,
presto/common
import
../../../../waku/v2/node/waku_node,
../../waku_node,
../serdes,
../responses,
./types,

View File

@ -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

View File

@ -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