102 Commits

Author SHA1 Message Date
fryorcraken.eth
69aee6c1cc
refactor: move createWaku to own module 2022-08-07 12:03:04 +10:00
Franck Royer
98d14e08b0
feat!: Do not start libp2p automatically with createWaku
Reduce the number of actions `createWaku` does.
2022-08-03 09:30:39 +10:00
Franck Royer
e119fc46d6
fix: pass bootstrap to libp2p instance 2022-08-03 09:30:38 +10:00
Franck Royer
8922511cc9
fix: pass pubsub topic when creating waku filter 2022-08-03 09:30:38 +10:00
Franck Royer
ba1c7b86ea
fix: Use libp2p options passed to createWaku 2022-08-03 09:30:37 +10:00
Franck Royer
811685e041
refactor!: Move waitForRemotePeer to own file 2022-08-03 09:30:36 +10:00
Franck Royer
4eeca93d47
chore: bump libp2p to next (0.38.0 rc) 2022-08-03 09:30:36 +10:00
Franck Royer
f3833564f2
fix: Remove event listener once done 2022-07-28 10:43:37 +10:00
Franck Royer
52616fb912
fix: move to usage of log 2022-07-20 12:44:48 +10:00
Franck Royer
d609b9c47b
fix: usage of libp2p and undefined options 2022-07-20 12:44:48 +10:00
Franck Royer
ab9919ba6d
fix: Imports paths
Import paths were not valid.
2022-07-20 12:44:47 +10:00
Franck Royer
9e27a0082e
Sort out ENR key generation, upgrade to @libp2p/crypto 2022-07-20 12:44:44 +10:00
Franck Royer
dcb3a65a5b
No more tsc error on prod code 2022-07-20 12:44:07 +10:00
Franck Royer
5d8ab6cf82
Sort ping 2022-07-20 12:43:42 +10:00
Franck Royer
e0a23bad44
Sort out createWaku and waitForRemotePeer 2022-07-20 12:43:42 +10:00
Franck Royer
4cf197e54d
Implement libp2p bootstrap interface 2022-07-20 12:43:40 +10:00
Franck Royer
8e5318dc4a
Upgrade libp2p-gossipsub 2022-07-20 12:42:24 +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
6c30e8d400
Use PeerId.toString() instead of toB58String()
New version of `PeerId` will only support `toString`
2022-07-20 11:55:43 +10:00
Franck Royer
9ffedd1fbf
Remove circular dependencies 2022-06-01 12:14:47 +10:00
status-bors-ng[bot]
6df972694c
Merge #767
767: Clear all timers on `Waku.stop` r=D4nte a=felicio

Resolves https://github.com/status-im/js-waku/issues/766

Co-authored-by: Felicio Mununga <felicio@users.noreply.github.com>
2022-05-30 07:25:17 +00:00
Felicio Mununga
59bb9257c6
remove notes 2022-05-29 17:48:22 +02:00
Felicio Mununga
598a6a120e
add note 2022-05-29 17:41:55 +02:00
Felicio Mununga
3d67946fb0
move clearing to func 2022-05-29 17:39:51 +02:00
Felicio Mununga
606a2da96c
remove static props used for instance state 2022-05-29 15:01:36 +02:00
Felicio Mununga
911ce4a836
fix typo 2022-05-29 14:50:30 +02:00
Felicio Mununga
0ecd44aa0a
clear timers on stop 2022-05-29 13:46:12 +02:00
Franck Royer
e3015abce9
Add filter to dial 2022-05-27 20:37:15 +10:00
Nicholas Molnar
8aa966c2f6
Consolidate imports 2022-05-27 20:37:15 +10:00
Nicholas Molnar
c77b74c10c
Add/delete decryption keys 2022-05-27 20:37:14 +10:00
Nicholas Molnar
4734e4b7c7
Finish implementation 2022-05-27 20:37:14 +10:00
Franck Royer
aad678a708
Add a timeout to waitForRemotePeer 2022-05-19 16:04:38 +10:00
Franck Royer
06930c15dc
Remove unneeded variable 2022-05-19 16:04:06 +10:00
Franck Royer
d9940f4d9b
Simplify async iterator usage
The iterator will return only once there is a first item available.
Hence, there is no need to add an observer on `change:protocols` event.
2022-05-19 16:04:06 +10:00
Franck Royer
4b43db6daa
Change default to wait for Relay only
Store is not used by all applications, also, note all
nodes have store enabled.
Default value should prefer working software over feature complexity.
2022-05-19 16:04:04 +10:00
Franck Royer
277e11f781
Remove unneeded path from libp2p-noise import 2022-04-06 13:41:15 +10:00
Franck R
a488988f37
Implement Waku Store 2.0.0-beta4 (#566) 2022-02-24 16:25:58 +11:00
Franck R
3a4e98e184
Remove unnecessary use of Buffer (#548) 2022-02-17 13:23:39 +11:00
Franck R
64657a250f
Replace rlp with ethers' rlp (#526) 2022-02-16 14:08:48 +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
0f678750df
Improve docs (#519) 2022-02-11 17:27:15 +11:00
Franck R
4c80f7f0df
Remove odd prettier config (#500) 2022-02-04 14:12:00 +11:00
Franck R
69f0005445
Bump libp2p from 0.32.4 to 0.36.2, libp2p-gossipsub from 0.12.1 to 0.13.0 (#470)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 15:12:08 +11:00
Franck R
47c5565371
Wait for heartbeat before considering relay peer ready (#472) 2022-01-31 15:30:49 +11:00
Franck R
03491a892b
Fix waitForRemotePeer & test behaviour (#471) 2022-01-31 10:30:25 +11:00
Franck R
d9248dbc56
Replace waitForConnectedPeer with waitForRemotePeer (#469) 2022-01-30 21:56:21 +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
Franck Royer
fa4e94750f
Make parseBootstrap a class
Makes it easier to use the resulting function and document defaults.
2022-01-13 16:40:10 +11:00
Franck Royer
f0eb9d1609
Rename libp2p bootstrap import
To avoid name conflict.
2022-01-13 16:39:52 +11:00