Franck R
47c5565371
Wait for heartbeat before considering relay peer ready ( #472 )
2022-01-31 15:30:49 +11:00
Franck R
d9248dbc56
Replace waitForConnectedPeer with waitForRemotePeer ( #469 )
2022-01-30 21:56:21 +11:00
Franck R
34e4cbba73
Use websocket instead of tcp in interop tests ( #418 )
2022-01-20 13:00:58 +11:00
Franck R
cba5212872
Upgrade nim-waku to v0.7 ( #417 )
2022-01-19 15:43:45 +11:00
Franck R
96cf24d34e
Allow specifying decryption methods and content topic ( #409 )
2022-01-17 14:11:05 +11:00
F
eb9057fc8f
doc: Remove warnings
2021-12-02 23:51:54 +11:00
Franck Royer
8d469ff842
Enable caller to abort store query
...
If the `callback` function passed to`WakuStore.queryHistory` returns
`true`, then no further pages are retrieved from the store.
2021-10-07 15:33:00 +11:00
Franck Royer
62b30b3f33
Log queried store peer info
2021-10-05 13:36:04 +11:00
Franck Royer
92ee5b060c
doc: Move comments to ensure they appear in generated documentation
2021-10-05 13:36:03 +11:00
Franck Royer
f5a0416efd
Rename to page direction
...
As the direction only affects the page ordering,
not the message ordering in the pages.
2021-10-05 13:36:03 +11:00
Franck Royer
d900945b6d
Add 'node' in test file names that only run on node
2021-09-24 17:09:34 +10:00
Franck Royer
75f605a676
Improve error text
...
To make it clearer what the issue is.
2021-09-02 15:20:44 +10:00
Franck Royer
911ce5bab7
Allow passing decryption keys to WakuStore instance
...
To avoid having to pass them at every `queryHistory` call.
2021-09-02 15:17:40 +10:00
Franck Royer
931a414a3c
Allow passing decryption keys in hex string format
2021-09-02 15:13:50 +10:00
Franck Royer
75352abcac
Promote dedicated symmetric key generation API
...
Using the private key API for symmetric key is confusing.
2021-09-02 15:09:31 +10:00
Franck Royer
5b34da6b5f
Both or neither time parameters must be passed
...
The protocol does not support open-ended time filtering windows. See
https://github.com/status-im/nim-waku/issues/706
2021-08-25 12:14:53 +10:00
Franck Royer
b7693853d2
Added support for startTime and endTime in Store queries
2021-08-20 10:37:58 +10:00
Franck Royer
1d48dc4372
Rename all pubsubTopic occurrences to pubSubTopic
2021-08-20 10:13:02 +10:00
Franck Royer
60290e8d84
Moved DefaultPubSubTopic to waku.ts and fixed the casing
...
The pubsub topic is used by several protocol, not just relay.
2021-08-20 10:12:55 +10:00
Franck Royer
319f44a0b1
WakuStore.queryHistory throws when encountering an error
...
Instead of returning a `null` value.
2021-08-09 12:36:24 +10:00
Franck Royer
b422c9a10b
Move contentTopics out the WakuStore.queryHistory's optional params
2021-08-09 12:36:12 +10:00
Franck Royer
0cfdd34284
Removed DefaultContentTopic
...
As developers must choose a content topic for their app.
The`WakuMessage` APIs have been changed to move `contentTopic` out of
the optional parameters. Recommendations for content topic can be found
at https://rfc.vac.dev/spec/23/ .
2021-07-28 12:03:51 +10:00
Franck Royer
5f7eee394b
Store Response Protobuf change to align with nim-waku
...
status-im/nim-waku#676
2021-07-26 11:35:08 +10:00
Franck Royer
be007f4839
Ensure there is no infinite loop on error
2021-07-21 15:44:00 +10:00
Franck Royer
0b3f1a33c2
test: Symmetric encryption with waku store
2021-07-15 12:26:05 +10:00
Franck Royer
44efd28ac1
Update terminology and docs to cater for both sym and asym encryption
2021-07-15 12:25:47 +10:00
Franck Royer
e443237a81
Remove local type definitions for Karma to not return "not found"
2021-07-14 12:25:23 +10:00
Franck Royer
0e9c482a19
Enable decryption of messages retrieve via WakuStore.queryHistory
2021-07-12 13:15:19 +10:00
Franck Royer
d68ee3fb74
New peers and randomPeer methods to return available peers
2021-07-12 13:15:19 +10:00
Franck Royer
34e6ac5247
Add version 1 support to WakuMessage
2021-07-09 15:50:15 +10:00
Franck Royer
939b5fb20a
Auto select peer if none provided for store and light push protocols
2021-06-16 23:51:20 +10:00
Franck Royer
5ce0717f05
Enable passing a custom pubsub topic
...
Note that we currently only support one, and only one, pubsub topic for
a given instance across the codebase. The PubSub topic needs to be set
when instantiating the Waku* classes.
At this stage, we believe that most DApp will use, and only use, the
default PubSub topic. Some application want to use an alternative topic
but not use the default one so this behaviour should be fine. See #174
for details.
2021-06-09 15:00:03 +10:00
Franck Royer
f0f14f9995
Rename type before introducing CreateOptions
2021-06-09 15:00:03 +10:00
Franck Royer
f17a008278
Separate the libp2p create options from Waku's
2021-06-09 15:00:02 +10:00
Franck Royer
fb7e9f2b9e
Get messages from store in chronological order
2021-05-19 12:29:29 +10:00
Franck Royer
243b6629c3
Add callback option to store query
2021-05-17 16:32:34 +10:00
Franck Royer
4b6fe84392
Use one object as we are increasing the number of parameters
2021-05-17 16:32:33 +10:00
Franck Royer
eb9955314c
Align terminology with specs
...
In specs, this is referenced as a `pubsubTopic`.
2021-05-13 20:48:30 +10:00
Franck Royer
40fd7ff365
Use Typedoc comment style
2021-05-11 09:06:22 +10:00
Franck Royer
3663ce260d
Rework exports for an easy use of the library
2021-05-10 16:41:58 +10:00
Franck Royer
ace5f2776f
Prefer camel case for module constants
2021-05-10 12:38:44 +10:00
Franck Royer
21414ad55e
Upgrade nim-waku to latest version
2021-05-07 11:30:36 +10:00
Franck Royer
d19be03862
Ensure that rpc call to send messages is successful
2021-05-07 11:30:35 +10:00
Franck Royer
775a288a5c
Log more around usage of waku store
2021-05-07 10:41:38 +10:00
Franck Royer
0ff0e6ee7b
Clean up WakuMessage API
2021-05-03 16:26:02 +10:00
Franck Royer
1016e85f70
Enable pubsub topic filter in history queries
...
Resolves #78
2021-04-29 16:52:55 +10:00
Franck Royer
ee6226bd32
Update waku store as per the latest spec
2021-04-20 15:38:40 +10:00
Franck Royer
9a305033bc
Use peerStore event to determine if identify is done
2021-04-15 14:44:35 +10:00
Franck Royer
503157401e
Allow passing transports, enable websocket transport
2021-04-15 13:56:07 +10:00
Franck Royer
4b31a6aaba
Wait for identify protocol to finish when dialing
...
Removes most `delay()`.
2021-04-13 22:43:13 +10:00