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 {
|
export { getNodesFromHostedJson } from './lib/discovery';
|
||||||
getNodesFromHostedJson,
|
export * as discovery from './lib/discovery';
|
||||||
getPseudoRandomSubset,
|
|
||||||
parseBootstrap,
|
export * as enr from './lib/enr';
|
||||||
BootstrapOptions,
|
|
||||||
BootstrapFn,
|
|
||||||
} from './lib/discovery';
|
|
||||||
|
|
||||||
export * as utils from './lib/utils';
|
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.
|
* The maximum of peers to connect to as part of the bootstrap process.
|
||||||
*
|
*
|
||||||
* @default {{DefaultMaxPeers}}
|
* @default [[DefaultMaxPeers]]
|
||||||
*/
|
*/
|
||||||
maxPeers?: number;
|
maxPeers?: number;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,13 +7,6 @@ import { ecdsaVerify } from 'secp256k1';
|
||||||
import { ENR } from '../enr';
|
import { ENR } from '../enr';
|
||||||
import { keccak256Buf } from '../utils';
|
import { keccak256Buf } from '../utils';
|
||||||
|
|
||||||
export interface PeerInfo {
|
|
||||||
id?: Uint8Array | Buffer;
|
|
||||||
address?: string;
|
|
||||||
udpPort?: number | null;
|
|
||||||
tcpPort?: number | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
type ENRRootValues = {
|
type ENRRootValues = {
|
||||||
eRoot: string;
|
eRoot: string;
|
||||||
lRoot: string;
|
lRoot: string;
|
||||||
|
|
|
@ -2,6 +2,9 @@ import { shuffle } from 'libp2p-gossipsub/src/utils';
|
||||||
|
|
||||||
export { getNodesFromHostedJson } from './hosted_json';
|
export { getNodesFromHostedJson } from './hosted_json';
|
||||||
export { parseBootstrap, BootstrapOptions, BootstrapFn } from './bootstrap';
|
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>(
|
export function getPseudoRandomSubset<T>(
|
||||||
values: T[],
|
values: T[],
|
||||||
|
|
Loading…
Reference in New Issue