reordering into factory module

This commit is contained in:
Gabriel mermelstein 2024-02-28 16:39:49 +02:00
parent 5b49e0ff39
commit 994574b13e
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
12 changed files with 34 additions and 36 deletions

View File

@ -30,7 +30,6 @@ import
../../waku/node/waku_metrics,
../../waku/node/peer_manager,
../../waku/node/peer_manager/peer_store/waku_peer_storage,
../../waku/node/peer_manager/peer_store/migrations as peer_store_sqlite_migrations,
../../waku/waku_api/message_cache,
../../waku/waku_api/handlers,
../../waku/waku_api/rest/server,
@ -57,7 +56,9 @@ import
../../waku/waku_lightpush/common,
../../waku/waku_filter,
../../waku/waku_filter_v2,
./external_config
../../waku/factory/node_factory,
../../waku/factory/internal_config,
../../waku/factory/external_config
logScope:
topics = "wakunode app"

View File

@ -15,7 +15,7 @@ import
import
../../tools/rln_keystore_generator/rln_keystore_generator,
../../waku/common/logging,
./external_config,
../../waku/factory/external_config,
./networks_config,
./app

View File

@ -13,7 +13,7 @@ import
../../../waku/node/peer_manager,
../../../waku/waku_enr,
../../../waku/waku_discv5,
../../apps/wakunode2/external_config,
../../../waku/factory/external_config,
./common

View File

@ -13,11 +13,12 @@ import
libp2p/multihash,
secp256k1
import
../../apps/wakunode2/external_config,
../../waku/factory/external_config,
../../waku/waku_core,
../../waku/node/peer_manager,
../../waku/waku_node,
../../waku/waku_relay,
../../waku/waku_relay/types,
../testlib/wakucore,
../testlib/wakunode

View File

@ -11,7 +11,7 @@ import
import
../../waku/waku_rln_relay/rln,
../../waku/waku_rln_relay/conversion_utils,
./external_config
../../waku/factory/external_config
logScope:
topics = "rln_db_inspector"

View File

@ -13,7 +13,7 @@ import
../../waku/waku_rln_relay/rln,
../../waku/waku_rln_relay/conversion_utils,
../../waku/waku_rln_relay/group_manager/on_chain,
../../apps/wakunode2/external_config
../../waku/factory/external_config
logScope:
topics = "rln_keystore_generator"

View File

@ -14,14 +14,15 @@ import
nimcrypto/utils,
secp256k1
import
../../waku/common/confutils/envvar/defs as confEnvvarDefs,
../../waku/common/confutils/envvar/std/net as confEnvvarNet,
../../waku/common/logging,
../../waku/waku_enr,
../../waku/node/peer_manager
../common/confutils/envvar/defs as confEnvvarDefs,
../common/confutils/envvar/std/net as confEnvvarNet,
../common/logging,
../waku_enr,
../waku_relay/types,
../node/peer_manager
include
../../waku/waku_core/message/default_values
../waku_core/message/default_values
export
confTomlDefs,
@ -30,9 +31,6 @@ export
confEnvvarNet
type ConfResult*[T] = Result[T, string]
type ProtectedTopic* = object
topic*: string
key*: secp256k1.SkPublicKey
type ShardIdx = distinct uint16

View File

@ -8,12 +8,12 @@ import
stew/results,
stew/shims/net
import
./external_config,
../common/utils/nat,
../node/config,
../waku_enr/capabilities,
../waku_enr,
../waku_core,
../../apps/wakunode2/external_config
../waku_core
proc enrConfiguration*(conf: WakuNodeConf, netConfig: NetConfig, key: crypto.PrivateKey):
Result[enr.Record, string] =

View File

@ -8,15 +8,10 @@ import
libp2p/crypto/crypto
import
./waku_node,
./config,
./builder,
./internal_config,
./validator_signed,
./peer_manager,
./peer_manager/peer_store/waku_peer_storage,
./peer_manager/peer_store/migrations as peer_store_sqlite_migrations,
./external_config,
../waku_enr/sharding,
../waku_node,
../waku_core,
../waku_rln_relay,
../waku_dnsdisc,
@ -25,11 +20,15 @@ import
../waku_filter,
../waku_filter_v2,
../waku_peer_exchange,
../node/peer_manager,
../node/peer_manager/peer_store/waku_peer_storage,
../node/peer_manager/peer_store/migrations as peer_store_sqlite_migrations,
../waku_lightpush/common,
../waku_archive/driver/builder,
../waku_archive/retention_policy/builder,
../common/utils/parse_size_units,
../../apps/wakunode2/external_config
../waku_relay/types,
../waku_relay/validator_signed,
../common/utils/parse_size_units
## Peer persistence

View File

@ -1,17 +1,11 @@
import
./node/config,
./node/builder,
./node/node_factory,
./node/internal_config,
./node/validator_signed,
./node/waku_switch as switch,
./node/waku_node as node
export
config,
builder,
node_factory,
internal_config,
validator_signed,
switch,
node

View File

@ -0,0 +1,5 @@
import secp256k1
type ProtectedTopic* = object
topic*: string
key*: secp256k1.SkPublicKey

View File

@ -19,9 +19,9 @@ import
const MessageWindowInSec = 5*60 # +- 5 minutes
import
../waku_relay/protocol,
../waku_core,
../../apps/wakunode2/external_config
./protocol,
./types,
../waku_core
declarePublicCounter waku_msg_validator_signed_outcome, "number of messages for each validation outcome", ["result"]