mirror of https://github.com/waku-org/js-waku.git
Export enr, dns, entree modules
This commit is contained in:
parent
4bfe060064
commit
e871da056f
11
src/index.ts
11
src/index.ts
|
@ -1,10 +1,7 @@
|
|||
export {
|
||||
getNodesFromHostedJson,
|
||||
getPseudoRandomSubset,
|
||||
parseBootstrap,
|
||||
BootstrapOptions,
|
||||
BootstrapFn,
|
||||
} from './lib/discovery';
|
||||
export { getNodesFromHostedJson } from './lib/discovery';
|
||||
export * as discovery from './lib/discovery';
|
||||
|
||||
export * as enr from './lib/enr';
|
||||
|
||||
export * as utils from './lib/utils';
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ export interface BootstrapOptions {
|
|||
/**
|
||||
* The maximum of peers to connect to as part of the bootstrap process.
|
||||
*
|
||||
* @default {{DefaultMaxPeers}}
|
||||
* @default [[DefaultMaxPeers]]
|
||||
*/
|
||||
maxPeers?: number;
|
||||
/**
|
||||
|
|
|
@ -7,13 +7,6 @@ import { ecdsaVerify } from 'secp256k1';
|
|||
import { ENR } from '../enr';
|
||||
import { keccak256Buf } from '../utils';
|
||||
|
||||
export interface PeerInfo {
|
||||
id?: Uint8Array | Buffer;
|
||||
address?: string;
|
||||
udpPort?: number | null;
|
||||
tcpPort?: number | null;
|
||||
}
|
||||
|
||||
type ENRRootValues = {
|
||||
eRoot: string;
|
||||
lRoot: string;
|
||||
|
|
|
@ -2,6 +2,9 @@ import { shuffle } from 'libp2p-gossipsub/src/utils';
|
|||
|
||||
export { getNodesFromHostedJson } from './hosted_json';
|
||||
export { parseBootstrap, BootstrapOptions, BootstrapFn } from './bootstrap';
|
||||
export { DnsClient, DnsNodeDiscovery } from './dns';
|
||||
export { Endpoints, DnsOverHttps } from './dns_over_https';
|
||||
export { ENRTree } from './enrtree';
|
||||
|
||||
export function getPseudoRandomSubset<T>(
|
||||
values: T[],
|
||||
|
|
Loading…
Reference in New Issue