chore: migrate other examples to `@waku/sdk` (#242)

* migrate eth-pm

* migrate light-chat

* migrate relay-react-chat

* migrate store-react-chat

* revert
This commit is contained in:
Sasha 2023-06-24 00:17:07 +02:00 committed by GitHub
parent 1575056c35
commit 3ada67d8f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 7237 additions and 2782 deletions

View File

@ -12,11 +12,10 @@
"@ethersproject/providers": "5.7.0",
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3",
"@waku/core": "^0.0.16",
"@waku/create": "^0.0.12",
"@waku/interfaces": "^0.0.11",
"@waku/message-encryption": "^0.0.14",
"@waku/utils": "0.0.4",
"@waku/interfaces": "^0.0.15",
"@waku/message-encryption": "^0.0.18",
"@waku/sdk": "^0.0.16",
"@waku/utils": "0.0.8",
"ethers": "5.7.1",
"fontsource-roboto": "^4.0.0",
"protobufjs": "^7.1.2",
@ -4242,9 +4241,9 @@
"integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A=="
},
"node_modules/@libp2p/crypto": {
"version": "1.0.14",
"resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-1.0.14.tgz",
"integrity": "sha512-kS9bsRPS6qrbGiMfICjVUTjva7Bq0kCE0DTVGgFixH8e2RtF/7K8bWzO52aTQVPUF7vpId7cmmYAaHde1ZYh0A==",
"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",
@ -6407,19 +6406,18 @@
}
},
"node_modules/@waku/core": {
"version": "0.0.16",
"resolved": "https://registry.npmjs.org/@waku/core/-/core-0.0.16.tgz",
"integrity": "sha512-XrCvgw5lq45K29XNCVCPOh31fmMQXYOo5JGyzMyyYDFlPjMls5D4EQMPJhn5/JcksjhHgp4HCSmxP+3T68SJ+A==",
"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": {
"@chainsafe/libp2p-gossipsub": "^6.1.0",
"@noble/hashes": "^1.3.0",
"@waku/interfaces": "0.0.11",
"@waku/proto": "0.0.4",
"@waku/utils": "0.0.4",
"@waku/interfaces": "0.0.15",
"@waku/proto": "0.0.5",
"@waku/utils": "0.0.8",
"debug": "^4.3.4",
"it-all": "^2.0.0",
"it-length-prefixed": "^8.0.4",
"it-pipe": "^2.0.5",
"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"
@ -6437,51 +6435,84 @@
}
}
},
"node_modules/@waku/create": {
"version": "0.0.12",
"resolved": "https://registry.npmjs.org/@waku/create/-/create-0.0.12.tgz",
"integrity": "sha512-WHJ4ooWOFXAUvvwvHrxKpcCgn4fh4jXsrIQPqRTylviA1MMVbPNN8/PC7h4Zf8zaXs+5Zz//QnkN0H4yQf+YnQ==",
"node_modules/@waku/core/node_modules/it-all": {
"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/@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": {
"@chainsafe/libp2p-noise": "^11.0.0",
"@libp2p/mplex": "^7.1.1",
"@libp2p/websockets": "^5.0.3",
"@waku/core": "0.0.16",
"@waku/dns-discovery": "0.0.10",
"libp2p": "^0.42.2"
"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/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/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/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/interfaces": {
"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/dns-discovery": {
"version": "0.0.10",
"resolved": "https://registry.npmjs.org/@waku/dns-discovery/-/dns-discovery-0.0.10.tgz",
"integrity": "sha512-ss3rnhApQsWqJ1jwsSIWta7sDw1GjqC6ru2a3wC+E5cWCacareYB9y+3maV0yKF7ixljra5GTXuYz56mggR86g==",
"node_modules/@waku/message-encryption": {
"version": "0.0.18",
"resolved": "https://registry.npmjs.org/@waku/message-encryption/-/message-encryption-0.0.18.tgz",
"integrity": "sha512-ZiRXOPzgztiaCQnPDB+/YfG/JYAh4zGOgf6sdnEA7MlMTgdB5qUz4Qgazx7yaH8Nh7jN2W2itIOtuQiPSNy3uQ==",
"dependencies": {
"@libp2p/interface-peer-discovery": "^1.0.5",
"@libp2p/interfaces": "^3.3.1",
"@waku/enr": "0.0.10",
"@waku/utils": "0.0.4",
"debug": "^4.3.4",
"dns-query": "^0.11.2",
"hi-base32": "^0.5.1",
"uint8arrays": "^4.0.3"
},
"engines": {
"node": ">=16"
}
},
"node_modules/@waku/enr": {
"version": "0.0.10",
"resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.10.tgz",
"integrity": "sha512-cl4IDnYjadHR2lzJINO7V2r/0SOhU9obSxKRV7hah1aEp89e5VmXDAXDsd+8sjsmegyv8zwsYKqUHfWnfAaOmA==",
"dependencies": {
"@ethersproject/rlp": "^5.7.0",
"@libp2p/crypto": "^1.0.14",
"@libp2p/peer-id": "^2.0.2",
"@multiformats/multiaddr": "^12.0.0",
"@noble/secp256k1": "^1.7.1",
"@waku/utils": "0.0.4",
"@waku/core": "0.0.20",
"@waku/interfaces": "0.0.15",
"@waku/proto": "0.0.5",
"@waku/utils": "0.0.8",
"debug": "^4.3.4",
"js-sha3": "^0.8.0"
},
@ -6489,15 +6520,63 @@
"node": ">=16"
}
},
"node_modules/@waku/enr/node_modules/@multiformats/multiaddr": {
"version": "12.1.0",
"resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.0.tgz",
"integrity": "sha512-sGuMrF7Ysfozx2VxyF7j2I4gy0s6nUIb05aPT4uJFpzhgHP4pNLTpQSU27sfxzMMti9LVq2kBRiFpIWnK7hTBg==",
"node_modules/@waku/proto": {
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/@waku/proto/-/proto-0.0.5.tgz",
"integrity": "sha512-td0WKhUm+pcnpkbhuu5XV79ZcuM+f7b5swNIHHcqCaW5FaJeCtEhXsG8kNrt97kcDAHdr41lxFgQTRDlmAns4A==",
"dependencies": {
"protons-runtime": "^5.0.0"
},
"engines": {
"node": ">=16"
}
},
"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": {
"@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/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/@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",
"err-code": "^3.0.1",
"multiformats": "^11.0.0",
"uint8arrays": "^4.0.2",
"varint": "^6.0.0"
@ -6507,24 +6586,35 @@
"npm": ">=7.0.0"
}
},
"node_modules/@waku/interfaces": {
"version": "0.0.11",
"resolved": "https://registry.npmjs.org/@waku/interfaces/-/interfaces-0.0.11.tgz",
"integrity": "sha512-15J0GckXRtpJ5MPyfKeb86fhTlC7i4YV8nDt/4vy9sHYy2wRKDidpKQuqkvQBn2Rlf/Jz+Z4lfLtZFqhGp6ILw==",
"node_modules/@waku/sdk/node_modules/@waku/dns-discovery": {
"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.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.3"
},
"engines": {
"node": ">=16"
}
},
"node_modules/@waku/message-encryption": {
"node_modules/@waku/sdk/node_modules/@waku/enr": {
"version": "0.0.14",
"resolved": "https://registry.npmjs.org/@waku/message-encryption/-/message-encryption-0.0.14.tgz",
"integrity": "sha512-1tez2rom2yKuUsHwoEjy+Hw+FRASNLxUVZM6foGG/3W5a315iOUoNq+ApCDaRblloYZtNz+/M6KupE+ZPbhjCA==",
"resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.14.tgz",
"integrity": "sha512-oujSa7lVZoVEL2A/xA1UQqkktkeSL7I1ivt6hsMfK/3BbsQPt4d4LchY5QG7Vahrebv2BZ+/tvckhQ2mkF3azg==",
"dependencies": {
"@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/core": "0.0.16",
"@waku/interfaces": "0.0.11",
"@waku/proto": "0.0.4",
"@waku/utils": "0.0.4",
"@waku/utils": "0.0.8",
"debug": "^4.3.4",
"js-sha3": "^0.8.0"
},
@ -6532,21 +6622,10 @@
"node": ">=16"
}
},
"node_modules/@waku/proto": {
"version": "0.0.4",
"resolved": "https://registry.npmjs.org/@waku/proto/-/proto-0.0.4.tgz",
"integrity": "sha512-jCc74XUnGCsfkawgDxEt31DOEhXh/BY664ntuO3L7PXQnq4ZDltyGWAP3ik21e7WTcv3E7pcgLS3HRMHaVDYmQ==",
"dependencies": {
"protons-runtime": "^5.0.0"
},
"engines": {
"node": ">=16"
}
},
"node_modules/@waku/utils": {
"version": "0.0.4",
"resolved": "https://registry.npmjs.org/@waku/utils/-/utils-0.0.4.tgz",
"integrity": "sha512-13YeA1ACZ3g+cRSC+p2nrqm+FjGdTIkopxrhNdYH8l4lvsLwXRufCIhDN6YrQ/QrUIhTNQOmJe1f0TpxVBG9oA==",
"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"
@ -7144,6 +7223,14 @@
"integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==",
"dev": true
},
"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",
@ -7828,6 +7915,23 @@
"node": ">=4"
}
},
"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",
@ -7853,6 +7957,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",
@ -9093,6 +9205,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",
@ -10699,6 +10822,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",
@ -11240,6 +11384,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",
@ -14414,6 +14566,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",
@ -15668,6 +15828,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",
@ -17329,6 +17497,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",
@ -19662,7 +19845,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"
}
@ -24069,9 +24251,9 @@
"integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A=="
},
"@libp2p/crypto": {
"version": "1.0.14",
"resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-1.0.14.tgz",
"integrity": "sha512-kS9bsRPS6qrbGiMfICjVUTjva7Bq0kCE0DTVGgFixH8e2RtF/7K8bWzO52aTQVPUF7vpId7cmmYAaHde1ZYh0A==",
"version": "1.0.17",
"resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-1.0.17.tgz",
"integrity": "sha512-Oeg0Eb/EvAho0gVkOgemXEgrVxWaT3x/DpFgkBdZ9qGxwq75w/E/oPc7souqBz+l1swfz37GWnwV7bIb4Xv5Ag==",
"requires": {
"@libp2p/interface-keys": "^1.0.2",
"@libp2p/interfaces": "^3.2.0",
@ -25697,114 +25879,173 @@
}
},
"@waku/core": {
"version": "0.0.16",
"resolved": "https://registry.npmjs.org/@waku/core/-/core-0.0.16.tgz",
"integrity": "sha512-XrCvgw5lq45K29XNCVCPOh31fmMQXYOo5JGyzMyyYDFlPjMls5D4EQMPJhn5/JcksjhHgp4HCSmxP+3T68SJ+A==",
"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==",
"requires": {
"@chainsafe/libp2p-gossipsub": "^6.1.0",
"@noble/hashes": "^1.3.0",
"@waku/interfaces": "0.0.11",
"@waku/proto": "0.0.4",
"@waku/utils": "0.0.4",
"@waku/interfaces": "0.0.15",
"@waku/proto": "0.0.5",
"@waku/utils": "0.0.8",
"debug": "^4.3.4",
"it-all": "^2.0.0",
"it-length-prefixed": "^8.0.4",
"it-pipe": "^2.0.5",
"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"
}
},
"@waku/create": {
"version": "0.0.12",
"resolved": "https://registry.npmjs.org/@waku/create/-/create-0.0.12.tgz",
"integrity": "sha512-WHJ4ooWOFXAUvvwvHrxKpcCgn4fh4jXsrIQPqRTylviA1MMVbPNN8/PC7h4Zf8zaXs+5Zz//QnkN0H4yQf+YnQ==",
"requires": {
"@chainsafe/libp2p-noise": "^11.0.0",
"@libp2p/mplex": "^7.1.1",
"@libp2p/websockets": "^5.0.3",
"@waku/core": "0.0.16",
"@waku/dns-discovery": "0.0.10",
"libp2p": "^0.42.2"
}
},
"@waku/dns-discovery": {
"version": "0.0.10",
"resolved": "https://registry.npmjs.org/@waku/dns-discovery/-/dns-discovery-0.0.10.tgz",
"integrity": "sha512-ss3rnhApQsWqJ1jwsSIWta7sDw1GjqC6ru2a3wC+E5cWCacareYB9y+3maV0yKF7ixljra5GTXuYz56mggR86g==",
"requires": {
"@libp2p/interface-peer-discovery": "^1.0.5",
"@libp2p/interfaces": "^3.3.1",
"@waku/enr": "0.0.10",
"@waku/utils": "0.0.4",
"debug": "^4.3.4",
"dns-query": "^0.11.2",
"hi-base32": "^0.5.1",
"uint8arrays": "^4.0.3"
}
},
"@waku/enr": {
"version": "0.0.10",
"resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.10.tgz",
"integrity": "sha512-cl4IDnYjadHR2lzJINO7V2r/0SOhU9obSxKRV7hah1aEp89e5VmXDAXDsd+8sjsmegyv8zwsYKqUHfWnfAaOmA==",
"requires": {
"@ethersproject/rlp": "^5.7.0",
"@libp2p/crypto": "^1.0.14",
"@libp2p/peer-id": "^2.0.2",
"@multiformats/multiaddr": "^12.0.0",
"@noble/secp256k1": "^1.7.1",
"@waku/utils": "0.0.4",
"debug": "^4.3.4",
"js-sha3": "^0.8.0"
},
"dependencies": {
"@multiformats/multiaddr": {
"version": "12.1.0",
"resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.0.tgz",
"integrity": "sha512-sGuMrF7Ysfozx2VxyF7j2I4gy0s6nUIb05aPT4uJFpzhgHP4pNLTpQSU27sfxzMMti9LVq2kBRiFpIWnK7hTBg==",
"it-all": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/it-all/-/it-all-3.0.2.tgz",
"integrity": "sha512-ujqWETXhsDbF6C+6X6fvRw5ohlowRoy/o/h9BC8D+R3JQ13oLQ153w9gSWkWupOY7omZFQbJiAL1aJo5Gwe2yw=="
},
"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==",
"requires": {
"@chainsafe/is-ip": "^2.0.1",
"@chainsafe/netmask": "^2.0.0",
"dns-over-http-resolver": "^2.1.0",
"err-code": "^3.0.1",
"multiformats": "^11.0.0",
"uint8arrays": "^4.0.2",
"varint": "^6.0.0"
"it-stream-types": "^2.0.1",
"uint8-varint": "^1.0.1",
"uint8arraylist": "^2.0.0",
"uint8arrays": "^4.0.2"
}
},
"it-merge": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/it-merge/-/it-merge-3.0.1.tgz",
"integrity": "sha512-I6hjU1ABO+k3xY1H6JtCSDXvUME88pxIXSgKeT4WI5rPYbQzpr98ldacVuG95WbjaJxKl6Qot6lUdxduLBQPHA==",
"requires": {
"it-pushable": "^3.1.0"
}
},
"it-pipe": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/it-pipe/-/it-pipe-3.0.1.tgz",
"integrity": "sha512-sIoNrQl1qSRg2seYSBH/3QxWhJFn9PKYvOf/bHdtCBF0bnghey44VyASsWzn5dAx0DCDDABq1hZIuzKmtBZmKA==",
"requires": {
"it-merge": "^3.0.0",
"it-pushable": "^3.1.2",
"it-stream-types": "^2.0.1"
}
},
"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=="
}
}
},
"@waku/interfaces": {
"version": "0.0.11",
"resolved": "https://registry.npmjs.org/@waku/interfaces/-/interfaces-0.0.11.tgz",
"integrity": "sha512-15J0GckXRtpJ5MPyfKeb86fhTlC7i4YV8nDt/4vy9sHYy2wRKDidpKQuqkvQBn2Rlf/Jz+Z4lfLtZFqhGp6ILw=="
"version": "0.0.15",
"resolved": "https://registry.npmjs.org/@waku/interfaces/-/interfaces-0.0.15.tgz",
"integrity": "sha512-l8MDtMtA51nWeeU36lZV07JWMLHmnn7Dm93ihS2lgqWACbhzwOEDZ3alox4T8Um7A3RmnK/WZ5U2Cprs3ukt8w=="
},
"@waku/message-encryption": {
"version": "0.0.14",
"resolved": "https://registry.npmjs.org/@waku/message-encryption/-/message-encryption-0.0.14.tgz",
"integrity": "sha512-1tez2rom2yKuUsHwoEjy+Hw+FRASNLxUVZM6foGG/3W5a315iOUoNq+ApCDaRblloYZtNz+/M6KupE+ZPbhjCA==",
"version": "0.0.18",
"resolved": "https://registry.npmjs.org/@waku/message-encryption/-/message-encryption-0.0.18.tgz",
"integrity": "sha512-ZiRXOPzgztiaCQnPDB+/YfG/JYAh4zGOgf6sdnEA7MlMTgdB5qUz4Qgazx7yaH8Nh7jN2W2itIOtuQiPSNy3uQ==",
"requires": {
"@noble/secp256k1": "^1.7.1",
"@waku/core": "0.0.16",
"@waku/interfaces": "0.0.11",
"@waku/proto": "0.0.4",
"@waku/utils": "0.0.4",
"@waku/core": "0.0.20",
"@waku/interfaces": "0.0.15",
"@waku/proto": "0.0.5",
"@waku/utils": "0.0.8",
"debug": "^4.3.4",
"js-sha3": "^0.8.0"
}
},
"@waku/proto": {
"version": "0.0.4",
"resolved": "https://registry.npmjs.org/@waku/proto/-/proto-0.0.4.tgz",
"integrity": "sha512-jCc74XUnGCsfkawgDxEt31DOEhXh/BY664ntuO3L7PXQnq4ZDltyGWAP3ik21e7WTcv3E7pcgLS3HRMHaVDYmQ==",
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/@waku/proto/-/proto-0.0.5.tgz",
"integrity": "sha512-td0WKhUm+pcnpkbhuu5XV79ZcuM+f7b5swNIHHcqCaW5FaJeCtEhXsG8kNrt97kcDAHdr41lxFgQTRDlmAns4A==",
"requires": {
"protons-runtime": "^5.0.0"
}
},
"@waku/relay": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/@waku/relay/-/relay-0.0.3.tgz",
"integrity": "sha512-KDcfuOnTu/8HjNTwPXeVyd+qEIPZ7AXH0p4EwbfiucHbYWy7ahpljYz1fExwG7nKFsZ9uKtB7QGBBDy1ghKMCA==",
"requires": {
"@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"
}
},
"@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==",
"requires": {
"@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"
},
"dependencies": {
"@multiformats/multiaddr": {
"version": "12.1.3",
"resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.3.tgz",
"integrity": "sha512-rNcS3njkkSwuGF4x58L47jGH5kBXBfJPNsWnrt0gujhNYn6ReDt1je7vEU5/ddrVj0TStgxw+Hm+TkYDK0b60w==",
"requires": {
"@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"
}
},
"@waku/dns-discovery": {
"version": "0.0.14",
"resolved": "https://registry.npmjs.org/@waku/dns-discovery/-/dns-discovery-0.0.14.tgz",
"integrity": "sha512-S8kzLUvmqIuqLGcPAT6JAYFDrxB/TeMEihU4tsWWg7UBnxyQVH2lqkjzGxnqClrQ9XFukvlH1fhvn0AIkKg25A==",
"requires": {
"@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.3"
}
},
"@waku/enr": {
"version": "0.0.14",
"resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.14.tgz",
"integrity": "sha512-oujSa7lVZoVEL2A/xA1UQqkktkeSL7I1ivt6hsMfK/3BbsQPt4d4LchY5QG7Vahrebv2BZ+/tvckhQ2mkF3azg==",
"requires": {
"@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"
}
}
}
},
"@waku/utils": {
"version": "0.0.4",
"resolved": "https://registry.npmjs.org/@waku/utils/-/utils-0.0.4.tgz",
"integrity": "sha512-13YeA1ACZ3g+cRSC+p2nrqm+FjGdTIkopxrhNdYH8l4lvsLwXRufCIhDN6YrQ/QrUIhTNQOmJe1f0TpxVBG9oA==",
"version": "0.0.8",
"resolved": "https://registry.npmjs.org/@waku/utils/-/utils-0.0.8.tgz",
"integrity": "sha512-pMs06f+P+jBq8v4Hyek7VTkCB0Suxc+baXqNfqTdM7xqzmwnCjfi1q9ummCln17Q3+6lVsbwHzUfikGTyoMeow==",
"requires": {
"debug": "^4.3.4",
"uint8arrays": "^4.0.3"
@ -26292,6 +26533,11 @@
"integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==",
"dev": true
},
"assertion-error": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz",
"integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw=="
},
"ast-types-flow": {
"version": "0.0.7",
"resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",
@ -26815,6 +27061,20 @@
"integrity": "sha512-roIFONhcxog0JSSWbvVAh3OocukmSgpqOH6YpMkCvav/ySIV3JKg4Dc8vYtQjYi/UxpNE36r/9v+VqTQqgkYmw==",
"dev": true
},
"chai": {
"version": "4.3.7",
"resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz",
"integrity": "sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==",
"requires": {
"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"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
@ -26831,6 +27091,11 @@
"integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==",
"dev": true
},
"check-error": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz",
"integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA=="
},
"check-types": {
"version": "11.2.2",
"resolved": "https://registry.npmjs.org/check-types/-/check-types-11.2.2.tgz",
@ -27757,6 +28022,14 @@
"integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==",
"dev": true
},
"deep-eql": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz",
"integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==",
"requires": {
"type-detect": "^4.0.0"
}
},
"deep-equal": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.0.tgz",
@ -28998,6 +29271,14 @@
}
}
},
"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==",
"requires": {
"pure-rand": "^6.0.0"
}
},
"fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
@ -29401,6 +29682,11 @@
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
"dev": true
},
"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=="
},
"get-intrinsic": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz",
@ -31802,6 +32088,14 @@
"js-tokens": "^3.0.0 || ^4.0.0"
}
},
"loupe": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz",
"integrity": "sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==",
"requires": {
"get-func-name": "^2.0.0"
}
},
"lower-case": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
@ -32711,6 +33005,11 @@
"integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
"dev": true
},
"pathval": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz",
"integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ=="
},
"performance-now": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
@ -33739,6 +34038,11 @@
"integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
"dev": true
},
"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=="
},
"q": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz",
@ -35535,8 +35839,7 @@
"type-detect": {
"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
"integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g=="
},
"type-fest": {
"version": "0.20.2",

View File

@ -8,11 +8,10 @@
"@ethersproject/providers": "5.7.0",
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3",
"@waku/core": "^0.0.16",
"@waku/create": "^0.0.12",
"@waku/interfaces": "^0.0.11",
"@waku/message-encryption": "^0.0.14",
"@waku/utils": "0.0.4",
"@waku/sdk": "^0.0.16",
"@waku/interfaces": "^0.0.15",
"@waku/message-encryption": "^0.0.18",
"@waku/utils": "0.0.8",
"ethers": "5.7.1",
"fontsource-roboto": "^4.0.0",
"protobufjs": "^7.1.2",

View File

@ -5,8 +5,7 @@ import { PrivateMessage, PublicKeyMessage } from "./messaging/wire";
import { validatePublicKeyMessage } from "./crypto";
import { Message } from "./messaging/Messages";
import { equals } from "uint8arrays/equals";
import { waitForRemotePeer } from "@waku/core";
import { createRelayNode } from "@waku/create";
import { waitForRemotePeer, createRelayNode } from "@waku/sdk";
import { bytesToHex, hexToBytes } from "@waku/utils/bytes";
import type { DecodedMessage } from "@waku/message-encryption";

View File

@ -1,10 +1,11 @@
import * as utils from "https://unpkg.com/@waku/utils@0.0.5/bundle/bytes.js";
import * as wakuCreate from "https://unpkg.com/@waku/create@0.0.13/bundle/index.js";
import {
createLightNode,
bytesToUtf8,
utf8ToBytes,
waitForRemotePeer,
createDecoder,
createEncoder,
} from "https://unpkg.com/@waku/core@0.0.17/bundle/index.js";
} from "https://unpkg.com/@waku/sdk@0.0.16/bundle/index.js";
const CONTENT_TOPIC = "/toy-chat/2/huilong/proto";
@ -47,7 +48,7 @@ async function initWakuContext({ contentTopic, onMessageReceived }) {
.add(new protobuf.Field("nick", 2, "string"))
.add(new protobuf.Field("text", 3, "bytes"));
const node = await wakuCreate.createLightNode({ defaultBootstrap: true });
const node = await createLightNode({ defaultBootstrap: true });
await node.start();
await waitForRemotePeer(node);
@ -59,7 +60,7 @@ async function initWakuContext({ contentTopic, onMessageReceived }) {
const messageObj = ChatMessage.decode(wakuMessage.payload);
onMessageReceived({
...messageObj,
text: utils.bytesToUtf8(messageObj.text),
text: bytesToUtf8(messageObj.text),
});
}
);
@ -84,7 +85,7 @@ async function initWakuContext({ contentTopic, onMessageReceived }) {
const protoMessage = ChatMessage.create({
nick,
timestamp: Date.now(),
text: utils.utf8ToBytes(text),
text: utf8ToBytes(text),
});
await node.lightPush.send(Encoder, {

File diff suppressed because it is too large Load Diff

View File

@ -7,8 +7,7 @@
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@waku/core": "^0.0.10",
"@waku/create": "^0.0.6",
"@waku/sdk": "^0.0.16",
"protobufjs": "^7.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",

View File

@ -1,10 +1,14 @@
import * as React from "react";
import protobuf from "protobufjs";
import { createRelayNode } from "@waku/create";
import { createDecoder, createEncoder, waitForRemotePeer } from "@waku/core";
import {
createRelayNode,
createDecoder,
createEncoder,
waitForRemotePeer,
} from "@waku/sdk";
const ContentTopic = `/js-waku-examples/1/chat/proto`;
const Encoder = createEncoder(ContentTopic);
const Encoder = createEncoder({ contentTopic: ContentTopic });
const Decoder = createDecoder(ContentTopic);
const SimpleChatMessage = new protobuf.Type("SimpleChatMessage")
@ -54,7 +58,7 @@ function App() {
if (!waku) return;
// Pass the content topic to only process messages related to your dApp
const deleteObserver = waku.relay.addObserver(
const deleteObserver = waku.relay.subscribe(
Decoder,
processIncomingMessage
);

File diff suppressed because it is too large Load Diff

View File

@ -7,9 +7,7 @@
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@waku/byte-utils": "^0.0.2",
"@waku/core": "^0.0.10",
"@waku/create": "^0.0.4",
"@waku/sdk": "^0.0.16",
"protobufjs": "^7.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",

View File

@ -1,8 +1,11 @@
import * as React from "react";
import protobuf from "protobufjs";
import { createLightNode } from "@waku/create";
import { waitForRemotePeer, createDecoder } from "@waku/core";
import { bytesToUtf8 } from "@waku/byte-utils";
import {
createLightNode,
waitForRemotePeer,
createDecoder,
bytesToUtf8,
} from "@waku/sdk";
const ContentTopic = "/toy-chat/2/huilong/proto";
const decoder = createDecoder(ContentTopic);