chore(core): rename waku_message module to waku_core

This commit is contained in:
Lorenzo Delgado 2023-04-19 13:29:23 +02:00 committed by GitHub
parent edd8419a1b
commit c9b6b2308c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
104 changed files with 125 additions and 124 deletions

View File

@ -23,7 +23,7 @@ import libp2p/[switch, # manage transports, a single entry poi
protocols/secure/secio, # define the protocol of secure input / output, allows encrypted communication that uses public keys to validate signed messages instead of a certificate authority like in TLS protocols/secure/secio, # define the protocol of secure input / output, allows encrypted communication that uses public keys to validate signed messages instead of a certificate authority like in TLS
nameresolving/dnsresolver]# define DNS resolution nameresolving/dnsresolver]# define DNS resolution
import import
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_lightpush, ../../waku/v2/waku_lightpush,
../../waku/v2/waku_lightpush/rpc, ../../waku/v2/waku_lightpush/rpc,
../../waku/v2/waku_filter, ../../waku/v2/waku_filter,
@ -72,7 +72,7 @@ type Chat = ref object
type type
PrivateKey* = crypto.PrivateKey PrivateKey* = crypto.PrivateKey
Topic* = waku_message.PubsubTopic Topic* = waku_core.PubsubTopic
##################### #####################
## chat2 protobufs ## ## chat2 protobufs ##

View File

@ -7,7 +7,7 @@ import
nimcrypto/utils, nimcrypto/utils,
eth/keys eth/keys
import import
../../../waku/v2/waku_message ../../../waku/v2/waku_core
type type
Fleet* = enum Fleet* = enum

View File

@ -14,7 +14,7 @@ import
# Waku v2 imports # Waku v2 imports
libp2p/crypto/crypto, libp2p/crypto/crypto,
libp2p/errors, libp2p/errors,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_node, ../../../waku/v2/waku_node,
../../../waku/v2/utils/peers, ../../../waku/v2/utils/peers,
../../../waku/v2/node/peer_manager, ../../../waku/v2/node/peer_manager,

View File

@ -8,7 +8,7 @@ import
libp2p/crypto/crypto libp2p/crypto/crypto
import import
../../waku/v1/protocol/waku_protocol, ../../waku/v1/protocol/waku_protocol,
../../waku/v2/waku_message ../../waku/v2/waku_core
const const

View File

@ -25,7 +25,7 @@ import
libp2p/crypto/crypto, libp2p/crypto/crypto,
libp2p/nameresolving/nameresolver, libp2p/nameresolving/nameresolver,
../../waku/v2/utils/time, ../../waku/v2/utils/time,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_store, ../../waku/v2/waku_store,
../../waku/v2/waku_filter, ../../waku/v2/waku_filter,
../../waku/v2/node/message_cache, ../../waku/v2/node/message_cache,
@ -63,7 +63,7 @@ type
WakuBridge* = ref object of RootObj WakuBridge* = ref object of RootObj
nodev1*: EthereumNode nodev1*: EthereumNode
nodev2*: WakuNode nodev2*: WakuNode
nodev2PubsubTopic: waku_message.PubsubTopic # Pubsub topic to bridge to/from nodev2PubsubTopic: waku_core.PubsubTopic # Pubsub topic to bridge to/from
seen: seq[hashes.Hash] # FIFO queue of seen WakuMessages. Used for deduplication. seen: seq[hashes.Hash] # FIFO queue of seen WakuMessages. Used for deduplication.
rng: ref HmacDrbgContext rng: ref HmacDrbgContext
v1Pool: seq[Node] # Pool of v1 nodes for possible connections v1Pool: seq[Node] # Pool of v1 nodes for possible connections
@ -204,7 +204,7 @@ proc new*(T: type WakuBridge,
nodev2ExtIp = none[ValidIpAddress](), nodev2ExtPort = none[Port](), nodev2ExtIp = none[ValidIpAddress](), nodev2ExtPort = none[Port](),
nameResolver: NameResolver = nil, nameResolver: NameResolver = nil,
# Bridge configuration # Bridge configuration
nodev2PubsubTopic: waku_message.PubsubTopic, nodev2PubsubTopic: waku_core.PubsubTopic,
v1Pool: seq[Node] = @[], v1Pool: seq[Node] = @[],
targetV1Peers = 0): T targetV1Peers = 0): T
{.raises: [Defect,IOError, TLSStreamProtocolError, LPError].} = {.raises: [Defect,IOError, TLSStreamProtocolError, LPError].} =

View File

@ -28,6 +28,7 @@ import
../../waku/v2/node/peer_manager, ../../waku/v2/node/peer_manager,
../../waku/v2/node/peer_manager/peer_store/waku_peer_storage, ../../waku/v2/node/peer_manager/peer_store/waku_peer_storage,
../../waku/v2/node/peer_manager/peer_store/migrations as peer_store_sqlite_migrations, ../../waku/v2/node/peer_manager/peer_store/migrations as peer_store_sqlite_migrations,
../../waku/v2/waku_core,
../../waku/v2/waku_node, ../../waku/v2/waku_node,
../../waku/v2/node/waku_metrics, ../../waku/v2/node/waku_metrics,
../../waku/v2/waku_archive, ../../waku/v2/waku_archive,
@ -43,7 +44,6 @@ import
../../waku/v2/waku_enr, ../../waku/v2/waku_enr,
../../waku/v2/waku_dnsdisc, ../../waku/v2/waku_dnsdisc,
../../waku/v2/waku_discv5, ../../waku/v2/waku_discv5,
../../waku/v2/waku_message/topics/pubsub_topic,
../../waku/v2/waku_peer_exchange, ../../waku/v2/waku_peer_exchange,
../../waku/v2/waku_relay/validators, ../../waku/v2/waku_relay/validators,
../../waku/v2/utils/peers, ../../waku/v2/utils/peers,

View File

@ -13,7 +13,7 @@ import
../../../waku/common/logging, ../../../waku/common/logging,
../../../waku/v2/node/peer_manager, ../../../waku/v2/node/peer_manager,
../../../waku/v2/waku_node, ../../../waku/v2/waku_node,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_enr, ../../../waku/v2/waku_enr,
../../../waku/v2/waku_discv5, ../../../waku/v2/waku_discv5,
../../../waku/v2/utils/time ../../../waku/v2/utils/time

View File

@ -13,7 +13,7 @@ import
../../../waku/common/logging, ../../../waku/common/logging,
../../../waku/v2/node/peer_manager, ../../../waku/v2/node/peer_manager,
../../../waku/v2/waku_node, ../../../waku/v2/waku_node,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_enr, ../../../waku/v2/waku_enr,
../../../waku/v2/waku_discv5 ../../../waku/v2/waku_discv5

View File

@ -1,9 +1,9 @@
## Waku v2 ## Waku v2
# Waku message test suite # Waku core test suite
import import
./v2/test_waku_message_topics, ./v2/waku_core/test_namespaced_topics,
./v2/test_waku_message_digest ./v2/waku_core/test_message_digest
# Waku archive test suite # Waku archive test suite
import import

View File

@ -5,7 +5,7 @@ import
testutils/unittests, testutils/unittests,
chronicles chronicles
import import
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/node/message_cache, ../../waku/v2/node/message_cache,
./testlib/common, ./testlib/common,
./testlib/wakucore ./testlib/wakucore

View File

@ -3,7 +3,7 @@
import import
testutils/unittests testutils/unittests
import import
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/utils/compat, ../../waku/v2/utils/compat,
../../waku/v2/utils/time, ../../waku/v2/utils/time,
./testlib/common ./testlib/common

View File

@ -11,7 +11,7 @@ import
eth/p2p/discoveryv5/enr eth/p2p/discoveryv5/enr
import import
../../waku/v2/waku_node, ../../waku/v2/waku_node,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_discv5, ../../waku/v2/waku_discv5,
./testlib/common, ./testlib/common,
./testlib/wakucore, ./testlib/wakucore,

View File

@ -5,7 +5,7 @@ import
stew/results, stew/results,
testutils/unittests testutils/unittests
import import
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_enr, ../../waku/v2/waku_enr,
./testlib/wakucore ./testlib/wakucore

View File

@ -8,7 +8,7 @@ import
libp2p/crypto/crypto libp2p/crypto/crypto
import import
../../waku/v2/node/peer_manager, ../../waku/v2/node/peer_manager,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_filter, ../../waku/v2/waku_filter,
../../waku/v2/waku_filter/client, ../../waku/v2/waku_filter/client,
./testlib/common, ./testlib/common,

View File

@ -7,7 +7,7 @@ import
libp2p/crypto/crypto libp2p/crypto/crypto
import import
../../waku/v2/node/peer_manager, ../../waku/v2/node/peer_manager,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_lightpush, ../../waku/v2/waku_lightpush,
../../waku/v2/waku_lightpush/client, ../../waku/v2/waku_lightpush/client,
./testlib/common, ./testlib/common,

View File

@ -14,7 +14,7 @@ import
../../waku/v2/waku_noise/noise_utils, ../../waku/v2/waku_noise/noise_utils,
../../waku/v2/waku_noise/noise, ../../waku/v2/waku_noise/noise,
../../waku/v2/waku_noise/noise_handshake_processing, ../../waku/v2/waku_noise/noise_handshake_processing,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
./testlib/common ./testlib/common

View File

@ -10,7 +10,7 @@ import
../../waku/v2/waku_noise/noise_types, ../../waku/v2/waku_noise/noise_types,
../../waku/v2/waku_noise/noise_utils, ../../waku/v2/waku_noise/noise_utils,
../../waku/v2/waku_noise/noise_handshake_processing, ../../waku/v2/waku_noise/noise_handshake_processing,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
./testlib/common ./testlib/common
procSuite "Waku Noise Sessions": procSuite "Waku Noise Sessions":

View File

@ -19,7 +19,7 @@ import
import import
../../waku/v2/waku_node, ../../waku/v2/waku_node,
../../waku/v2/node/peer_manager, ../../waku/v2/node/peer_manager,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_relay, ../../waku/v2/waku_relay,
../../waku/v2/waku_peer_exchange, ../../waku/v2/waku_peer_exchange,
../../waku/v2/utils/peers, ../../waku/v2/utils/peers,

View File

@ -9,7 +9,7 @@ import
import import
../../waku/v2/node/peer_manager, ../../waku/v2/node/peer_manager,
../../waku/v2/waku_node, ../../waku/v2/waku_node,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/utils/peers, ../../waku/v2/utils/peers,
./testlib/common, ./testlib/common,
./testlib/wakucore, ./testlib/wakucore,

View File

@ -8,7 +8,7 @@ import
libp2p/crypto/crypto, libp2p/crypto/crypto,
libp2p/switch libp2p/switch
import import
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_lightpush, ../../waku/v2/waku_lightpush,
../../waku/v2/node/peer_manager, ../../waku/v2/node/peer_manager,
../../waku/v2/utils/peers, ../../waku/v2/utils/peers,

View File

@ -8,7 +8,7 @@ import
libp2p/crypto/crypto as libp2p_keys, libp2p/crypto/crypto as libp2p_keys,
eth/keys as eth_keys eth/keys as eth_keys
import import
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
./common ./common
export switch export switch
@ -38,8 +38,8 @@ proc newTestSwitch*(key=none(libp2p_keys.PrivateKey), address=none(MultiAddress)
# Waku message # Waku message
export export
waku_message.DefaultPubsubTopic, waku_core.DefaultPubsubTopic,
waku_message.DefaultContentTopic waku_core.DefaultContentTopic
proc fakeWakuMessage*( proc fakeWakuMessage*(

View File

@ -8,7 +8,7 @@ import
../../../waku/v2/waku_archive, ../../../waku/v2/waku_archive,
../../../waku/v2/waku_archive/driver/queue_driver/queue_driver {.all.}, ../../../waku/v2/waku_archive/driver/queue_driver/queue_driver {.all.},
../../../waku/v2/waku_archive/driver/queue_driver/index, ../../../waku/v2/waku_archive/driver/queue_driver/index,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/utils/time ../../../waku/v2/utils/time

View File

@ -6,7 +6,7 @@ import
testutils/unittests, testutils/unittests,
nimcrypto nimcrypto
import import
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_archive/driver/queue_driver/index, ../../../waku/v2/waku_archive/driver/queue_driver/index,
../../../waku/v2/utils/time ../../../waku/v2/utils/time

View File

@ -8,7 +8,7 @@ import
../../../waku/v2/waku_archive, ../../../waku/v2/waku_archive,
../../../waku/v2/waku_archive/driver/queue_driver/queue_driver {.all.}, ../../../waku/v2/waku_archive/driver/queue_driver/queue_driver {.all.},
../../../waku/v2/waku_archive/driver/queue_driver/index, ../../../waku/v2/waku_archive/driver/queue_driver/index,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/utils/time, ../../../waku/v2/utils/time,
../testlib/common, ../testlib/common,
../testlib/wakucore ../testlib/wakucore

View File

@ -8,7 +8,7 @@ import
import import
../../../waku/v2/waku_archive, ../../../waku/v2/waku_archive,
../../../waku/v2/waku_archive/driver/queue_driver, ../../../waku/v2/waku_archive/driver/queue_driver,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../testlib/common, ../testlib/common,
../testlib/wakucore ../testlib/wakucore

View File

@ -8,7 +8,7 @@ import
../../../waku/common/sqlite, ../../../waku/common/sqlite,
../../../waku/v2/waku_archive, ../../../waku/v2/waku_archive,
../../../waku/v2/waku_archive/driver/sqlite_driver, ../../../waku/v2/waku_archive/driver/sqlite_driver,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../testlib/common, ../testlib/common,
../testlib/wakucore ../testlib/wakucore

View File

@ -9,7 +9,7 @@ import
../../../waku/common/sqlite, ../../../waku/common/sqlite,
../../../waku/v2/waku_archive, ../../../waku/v2/waku_archive,
../../../waku/v2/waku_archive/driver/sqlite_driver, ../../../waku/v2/waku_archive/driver/sqlite_driver,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../testlib/common, ../testlib/common,
../testlib/wakucore ../testlib/wakucore

View File

@ -11,7 +11,7 @@ import
../../../waku/v2/waku_archive/driver/sqlite_driver, ../../../waku/v2/waku_archive/driver/sqlite_driver,
../../../waku/v2/waku_archive/retention_policy, ../../../waku/v2/waku_archive/retention_policy,
../../../waku/v2/waku_archive/retention_policy/retention_policy_capacity, ../../../waku/v2/waku_archive/retention_policy/retention_policy_capacity,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/utils/time, ../../../waku/v2/utils/time,
../testlib/common, ../testlib/common,
../testlib/wakucore ../testlib/wakucore

View File

@ -7,7 +7,7 @@ import
libp2p/crypto/crypto libp2p/crypto/crypto
import import
../../../waku/common/sqlite, ../../../waku/common/sqlite,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_archive/driver/sqlite_driver, ../../../waku/v2/waku_archive/driver/sqlite_driver,
../../../waku/v2/waku_archive, ../../../waku/v2/waku_archive,
../../../waku/v2/utils/time, ../../../waku/v2/utils/time,

View File

@ -5,10 +5,8 @@ import
stew/byteutils, stew/byteutils,
testutils/unittests testutils/unittests
import import
../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../waku/v2/waku_message/codec, ../testlib/wakucore
../../waku/v2/waku_message/digest,
./testlib/wakucore
suite "Waku Message - Deterministic hashing": suite "Waku Message - Deterministic hashing":

View File

@ -4,7 +4,7 @@ import
stew/results, stew/results,
testutils/unittests testutils/unittests
import import
../../waku/v2/waku_message/topics ../../../waku/v2/waku_core/topics
suite "Waku Message - Content topics namespacing": suite "Waku Message - Content topics namespacing":

View File

@ -11,7 +11,7 @@ import
../../../waku/v2/waku_filter_v2, ../../../waku/v2/waku_filter_v2,
../../../waku/v2/waku_filter_v2/client, ../../../waku/v2/waku_filter_v2/client,
../../../waku/v2/waku_filter_v2/rpc, ../../../waku/v2/waku_filter_v2/rpc,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../testlib/common, ../testlib/common,
../testlib/wakucore ../testlib/wakucore

View File

@ -11,7 +11,7 @@ import
../../../waku/v2/waku_filter_v2, ../../../waku/v2/waku_filter_v2,
../../../waku/v2/waku_filter_v2/rpc, ../../../waku/v2/waku_filter_v2/rpc,
../../../waku/v2/waku_filter_v2/subscriptions, ../../../waku/v2/waku_filter_v2/subscriptions,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../testlib/common, ../testlib/common,
../testlib/wakucore ../testlib/wakucore

View File

@ -10,7 +10,7 @@ import
libp2p/protocols/pubsub/rpc/messages libp2p/protocols/pubsub/rpc/messages
import import
../../../waku/v2/node/peer_manager, ../../../waku/v2/node/peer_manager,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_relay, ../../../waku/v2/waku_relay,
../testlib/common, ../testlib/common,
../testlib/wakucore ../testlib/wakucore

View File

@ -18,7 +18,7 @@ import
libp2p/multihash, libp2p/multihash,
secp256k1 secp256k1
import import
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/node/peer_manager, ../../waku/v2/node/peer_manager,
../../waku/v2/utils/peers, ../../waku/v2/utils/peers,
../../waku/v2/waku_node, ../../waku/v2/waku_node,

View File

@ -11,7 +11,7 @@ import
stint, stint,
libp2p/crypto/crypto libp2p/crypto/crypto
import import
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_rln_relay, ../../../waku/v2/waku_rln_relay,
../../../waku/v2/waku_rln_relay/rln, ../../../waku/v2/waku_rln_relay/rln,
../../../waku/v2/waku_rln_relay/protocol_metrics, ../../../waku/v2/waku_rln_relay/protocol_metrics,

View File

@ -15,7 +15,7 @@ import
eth/keys eth/keys
import import
../../../waku/v2/waku_node, ../../../waku/v2/waku_node,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_rln_relay, ../../../waku/v2/waku_rln_relay,
../../../waku/v2/waku_keystore, ../../../waku/v2/waku_keystore,
../../../waku/v2/utils/peers, ../../../waku/v2/utils/peers,

View File

@ -10,7 +10,7 @@ import
../../waku/common/sqlite, ../../waku/common/sqlite,
../../waku/v2/node/message_store/sqlite_store, ../../waku/v2/node/message_store/sqlite_store,
../../waku/v2/node/peer_manager, ../../waku/v2/node/peer_manager,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_store, ../../waku/v2/waku_store,
./testlib/common, ./testlib/common,
./testlib/switch ./testlib/switch

View File

@ -8,7 +8,7 @@ import
libp2p/crypto/crypto libp2p/crypto/crypto
import import
../../../waku/v2/node/peer_manager, ../../../waku/v2/node/peer_manager,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_store, ../../../waku/v2/waku_store,
../../../waku/v2/waku_store/client, ../../../waku/v2/waku_store/client,
../testlib/common, ../testlib/common,

View File

@ -15,7 +15,7 @@ import
import import
../../../waku/common/sqlite, ../../../waku/common/sqlite,
../../../waku/v2/node/peer_manager, ../../../waku/v2/node/peer_manager,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_archive, ../../../waku/v2/waku_archive,
../../../waku/v2/waku_archive/driver/sqlite_driver, ../../../waku/v2/waku_archive/driver/sqlite_driver,
../../../waku/v2/waku_store, ../../../waku/v2/waku_store,

View File

@ -13,7 +13,7 @@ import
../../../waku/v2/node/message_cache, ../../../waku/v2/node/message_cache,
../../../waku/v2/node/jsonrpc/filter/handlers as filter_api, ../../../waku/v2/node/jsonrpc/filter/handlers as filter_api,
../../../waku/v2/node/jsonrpc/filter/client as filter_api_client, ../../../waku/v2/node/jsonrpc/filter/client as filter_api_client,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_filter, ../../../waku/v2/waku_filter,
../../../waku/v2/waku_filter/rpc, ../../../waku/v2/waku_filter/rpc,
../../../waku/v2/waku_filter/client, ../../../waku/v2/waku_filter/client,

View File

@ -14,7 +14,7 @@ import
../../../waku/v2/waku_node, ../../../waku/v2/waku_node,
../../../waku/v2/node/jsonrpc/relay/handlers as relay_api, ../../../waku/v2/node/jsonrpc/relay/handlers as relay_api,
../../../waku/v2/node/jsonrpc/relay/client as relay_api_client, ../../../waku/v2/node/jsonrpc/relay/client as relay_api_client,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_relay, ../../../waku/v2/waku_relay,
../../../waku/v2/utils/compat, ../../../waku/v2/utils/compat,
../../../waku/v2/utils/peers, ../../../waku/v2/utils/peers,

View File

@ -12,7 +12,7 @@ import
../../../waku/v2/waku_node, ../../../waku/v2/waku_node,
../../../waku/v2/node/jsonrpc/store/handlers as store_api, ../../../waku/v2/node/jsonrpc/store/handlers as store_api,
../../../waku/v2/node/jsonrpc/store/client as store_api_client, ../../../waku/v2/node/jsonrpc/store/client as store_api_client,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_archive, ../../../waku/v2/waku_archive,
../../../waku/v2/waku_archive/driver/queue_driver, ../../../waku/v2/waku_archive/driver/queue_driver,
../../../waku/v2/waku_store, ../../../waku/v2/waku_store,

View File

@ -17,7 +17,7 @@ import
../../waku/v2/node/rest/relay/handlers as relay_api, ../../waku/v2/node/rest/relay/handlers as relay_api,
../../waku/v2/node/rest/relay/client as relay_api_client, ../../waku/v2/node/rest/relay/client as relay_api_client,
../../waku/v2/node/rest/relay/topic_cache, ../../waku/v2/node/rest/relay/topic_cache,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_relay, ../../waku/v2/waku_relay,
../../waku/v2/utils/time, ../../waku/v2/utils/time,
../testlib/wakucore, ../testlib/wakucore,

View File

@ -9,7 +9,7 @@ import
../../waku/common/base64, ../../waku/common/base64,
../../waku/v2/node/rest/serdes, ../../waku/v2/node/rest/serdes,
../../waku/v2/node/rest/relay/types, ../../waku/v2/node/rest/relay/types,
../../waku/v2/waku_message ../../waku/v2/waku_core

View File

@ -17,7 +17,7 @@ import
../../../waku/v2/node/rest/store/handlers as store_api, ../../../waku/v2/node/rest/store/handlers as store_api,
../../../waku/v2/node/rest/store/client as store_api_client, ../../../waku/v2/node/rest/store/client as store_api_client,
../../../waku/v2/node/rest/store/types, ../../../waku/v2/node/rest/store/types,
../../../waku/v2/waku_message, ../../../waku/v2/waku_core,
../../../waku/v2/waku_archive, ../../../waku/v2/waku_archive,
../../../waku/v2/waku_archive/driver/queue_driver, ../../../waku/v2/waku_archive/driver/queue_driver,
../../../waku/v2/waku_store as waku_store, ../../../waku/v2/waku_store as waku_store,

View File

@ -7,7 +7,7 @@ import
chronos, chronos,
libp2p/switch libp2p/switch
import import
../../waku/v2/waku_message ../../waku/v2/waku_core
import import
../../apps/wakubridge/message_compat ../../apps/wakubridge/message_compat

View File

@ -17,7 +17,7 @@ import
eth/keys eth/keys
import import
../../waku/v1/protocol/waku_protocol, ../../waku/v1/protocol/waku_protocol,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_node, ../../waku/v2/waku_node,
../../waku/v2/utils/compat, ../../waku/v2/utils/compat,
../../waku/v2/utils/peers, ../../waku/v2/utils/peers,

View File

@ -22,7 +22,7 @@ import
../../apps/wakunode2/wakunode2, ../../apps/wakunode2/wakunode2,
../../waku/v2/node/peer_manager, ../../waku/v2/node/peer_manager,
../../waku/v2/waku_node, ../../waku/v2/waku_node,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/waku_enr, ../../waku/v2/waku_enr,
../../waku/v2/waku_discv5, ../../waku/v2/waku_discv5,
../../waku/v2/waku_dnsdisc, ../../waku/v2/waku_dnsdisc,

View File

@ -8,7 +8,7 @@ import
import import
../../waku/v2/waku_filter/rpc, ../../waku/v2/waku_filter/rpc,
../../waku/v2/waku_store/rpc, ../../waku/v2/waku_store/rpc,
../../waku/v2/waku_message, ../../waku/v2/waku_core,
../../waku/v2/utils/time, ../../waku/v2/utils/time,
../../waku/v2/waku_node, ../../waku/v2/waku_node,
../../waku/v2/node/waku_payload, ../../waku/v2/node/waku_payload,

View File

@ -7,7 +7,7 @@ import
std/[os, strutils], std/[os, strutils],
json_rpc/rpcclient json_rpc/rpcclient
import import
../../../waku_message, ../../../waku_core,
../../../waku_filter/rpc ../../../waku_filter/rpc
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0] template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]

View File

@ -8,7 +8,7 @@ import
chronicles, chronicles,
json_rpc/rpcserver json_rpc/rpcserver
import import
../../../waku_message, ../../../waku_core,
../../../waku_filter, ../../../waku_filter,
../../../waku_filter/rpc, ../../../waku_filter/rpc,
../../../waku_filter/client, ../../../waku_filter/client,

View File

@ -4,7 +4,7 @@ import
json_rpc/rpcserver json_rpc/rpcserver
import import
../../../common/base64, ../../../common/base64,
../../waku_message, ../../waku_core,
../../utils/time ../../utils/time

View File

@ -7,7 +7,7 @@ import
std/[os, strutils], std/[os, strutils],
json_rpc/rpcclient json_rpc/rpcclient
import import
../../../waku_message, ../../../waku_core,
../../../utils/compat, ../../../utils/compat,
./types ./types

View File

@ -11,7 +11,7 @@ import
nimcrypto/sysrand nimcrypto/sysrand
import import
../../../../common/base64, ../../../../common/base64,
../../../waku_message, ../../../waku_core,
../../../waku_relay, ../../../waku_relay,
../../../utils/compat, ../../../utils/compat,
../../../utils/time, ../../../utils/time,

View File

@ -10,7 +10,7 @@ import
chronos, chronos,
libp2p/protocols/pubsub libp2p/protocols/pubsub
import import
../waku_message ../waku_core
logScope: logScope:
topics = "waku node message_cache" topics = "waku node message_cache"

View File

@ -11,7 +11,7 @@ import
json_serialization/std/options, json_serialization/std/options,
presto/[route, client, common] presto/[route, client, common]
import import
../../../waku_message, ../../../waku_core,
../serdes, ../serdes,
../responses, ../responses,
./types ./types

View File

@ -8,7 +8,7 @@ import
chronicles chronicles
import import
../../../waku_relay, ../../../waku_relay,
../../../waku_message, ../../../waku_core,
../../message_cache ../../message_cache
export message_cache export message_cache

View File

@ -11,7 +11,7 @@ import
presto/[route, client, common] presto/[route, client, common]
import import
../../../../common/base64, ../../../../common/base64,
../../../waku_message, ../../../waku_core,
../serdes ../serdes

View File

@ -11,7 +11,7 @@ import
presto/route presto/route
import import
../../../../common/base64, ../../../../common/base64,
../../../waku_message/topics/content_topic, ../../../waku_core,
../../../waku_store/common, ../../../waku_store/common,
../../../utils/time, ../../../utils/time,
../../waku_node, ../../waku_node,

View File

@ -14,9 +14,7 @@ import
../../../waku_store/common as waku_store_common, ../../../waku_store/common as waku_store_common,
../../../../common/base64, ../../../../common/base64,
../../../utils/time, ../../../utils/time,
../../../waku_message/topics/content_topic, ../../../waku_core,
../../../waku_message/topics/pubsub_topic,
../../../waku_message/message,
../serdes ../serdes

View File

@ -24,7 +24,7 @@ import
libp2p/transports/tcptransport, libp2p/transports/tcptransport,
libp2p/transports/wstransport libp2p/transports/wstransport
import import
../waku_message, ../waku_core,
../waku_relay, ../waku_relay,
../waku_archive, ../waku_archive,
../waku_store, ../waku_store,

View File

@ -10,7 +10,7 @@ import
eth/keys eth/keys
import import
../../whisper/whisper_types, ../../whisper/whisper_types,
../waku_message ../waku_core
export whisper_types, keys, options export whisper_types, keys, options

View File

@ -6,7 +6,7 @@ else:
import import
stew/results stew/results
import import
../waku_message, ../waku_core,
../waku_noise/noise_types, ../waku_noise/noise_types,
../waku_noise/noise_utils ../waku_noise/noise_utils

View File

@ -12,7 +12,7 @@ import
metrics metrics
import import
../utils/time, ../utils/time,
../waku_message, ../waku_core,
./common, ./common,
./archive_metrics, ./archive_metrics,
./retention_policy, ./retention_policy,

View File

@ -10,7 +10,7 @@ import
nimcrypto/sha2 nimcrypto/sha2
import import
../utils/time, ../utils/time,
../waku_message ../waku_core
## Waku message digest ## Waku message digest

View File

@ -8,7 +8,7 @@ import
stew/results stew/results
import import
../utils/time, ../utils/time,
../waku_message, ../waku_core,
./common ./common

View File

@ -7,7 +7,7 @@ import
stew/byteutils, stew/byteutils,
nimcrypto/sha2 nimcrypto/sha2
import import
../../../waku_message, ../../../waku_core,
../../../utils/time, ../../../utils/time,
../../common ../../common

View File

@ -9,7 +9,7 @@ import
stew/sorted_set, stew/sorted_set,
chronicles chronicles
import import
../../../waku_message, ../../../waku_core,
../../../utils/time, ../../../utils/time,
../../common, ../../common,
../../driver, ../../driver,

View File

@ -5,7 +5,7 @@ else:
import import
../../../waku_message, ../../../waku_core,
../../../utils/time, ../../../utils/time,
../../common ../../common

View File

@ -10,7 +10,7 @@ import
sqlite3_abi sqlite3_abi
import import
../../../../common/sqlite, ../../../../common/sqlite,
../../../waku_message, ../../../waku_core,
../../../utils/time, ../../../utils/time,
./cursor ./cursor

View File

@ -11,7 +11,7 @@ import
chronicles chronicles
import import
../../../../common/sqlite, ../../../../common/sqlite,
../../../waku_message, ../../../waku_core,
../../../utils/time, ../../../utils/time,
../../common, ../../common,
../../driver, ../../driver,

7
waku/v2/waku_core.nim Normal file
View File

@ -0,0 +1,7 @@
import
./waku_core/topics,
./waku_core/message
export
topics,
message

View File

@ -0,0 +1,9 @@
import
./message/message,
./message/codec,
./message/digest
export
message,
codec,
digest

View File

@ -9,9 +9,9 @@ else:
import import
../../common/protobuf, ../../../common/protobuf,
../utils/time, ../../utils/time,
./topics, ../topics,
./message ./message

View File

@ -9,7 +9,7 @@ import
stew/byteutils, stew/byteutils,
nimcrypto/sha2 nimcrypto/sha2
import import
./topics, ../topics,
./message ./message

View File

@ -10,8 +10,8 @@ else:
import import
../utils/time, ../../utils/time,
./topics ../topics
const const
MaxMetaAttrLength* = 64 # 64 bytes MaxMetaAttrLength* = 64 # 64 bytes

View File

@ -13,7 +13,7 @@ import
libp2p/crypto/crypto libp2p/crypto/crypto
import import
../../common/enr, ../../common/enr,
../waku_message ../waku_core
logScope: logScope:
topics = "waku enr sharding" topics = "waku enr sharding"

View File

@ -12,7 +12,7 @@ import
bearssl/rand, bearssl/rand,
libp2p/protocols/protocol as libp2p_protocol libp2p/protocols/protocol as libp2p_protocol
import import
../waku_message, ../waku_core,
../node/peer_manager, ../node/peer_manager,
../utils/requests, ../utils/requests,
./rpc, ./rpc,

View File

@ -8,7 +8,7 @@ import
libp2p/protocols/protocol, libp2p/protocols/protocol,
libp2p/crypto/crypto libp2p/crypto/crypto
import import
../waku_message, ../waku_core,
../node/peer_manager, ../node/peer_manager,
./rpc, ./rpc,
./rpc_codec, ./rpc_codec,

View File

@ -6,7 +6,7 @@ else:
import import
std/options std/options
import import
../waku_message ../waku_core
type type

View File

@ -7,7 +7,7 @@ import
std/options std/options
import import
../../common/protobuf, ../../common/protobuf,
../waku_message, ../waku_core,
./rpc ./rpc

View File

@ -13,7 +13,7 @@ import
bearssl/rand bearssl/rand
import import
../node/peer_manager, ../node/peer_manager,
../waku_message, ../waku_core,
./common, ./common,
./protocol_metrics, ./protocol_metrics,
./rpc_codec, ./rpc_codec,

View File

@ -13,7 +13,7 @@ import
libp2p/protocols/protocol libp2p/protocols/protocol
import import
../node/peer_manager, ../node/peer_manager,
../waku_message, ../waku_core,
./common, ./common,
./protocol_metrics, ./protocol_metrics,
./rpc_codec, ./rpc_codec,

View File

@ -6,7 +6,7 @@ else:
import import
std/options std/options
import import
../waku_message ../waku_core
type type
FilterSubscribeType* {.pure.} = enum FilterSubscribeType* {.pure.} = enum

View File

@ -7,7 +7,7 @@ import
std/options std/options
import import
../../common/protobuf, ../../common/protobuf,
../waku_message, ../waku_core,
./rpc ./rpc
const const

View File

@ -8,7 +8,7 @@ import
chronicles, chronicles,
libp2p/peerid libp2p/peerid
import import
../waku_message ../waku_core
logScope: logScope:
topics = "waku filter subscriptions" topics = "waku filter subscriptions"

View File

@ -13,7 +13,7 @@ import
import import
../node/peer_manager, ../node/peer_manager,
../utils/requests, ../utils/requests,
../waku_message, ../waku_core,
./protocol, ./protocol,
./protocol_metrics, ./protocol_metrics,
./rpc, ./rpc,

View File

@ -12,7 +12,7 @@ import
bearssl/rand bearssl/rand
import import
../node/peer_manager, ../node/peer_manager,
../waku_message, ../waku_core,
./rpc, ./rpc,
./rpc_codec, ./rpc_codec,
./protocol_metrics ./protocol_metrics

View File

@ -6,7 +6,7 @@ else:
import import
std/options std/options
import import
../waku_message ../waku_core
type type
PushRequest* = object PushRequest* = object

View File

@ -8,7 +8,7 @@ import
std/options std/options
import import
../../common/protobuf, ../../common/protobuf,
../waku_message, ../waku_core,
./rpc ./rpc

View File

@ -1,11 +0,0 @@
import
./waku_message/topics,
./waku_message/message,
./waku_message/codec,
./waku_message/digest
export
topics,
message,
codec,
digest

View File

@ -9,7 +9,7 @@ import
eth/p2p/discoveryv5/enr eth/p2p/discoveryv5/enr
import import
../node/peer_manager, ../node/peer_manager,
../waku_message, ../waku_core,
../waku_discv5, ../waku_discv5,
./rpc, ./rpc,
./rpc_codec ./rpc_codec

View File

@ -19,7 +19,7 @@ import
libp2p/stream/connection, libp2p/stream/connection,
libp2p/switch libp2p/switch
import import
../waku_message, ../waku_core,
./message_id ./message_id

View File

@ -15,7 +15,7 @@ import
import import
./protocol, ./protocol,
../waku_message ../waku_core
# Application level message hash # Application level message hash
proc msgHash*(pubSubTopic: string, msg: WakuMessage): array[32, byte] = proc msgHash*(pubSubTopic: string, msg: WakuMessage): array[32, byte] =

View File

@ -10,13 +10,13 @@ import
web3, web3,
eth/keys eth/keys
import import
../waku_message, ../waku_core,
../waku_keystore, ../waku_keystore,
../../common/protobuf ../../common/protobuf
export export
waku_keystore, waku_keystore,
waku_message waku_core
type RlnRelayResult*[T] = Result[T, string] type RlnRelayResult*[T] = Result[T, string]

Some files were not shown because too many files have changed in this diff Show More