@waku/interfaces 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/connection_manager.d.ts +7 -2
- package/dist/connection_manager.js.map +1 -1
- package/dist/dns_discovery.d.ts +42 -0
- package/dist/dns_discovery.js +2 -0
- package/dist/dns_discovery.js.map +1 -0
- package/dist/enr.d.ts +2 -2
- package/dist/filter.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/keep_alive_manager.d.ts +4 -0
- package/dist/keep_alive_manager.js +2 -0
- package/dist/keep_alive_manager.js.map +1 -0
- package/dist/libp2p.d.ts +1 -1
- package/dist/peer_exchange.d.ts +3 -3
- package/dist/protocols.d.ts +4 -10
- package/dist/protocols.js.map +1 -1
- package/dist/receiver.d.ts +3 -3
- package/dist/relay.d.ts +8 -2
- package/dist/sender.d.ts +2 -2
- package/dist/store.d.ts +4 -4
- package/dist/waku.d.ts +4 -2
- package/package.json +4 -12
- package/src/connection_manager.ts +11 -4
- package/src/dns_discovery.ts +47 -0
- package/src/enr.ts +2 -2
- package/src/filter.ts +1 -1
- package/src/index.ts +2 -0
- package/src/keep_alive_manager.ts +4 -0
- package/src/libp2p.ts +1 -1
- package/src/peer_exchange.ts +3 -3
- package/src/protocols.ts +6 -13
- package/src/receiver.ts +3 -5
- package/src/relay.ts +8 -1
- package/src/sender.ts +2 -6
- package/src/store.ts +5 -5
- package/src/waku.ts +5 -2
package/CHANGELOG.md
CHANGED
@@ -5,6 +5,45 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The file is maintained by [Release Please](https://github.com/googleapis/release-please) based on [Conventional Commits](https://www.conventionalcommits.org) specification,
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.0.18](https://github.com/waku-org/js-waku/compare/interfaces-v0.0.17...interfaces-v0.0.18) (2023-09-11)
|
9
|
+
|
10
|
+
|
11
|
+
### ⚠ BREAKING CHANGES
|
12
|
+
|
13
|
+
* set peer-exchange with default bootstrap ([#1469](https://github.com/waku-org/js-waku/issues/1469))
|
14
|
+
* refactor store protocol for readability ([#1456](https://github.com/waku-org/js-waku/issues/1456))
|
15
|
+
* remove filter v1 ([#1433](https://github.com/waku-org/js-waku/issues/1433))
|
16
|
+
* upgrade to libp2p@0.45 ([#1400](https://github.com/waku-org/js-waku/issues/1400))
|
17
|
+
* filter v2 ([#1332](https://github.com/waku-org/js-waku/issues/1332))
|
18
|
+
* add and implement IReceiver ([#1219](https://github.com/waku-org/js-waku/issues/1219))
|
19
|
+
|
20
|
+
### Features
|
21
|
+
|
22
|
+
* Add 1MB restriction to LightPush and Relay ([#1351](https://github.com/waku-org/js-waku/issues/1351)) ([72f97d4](https://github.com/waku-org/js-waku/commit/72f97d4545512f92936b1a9b50fa0b53f8603f9d))
|
23
|
+
* Add and implement IReceiver ([#1219](https://github.com/waku-org/js-waku/issues/1219)) ([e11e5b4](https://github.com/waku-org/js-waku/commit/e11e5b4870aede7813b3ee4b60f5e625f6eac5a2))
|
24
|
+
* Allow passing of multiple ENR URLs to DNS Discovery & dial multiple peers in parallel ([#1379](https://github.com/waku-org/js-waku/issues/1379)) ([f32d7d9](https://github.com/waku-org/js-waku/commit/f32d7d9fe0b930b4fa9c46b8644e6d21be45d5c1))
|
25
|
+
* ConnectionManager extends EventEmitter & exposed on the Waku interface (& minor improvements) ([#1447](https://github.com/waku-org/js-waku/issues/1447)) ([0b8936f](https://github.com/waku-org/js-waku/commit/0b8936f1f1ad33f6cb90eb88d027a19e787ae7a2))
|
26
|
+
* **dns-discovery:** Set default for `NodeRequirements` ([#1466](https://github.com/waku-org/js-waku/issues/1466)) ([aab9c08](https://github.com/waku-org/js-waku/commit/aab9c08caefb9f72460261ec0c38df88ae0f02ce))
|
27
|
+
* Enable event emission for peer discovery/connection in ConnectionManager ([#1438](https://github.com/waku-org/js-waku/issues/1438)) ([6ce898d](https://github.com/waku-org/js-waku/commit/6ce898d77132f30b5d8f33b48c7f6276992a486e))
|
28
|
+
* Expose `meta` on `IDecodedMessage` ([5724bb2](https://github.com/waku-org/js-waku/commit/5724bb2b21367e4e397acbc5530b3a2bf315194e))
|
29
|
+
* Filter v2 ([#1332](https://github.com/waku-org/js-waku/issues/1332)) ([8d0e647](https://github.com/waku-org/js-waku/commit/8d0e64796695fbafad0a033552eb4412bdff3d78))
|
30
|
+
* Set peer-exchange with default bootstrap ([#1469](https://github.com/waku-org/js-waku/issues/1469)) ([81a52a8](https://github.com/waku-org/js-waku/commit/81a52a8097ba948783c9d798ba362af0f27e1c10))
|
31
|
+
* ToSubscriptionIterator impl for IReceiver ([#1307](https://github.com/waku-org/js-waku/issues/1307)) ([7daa9d0](https://github.com/waku-org/js-waku/commit/7daa9d05bf44b33296b56df214f5d5901887a129))
|
32
|
+
* Upgrade to libp2p@0.45 ([#1400](https://github.com/waku-org/js-waku/issues/1400)) ([420e6c6](https://github.com/waku-org/js-waku/commit/420e6c698dd8f44d40d34e47d876da5d2e1ce85e))
|
33
|
+
|
34
|
+
|
35
|
+
### Miscellaneous Chores
|
36
|
+
|
37
|
+
* Refactor store protocol for readability ([#1456](https://github.com/waku-org/js-waku/issues/1456)) ([2389977](https://github.com/waku-org/js-waku/commit/2389977a9840281dff4008c015fe76451c0f0df5))
|
38
|
+
* Remove filter v1 ([#1433](https://github.com/waku-org/js-waku/issues/1433)) ([d483644](https://github.com/waku-org/js-waku/commit/d483644a4bb4350df380719b9bcfbdd0b1439482))
|
39
|
+
|
40
|
+
## [0.0.17](https://github.com/waku-org/js-waku/compare/interfaces-v0.0.16...interfaces-v0.0.17) (2023-08-02)
|
41
|
+
|
42
|
+
|
43
|
+
### Features
|
44
|
+
|
45
|
+
* ConnectionManager extends EventEmitter & exposed on the Waku interface (& minor improvements) ([#1447](https://github.com/waku-org/js-waku/issues/1447)) ([0b8936f](https://github.com/waku-org/js-waku/commit/0b8936f1f1ad33f6cb90eb88d027a19e787ae7a2))
|
46
|
+
|
8
47
|
## [0.0.16](https://github.com/waku-org/js-waku/compare/interfaces-v0.0.15...interfaces-v0.0.16) (2023-07-26)
|
9
48
|
|
10
49
|
|
@@ -0,0 +1 @@
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@libp2p/interface/node_modules/multiformats/dist/types/src/hashes/interface.d.ts","../../../node_modules/@libp2p/interface/node_modules/multiformats/dist/types/src/bases/interface.d.ts","../../../node_modules/@libp2p/interface/node_modules/multiformats/dist/types/src/block/interface.d.ts","../../../node_modules/@libp2p/interface/node_modules/multiformats/dist/types/src/link/interface.d.ts","../../../node_modules/@libp2p/interface/node_modules/multiformats/dist/types/src/cid.d.ts","../../../node_modules/@libp2p/interface/dist/src/peer-id/index.d.ts","../../../node_modules/@multiformats/multiaddr/dist/src/protocols-table.d.ts","../../../node_modules/@multiformats/multiaddr/dist/src/filter/multiaddr-filter.d.ts","../../../node_modules/@multiformats/multiaddr/dist/src/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/peer-store/index.d.ts","../../../node_modules/@libp2p/interfaces/dist/src/events.d.ts","../src/connection_manager.ts","../src/dns_discovery.ts","../../../node_modules/@libp2p/interface/dist/src/peer-info/index.d.ts","../src/enr.ts","../src/message.ts","../src/misc.ts","../../../node_modules/@libp2p/interface/node_modules/it-stream-types/dist/src/index.d.ts","../../../node_modules/uint8arraylist/dist/src/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/connection/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/content-routing/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/events.d.ts","../../../node_modules/@libp2p/interface/dist/src/keys/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/keychain/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/metrics/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/peer-routing/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/startable.d.ts","../../../node_modules/@libp2p/interface/dist/src/stream-handler/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/topology/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/stream-muxer/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/transport/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/index.d.ts","../../../node_modules/@libp2p/interface-internal/dist/src/transport-manager/index.d.ts","../../../node_modules/libp2p/dist/src/address-manager/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/connection-gater/index.d.ts","../../../node_modules/@libp2p/interface-internal/dist/src/address-manager/index.d.ts","../../../node_modules/@libp2p/peer-collections/dist/src/map.d.ts","../../../node_modules/@libp2p/peer-collections/dist/src/set.d.ts","../../../node_modules/@libp2p/peer-collections/dist/src/list.d.ts","../../../node_modules/@libp2p/peer-collections/dist/src/index.d.ts","../../../node_modules/@libp2p/interface-internal/dist/src/connection-manager/index.d.ts","../../../node_modules/@libp2p/interface-internal/dist/src/registrar/index.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/bases/interface.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/hashes/interface.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/block/interface.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/codecs/interface.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/link/interface.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/interface.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/cid.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/hashes/digest.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/hashes/hasher.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/varint.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/bytes.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/index.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/codecs/raw.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/codecs/json.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/bases/base.d.ts","../../../node_modules/uint8arrays/node_modules/multiformats/dist/types/src/basics.d.ts","../../../node_modules/uint8arrays/dist/src/util/bases.d.ts","../../../node_modules/uint8arrays/dist/src/to-string.d.ts","../../../node_modules/interface-datastore/dist/src/key.d.ts","../../../node_modules/interface-store/dist/src/index.d.ts","../../../node_modules/interface-datastore/dist/src/index.d.ts","../../../node_modules/libp2p/dist/src/components.d.ts","../../../node_modules/libp2p/dist/src/connection-manager/auto-dial.d.ts","../../../node_modules/libp2p/dist/src/connection-manager/connection-pruner.d.ts","../../../node_modules/eventemitter3/index.d.ts","../../../node_modules/p-queue/dist/queue.d.ts","../../../node_modules/p-queue/dist/options.d.ts","../../../node_modules/p-queue/dist/priority-queue.d.ts","../../../node_modules/p-queue/dist/index.d.ts","../../../node_modules/libp2p/dist/src/connection-manager/dial-queue.d.ts","../../../node_modules/libp2p/dist/src/connection-manager/index.d.ts","../../../node_modules/libp2p/dist/src/transport-manager.d.ts","../../../node_modules/@libp2p/interface/dist/src/connection-encrypter/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/peer-discovery/index.d.ts","../../../node_modules/@libp2p/keychain/dist/src/index.d.ts","../../../node_modules/@libp2p/peer-store/dist/src/index.d.ts","../../../node_modules/libp2p/dist/src/index.d.ts","../src/protocols.ts","../src/receiver.ts","../src/filter.ts","../src/sender.ts","../src/light_push.ts","../src/peer_exchange.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/node_modules/@libp2p/logger/dist/src/index.d.ts","../../../node_modules/protobufjs/index.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/message/rpc.d.ts","../../../node_modules/it-pushable/dist/src/index.d.ts","../../../node_modules/@libp2p/interface/dist/src/pubsub/index.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/types.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/message-cache.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/peer-score-params.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/peer-score-thresholds.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/peer-stats.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/compute-score.d.ts","../../../node_modules/denque/index.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/message-deliveries.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/metrics.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/utils/set.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/peer-score.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/score/index.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/tracer.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/config.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/stream.d.ts","../../../node_modules/protobufjs/minimal.d.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/message/decodeRpc.ts","../../../node_modules/@chainsafe/libp2p-gossipsub/dist/src/index.d.ts","../src/relay.ts","../src/store.ts","../../../node_modules/protons-runtime/dist/src/codec.d.ts","../../../node_modules/protons-runtime/dist/src/decode.d.ts","../../../node_modules/protons-runtime/dist/src/encode.d.ts","../../../node_modules/protons-runtime/dist/src/codecs/enum.d.ts","../../../node_modules/protons-runtime/dist/src/codecs/message.d.ts","../../../node_modules/protons-runtime/dist/src/utils.d.ts","../../../node_modules/protons-runtime/dist/src/index.d.ts","../../../node_modules/libp2p/dist/src/identify/pb/message.d.ts","../../../node_modules/libp2p/dist/src/identify/index.d.ts","../../../node_modules/libp2p/dist/src/ping/index.d.ts","../src/libp2p.ts","../src/waku.ts","../src/keep_alive_manager.ts","../src/index.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","impliedFormat":1},{"version":"27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true,"impliedFormat":1},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true,"impliedFormat":1},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true,"impliedFormat":1},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true,"impliedFormat":1},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true,"impliedFormat":1},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true,"impliedFormat":1},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true,"impliedFormat":1},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true,"impliedFormat":1},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true,"impliedFormat":1},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true,"impliedFormat":1},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true,"impliedFormat":1},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true,"impliedFormat":1},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7feb7967c6c6003e11f49efa8f5de989484e0a6ba2e5a6c41b55f8b8bd85dba","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true,"impliedFormat":1},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true,"impliedFormat":1},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"f196d5ed4194259ffb797a34001a5edb7a165cd110dc3e4d8f03f11e3531fe9b","impliedFormat":99},{"version":"683889752b7c95fffd073b82ea76d36b3fe548ef3bb9887eb903676eabd676ff","impliedFormat":99},{"version":"a439ff9443c77478bb024ea2d96fbc088bccc915adf6bb8aeb9ab21fd737a071","impliedFormat":99},{"version":"b40afc6ff175241970202125bc1b5996cf5783b2f755977691f8c6522ace9f14","impliedFormat":99},{"version":"8bfc11f55ca063b10f0335922693ca70885d8f59b20607dd501250d1b1e960db","impliedFormat":99},{"version":"a884051a029dc34c400dc1dbad39a878935d37ebbea62d357d17b25f0076b578","impliedFormat":99},{"version":"5212dd78d1d63ab33332c8846a0ea5ce248159e74033cde16de48373036b4704","impliedFormat":99},{"version":"d71577e78c7a4257074aaf82f595724175210c89e8b467ef82f949a6cbd891bc","impliedFormat":99},{"version":"7bc7a347a64a3502c300d5a0adb10ec871ae3ad4f118c52529f624769b5f8e6f","impliedFormat":99},{"version":"1667ee69895dc51300d4f15e584729b758fcf2be4c378f901533c992024af7c8","impliedFormat":99},{"version":"2aa7c0830c012225c929a525fe2c37d2e5e73ae064f03ee20b8804feb5bb068b","impliedFormat":99},{"version":"c96c8c4f8d1b53dda527afbe1efaa198d5ad1cac1d775276301268f96447bdf6","signature":"a01358d6c8a2650d3a37b7ab46f094314334cc5ba8e3c95d1638f8eefb17def7","impliedFormat":99},{"version":"4093d8ac54bc850b1608efccfe9cddb6e87d67e5b1146976a9b038654db776e5","signature":"767e616fb07287dfce56cef40cd2da2d95c1ff7da6766a01d3db2727a48b480e","impliedFormat":99},{"version":"2cd3b80c4762701c0faffcfaa6f9ba62ab7142260eb2de1b9d1c16f79279fe98","impliedFormat":99},{"version":"88c12c18ab04951681330bc5d32506fce7d7f03852f01554d947740a06a0e142","signature":"d61b65dd81c443aedee36aae9b35027a8a2cb0fe9dc85a5558fa0b882f886094","impliedFormat":99},{"version":"378cb68a78b88938775474a6aaee841310db5db23e52acb2cececee806d8d10e","signature":"55ceb2bf66892116339189e65e54fb1b22def0d6aec0a64ff0038e69c079b1c7","impliedFormat":99},{"version":"ee0c7158fa49143fe0bbc9a1f96ebdb824c0f144baf4b58b7b63ac71fdc929d7","signature":"dbd6959b739551aca3c6f93f51647a13ac09111cd6d42b87ccc6d6dcc8e4b0d9","impliedFormat":99},{"version":"c84146dbc9d2e5f43d2cbf15485a4eabf90219dbb66c0d481f20f12d3851bffc","impliedFormat":99},{"version":"176f19f35d1cfa16aa7e3d7a2cf36c01431d256901163b8e9a3e628b315bbb0d","impliedFormat":99},{"version":"b41a3bfc6e2c39ba7a81295965e85f6c5bca0deff2451dff1c2266070d512396","impliedFormat":99},{"version":"7cd8af5d325bceedc698f43a6303839cedfb01109c2b9a9a711782aa69eea7ae","impliedFormat":99},{"version":"2aa7c0830c012225c929a525fe2c37d2e5e73ae064f03ee20b8804feb5bb068b","impliedFormat":99},{"version":"87725787eb3a35c26ad48a9e9eeaf3b17270612ebaef5259442501b71ff56dee","impliedFormat":99},{"version":"1c47fd9df081bbc5ee6ec531ea1763613438b8379a3b21d826089d88c37fd7d3","impliedFormat":99},{"version":"1e4448f4c023c725aa7b44c3d09c84595cff1ba9e2e256311b4500df57573e35","impliedFormat":99},{"version":"b64e89450fb83cf7e8e32eb5ffdf7960bd71e40047e0818c2ad8b0aad5ac758a","impliedFormat":99},{"version":"d6fd2b60c72d94f260741967579d6ffa20d7585ad53282f5d83623761df36a38","impliedFormat":99},{"version":"85786f052b5dcd0b36564b657a9aea3e80f1fd0e76e4606a4400ec21928892c1","impliedFormat":99},{"version":"b4b0b688d26d1ae58fc922ae28849dd2a390f6fba8c85189753c0cd5f313cdae","impliedFormat":99},{"version":"81434e23e4fd973c225f20c160a7e129c98edaaaef3a3c1458ffc70647009516","impliedFormat":99},{"version":"85c2bb8c647a51021635c0847186d8cdd97bcc5b0973056c900fabb138e109aa","impliedFormat":99},{"version":"3e73bdc7b31ad8c6e2f34567ce93b43ac7e2a244249b070bc541811f0ec99d5c","impliedFormat":99},{"version":"bb67aacb028d577b5cd05f5a5571d5bb673438f7982fbb014914c027eebb41c7","impliedFormat":99},{"version":"c7a4bc5b52a0eaf5d10f23c9b99028b92049586bcc43e5d62c50d4f1c5d6a4e2","impliedFormat":99},{"version":"d395a624935584352acd2b80c9341aed77bfe3240f7f4f4d154cb9973f9e7ec6","impliedFormat":99},{"version":"6b6be2a5e228e84df3e06ec8255df6cfeaea8b56c77f983a18f7412aa3dd8919","impliedFormat":99},{"version":"83a1426ac1a9cf144141dfe10d71a68629623a7c28245c9ca0e0352bead501fd","impliedFormat":99},{"version":"2726c0a6a4a87fad11e6846e6b0b40b8924fbe66340adc512093c4273bc53e4e","impliedFormat":99},{"version":"c888daaa99fdf6c5712d98605fdcf21cbbaab756a629661a44cac44ede464d37","impliedFormat":99},{"version":"206bab3a2affada92f8eb6ba8b90411cfdb572dae254e27d9fad61171d71960b","impliedFormat":99},{"version":"4955c08d2af1f4fdeaa32a3f52b51853444269391fdc4e88874df9855d499593","impliedFormat":99},{"version":"def82d7f3ae543845879a906469de52e42f816197603751382805c572d0de3f4","impliedFormat":99},{"version":"683889752b7c95fffd073b82ea76d36b3fe548ef3bb9887eb903676eabd676ff","impliedFormat":99},{"version":"f196d5ed4194259ffb797a34001a5edb7a165cd110dc3e4d8f03f11e3531fe9b","impliedFormat":99},{"version":"a439ff9443c77478bb024ea2d96fbc088bccc915adf6bb8aeb9ab21fd737a071","impliedFormat":99},{"version":"5b3714bd84ba057f1be3beb9cf273d3c718376ac9b202e16b0fffe125325a095","impliedFormat":99},{"version":"b40afc6ff175241970202125bc1b5996cf5783b2f755977691f8c6522ace9f14","impliedFormat":99},{"version":"557b8c7481296f4b7ed362320f3bbb40bb87404edf880c81224f365a8d1e17f3","impliedFormat":99},{"version":"8bfc11f55ca063b10f0335922693ca70885d8f59b20607dd501250d1b1e960db","impliedFormat":99},{"version":"467a7c09abfde00a7fc41d06c1c599f01e944c9f4948d38a0bde82b766a7e364","impliedFormat":99},{"version":"b85ee49f2af3b6c9d413d371c1aceb3bfd231fc79f7fafa153f0db4026281689","impliedFormat":99},{"version":"77c738b0671d324f6cb2c7c1d7dfc0282a5836c67af55c9ba6df315c62207f57","impliedFormat":99},{"version":"f2dc47a6b115cd100153d2aaa3dbec094e7a55c5e471c9df8cf7fd651925d63f","impliedFormat":99},{"version":"66bc5c8651aa39bc9f493feef381bd7bf8bb2ab5156278bf7b38961ba6b0bc78","impliedFormat":99},{"version":"88de5467cd5e4c2c1384629806d56ac1215657bddf39ef9f60a0e05beee2b131","impliedFormat":99},{"version":"ff5820394809bfc32a7e4586ff11b3c07327a0f4c756709aef92f1cd73d6da48","impliedFormat":99},{"version":"b592034e98577f01bcb1654287e5797bbbe650bfe5c7078d951e8aa6eab1a424","impliedFormat":99},{"version":"dfb55c5cec4797cdb3387d260d006b2fab9da545152b88a3bef8a374dd495a65","impliedFormat":99},{"version":"e2dd36a524ea5b13de1ed104ede9cea79696588175c1df1940d6a29113a4aee0","impliedFormat":99},{"version":"a878d4c7237a7af50e96534295fcf723134d70cbb1e9bfd8365266b912aee6ec","impliedFormat":99},{"version":"8970ab047d89c71edf9973609dd62f61bb366abeabbff36a1200103b6c1c605b","impliedFormat":99},{"version":"36d756189d9295e3a964e5cd45cb8ac965d5d2ada53ed848e08608426c146d69","impliedFormat":1},{"version":"8bdb5c16e8b9ba625ec08d8189879a6fb47b2c3c458a5d43ebd53a8763b5712e","impliedFormat":99},{"version":"2ea008f3c6f799004f9d9c9dec4b868a4534159d7d586f797720f50381f49727","impliedFormat":99},{"version":"9ce0498518bc48d7e8f676452f6a8685c38393c90fac0df4befb58108a1cddda","impliedFormat":99},{"version":"a11c8babe419eaf805939cfe03e779a42cf6949bac6222ac5ef40da12f95de47","impliedFormat":99},{"version":"b80c780c52524beb13488942543972c8b0e54400e8b59cee0169f38d0fabb968","impliedFormat":1},{"version":"a77fbecee25688f568e18b43f8f54195d6c278a2a9a687ada5ab3d2f726524eb","impliedFormat":99},{"version":"e29f2b3a93ca3392fe29fa8e7b93985e854b44fe28e2b5c113f08296095bd6b7","impliedFormat":99},{"version":"d27956c8b392088a06d882e1edb58aab4d5cf5ab1229b73f99329ab21f352147","impliedFormat":99},{"version":"90dab905b7ea5ab629b62ec5a4153b3f44469aff5b1f6132edb2802537e5d8a7","impliedFormat":99},{"version":"ed031ba502b7c6e5728eedaad24affae08ff6c5cb7b7a693d0f2c2eb989d6475","impliedFormat":99},{"version":"85134dfa7d0e371d15534102c194d2c5056589378c022e05dc3146acbfaff68b","impliedFormat":99},{"version":"7dd62326bcdcfa8c572b6fea5dc7621875ecbf5654036433fa1617898468cd69","impliedFormat":99},{"version":"5a6201b07effdabd694cb7ecce715f3684d51cdbf79fc6d465a689c083ee0e26","impliedFormat":99},{"version":"6dec7d4b8af96b4936fec4a7a76fc70b0481dac7b6fc89bd516ab79c21a2cf37","impliedFormat":99},{"version":"e99c8be1d9a00f8ed88e6ec776ceacd38154772319afbda4ff3d50a5a931c3c1","impliedFormat":99},{"version":"89448fbf5e1b96d1139cb6f278ff48e772263280889dacf10b8dcdab395452db","impliedFormat":99},{"version":"c1536bc8b25b55c40185804643a85e14e95496028e060301daa956a1b32eff89","impliedFormat":99},{"version":"c8df8718c2f705dbb0b54179c98c288effbce8f527b9804e1358385b118a762b","signature":"eafcf3db62a111ad66b9fbc1526581709f0d5575e5ed98c047fcdcab03aee792","impliedFormat":99},{"version":"1c2f47a8954849147b69485e27ca763b19343b61ecb24e7b012df6409ae2064a","signature":"85dcf05de3eed8cd2789d11c266020f992d2b480163f5710975ee7bcfd9fc967","impliedFormat":99},{"version":"e34e7a31ad2fdca675f66a9ba2e072f417774f3d182b592754a1be342464a9f7","signature":"17bd19ea7eae88a7d5986bde3b55dd35c9cc4e1132cf6d8c58ec6cf61c1961cf","impliedFormat":99},{"version":"fcdcc439def25506ab770e638d432093b166dd52ee0e30bf0ccc562bf3990812","signature":"ff80f1684384d2efb41a5acec11d1d5d8e1fb7df9a0b63ed4077eb1d617c65d3","impliedFormat":99},{"version":"72df637760ccc72a241e13520236241eb3072bf5125bdbb4b41555f9457c8f0a","signature":"d3b20e1147265f4e5ff52cfd0984d929a215182fe1099e08e5a37de388708935","impliedFormat":99},{"version":"d676098ed59e5063e001db24199fc665582db6f73bea5f7b414bd8c68dcdbb39","signature":"cfec24e56862ecb9f5e1d7ba0fd020e032984826ac0e36d954ac3b6cf4ff0e34","impliedFormat":99},{"version":"97030b9c029efb982a7ffa9cfbfa7dc80353f2d6c4f03676a7d04e3811f278b8","impliedFormat":99},{"version":"688c9dfd2b7114f5f01022abb5b179659f990d5af5924f185c2644ca99fe7b77","impliedFormat":1},{"version":"925a8770415572378b7b62dcd714e744b7ffed86de59bdbe1d25c68d9d1f7f51","impliedFormat":99},{"version":"5af3aae727d37689c2ba38173d6e68b3bca8fb0e2a1faa24a2e4eee45313970e","impliedFormat":99},{"version":"020b684c620461753ab74b5c1d36c39030045242305161443e89c5f4c6e02861","impliedFormat":99},{"version":"444fd02034dcb14575c1d65b39678654508784d34c4d66d6631b54bb6aa24d21","impliedFormat":99},{"version":"d4936633d5453e441ad5ab182efad46a0e1285fe5f9f5c2948cad3e71b7c2c23","impliedFormat":99},{"version":"7378c8a8eb3feec7b36b268d55794b625a77f1a3a4d075932425fd263aadd8c2","impliedFormat":99},{"version":"a1b60bd2328318dcbec30bdf529dad31a13315ff2df60c8bd71630c58a575b06","impliedFormat":99},{"version":"5d11703e2c5d4dbe00bbe79f3bc864d178cf8d6ebccc2d1448ea29e93654f029","impliedFormat":99},{"version":"92aabe63a01fe06680e7e49775d5a66524f4816d49490af8e82330e5aeff91fd","impliedFormat":99},{"version":"ed849d616865076f44a41c87f27698f7cdf230290c44bafc71d7c2bc6919b202","impliedFormat":1},{"version":"5c2862817a9073efcdc8608cb171525067c4a7afd82f2cd800bf208104085234","impliedFormat":99},{"version":"626a82c4bd44767fb7ab3709a2a7857d43b02b575e7d1678d3d24f889515983c","impliedFormat":99},{"version":"8f364fec0ef20506aa9cf00b5cd8b620c1c0389687b11a3a32b0b5d4716ad894","impliedFormat":99},{"version":"dcef5e69bfd584dd4640a8363792acac1f2328767a57f401ee6daa0f281c632a","impliedFormat":99},{"version":"763bb8df872cbb8783e29e19bd7a1dea0f88f7fd7398343af38be8509a65df82","impliedFormat":99},{"version":"c286b410193495d067668bcdbd13ea3f3a39001edff02edee248babf2652e563","impliedFormat":99},{"version":"ba1405da509cc84896a588978efc45400d4f9844ee738d750b59868b1ad1618a","impliedFormat":99},{"version":"129e03ea345ad2ec480758767408a6119112e1c1d6a454f83524c8590549a949","impliedFormat":99},{"version":"932cade1c5802123b5831f332ad8a6297f0f7d14d0ee04f5a774408f393e2200","impliedFormat":1},{"version":"1165dc3daad62e737ee6c7016470a4a9a4c751be9f47da494a718a0b428bfe49","impliedFormat":99},{"version":"1969a7f95125132dd513d57d726f4a645270bbe2c4036ae23231f6fe916b0bd3","impliedFormat":99},{"version":"0217bc20dc09457b92903ee79351dd2992ddd75b4b575a9203dbc2a40bfda91d","signature":"bc3dc95a996add677da9964ff9a5744558146c7cffcfd7bbb546a8d8932be54b","impliedFormat":99},{"version":"3705aeef3480347a04be9de7cd603ed082ea3343e4cec023d13b7772171cd8eb","signature":"f445ba7fc267ed04053607199f51c040e83ad711a5333624a7e4a69ddadc7666","impliedFormat":99},{"version":"fd617cc8eec6f43227ab572160bac9d23c723073e83a9b100bd15c758eff34c2","impliedFormat":99},{"version":"46d473c27bc4feaed6c2ce5eeb92c3b38ea0042e2b66c63addbb0fbc6db05355","impliedFormat":99},{"version":"3155e98b0df0c1523715e8a1c75c8a67c401aeb58d6eccf8bd89d5d775b8c1cf","impliedFormat":99},{"version":"fa82b7b22d9df87323e31e9e2ad75911028f3e544647fd212424b3c4452fee3f","impliedFormat":99},{"version":"40f7bfcf812261612b27dabeed3f0952beec52ec566c97795d53936c61e6f0d5","impliedFormat":99},{"version":"7a1b62551b7284b81ff5d24c595f55a49056c6652667e2105abbca822418484d","impliedFormat":99},{"version":"6c56034a31bed2b7910da7ea2bf605b7cbfb1170134898e9ef31179553c034ee","impliedFormat":99},{"version":"38440c424965f82feb64288195ea06871aac94fe8d10c9a7983b54665ee033c8","impliedFormat":99},{"version":"82f8c6834bbcf2b6288f90b7f7cc5b0588518ae6897dabb3bf36df860c65730d","impliedFormat":99},{"version":"ba136467ca7a8153e8849ee2dad548a390651acd4a2238b861d2d3b3f47f197c","impliedFormat":99},{"version":"dccfe20d7aa4a0041f227fd553f1c0a5616eabcfad5722e024602b0d327aec32","signature":"299fe7964755e788d57f92a1e2679da0db168ecfdf733dbf28e711de8b05d7c8","impliedFormat":99},{"version":"88be9f8382711e0e4aec0077827b1320319ce6c5222b4d22140a2dc2808bac2f","signature":"562a6317c991ab93bf4278bd30436b8c0fafb08a94dbc01e3997e9959429ca82","impliedFormat":99},{"version":"9cfa9159b147460a327204a583538a5d6f80a943ae204f0e95c84a79b02ccd00","signature":"09ac11dc22366cb89d815665ca03e3388fe437b270592bce1c1ca7fe3ddaec5d","impliedFormat":99},{"version":"813346dbba15be1455e67c92608bcaac00258fbaca1cecf48c8965e5d9a14672","impliedFormat":99},{"version":"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","impliedFormat":1},{"version":"a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a","impliedFormat":1},{"version":"ca72190df0eb9b09d4b600821c8c7b6c9747b75a1c700c4d57dc0bb72abc074c","affectsGlobalScope":true,"impliedFormat":1},{"version":"11e2d554398d2bd460e7d06b2fa5827a297c8acfbe00b4f894a224ac0862857f","impliedFormat":1},{"version":"e193e634a99c9c1d71f1c6e4e1567a4a73584328d21ea02dd5cddbaad6693f61","affectsGlobalScope":true,"impliedFormat":1},{"version":"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","impliedFormat":1},{"version":"5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713","impliedFormat":1},{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true,"impliedFormat":1},{"version":"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","impliedFormat":1},{"version":"5eb881ed2a0d5b17ea36df5cd4c4be500e460c412f270c3170e906bec65580ac","impliedFormat":1},{"version":"bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","impliedFormat":1},{"version":"489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","impliedFormat":1},{"version":"f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","impliedFormat":1},{"version":"14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","impliedFormat":1},{"version":"5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea","impliedFormat":1},{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true,"impliedFormat":1},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true,"impliedFormat":1},{"version":"80473bd0dd90ca1e166514c2dfead9d5803f9c51418864ca35abbeec6e6847e1","impliedFormat":1},{"version":"1c84b46267610a34028edfd0d035509341751262bac1062857f3c8df7aff7153","impliedFormat":1},{"version":"5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2","impliedFormat":1},{"version":"04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","impliedFormat":1},{"version":"8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","impliedFormat":1},{"version":"2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58","impliedFormat":1},{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true,"impliedFormat":1},{"version":"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","impliedFormat":1},{"version":"7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","impliedFormat":1},{"version":"b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30","impliedFormat":1},{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true,"impliedFormat":1},{"version":"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","impliedFormat":1},{"version":"210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","impliedFormat":1},{"version":"36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","impliedFormat":1},{"version":"0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","impliedFormat":1},{"version":"25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","impliedFormat":1},{"version":"fd93cee2621ff42dabe57b7be402783fd1aa69ece755bcba1e0290547ae60513","impliedFormat":1},{"version":"1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","impliedFormat":1},{"version":"69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","impliedFormat":1},{"version":"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","impliedFormat":1},{"version":"23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","impliedFormat":1},{"version":"09326ae5f7e3d49be5cd9ea00eb814770e71870a438faa2efd8bdd9b4db21320","impliedFormat":1},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","impliedFormat":1},{"version":"c4577fb855ca259bdbf3ea663ca73988ce5f84251a92b4aef80a1f4122b6f98e","impliedFormat":1},{"version":"3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","impliedFormat":1},{"version":"5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2","impliedFormat":1},{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true,"impliedFormat":1},{"version":"ff07a9a03c65732ccc59b3c65bc584173da093bd563a6565411c01f5703bd3cb","affectsGlobalScope":true,"impliedFormat":1},{"version":"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","impliedFormat":1},{"version":"ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","impliedFormat":1},{"version":"e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","impliedFormat":1},{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8d555f3d607ecaa18d55de6995ea8f206342ecc93305919eac945c7c78c78c6","impliedFormat":1},{"version":"677646e2620795c98a539fb12fb531f10331c217cef1492132b2518f894fa92d","affectsGlobalScope":true,"impliedFormat":1}],"root":[69,70,[72,74],[137,142],166,167,[178,181]],"options":{"alwaysStrict":true,"declaration":true,"esModuleInterop":true,"module":7,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"fileIdsList":[[228],[63,67,79,98,99,143,145,147,148,149,156,159,160,161,162,164,228],[145,148,228],[145,163,228],[144,228],[145,147,148,151,228],[150,152,228],[150,151,158,228],[154,228],[148,150,152,153,155,156,157,228],[148,228],[76,77,228],[148,156,228],[63,66,80,145,147,228],[66,228],[63,66,77,89,97,228],[77,228],[66,77,88,228],[63,75,228],[63,66,77,228],[63,66,75,76,89,228],[62,71,89,228],[63,66,67,71,77,78,79,81,82,83,84,85,86,88,228],[59,63,80,228],[71,79,228],[58,62,228],[63,66,228],[63,71,89,228],[63,76,77,79,146,228],[75,76,77,89,228],[63,77,228],[66,77,79,87,89,228],[61,62,228],[61,228],[58,59,60,228],[63,80,81,120,228],[94,95,96,228],[63,228],[63,66,67,79,89,120,228],[64,65,228],[182,228],[185,228],[186,191,219,228],[187,198,199,206,216,227,228],[187,188,198,206,228],[189,228],[190,191,199,207,228],[191,216,224,228],[192,194,198,206,228],[193,228],[194,195,228],[198,228],[196,198,228],[198,199,200,216,227,228],[198,199,200,213,216,219,228],[228,232],[194,201,206,216,227,228],[198,199,201,202,206,216,224,227,228],[201,203,216,224,227,228],[182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234],[198,204,228],[205,227,228],[194,198,206,216,228],[207,228],[208,228],[185,209,228],[210,226,228,232],[211,228],[212,228],[198,213,214,228],[213,215,228,230],[186,198,216,217,218,219,228],[186,216,218,228],[216,217,228],[219,228],[220,228],[198,222,223,228],[222,223,228],[191,206,216,224,228],[225,228],[206,226,228],[186,201,212,227,228],[191,228],[216,228,229],[228,230],[228,231],[186,191,198,200,209,216,227,228,230,232],[216,228,233],[118,119,228],[117,228],[63,66,67,79,89,90,228],[63,67,77,78,79,82,83,84,88,89,90,92,93,98,99,120,228],[67,79,84,89,98,228],[66,67,79,89,98,228],[63,66,67,77,82,89,90,92,128,228],[63,66,67,77,79,82,84,89,90,92,97,98,122,123,129,228],[63,67,79,89,93,98,99,175,228],[76,174,228],[63,77,78,82,83,87,88,89,91,92,120,121,130,131,132,133,134,135,228],[63,66,89,98,99,228],[66,77,79,82,84,88,89,90,93,228],[124,125,126,127,228],[125,228],[125,126,228],[174,228],[168,228],[168,174,228],[76,168,228],[168,169,170,171,172,173,228],[116,228],[111,115,228],[59,228],[111,112,113,114,228],[60,228],[103,228],[58,228],[58,107,228],[62,105,107,108,109,110,228],[58,59,60,61,103,228],[63,67,68,228],[67,228],[63,66,71,228],[63,73,74,137,138,228],[69,70,72,73,74,137,138,139,140,141,142,166,167,178,179,180,228],[89,136,165,176,177,228],[137,140,228],[73,228],[63,67,72,98,137,228],[63,67,73,89,136,228],[73,74,137,228],[138,140,148,165,228],[73,137,228],[63,66,69,77,137,139,141,166,167,178,228],[63,67,68],[67],[63,66,71],[63,73,74,137,138],[89,136,165,176,177],[137,140],[73],[63,67,72,98,137],[63,67,73,89,136],[73,74,137],[138,140,148,165],[73,137],[63,66,69,77,137,139,141,166,167,178]],"referencedMap":[[161,1],[165,2],[149,3],[164,4],[145,5],[156,6],[153,7],[159,8],[155,9],[150,1],[151,1],[158,10],[152,11],[162,12],[160,13],[148,14],[157,1],[143,1],[93,15],[98,16],[99,17],[90,18],[132,19],[92,20],[77,21],[78,22],[79,1],[89,23],[81,24],[80,1],[82,17],[133,25],[63,26],[71,27],[83,28],[67,27],[147,29],[84,1],[85,17],[87,30],[86,31],[88,32],[75,1],[59,1],[60,33],[62,34],[58,1],[61,35],[68,1],[134,36],[97,37],[96,38],[94,38],[95,38],[135,39],[65,15],[66,40],[64,15],[236,1],[182,41],[183,41],[185,42],[186,43],[187,44],[188,45],[189,46],[190,47],[191,48],[192,49],[193,50],[194,51],[195,51],[197,52],[196,53],[198,52],[199,54],[200,55],[184,56],[234,1],[201,57],[202,58],[203,59],[235,60],[204,61],[205,62],[206,63],[207,64],[208,65],[209,66],[210,67],[211,68],[212,69],[213,70],[214,70],[215,71],[216,72],[218,73],[217,74],[219,75],[220,76],[221,1],[222,77],[223,78],[224,79],[225,80],[226,81],[227,82],[228,83],[229,84],[230,85],[231,86],[232,87],[233,88],[154,1],[124,1],[120,89],[118,90],[119,1],[146,1],[91,91],[121,92],[122,93],[123,94],[129,95],[130,96],[176,97],[175,98],[136,99],[177,100],[131,101],[128,102],[126,103],[127,104],[125,1],[144,1],[163,5],[168,105],[171,106],[172,107],[169,108],[170,106],[174,109],[173,105],[56,1],[57,1],[10,1],[12,1],[11,1],[2,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[3,1],[4,1],[24,1],[21,1],[22,1],[23,1],[25,1],[26,1],[27,1],[5,1],[28,1],[29,1],[30,1],[31,1],[6,1],[35,1],[32,1],[33,1],[34,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[8,1],[47,1],[44,1],[45,1],[46,1],[48,1],[9,1],[49,1],[50,1],[51,1],[54,1],[52,1],[53,1],[1,1],[55,1],[76,1],[117,110],[116,111],[114,112],[100,1],[115,113],[102,33],[110,1],[106,34],[103,114],[113,115],[112,115],[107,116],[108,117],[101,1],[111,118],[105,119],[104,35],[109,1],[69,120],[70,121],[72,122],[139,123],[181,124],[180,1],[178,125],[141,126],[73,1],[74,127],[142,128],[137,129],[138,130],[166,131],[140,132],[167,132],[179,133]],"exportedModulesMap":[[161,1],[165,2],[149,3],[164,4],[145,5],[156,6],[153,7],[159,8],[155,9],[150,1],[151,1],[158,10],[152,11],[162,12],[160,13],[148,14],[157,1],[143,1],[93,15],[98,16],[99,17],[90,18],[132,19],[92,20],[77,21],[78,22],[79,1],[89,23],[81,24],[80,1],[82,17],[133,25],[63,26],[71,27],[83,28],[67,27],[147,29],[84,1],[85,17],[87,30],[86,31],[88,32],[75,1],[59,1],[60,33],[62,34],[58,1],[61,35],[68,1],[134,36],[97,37],[96,38],[94,38],[95,38],[135,39],[65,15],[66,40],[64,15],[236,1],[182,41],[183,41],[185,42],[186,43],[187,44],[188,45],[189,46],[190,47],[191,48],[192,49],[193,50],[194,51],[195,51],[197,52],[196,53],[198,52],[199,54],[200,55],[184,56],[234,1],[201,57],[202,58],[203,59],[235,60],[204,61],[205,62],[206,63],[207,64],[208,65],[209,66],[210,67],[211,68],[212,69],[213,70],[214,70],[215,71],[216,72],[218,73],[217,74],[219,75],[220,76],[221,1],[222,77],[223,78],[224,79],[225,80],[226,81],[227,82],[228,83],[229,84],[230,85],[231,86],[232,87],[233,88],[154,1],[124,1],[120,89],[118,90],[119,1],[146,1],[91,91],[121,92],[122,93],[123,94],[129,95],[130,96],[176,97],[175,98],[136,99],[177,100],[131,101],[128,102],[126,103],[127,104],[125,1],[144,1],[163,5],[168,105],[171,106],[172,107],[169,108],[170,106],[174,109],[173,105],[56,1],[57,1],[10,1],[12,1],[11,1],[2,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[3,1],[4,1],[24,1],[21,1],[22,1],[23,1],[25,1],[26,1],[27,1],[5,1],[28,1],[29,1],[30,1],[31,1],[6,1],[35,1],[32,1],[33,1],[34,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[8,1],[47,1],[44,1],[45,1],[46,1],[48,1],[9,1],[49,1],[50,1],[51,1],[54,1],[52,1],[53,1],[1,1],[55,1],[76,1],[117,110],[116,111],[114,112],[100,1],[115,113],[102,33],[110,1],[106,34],[103,114],[113,115],[112,115],[107,116],[108,117],[101,1],[111,118],[105,119],[104,35],[109,1],[69,134],[70,135],[72,136],[139,137],[181,124],[178,138],[141,139],[74,140],[142,141],[137,142],[138,143],[166,144],[140,145],[167,145],[179,146]],"semanticDiagnosticsPerFile":[161,165,149,164,145,156,153,159,155,150,151,158,152,162,160,148,157,143,93,98,99,90,132,92,77,78,79,89,81,80,82,133,63,71,83,67,147,84,85,87,86,88,75,59,60,62,58,61,68,134,97,96,94,95,135,65,66,64,236,182,183,185,186,187,188,189,190,191,192,193,194,195,197,196,198,199,200,184,234,201,202,203,235,204,205,206,207,208,209,210,211,212,213,214,215,216,218,217,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,154,124,120,118,119,146,91,121,122,123,129,130,176,175,136,177,131,128,126,127,125,144,163,168,171,172,169,170,174,173,56,57,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,8,47,44,45,46,48,9,49,50,51,54,52,53,1,55,76,117,116,114,100,115,102,110,106,103,113,112,107,108,101,111,105,104,109,69,70,72,139,181,180,178,141,73,74,142,137,138,166,140,167,179]},"version":"5.0.4"}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import type { PeerId } from "@libp2p/interface
|
2
|
-
import type { Peer } from "@libp2p/interface
|
1
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
2
|
+
import type { Peer } from "@libp2p/interface/peer-store";
|
3
|
+
import type { EventEmitter } from "@libp2p/interfaces/events";
|
3
4
|
export declare enum Tags {
|
4
5
|
BOOTSTRAP = "bootstrap",
|
5
6
|
PEER_EXCHANGE = "peer-exchange"
|
@@ -42,3 +43,7 @@ export interface PeersByDiscoveryResult {
|
|
42
43
|
[Tags.PEER_EXCHANGE]: Peer[];
|
43
44
|
};
|
44
45
|
}
|
46
|
+
export interface IConnectionManager extends EventEmitter<IPeersByDiscoveryEvents> {
|
47
|
+
getPeersByDiscovery(): Promise<PeersByDiscoveryResult>;
|
48
|
+
stop(): void;
|
49
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connection_manager.js","sourceRoot":"","sources":["../src/connection_manager.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"connection_manager.js","sourceRoot":"","sources":["../src/connection_manager.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,+BAAuB,CAAA;IACvB,uCAA+B,CAAA;AACjC,CAAC,EAHW,IAAI,KAAJ,IAAI,QAGf;AAmBD,MAAM,CAAN,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,gFAAqD,CAAA;IACrD,wFAA6D,CAAA;IAC7D,8EAAmD,CAAA;IACnD,sFAA2D,CAAA;AAC7D,CAAC,EALW,uBAAuB,KAAvB,uBAAuB,QAKlC"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { PeerStore } from "@libp2p/interface/peer-store";
|
2
|
+
export type SearchContext = {
|
3
|
+
domain: string;
|
4
|
+
publicKey: string;
|
5
|
+
visits: {
|
6
|
+
[key: string]: boolean;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
export interface DnsClient {
|
10
|
+
resolveTXT: (domain: string) => Promise<string[]>;
|
11
|
+
}
|
12
|
+
export interface NodeCapabilityCount {
|
13
|
+
relay: number;
|
14
|
+
store: number;
|
15
|
+
filter: number;
|
16
|
+
lightPush: number;
|
17
|
+
}
|
18
|
+
export interface DnsDiscoveryComponents {
|
19
|
+
peerStore: PeerStore;
|
20
|
+
}
|
21
|
+
export interface DnsDiscOptions {
|
22
|
+
/**
|
23
|
+
* ENR URL to use for DNS discovery
|
24
|
+
*/
|
25
|
+
enrUrls: string | string[];
|
26
|
+
/**
|
27
|
+
* Specifies what type of nodes are wanted from the discovery process
|
28
|
+
*/
|
29
|
+
wantedNodeCapabilityCount: Partial<NodeCapabilityCount>;
|
30
|
+
/**
|
31
|
+
* Tag a bootstrap peer with this name before "discovering" it (default: 'bootstrap')
|
32
|
+
*/
|
33
|
+
tagName?: string;
|
34
|
+
/**
|
35
|
+
* The bootstrap peer tag will have this value (default: 50)
|
36
|
+
*/
|
37
|
+
tagValue?: number;
|
38
|
+
/**
|
39
|
+
* Cause the bootstrap peer tag to be removed after this number of ms (default: 2 minutes)
|
40
|
+
*/
|
41
|
+
tagTTL?: number;
|
42
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dns_discovery.js","sourceRoot":"","sources":["../src/dns_discovery.ts"],"names":[],"mappings":""}
|
package/dist/enr.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { PeerId } from "@libp2p/interface
|
2
|
-
import type { PeerInfo } from "@libp2p/interface
|
1
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
2
|
+
import type { PeerInfo } from "@libp2p/interface/peer-info";
|
3
3
|
import type { Multiaddr } from "@multiformats/multiaddr";
|
4
4
|
export type ENRKey = string;
|
5
5
|
export type ENRValue = Uint8Array;
|
package/dist/filter.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { PeerId } from "@libp2p/interface
|
1
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
2
2
|
import type { IDecodedMessage, IDecoder } from "./message.js";
|
3
3
|
import type { ContentTopic } from "./misc.js";
|
4
4
|
import type { Callback, IBaseProtocol } from "./protocols.js";
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"keep_alive_manager.js","sourceRoot":"","sources":["../src/keep_alive_manager.ts"],"names":[],"mappings":""}
|
package/dist/libp2p.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { GossipSub } from "@chainsafe/libp2p-gossipsub";
|
2
|
-
import type { Libp2p as BaseLibp2p } from "@libp2p/interface
|
2
|
+
import type { Libp2p as BaseLibp2p } from "@libp2p/interface";
|
3
3
|
import type { Libp2pInit } from "libp2p";
|
4
4
|
import type { identifyService } from "libp2p/identify";
|
5
5
|
import type { PingService } from "libp2p/ping";
|
package/dist/peer_exchange.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
import type {
|
3
|
-
import type {
|
1
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
2
|
+
import type { PeerStore } from "@libp2p/interface/peer-store";
|
3
|
+
import type { ConnectionManager } from "@libp2p/interface-internal/connection-manager";
|
4
4
|
import { IEnr } from "./enr.js";
|
5
5
|
import { IBaseProtocol } from "./protocols.js";
|
6
6
|
export interface IPeerExchange extends IBaseProtocol {
|
package/dist/protocols.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { Libp2p } from "@libp2p/interface
|
2
|
-
import type { PeerId } from "@libp2p/interface
|
3
|
-
import type { Peer, PeerStore } from "@libp2p/interface
|
1
|
+
import type { Libp2p } from "@libp2p/interface";
|
2
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
3
|
+
import type { Peer, PeerStore } from "@libp2p/interface/peer-store";
|
4
4
|
import type { Libp2pOptions } from "libp2p";
|
5
5
|
import type { IDecodedMessage } from "./message.js";
|
6
6
|
export declare enum Protocols {
|
@@ -49,12 +49,6 @@ export type ProtocolCreateOptions = {
|
|
49
49
|
*/
|
50
50
|
defaultBootstrap?: boolean;
|
51
51
|
};
|
52
|
-
export type ProtocolOptions = {
|
53
|
-
/**
|
54
|
-
* Optionally specify an PeerId for the protocol request. If not included, will use a random peer.
|
55
|
-
*/
|
56
|
-
peerId?: PeerId;
|
57
|
-
};
|
58
52
|
export type Callback<T extends IDecodedMessage> = (msg: T) => void | Promise<void>;
|
59
53
|
export declare enum SendError {
|
60
54
|
GENERIC_FAIL = "Generic error",
|
@@ -64,6 +58,6 @@ export declare enum SendError {
|
|
64
58
|
NO_RPC_RESPONSE = "No RPC response"
|
65
59
|
}
|
66
60
|
export interface SendResult {
|
67
|
-
|
61
|
+
errors?: SendError[];
|
68
62
|
recipients: PeerId[];
|
69
63
|
}
|
package/dist/protocols.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"protocols.js","sourceRoot":"","sources":["../src/protocols.ts"],"names":[],"mappings":"AAOA,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,oCAAuB,CAAA;IACvB,8BAAiB,CAAA;AACnB,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;
|
1
|
+
{"version":3,"file":"protocols.js","sourceRoot":"","sources":["../src/protocols.ts"],"names":[],"mappings":"AAOA,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,oCAAuB,CAAA;IACvB,8BAAiB,CAAA;AACnB,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAgDD,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,2CAA8B,CAAA;IAC9B,+CAAkC,CAAA;IAClC,+CAAkC,CAAA;IAClC,6CAAgC,CAAA;IAChC,gDAAmC,CAAA;AACrC,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB"}
|
package/dist/receiver.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { IDecodedMessage, IDecoder } from "./message.js";
|
2
2
|
import type { IAsyncIterator, PubSubTopic, Unsubscribe } from "./misc.js";
|
3
|
-
import type { Callback
|
3
|
+
import type { Callback } from "./protocols.js";
|
4
4
|
type ContentTopic = string;
|
5
5
|
export type ActiveSubscriptions = Map<PubSubTopic, ContentTopic[]>;
|
6
6
|
export interface IReceiver {
|
7
|
-
toSubscriptionIterator: <T extends IDecodedMessage>(decoders: IDecoder<T> | IDecoder<T>[]
|
8
|
-
subscribe: <T extends IDecodedMessage>(decoders: IDecoder<T> | IDecoder<T>[], callback: Callback<T
|
7
|
+
toSubscriptionIterator: <T extends IDecodedMessage>(decoders: IDecoder<T> | IDecoder<T>[]) => Promise<IAsyncIterator<T>>;
|
8
|
+
subscribe: <T extends IDecodedMessage>(decoders: IDecoder<T> | IDecoder<T>[], callback: Callback<T>) => Unsubscribe | Promise<Unsubscribe>;
|
9
9
|
}
|
10
10
|
export {};
|
package/dist/relay.d.ts
CHANGED
@@ -2,10 +2,16 @@ import type { GossipSub } from "@chainsafe/libp2p-gossipsub";
|
|
2
2
|
import type { PeerIdStr, TopicStr } from "@chainsafe/libp2p-gossipsub/types";
|
3
3
|
import { IReceiver } from "./receiver.js";
|
4
4
|
import type { ISender } from "./sender.js";
|
5
|
-
|
5
|
+
/**
|
6
|
+
* Interface representing the Relay API, providing control and information about the GossipSub protocol.
|
7
|
+
*
|
8
|
+
* @property gossipSub - The GossipSub instance used for managing pub/sub behavior.
|
9
|
+
* @property start - Function to start the relay, returning a Promise that resolves when initialization is complete.
|
10
|
+
* @property getMeshPeers - Function to retrieve the mesh peers for a given topic or all topics if none is specified. Returns an array of peer IDs as strings.
|
11
|
+
*/
|
12
|
+
export interface IRelayAPI {
|
6
13
|
readonly gossipSub: GossipSub;
|
7
14
|
start: () => Promise<void>;
|
8
15
|
getMeshPeers: (topic?: TopicStr) => PeerIdStr[];
|
9
16
|
}
|
10
17
|
export type IRelay = IRelayAPI & ISender & IReceiver;
|
11
|
-
export {};
|
package/dist/sender.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { IEncoder, IMessage } from "./message.js";
|
2
|
-
import type {
|
2
|
+
import type { SendResult } from "./protocols.js";
|
3
3
|
export interface ISender {
|
4
|
-
send: (encoder: IEncoder, message: IMessage
|
4
|
+
send: (encoder: IEncoder, message: IMessage) => Promise<SendResult>;
|
5
5
|
}
|
package/dist/store.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { IDecodedMessage, IDecoder } from "./message.js";
|
2
|
-
import type { IBaseProtocol
|
2
|
+
import type { IBaseProtocol } from "./protocols.js";
|
3
3
|
export declare enum PageDirection {
|
4
4
|
BACKWARD = "backward",
|
5
5
|
FORWARD = "forward"
|
@@ -39,9 +39,9 @@ export type StoreQueryOptions = {
|
|
39
39
|
* Message.
|
40
40
|
*/
|
41
41
|
cursor?: Cursor;
|
42
|
-
}
|
42
|
+
};
|
43
43
|
export interface IStore extends IBaseProtocol {
|
44
|
-
|
45
|
-
|
44
|
+
queryWithOrderedCallback: <T extends IDecodedMessage>(decoders: IDecoder<T>[], callback: (message: T) => Promise<void | boolean> | boolean | void, options?: StoreQueryOptions) => Promise<void>;
|
45
|
+
queryWithPromiseCallback: <T extends IDecodedMessage>(decoders: IDecoder<T>[], callback: (message: Promise<T | undefined>) => Promise<void | boolean> | boolean | void, options?: StoreQueryOptions) => Promise<void>;
|
46
46
|
queryGenerator: <T extends IDecodedMessage>(decoders: IDecoder<T>[], options?: StoreQueryOptions) => AsyncGenerator<Promise<T | undefined>[]>;
|
47
47
|
}
|
package/dist/waku.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import type { Stream } from "@libp2p/interface
|
2
|
-
import type { PeerId } from "@libp2p/interface
|
1
|
+
import type { Stream } from "@libp2p/interface/connection";
|
2
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
3
3
|
import type { Multiaddr } from "@multiformats/multiaddr";
|
4
|
+
import { IConnectionManager } from "./connection_manager.js";
|
4
5
|
import type { IFilter } from "./filter.js";
|
5
6
|
import type { Libp2p } from "./libp2p.js";
|
6
7
|
import type { ILightPush } from "./light_push.js";
|
@@ -13,6 +14,7 @@ export interface Waku {
|
|
13
14
|
store?: IStore;
|
14
15
|
filter?: IFilter;
|
15
16
|
lightPush?: ILightPush;
|
17
|
+
connectionManager: IConnectionManager;
|
16
18
|
dial(peer: PeerId | Multiaddr, protocols?: Protocols[]): Promise<Stream>;
|
17
19
|
start(): Promise<void>;
|
18
20
|
stop(): Promise<void>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@waku/interfaces",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.18",
|
4
4
|
"description": "Definition of Waku interfaces",
|
5
5
|
"types": "./dist/index.d.ts",
|
6
6
|
"module": "./dist/index.js",
|
@@ -47,20 +47,12 @@
|
|
47
47
|
"node": ">=16"
|
48
48
|
},
|
49
49
|
"devDependencies": {
|
50
|
-
"@chainsafe/libp2p-gossipsub": "^
|
51
|
-
"@libp2p/interface-connection": "^5.1.1",
|
52
|
-
"@libp2p/interface-connection-manager": "^3.0.1",
|
53
|
-
"@libp2p/interface-libp2p": "^3.2.0",
|
54
|
-
"@libp2p/interface-peer-id": "^2.0.2",
|
55
|
-
"@libp2p/interface-peer-info": "^1.0.10",
|
56
|
-
"@libp2p/interface-peer-store": "^2.0.4",
|
57
|
-
"@libp2p/interface-registrar": "^2.0.12",
|
50
|
+
"@chainsafe/libp2p-gossipsub": "^10.1.0",
|
58
51
|
"@multiformats/multiaddr": "^12.0.0",
|
59
|
-
"cspell": "^
|
52
|
+
"cspell": "^7.3.2",
|
60
53
|
"npm-run-all": "^4.1.5",
|
61
|
-
"prettier": "^2.8.8",
|
62
54
|
"typescript": "^5.0.4",
|
63
|
-
"libp2p": "^0.
|
55
|
+
"libp2p": "^0.46.9"
|
64
56
|
},
|
65
57
|
"typedoc": {
|
66
58
|
"entryPoint": "./src/index.ts"
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import type { PeerId } from "@libp2p/interface
|
2
|
-
import type { Peer } from "@libp2p/interface
|
1
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
2
|
+
import type { Peer } from "@libp2p/interface/peer-store";
|
3
|
+
import type { EventEmitter } from "@libp2p/interfaces/events";
|
3
4
|
|
4
5
|
export enum Tags {
|
5
6
|
BOOTSTRAP = "bootstrap",
|
6
|
-
PEER_EXCHANGE = "peer-exchange"
|
7
|
+
PEER_EXCHANGE = "peer-exchange"
|
7
8
|
}
|
8
9
|
|
9
10
|
export interface ConnectionManagerOptions {
|
@@ -27,7 +28,7 @@ export enum EPeersByDiscoveryEvents {
|
|
27
28
|
PEER_DISCOVERY_BOOTSTRAP = "peer:discovery:bootstrap",
|
28
29
|
PEER_DISCOVERY_PEER_EXCHANGE = "peer:discovery:peer-exchange",
|
29
30
|
PEER_CONNECT_BOOTSTRAP = "peer:connected:bootstrap",
|
30
|
-
PEER_CONNECT_PEER_EXCHANGE = "peer:connected:peer-exchange"
|
31
|
+
PEER_CONNECT_PEER_EXCHANGE = "peer:connected:peer-exchange"
|
31
32
|
}
|
32
33
|
|
33
34
|
export interface IPeersByDiscoveryEvents {
|
@@ -47,3 +48,9 @@ export interface PeersByDiscoveryResult {
|
|
47
48
|
[Tags.PEER_EXCHANGE]: Peer[];
|
48
49
|
};
|
49
50
|
}
|
51
|
+
|
52
|
+
export interface IConnectionManager
|
53
|
+
extends EventEmitter<IPeersByDiscoveryEvents> {
|
54
|
+
getPeersByDiscovery(): Promise<PeersByDiscoveryResult>;
|
55
|
+
stop(): void;
|
56
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { PeerStore } from "@libp2p/interface/peer-store";
|
2
|
+
|
3
|
+
export type SearchContext = {
|
4
|
+
domain: string;
|
5
|
+
publicKey: string;
|
6
|
+
visits: { [key: string]: boolean };
|
7
|
+
};
|
8
|
+
|
9
|
+
export interface DnsClient {
|
10
|
+
resolveTXT: (domain: string) => Promise<string[]>;
|
11
|
+
}
|
12
|
+
|
13
|
+
export interface NodeCapabilityCount {
|
14
|
+
relay: number;
|
15
|
+
store: number;
|
16
|
+
filter: number;
|
17
|
+
lightPush: number;
|
18
|
+
}
|
19
|
+
|
20
|
+
export interface DnsDiscoveryComponents {
|
21
|
+
peerStore: PeerStore;
|
22
|
+
}
|
23
|
+
|
24
|
+
export interface DnsDiscOptions {
|
25
|
+
/**
|
26
|
+
* ENR URL to use for DNS discovery
|
27
|
+
*/
|
28
|
+
enrUrls: string | string[];
|
29
|
+
/**
|
30
|
+
* Specifies what type of nodes are wanted from the discovery process
|
31
|
+
*/
|
32
|
+
wantedNodeCapabilityCount: Partial<NodeCapabilityCount>;
|
33
|
+
/**
|
34
|
+
* Tag a bootstrap peer with this name before "discovering" it (default: 'bootstrap')
|
35
|
+
*/
|
36
|
+
tagName?: string;
|
37
|
+
|
38
|
+
/**
|
39
|
+
* The bootstrap peer tag will have this value (default: 50)
|
40
|
+
*/
|
41
|
+
tagValue?: number;
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Cause the bootstrap peer tag to be removed after this number of ms (default: 2 minutes)
|
45
|
+
*/
|
46
|
+
tagTTL?: number;
|
47
|
+
}
|
package/src/enr.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { PeerId } from "@libp2p/interface
|
2
|
-
import type { PeerInfo } from "@libp2p/interface
|
1
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
2
|
+
import type { PeerInfo } from "@libp2p/interface/peer-info";
|
3
3
|
import type { Multiaddr } from "@multiformats/multiaddr";
|
4
4
|
|
5
5
|
export type ENRKey = string;
|
package/src/filter.ts
CHANGED
package/src/index.ts
CHANGED
package/src/libp2p.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { GossipSub } from "@chainsafe/libp2p-gossipsub";
|
2
|
-
import type { Libp2p as BaseLibp2p } from "@libp2p/interface
|
2
|
+
import type { Libp2p as BaseLibp2p } from "@libp2p/interface";
|
3
3
|
import type { Libp2pInit } from "libp2p";
|
4
4
|
import type { identifyService } from "libp2p/identify";
|
5
5
|
import type { PingService } from "libp2p/ping";
|
package/src/peer_exchange.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
import type {
|
3
|
-
import type {
|
1
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
2
|
+
import type { PeerStore } from "@libp2p/interface/peer-store";
|
3
|
+
import type { ConnectionManager } from "@libp2p/interface-internal/connection-manager";
|
4
4
|
|
5
5
|
import { IEnr } from "./enr.js";
|
6
6
|
import { IBaseProtocol } from "./protocols.js";
|
package/src/protocols.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { Libp2p } from "@libp2p/interface
|
2
|
-
import type { PeerId } from "@libp2p/interface
|
3
|
-
import type { Peer, PeerStore } from "@libp2p/interface
|
1
|
+
import type { Libp2p } from "@libp2p/interface";
|
2
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
3
|
+
import type { Peer, PeerStore } from "@libp2p/interface/peer-store";
|
4
4
|
import type { Libp2pOptions } from "libp2p";
|
5
5
|
|
6
6
|
import type { IDecodedMessage } from "./message.js";
|
@@ -9,7 +9,7 @@ export enum Protocols {
|
|
9
9
|
Relay = "relay",
|
10
10
|
Store = "store",
|
11
11
|
LightPush = "lightpush",
|
12
|
-
Filter = "filter"
|
12
|
+
Filter = "filter"
|
13
13
|
}
|
14
14
|
|
15
15
|
export interface IBaseProtocol {
|
@@ -54,13 +54,6 @@ export type ProtocolCreateOptions = {
|
|
54
54
|
defaultBootstrap?: boolean;
|
55
55
|
};
|
56
56
|
|
57
|
-
export type ProtocolOptions = {
|
58
|
-
/**
|
59
|
-
* Optionally specify an PeerId for the protocol request. If not included, will use a random peer.
|
60
|
-
*/
|
61
|
-
peerId?: PeerId;
|
62
|
-
};
|
63
|
-
|
64
57
|
export type Callback<T extends IDecodedMessage> = (
|
65
58
|
msg: T
|
66
59
|
) => void | Promise<void>;
|
@@ -70,10 +63,10 @@ export enum SendError {
|
|
70
63
|
ENCODE_FAILED = "Failed to encode",
|
71
64
|
DECODE_FAILED = "Failed to decode",
|
72
65
|
SIZE_TOO_BIG = "Size is too big",
|
73
|
-
NO_RPC_RESPONSE = "No RPC response"
|
66
|
+
NO_RPC_RESPONSE = "No RPC response"
|
74
67
|
}
|
75
68
|
|
76
69
|
export interface SendResult {
|
77
|
-
|
70
|
+
errors?: SendError[];
|
78
71
|
recipients: PeerId[];
|
79
72
|
}
|
package/src/receiver.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { IDecodedMessage, IDecoder } from "./message.js";
|
2
2
|
import type { IAsyncIterator, PubSubTopic, Unsubscribe } from "./misc.js";
|
3
|
-
import type { Callback
|
3
|
+
import type { Callback } from "./protocols.js";
|
4
4
|
|
5
5
|
type ContentTopic = string;
|
6
6
|
|
@@ -8,12 +8,10 @@ export type ActiveSubscriptions = Map<PubSubTopic, ContentTopic[]>;
|
|
8
8
|
|
9
9
|
export interface IReceiver {
|
10
10
|
toSubscriptionIterator: <T extends IDecodedMessage>(
|
11
|
-
decoders: IDecoder<T> | IDecoder<T>[]
|
12
|
-
opts?: ProtocolOptions
|
11
|
+
decoders: IDecoder<T> | IDecoder<T>[]
|
13
12
|
) => Promise<IAsyncIterator<T>>;
|
14
13
|
subscribe: <T extends IDecodedMessage>(
|
15
14
|
decoders: IDecoder<T> | IDecoder<T>[],
|
16
|
-
callback: Callback<T
|
17
|
-
opts?: ProtocolOptions
|
15
|
+
callback: Callback<T>
|
18
16
|
) => Unsubscribe | Promise<Unsubscribe>;
|
19
17
|
}
|
package/src/relay.ts
CHANGED
@@ -4,7 +4,14 @@ import type { PeerIdStr, TopicStr } from "@chainsafe/libp2p-gossipsub/types";
|
|
4
4
|
import { IReceiver } from "./receiver.js";
|
5
5
|
import type { ISender } from "./sender.js";
|
6
6
|
|
7
|
-
|
7
|
+
/**
|
8
|
+
* Interface representing the Relay API, providing control and information about the GossipSub protocol.
|
9
|
+
*
|
10
|
+
* @property gossipSub - The GossipSub instance used for managing pub/sub behavior.
|
11
|
+
* @property start - Function to start the relay, returning a Promise that resolves when initialization is complete.
|
12
|
+
* @property getMeshPeers - Function to retrieve the mesh peers for a given topic or all topics if none is specified. Returns an array of peer IDs as strings.
|
13
|
+
*/
|
14
|
+
export interface IRelayAPI {
|
8
15
|
readonly gossipSub: GossipSub;
|
9
16
|
start: () => Promise<void>;
|
10
17
|
getMeshPeers: (topic?: TopicStr) => PeerIdStr[];
|
package/src/sender.ts
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
import type { IEncoder, IMessage } from "./message.js";
|
2
|
-
import type {
|
2
|
+
import type { SendResult } from "./protocols.js";
|
3
3
|
|
4
4
|
export interface ISender {
|
5
|
-
send: (
|
6
|
-
encoder: IEncoder,
|
7
|
-
message: IMessage,
|
8
|
-
opts?: ProtocolOptions
|
9
|
-
) => Promise<SendResult>;
|
5
|
+
send: (encoder: IEncoder, message: IMessage) => Promise<SendResult>;
|
10
6
|
}
|
package/src/store.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { IDecodedMessage, IDecoder } from "./message.js";
|
2
|
-
import type { IBaseProtocol
|
2
|
+
import type { IBaseProtocol } from "./protocols.js";
|
3
3
|
|
4
4
|
export enum PageDirection {
|
5
5
|
BACKWARD = "backward",
|
6
|
-
FORWARD = "forward"
|
6
|
+
FORWARD = "forward"
|
7
7
|
}
|
8
8
|
|
9
9
|
export interface TimeFilter {
|
@@ -43,15 +43,15 @@ export type StoreQueryOptions = {
|
|
43
43
|
* Message.
|
44
44
|
*/
|
45
45
|
cursor?: Cursor;
|
46
|
-
}
|
46
|
+
};
|
47
47
|
|
48
48
|
export interface IStore extends IBaseProtocol {
|
49
|
-
|
49
|
+
queryWithOrderedCallback: <T extends IDecodedMessage>(
|
50
50
|
decoders: IDecoder<T>[],
|
51
51
|
callback: (message: T) => Promise<void | boolean> | boolean | void,
|
52
52
|
options?: StoreQueryOptions
|
53
53
|
) => Promise<void>;
|
54
|
-
|
54
|
+
queryWithPromiseCallback: <T extends IDecodedMessage>(
|
55
55
|
decoders: IDecoder<T>[],
|
56
56
|
callback: (
|
57
57
|
message: Promise<T | undefined>
|
package/src/waku.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
import type { Stream } from "@libp2p/interface
|
2
|
-
import type { PeerId } from "@libp2p/interface
|
1
|
+
import type { Stream } from "@libp2p/interface/connection";
|
2
|
+
import type { PeerId } from "@libp2p/interface/peer-id";
|
3
3
|
import type { Multiaddr } from "@multiformats/multiaddr";
|
4
4
|
|
5
|
+
import { IConnectionManager } from "./connection_manager.js";
|
5
6
|
import type { IFilter } from "./filter.js";
|
6
7
|
import type { Libp2p } from "./libp2p.js";
|
7
8
|
import type { ILightPush } from "./light_push.js";
|
@@ -16,6 +17,8 @@ export interface Waku {
|
|
16
17
|
filter?: IFilter;
|
17
18
|
lightPush?: ILightPush;
|
18
19
|
|
20
|
+
connectionManager: IConnectionManager;
|
21
|
+
|
19
22
|
dial(peer: PeerId | Multiaddr, protocols?: Protocols[]): Promise<Stream>;
|
20
23
|
|
21
24
|
start(): Promise<void>;
|