rm: peer-exchange and dns-discovery packages
This commit is contained in:
parent
5e240d0e3b
commit
c67e69daba
|
@ -11,9 +11,7 @@
|
|||
"@libp2p/bootstrap": "^8.0.0",
|
||||
"@livechat/ui-kit": "^0.5.0-24",
|
||||
"@multiformats/multiaddr": "12.1.5",
|
||||
"@waku/dns-discovery": "^0.0.17",
|
||||
"@waku/interfaces": "^0.0.18",
|
||||
"@waku/peer-exchange": "^0.0.16",
|
||||
"@waku/react": "^0.0.5-effaf55",
|
||||
"@waku/sdk": "^0.0.19",
|
||||
"process": "^0.11.10",
|
||||
|
|
|
@ -6,9 +6,7 @@
|
|||
"dependencies": {
|
||||
"@libp2p/bootstrap": "^8.0.0",
|
||||
"@waku/react": "^0.0.5-effaf55",
|
||||
"@waku/dns-discovery": "^0.0.17",
|
||||
"@waku/interfaces": "^0.0.18",
|
||||
"@waku/peer-exchange": "^0.0.16",
|
||||
"@livechat/ui-kit": "^0.5.0-24",
|
||||
"@multiformats/multiaddr": "12.1.5",
|
||||
"@waku/sdk": "^0.0.19",
|
||||
|
|
|
@ -1,31 +1,16 @@
|
|||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import { LightNodeProvider, ContentPairProvider } from "@waku/react";
|
||||
import { wakuDnsDiscovery, enrTree } from "@waku/dns-discovery";
|
||||
import { wakuPeerExchangeDiscovery } from "@waku/peer-exchange";
|
||||
import "./index.css";
|
||||
|
||||
import App from "./App";
|
||||
import { CONTENT_TOPIC } from "./config";
|
||||
import { Protocols } from "@waku/interfaces";
|
||||
|
||||
const NODE_OPTIONS = {
|
||||
libp2p: {
|
||||
peerDiscovery: [
|
||||
wakuDnsDiscovery([enrTree.PROD], {
|
||||
store: 1,
|
||||
filter: 2,
|
||||
lightPush: 2,
|
||||
}),
|
||||
wakuPeerExchangeDiscovery(),
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<LightNodeProvider
|
||||
options={NODE_OPTIONS}
|
||||
options={{ defaultBootstrap: true }}
|
||||
protocols={[Protocols.Store, Protocols.Filter, Protocols.LightPush]}
|
||||
>
|
||||
<ContentPairProvider contentTopic={CONTENT_TOPIC}>
|
||||
|
|
Loading…
Reference in New Issue