UNPKG

@bitcoinerlab/discovery

Version:

A TypeScript library for retrieving Bitcoin funds from ranged descriptors, leveraging @bitcoinerlab/explorer for standardized access to multiple blockchain explorers.

32 lines (31 loc) 995 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TxStatus = exports.NetworkId = exports.DATA_MODEL_VERSION = void 0; /** * Versions the structure of the data model. This variable should to be * changed when any of the types below change. */ exports.DATA_MODEL_VERSION = 'V1'; /** * Enumeration of network identifiers. * @enum {string} */ var NetworkId; (function (NetworkId) { NetworkId["BITCOIN"] = "BITCOIN"; NetworkId["REGTEST"] = "REGTEST"; NetworkId["TESTNET"] = "TESTNET"; NetworkId["SIGNET"] = "SIGNET"; })(NetworkId || (exports.NetworkId = NetworkId = {})); /** * Enumeration of transaction statuses. * @enum {string} */ var TxStatus; (function (TxStatus) { /** ALL includes unconfirmed transactions */ TxStatus["ALL"] = "ALL"; TxStatus["IRREVERSIBLE"] = "IRREVERSIBLE"; /** CONFIRMED with at least 1 confirmation */ TxStatus["CONFIRMED"] = "CONFIRMED"; })(TxStatus || (exports.TxStatus = TxStatus = {}));