mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-08-04 10:53:19 +00:00
WIP - fixing import after folder moves
This commit is contained in:
parent
2b09c42d81
commit
a27e3f2a6a
@ -2,7 +2,7 @@ import
|
||||
std/[strutils, times, sequtils, osproc], math, results, options, testutils/unittests
|
||||
|
||||
import
|
||||
waku/[
|
||||
logos_delivery/waku/[
|
||||
waku_rln_relay/protocol_types,
|
||||
waku_rln_relay/rln,
|
||||
waku_rln_relay,
|
||||
|
||||
@ -31,7 +31,7 @@ import
|
||||
nameresolving/dnsresolver,
|
||||
] # define DNS resolution
|
||||
import
|
||||
waku/[
|
||||
logos_delivery/waku/[
|
||||
waku_core,
|
||||
waku_lightpush_legacy/common,
|
||||
waku_lightpush_legacy/rpc,
|
||||
@ -48,7 +48,7 @@ import
|
||||
./config_chat2
|
||||
|
||||
import libp2p/protocols/pubsub/rpc/messages, libp2p/protocols/pubsub/pubsub
|
||||
import ../../waku/waku_rln_relay
|
||||
import ../../logos_delivery/waku/waku_rln_relay
|
||||
|
||||
const Help = """
|
||||
Commands: /[?|help|connect|nick|exit]
|
||||
|
||||
@ -10,7 +10,7 @@ import
|
||||
nimcrypto/utils,
|
||||
std/strutils,
|
||||
regex
|
||||
import waku/waku_core
|
||||
import logos_delivery/waku/waku_core
|
||||
|
||||
type
|
||||
Fleet* = enum
|
||||
|
||||
@ -15,7 +15,7 @@ import
|
||||
# Waku v2 imports
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/errors,
|
||||
waku/[
|
||||
logos_delivery/waku/[
|
||||
waku_core,
|
||||
waku_node,
|
||||
node/peer_manager,
|
||||
@ -242,7 +242,8 @@ proc stop*(cmb: Chat2MatterBridge) {.async: (raises: [Exception]).} =
|
||||
{.pop.}
|
||||
# @TODO confutils.nim(775, 17) Error: can raise an unlisted exception: ref IOError
|
||||
when isMainModule:
|
||||
import waku/common/utils/nat, waku/rest_api/message_cache
|
||||
import
|
||||
logos_delivery/waku/common/utils/nat, logos_delivery/waku/rest_api/message_cache
|
||||
|
||||
let
|
||||
rng = newRng()
|
||||
|
||||
@ -33,7 +33,7 @@ import
|
||||
protocols/mix/mix_protocol,
|
||||
] # define DNS resolution
|
||||
import
|
||||
waku/[
|
||||
logos_delivery/waku/[
|
||||
waku_core,
|
||||
waku_lightpush/common,
|
||||
waku_lightpush/rpc,
|
||||
@ -52,7 +52,7 @@ import
|
||||
./config_chat2mix
|
||||
|
||||
import libp2p/protocols/pubsub/rpc/messages, libp2p/protocols/pubsub/pubsub
|
||||
import ../../waku/waku_rln_relay
|
||||
import ../../logos_delivery/waku/waku_rln_relay
|
||||
|
||||
logScope:
|
||||
topics = "chat2 mix"
|
||||
|
||||
@ -12,7 +12,7 @@ import
|
||||
confutils/defs,
|
||||
confutils/std/net
|
||||
|
||||
import waku/waku_core, waku/waku_mix
|
||||
import logos_delivery/waku/waku_core, logos_delivery/waku/waku_mix
|
||||
|
||||
type
|
||||
Fleet* = enum
|
||||
|
||||
@ -15,7 +15,7 @@ import
|
||||
|
||||
import
|
||||
tools/confutils/cli_args,
|
||||
waku/[
|
||||
logos_delivery/waku/[
|
||||
node/peer_manager,
|
||||
waku_lightpush/common,
|
||||
waku_relay,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import chronos, results, options
|
||||
import waku/[waku_node, waku_core]
|
||||
import logos_delivery/waku/[waku_node, waku_core]
|
||||
import publisher_base
|
||||
|
||||
type LegacyPublisher* = ref object of PublisherBase
|
||||
|
||||
@ -12,7 +12,7 @@ import
|
||||
|
||||
import
|
||||
tools/confutils/cli_args,
|
||||
waku/[
|
||||
logos_delivery/waku/[
|
||||
common/enr,
|
||||
common/logging,
|
||||
factory/waku as waku_factory,
|
||||
|
||||
@ -8,7 +8,7 @@ import
|
||||
results,
|
||||
json_serialization as js
|
||||
import
|
||||
waku/[
|
||||
logos_delivery/waku/[
|
||||
common/logging,
|
||||
waku_node,
|
||||
node/peer_manager,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import chronos, results
|
||||
import waku/[waku_node, waku_core]
|
||||
import logos_delivery/waku/[waku_node, waku_core]
|
||||
|
||||
type PublisherBase* = ref object of RootObj
|
||||
wakuNode*: WakuNode
|
||||
|
||||
@ -13,7 +13,7 @@ import
|
||||
json_serialization as js
|
||||
|
||||
import
|
||||
waku/[
|
||||
logos_delivery/waku/[
|
||||
common/logging,
|
||||
node/peer_manager,
|
||||
waku_node,
|
||||
|
||||
@ -12,7 +12,7 @@ import
|
||||
|
||||
import
|
||||
tools/confutils/cli_args,
|
||||
waku/[
|
||||
logos_delivery/waku/[
|
||||
common/enr,
|
||||
waku_node,
|
||||
node/peer_manager,
|
||||
|
||||
@ -14,12 +14,12 @@ import
|
||||
import
|
||||
../../tools/confutils/
|
||||
[cli_args, envvar as confEnvvarDefs, envvar_net as confEnvvarNet],
|
||||
waku/[common/logging, waku_core, waku_core/topics/pubsub_topic]
|
||||
logos_delivery/waku/[common/logging, waku_core, waku_core/topics/pubsub_topic]
|
||||
|
||||
export confTomlDefs, confTomlNet, confEnvvarDefs, confEnvvarNet
|
||||
|
||||
const
|
||||
LitePubsubTopic* = PubsubTopic("/waku/2/rs/66/0")
|
||||
LitePubsubTopic* = PubsubTopic("/logos_delivery/waku/2/rs/66/0")
|
||||
LiteContentTopic* = ContentTopic("/tester/1/light-pubsub-example/proto")
|
||||
DefaultMinTestMessageSizeStr* = "1KiB"
|
||||
DefaultMaxTestMessageSizeStr* = "150KiB"
|
||||
|
||||
@ -6,7 +6,7 @@ import
|
||||
json_serialization/std/options,
|
||||
json_serialization/lexer
|
||||
|
||||
import waku/rest_api/endpoint/serdes
|
||||
import logos_delivery/waku/rest_api/endpoint/serdes
|
||||
|
||||
type ProtocolTesterMessage* = object
|
||||
sender*: string
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import results, options, chronos
|
||||
import waku/[waku_node, waku_core, waku_lightpush, waku_lightpush/common]
|
||||
import logos_delivery/waku/[waku_node, waku_core, waku_lightpush, waku_lightpush/common]
|
||||
import publisher_base
|
||||
|
||||
type V3Publisher* = ref object of PublisherBase
|
||||
|
||||
@ -17,7 +17,7 @@ import
|
||||
metrics/chronos_httpserver,
|
||||
presto/[route, server, client]
|
||||
import
|
||||
waku/[
|
||||
logos_delivery/waku/[
|
||||
waku_core,
|
||||
node/peer_manager,
|
||||
waku_node,
|
||||
|
||||
@ -12,26 +12,27 @@ import
|
||||
libp2p/multicodec
|
||||
import
|
||||
./certsgenerator,
|
||||
waku/[waku_enr, node/peer_manager, waku_core, waku_node, factory/builder],
|
||||
waku/net/net_config,
|
||||
waku/waku_metadata/protocol,
|
||||
waku/common/callbacks
|
||||
logos_delivery/waku/
|
||||
[waku_enr, node/peer_manager, waku_core, waku_node, factory/builder],
|
||||
logos_delivery/waku/net/net_config,
|
||||
logos_delivery/waku/waku_metadata/protocol,
|
||||
logos_delivery/waku/common/callbacks
|
||||
|
||||
# protocols and their tag
|
||||
const ProtocolsTable = {
|
||||
"store": "/vac/waku/store/",
|
||||
"storev3": "/vac/waku/store-query/3",
|
||||
"relay": "/vac/waku/relay/",
|
||||
"lightpush": "/vac/waku/lightpush/",
|
||||
"filter": "/vac/waku/filter-subscribe/2",
|
||||
"filter-push": "/vac/waku/filter-push/",
|
||||
"store": "/vac/logos_delivery/waku/store/",
|
||||
"storev3": "/vac/logos_delivery/waku/store-query/3",
|
||||
"relay": "/vac/logos_delivery/waku/relay/",
|
||||
"lightpush": "/vac/logos_delivery/waku/lightpush/",
|
||||
"filter": "/vac/logos_delivery/waku/filter-subscribe/2",
|
||||
"filter-push": "/vac/logos_delivery/waku/filter-push/",
|
||||
"ipfs-id": "/ipfs/id/",
|
||||
"autonat": "/libp2p/autonat/",
|
||||
"circuit-relay": "/libp2p/circuit/relay/",
|
||||
"metadata": "/vac/waku/metadata/",
|
||||
"metadata": "/vac/logos_delivery/waku/metadata/",
|
||||
"rendezvous": "/rendezvous/",
|
||||
"ipfs-ping": "/ipfs/ping/",
|
||||
"peer-exchange": "/vac/waku/peer-exchange/",
|
||||
"peer-exchange": "/vac/logos_delivery/waku/peer-exchange/",
|
||||
"mix": "mix/1.0.0",
|
||||
}.toTable
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user