fixup! chore: new @waku/create package

This commit is contained in:
fryorcraken.eth 2022-10-31 14:56:29 +11:00
parent 80d16346e0
commit 8a84cd07b3
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 12 additions and 8 deletions

View File

@ -3,6 +3,15 @@ import type { PeerDiscovery } from "@libp2p/interface-peer-discovery";
import { Mplex } from "@libp2p/mplex"; import { Mplex } from "@libp2p/mplex";
import { WebSockets } from "@libp2p/websockets"; import { WebSockets } from "@libp2p/websockets";
import { all as filterAll } from "@libp2p/websockets/filters"; import { all as filterAll } from "@libp2p/websockets/filters";
import {
waku,
waku_relay,
WakuFilter,
WakuLightPush,
WakuNode,
WakuRelay,
WakuStore,
} from "@waku/core";
import type { import type {
Waku, Waku,
WakuFull, WakuFull,
@ -11,17 +20,12 @@ import type {
} from "@waku/core/lib/interfaces"; } from "@waku/core/lib/interfaces";
import { PeerDiscoveryStaticPeers } from "@waku/core/lib/peer_discovery_static_list"; import { PeerDiscoveryStaticPeers } from "@waku/core/lib/peer_discovery_static_list";
import { getPredefinedBootstrapNodes } from "@waku/core/lib/predefined_bootstrap_nodes"; 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 type { Libp2p } from "libp2p";
import { createLibp2p, Libp2pOptions } from "libp2p"; import { createLibp2p, Libp2pOptions } from "libp2p";
type WakuOptions = waku.WakuOptions;
type RelayCreateOptions = waku_relay.CreateOptions;
export interface CreateOptions { export interface CreateOptions {
/** /**
* The PubSub Topic to use. * The PubSub Topic to use.