Commit Graph

316 Commits

Author SHA1 Message Date
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
Franck Royer 2c16f0befb
Separate tests that use DNS data in CI 2022-01-14 12:44:06 +11:00
Franck Royer b65ab17cb9
Expose types to ensure documentation is complete 2022-01-13 16:40:11 +11:00
Franck Royer 6276b1537f
Remove unnecessary declaration of Buffer
It's handled by the polyfill config in webpack.
2022-01-13 16:40:10 +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 ae0faa2146
Clarify default DNS servers 2022-01-13 16:39:52 +11:00
Franck Royer f0eb9d1609
Rename libp2p bootstrap import
To avoid name conflict.
2022-01-13 16:39:52 +11:00
Franck Royer e871da056f
Export enr, dns, entree modules 2022-01-13 16:39:52 +11:00
Franck Royer 4bfe060064
Export BootstrapOptions 2022-01-13 16:39:52 +11:00
Franck Royer 284644b822
Fix-up new bootstrap API 2022-01-13 16:39:52 +11:00
Franck Royer e47335f4c0
Implement DNS Discovery and ENR tree 2022-01-13 15:38:22 +11:00
Franck Royer e244bae03d
Renamed `getBootstrapNodes` to `getNodesFromHostedJson`
So that the name better matches the function's behaviour.
2022-01-13 15:33:37 +11:00
Franck Royer f4f6b4a808
Create discovery submodule 2022-01-12 14:54:00 +11:00
dependabot[bot] 7adb51a9cc
Bump ts-proto from 1.97.0 to 1.100.0
Bumps [ts-proto](https://github.com/stephenh/ts-proto) from 1.97.0 to 1.100.0.
- [Release notes](https://github.com/stephenh/ts-proto/releases)
- [Changelog](https://github.com/stephenh/ts-proto/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stephenh/ts-proto/compare/v1.97.0...v1.100.0)

---
updated-dependencies:
- dependency-name: ts-proto
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 15:31:46 +11:00
Franck 06d89418aa
Format change 2022-01-05 11:27:37 +11:00
Franck 8000afbc72
typo 2022-01-04 17:33:04 +11:00
Franck fa3ab19176
Generate proto files withts-protoa 1.97.0 2022-01-03 10:56:37 +11:00
Franck 7a3e46a384
Add encoded value for reference for other implementations 2021-12-07 09:16:32 +11:00
Franck eb1b384be4
Remove console.log 2021-12-06 14:32:18 +11:00
F 01c66f7e89
Add ENR with multiaddr
Imported from https://github.com/D4nte/discv5/pull/1
Replaced bcrypto backend with secp256k1.
2021-12-06 14:29:08 +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 6f4d765e30
Remove useless log 2021-10-05 13:36:04 +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