js-waku/packages/sdk
Danish Arora 124a29ebba
feat(static-sharding): filter peer connections per shards (#1626)
* add interface for `ShardInfo`

* enr: add deserialization logic & setup getters

* add sharding related utils

* utils: add shard<-> bytes conversion helpers

* pass `pubSubTopics` to `Waku`

* add `rs`/`rsv` details during discovery

* connection-manager: discard irrelevant peers

* add tests for static sharding - peer exchange

* update `ConnectionManager` tests to account for topic validity

* add js suffix to import

* address some comments

* move shardInfo encoding to ENR

* test: update for new API

* enr: add tests for serialisation & deserialisation

* address comment

* update test

* move getPeershardInfo to ConnectionManager and return ShardInfo instead of bytes

* update encoding and decoding relay shards to also factor for shards>64

* relay shard encoding decoding: use DataView and verbose spec tests

* improve tests for relay shard encoding decoding

* rm: only

* improve log message for unconfigured pubsub topic

* minor improvement

* fix: buffer <> Uint8array problems with shard decoding

* fix: test

* rm: only
2023-10-10 20:18:02 +05:30
..
src feat(static-sharding): filter peer connections per shards (#1626) 2023-10-10 20:18:02 +05:30
.eslintrc.cjs chore: upgrade libp2p and related deps (#1482) 2023-08-16 20:18:13 +05:30
CHANGELOG.md chore: release master (#1558) 2023-09-11 13:27:24 +02:00
package.json chore(deps)(deps): bump libp2p from 0.46.11 to 0.46.12 (#1630) 2023-10-02 22:11:49 +05:30
rollup.config.js chore: upgrade libp2p and related deps (#1482) 2023-08-16 20:18:13 +05:30
tsconfig.dev.json feat!: rename package from @waku/create to @waku/sdk (#1386) 2023-06-05 13:40:13 +02:00
tsconfig.json feat!: rename package from @waku/create to @waku/sdk (#1386) 2023-06-05 13:40:13 +02:00
typedoc.json chore: update typescript (#1528) 2023-09-21 10:57:37 +02:00