From bc0d8113f79c81d05d1ea192ed122f05f9a16032 Mon Sep 17 00:00:00 2001 From: Sasha <118575614+weboko@users.noreply.github.com> Date: Sat, 24 Jun 2023 00:18:03 +0200 Subject: [PATCH] chore: bump versions for web-chat (#245) * migrate to latest @waku/react and @waku/interfaces * use @waku/sdk * remove utils package * up peer-exchange * up dns package * remove declare module * bump version to 0.0.2 * up version * use enrTree from the lib --- examples/web-chat/package-lock.json | 2089 +++++++++++++----------- examples/web-chat/package.json | 12 +- examples/web-chat/src/chat_message.ts | 2 +- examples/web-chat/src/command.ts | 2 +- examples/web-chat/src/config.ts | 4 - examples/web-chat/src/hooks.ts | 7 +- examples/web-chat/src/index.tsx | 8 +- examples/web-chat/src/types/types.d.ts | 1 - 8 files changed, 1173 insertions(+), 952 deletions(-) diff --git a/examples/web-chat/package-lock.json b/examples/web-chat/package-lock.json index da88b82..72851cf 100644 --- a/examples/web-chat/package-lock.json +++ b/examples/web-chat/package-lock.json @@ -11,13 +11,11 @@ "@libp2p/bootstrap": "^5.0.0", "@livechat/ui-kit": "^0.5.0-24", "@multiformats/multiaddr": "11.0.7", - "@waku/byte-utils": "^0.0.2", - "@waku/core": "^0.0.10", - "@waku/create": "^0.0.4", - "@waku/dns-discovery": "0.0.5", - "@waku/interfaces": "^0.0.7", - "@waku/peer-exchange": "^0.0.3", - "@waku/react": "0.0.1-a", + "@waku/dns-discovery": "^0.0.14", + "@waku/interfaces": "^0.0.15", + "@waku/peer-exchange": "^0.0.13", + "@waku/react": "^0.0.2", + "@waku/sdk": "^0.0.16", "process": "^0.11.10", "protons-runtime": "^3.1.0", "react": "^17.0.2", @@ -2155,155 +2153,12 @@ "resolved": "https://registry.npmjs.org/@chainsafe/is-ip/-/is-ip-2.0.1.tgz", "integrity": "sha512-nqSJ8u2a1Rv9FYbyI8qpDhTYujaKEyLknNrTejLYoSWmdeg+2WB7R6BZqPZYfrJzDxVi3rl6ZQuoaEvpKRZWgQ==" }, - "node_modules/@chainsafe/libp2p-gossipsub": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-gossipsub/-/libp2p-gossipsub-5.4.1.tgz", - "integrity": "sha512-lcqtG74lwQevxC/OTZHZzszb8HS91VkmJxTyndQUu9a6AXBok2a95lyWCK2l8/VPLg0JxIpwYgUCHTTTExDK/A==", + "node_modules/@chainsafe/netmask": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@chainsafe/netmask/-/netmask-2.0.0.tgz", + "integrity": "sha512-I3Z+6SWUoaljh3TBzCnCxjlUyN8tA+NAk5L6m9IxvCf1BENQTePzPMis97CoN/iMW1St3WN+AWCCRp+TTBRiDg==", "dependencies": { - "@libp2p/crypto": "^1.0.3", - "@libp2p/interface-connection": "^3.0.1", - "@libp2p/interface-connection-manager": "^1.3.0", - "@libp2p/interface-keys": "^1.0.3", - "@libp2p/interface-peer-id": "^1.0.4", - "@libp2p/interface-peer-store": "^1.2.2", - "@libp2p/interface-pubsub": "^3.0.0", - "@libp2p/interface-registrar": "^2.0.3", - "@libp2p/interfaces": "^3.0.3", - "@libp2p/logger": "^2.0.0", - "@libp2p/peer-id": "^1.1.15", - "@libp2p/peer-record": "^4.0.1", - "@libp2p/pubsub": "^5.0.0", - "@libp2p/topology": "^3.0.0", - "@multiformats/multiaddr": "^11.0.0", - "abortable-iterator": "^4.0.2", - "denque": "^1.5.0", - "err-code": "^3.0.1", - "it-length-prefixed": "^8.0.2", - "it-pipe": "^2.0.4", - "it-pushable": "^3.1.0", - "multiformats": "^10.0.0", - "protobufjs": "^6.11.2", - "uint8arraylist": "^2.3.2", - "uint8arrays": "^4.0.2" - }, - "engines": { - "npm": ">=8.7.0" - } - }, - "node_modules/@chainsafe/libp2p-gossipsub/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@chainsafe/libp2p-gossipsub/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@chainsafe/libp2p-noise": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-noise/-/libp2p-noise-10.2.0.tgz", - "integrity": "sha512-nXw09UwSE5JCiB5Dte6j0b0Qe+KbtepJvaPz/f5JyxcoyUfLE/t7XWRZAZmcuWBeVWWpOItnK5WmW8uocoiwCQ==", - "dependencies": { - "@libp2p/crypto": "^1.0.0", - "@libp2p/interface-connection-encrypter": "^3.0.0", - "@libp2p/interface-keys": "^1.0.2", - "@libp2p/interface-metrics": "^4.0.2", - "@libp2p/interface-peer-id": "^1.0.2", - "@libp2p/logger": "^2.0.0", - "@libp2p/peer-id": "^1.1.8", - "@stablelib/chacha20poly1305": "^1.0.1", - "@stablelib/hkdf": "^1.0.1", - "@stablelib/sha256": "^1.0.1", - "@stablelib/x25519": "^1.0.1", - "it-length-prefixed": "^8.0.2", - "it-pair": "^2.0.2", - "it-pb-stream": "^2.0.2", - "it-pipe": "^2.0.3", - "it-stream-types": "^1.0.4", - "protons-runtime": "^4.0.1", - "uint8arraylist": "^2.3.2", - "uint8arrays": "^4.0.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@chainsafe/libp2p-noise/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@chainsafe/libp2p-noise/node_modules/long": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", - "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" - }, - "node_modules/@chainsafe/libp2p-noise/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@chainsafe/libp2p-noise/node_modules/protobufjs": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.2.tgz", - "integrity": "sha512-++PrQIjrom+bFDPpfmqXfAGSQs40116JRrqqyf53dymUMvvb5d/LMRyicRoF1AUKoXVS1/IgJXlEgcpr4gTF3Q==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@chainsafe/libp2p-noise/node_modules/protons-runtime": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-4.0.2.tgz", - "integrity": "sha512-R4N6qKHgz8T2Gl45CTcZfITzXPQY9ym8lbLb4VyFMS4ag1KusCRZwkQXTBRhxQ+93ck3K3aDhK1wIk98AMtNyw==", - "dependencies": { - "protobufjs": "^7.0.0", - "uint8arraylist": "^2.4.3" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - }, - "peerDependencies": { - "uint8arraylist": "^2.3.2" + "@chainsafe/is-ip": "^2.0.1" } }, "node_modules/@cspell/cspell-bundled-dicts": { @@ -3773,48 +3628,10 @@ "npm": ">=7.0.0" } }, - "node_modules/@libp2p/connection": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@libp2p/connection/-/connection-4.0.2.tgz", - "integrity": "sha512-l/mvmcA7QkAC/0qRmTpuD5CeMaiy4DuKCsutaY3PpwJbMegTOjxuZh0uzk3z94d0wJBnhquVZ0e4Yqvd+QGlng==", - "dependencies": { - "@libp2p/interface-connection": "^3.0.2", - "@libp2p/interface-peer-id": "^1.0.4", - "@libp2p/interfaces": "^3.0.3", - "@libp2p/logger": "^2.0.1", - "@multiformats/multiaddr": "^11.0.0", - "err-code": "^3.0.1" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/connection/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/connection/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@libp2p/crypto": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-1.0.12.tgz", - "integrity": "sha512-IvTKqI+7O9sTd7K9JSIRsOj/oruKj66qSopbSWkUd6KkcrYvm5vnreb39XPP+nitZcZFQyXj/ZDqTidAWWfYAg==", + "version": "1.0.17", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-1.0.17.tgz", + "integrity": "sha512-Oeg0Eb/EvAho0gVkOgemXEgrVxWaT3x/DpFgkBdZ9qGxwq75w/E/oPc7souqBz+l1swfz37GWnwV7bIb4Xv5Ag==", "dependencies": { "@libp2p/interface-keys": "^1.0.2", "@libp2p/interfaces": "^3.2.0", @@ -3822,7 +3639,8 @@ "@noble/secp256k1": "^1.5.4", "multiformats": "^11.0.0", "node-forge": "^1.1.0", - "protons-runtime": "^4.0.1", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.4.3", "uint8arrays": "^4.0.2" }, "engines": { @@ -3831,14 +3649,14 @@ } }, "node_modules/@libp2p/crypto/node_modules/long": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", - "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, "node_modules/@libp2p/crypto/node_modules/protobufjs": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.2.tgz", - "integrity": "sha512-++PrQIjrom+bFDPpfmqXfAGSQs40116JRrqqyf53dymUMvvb5d/LMRyicRoF1AUKoXVS1/IgJXlEgcpr4gTF3Q==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", + "integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -3859,9 +3677,9 @@ } }, "node_modules/@libp2p/crypto/node_modules/protons-runtime": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-4.0.2.tgz", - "integrity": "sha512-R4N6qKHgz8T2Gl45CTcZfITzXPQY9ym8lbLb4VyFMS4ag1KusCRZwkQXTBRhxQ+93ck3K3aDhK1wIk98AMtNyw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.0.tgz", + "integrity": "sha512-QqjGnPGkpvbzq0dITzhG9DVK10rRIHf7nePcU2QQVVpFGuYbwrOWnvGSvei1GcceAzB9syTz6vHzvTPmGRR0PA==", "dependencies": { "protobufjs": "^7.0.0", "uint8arraylist": "^2.4.3" @@ -3933,60 +3751,56 @@ } }, "node_modules/@libp2p/interface-content-routing": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@libp2p/interface-content-routing/-/interface-content-routing-1.0.7.tgz", - "integrity": "sha512-10MgDDwhS3uBaEppViBtJEVjgZohAKNLaGnzHPej0ByfnESI8DFlgpMOZVOMUlW/NpLOXxqrYuHALefuDWfqmw==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@libp2p/interface-content-routing/-/interface-content-routing-2.1.1.tgz", + "integrity": "sha512-nRPOUWgq1K1fDr3FKW93Tip7aH8AFefCw3nJygL4crepxWTSGw95s1GyDpC7t0RJkWTRNHsqZvsFsJ9FkHExKw==", "dependencies": { "@libp2p/interface-peer-info": "^1.0.0", "@libp2p/interfaces": "^3.0.0", - "multiformats": "^10.0.0" + "multiformats": "^11.0.0" }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, - "node_modules/@libp2p/interface-content-routing/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@libp2p/interface-dht": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@libp2p/interface-dht/-/interface-dht-1.0.5.tgz", - "integrity": "sha512-kqcHpv0VlhZbHNXVou6qOFw3UUtJBlsJi641Jh6BUZouoej8b2wp/TacOuiHvC6Uy8ACanzprzVG1Rk01mgZwA==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/interface-dht/-/interface-dht-2.0.3.tgz", + "integrity": "sha512-JAKbHvw3egaSeB7CHOf6PF/dLNim4kzAiXX+0IEz2lln8L32/Xf1T7KNOF/RSbSYqO9b7Xxc/b2fuSfyaMwwMQ==", "dependencies": { - "@libp2p/interface-peer-discovery": "^1.0.0", - "@libp2p/interface-peer-id": "^1.0.0", + "@libp2p/interface-peer-discovery": "^2.0.0", + "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interface-peer-info": "^1.0.0", "@libp2p/interfaces": "^3.0.0", - "multiformats": "^10.0.0" + "multiformats": "^11.0.0" }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, - "node_modules/@libp2p/interface-dht/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", + "node_modules/@libp2p/interface-dht/node_modules/@libp2p/interface-peer-discovery": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-discovery/-/interface-peer-discovery-2.0.0.tgz", + "integrity": "sha512-Mien5t3Tc+ntP5p50acKUYJN90ouMnq1lOTQDKQNvGcXoajG8A1AEYLocnzVia/MXiexuj6S/Q28WBBacoOlBg==", "dependencies": { - "multiformats": "^10.0.0" + "@libp2p/interface-peer-info": "^1.0.0", + "@libp2p/interfaces": "^3.0.0" }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, - "node_modules/@libp2p/interface-dht/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", + "node_modules/@libp2p/interface-keychain": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/interface-keychain/-/interface-keychain-2.0.5.tgz", + "integrity": "sha512-mb7QNgn9fIvC7CaJCi06GJ+a6DN6RVT9TmEi0NmedZGATeCArPeWWG7r7IfxNVXb9cVOOE1RzV1swK0ZxEJF9Q==", + "dependencies": { + "@libp2p/interface-peer-id": "^2.0.0", + "multiformats": "^11.0.0" + }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" @@ -4001,6 +3815,89 @@ "npm": ">=7.0.0" } }, + "node_modules/@libp2p/interface-libp2p": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@libp2p/interface-libp2p/-/interface-libp2p-1.3.3.tgz", + "integrity": "sha512-7kEoIlAGTIiUNJ/4vIFWx+j+iN4aco7O2PqH6ES3dTvX6sgvYxYFi83p1G/RDj8tHKO7jLfG3UmiwJc/Ab0VyA==", + "dependencies": { + "@libp2p/interface-connection": "^5.0.0", + "@libp2p/interface-content-routing": "^2.0.0", + "@libp2p/interface-dht": "^2.0.0", + "@libp2p/interface-keychain": "^2.0.0", + "@libp2p/interface-metrics": "^4.0.0", + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interface-peer-info": "^1.0.0", + "@libp2p/interface-peer-routing": "^1.0.0", + "@libp2p/interface-peer-store": "^1.0.0", + "@libp2p/interface-pubsub": "^4.0.0", + "@libp2p/interface-registrar": "^2.0.0", + "@libp2p/interfaces": "^3.0.0", + "@multiformats/multiaddr": "^12.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@libp2p/interface-libp2p/node_modules/@libp2p/interface-connection": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@libp2p/interface-connection/-/interface-connection-5.1.1.tgz", + "integrity": "sha512-ytknMbuuNW72LYMmTP7wFGP5ZTaUSGBCmV9f+uQ55XPcFHtKXLtKWVU/HE8IqPmwtyU8AO7veGoJ/qStMHNRVA==", + "dependencies": { + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.0.0", + "@multiformats/multiaddr": "^12.0.0", + "it-stream-types": "^2.0.1", + "uint8arraylist": "^2.4.3" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@libp2p/interface-libp2p/node_modules/@libp2p/interface-pubsub": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@libp2p/interface-pubsub/-/interface-pubsub-4.0.1.tgz", + "integrity": "sha512-PIc5V/J98Yr1ZTHh8lQshP7GdVUh+pKNIqj6wGaDmXs8oQLB40qKCjcpHQNlAnv2e1Bh9mEH2GXv5sGZOA651A==", + "dependencies": { + "@libp2p/interface-connection": "^5.0.0", + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.0.0", + "it-pushable": "^3.1.3", + "uint8arraylist": "^2.4.3" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@libp2p/interface-libp2p/node_modules/@multiformats/multiaddr": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.3.tgz", + "integrity": "sha512-rNcS3njkkSwuGF4x58L47jGH5kBXBfJPNsWnrt0gujhNYn6ReDt1je7vEU5/ddrVj0TStgxw+Hm+TkYDK0b60w==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.1", + "@chainsafe/netmask": "^2.0.0", + "@libp2p/interfaces": "^3.3.1", + "dns-over-http-resolver": "^2.1.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2", + "varint": "^6.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@libp2p/interface-libp2p/node_modules/it-stream-types": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz", + "integrity": "sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, "node_modules/@libp2p/interface-metrics": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/@libp2p/interface-metrics/-/interface-metrics-4.0.5.tgz", @@ -4229,39 +4126,33 @@ } }, "node_modules/@libp2p/peer-collections": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-2.2.2.tgz", - "integrity": "sha512-sL1A0LBHJAlvqROe+OT61Y6Rg7ff+B+YNDZj+3f/LGvDssyffAQX78cXU+lWKPsT+AwHt7Sk7sO4CsYJbdOScQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-3.0.2.tgz", + "integrity": "sha512-3vRVMWVRCF6dVs/1/CHbw4YSv83bcqjZuAt9ZQHW85vn6OfHNFQesOHWT1TbRBuL8TSb//IwJkOfTAVLd6Mymw==", "dependencies": { - "@libp2p/interface-peer-id": "^1.0.4", - "@libp2p/peer-id": "^1.1.0" + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/peer-id": "^2.0.0" }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, - "node_modules/@libp2p/peer-collections/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", + "node_modules/@libp2p/peer-collections/node_modules/@libp2p/peer-id": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-2.0.4.tgz", + "integrity": "sha512-gcOsN8Fbhj6izIK+ejiWsqiqKeJ2yWPapi/m55VjOvDa52/ptQzZszxQP8jUk93u36de92ATFXDfZR/Bi6eeUQ==", "dependencies": { - "multiformats": "^10.0.0" + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.2.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2" }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, - "node_modules/@libp2p/peer-collections/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@libp2p/peer-id": { "version": "1.1.18", "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-1.1.18.tgz", @@ -4278,16 +4169,16 @@ } }, "node_modules/@libp2p/peer-id-factory": { - "version": "1.0.20", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id-factory/-/peer-id-factory-1.0.20.tgz", - "integrity": "sha512-+fHhbmDK9Ws6Dmj2ZmfrQouQTZEbTS3FCi3nUDJnnjIS95+radaP085IVkNJYJeeWpxJV90D4EUwtoy83PaoCw==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id-factory/-/peer-id-factory-2.0.4.tgz", + "integrity": "sha512-+0D+oklFzHpjRI3v7uw3PMMx00P36DV7YvAgL0+gpos0VzR/BI9tRiM6dpObZTrQ1hxp78F03p+qR1Zy9Qnmuw==", "dependencies": { "@libp2p/crypto": "^1.0.0", "@libp2p/interface-keys": "^1.0.2", - "@libp2p/interface-peer-id": "^1.0.0", - "@libp2p/peer-id": "^1.0.0", - "multiformats": "^10.0.0", - "protons-runtime": "^4.0.1", + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/peer-id": "^2.0.0", + "multiformats": "^11.0.0", + "protons-runtime": "^5.0.0", "uint8arraylist": "^2.0.0", "uint8arrays": "^4.0.2" }, @@ -4296,12 +4187,15 @@ "npm": ">=7.0.0" } }, - "node_modules/@libp2p/peer-id-factory/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", + "node_modules/@libp2p/peer-id-factory/node_modules/@libp2p/peer-id": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-2.0.4.tgz", + "integrity": "sha512-gcOsN8Fbhj6izIK+ejiWsqiqKeJ2yWPapi/m55VjOvDa52/ptQzZszxQP8jUk93u36de92ATFXDfZR/Bi6eeUQ==", "dependencies": { - "multiformats": "^10.0.0" + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.2.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2" }, "engines": { "node": ">=16.0.0", @@ -4309,23 +4203,14 @@ } }, "node_modules/@libp2p/peer-id-factory/node_modules/long": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", - "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" - }, - "node_modules/@libp2p/peer-id-factory/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, "node_modules/@libp2p/peer-id-factory/node_modules/protobufjs": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.2.tgz", - "integrity": "sha512-++PrQIjrom+bFDPpfmqXfAGSQs40116JRrqqyf53dymUMvvb5d/LMRyicRoF1AUKoXVS1/IgJXlEgcpr4gTF3Q==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", + "integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -4346,9 +4231,9 @@ } }, "node_modules/@libp2p/peer-id-factory/node_modules/protons-runtime": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-4.0.2.tgz", - "integrity": "sha512-R4N6qKHgz8T2Gl45CTcZfITzXPQY9ym8lbLb4VyFMS4ag1KusCRZwkQXTBRhxQ+93ck3K3aDhK1wIk98AMtNyw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.0.tgz", + "integrity": "sha512-QqjGnPGkpvbzq0dITzhG9DVK10rRIHf7nePcU2QQVVpFGuYbwrOWnvGSvei1GcceAzB9syTz6vHzvTPmGRR0PA==", "dependencies": { "protobufjs": "^7.0.0", "uint8arraylist": "^2.4.3" @@ -4383,28 +4268,52 @@ } }, "node_modules/@libp2p/peer-record": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-4.0.5.tgz", - "integrity": "sha512-o4v6N5B0hsx94TnSkLD7v8GmyQ/pNJbhy+pY8YDsmPhcwAGTnpRdlxWZraMBz8ut+vGoD7E34IdMMgJX/tgAJA==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-5.0.4.tgz", + "integrity": "sha512-e+AArf7pwMLqF24mehTe1OYjr1v0SOKshVrI1E9YH/Cb1F3ZZuK3smyGmnLaS4JlqsarRCMSe3V50tRkqMFY7g==", "dependencies": { - "@libp2p/crypto": "^1.0.0", - "@libp2p/interface-peer-id": "^1.0.2", + "@libp2p/crypto": "^1.0.11", + "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interface-record": "^2.0.1", - "@libp2p/logger": "^2.0.0", - "@libp2p/peer-id": "^1.1.13", + "@libp2p/interfaces": "^3.2.0", + "@libp2p/peer-id": "^2.0.0", "@libp2p/utils": "^3.0.0", - "@multiformats/multiaddr": "^11.0.0", - "err-code": "^3.0.1", - "interface-datastore": "^7.0.0", - "it-all": "^2.0.0", - "it-filter": "^2.0.0", - "it-foreach": "^1.0.0", - "it-map": "^2.0.0", - "it-pipe": "^2.0.3", - "multiformats": "^10.0.0", - "protons-runtime": "^4.0.1", + "@multiformats/multiaddr": "^12.0.0", + "protons-runtime": "^5.0.0", "uint8-varint": "^1.0.2", "uint8arraylist": "^2.1.0", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@libp2p/peer-record/node_modules/@libp2p/peer-id": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-2.0.4.tgz", + "integrity": "sha512-gcOsN8Fbhj6izIK+ejiWsqiqKeJ2yWPapi/m55VjOvDa52/ptQzZszxQP8jUk93u36de92ATFXDfZR/Bi6eeUQ==", + "dependencies": { + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.2.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@libp2p/peer-record/node_modules/@multiformats/multiaddr": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.3.tgz", + "integrity": "sha512-rNcS3njkkSwuGF4x58L47jGH5kBXBfJPNsWnrt0gujhNYn6ReDt1je7vEU5/ddrVj0TStgxw+Hm+TkYDK0b60w==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.1", + "@chainsafe/netmask": "^2.0.0", + "@libp2p/interfaces": "^3.3.1", + "dns-over-http-resolver": "^2.1.0", + "multiformats": "^11.0.0", "uint8arrays": "^4.0.2", "varint": "^6.0.0" }, @@ -4413,45 +4322,15 @@ "npm": ">=7.0.0" } }, - "node_modules/@libp2p/peer-record/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/peer-record/node_modules/it-all": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-2.0.0.tgz", - "integrity": "sha512-I/yi9ogTY59lFxtfsDSlI9w9QZtC/5KJt6g7CPPBJJh2xql2ZS7Ghcp9hoqDDbc4QfwQvtx8Loy0zlKQ8H5gFg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@libp2p/peer-record/node_modules/long": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", - "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" - }, - "node_modules/@libp2p/peer-record/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, "node_modules/@libp2p/peer-record/node_modules/protobufjs": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.2.tgz", - "integrity": "sha512-++PrQIjrom+bFDPpfmqXfAGSQs40116JRrqqyf53dymUMvvb5d/LMRyicRoF1AUKoXVS1/IgJXlEgcpr4gTF3Q==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", + "integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -4472,9 +4351,9 @@ } }, "node_modules/@libp2p/peer-record/node_modules/protons-runtime": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-4.0.2.tgz", - "integrity": "sha512-R4N6qKHgz8T2Gl45CTcZfITzXPQY9ym8lbLb4VyFMS4ag1KusCRZwkQXTBRhxQ+93ck3K3aDhK1wIk98AMtNyw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.0.tgz", + "integrity": "sha512-QqjGnPGkpvbzq0dITzhG9DVK10rRIHf7nePcU2QQVVpFGuYbwrOWnvGSvei1GcceAzB9syTz6vHzvTPmGRR0PA==", "dependencies": { "protobufjs": "^7.0.0", "uint8arraylist": "^2.4.3" @@ -4488,29 +4367,27 @@ } }, "node_modules/@libp2p/peer-store": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-store/-/peer-store-5.0.1.tgz", - "integrity": "sha512-TeHxy5Qv+KzajbEZH1wdE6ubk8G7IUyU+Dyl4W06unZpxq6rD+OTnCkvYuEdglROUxmvSBEkFqJnxV6xgVBWJA==", + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-store/-/peer-store-6.0.4.tgz", + "integrity": "sha512-yw7XbeJ5k880PpkDV/HcSZtj0vQ0ShPbnCzVHc1hW0JS/g1vhpSooAZOf3w65obUoFhUwccnSZ4HSLBSpQqOaA==", "dependencies": { - "@libp2p/interface-peer-id": "^1.0.4", + "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interface-peer-info": "^1.0.3", "@libp2p/interface-peer-store": "^1.2.2", "@libp2p/interface-record": "^2.0.1", - "@libp2p/interfaces": "^3.0.3", + "@libp2p/interfaces": "^3.2.0", "@libp2p/logger": "^2.0.0", - "@libp2p/peer-id": "^1.1.15", - "@libp2p/peer-record": "^4.0.3", + "@libp2p/peer-id": "^2.0.0", + "@libp2p/peer-record": "^5.0.0", "@multiformats/multiaddr": "^11.0.0", - "err-code": "^3.0.1", "interface-datastore": "^7.0.0", "it-all": "^2.0.0", "it-filter": "^2.0.0", "it-foreach": "^1.0.0", "it-map": "^2.0.0", - "it-pipe": "^2.0.3", "mortice": "^3.0.0", - "multiformats": "^10.0.0", - "protons-runtime": "^4.0.1", + "multiformats": "^11.0.0", + "protons-runtime": "^5.0.0", "uint8arraylist": "^2.1.1", "uint8arrays": "^4.0.2" }, @@ -4519,12 +4396,15 @@ "npm": ">=7.0.0" } }, - "node_modules/@libp2p/peer-store/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", + "node_modules/@libp2p/peer-store/node_modules/@libp2p/peer-id": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-2.0.4.tgz", + "integrity": "sha512-gcOsN8Fbhj6izIK+ejiWsqiqKeJ2yWPapi/m55VjOvDa52/ptQzZszxQP8jUk93u36de92ATFXDfZR/Bi6eeUQ==", "dependencies": { - "multiformats": "^10.0.0" + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.2.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2" }, "engines": { "node": ">=16.0.0", @@ -4532,32 +4412,23 @@ } }, "node_modules/@libp2p/peer-store/node_modules/it-all": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-2.0.0.tgz", - "integrity": "sha512-I/yi9ogTY59lFxtfsDSlI9w9QZtC/5KJt6g7CPPBJJh2xql2ZS7Ghcp9hoqDDbc4QfwQvtx8Loy0zlKQ8H5gFg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/it-all/-/it-all-2.0.1.tgz", + "integrity": "sha512-9UuJcCRZsboz+HBQTNOau80Dw+ryGaHYFP/cPYzFBJBFcfDathMYnhHk4t52en9+fcyDGPTdLB+lFc1wzQIroA==", "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, "node_modules/@libp2p/peer-store/node_modules/long": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", - "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" - }, - "node_modules/@libp2p/peer-store/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, "node_modules/@libp2p/peer-store/node_modules/protobufjs": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.2.tgz", - "integrity": "sha512-++PrQIjrom+bFDPpfmqXfAGSQs40116JRrqqyf53dymUMvvb5d/LMRyicRoF1AUKoXVS1/IgJXlEgcpr4gTF3Q==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", + "integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -4578,9 +4449,9 @@ } }, "node_modules/@libp2p/peer-store/node_modules/protons-runtime": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-4.0.2.tgz", - "integrity": "sha512-R4N6qKHgz8T2Gl45CTcZfITzXPQY9ym8lbLb4VyFMS4ag1KusCRZwkQXTBRhxQ+93ck3K3aDhK1wIk98AMtNyw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.0.tgz", + "integrity": "sha512-QqjGnPGkpvbzq0dITzhG9DVK10rRIHf7nePcU2QQVVpFGuYbwrOWnvGSvei1GcceAzB9syTz6vHzvTPmGRR0PA==", "dependencies": { "protobufjs": "^7.0.0", "uint8arraylist": "^2.4.3" @@ -4593,150 +4464,18 @@ "uint8arraylist": "^2.3.2" } }, - "node_modules/@libp2p/pubsub": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/pubsub/-/pubsub-5.0.1.tgz", - "integrity": "sha512-pQNpUC6KWDKCm7A9bv4tT2t3a7a4IpJdfzHsRBjAaKEcIRgP/s/q0Xn8ySdcggg1fvdjMp5VY6NfuuRbSCu9LA==", - "dependencies": { - "@libp2p/crypto": "^1.0.0", - "@libp2p/interface-connection": "^3.0.1", - "@libp2p/interface-peer-id": "^1.0.2", - "@libp2p/interface-pubsub": "^3.0.0", - "@libp2p/interface-registrar": "^2.0.0", - "@libp2p/interfaces": "^3.0.2", - "@libp2p/logger": "^2.0.0", - "@libp2p/peer-collections": "^2.0.0", - "@libp2p/peer-id": "^1.1.0", - "@libp2p/topology": "^3.0.0", - "@multiformats/multiaddr": "^11.0.0", - "abortable-iterator": "^4.0.2", - "err-code": "^3.0.1", - "it-length-prefixed": "^8.0.2", - "it-pipe": "^2.0.3", - "it-pushable": "^3.0.0", - "multiformats": "^10.0.0", - "p-queue": "^7.2.0", - "uint8arraylist": "^2.0.0", - "uint8arrays": "^4.0.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/pubsub/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/pubsub/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/topology": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@libp2p/topology/-/topology-3.0.2.tgz", - "integrity": "sha512-RDMmA8Us5uxl7sSWGoTIYyzdthjs6xQD1P/vBQPHlqTAjpjPWuCY019cbqK8lP1JCldCB/n2ljSxDJs1J4cweQ==", - "dependencies": { - "@libp2p/interface-peer-id": "^1.0.4", - "@libp2p/interface-registrar": "^2.0.3", - "@libp2p/logger": "^2.0.1", - "err-code": "^3.0.1", - "it-all": "^2.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/topology/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/topology/node_modules/it-all": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-2.0.0.tgz", - "integrity": "sha512-I/yi9ogTY59lFxtfsDSlI9w9QZtC/5KJt6g7CPPBJJh2xql2ZS7Ghcp9hoqDDbc4QfwQvtx8Loy0zlKQ8H5gFg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/topology/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@libp2p/tracked-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@libp2p/tracked-map/-/tracked-map-2.0.2.tgz", - "integrity": "sha512-y5UnoB5NR+i7Xp/wPrHYyJxiNRS0/3ee8chphTG8GptdTWqWcZ+UALKXMb9neMtFL9pivNrOY+A0d+M60eI+RA==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/tracked-map/-/tracked-map-3.0.3.tgz", + "integrity": "sha512-7wpIXZtZFJrN/P7PCiYaeUEALXrmqWv6s2ilHELLDGE3yziVW2fpcISNXuCbw/LLarVkS8fzHqw0cjonsgp4hQ==", "dependencies": { - "@libp2p/interface-metrics": "^3.0.0" + "@libp2p/interface-metrics": "^4.0.0" }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, - "node_modules/@libp2p/tracked-map/node_modules/@libp2p/interface-metrics": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@libp2p/interface-metrics/-/interface-metrics-3.0.0.tgz", - "integrity": "sha512-TxK63BrDalv0yW544608xfmg3rsbh31ykZzf7I1yjMCZpyIFOqLTH1WN4YQwXKNlMz/XURux99UTpGSRYl3nOA==", - "dependencies": { - "@libp2p/interface-peer-id": "^1.0.0", - "it-stream-types": "^1.0.4" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/tracked-map/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/tracked-map/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@libp2p/utils": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-3.0.4.tgz", @@ -4997,15 +4736,15 @@ ] }, "node_modules/@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", + "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } }, "node_modules/@noble/secp256k1": { "version": "1.7.1", @@ -6453,132 +6192,35 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@waku/byte-utils": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@waku/byte-utils/-/byte-utils-0.0.2.tgz", - "integrity": "sha512-CnInExxFX48ocn1wqjdg7B+TCGsi8mjpiek4wRIbwmk96IrsuwMtT0PVtTyKKQyU7MqS4ou0Hrz51nnsDFig2A==", - "dependencies": { - "uint8arrays": "^4.0.2" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/@waku/core": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/@waku/core/-/core-0.0.10.tgz", - "integrity": "sha512-PyQYO41jwT8dEdkyJ+TSjXc4/4S3fsHXn47l1uITa+vkQ2y2uoSiKXpl1eF+hofqJAxcMn7Mh+Ul3UTAWdGC+g==", - "dependencies": { - "@chainsafe/libp2p-gossipsub": "^5.2.1", - "@libp2p/interface-connection": "^3.0.3", - "@libp2p/interface-peer-discovery": "^1.0.0", - "@libp2p/interface-peer-id": "^1.0.6", - "@libp2p/interface-peer-info": "^1.0.4", - "@libp2p/interface-peer-store": "^1.2.3", - "@libp2p/interface-pubsub": "^3.0.1", - "@libp2p/interface-registrar": "^2.0.4", - "@libp2p/interfaces": "^3.0.4", - "@libp2p/peer-id": "^1.1.10", - "@multiformats/multiaddr": "^11.0.6", - "@noble/hashes": "^1.1.3", - "@waku/byte-utils": "*", - "@waku/interfaces": "*", - "@waku/libp2p-utils": "*", - "@waku/peer-exchange": "*", - "@waku/proto": "*", - "debug": "^4.3.4", - "it-all": "^1.0.6", - "it-length-prefixed": "^8.0.2", - "it-pipe": "^2.0.4", - "libp2p": "0.40.0", - "p-event": "^5.0.1", - "uint8arraylist": "^2.3.2", - "uint8arrays": "^4.0.2", - "uuid": "^9.0.0" - }, - "engines": { - "node": ">=16" - }, - "peerDependencies": { - "@multiformats/multiaddr": "^11.0.6" - }, - "peerDependenciesMeta": { - "@multiformats/multiaddr": { - "optional": true - } - } - }, - "node_modules/@waku/core/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@waku/core/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@waku/create": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@waku/create/-/create-0.0.4.tgz", - "integrity": "sha512-GIhcY6do+s9L26GT+zzDWyRGFEDbwnCX2ro/7PjEOVzulb6zHG2FHyfUgTymmOE2ORRC5CxxoE/pYv1ia4qvMw==", - "dependencies": { - "@chainsafe/libp2p-noise": "^10.1.0", - "@libp2p/bootstrap": "^5.0.0", - "@libp2p/interface-peer-discovery": "^1.0.2", - "@libp2p/mplex": "^7.0.0", - "@libp2p/websockets": "^5.0.0", - "@waku/core": "*", - "@waku/interfaces": "*" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/@waku/dns-discovery": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@waku/dns-discovery/-/dns-discovery-0.0.5.tgz", - "integrity": "sha512-VY7vRIIveC8CDvL6FopytclInrmOe2+L74xrbws0slhHRkChAD9BRTrWwcVa3zozPmJpidjBpgf2ntl5hSV0eg==", + "version": "0.0.14", + "resolved": "https://registry.npmjs.org/@waku/dns-discovery/-/dns-discovery-0.0.14.tgz", + "integrity": "sha512-S8kzLUvmqIuqLGcPAT6JAYFDrxB/TeMEihU4tsWWg7UBnxyQVH2lqkjzGxnqClrQ9XFukvlH1fhvn0AIkKg25A==", "dependencies": { - "@libp2p/interface-peer-discovery": "^1.0.0", - "@libp2p/interface-peer-info": "^1.0.1", - "@libp2p/interfaces": "^3.0.2", - "@libp2p/peer-id": "^1.1.10", - "@waku/byte-utils": "*", - "@waku/enr": "*", - "@waku/libp2p-utils": "*", + "@libp2p/interface-peer-discovery": "^1.0.5", + "@libp2p/interfaces": "^3.3.1", + "@waku/enr": "0.0.14", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "dns-query": "^0.11.2", "hi-base32": "^0.5.1", - "uint8arrays": "^4.0.2" + "uint8arrays": "^4.0.3" }, "engines": { "node": ">=16" } }, "node_modules/@waku/enr": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.5.tgz", - "integrity": "sha512-6S5vYRga6bnQo+eE0kBIXXJF9qz+rpjuPHRY0SDztwB4/otFF02TK/w9L3Z6Zc4LrU+Hl/CE5yD+wrCEJXQKKw==", + "version": "0.0.14", + "resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.14.tgz", + "integrity": "sha512-oujSa7lVZoVEL2A/xA1UQqkktkeSL7I1ivt6hsMfK/3BbsQPt4d4LchY5QG7Vahrebv2BZ+/tvckhQ2mkF3azg==", "dependencies": { - "@ethersproject/rlp": "^5.5.0", - "@libp2p/crypto": "^1.0.4", - "@libp2p/interface-peer-id": "^1.0.2", - "@libp2p/peer-id": "^1.1.10", - "@multiformats/multiaddr": "^11.0.6", - "@noble/secp256k1": "^1.3.4", - "@waku/byte-utils": "*", + "@ethersproject/rlp": "^5.7.0", + "@libp2p/crypto": "^1.0.17", + "@libp2p/peer-id": "^2.0.3", + "@multiformats/multiaddr": "^12.0.0", + "@noble/secp256k1": "^1.7.1", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "js-sha3": "^0.8.0" }, @@ -6586,166 +6228,230 @@ "node": ">=16" } }, - "node_modules/@waku/enr/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", + "node_modules/@waku/enr/node_modules/@libp2p/peer-id": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-2.0.4.tgz", + "integrity": "sha512-gcOsN8Fbhj6izIK+ejiWsqiqKeJ2yWPapi/m55VjOvDa52/ptQzZszxQP8jUk93u36de92ATFXDfZR/Bi6eeUQ==", "dependencies": { - "multiformats": "^10.0.0" + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.2.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2" }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, - "node_modules/@waku/enr/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", + "node_modules/@waku/enr/node_modules/@multiformats/multiaddr": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.3.tgz", + "integrity": "sha512-rNcS3njkkSwuGF4x58L47jGH5kBXBfJPNsWnrt0gujhNYn6ReDt1je7vEU5/ddrVj0TStgxw+Hm+TkYDK0b60w==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.1", + "@chainsafe/netmask": "^2.0.0", + "@libp2p/interfaces": "^3.3.1", + "dns-over-http-resolver": "^2.1.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2", + "varint": "^6.0.0" + }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, "node_modules/@waku/interfaces": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/@waku/interfaces/-/interfaces-0.0.7.tgz", - "integrity": "sha512-bccey2of+Id5v2gWriKMm5mXSGvImGZ5PQUvsabx8T/0A1/kiOnRFSHuujeMtSi14z318Se7xXIfOYFmXbdH5w==", - "dependencies": { - "@chainsafe/libp2p-gossipsub": "^5.2.1", - "@libp2p/interface-connection": "^3.0.2", - "@libp2p/interface-peer-id": "^1.0.5", - "@libp2p/interface-peer-store": "^1.2.3", - "@multiformats/multiaddr": "^11.0.6", - "libp2p": "0.40.0" - }, + "version": "0.0.15", + "resolved": "https://registry.npmjs.org/@waku/interfaces/-/interfaces-0.0.15.tgz", + "integrity": "sha512-l8MDtMtA51nWeeU36lZV07JWMLHmnn7Dm93ihS2lgqWACbhzwOEDZ3alox4T8Um7A3RmnK/WZ5U2Cprs3ukt8w==", "engines": { "node": ">=16" } }, - "node_modules/@waku/interfaces/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@waku/interfaces/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@waku/libp2p-utils": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/@waku/libp2p-utils/-/libp2p-utils-0.0.3.tgz", - "integrity": "sha512-E3QIGMwtISQu3TJws3JSocM70/yQrohbd4+2DzkPmu2+7X0EYMRRhn4qkoFK6R2egj0g6ibNsg/oyUp1WOLLFQ==", - "dependencies": { - "@libp2p/interface-connection": "^3.0.3", - "@libp2p/interface-peer-id": "^1.0.6", - "@libp2p/interface-peer-info": "^1.0.1", - "@libp2p/interface-peer-store": "^1.2.3", - "@libp2p/peer-id": "^1.1.10", - "@multiformats/multiaddr": "^11.0.6", - "debug": "^4.3.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/@waku/libp2p-utils/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@waku/libp2p-utils/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@waku/peer-exchange": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/@waku/peer-exchange/-/peer-exchange-0.0.3.tgz", - "integrity": "sha512-D1/A0Bk0utPJaxDweWBg3e8J7mF/sScuGEqfsveCwLtsFtoBDvZwJ9fxFv08Ht8oB5LzCfzDz4teiIJwntvO0w==", + "version": "0.0.13", + "resolved": "https://registry.npmjs.org/@waku/peer-exchange/-/peer-exchange-0.0.13.tgz", + "integrity": "sha512-tOLlOffcl674qZt6wIi2VjgTra6T5ZXk/KEKxMoBGz4QKO4EdJEwvQyCjVhwnZltUYVqyUkcOlialswUuyQhpw==", "dependencies": { - "@libp2p/interface-connection": "^3.0.3", - "@libp2p/interface-peer-discovery": "^1.0.0", - "@libp2p/interface-peer-id": "^1.0.6", - "@libp2p/interface-peer-info": "^1.0.4", - "@libp2p/interface-peer-store": "^1.2.3", - "@waku/core": "*", - "@waku/enr": "*", - "@waku/interfaces": "*", - "@waku/libp2p-utils": "*", - "@waku/proto": "*", + "@libp2p/interface-peer-discovery": "^1.0.5", + "@libp2p/interfaces": "^3.3.1", + "@waku/core": "0.0.20", + "@waku/enr": "0.0.14", + "@waku/proto": "0.0.5", + "@waku/utils": "0.0.8", "debug": "^4.3.4", - "it-all": "^1.0.6", - "it-length-prefixed": "^8.0.2", - "it-pipe": "^2.0.4", - "uint8arraylist": "^2.3.2" + "it-all": "^3.0.2", + "it-length-prefixed": "^9.0.1", + "it-pipe": "^3.0.1" }, "engines": { "node": ">=16" } }, - "node_modules/@waku/peer-exchange/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", + "node_modules/@waku/peer-exchange/node_modules/@multiformats/multiaddr": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.3.tgz", + "integrity": "sha512-rNcS3njkkSwuGF4x58L47jGH5kBXBfJPNsWnrt0gujhNYn6ReDt1je7vEU5/ddrVj0TStgxw+Hm+TkYDK0b60w==", + "optional": true, + "peer": true, "dependencies": { - "multiformats": "^10.0.0" + "@chainsafe/is-ip": "^2.0.1", + "@chainsafe/netmask": "^2.0.0", + "@libp2p/interfaces": "^3.3.1", + "dns-over-http-resolver": "^2.1.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2", + "varint": "^6.0.0" }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, - "node_modules/@waku/peer-exchange/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", + "node_modules/@waku/peer-exchange/node_modules/@waku/core": { + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/@waku/core/-/core-0.0.20.tgz", + "integrity": "sha512-1p8TmOvbGhUQZHKE+w1FQtmp+EDTNQEsSgrsMoSjzGVdI+XuQQ/l2aefwOuBQHIHh99+VZBQ9ut+ArstFHks/A==", + "dependencies": { + "@noble/hashes": "^1.3.0", + "@waku/interfaces": "0.0.15", + "@waku/proto": "0.0.5", + "@waku/utils": "0.0.8", + "debug": "^4.3.4", + "it-all": "^3.0.2", + "it-length-prefixed": "^9.0.1", + "it-pipe": "^3.0.1", + "p-event": "^5.0.1", + "uint8arraylist": "^2.4.3", + "uuid": "^9.0.0" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@multiformats/multiaddr": "^12.0.0", + "libp2p": "^0.42.2" + }, + "peerDependenciesMeta": { + "@multiformats/multiaddr": { + "optional": true + } + } + }, + "node_modules/@waku/peer-exchange/node_modules/it-length-prefixed": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/it-length-prefixed/-/it-length-prefixed-9.0.1.tgz", + "integrity": "sha512-ZBD8ZFLERj8d1q9CeBtk0eJ4EpeI3qwnkmWtemBSm3ZI2dM8PUweNVk5haZ2vw3EIq2uYQiabV9YwNm6EASM4A==", + "dependencies": { + "err-code": "^3.0.1", + "it-stream-types": "^2.0.1", + "uint8-varint": "^1.0.1", + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/peer-exchange/node_modules/it-merge": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/it-merge/-/it-merge-3.0.1.tgz", + "integrity": "sha512-I6hjU1ABO+k3xY1H6JtCSDXvUME88pxIXSgKeT4WI5rPYbQzpr98ldacVuG95WbjaJxKl6Qot6lUdxduLBQPHA==", + "dependencies": { + "it-pushable": "^3.1.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/peer-exchange/node_modules/it-pipe": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/it-pipe/-/it-pipe-3.0.1.tgz", + "integrity": "sha512-sIoNrQl1qSRg2seYSBH/3QxWhJFn9PKYvOf/bHdtCBF0bnghey44VyASsWzn5dAx0DCDDABq1hZIuzKmtBZmKA==", + "dependencies": { + "it-merge": "^3.0.0", + "it-pushable": "^3.1.2", + "it-stream-types": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/peer-exchange/node_modules/it-stream-types": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz", + "integrity": "sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==", "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, "node_modules/@waku/proto": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@waku/proto/-/proto-0.0.2.tgz", - "integrity": "sha512-5+hERUscSRbERu2BkTqvSR4Jl3YMvtPegQ/YZbhwBTk5MBS23kGzMBxf1MdQ3Sfy5TiU7yc2Q5G5vItvPkEOUw==", + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@waku/proto/-/proto-0.0.5.tgz", + "integrity": "sha512-td0WKhUm+pcnpkbhuu5XV79ZcuM+f7b5swNIHHcqCaW5FaJeCtEhXsG8kNrt97kcDAHdr41lxFgQTRDlmAns4A==", "dependencies": { - "protons-runtime": "^3.1.0" + "protons-runtime": "^5.0.0" }, "engines": { "node": ">=16" } }, - "node_modules/@waku/react": { - "version": "0.0.1-a", - "resolved": "https://registry.npmjs.org/@waku/react/-/react-0.0.1-a.tgz", - "integrity": "sha512-vkvsNJIKjELPh6okgLgqXnEuNnD5DFMnj/q9hZuz1NB53VhZnpFm/V8o3fo/Is+uJkdNU+liAafUw9GmRd93WA==", + "node_modules/@waku/proto/node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/@waku/proto/node_modules/protobufjs": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", + "integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", + "hasInstallScript": true, "dependencies": { - "@waku/core": "^0.0.10", - "@waku/create": "^0.0.6" + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@waku/proto/node_modules/protons-runtime": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.0.tgz", + "integrity": "sha512-QqjGnPGkpvbzq0dITzhG9DVK10rRIHf7nePcU2QQVVpFGuYbwrOWnvGSvei1GcceAzB9syTz6vHzvTPmGRR0PA==", + "dependencies": { + "protobufjs": "^7.0.0", + "uint8arraylist": "^2.4.3" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + }, + "peerDependencies": { + "uint8arraylist": "^2.3.2" + } + }, + "node_modules/@waku/react": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@waku/react/-/react-0.0.2.tgz", + "integrity": "sha512-YL0y0W4kMqt6hhuKccy2t3jwBi4yvLz+UjDQeyDqCrlb3MfP8FE17pf1h17Ze1NUmkiq+/wwbyBH3ZiByu3g+Q==", + "dependencies": { + "@waku/relay": "^0.0.3", + "@waku/sdk": "^0.0.16" }, "engines": { "node": ">=18" @@ -6754,70 +6460,570 @@ "react": "^16.8.0 || ^17 || ^18" } }, - "node_modules/@waku/react/node_modules/@libp2p/interface-metrics": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@libp2p/interface-metrics/-/interface-metrics-3.0.0.tgz", - "integrity": "sha512-TxK63BrDalv0yW544608xfmg3rsbh31ykZzf7I1yjMCZpyIFOqLTH1WN4YQwXKNlMz/XURux99UTpGSRYl3nOA==", + "node_modules/@waku/relay": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@waku/relay/-/relay-0.0.3.tgz", + "integrity": "sha512-KDcfuOnTu/8HjNTwPXeVyd+qEIPZ7AXH0p4EwbfiucHbYWy7ahpljYz1fExwG7nKFsZ9uKtB7QGBBDy1ghKMCA==", "dependencies": { - "@libp2p/interface-peer-id": "^1.0.0", - "it-stream-types": "^1.0.4" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@waku/react/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@waku/react/node_modules/@waku/create": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/@waku/create/-/create-0.0.6.tgz", - "integrity": "sha512-5xIzHBU27pYiIhZK6ydZ19zt7ArcJPdFBKsomiFeA+fYZPeeSIkmnjSoe0KTrWKZDtbwh3mlbuCLVeBaXC8xRg==", - "dependencies": { - "@chainsafe/libp2p-noise": "^10.1.0", - "@libp2p/bootstrap": "^5.0.0", - "@libp2p/interface-address-manager": "^2.0.1", - "@libp2p/interface-connection": "^3.0.3", - "@libp2p/interface-connection-manager": "^1.3.1", - "@libp2p/interface-content-routing": "^1.0.4", - "@libp2p/interface-dht": "^1.0.3", - "@libp2p/interface-metrics": "^3.0.0", - "@libp2p/interface-peer-discovery": "^1.0.2", - "@libp2p/interface-peer-id": "^1.0.6", - "@libp2p/interface-peer-routing": "^1.0.2", - "@libp2p/interface-peer-store": "^1.2.3", - "@libp2p/interface-pubsub": "^3.0.1", - "@libp2p/interface-registrar": "^2.0.4", - "@libp2p/interface-transport": "^2.0.1", - "@libp2p/mplex": "^7.0.0", - "@libp2p/websockets": "^5.0.0", - "@waku/core": "*", - "@waku/peer-exchange": "*", - "interface-datastore": "^7.0.1" + "@chainsafe/libp2p-gossipsub": "^6.1.0", + "@noble/hashes": "^1.3.0", + "@waku/core": "0.0.20", + "@waku/interfaces": "0.0.15", + "@waku/proto": "0.0.5", + "@waku/utils": "0.0.8", + "chai": "^4.3.7", + "debug": "^4.3.4", + "fast-check": "^3.8.1" }, "engines": { "node": ">=16" } }, - "node_modules/@waku/react/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", + "node_modules/@waku/relay/node_modules/@chainsafe/libp2p-gossipsub": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-gossipsub/-/libp2p-gossipsub-6.3.0.tgz", + "integrity": "sha512-yRgMB5JpyPROjmhOeOmzJUAKci19qBEnpH80201f8JkkviUJo7+X8i3MUkammlbFg0VhaTKBT98Osbko9+rT1w==", + "dependencies": { + "@libp2p/crypto": "^1.0.3", + "@libp2p/interface-connection": "^4.0.0", + "@libp2p/interface-connection-manager": "^1.3.0", + "@libp2p/interface-keys": "^1.0.3", + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interface-peer-store": "^1.2.2", + "@libp2p/interface-pubsub": "^3.0.0", + "@libp2p/interface-registrar": "^2.0.3", + "@libp2p/interfaces": "^3.2.0", + "@libp2p/logger": "^2.0.0", + "@libp2p/peer-id": "^2.0.0", + "@libp2p/peer-record": "^5.0.0", + "@libp2p/pubsub": "^6.0.0", + "@libp2p/topology": "^4.0.0", + "@multiformats/multiaddr": "^12.0.0", + "abortable-iterator": "^4.0.2", + "denque": "^1.5.0", + "it-length-prefixed": "^8.0.2", + "it-pipe": "^2.0.4", + "it-pushable": "^3.1.0", + "multiformats": "^11.0.0", + "protobufjs": "^6.11.2", + "uint8arraylist": "^2.3.2", + "uint8arrays": "^4.0.2" + }, + "engines": { + "npm": ">=8.7.0" + } + }, + "node_modules/@waku/relay/node_modules/@chainsafe/libp2p-gossipsub/node_modules/@libp2p/interface-connection": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@libp2p/interface-connection/-/interface-connection-4.0.0.tgz", + "integrity": "sha512-6xx/NmEc84HX7QmsjSC3hHredQYjHv4Dkf4G27adAPf+qN+vnPxmQ7gaTnk243a0++DOFTbZ2gKX/15G2B6SRg==", + "dependencies": { + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.0.0", + "@multiformats/multiaddr": "^12.0.0", + "it-stream-types": "^1.0.4", + "uint8arraylist": "^2.1.2" + }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, + "node_modules/@waku/relay/node_modules/@libp2p/peer-id": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-2.0.4.tgz", + "integrity": "sha512-gcOsN8Fbhj6izIK+ejiWsqiqKeJ2yWPapi/m55VjOvDa52/ptQzZszxQP8jUk93u36de92ATFXDfZR/Bi6eeUQ==", + "dependencies": { + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.2.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@libp2p/pubsub": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/@libp2p/pubsub/-/pubsub-6.0.6.tgz", + "integrity": "sha512-/JU4xvtZIYDxOyiHIk4MlpnAJuqfZsabDP+4f59QlXNsppOmiIujaDhN3eFBFIKG29XDSgHZBzKMLK+XsB8O5g==", + "dependencies": { + "@libp2p/crypto": "^1.0.0", + "@libp2p/interface-connection": "^4.0.0", + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interface-pubsub": "^3.0.0", + "@libp2p/interface-registrar": "^2.0.0", + "@libp2p/interfaces": "^3.2.0", + "@libp2p/logger": "^2.0.0", + "@libp2p/peer-collections": "^3.0.0", + "@libp2p/peer-id": "^2.0.0", + "@libp2p/topology": "^4.0.0", + "abortable-iterator": "^4.0.2", + "it-length-prefixed": "^9.0.0", + "it-pipe": "^3.0.0", + "it-pushable": "^3.0.0", + "multiformats": "^11.0.0", + "p-queue": "^7.2.0", + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@libp2p/pubsub/node_modules/@libp2p/interface-connection": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@libp2p/interface-connection/-/interface-connection-4.0.0.tgz", + "integrity": "sha512-6xx/NmEc84HX7QmsjSC3hHredQYjHv4Dkf4G27adAPf+qN+vnPxmQ7gaTnk243a0++DOFTbZ2gKX/15G2B6SRg==", + "dependencies": { + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.0.0", + "@multiformats/multiaddr": "^12.0.0", + "it-stream-types": "^1.0.4", + "uint8arraylist": "^2.1.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@libp2p/pubsub/node_modules/it-length-prefixed": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/it-length-prefixed/-/it-length-prefixed-9.0.1.tgz", + "integrity": "sha512-ZBD8ZFLERj8d1q9CeBtk0eJ4EpeI3qwnkmWtemBSm3ZI2dM8PUweNVk5haZ2vw3EIq2uYQiabV9YwNm6EASM4A==", + "dependencies": { + "err-code": "^3.0.1", + "it-stream-types": "^2.0.1", + "uint8-varint": "^1.0.1", + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@libp2p/pubsub/node_modules/it-length-prefixed/node_modules/it-stream-types": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz", + "integrity": "sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@libp2p/pubsub/node_modules/it-merge": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/it-merge/-/it-merge-3.0.1.tgz", + "integrity": "sha512-I6hjU1ABO+k3xY1H6JtCSDXvUME88pxIXSgKeT4WI5rPYbQzpr98ldacVuG95WbjaJxKl6Qot6lUdxduLBQPHA==", + "dependencies": { + "it-pushable": "^3.1.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@libp2p/pubsub/node_modules/it-pipe": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/it-pipe/-/it-pipe-3.0.1.tgz", + "integrity": "sha512-sIoNrQl1qSRg2seYSBH/3QxWhJFn9PKYvOf/bHdtCBF0bnghey44VyASsWzn5dAx0DCDDABq1hZIuzKmtBZmKA==", + "dependencies": { + "it-merge": "^3.0.0", + "it-pushable": "^3.1.2", + "it-stream-types": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@libp2p/pubsub/node_modules/it-pipe/node_modules/it-stream-types": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz", + "integrity": "sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@libp2p/topology": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/topology/-/topology-4.0.3.tgz", + "integrity": "sha512-uXd9ZYpmgb+onMTypsAPUlvKKeY20HMtxwsjAMEfDa29yqshK8DiEunHZNjLmtXaMIIO9CBl2w5ykjt5TtFsBQ==", + "dependencies": { + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interface-registrar": "^2.0.3" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@multiformats/multiaddr": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.3.tgz", + "integrity": "sha512-rNcS3njkkSwuGF4x58L47jGH5kBXBfJPNsWnrt0gujhNYn6ReDt1je7vEU5/ddrVj0TStgxw+Hm+TkYDK0b60w==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.1", + "@chainsafe/netmask": "^2.0.0", + "@libp2p/interfaces": "^3.3.1", + "dns-over-http-resolver": "^2.1.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2", + "varint": "^6.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@waku/core": { + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/@waku/core/-/core-0.0.20.tgz", + "integrity": "sha512-1p8TmOvbGhUQZHKE+w1FQtmp+EDTNQEsSgrsMoSjzGVdI+XuQQ/l2aefwOuBQHIHh99+VZBQ9ut+ArstFHks/A==", + "dependencies": { + "@noble/hashes": "^1.3.0", + "@waku/interfaces": "0.0.15", + "@waku/proto": "0.0.5", + "@waku/utils": "0.0.8", + "debug": "^4.3.4", + "it-all": "^3.0.2", + "it-length-prefixed": "^9.0.1", + "it-pipe": "^3.0.1", + "p-event": "^5.0.1", + "uint8arraylist": "^2.4.3", + "uuid": "^9.0.0" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@multiformats/multiaddr": "^12.0.0", + "libp2p": "^0.42.2" + }, + "peerDependenciesMeta": { + "@multiformats/multiaddr": { + "optional": true + } + } + }, + "node_modules/@waku/relay/node_modules/@waku/core/node_modules/it-length-prefixed": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/it-length-prefixed/-/it-length-prefixed-9.0.1.tgz", + "integrity": "sha512-ZBD8ZFLERj8d1q9CeBtk0eJ4EpeI3qwnkmWtemBSm3ZI2dM8PUweNVk5haZ2vw3EIq2uYQiabV9YwNm6EASM4A==", + "dependencies": { + "err-code": "^3.0.1", + "it-stream-types": "^2.0.1", + "uint8-varint": "^1.0.1", + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@waku/core/node_modules/it-merge": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/it-merge/-/it-merge-3.0.1.tgz", + "integrity": "sha512-I6hjU1ABO+k3xY1H6JtCSDXvUME88pxIXSgKeT4WI5rPYbQzpr98ldacVuG95WbjaJxKl6Qot6lUdxduLBQPHA==", + "dependencies": { + "it-pushable": "^3.1.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@waku/core/node_modules/it-pipe": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/it-pipe/-/it-pipe-3.0.1.tgz", + "integrity": "sha512-sIoNrQl1qSRg2seYSBH/3QxWhJFn9PKYvOf/bHdtCBF0bnghey44VyASsWzn5dAx0DCDDABq1hZIuzKmtBZmKA==", + "dependencies": { + "it-merge": "^3.0.0", + "it-pushable": "^3.1.2", + "it-stream-types": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/relay/node_modules/@waku/core/node_modules/it-stream-types": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz", + "integrity": "sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk": { + "version": "0.0.16", + "resolved": "https://registry.npmjs.org/@waku/sdk/-/sdk-0.0.16.tgz", + "integrity": "sha512-G9R+2rwOf8DE+lzLfcM5d5IICeRmktyfH4g77aWkgsBA5GvBJoMY5vnIS1j1tqJ+J4UfGp+CggHmHW+x9li1mA==", + "dependencies": { + "@chainsafe/libp2p-noise": "^11.0.0", + "@libp2p/mplex": "^7.1.1", + "@libp2p/websockets": "^5.0.3", + "@waku/core": "0.0.20", + "@waku/dns-discovery": "0.0.14", + "@waku/relay": "0.0.3", + "@waku/utils": "0.0.8", + "libp2p": "^0.42.2" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/@waku/sdk/node_modules/@chainsafe/libp2p-noise": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-noise/-/libp2p-noise-11.0.4.tgz", + "integrity": "sha512-X7kA6a3/QPFxNFwgUJ8vubDu5qBDcDT0nhD+jL7g60IFKZu//HFH7oqsNCZa12yx0oR1fEYOR62iHDt2GHyWBQ==", + "dependencies": { + "@libp2p/crypto": "^1.0.11", + "@libp2p/interface-connection-encrypter": "^3.0.5", + "@libp2p/interface-keys": "^1.0.6", + "@libp2p/interface-metrics": "^4.0.4", + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/logger": "^2.0.5", + "@libp2p/peer-id": "^2.0.0", + "@stablelib/chacha20poly1305": "^1.0.1", + "@stablelib/hkdf": "^1.0.1", + "@stablelib/sha256": "^1.0.1", + "@stablelib/x25519": "^1.0.3", + "it-length-prefixed": "^8.0.2", + "it-pair": "^2.0.2", + "it-pb-stream": "^3.2.0", + "it-pipe": "^2.0.3", + "it-stream-types": "^1.0.4", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.3.2", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/@libp2p/peer-id": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-2.0.4.tgz", + "integrity": "sha512-gcOsN8Fbhj6izIK+ejiWsqiqKeJ2yWPapi/m55VjOvDa52/ptQzZszxQP8jUk93u36de92ATFXDfZR/Bi6eeUQ==", + "dependencies": { + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.2.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/@multiformats/multiaddr": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.3.tgz", + "integrity": "sha512-rNcS3njkkSwuGF4x58L47jGH5kBXBfJPNsWnrt0gujhNYn6ReDt1je7vEU5/ddrVj0TStgxw+Hm+TkYDK0b60w==", + "optional": true, + "peer": true, + "dependencies": { + "@chainsafe/is-ip": "^2.0.1", + "@chainsafe/netmask": "^2.0.0", + "@libp2p/interfaces": "^3.3.1", + "dns-over-http-resolver": "^2.1.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2", + "varint": "^6.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/@waku/core": { + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/@waku/core/-/core-0.0.20.tgz", + "integrity": "sha512-1p8TmOvbGhUQZHKE+w1FQtmp+EDTNQEsSgrsMoSjzGVdI+XuQQ/l2aefwOuBQHIHh99+VZBQ9ut+ArstFHks/A==", + "dependencies": { + "@noble/hashes": "^1.3.0", + "@waku/interfaces": "0.0.15", + "@waku/proto": "0.0.5", + "@waku/utils": "0.0.8", + "debug": "^4.3.4", + "it-all": "^3.0.2", + "it-length-prefixed": "^9.0.1", + "it-pipe": "^3.0.1", + "p-event": "^5.0.1", + "uint8arraylist": "^2.4.3", + "uuid": "^9.0.0" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@multiformats/multiaddr": "^12.0.0", + "libp2p": "^0.42.2" + }, + "peerDependenciesMeta": { + "@multiformats/multiaddr": { + "optional": true + } + } + }, + "node_modules/@waku/sdk/node_modules/@waku/core/node_modules/it-length-prefixed": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/it-length-prefixed/-/it-length-prefixed-9.0.1.tgz", + "integrity": "sha512-ZBD8ZFLERj8d1q9CeBtk0eJ4EpeI3qwnkmWtemBSm3ZI2dM8PUweNVk5haZ2vw3EIq2uYQiabV9YwNm6EASM4A==", + "dependencies": { + "err-code": "^3.0.1", + "it-stream-types": "^2.0.1", + "uint8-varint": "^1.0.1", + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/@waku/core/node_modules/it-merge": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/it-merge/-/it-merge-3.0.1.tgz", + "integrity": "sha512-I6hjU1ABO+k3xY1H6JtCSDXvUME88pxIXSgKeT4WI5rPYbQzpr98ldacVuG95WbjaJxKl6Qot6lUdxduLBQPHA==", + "dependencies": { + "it-pushable": "^3.1.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/@waku/core/node_modules/it-pipe": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/it-pipe/-/it-pipe-3.0.1.tgz", + "integrity": "sha512-sIoNrQl1qSRg2seYSBH/3QxWhJFn9PKYvOf/bHdtCBF0bnghey44VyASsWzn5dAx0DCDDABq1hZIuzKmtBZmKA==", + "dependencies": { + "it-merge": "^3.0.0", + "it-pushable": "^3.1.2", + "it-stream-types": "^2.0.1" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/@waku/core/node_modules/it-stream-types": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz", + "integrity": "sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/it-pb-stream": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/it-pb-stream/-/it-pb-stream-3.2.1.tgz", + "integrity": "sha512-vKE04Zv5MUcwxPNE9bIEfYK3rd/Klj5ORGD1D8Bn5f0mbCLGfouSrqZP1Jntg2osqQg4BN5dKKS2BbfwyGUI3Q==", + "dependencies": { + "err-code": "^3.0.1", + "it-length-prefixed": "^9.0.0", + "it-pushable": "^3.1.2", + "it-stream-types": "^1.0.4", + "protons-runtime": "^5.0.0", + "uint8-varint": "^1.0.6", + "uint8arraylist": "^2.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/it-pb-stream/node_modules/it-length-prefixed": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/it-length-prefixed/-/it-length-prefixed-9.0.1.tgz", + "integrity": "sha512-ZBD8ZFLERj8d1q9CeBtk0eJ4EpeI3qwnkmWtemBSm3ZI2dM8PUweNVk5haZ2vw3EIq2uYQiabV9YwNm6EASM4A==", + "dependencies": { + "err-code": "^3.0.1", + "it-stream-types": "^2.0.1", + "uint8-varint": "^1.0.1", + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/it-pb-stream/node_modules/it-length-prefixed/node_modules/it-stream-types": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz", + "integrity": "sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/@waku/sdk/node_modules/protobufjs": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", + "integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@waku/sdk/node_modules/protons-runtime": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-5.0.0.tgz", + "integrity": "sha512-QqjGnPGkpvbzq0dITzhG9DVK10rRIHf7nePcU2QQVVpFGuYbwrOWnvGSvei1GcceAzB9syTz6vHzvTPmGRR0PA==", + "dependencies": { + "protobufjs": "^7.0.0", + "uint8arraylist": "^2.4.3" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + }, + "peerDependencies": { + "uint8arraylist": "^2.3.2" + } + }, + "node_modules/@waku/utils": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/@waku/utils/-/utils-0.0.8.tgz", + "integrity": "sha512-pMs06f+P+jBq8v4Hyek7VTkCB0Suxc+baXqNfqTdM7xqzmwnCjfi1q9ummCln17Q3+6lVsbwHzUfikGTyoMeow==", + "dependencies": { + "debug": "^4.3.4", + "uint8arrays": "^4.0.3" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/@webassemblyjs/ast": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", @@ -7436,6 +7642,14 @@ "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" }, + "node_modules/assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "engines": { + "node": "*" + } + }, "node_modules/ast-types-flow": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", @@ -8296,6 +8510,23 @@ "node": ">= 10" } }, + "node_modules/chai": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz", + "integrity": "sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==", + "dependencies": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.2", + "deep-eql": "^4.1.2", + "get-func-name": "^2.0.0", + "loupe": "^2.3.1", + "pathval": "^1.1.1", + "type-detect": "^4.0.5" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -8326,6 +8557,14 @@ "node": ">=10" } }, + "node_modules/check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==", + "engines": { + "node": "*" + } + }, "node_modules/check-types": { "version": "11.2.2", "resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.2.tgz", @@ -9591,6 +9830,17 @@ "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", "dev": true }, + "node_modules/deep-eql": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", + "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", + "dependencies": { + "type-detect": "^4.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/deep-equal": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.0.tgz", @@ -11150,6 +11400,27 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true }, + "node_modules/fast-check": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.10.0.tgz", + "integrity": "sha512-I2FldZwnCbcY6iL+H0rp9m4D+O3PotuFu9FasWjMCzUedYHMP89/37JbSt6/n7Yq/IZmJDW0B2h30sPYdzrfzw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "dependencies": { + "pure-rand": "^6.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -11760,6 +12031,14 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", + "engines": { + "node": "*" + } + }, "node_modules/get-intrinsic": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", @@ -12842,25 +13121,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-ip": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-3.1.0.tgz", - "integrity": "sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==", - "dependencies": { - "ip-regex": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-ip/node_modules/ip-regex": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", - "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", - "engines": { - "node": ">=8" - } - }, "node_modules/is-loopback-addr": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-loopback-addr/-/is-loopback-addr-2.0.1.tgz", @@ -13246,9 +13506,13 @@ } }, "node_modules/it-all": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-1.0.6.tgz", - "integrity": "sha512-3cmCc6Heqe3uWi3CVM/k51fa/XbMFpQVzFoDsV0IZNHSQDyAXl3c4MjHkFX5kF3922OGj7Myv1nSEUgRtcuM1A==" + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/it-all/-/it-all-3.0.2.tgz", + "integrity": "sha512-ujqWETXhsDbF6C+6X6fvRw5ohlowRoy/o/h9BC8D+R3JQ13oLQ153w9gSWkWupOY7omZFQbJiAL1aJo5Gwe2yw==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } }, "node_modules/it-batched-bytes": { "version": "1.0.0", @@ -13366,21 +13630,6 @@ "npm": ">=7.0.0" } }, - "node_modules/it-pb-stream": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/it-pb-stream/-/it-pb-stream-2.0.4.tgz", - "integrity": "sha512-p0chBIT3HrZt3hIqvBEi+NgZxxT25MTJ362nKoHmzA/k/WsUPPbeSz7Ad+wRcGxZn2O5JEXCS5lOGRjSDSnlNg==", - "dependencies": { - "it-handshake": "^4.1.2", - "it-length-prefixed": "^8.0.2", - "it-stream-types": "^1.0.4", - "uint8arraylist": "^2.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/it-pipe": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/it-pipe/-/it-pipe-2.0.5.tgz", @@ -13396,9 +13645,9 @@ } }, "node_modules/it-pushable": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/it-pushable/-/it-pushable-3.1.2.tgz", - "integrity": "sha512-zU9FbeoGT0f+yobwm8agol2OTMXbq4ZSWLEi7hug6TEZx4qVhGhGyp31cayH04aBYsIoO2Nr5kgMjH/oWj2BJQ==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/it-pushable/-/it-pushable-3.1.3.tgz", + "integrity": "sha512-f50iQ85HISS6DaWCyrqf9QJ6G/kQtKIMf9xZkgZgyOvxEQDfn8OfYcLXXquCqgoLboxQtAW1ZFZyFIAsLHDtJw==", "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" @@ -14741,38 +14990,38 @@ } }, "node_modules/libp2p": { - "version": "0.40.0", - "resolved": "https://registry.npmjs.org/libp2p/-/libp2p-0.40.0.tgz", - "integrity": "sha512-AeLaA+8KIhUhjpXZcs20+Pnf2wIBp+zdSYPD1IgGCF0PlMbTdCvaIqhPzpTSd3+e5k7NZlgpd/BvCOLgQbfm5Q==", + "version": "0.42.2", + "resolved": "https://registry.npmjs.org/libp2p/-/libp2p-0.42.2.tgz", + "integrity": "sha512-arTOCJEEmAFw5HjlXdULVAFs7Y/dWZmgX/qN4SzuxtSkB0pa+fqn/DIbIfpBi2BuY+QozvnARPF1xJtSdqfqJQ==", "dependencies": { "@achingbrain/nat-port-mapper": "^1.0.3", - "@libp2p/connection": "^4.0.2", "@libp2p/crypto": "^1.0.4", "@libp2p/interface-address-manager": "^2.0.0", "@libp2p/interface-connection": "^3.0.2", "@libp2p/interface-connection-encrypter": "^3.0.1", "@libp2p/interface-connection-manager": "^1.1.1", - "@libp2p/interface-content-routing": "^1.0.2", - "@libp2p/interface-dht": "^1.0.1", - "@libp2p/interface-metrics": "^3.0.0", + "@libp2p/interface-content-routing": "^2.0.0", + "@libp2p/interface-dht": "^2.0.0", + "@libp2p/interface-libp2p": "^1.0.0", + "@libp2p/interface-metrics": "^4.0.0", "@libp2p/interface-peer-discovery": "^1.0.1", - "@libp2p/interface-peer-id": "^1.0.4", + "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interface-peer-info": "^1.0.3", "@libp2p/interface-peer-routing": "^1.0.1", "@libp2p/interface-peer-store": "^1.2.2", "@libp2p/interface-pubsub": "^3.0.0", "@libp2p/interface-registrar": "^2.0.3", "@libp2p/interface-stream-muxer": "^3.0.0", - "@libp2p/interface-transport": "^2.0.0", + "@libp2p/interface-transport": "^2.1.0", "@libp2p/interfaces": "^3.0.3", "@libp2p/logger": "^2.0.1", "@libp2p/multistream-select": "^3.0.0", - "@libp2p/peer-collections": "^2.0.0", - "@libp2p/peer-id": "^1.1.15", - "@libp2p/peer-id-factory": "^1.0.18", - "@libp2p/peer-record": "^4.0.3", - "@libp2p/peer-store": "^5.0.0", - "@libp2p/tracked-map": "^2.0.1", + "@libp2p/peer-collections": "^3.0.0", + "@libp2p/peer-id": "^2.0.0", + "@libp2p/peer-id-factory": "^2.0.0", + "@libp2p/peer-record": "^5.0.0", + "@libp2p/peer-store": "^6.0.0", + "@libp2p/tracked-map": "^3.0.0", "@libp2p/utils": "^3.0.2", "@multiformats/mafmt": "^11.0.2", "@multiformats/multiaddr": "^11.0.0", @@ -14797,13 +15046,12 @@ "it-sort": "^2.0.0", "it-stream-types": "^1.0.4", "merge-options": "^3.0.4", - "multiformats": "^10.0.0", - "mutable-proxy": "^1.0.0", + "multiformats": "^11.0.0", "node-forge": "^1.3.1", "p-fifo": "^1.0.0", "p-retry": "^5.0.0", "p-settle": "^5.0.0", - "private-ip": "^2.3.3", + "private-ip": "^3.0.0", "protons-runtime": "^4.0.1", "rate-limiter-flexible": "^2.3.11", "retimer": "^3.0.0", @@ -14820,77 +15068,39 @@ "npm": ">=7.0.0" } }, - "node_modules/libp2p/node_modules/@libp2p/interface-metrics": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@libp2p/interface-metrics/-/interface-metrics-3.0.0.tgz", - "integrity": "sha512-TxK63BrDalv0yW544608xfmg3rsbh31ykZzf7I1yjMCZpyIFOqLTH1WN4YQwXKNlMz/XURux99UTpGSRYl3nOA==", + "node_modules/libp2p/node_modules/@libp2p/peer-id": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-2.0.4.tgz", + "integrity": "sha512-gcOsN8Fbhj6izIK+ejiWsqiqKeJ2yWPapi/m55VjOvDa52/ptQzZszxQP8jUk93u36de92ATFXDfZR/Bi6eeUQ==", "dependencies": { - "@libp2p/interface-peer-id": "^1.0.0", - "it-stream-types": "^1.0.4" + "@libp2p/interface-peer-id": "^2.0.0", + "@libp2p/interfaces": "^3.2.0", + "multiformats": "^11.0.0", + "uint8arrays": "^4.0.2" }, "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, - "node_modules/libp2p/node_modules/@libp2p/interface-peer-id": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@libp2p/interface-peer-id/-/interface-peer-id-1.1.2.tgz", - "integrity": "sha512-S5iyVzG2EUgxm4NLe8W4ya9kpKuGfHs7Wbbos0wOUB4GXsbIKgOOxIr4yf+xGFgtEBaoximvlLkpob6dn8VFgA==", - "dependencies": { - "multiformats": "^10.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/libp2p/node_modules/ip-regex": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", - "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", - "engines": { - "node": ">=8" - } - }, "node_modules/libp2p/node_modules/it-all": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-2.0.0.tgz", - "integrity": "sha512-I/yi9ogTY59lFxtfsDSlI9w9QZtC/5KJt6g7CPPBJJh2xql2ZS7Ghcp9hoqDDbc4QfwQvtx8Loy0zlKQ8H5gFg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/it-all/-/it-all-2.0.1.tgz", + "integrity": "sha512-9UuJcCRZsboz+HBQTNOau80Dw+ryGaHYFP/cPYzFBJBFcfDathMYnhHk4t52en9+fcyDGPTdLB+lFc1wzQIroA==", "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" } }, "node_modules/libp2p/node_modules/long": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", - "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" - }, - "node_modules/libp2p/node_modules/multiformats": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-10.0.3.tgz", - "integrity": "sha512-K2yGSmstS/oEmYiEIieHb53jJCaqp4ERPDQAYrm5sV3UUrVDZeshJQCK6GHAKyIGufU1vAcbS0PdAAZmC7Tzcw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/libp2p/node_modules/private-ip": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/private-ip/-/private-ip-2.3.4.tgz", - "integrity": "sha512-ts/YFVwfBeLq61f9+KsOhXW6RH0wvY0gU50R6QZYzgFhggyyLK6WDFeYdjfi/HMnBm2hecLvsR3PB3JcRxDk+A==", - "dependencies": { - "ip-regex": "^4.3.0", - "ipaddr.js": "^2.0.1", - "is-ip": "^3.1.0", - "netmask": "^2.0.2" - } + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, "node_modules/libp2p/node_modules/protobufjs": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.2.tgz", - "integrity": "sha512-++PrQIjrom+bFDPpfmqXfAGSQs40116JRrqqyf53dymUMvvb5d/LMRyicRoF1AUKoXVS1/IgJXlEgcpr4gTF3Q==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", + "integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -15097,6 +15307,14 @@ "loose-envify": "cli.js" } }, + "node_modules/loupe": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz", + "integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==", + "dependencies": { + "get-func-name": "^2.0.0" + } + }, "node_modules/lower-case": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", @@ -15572,15 +15790,6 @@ "npm": ">=7.0.0" } }, - "node_modules/mutable-proxy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mutable-proxy/-/mutable-proxy-1.0.0.tgz", - "integrity": "sha512-4OvNRr1DJpy2QuDUV74m+BWZ//n4gG4bmd21MzDSPqHEidIDWqwyOjcadU1LBMO3vXYGurVKjfBrxrSQIHFu9A==", - "engines": { - "node": ">=6.X.X", - "npm": ">=3.X.X" - } - }, "node_modules/nanoid": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.1.tgz", @@ -16473,6 +16682,14 @@ "node": ">=8" } }, + "node_modules/pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "engines": { + "node": "*" + } + }, "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", @@ -18409,6 +18626,21 @@ "node": ">=6" } }, + "node_modules/pure-rand": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.2.tgz", + "integrity": "sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, "node_modules/q": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", @@ -20922,7 +21154,6 @@ "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, "engines": { "node": ">=4" } @@ -21025,9 +21256,9 @@ } }, "node_modules/uint8-varint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/uint8-varint/-/uint8-varint-1.0.4.tgz", - "integrity": "sha512-FHnaReHRIM7kHe/Ms0I2KGkuSY4o7ouhUJGJeiFEuYWGvBt4Y64+BJ3mV6DqmyYtYTZj4Pz8K/BmViSNFLRrVw==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/uint8-varint/-/uint8-varint-1.0.6.tgz", + "integrity": "sha512-Z0ujO4rxPwxTdLsSI5ke+bdl9hjJ1xiOakBPZeWUI/u6YBGCEGTW6b90SMlhxSGButKVPkL9fMFUDnqThQYTGg==", "dependencies": { "byte-access": "^1.0.0", "longbits": "^1.1.0", diff --git a/examples/web-chat/package.json b/examples/web-chat/package.json index 556426b..ceab162 100644 --- a/examples/web-chat/package.json +++ b/examples/web-chat/package.json @@ -7,13 +7,11 @@ "@libp2p/bootstrap": "^5.0.0", "@livechat/ui-kit": "^0.5.0-24", "@multiformats/multiaddr": "11.0.7", - "@waku/react": "0.0.1-a", - "@waku/byte-utils": "^0.0.2", - "@waku/core": "^0.0.10", - "@waku/create": "^0.0.4", - "@waku/dns-discovery": "0.0.5", - "@waku/interfaces": "^0.0.7", - "@waku/peer-exchange": "^0.0.3", + "@waku/react": "^0.0.2", + "@waku/sdk": "^0.0.16", + "@waku/dns-discovery": "^0.0.14", + "@waku/interfaces": "^0.0.15", + "@waku/peer-exchange": "^0.0.13", "process": "^0.11.10", "protons-runtime": "^3.1.0", "react": "^17.0.2", diff --git a/examples/web-chat/src/chat_message.ts b/examples/web-chat/src/chat_message.ts index 1039e2e..3b977fd 100644 --- a/examples/web-chat/src/chat_message.ts +++ b/examples/web-chat/src/chat_message.ts @@ -1,4 +1,4 @@ -import { utf8ToBytes, bytesToUtf8 } from "@waku/byte-utils"; +import { utf8ToBytes, bytesToUtf8 } from "@waku/sdk"; import * as proto from "./proto/chat_message"; /** diff --git a/examples/web-chat/src/command.ts b/examples/web-chat/src/command.ts index 1d2f5ed..868d58d 100644 --- a/examples/web-chat/src/command.ts +++ b/examples/web-chat/src/command.ts @@ -88,7 +88,7 @@ function connections(waku: LightNode | undefined): string[] { } let response: string[] = []; let strConnections = " connections: \n"; - waku.libp2p.connectionManager.getConnections().forEach((connection) => { + waku.libp2p.getConnections().forEach((connection) => { strConnections += connection.remotePeer.toString() + ", "; strConnections += JSON.stringify(connection.stat); strConnections += "; " + JSON.stringify(connection.streams); diff --git a/examples/web-chat/src/config.ts b/examples/web-chat/src/config.ts index a0f956a..a63eb0d 100644 --- a/examples/web-chat/src/config.ts +++ b/examples/web-chat/src/config.ts @@ -2,10 +2,6 @@ import { Protocols } from "@waku/interfaces"; export const CONTENT_TOPIC = "/toy-chat/2/huilong/proto"; -const PUBLIC_KEY = "AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM"; -const FQDN = "test.waku.nodes.status.im"; -export const ENR_TREE = `enrtree://${PUBLIC_KEY}@${FQDN}`; - export const PROTOCOLS = [ Protocols.Filter, Protocols.Store, diff --git a/examples/web-chat/src/hooks.ts b/examples/web-chat/src/hooks.ts index 58e4d79..841aadd 100644 --- a/examples/web-chat/src/hooks.ts +++ b/examples/web-chat/src/hooks.ts @@ -1,12 +1,12 @@ import React, { useEffect, useState } from "react"; import { generate } from "server-name-generator"; import { Message } from "./Message"; -import { Decoder } from "@waku/core/lib/message/version_0"; import type { Peer, PeerProtocolsChangeData, } from "@libp2p/interface-peer-store"; import type { LightNode, StoreQueryOptions, Waku } from "@waku/interfaces"; +import type { waku } from "@waku/sdk"; import { useFilterMessages, useStoreMessages } from "@waku/react"; @@ -27,7 +27,7 @@ export const usePersistentNick = (): [ type UseMessagesParams = { node: undefined | LightNode; - decoder: undefined | Decoder; + decoder: undefined | waku.Decoder; options: StoreQueryOptions; }; @@ -109,7 +109,6 @@ type UsePeersResults = { storePeers?: undefined | Peer[]; filterPeers?: undefined | Peer[]; lightPushPeers?: undefined | Peer[]; - peerExchangePeers?: undefined | Peer[]; }; /** @@ -134,14 +133,12 @@ export const usePeers = (params: UsePeersParams): UsePeersResults => { handleCatch(node?.store?.peers()), handleCatch(node?.filter?.peers()), handleCatch(node?.lightPush?.peers()), - handleCatch(node?.peerExchange?.peers()), ]); setPeers({ storePeers: peers[0], filterPeers: peers[1], lightPushPeers: peers[2], - peerExchangePeers: peers[3], }); }; diff --git a/examples/web-chat/src/index.tsx b/examples/web-chat/src/index.tsx index 2810a93..44245dd 100644 --- a/examples/web-chat/src/index.tsx +++ b/examples/web-chat/src/index.tsx @@ -2,20 +2,20 @@ import React from "react"; import ReactDOM from "react-dom"; import { ThemeProvider } from "@livechat/ui-kit"; import { LightNodeProvider, ContentPairProvider } from "@waku/react"; -import { wakuDnsDiscovery } from "@waku/dns-discovery"; +import { wakuDnsDiscovery, enrTree } from "@waku/dns-discovery"; import { wakuPeerExchangeDiscovery } from "@waku/peer-exchange"; import "./index.css"; import App from "./App"; -import { ENR_TREE, CONTENT_TOPIC, PROTOCOLS } from "./config"; +import { CONTENT_TOPIC, PROTOCOLS } from "./config"; const NODE_OPTIONS = { libp2p: { peerDiscovery: [ - wakuDnsDiscovery(ENR_TREE, { + wakuDnsDiscovery([enrTree.TEST], { store: 1, filter: 2, - lightpush: 2, + lightPush: 2, }), wakuPeerExchangeDiscovery(), ], diff --git a/examples/web-chat/src/types/types.d.ts b/examples/web-chat/src/types/types.d.ts index 8974887..6109448 100644 --- a/examples/web-chat/src/types/types.d.ts +++ b/examples/web-chat/src/types/types.d.ts @@ -1,2 +1 @@ declare module "@livechat/ui-kit"; -declare module "@waku/dns-discovery";