47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
|
|
export function normalizeName(input: any): string;
|
||
|
|
export function buildIndex({ electrum, WebSocket: WS, client, directIP }?: {
|
||
|
|
electrum?: {
|
||
|
|
url: string;
|
||
|
|
ip: string;
|
||
|
|
}[] | undefined;
|
||
|
|
directIP?: boolean | undefined;
|
||
|
|
}): Promise<Map<any, any>>;
|
||
|
|
export function resolveName(input: any, opts?: {}): Promise<any>;
|
||
|
|
export function parseElectrumRecord(records: any): ({
|
||
|
|
url: string;
|
||
|
|
ip: string;
|
||
|
|
} | {
|
||
|
|
url: string;
|
||
|
|
ip?: undefined;
|
||
|
|
})[];
|
||
|
|
export function getElectrumServers(index: any): ({
|
||
|
|
url: string;
|
||
|
|
ip: string;
|
||
|
|
} | {
|
||
|
|
url: string;
|
||
|
|
ip?: undefined;
|
||
|
|
})[];
|
||
|
|
export function fetchElectrumServers(opts?: {}): Promise<({
|
||
|
|
url: string;
|
||
|
|
ip: string;
|
||
|
|
} | {
|
||
|
|
url: string;
|
||
|
|
ip?: undefined;
|
||
|
|
})[]>;
|
||
|
|
export function parseTldsRecord(records: any): string[];
|
||
|
|
export function getBcnrTlds(index: any): string[];
|
||
|
|
export function fetchBcnrTlds(opts?: {}): Promise<string[]>;
|
||
|
|
export function isBcnrNativeTld(tldOrList: any, tld: any): boolean;
|
||
|
|
export const BEACON: "bchtest:qp8njaa9a3ahg7259s5qajnce526n0rttsq8qwx4jl";
|
||
|
|
export const BEACON_SCRIPTHASH: "e1cdbba719436f49acb4bf245b44df875c6d6b405eda46a9d3e736d138102f3b";
|
||
|
|
export const PREFIX: "BNS1";
|
||
|
|
export const TLD: ".bch";
|
||
|
|
export const DEFAULT_TLD: "bch";
|
||
|
|
export const CHIPNET_ELECTRUM: {
|
||
|
|
url: string;
|
||
|
|
ip: string;
|
||
|
|
}[];
|
||
|
|
export const ELECTRUM_LIST_NAME: "electrum.silentmode.bch";
|
||
|
|
export const ROOT_TLD_NAME: "tlds.bch";
|
||
|
|
export const BOOTSTRAP_TLDS: string[];
|