use @waku/sdk

This commit is contained in:
Sasha 2023-06-23 22:16:20 +02:00
parent d226eefb28
commit d9e2ae6dc3
No known key found for this signature in database
3 changed files with 5 additions and 136 deletions

View File

@ -12,11 +12,11 @@
"@livechat/ui-kit": "^0.5.0-24",
"@multiformats/multiaddr": "11.0.7",
"@waku/byte-utils": "^0.0.2",
"@waku/create": "^0.0.4",
"@waku/dns-discovery": "0.0.5",
"@waku/interfaces": "^0.0.15",
"@waku/peer-exchange": "^0.0.3",
"@waku/react": "0.0.1-b",
"@waku/sdk": "^0.0.16",
"process": "^0.11.10",
"protons-runtime": "^3.1.0",
"react": "^17.0.2",
@ -2210,101 +2210,6 @@
"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"
}
},
"node_modules/@chainsafe/netmask": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@chainsafe/netmask/-/netmask-2.0.0.tgz",
@ -6676,23 +6581,6 @@
"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",
@ -14798,21 +14686,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",

View File

@ -9,7 +9,7 @@
"@multiformats/multiaddr": "11.0.7",
"@waku/react": "0.0.1-b",
"@waku/byte-utils": "^0.0.2",
"@waku/create": "^0.0.4",
"@waku/sdk": "^0.0.16",
"@waku/dns-discovery": "0.0.5",
"@waku/interfaces": "^0.0.15",
"@waku/peer-exchange": "^0.0.3",

View File

@ -5,12 +5,8 @@ import type {
Peer,
PeerProtocolsChangeData,
} from "@libp2p/interface-peer-store";
import type {
LightNode,
StoreQueryOptions,
Waku,
IDecoder,
} from "@waku/interfaces";
import type { LightNode, StoreQueryOptions, Waku } from "@waku/interfaces";
import type { waku } from "@waku/sdk";
import { useFilterMessages, useStoreMessages } from "@waku/react";
@ -31,7 +27,7 @@ export const usePersistentNick = (): [
type UseMessagesParams = {
node: undefined | LightNode;
decoder: undefined | IDecoder<any>;
decoder: undefined | waku.Decoder;
options: StoreQueryOptions;
};