Commit Graph

341 Commits

Author SHA1 Message Date
Franck Royer 277e11f781
Remove unneeded path from libp2p-noise import 2022-04-06 13:41:15 +10:00
Franck Royer f953a41546
Declare it-pipe dependency, properly import
As it was implicitly using it-pipe@1.0.0 that has a different import
format.
2022-04-06 13:41:15 +10:00
Franck 2511b7daec
Nwaku v0.9 is taking more time to start-up 2022-04-06 12:39:18 +10:00
Franck dc90279905
Rename nim-waku to nwaku 2022-04-06 12:39:18 +10:00
Franck Royer dc6d37a94e
test: Only use timestamps in the past for a more realistic test 2022-04-06 12:39:18 +10:00
Franck Royer d95d773f45
Send nanoseconds timestamp in nim-waku RPC 2022-04-06 12:39:18 +10:00
Franck Royer c07396c30b
Update nwaku RPC with nanoseconds timestamp 2022-04-06 12:39:18 +10:00
Franck Royer 49998c02bd
Ensure Uint8Array is passed to utf-8 conversion function
Proto unexpectedly returns an `Array<number>`.
2022-03-25 17:08:03 +11:00
Franck Royer 52009b7be9
Use `concat` to simplify code 2022-03-25 17:08:03 +11:00
Franck Royer bf63e85e9e
Move utf-8 utils to `utils` 2022-03-25 17:08:03 +11:00
Franck Royer 638b96c17d
Replace custom utf-8 convert implementations with `uint8arrays` 2022-03-25 17:08:03 +11:00
Franck Royer 6ef0550433
Replace custom utf-8 convert implementations with `uint8arrays` 2022-03-25 17:08:03 +11:00
Franck Royer 33e6c3fe39
Replace custom hex implementations with `uint8arrays` 2022-03-25 17:08:02 +11:00
Franck Royer a915acfcda
Remove deprecated utils functions 2022-03-25 17:08:02 +11:00
Franck Royer c4d779d1db
Remove `equalByteArrays` 2022-03-25 17:08:02 +11:00
Franck Royer d0dea3884b
Replace Base 64 buggy conversion functions with `uint8arrays` 2022-03-25 11:02:40 +11:00
Dylan Oliver 9cf2924f7b
check presence of window before using it and appease ts types 2022-03-18 14:41:32 +11:00
Franck R c806135810
Revert "Use `BigInt` constructor instead of happening `n` as it seems to have better browser support. (#611)" (#613)
This reverts commit f4e81dd29c.
2022-03-13 20:33:47 +11:00
Franck R f4e81dd29c
Use `BigInt` constructor instead of happening `n` as it seems to have better browser support. (#611) 2022-03-13 10:11:04 +11:00
Franck R b904114d1f
Export protocols (#609) 2022-03-10 14:00:09 +11:00
Franck R ed23332965
Allow passing multiaddr to `bootstrap.peers` (#608) 2022-03-09 18:38:28 +11:00
Franck R e649f772a7
`WakuMessage.timestamp` field must use nanoseconds (#606) 2022-03-09 12:00:02 +11:00
Franck R 2798376776
Remove ecies-geth (#598)
* test: specify encryption method

Makes debugging easier.

* Fix log typo

* Remove ecies-geth

Start removal of elliptic dependency and move towards exclusive usage to
CryptoSubtle.
2022-03-06 23:20:59 +11:00
Franck R ad5b3ddc7f
New `pubsub_topic` field on the `cursor` of Waku Store queries (#596) 2022-03-04 16:47:23 +11:00
Franck Royer f73afc5244
Handle errors thrown when converting to utf-8 2022-03-01 16:58:15 +11: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 297d65ce03
Reduce Buffer usage in ENR module (#522) 2022-02-16 12:11:54 +11:00
Franck R 146c67e43e
Predefine bootstrap node (#528) 2022-02-16 11:43:57 +11:00
Franck R cfc5eee4ff
Reduce buffer usage (#521) 2022-02-14 10:50:02 +11:00
Franck R 2dc8764be2
Remove axios (#520) 2022-02-14 09:26:22 +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 91d6e436d4
Do not run bootstrap live data test as part of normal CI (#468) 2022-02-03 16:58:53 +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 b257885204
test: Fix flackiness (#474) 2022-02-01 12:54:54 +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 f44d700c11
Do not run bootstrap live data test as part of normal CI (#450) 2022-01-27 21:50:27 +11:00
Franck R 6cb2b6615b
Update to latest typescript (#438) 2022-01-27 15:25:17 +11:00
Franck R e0949dab04
Pass truly async function to `getPeers`, remove TODO (#428)
* Pass truly async function to `getPeers`

* Confirmed nim-waku's RPC API only returned managed peers
2022-01-24 18:46:06 +11:00
Franck R 199a3c7218
Ensure relay peers are available before starting the test (#431) 2022-01-24 14:41:45 +11:00
Franck R c31972de02
Reorganize tests to ensure they all display under a section (#421) 2022-01-24 11:00:41 +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 e1629b1a96
Fix DNS Discovery (#411) 2022-01-17 14:21:23 +11:00
Franck R 96cf24d34e
Allow specifying decryption methods and content topic (#409) 2022-01-17 14:11:05 +11:00