fryorcraken.eth
889ec4d45c
feat: split bootstrap logic
...
Split the bootstrap logic in 2 different classes that implement the
libp2p peer discovery class.
This enables better tree shaking when not using the heaviest version
(DNS Discovery).
It also means using libp2p interface directly when customizing the peer
discovery logic.
Finally, the `default` method is still available via the
`defaultBootstrap` option.
2022-08-07 12:03:05 +10:00
fryorcraken.eth
69aee6c1cc
refactor: move createWaku to own module
2022-08-07 12:03:04 +10:00
Franck Royer
9e27a0082e
Sort out ENR key generation, upgrade to @libp2p/crypto
2022-07-20 12:44:44 +10:00
Franck Royer
98c93c8283
Upgrade libp2p, peer-id, multiaddr
...
Use new packages and fix most compilation errors.
Remaining error to be dealt with in waku.ts.
2022-07-20 12:40:37 +10:00
Franck Royer
4352cb923d
Replace karma-env-preproc with webpack
2022-06-20 14:32:20 +10:00
Franck R
297d65ce03
Reduce Buffer usage in ENR module ( #522 )
2022-02-16 12:11:54 +11:00
Franck R
160fea0e7b
Waku.dial accepts protocols expected from the peer. Defaults to Waku Relay only. (#516 )
2022-02-13 19:04:50 +11:00
Franck R
4c80f7f0df
Remove odd prettier config ( #500 )
2022-02-04 14:12:00 +11:00
Franck R
91d6e436d4
Do not run bootstrap live data test as part of normal CI ( #468 )
2022-02-03 16:58:53 +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
2eb88068ae
Test default discovery as part of the CI
2021-09-21 14:47:45 +10:00
Franck Royer
cfb97b6bde
Allow passing decryption keys to Waku instance
...
Keys can be set at creation or at run time.
They are passed to `WakuStore` and `WakuRelay` instances.
2021-09-02 15:20:43 +10:00
Franck Royer
140791cc91
Provide easy way to bootstrap when creating Waku node
2021-08-13 16:18:00 +10:00
Franck Royer
355b8414d8
Separate shutdown process to pinpoint CI failure
2021-08-09 12:27:52 +10:00
Franck Royer
c4d0501c6a
nim-waku v0.5 uses new waku relay protocol id
2021-07-26 11:35:08 +10:00
Franck Royer
92a76b3be0
Support multiple protocol id for relay
...
Support id of latest nim-waku release 0.4 and current master.
2021-07-21 15:43:30 +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
70058f0e36
Split browser and node tests
2021-07-14 11:56:48 +10:00
Franck Royer
8cecfc205b
Use plain websocket in tests
...
Thanks to the libp2p upgrade, waku actually tries to listen to a
secure websocket. Using plain websocket for now, testing secure
websocket is tracked with #50 .
2021-06-22 14:11:38 +10:00
Franck Royer
f17a008278
Separate the libp2p create options from Waku's
2021-06-09 15:00:02 +10:00
Franck Royer
3663ce260d
Rework exports for an easy use of the library
2021-05-10 16:41:58 +10:00
Franck Royer
503157401e
Allow passing transports, enable websocket transport
2021-04-15 13:56:07 +10:00
Franck Royer
79a9520348
Test cleanup
2021-04-09 16:05:43 +10:00
Franck Royer
ff8e96b60c
Clean up imports
2021-04-01 18:27:15 +11:00
Franck Royer
433a490dec
Move waku relay codec and default topic to constants module
2021-04-01 16:41:49 +11:00
Franck Royer
c3cf6462cc
Pass listening addresses as argument
2021-04-01 11:01:14 +11:00
Franck Royer
ee0c63eba3
Improve helper function for log name
2021-03-25 15:49:07 +11:00
Franck Royer
2486071708
Reduce entropy usage in tests
...
When playing around with tests frameworks, it was noticed that noise
was using entropy that lead to handles remaining open at the end of the
test run.
2021-03-22 22:25:13 +11:00
Franck Royer
d1e8ba2c6e
Finish conversion to mocha
2021-03-22 16:02:10 +11:00
Franck Royer
090b064c84
Kill nim-waku & js-libp2p nodes after tests
2021-03-22 14:24:01 +11:00
Franck Royer
13e941513d
Reorg tests, add describe sections
2021-03-19 15:55:38 +11:00
Franck Royer
7d595b0c8f
Move waku relay tests in dedicated file
2021-03-19 15:55:38 +11:00
Franck Royer
39332808d5
Improve API by using composition
2021-03-19 14:40:16 +11:00