From 8a84cd07b318e04f4160a54d599fa96a99c1b774 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Mon, 31 Oct 2022 14:56:29 +1100 Subject: [PATCH] fixup! chore: new @waku/create package --- packages/create/src/index.ts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/create/src/index.ts b/packages/create/src/index.ts index e4fb27b5c5..49734a9b3d 100644 --- a/packages/create/src/index.ts +++ b/packages/create/src/index.ts @@ -3,6 +3,15 @@ import type { PeerDiscovery } from "@libp2p/interface-peer-discovery"; import { Mplex } from "@libp2p/mplex"; import { WebSockets } from "@libp2p/websockets"; import { all as filterAll } from "@libp2p/websockets/filters"; +import { + waku, + waku_relay, + WakuFilter, + WakuLightPush, + WakuNode, + WakuRelay, + WakuStore, +} from "@waku/core"; import type { Waku, WakuFull, @@ -11,17 +20,12 @@ import type { } from "@waku/core/lib/interfaces"; import { PeerDiscoveryStaticPeers } from "@waku/core/lib/peer_discovery_static_list"; import { getPredefinedBootstrapNodes } from "@waku/core/lib/predefined_bootstrap_nodes"; -import { WakuNode, WakuOptions } from "@waku/core/lib/waku.js"; -import { WakuFilter } from "@waku/core/lib/waku_filter"; -import { WakuLightPush } from "@waku/core/lib/waku_light_push"; -import { - CreateOptions as RelayCreateOptions, - WakuRelay, -} from "@waku/core/lib/waku_relay"; -import { WakuStore } from "@waku/core/lib/waku_store"; import type { Libp2p } from "libp2p"; import { createLibp2p, Libp2pOptions } from "libp2p"; +type WakuOptions = waku.WakuOptions; +type RelayCreateOptions = waku_relay.CreateOptions; + export interface CreateOptions { /** * The PubSub Topic to use.