mirror of https://github.com/waku-org/nwaku.git
chore(core): rename waku_message module to waku_core
This commit is contained in:
parent
edd8419a1b
commit
c9b6b2308c
|
@ -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
|
||||
nameresolving/dnsresolver]# define DNS resolution
|
||||
import
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_lightpush,
|
||||
../../waku/v2/waku_lightpush/rpc,
|
||||
../../waku/v2/waku_filter,
|
||||
|
@ -72,7 +72,7 @@ type Chat = ref object
|
|||
|
||||
type
|
||||
PrivateKey* = crypto.PrivateKey
|
||||
Topic* = waku_message.PubsubTopic
|
||||
Topic* = waku_core.PubsubTopic
|
||||
|
||||
#####################
|
||||
## chat2 protobufs ##
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
nimcrypto/utils,
|
||||
eth/keys
|
||||
import
|
||||
../../../waku/v2/waku_message
|
||||
../../../waku/v2/waku_core
|
||||
|
||||
type
|
||||
Fleet* = enum
|
||||
|
|
|
@ -14,7 +14,7 @@ import
|
|||
# Waku v2 imports
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/errors,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_node,
|
||||
../../../waku/v2/utils/peers,
|
||||
../../../waku/v2/node/peer_manager,
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
libp2p/crypto/crypto
|
||||
import
|
||||
../../waku/v1/protocol/waku_protocol,
|
||||
../../waku/v2/waku_message
|
||||
../../waku/v2/waku_core
|
||||
|
||||
|
||||
const
|
||||
|
|
|
@ -25,7 +25,7 @@ import
|
|||
libp2p/crypto/crypto,
|
||||
libp2p/nameresolving/nameresolver,
|
||||
../../waku/v2/utils/time,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_store,
|
||||
../../waku/v2/waku_filter,
|
||||
../../waku/v2/node/message_cache,
|
||||
|
@ -63,7 +63,7 @@ type
|
|||
WakuBridge* = ref object of RootObj
|
||||
nodev1*: EthereumNode
|
||||
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.
|
||||
rng: ref HmacDrbgContext
|
||||
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](),
|
||||
nameResolver: NameResolver = nil,
|
||||
# Bridge configuration
|
||||
nodev2PubsubTopic: waku_message.PubsubTopic,
|
||||
nodev2PubsubTopic: waku_core.PubsubTopic,
|
||||
v1Pool: seq[Node] = @[],
|
||||
targetV1Peers = 0): T
|
||||
{.raises: [Defect,IOError, TLSStreamProtocolError, LPError].} =
|
||||
|
|
|
@ -28,6 +28,7 @@ import
|
|||
../../waku/v2/node/peer_manager,
|
||||
../../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/waku_core,
|
||||
../../waku/v2/waku_node,
|
||||
../../waku/v2/node/waku_metrics,
|
||||
../../waku/v2/waku_archive,
|
||||
|
@ -43,7 +44,6 @@ import
|
|||
../../waku/v2/waku_enr,
|
||||
../../waku/v2/waku_dnsdisc,
|
||||
../../waku/v2/waku_discv5,
|
||||
../../waku/v2/waku_message/topics/pubsub_topic,
|
||||
../../waku/v2/waku_peer_exchange,
|
||||
../../waku/v2/waku_relay/validators,
|
||||
../../waku/v2/utils/peers,
|
||||
|
|
|
@ -13,7 +13,7 @@ import
|
|||
../../../waku/common/logging,
|
||||
../../../waku/v2/node/peer_manager,
|
||||
../../../waku/v2/waku_node,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_enr,
|
||||
../../../waku/v2/waku_discv5,
|
||||
../../../waku/v2/utils/time
|
||||
|
|
|
@ -13,7 +13,7 @@ import
|
|||
../../../waku/common/logging,
|
||||
../../../waku/v2/node/peer_manager,
|
||||
../../../waku/v2/waku_node,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_enr,
|
||||
../../../waku/v2/waku_discv5
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
## Waku v2
|
||||
|
||||
# Waku message test suite
|
||||
# Waku core test suite
|
||||
import
|
||||
./v2/test_waku_message_topics,
|
||||
./v2/test_waku_message_digest
|
||||
./v2/waku_core/test_namespaced_topics,
|
||||
./v2/waku_core/test_message_digest
|
||||
|
||||
# Waku archive test suite
|
||||
import
|
||||
|
|
|
@ -5,7 +5,7 @@ import
|
|||
testutils/unittests,
|
||||
chronicles
|
||||
import
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/node/message_cache,
|
||||
./testlib/common,
|
||||
./testlib/wakucore
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import
|
||||
testutils/unittests
|
||||
import
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/utils/compat,
|
||||
../../waku/v2/utils/time,
|
||||
./testlib/common
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
eth/p2p/discoveryv5/enr
|
||||
import
|
||||
../../waku/v2/waku_node,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_discv5,
|
||||
./testlib/common,
|
||||
./testlib/wakucore,
|
||||
|
|
|
@ -5,7 +5,7 @@ import
|
|||
stew/results,
|
||||
testutils/unittests
|
||||
import
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_enr,
|
||||
./testlib/wakucore
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
libp2p/crypto/crypto
|
||||
import
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_filter,
|
||||
../../waku/v2/waku_filter/client,
|
||||
./testlib/common,
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
libp2p/crypto/crypto
|
||||
import
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_lightpush,
|
||||
../../waku/v2/waku_lightpush/client,
|
||||
./testlib/common,
|
||||
|
|
|
@ -14,7 +14,7 @@ import
|
|||
../../waku/v2/waku_noise/noise_utils,
|
||||
../../waku/v2/waku_noise/noise,
|
||||
../../waku/v2/waku_noise/noise_handshake_processing,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
./testlib/common
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import
|
|||
../../waku/v2/waku_noise/noise_types,
|
||||
../../waku/v2/waku_noise/noise_utils,
|
||||
../../waku/v2/waku_noise/noise_handshake_processing,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
./testlib/common
|
||||
|
||||
procSuite "Waku Noise Sessions":
|
||||
|
|
|
@ -19,7 +19,7 @@ import
|
|||
import
|
||||
../../waku/v2/waku_node,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_relay,
|
||||
../../waku/v2/waku_peer_exchange,
|
||||
../../waku/v2/utils/peers,
|
||||
|
|
|
@ -9,7 +9,7 @@ import
|
|||
import
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/waku_node,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/utils/peers,
|
||||
./testlib/common,
|
||||
./testlib/wakucore,
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
libp2p/crypto/crypto,
|
||||
libp2p/switch
|
||||
import
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_lightpush,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/utils/peers,
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
libp2p/crypto/crypto as libp2p_keys,
|
||||
eth/keys as eth_keys
|
||||
import
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
./common
|
||||
|
||||
export switch
|
||||
|
@ -38,8 +38,8 @@ proc newTestSwitch*(key=none(libp2p_keys.PrivateKey), address=none(MultiAddress)
|
|||
# Waku message
|
||||
|
||||
export
|
||||
waku_message.DefaultPubsubTopic,
|
||||
waku_message.DefaultContentTopic
|
||||
waku_core.DefaultPubsubTopic,
|
||||
waku_core.DefaultContentTopic
|
||||
|
||||
|
||||
proc fakeWakuMessage*(
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
../../../waku/v2/waku_archive,
|
||||
../../../waku/v2/waku_archive/driver/queue_driver/queue_driver {.all.},
|
||||
../../../waku/v2/waku_archive/driver/queue_driver/index,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/utils/time
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import
|
|||
testutils/unittests,
|
||||
nimcrypto
|
||||
import
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_archive/driver/queue_driver/index,
|
||||
../../../waku/v2/utils/time
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
../../../waku/v2/waku_archive,
|
||||
../../../waku/v2/waku_archive/driver/queue_driver/queue_driver {.all.},
|
||||
../../../waku/v2/waku_archive/driver/queue_driver/index,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/utils/time,
|
||||
../testlib/common,
|
||||
../testlib/wakucore
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
import
|
||||
../../../waku/v2/waku_archive,
|
||||
../../../waku/v2/waku_archive/driver/queue_driver,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../testlib/common,
|
||||
../testlib/wakucore
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
../../../waku/common/sqlite,
|
||||
../../../waku/v2/waku_archive,
|
||||
../../../waku/v2/waku_archive/driver/sqlite_driver,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../testlib/common,
|
||||
../testlib/wakucore
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import
|
|||
../../../waku/common/sqlite,
|
||||
../../../waku/v2/waku_archive,
|
||||
../../../waku/v2/waku_archive/driver/sqlite_driver,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../testlib/common,
|
||||
../testlib/wakucore
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
../../../waku/v2/waku_archive/driver/sqlite_driver,
|
||||
../../../waku/v2/waku_archive/retention_policy,
|
||||
../../../waku/v2/waku_archive/retention_policy/retention_policy_capacity,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/utils/time,
|
||||
../testlib/common,
|
||||
../testlib/wakucore
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
libp2p/crypto/crypto
|
||||
import
|
||||
../../../waku/common/sqlite,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_archive/driver/sqlite_driver,
|
||||
../../../waku/v2/waku_archive,
|
||||
../../../waku/v2/utils/time,
|
||||
|
|
|
@ -5,10 +5,8 @@ import
|
|||
stew/byteutils,
|
||||
testutils/unittests
|
||||
import
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_message/codec,
|
||||
../../waku/v2/waku_message/digest,
|
||||
./testlib/wakucore
|
||||
../../../waku/v2/waku_core,
|
||||
../testlib/wakucore
|
||||
|
||||
suite "Waku Message - Deterministic hashing":
|
||||
|
|
@ -4,7 +4,7 @@ import
|
|||
stew/results,
|
||||
testutils/unittests
|
||||
import
|
||||
../../waku/v2/waku_message/topics
|
||||
../../../waku/v2/waku_core/topics
|
||||
|
||||
suite "Waku Message - Content topics namespacing":
|
||||
|
|
@ -11,7 +11,7 @@ import
|
|||
../../../waku/v2/waku_filter_v2,
|
||||
../../../waku/v2/waku_filter_v2/client,
|
||||
../../../waku/v2/waku_filter_v2/rpc,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../testlib/common,
|
||||
../testlib/wakucore
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
../../../waku/v2/waku_filter_v2,
|
||||
../../../waku/v2/waku_filter_v2/rpc,
|
||||
../../../waku/v2/waku_filter_v2/subscriptions,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../testlib/common,
|
||||
../testlib/wakucore
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import
|
|||
libp2p/protocols/pubsub/rpc/messages
|
||||
import
|
||||
../../../waku/v2/node/peer_manager,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_relay,
|
||||
../testlib/common,
|
||||
../testlib/wakucore
|
||||
|
|
|
@ -18,7 +18,7 @@ import
|
|||
libp2p/multihash,
|
||||
secp256k1
|
||||
import
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/utils/peers,
|
||||
../../waku/v2/waku_node,
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
stint,
|
||||
libp2p/crypto/crypto
|
||||
import
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_rln_relay,
|
||||
../../../waku/v2/waku_rln_relay/rln,
|
||||
../../../waku/v2/waku_rln_relay/protocol_metrics,
|
||||
|
|
|
@ -15,7 +15,7 @@ import
|
|||
eth/keys
|
||||
import
|
||||
../../../waku/v2/waku_node,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_rln_relay,
|
||||
../../../waku/v2/waku_keystore,
|
||||
../../../waku/v2/utils/peers,
|
||||
|
|
|
@ -10,7 +10,7 @@ import
|
|||
../../waku/common/sqlite,
|
||||
../../waku/v2/node/message_store/sqlite_store,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_store,
|
||||
./testlib/common,
|
||||
./testlib/switch
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
libp2p/crypto/crypto
|
||||
import
|
||||
../../../waku/v2/node/peer_manager,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_store,
|
||||
../../../waku/v2/waku_store/client,
|
||||
../testlib/common,
|
||||
|
|
|
@ -15,7 +15,7 @@ import
|
|||
import
|
||||
../../../waku/common/sqlite,
|
||||
../../../waku/v2/node/peer_manager,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_archive,
|
||||
../../../waku/v2/waku_archive/driver/sqlite_driver,
|
||||
../../../waku/v2/waku_store,
|
||||
|
|
|
@ -13,7 +13,7 @@ import
|
|||
../../../waku/v2/node/message_cache,
|
||||
../../../waku/v2/node/jsonrpc/filter/handlers as filter_api,
|
||||
../../../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/rpc,
|
||||
../../../waku/v2/waku_filter/client,
|
||||
|
|
|
@ -14,7 +14,7 @@ import
|
|||
../../../waku/v2/waku_node,
|
||||
../../../waku/v2/node/jsonrpc/relay/handlers as relay_api,
|
||||
../../../waku/v2/node/jsonrpc/relay/client as relay_api_client,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_relay,
|
||||
../../../waku/v2/utils/compat,
|
||||
../../../waku/v2/utils/peers,
|
||||
|
|
|
@ -12,7 +12,7 @@ import
|
|||
../../../waku/v2/waku_node,
|
||||
../../../waku/v2/node/jsonrpc/store/handlers as store_api,
|
||||
../../../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/driver/queue_driver,
|
||||
../../../waku/v2/waku_store,
|
||||
|
|
|
@ -17,7 +17,7 @@ import
|
|||
../../waku/v2/node/rest/relay/handlers as relay_api,
|
||||
../../waku/v2/node/rest/relay/client as relay_api_client,
|
||||
../../waku/v2/node/rest/relay/topic_cache,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_relay,
|
||||
../../waku/v2/utils/time,
|
||||
../testlib/wakucore,
|
||||
|
|
|
@ -9,7 +9,7 @@ import
|
|||
../../waku/common/base64,
|
||||
../../waku/v2/node/rest/serdes,
|
||||
../../waku/v2/node/rest/relay/types,
|
||||
../../waku/v2/waku_message
|
||||
../../waku/v2/waku_core
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import
|
|||
../../../waku/v2/node/rest/store/handlers as store_api,
|
||||
../../../waku/v2/node/rest/store/client as store_api_client,
|
||||
../../../waku/v2/node/rest/store/types,
|
||||
../../../waku/v2/waku_message,
|
||||
../../../waku/v2/waku_core,
|
||||
../../../waku/v2/waku_archive,
|
||||
../../../waku/v2/waku_archive/driver/queue_driver,
|
||||
../../../waku/v2/waku_store as waku_store,
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
chronos,
|
||||
libp2p/switch
|
||||
import
|
||||
../../waku/v2/waku_message
|
||||
../../waku/v2/waku_core
|
||||
|
||||
import
|
||||
../../apps/wakubridge/message_compat
|
||||
|
|
|
@ -17,7 +17,7 @@ import
|
|||
eth/keys
|
||||
import
|
||||
../../waku/v1/protocol/waku_protocol,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_node,
|
||||
../../waku/v2/utils/compat,
|
||||
../../waku/v2/utils/peers,
|
||||
|
|
|
@ -22,7 +22,7 @@ import
|
|||
../../apps/wakunode2/wakunode2,
|
||||
../../waku/v2/node/peer_manager,
|
||||
../../waku/v2/waku_node,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/waku_enr,
|
||||
../../waku/v2/waku_discv5,
|
||||
../../waku/v2/waku_dnsdisc,
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
import
|
||||
../../waku/v2/waku_filter/rpc,
|
||||
../../waku/v2/waku_store/rpc,
|
||||
../../waku/v2/waku_message,
|
||||
../../waku/v2/waku_core,
|
||||
../../waku/v2/utils/time,
|
||||
../../waku/v2/waku_node,
|
||||
../../waku/v2/node/waku_payload,
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
std/[os, strutils],
|
||||
json_rpc/rpcclient
|
||||
import
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../../../waku_filter/rpc
|
||||
|
||||
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
chronicles,
|
||||
json_rpc/rpcserver
|
||||
import
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../../../waku_filter,
|
||||
../../../waku_filter/rpc,
|
||||
../../../waku_filter/client,
|
||||
|
|
|
@ -4,7 +4,7 @@ import
|
|||
json_rpc/rpcserver
|
||||
import
|
||||
../../../common/base64,
|
||||
../../waku_message,
|
||||
../../waku_core,
|
||||
../../utils/time
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
std/[os, strutils],
|
||||
json_rpc/rpcclient
|
||||
import
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../../../utils/compat,
|
||||
./types
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
nimcrypto/sysrand
|
||||
import
|
||||
../../../../common/base64,
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../../../waku_relay,
|
||||
../../../utils/compat,
|
||||
../../../utils/time,
|
||||
|
|
|
@ -10,7 +10,7 @@ import
|
|||
chronos,
|
||||
libp2p/protocols/pubsub
|
||||
import
|
||||
../waku_message
|
||||
../waku_core
|
||||
|
||||
logScope:
|
||||
topics = "waku node message_cache"
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
json_serialization/std/options,
|
||||
presto/[route, client, common]
|
||||
import
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../serdes,
|
||||
../responses,
|
||||
./types
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
chronicles
|
||||
import
|
||||
../../../waku_relay,
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../../message_cache
|
||||
|
||||
export message_cache
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
presto/[route, client, common]
|
||||
import
|
||||
../../../../common/base64,
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../serdes
|
||||
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
presto/route
|
||||
import
|
||||
../../../../common/base64,
|
||||
../../../waku_message/topics/content_topic,
|
||||
../../../waku_core,
|
||||
../../../waku_store/common,
|
||||
../../../utils/time,
|
||||
../../waku_node,
|
||||
|
|
|
@ -14,9 +14,7 @@ import
|
|||
../../../waku_store/common as waku_store_common,
|
||||
../../../../common/base64,
|
||||
../../../utils/time,
|
||||
../../../waku_message/topics/content_topic,
|
||||
../../../waku_message/topics/pubsub_topic,
|
||||
../../../waku_message/message,
|
||||
../../../waku_core,
|
||||
../serdes
|
||||
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import
|
|||
libp2p/transports/tcptransport,
|
||||
libp2p/transports/wstransport
|
||||
import
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
../waku_relay,
|
||||
../waku_archive,
|
||||
../waku_store,
|
||||
|
|
|
@ -10,7 +10,7 @@ import
|
|||
eth/keys
|
||||
import
|
||||
../../whisper/whisper_types,
|
||||
../waku_message
|
||||
../waku_core
|
||||
|
||||
export whisper_types, keys, options
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ else:
|
|||
import
|
||||
stew/results
|
||||
import
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
../waku_noise/noise_types,
|
||||
../waku_noise/noise_utils
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import
|
|||
metrics
|
||||
import
|
||||
../utils/time,
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
./common,
|
||||
./archive_metrics,
|
||||
./retention_policy,
|
||||
|
|
|
@ -10,7 +10,7 @@ import
|
|||
nimcrypto/sha2
|
||||
import
|
||||
../utils/time,
|
||||
../waku_message
|
||||
../waku_core
|
||||
|
||||
|
||||
## Waku message digest
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
stew/results
|
||||
import
|
||||
../utils/time,
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
./common
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
stew/byteutils,
|
||||
nimcrypto/sha2
|
||||
import
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../../../utils/time,
|
||||
../../common
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import
|
|||
stew/sorted_set,
|
||||
chronicles
|
||||
import
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../../../utils/time,
|
||||
../../common,
|
||||
../../driver,
|
||||
|
|
|
@ -5,7 +5,7 @@ else:
|
|||
|
||||
|
||||
import
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../../../utils/time,
|
||||
../../common
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import
|
|||
sqlite3_abi
|
||||
import
|
||||
../../../../common/sqlite,
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../../../utils/time,
|
||||
./cursor
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import
|
|||
chronicles
|
||||
import
|
||||
../../../../common/sqlite,
|
||||
../../../waku_message,
|
||||
../../../waku_core,
|
||||
../../../utils/time,
|
||||
../../common,
|
||||
../../driver,
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
import
|
||||
./waku_core/topics,
|
||||
./waku_core/message
|
||||
|
||||
export
|
||||
topics,
|
||||
message
|
|
@ -0,0 +1,9 @@
|
|||
import
|
||||
./message/message,
|
||||
./message/codec,
|
||||
./message/digest
|
||||
|
||||
export
|
||||
message,
|
||||
codec,
|
||||
digest
|
|
@ -9,9 +9,9 @@ else:
|
|||
|
||||
|
||||
import
|
||||
../../common/protobuf,
|
||||
../utils/time,
|
||||
./topics,
|
||||
../../../common/protobuf,
|
||||
../../utils/time,
|
||||
../topics,
|
||||
./message
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ import
|
|||
stew/byteutils,
|
||||
nimcrypto/sha2
|
||||
import
|
||||
./topics,
|
||||
../topics,
|
||||
./message
|
||||
|
||||
|
|
@ -10,8 +10,8 @@ else:
|
|||
|
||||
|
||||
import
|
||||
../utils/time,
|
||||
./topics
|
||||
../../utils/time,
|
||||
../topics
|
||||
|
||||
const
|
||||
MaxMetaAttrLength* = 64 # 64 bytes
|
|
@ -13,7 +13,7 @@ import
|
|||
libp2p/crypto/crypto
|
||||
import
|
||||
../../common/enr,
|
||||
../waku_message
|
||||
../waku_core
|
||||
|
||||
logScope:
|
||||
topics = "waku enr sharding"
|
||||
|
|
|
@ -12,7 +12,7 @@ import
|
|||
bearssl/rand,
|
||||
libp2p/protocols/protocol as libp2p_protocol
|
||||
import
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
../node/peer_manager,
|
||||
../utils/requests,
|
||||
./rpc,
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
libp2p/protocols/protocol,
|
||||
libp2p/crypto/crypto
|
||||
import
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
../node/peer_manager,
|
||||
./rpc,
|
||||
./rpc_codec,
|
||||
|
|
|
@ -6,7 +6,7 @@ else:
|
|||
import
|
||||
std/options
|
||||
import
|
||||
../waku_message
|
||||
../waku_core
|
||||
|
||||
|
||||
type
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
std/options
|
||||
import
|
||||
../../common/protobuf,
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
./rpc
|
||||
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import
|
|||
bearssl/rand
|
||||
import
|
||||
../node/peer_manager,
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
./common,
|
||||
./protocol_metrics,
|
||||
./rpc_codec,
|
||||
|
|
|
@ -13,7 +13,7 @@ import
|
|||
libp2p/protocols/protocol
|
||||
import
|
||||
../node/peer_manager,
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
./common,
|
||||
./protocol_metrics,
|
||||
./rpc_codec,
|
||||
|
|
|
@ -6,7 +6,7 @@ else:
|
|||
import
|
||||
std/options
|
||||
import
|
||||
../waku_message
|
||||
../waku_core
|
||||
|
||||
type
|
||||
FilterSubscribeType* {.pure.} = enum
|
||||
|
|
|
@ -7,7 +7,7 @@ import
|
|||
std/options
|
||||
import
|
||||
../../common/protobuf,
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
./rpc
|
||||
|
||||
const
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
chronicles,
|
||||
libp2p/peerid
|
||||
import
|
||||
../waku_message
|
||||
../waku_core
|
||||
|
||||
logScope:
|
||||
topics = "waku filter subscriptions"
|
||||
|
|
|
@ -13,7 +13,7 @@ import
|
|||
import
|
||||
../node/peer_manager,
|
||||
../utils/requests,
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
./protocol,
|
||||
./protocol_metrics,
|
||||
./rpc,
|
||||
|
|
|
@ -12,7 +12,7 @@ import
|
|||
bearssl/rand
|
||||
import
|
||||
../node/peer_manager,
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
./rpc,
|
||||
./rpc_codec,
|
||||
./protocol_metrics
|
||||
|
|
|
@ -6,7 +6,7 @@ else:
|
|||
import
|
||||
std/options
|
||||
import
|
||||
../waku_message
|
||||
../waku_core
|
||||
|
||||
type
|
||||
PushRequest* = object
|
||||
|
|
|
@ -8,7 +8,7 @@ import
|
|||
std/options
|
||||
import
|
||||
../../common/protobuf,
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
./rpc
|
||||
|
||||
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
import
|
||||
./waku_message/topics,
|
||||
./waku_message/message,
|
||||
./waku_message/codec,
|
||||
./waku_message/digest
|
||||
|
||||
export
|
||||
topics,
|
||||
message,
|
||||
codec,
|
||||
digest
|
|
@ -9,7 +9,7 @@ import
|
|||
eth/p2p/discoveryv5/enr
|
||||
import
|
||||
../node/peer_manager,
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
../waku_discv5,
|
||||
./rpc,
|
||||
./rpc_codec
|
||||
|
|
|
@ -19,7 +19,7 @@ import
|
|||
libp2p/stream/connection,
|
||||
libp2p/switch
|
||||
import
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
./message_id
|
||||
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import
|
|||
|
||||
import
|
||||
./protocol,
|
||||
../waku_message
|
||||
../waku_core
|
||||
|
||||
# Application level message hash
|
||||
proc msgHash*(pubSubTopic: string, msg: WakuMessage): array[32, byte] =
|
||||
|
|
|
@ -10,13 +10,13 @@ import
|
|||
web3,
|
||||
eth/keys
|
||||
import
|
||||
../waku_message,
|
||||
../waku_core,
|
||||
../waku_keystore,
|
||||
../../common/protobuf
|
||||
|
||||
export
|
||||
waku_keystore,
|
||||
waku_message
|
||||
waku_core
|
||||
|
||||
type RlnRelayResult*[T] = Result[T, string]
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue