PHP WebShell
Текущая директория: /opt/BitGoJS/modules/abstract-utxo/dist/src
Просмотр файла: names.d.ts
import * as utxolib from '@bitgo/utxo-lib';
export declare const utxoCoinsMainnet: readonly ["btc", "bch", "bcha", "bsv", "btg", "dash", "doge", "ltc", "zec"];
export declare const utxoCoinsTestnet: readonly ["tbtc", "tbch", "tbsv", "tdash", "tdoge", "tltc", "tzec", "tbtcsig", "tbtc4", "tbtcbgsig"];
export type UtxoCoinNameMainnet = (typeof utxoCoinsMainnet)[number];
export type UtxoCoinNameTestnet = (typeof utxoCoinsTestnet)[number];
export type UtxoCoinName = UtxoCoinNameMainnet | UtxoCoinNameTestnet;
export declare function isUtxoCoinNameMainnet(coinName: string): coinName is UtxoCoinNameMainnet;
export declare function isUtxoCoinNameTestnet(coinName: string): coinName is UtxoCoinNameTestnet;
export declare function isUtxoCoinName(coinName: string): coinName is UtxoCoinName;
/**
* @param n
* @returns the family name for a network. Testnets and mainnets of the same coin share the same family name.
*/
export declare function getFamilyFromNetwork(n: utxolib.Network): UtxoCoinNameMainnet;
/**
* Get the chain name for a network.
* The chain is different for every network.
*/
export declare function getChainFromNetwork(n: utxolib.Network): string;
/**
* @param coinName - the name of the coin (e.g. 'btc', 'bch', 'ltc'). Also called 'chain' in some contexts.
* @returns the network for a coin. This is the mainnet network for the coin.
*/
export declare function getNetworkFromChain(coinName: string): utxolib.Network;
export declare function getFullNameFromNetwork(n: utxolib.Network): string;
//# sourceMappingURL=names.d.ts.map
Выполнить команду
Для локальной разработки. Не используйте в интернете!