mainnet-js 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/{mainnet-1.0.17.js → mainnet-1.0.18.js} +4 -4
- package/dist/module/network/Connection.d.ts +1 -0
- package/dist/module/network/Connection.d.ts.map +1 -1
- package/dist/module/network/Connection.js +6 -16
- package/dist/module/network/Connection.js.map +1 -1
- package/dist/module/network/default.d.ts +2 -2
- package/dist/module/network/default.d.ts.map +1 -1
- package/dist/module/network/default.js.map +1 -1
- package/dist/module/util/amountInSatoshi.js +1 -1
- package/dist/module/util/amountInSatoshi.js.map +1 -1
- package/dist/module/wallet/Bcmr.d.ts.map +1 -1
- package/dist/module/wallet/Bcmr.js +3 -3
- package/dist/module/wallet/Bcmr.js.map +1 -1
- package/dist/module/wallet/model.d.ts.map +1 -1
- package/dist/module/wallet/model.js +6 -4
- package/dist/module/wallet/model.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/network/Connection.ts +6 -14
- package/src/network/default.ts +4 -2
- package/src/util/amountInSatoshi.ts +1 -1
- package/src/wallet/Bcmr.ts +4 -3
- package/src/wallet/model.ts +11 -4
package/dist/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<title>The Empty Mainnet App</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><script defer src="mainnet-1.0.
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><script defer src="mainnet-1.0.18.js"></script></head>
|
|
7
7
|
<body><script>document.addEventListener("DOMContentLoaded", async (event) => Object.assign(globalThis, await __mainnetPromise))</script>
|
|
8
8
|
</body>
|
|
9
9
|
</html>
|
|
@@ -1114,7 +1114,7 @@ eval("/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harm
|
|
|
1114
1114
|
\***********************************/
|
|
1115
1115
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
1116
1116
|
|
|
1117
|
-
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Connection\": () => (/* binding */ Connection),\n/* harmony export */ \"disconnectProviders\": () => (/* binding */ disconnectProviders),\n/* harmony export */ \"initProviders\": () => (/* binding */ initProviders)\n/* harmony export */ });\n/* harmony import */ var _default_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default.js */ \"./src/network/default.ts\");\n/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ \"./src/network/constant.ts\");\n/* harmony import */ var _enum_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enum.js */ \"./src/enum.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_default_js__WEBPACK_IMPORTED_MODULE_0__, _enum_js__WEBPACK_IMPORTED_MODULE_2__]);\n([_default_js__WEBPACK_IMPORTED_MODULE_0__, _enum_js__WEBPACK_IMPORTED_MODULE_2__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nasync function initProvider(network) {\n if (!(0,_default_js__WEBPACK_IMPORTED_MODULE_0__.getGlobalProvider)(network)) {\n
|
|
1117
|
+
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Connection\": () => (/* binding */ Connection),\n/* harmony export */ \"disconnectProviders\": () => (/* binding */ disconnectProviders),\n/* harmony export */ \"initProvider\": () => (/* binding */ initProvider),\n/* harmony export */ \"initProviders\": () => (/* binding */ initProviders)\n/* harmony export */ });\n/* harmony import */ var _default_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default.js */ \"./src/network/default.ts\");\n/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ \"./src/network/constant.ts\");\n/* harmony import */ var _enum_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enum.js */ \"./src/enum.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_default_js__WEBPACK_IMPORTED_MODULE_0__, _enum_js__WEBPACK_IMPORTED_MODULE_2__]);\n([_default_js__WEBPACK_IMPORTED_MODULE_0__, _enum_js__WEBPACK_IMPORTED_MODULE_2__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nasync function initProvider(network) {\n if (!(0,_default_js__WEBPACK_IMPORTED_MODULE_0__.getGlobalProvider)(network)) {\n const conn = new Connection(network);\n const provider = (await conn.ready()).networkProvider;\n (0,_default_js__WEBPACK_IMPORTED_MODULE_0__.setGlobalProvider)(network, provider);\n return provider;\n }\n return (0,_default_js__WEBPACK_IMPORTED_MODULE_0__.getGlobalProvider)(network);\n}\nasync function initProviders(networks) {\n networks = networks ? networks : Object.keys(_constant_js__WEBPACK_IMPORTED_MODULE_1__.networkTickerMap);\n let initPromises = networks.map((n) => initProvider(n));\n await Promise.all(initPromises).catch((e) => {\n console.warn(`Warning, couldn't establish a connection for ${e}`);\n });\n}\nasync function disconnectProvider(network) {\n const provider = (0,_default_js__WEBPACK_IMPORTED_MODULE_0__.getGlobalProvider)(network);\n if (provider) {\n await provider.disconnect();\n (0,_default_js__WEBPACK_IMPORTED_MODULE_0__.removeGlobalProvider)(network);\n return;\n }\n else {\n // console.warn(\n // `Ignoring attempt to disconnect non-existent ${network} provider`\n // );\n return true;\n }\n}\nasync function disconnectProviders(networks) {\n networks = networks ? networks : Object.keys(_constant_js__WEBPACK_IMPORTED_MODULE_1__.networkTickerMap);\n let disconnectPromises = networks.map((n) => disconnectProvider(n));\n await Promise.all(disconnectPromises);\n}\nclass Connection {\n constructor(network, servers) {\n this.network = network ? network : \"mainnet\";\n this.networkPrefix = _enum_js__WEBPACK_IMPORTED_MODULE_2__.prefixFromNetworkMap[this.network];\n this.networkProvider = (0,_default_js__WEBPACK_IMPORTED_MODULE_0__.getNetworkProvider)(this.network, servers, true);\n }\n async ready() {\n await this.networkProvider.connect();\n await this.networkProvider.ready();\n return this;\n }\n async disconnect() {\n await this.networkProvider.disconnect();\n return this;\n }\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });\n\n//# sourceURL=webpack://mainnet-js/./src/network/Connection.ts?");
|
|
1118
1118
|
|
|
1119
1119
|
/***/ }),
|
|
1120
1120
|
|
|
@@ -1324,7 +1324,7 @@ eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__
|
|
|
1324
1324
|
\*************************************/
|
|
1325
1325
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
1326
1326
|
|
|
1327
|
-
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"amountInSatoshi\": () => (/* binding */ amountInSatoshi)\n/* harmony export */ });\n/* harmony import */ var _chain_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../chain.js */ \"./src/chain.ts\");\n/* harmony import */ var _enum_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enum.js */ \"./src/enum.ts\");\n/* harmony import */ var _rate_ExchangeRate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rate/ExchangeRate.js */ \"./src/rate/ExchangeRate.ts\");\n/* harmony import */ var _util_sanitizeUnit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/sanitizeUnit.js */ \"./src/util/sanitizeUnit.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_enum_js__WEBPACK_IMPORTED_MODULE_2__]);\n_enum_js__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\n\n\n\n/**\n * converts given value and unit into satoshi\n *\n * @param {value} number some value\n * @param {rawUnit} any the unit of value\n *\n * @returns a promise to the value in satoshi\n */\nasync function amountInSatoshi(value, rawUnit) {\n const unit = (0,_util_sanitizeUnit_js__WEBPACK_IMPORTED_MODULE_1__.sanitizeUnit)(rawUnit);\n switch (unit) {\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.BCH:\n return value * _chain_js__WEBPACK_IMPORTED_MODULE_3__.bchParam.subUnits;\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.SATOSHI:\n return value;\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.SAT:\n return value;\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.SATS:\n return value;\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.SATOSHIS:\n return value;\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.USD:\n let USD_over_BCH = await _rate_ExchangeRate_js__WEBPACK_IMPORTED_MODULE_0__.ExchangeRate.get(\"usd\");\n let SAT_over_BCH = _chain_js__WEBPACK_IMPORTED_MODULE_3__.bchParam.subUnits;\n return Math.round(Number(value * (SAT_over_BCH / USD_over_BCH)));\n default:\n throw Error(\"Unit of value not defined\");\n }\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });\n\n//# sourceURL=webpack://mainnet-js/./src/util/amountInSatoshi.ts?");
|
|
1327
|
+
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"amountInSatoshi\": () => (/* binding */ amountInSatoshi)\n/* harmony export */ });\n/* harmony import */ var _chain_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../chain.js */ \"./src/chain.ts\");\n/* harmony import */ var _enum_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enum.js */ \"./src/enum.ts\");\n/* harmony import */ var _rate_ExchangeRate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../rate/ExchangeRate.js */ \"./src/rate/ExchangeRate.ts\");\n/* harmony import */ var _util_sanitizeUnit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/sanitizeUnit.js */ \"./src/util/sanitizeUnit.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_enum_js__WEBPACK_IMPORTED_MODULE_2__]);\n_enum_js__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\n\n\n\n/**\n * converts given value and unit into satoshi\n *\n * @param {value} number some value\n * @param {rawUnit} any the unit of value\n *\n * @returns a promise to the value in satoshi\n */\nasync function amountInSatoshi(value, rawUnit) {\n const unit = (0,_util_sanitizeUnit_js__WEBPACK_IMPORTED_MODULE_1__.sanitizeUnit)(rawUnit);\n switch (unit) {\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.BCH:\n return Math.round(value * _chain_js__WEBPACK_IMPORTED_MODULE_3__.bchParam.subUnits);\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.SATOSHI:\n return value;\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.SAT:\n return value;\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.SATS:\n return value;\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.SATOSHIS:\n return value;\n case _enum_js__WEBPACK_IMPORTED_MODULE_2__.UnitEnum.USD:\n let USD_over_BCH = await _rate_ExchangeRate_js__WEBPACK_IMPORTED_MODULE_0__.ExchangeRate.get(\"usd\");\n let SAT_over_BCH = _chain_js__WEBPACK_IMPORTED_MODULE_3__.bchParam.subUnits;\n return Math.round(Number(value * (SAT_over_BCH / USD_over_BCH)));\n default:\n throw Error(\"Unit of value not defined\");\n }\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });\n\n//# sourceURL=webpack://mainnet-js/./src/util/amountInSatoshi.ts?");
|
|
1328
1328
|
|
|
1329
1329
|
/***/ }),
|
|
1330
1330
|
|
|
@@ -1634,7 +1634,7 @@ eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__
|
|
|
1634
1634
|
\****************************/
|
|
1635
1635
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
1636
1636
|
|
|
1637
|
-
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"BCMR\": () => (/* binding */ BCMR)\n/* harmony export */ });\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/hex.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/crypto/default-crypto-instances.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/utf8.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/number.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/message/transaction-encoding.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ \"../../node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _interface_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../interface.js */ \"./src/interface.ts\");\n/* harmony import */ var _network_default_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../network/default.js */ \"./src/network/default.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_network_default_js__WEBPACK_IMPORTED_MODULE_1__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__]);\n([_network_default_js__WEBPACK_IMPORTED_MODULE_1__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n// Implementation of CHIP-BCMR v1.0.0, refer to https://github.com/bitjson/chip-bcmr\nclass BCMR {\n static getRegistries() {\n return this.metadataRegistries;\n }\n static resetRegistries() {\n this.metadataRegistries = [];\n }\n /**\n * fetchMetadataRegistry Fetch the BCMR registry JSON file from a remote URI, optionally verifying its content hash\n *\n * @param {string} uri URI of the registry to fetch from\n * @param {string?} contentHash SHA256 hash of the resource the `uri` parameter points at.\n * If specified, calculates the hash of the data fetched from `uri` and matches it with provided one.\n * Yields an error upon mismatch.\n *\n * @returns {Registry} resolved registry\n */\n static async fetchMetadataRegistry(uri, contentHash) {\n if (uri.indexOf(\"https://\") < 0) {\n uri = `https://${uri}`;\n }\n // content hashes HTTPS Publication Outputs per spec\n if (contentHash) {\n // request as text and verify hash\n const response = await axios__WEBPACK_IMPORTED_MODULE_0___default().get(uri, {\n responseType: \"text\",\n transformResponse: (val) => {\n return val;\n },\n });\n const hash = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.binToHex)(_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.sha256.hash((0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_4__.utf8ToBin)(response.data)));\n if (contentHash != hash) {\n throw new Error(`Content hash mismatch for URI: ${uri}\\nreceived: ${hash}\\nrequired: ${contentHash}`);\n }\n return JSON.parse(response.data);\n }\n // request as JSON\n const response = await axios__WEBPACK_IMPORTED_MODULE_0___default().get(uri);\n return response.data;\n }\n /**\n * addMetadataRegistry Add the metadata registry to the list of tracked registries\n *\n * @param {Registry} registry Registry object per schema specification, see https://raw.githubusercontent.com/bitjson/chip-bcmr/master/bcmr-v1.schema.json\n *\n */\n static addMetadataRegistry(registry) {\n if (this.metadataRegistries.some((val) => JSON.stringify(val) === JSON.stringify(registry))) {\n return;\n }\n this.metadataRegistries.push(registry);\n }\n /**\n * addMetadataRegistryFromUri Add the metadata registry by fetching a JSON file from a remote URI, optionally verifying its content hash\n *\n * @param {string} uri URI of the registry to fetch from\n * @param {string?} contentHash SHA256 hash of the resource the `uri` parameter points at.\n * If specified, calculates the hash of the data fetched from `uri` and matches it with provided one.\n * Yields an error upon mismatch.\n *\n */\n static async addMetadataRegistryFromUri(uri, contentHash) {\n const registry = await this.fetchMetadataRegistry(uri, contentHash);\n this.addMetadataRegistry(registry);\n }\n /**\n * buildAuthChain Build an authchain - Zeroth-Descendant Transaction Chain, refer to https://github.com/bitjson/chip-bcmr#zeroth-descendant-transaction-chains\n * The authchain in this implementation is specific to resolve to a valid metadata registry\n *\n * @param {string} options.transactionHash (required) transaction hash from which to build the auth chain\n * @param {Network?} options.network (default=mainnet) network to query the data from\n * @param {boolean?} options.resolveBase (default=false) boolean flag to indicate that autchain building should resolve and verify elements back to base or be stopped at this exact chain element\n * @param {boolean?} options.followToHead (default=true) boolean flag to indicate that autchain building should progress to head or be stopped at this exact chain element\n * @param {ElectrumRawTransaction?} options.rawTx cached raw transaction obtained previously, spares a Fulcrum call\n * @param {TxI[]?} options.historyCache cached address history to be reused if authchain building proceeds with the same address, spares a flurry of Fulcrum calls\n *\n * @returns {AuthChain} returns the resolved authchain\n */\n static async buildAuthChain(options) {\n if (options.network === undefined) {\n options.network = _interface_js__WEBPACK_IMPORTED_MODULE_5__.Network.MAINNET;\n }\n if (options.followToHead === undefined) {\n options.followToHead = true;\n }\n if (options.resolveBase === undefined) {\n options.resolveBase = false;\n }\n const provider = (0,_network_default_js__WEBPACK_IMPORTED_MODULE_1__.getGlobalProvider)(options.network);\n if (options.rawTx === undefined) {\n options.rawTx = await provider.getRawTransactionObject(options.transactionHash);\n }\n // figure out the autchain by moving towards authhead\n const getAuthChainChild = async () => {\n const history = options.historyCache ||\n (await provider.getHistory(options.rawTx.vout[0].scriptPubKey.addresses[0]));\n const thisTx = history.find((val) => val.tx_hash === options.transactionHash);\n let filteredHistory = history.filter((val) => val.height > 0\n ? val.height >= thisTx.height || val.height <= 0\n : val.height <= 0 && val.tx_hash !== thisTx.tx_hash);\n for (const historyTx of filteredHistory) {\n const historyRawTx = await provider.getRawTransactionObject(historyTx.tx_hash);\n const authChainVin = historyRawTx.vin.find((val) => val.txid === options.transactionHash && val.vout === 0);\n // if we've found continuation of authchain, we shall recurse into it\n if (authChainVin) {\n // reuse queried address history if the next element in chain is the same address\n const historyCache = options.rawTx.vout[0].scriptPubKey.addresses[0] ===\n historyRawTx.vout[0].scriptPubKey.addresses[0]\n ? filteredHistory\n : undefined;\n // combine the authchain element with the rest obtained\n return { rawTx: historyRawTx, historyCache };\n }\n }\n return undefined;\n };\n // helper function to enforce the constraints on the 0th output, decode the BCMR's OP_RETURN data\n // returns resolved AuthChainElement\n const makeAuthChainElement = (rawTx, hash) => {\n let opReturns;\n let spends0thOutput = false;\n if (rawTx.hasOwnProperty(\"vout\")) {\n const electrumTransaction = rawTx;\n opReturns = electrumTransaction.vout\n .filter((val) => val.scriptPubKey.type === \"nulldata\")\n .map((val) => val.scriptPubKey.hex);\n spends0thOutput = electrumTransaction.vin.some((val) => val.vout === 0);\n }\n else {\n const libauthTransaction = rawTx;\n opReturns = libauthTransaction.outputs\n .map((val) => (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.binToHex)(val.lockingBytecode))\n .filter((val) => val.indexOf(\"6a\") === 0);\n spends0thOutput = libauthTransaction.inputs.some((val) => val.outpointIndex === 0);\n }\n if (!spends0thOutput) {\n throw new Error(\"Invalid authchain transaction (does not spend 0th output of previous transaction)\");\n }\n const bcmrOpReturns = opReturns.filter((val) => val.indexOf(\"6a0442434d52\") === 0 ||\n val.indexOf(\"6a4c0442434d52\") === 0 ||\n val.indexOf(\"6a4d040042434d52\") === 0 ||\n val.indexOf(\"6ade0400000042434d52\") === 0);\n if (bcmrOpReturns.length === 0) {\n return {\n txHash: hash,\n contentHash: \"\",\n uri: \"\",\n };\n }\n const opReturnHex = opReturns[0];\n const opReturn = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.hexToBin)(opReturnHex);\n const chunks = [];\n let position = 1;\n // handle direct push, OP_PUSHDATA1, OP_PUSHDATA2;\n // OP_PUSHDATA4 is not supported in OP_RETURNs by consensus\n while (opReturn[position]) {\n let length = 0;\n if (opReturn[position] === 0x4c) {\n length = opReturn[position + 1];\n position += 2;\n }\n else if (opReturn[position] === 0x4d) {\n length = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_6__.binToNumberUint16LE)(opReturn.slice(position + 1, position + 3));\n position += 3;\n }\n else {\n length = opReturn[position];\n position += 1;\n }\n chunks.push(opReturn.slice(position, position + length));\n position += length;\n }\n if (chunks.length < 2 || chunks.length > 3) {\n throw new Error(`Malformed BCMR output: ${opReturnHex}`);\n }\n const result = {\n txHash: hash,\n contentHash: \"\",\n uri: \"\",\n };\n if (chunks.length === 2) {\n // IPFS Publication Output\n result.contentHash = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.binToHex)(chunks[1]);\n const ipfsCid = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_4__.binToUtf8)(chunks[1]);\n result.uri = `https://dweb.link/ipfs/${ipfsCid}`;\n }\n else {\n // HTTPS Publication Output\n // content hash is in OP_SHA256 byte order per spec\n result.contentHash = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.binToHex)(chunks[1].slice().reverse());\n result.uri = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_4__.binToUtf8)(chunks[2]);\n if (result.uri.indexOf(\"https://\") < 0) {\n result.uri = `https://${result.uri}`;\n }\n }\n return result;\n };\n // make authchain element and combine with the rest obtained\n let element;\n try {\n element = makeAuthChainElement(options.rawTx, options.rawTx.hash);\n }\n catch (error) {\n // special case for cashtoken authchain lookup by categoryId - allow to fail first lookup and inspect the genesis transaction\n // follow authchain to head and look for BCMR outputs\n const child = await getAuthChainChild();\n if (child) {\n return await BCMR.buildAuthChain({\n ...options,\n transactionHash: child.rawTx.hash,\n rawTx: child.rawTx,\n historyCache: child.historyCache,\n });\n }\n else {\n throw error;\n }\n }\n let chainBase = [];\n if (options.resolveBase) {\n // check for accelerated path if \"authchain\" extension is in registry\n const registry = await this.fetchMetadataRegistry(element.uri, element.contentHash);\n if (registry.extensions &&\n registry.extensions[\"authchain\"] &&\n registry.extensions[\"authchain\"].length) {\n const chainTxArray = registry.extensions[\"authchain\"];\n chainBase = chainTxArray\n .map((tx) => {\n const transactionBin = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.hexToBin)(tx);\n const decoded = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__.decodeTransaction)(transactionBin);\n if (typeof decoded === \"string\") {\n throw new Error(`Error decoding transaction ${JSON.stringify(tx)}, ${decoded}`);\n }\n const hash = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.binToHex)(_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.sha256.hash(_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.sha256.hash(transactionBin)).reverse());\n return { decoded, hash };\n })\n .map(({ decoded, hash }) => makeAuthChainElement(decoded, hash));\n }\n else {\n // simply go back in history towards authhead\n let stop = false;\n let tx = { ...options.rawTx };\n let maxElements = 10;\n while (stop == false || maxElements === 0) {\n const vin = tx.vin.find((val) => val.vout === 0);\n tx = await provider.getRawTransactionObject(vin.txid);\n try {\n const pastElement = makeAuthChainElement(tx, tx.hash);\n chainBase.unshift(pastElement);\n maxElements--;\n }\n catch {\n stop = true;\n }\n }\n }\n }\n // if we follow to head, we need to locate the next transaction spending our 0th output\n // and repeat the building process recursively\n if (options.followToHead) {\n const child = await getAuthChainChild();\n if (child) {\n const chainHead = await BCMR.buildAuthChain({\n transactionHash: child.rawTx.hash,\n network: options.network,\n rawTx: child.rawTx,\n historyCache: child.historyCache,\n followToHead: options.followToHead,\n resolveBase: false,\n });\n // combine the authchain element with the rest obtained\n return [...chainBase, element, ...chainHead].filter((val) => val.uri.length);\n }\n }\n // return the last chain element (or the only found in an edge case)\n return [...chainBase, element].filter((val) => val.uri.length);\n }\n /**\n * addMetadataRegistryAuthChain Add BCMR metadata registry by resolving an authchain\n *\n * @param {string} options.transactionHash (required) transaction hash from which to build the auth chain\n * @param {Network?} options.network (default=mainnet) network to query the data from\n * @param {boolean?} options.followToHead (default=true) boolean flag to indicate that autchain building should progress to head (most recent registry version) or be stopped at this exact chain element\n * @param {ElectrumRawTransaction?} options.rawTx cached raw transaction obtained previously, spares a Fulcrum call\n *\n * @returns {AuthChain} returns the resolved authchain\n */\n static async addMetadataRegistryAuthChain(options) {\n const authChain = await this.buildAuthChain({\n ...options,\n resolveBase: false,\n });\n if (!authChain.length) {\n throw new Error(`There were no BCMR entries in the resolved authchain ${JSON.stringify(authChain, null, 2)}`);\n }\n const registry = await this.fetchMetadataRegistry(authChain.reverse()[0].uri);\n this.addMetadataRegistry(registry);\n return authChain;\n }\n /**\n * getTokenInfo Return the token info (or the identity snapshot as per spec)\n *\n * @param {string} tokenId token id to look up\n *\n * @returns {IdentitySnapshot?} return the info for the token found, otherwise undefined\n */\n static getTokenInfo(tokenId) {\n for (const registry of this.metadataRegistries.slice().reverse()) {\n // registry identity is an authbase string pointer\n if (typeof registry.registryIdentity === \"string\") {\n // enforce spec, ensure identities have this authbase\n if (registry.identities?.[registry.registryIdentity]) {\n // find the latest identity in history and add it to the list\n const latestIdentityInHistory = registry.identities[tokenId]?.[0];\n if (latestIdentityInHistory) {\n return latestIdentityInHistory;\n }\n }\n }\n else {\n // if the token identity is the registry identity and categories match, return it\n if (registry.registryIdentity.token?.category === tokenId) {\n return registry.registryIdentity;\n }\n // find the latest identity in history and add it to the list\n const latestIdentityInHistory = registry.identities[tokenId]?.[0];\n if (latestIdentityInHistory) {\n return latestIdentityInHistory;\n }\n }\n }\n return undefined;\n }\n}\n// List of tracked registries\nBCMR.metadataRegistries = [];\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });\n\n//# sourceURL=webpack://mainnet-js/./src/wallet/Bcmr.ts?");
|
|
1637
|
+
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"BCMR\": () => (/* binding */ BCMR)\n/* harmony export */ });\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/hex.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/crypto/default-crypto-instances.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/utf8.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/number.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/message/transaction-encoding.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ \"../../node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _interface_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../interface.js */ \"./src/interface.ts\");\n/* harmony import */ var _network_Connection_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../network/Connection.js */ \"./src/network/Connection.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__, _network_Connection_js__WEBPACK_IMPORTED_MODULE_5__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__]);\n([_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__, _network_Connection_js__WEBPACK_IMPORTED_MODULE_5__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n// Implementation of CHIP-BCMR v1.0.0, refer to https://github.com/bitjson/chip-bcmr\nclass BCMR {\n static getRegistries() {\n return this.metadataRegistries;\n }\n static resetRegistries() {\n this.metadataRegistries = [];\n }\n /**\n * fetchMetadataRegistry Fetch the BCMR registry JSON file from a remote URI, optionally verifying its content hash\n *\n * @param {string} uri URI of the registry to fetch from\n * @param {string?} contentHash SHA256 hash of the resource the `uri` parameter points at.\n * If specified, calculates the hash of the data fetched from `uri` and matches it with provided one.\n * Yields an error upon mismatch.\n *\n * @returns {Registry} resolved registry\n */\n static async fetchMetadataRegistry(uri, contentHash) {\n if (uri.indexOf(\"https://\") < 0) {\n uri = `https://${uri}`;\n }\n // content hashes HTTPS Publication Outputs per spec\n if (contentHash) {\n // request as text and verify hash\n const response = await axios__WEBPACK_IMPORTED_MODULE_0___default().get(uri, {\n responseType: \"text\",\n transformResponse: (val) => {\n return val;\n },\n });\n const hash = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.binToHex)(_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.sha256.hash((0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.utf8ToBin)(response.data)));\n if (contentHash != hash) {\n throw new Error(`Content hash mismatch for URI: ${uri}\\nreceived: ${hash}\\nrequired: ${contentHash}`);\n }\n return JSON.parse(response.data);\n }\n // request as JSON\n const response = await axios__WEBPACK_IMPORTED_MODULE_0___default().get(uri);\n return response.data;\n }\n /**\n * addMetadataRegistry Add the metadata registry to the list of tracked registries\n *\n * @param {Registry} registry Registry object per schema specification, see https://raw.githubusercontent.com/bitjson/chip-bcmr/master/bcmr-v1.schema.json\n *\n */\n static addMetadataRegistry(registry) {\n if (this.metadataRegistries.some((val) => JSON.stringify(val) === JSON.stringify(registry))) {\n return;\n }\n this.metadataRegistries.push(registry);\n }\n /**\n * addMetadataRegistryFromUri Add the metadata registry by fetching a JSON file from a remote URI, optionally verifying its content hash\n *\n * @param {string} uri URI of the registry to fetch from\n * @param {string?} contentHash SHA256 hash of the resource the `uri` parameter points at.\n * If specified, calculates the hash of the data fetched from `uri` and matches it with provided one.\n * Yields an error upon mismatch.\n *\n */\n static async addMetadataRegistryFromUri(uri, contentHash) {\n const registry = await this.fetchMetadataRegistry(uri, contentHash);\n this.addMetadataRegistry(registry);\n }\n /**\n * buildAuthChain Build an authchain - Zeroth-Descendant Transaction Chain, refer to https://github.com/bitjson/chip-bcmr#zeroth-descendant-transaction-chains\n * The authchain in this implementation is specific to resolve to a valid metadata registry\n *\n * @param {string} options.transactionHash (required) transaction hash from which to build the auth chain\n * @param {Network?} options.network (default=mainnet) network to query the data from\n * @param {boolean?} options.resolveBase (default=false) boolean flag to indicate that autchain building should resolve and verify elements back to base or be stopped at this exact chain element\n * @param {boolean?} options.followToHead (default=true) boolean flag to indicate that autchain building should progress to head or be stopped at this exact chain element\n * @param {ElectrumRawTransaction?} options.rawTx cached raw transaction obtained previously, spares a Fulcrum call\n * @param {TxI[]?} options.historyCache cached address history to be reused if authchain building proceeds with the same address, spares a flurry of Fulcrum calls\n *\n * @returns {AuthChain} returns the resolved authchain\n */\n static async buildAuthChain(options) {\n if (options.network === undefined) {\n options.network = _interface_js__WEBPACK_IMPORTED_MODULE_4__.Network.MAINNET;\n }\n if (options.followToHead === undefined) {\n options.followToHead = true;\n }\n if (options.resolveBase === undefined) {\n options.resolveBase = false;\n }\n const provider = (await (0,_network_Connection_js__WEBPACK_IMPORTED_MODULE_5__.initProvider)(options.network));\n if (options.rawTx === undefined) {\n options.rawTx = await provider.getRawTransactionObject(options.transactionHash);\n }\n // figure out the autchain by moving towards authhead\n const getAuthChainChild = async () => {\n const history = options.historyCache ||\n (await provider.getHistory(options.rawTx.vout[0].scriptPubKey.addresses[0]));\n const thisTx = history.find((val) => val.tx_hash === options.transactionHash);\n let filteredHistory = history.filter((val) => val.height > 0\n ? val.height >= thisTx.height || val.height <= 0\n : val.height <= 0 && val.tx_hash !== thisTx.tx_hash);\n for (const historyTx of filteredHistory) {\n const historyRawTx = await provider.getRawTransactionObject(historyTx.tx_hash);\n const authChainVin = historyRawTx.vin.find((val) => val.txid === options.transactionHash && val.vout === 0);\n // if we've found continuation of authchain, we shall recurse into it\n if (authChainVin) {\n // reuse queried address history if the next element in chain is the same address\n const historyCache = options.rawTx.vout[0].scriptPubKey.addresses[0] ===\n historyRawTx.vout[0].scriptPubKey.addresses[0]\n ? filteredHistory\n : undefined;\n // combine the authchain element with the rest obtained\n return { rawTx: historyRawTx, historyCache };\n }\n }\n return undefined;\n };\n // helper function to enforce the constraints on the 0th output, decode the BCMR's OP_RETURN data\n // returns resolved AuthChainElement\n const makeAuthChainElement = (rawTx, hash) => {\n let opReturns;\n let spends0thOutput = false;\n if (rawTx.hasOwnProperty(\"vout\")) {\n const electrumTransaction = rawTx;\n opReturns = electrumTransaction.vout\n .filter((val) => val.scriptPubKey.type === \"nulldata\")\n .map((val) => val.scriptPubKey.hex);\n spends0thOutput = electrumTransaction.vin.some((val) => val.vout === 0);\n }\n else {\n const libauthTransaction = rawTx;\n opReturns = libauthTransaction.outputs\n .map((val) => (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.binToHex)(val.lockingBytecode))\n .filter((val) => val.indexOf(\"6a\") === 0);\n spends0thOutput = libauthTransaction.inputs.some((val) => val.outpointIndex === 0);\n }\n if (!spends0thOutput) {\n throw new Error(\"Invalid authchain transaction (does not spend 0th output of previous transaction)\");\n }\n const bcmrOpReturns = opReturns.filter((val) => val.indexOf(\"6a0442434d52\") === 0 ||\n val.indexOf(\"6a4c0442434d52\") === 0 ||\n val.indexOf(\"6a4d040042434d52\") === 0 ||\n val.indexOf(\"6a4e0400000042434d52\") === 0);\n if (bcmrOpReturns.length === 0) {\n return {\n txHash: hash,\n contentHash: \"\",\n uri: \"\",\n };\n }\n const opReturnHex = opReturns[0];\n const opReturn = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.hexToBin)(opReturnHex);\n const chunks = [];\n let position = 1;\n // handle direct push, OP_PUSHDATA1, OP_PUSHDATA2;\n // OP_PUSHDATA4 is not supported in OP_RETURNs by consensus\n while (opReturn[position]) {\n let length = 0;\n if (opReturn[position] === 0x4c) {\n length = opReturn[position + 1];\n position += 2;\n }\n else if (opReturn[position] === 0x4d) {\n length = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_6__.binToNumberUint16LE)(opReturn.slice(position + 1, position + 3));\n position += 3;\n }\n else {\n length = opReturn[position];\n position += 1;\n }\n chunks.push(opReturn.slice(position, position + length));\n position += length;\n }\n if (chunks.length < 2 || chunks.length > 3) {\n throw new Error(`Malformed BCMR output: ${opReturnHex}`);\n }\n const result = {\n txHash: hash,\n contentHash: \"\",\n uri: \"\",\n };\n if (chunks.length === 2) {\n // IPFS Publication Output\n result.contentHash = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.binToHex)(chunks[1]);\n const ipfsCid = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.binToUtf8)(chunks[1]);\n result.uri = `https://dweb.link/ipfs/${ipfsCid}`;\n }\n else {\n // HTTPS Publication Output\n // content hash is in OP_SHA256 byte order per spec\n result.contentHash = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.binToHex)(chunks[1].slice().reverse());\n result.uri = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.binToUtf8)(chunks[2]);\n if (result.uri.indexOf(\"https://\") < 0) {\n result.uri = `https://${result.uri}`;\n }\n }\n return result;\n };\n // make authchain element and combine with the rest obtained\n let element;\n try {\n element = makeAuthChainElement(options.rawTx, options.rawTx.hash);\n }\n catch (error) {\n // special case for cashtoken authchain lookup by categoryId - allow to fail first lookup and inspect the genesis transaction\n // follow authchain to head and look for BCMR outputs\n const child = await getAuthChainChild();\n if (child) {\n return await BCMR.buildAuthChain({\n ...options,\n transactionHash: child.rawTx.hash,\n rawTx: child.rawTx,\n historyCache: child.historyCache,\n });\n }\n else {\n throw error;\n }\n }\n let chainBase = [];\n if (options.resolveBase) {\n // check for accelerated path if \"authchain\" extension is in registry\n const registry = await this.fetchMetadataRegistry(element.uri, element.contentHash);\n if (registry.extensions &&\n registry.extensions[\"authchain\"] &&\n registry.extensions[\"authchain\"].length) {\n const chainTxArray = registry.extensions[\"authchain\"];\n chainBase = chainTxArray\n .map((tx) => {\n const transactionBin = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.hexToBin)(tx);\n const decoded = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__.decodeTransaction)(transactionBin);\n if (typeof decoded === \"string\") {\n throw new Error(`Error decoding transaction ${JSON.stringify(tx)}, ${decoded}`);\n }\n const hash = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.binToHex)(_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.sha256.hash(_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.sha256.hash(transactionBin)).reverse());\n return { decoded, hash };\n })\n .map(({ decoded, hash }) => makeAuthChainElement(decoded, hash));\n }\n else {\n // simply go back in history towards authhead\n let stop = false;\n let tx = { ...options.rawTx };\n let maxElements = 10;\n while (stop == false || maxElements === 0) {\n const vin = tx.vin.find((val) => val.vout === 0);\n tx = await provider.getRawTransactionObject(vin.txid);\n try {\n const pastElement = makeAuthChainElement(tx, tx.hash);\n chainBase.unshift(pastElement);\n maxElements--;\n }\n catch {\n stop = true;\n }\n }\n }\n }\n // if we follow to head, we need to locate the next transaction spending our 0th output\n // and repeat the building process recursively\n if (options.followToHead) {\n const child = await getAuthChainChild();\n if (child) {\n const chainHead = await BCMR.buildAuthChain({\n transactionHash: child.rawTx.hash,\n network: options.network,\n rawTx: child.rawTx,\n historyCache: child.historyCache,\n followToHead: options.followToHead,\n resolveBase: false,\n });\n // combine the authchain element with the rest obtained\n return [...chainBase, element, ...chainHead].filter((val) => val.uri.length);\n }\n }\n // return the last chain element (or the only found in an edge case)\n return [...chainBase, element].filter((val) => val.uri.length);\n }\n /**\n * addMetadataRegistryAuthChain Add BCMR metadata registry by resolving an authchain\n *\n * @param {string} options.transactionHash (required) transaction hash from which to build the auth chain\n * @param {Network?} options.network (default=mainnet) network to query the data from\n * @param {boolean?} options.followToHead (default=true) boolean flag to indicate that autchain building should progress to head (most recent registry version) or be stopped at this exact chain element\n * @param {ElectrumRawTransaction?} options.rawTx cached raw transaction obtained previously, spares a Fulcrum call\n *\n * @returns {AuthChain} returns the resolved authchain\n */\n static async addMetadataRegistryAuthChain(options) {\n const authChain = await this.buildAuthChain({\n ...options,\n resolveBase: false,\n });\n if (!authChain.length) {\n throw new Error(`There were no BCMR entries in the resolved authchain ${JSON.stringify(authChain, null, 2)}`);\n }\n const registry = await this.fetchMetadataRegistry(authChain.reverse()[0].uri);\n this.addMetadataRegistry(registry);\n return authChain;\n }\n /**\n * getTokenInfo Return the token info (or the identity snapshot as per spec)\n *\n * @param {string} tokenId token id to look up\n *\n * @returns {IdentitySnapshot?} return the info for the token found, otherwise undefined\n */\n static getTokenInfo(tokenId) {\n for (const registry of this.metadataRegistries.slice().reverse()) {\n // registry identity is an authbase string pointer\n if (typeof registry.registryIdentity === \"string\") {\n // enforce spec, ensure identities have this authbase\n if (registry.identities?.[registry.registryIdentity]) {\n // find the latest identity in history and add it to the list\n const latestIdentityInHistory = registry.identities[tokenId]?.[0];\n if (latestIdentityInHistory) {\n return latestIdentityInHistory;\n }\n }\n }\n else {\n // if the token identity is the registry identity and categories match, return it\n if (registry.registryIdentity.token?.category === tokenId) {\n return registry.registryIdentity;\n }\n // find the latest identity in history and add it to the list\n const latestIdentityInHistory = registry.identities[tokenId]?.[0];\n if (latestIdentityInHistory) {\n return latestIdentityInHistory;\n }\n }\n }\n return undefined;\n }\n}\n// List of tracked registries\nBCMR.metadataRegistries = [];\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });\n\n//# sourceURL=webpack://mainnet-js/./src/wallet/Bcmr.ts?");
|
|
1638
1638
|
|
|
1639
1639
|
/***/ }),
|
|
1640
1640
|
|
|
@@ -1694,7 +1694,7 @@ eval("/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harm
|
|
|
1694
1694
|
\*****************************/
|
|
1695
1695
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
1696
1696
|
|
|
1697
|
-
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"OpReturnData\": () => (/* binding */ OpReturnData),\n/* harmony export */ \"SendRequest\": () => (/* binding */ SendRequest),\n/* harmony export */ \"SendResponse\": () => (/* binding */ SendResponse),\n/* harmony export */ \"TokenBurnRequest\": () => (/* binding */ TokenBurnRequest),\n/* harmony export */ \"TokenGenesisRequest\": () => (/* binding */ TokenGenesisRequest),\n/* harmony export */ \"TokenMintRequest\": () => (/* binding */ TokenMintRequest),\n/* harmony export */ \"TokenSendRequest\": () => (/* binding */ TokenSendRequest),\n/* harmony export */ \"UtxoItem\": () => (/* binding */ UtxoItem),\n/* harmony export */ \"UtxoResponse\": () => (/* binding */ UtxoResponse),\n/* harmony export */ \"XPubKey\": () => (/* binding */ XPubKey)\n/* harmony export */ });\n/* harmony import */ var _util_balanceObjectFromSatoshi_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/balanceObjectFromSatoshi.js */ \"./src/util/balanceObjectFromSatoshi.ts\");\n/* harmony import */ var _util_sanitizeUnit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/sanitizeUnit.js */ \"./src/util/sanitizeUnit.ts\");\n/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../constant.js */ \"./src/constant.ts\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/utf8.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/number.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/hex.js\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config.js */ \"./src/config.ts\");\n/* harmony import */ var _util_deriveCashaddr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/deriveCashaddr.js */ \"./src/util/deriveCashaddr.ts\");\n/* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ \"../../node_modules/buffer/index.js\")[\"Buffer\"];\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_util_deriveCashaddr_js__WEBPACK_IMPORTED_MODULE_1__, _util_balanceObjectFromSatoshi_js__WEBPACK_IMPORTED_MODULE_7__]);\n([_util_deriveCashaddr_js__WEBPACK_IMPORTED_MODULE_1__, _util_balanceObjectFromSatoshi_js__WEBPACK_IMPORTED_MODULE_7__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\nclass SendRequest {\n constructor({ cashaddr, value, unit, }) {\n this.cashaddr = cashaddr;\n this.value = value;\n this.unit = (0,_util_sanitizeUnit_js__WEBPACK_IMPORTED_MODULE_0__.sanitizeUnit)(unit);\n }\n}\nclass TokenGenesisRequest {\n constructor({ amount, capability, commitment, cashaddr, value, }) {\n this.amount = amount;\n this.capability = capability;\n this.commitment = commitment;\n this.cashaddr = cashaddr;\n this.value = value;\n }\n}\nclass TokenBurnRequest {\n constructor({ tokenId, capability, commitment, amount, cashaddr, }) {\n this.tokenId = tokenId;\n this.capability = capability;\n this.commitment = commitment;\n this.amount = amount;\n this.cashaddr = cashaddr;\n }\n}\nclass TokenSendRequest {\n constructor({ cashaddr, value, amount, tokenId, capability, commitment, }) {\n (0,_util_deriveCashaddr_js__WEBPACK_IMPORTED_MODULE_1__.checkTokenaddr)(cashaddr, _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.EnforceCashTokenReceiptAddresses);\n this.cashaddr = cashaddr;\n this.value = value;\n this.amount = amount || 0;\n this.tokenId = tokenId;\n this.capability = capability;\n this.commitment = commitment;\n }\n}\nclass TokenMintRequest {\n constructor({ capability, commitment, cashaddr, value, }) {\n this.capability = capability;\n this.commitment = commitment;\n this.cashaddr = cashaddr;\n this.value = value;\n }\n}\nclass OpReturnData {\n constructor(buffer) {\n this.buffer = Buffer.from(buffer);\n }\n /**\n * from - Construct OP_RETURN data from arbitrary data type\n *\n * @param string UTF-8 encoded string message to be converted to OP_RETURN data\n *\n * @returns class instance\n */\n static from(data) {\n return this.fromArray([data]);\n }\n /**\n * fromString - Accept data as a simple UTF-8 string message and append an OP_RETURN and PUSH_DATA1 opcodes to it\n *\n * @param string UTF-8 encoded string message to be converted to OP_RETURN data\n *\n * @returns class instance\n */\n static fromString(string) {\n return this.fromArray([string]);\n }\n /**\n * buffer - Accept OP_RETURN data as a binary buffer.\n * If buffer lacks the OP_RETURN and OP_PUSHDATA opcodes, they will be prepended.\n *\n * @param buffer Data buffer to be assigned to the OP_RETURN outpit\n *\n * @returns class instance\n */\n static fromBuffer(buffer) {\n if (buffer[0] !== 0x6a) {\n return this.fromArray([buffer]);\n }\n return new this(buffer);\n }\n /**\n * buffer - Accept OP_RETURN data as a binary buffer.\n * If buffer lacks the OP_RETURN and OP_PUSHDATA opcodes, they will be prepended.\n *\n * @param buffer Data buffer to be assigned to the OP_RETURN outpit\n *\n * @returns class instance\n */\n static fromUint8Array(uint8Array) {\n if (uint8Array[0] !== 0x6a) {\n return this.fromArray([uint8Array]);\n }\n return new this(Buffer.from(uint8Array));\n }\n /**\n * fromArray - Accept array of data\n *\n * @param array Array of Buffer or UTF-8 encoded string messages to be converted to OP_RETURN data\n *\n * @returns class instance\n */\n static fromArray(array) {\n let data = Buffer.from([0x6a]); // OP_RETURN\n for (const element of array) {\n let length;\n let elementData;\n let lengthData;\n if (typeof element === \"string\") {\n elementData = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.utf8ToBin)(element);\n length = elementData.length;\n }\n else if (element instanceof Buffer) {\n elementData = element;\n length = elementData.length;\n }\n else if (element instanceof Uint8Array) {\n elementData = Buffer.from(element);\n length = elementData.length;\n }\n else {\n throw new Error(\"Wrong data array element\");\n }\n if (length < 76) { // OP_PUSHDATA_1\n lengthData = [length];\n }\n else if (length < 223) { // default max `-datacarriersize`\n lengthData = [0x4c, length];\n }\n else {\n throw new Error(\"OP_RETURN data can not exceed 220 bytes in size\");\n }\n data = Buffer.from([...data, ...lengthData, ...elementData]);\n }\n if (data.length > 220) {\n throw new Error(\"OP_RETURN data can not exceed 220 bytes in size\");\n }\n return new this(data);\n }\n /**\n * parseBinary - parse OP_RETURN data and return pushed chunks of binary data\n *\n * @param opReturn Raw OP_RETURN data\n *\n * @returns array of binary data chunks pushed\n */\n static parseBinary(opReturn) {\n const chunks = [];\n let position = 1;\n // handle direct push, OP_PUSHDATA1, OP_PUSHDATA2;\n // OP_PUSHDATA4 is not supported in OP_RETURNs by consensus\n while (opReturn[position]) {\n let length = 0;\n if (opReturn[position] === 0x4c) {\n length = opReturn[position + 1];\n position += 2;\n }\n else if (opReturn[position] === 0x4d) {\n length = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_4__.binToNumberUint16LE)(opReturn.slice(position + 1, position + 3));\n position += 3;\n }\n else {\n length = opReturn[position];\n position += 1;\n }\n chunks.push(opReturn.slice(position, position + length));\n position += length;\n }\n return chunks;\n }\n /**\n * parse - parse OP_RETURN hex data and return pushed chunks of binary data, converted to utf8 strings\n *\n * @param opReturn Raw OP_RETURN hex data\n *\n * @returns array of binary data chunks pushed, converted to utf8 strings\n */\n static parse(opReturnHex) {\n return this.parseBinary((0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_5__.hexToBin)(opReturnHex)).map(val => (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.binToUtf8)(val));\n }\n}\nclass UtxoItem {\n constructor({ index, value, txId, }) {\n this.value = value;\n this.txId = txId;\n this.index = index;\n this.utxoId = this.toString();\n }\n toString() {\n return [this.txId, this.index, this.value].join(_constant_js__WEBPACK_IMPORTED_MODULE_6__.DELIMITER);\n }\n static fromId(utxoId) {\n let [txid, vout, satoshis] = utxoId.split(_constant_js__WEBPACK_IMPORTED_MODULE_6__.DELIMITER);\n return new this({\n txId: txid,\n index: parseInt(vout),\n value: parseInt(satoshis),\n });\n }\n static fromElectrum(u) {\n return new this({\n txId: u.txid,\n index: u.vout,\n value: u.satoshis,\n });\n }\n asElectrum() {\n return {\n txid: this.txId,\n vout: this.index,\n satoshis: this.value,\n };\n }\n}\nclass UtxoResponse {\n}\nclass SendResponse {\n constructor({ txId, balance, explorerUrl, }) {\n this.txId = txId;\n this.balance = new _util_balanceObjectFromSatoshi_js__WEBPACK_IMPORTED_MODULE_7__.BalanceResponse(balance);\n this.explorerUrl = explorerUrl;\n }\n}\nclass XPubKey {\n constructor({ path, xPubKey }) {\n this.path = path;\n this.xPubKey = xPubKey;\n }\n async ready() {\n await this.xPubKey;\n return this.asObject();\n }\n asObject() {\n return {\n path: this.path,\n xPubKey: this.xPubKey,\n };\n }\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });\n\n//# sourceURL=webpack://mainnet-js/./src/wallet/model.ts?");
|
|
1697
|
+
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"OpReturnData\": () => (/* binding */ OpReturnData),\n/* harmony export */ \"SendRequest\": () => (/* binding */ SendRequest),\n/* harmony export */ \"SendResponse\": () => (/* binding */ SendResponse),\n/* harmony export */ \"TokenBurnRequest\": () => (/* binding */ TokenBurnRequest),\n/* harmony export */ \"TokenGenesisRequest\": () => (/* binding */ TokenGenesisRequest),\n/* harmony export */ \"TokenMintRequest\": () => (/* binding */ TokenMintRequest),\n/* harmony export */ \"TokenSendRequest\": () => (/* binding */ TokenSendRequest),\n/* harmony export */ \"UtxoItem\": () => (/* binding */ UtxoItem),\n/* harmony export */ \"UtxoResponse\": () => (/* binding */ UtxoResponse),\n/* harmony export */ \"XPubKey\": () => (/* binding */ XPubKey)\n/* harmony export */ });\n/* harmony import */ var _util_balanceObjectFromSatoshi_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/balanceObjectFromSatoshi.js */ \"./src/util/balanceObjectFromSatoshi.ts\");\n/* harmony import */ var _util_sanitizeUnit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/sanitizeUnit.js */ \"./src/util/sanitizeUnit.ts\");\n/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../constant.js */ \"./src/constant.ts\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/utf8.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/number.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitauth/libauth */ \"./node_modules/@bitauth/libauth/build/lib/format/hex.js\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config.js */ \"./src/config.ts\");\n/* harmony import */ var _util_deriveCashaddr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/deriveCashaddr.js */ \"./src/util/deriveCashaddr.ts\");\n/* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ \"../../node_modules/buffer/index.js\")[\"Buffer\"];\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_util_deriveCashaddr_js__WEBPACK_IMPORTED_MODULE_1__, _util_balanceObjectFromSatoshi_js__WEBPACK_IMPORTED_MODULE_7__]);\n([_util_deriveCashaddr_js__WEBPACK_IMPORTED_MODULE_1__, _util_balanceObjectFromSatoshi_js__WEBPACK_IMPORTED_MODULE_7__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\nclass SendRequest {\n constructor({ cashaddr, value, unit, }) {\n this.cashaddr = cashaddr;\n this.value = value;\n this.unit = (0,_util_sanitizeUnit_js__WEBPACK_IMPORTED_MODULE_0__.sanitizeUnit)(unit);\n }\n}\nclass TokenGenesisRequest {\n constructor({ amount, capability, commitment, cashaddr, value, }) {\n this.amount = amount;\n this.capability = capability;\n this.commitment = commitment;\n this.cashaddr = cashaddr;\n this.value = value;\n }\n}\nclass TokenBurnRequest {\n constructor({ tokenId, capability, commitment, amount, cashaddr, }) {\n this.tokenId = tokenId;\n this.capability = capability;\n this.commitment = commitment;\n this.amount = amount;\n this.cashaddr = cashaddr;\n }\n}\nclass TokenSendRequest {\n constructor({ cashaddr, value, amount, tokenId, capability, commitment, }) {\n (0,_util_deriveCashaddr_js__WEBPACK_IMPORTED_MODULE_1__.checkTokenaddr)(cashaddr, _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.EnforceCashTokenReceiptAddresses);\n this.cashaddr = cashaddr;\n this.value = value;\n this.amount = amount || 0;\n this.tokenId = tokenId;\n this.capability = capability;\n this.commitment = commitment;\n }\n}\nclass TokenMintRequest {\n constructor({ capability, commitment, cashaddr, value, }) {\n this.capability = capability;\n this.commitment = commitment;\n this.cashaddr = cashaddr;\n this.value = value;\n }\n}\nclass OpReturnData {\n constructor(buffer) {\n this.buffer = Buffer.from(buffer);\n }\n /**\n * from - Construct OP_RETURN data from arbitrary data type\n *\n * @param string UTF-8 encoded string message to be converted to OP_RETURN data\n *\n * @returns class instance\n */\n static from(data) {\n return this.fromArray([data]);\n }\n /**\n * fromString - Accept data as a simple UTF-8 string message and append an OP_RETURN and PUSH_DATA1 opcodes to it\n *\n * @param string UTF-8 encoded string message to be converted to OP_RETURN data\n *\n * @returns class instance\n */\n static fromString(string) {\n return this.fromArray([string]);\n }\n /**\n * buffer - Accept OP_RETURN data as a binary buffer.\n * If buffer lacks the OP_RETURN and OP_PUSHDATA opcodes, they will be prepended.\n *\n * @param buffer Data buffer to be assigned to the OP_RETURN outpit\n *\n * @returns class instance\n */\n static fromBuffer(buffer) {\n if (buffer[0] !== 0x6a) {\n return this.fromArray([buffer]);\n }\n return new this(buffer);\n }\n /**\n * buffer - Accept OP_RETURN data as a binary buffer.\n * If buffer lacks the OP_RETURN and OP_PUSHDATA opcodes, they will be prepended.\n *\n * @param buffer Data buffer to be assigned to the OP_RETURN outpit\n *\n * @returns class instance\n */\n static fromUint8Array(uint8Array) {\n if (uint8Array[0] !== 0x6a) {\n return this.fromArray([uint8Array]);\n }\n return new this(Buffer.from(uint8Array));\n }\n /**\n * fromArray - Accept array of data\n *\n * @param array Array of Buffer or UTF-8 encoded string messages to be converted to OP_RETURN data\n *\n * @returns class instance\n */\n static fromArray(array) {\n let data = Buffer.from([0x6a]); // OP_RETURN\n for (const element of array) {\n let length;\n let elementData;\n let lengthData;\n if (typeof element === \"string\") {\n elementData = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.utf8ToBin)(element);\n length = elementData.length;\n }\n else if (element instanceof Buffer) {\n elementData = element;\n length = elementData.length;\n }\n else if (element instanceof Uint8Array) {\n elementData = Buffer.from(element);\n length = elementData.length;\n }\n else {\n throw new Error(\"Wrong data array element\");\n }\n if (length < 76) {\n // OP_PUSHDATA_1\n lengthData = [length];\n }\n else if (length < 223) {\n // default max `-datacarriersize`\n lengthData = [0x4c, length];\n }\n else {\n throw new Error(\"OP_RETURN data can not exceed 220 bytes in size\");\n }\n data = Buffer.from([...data, ...lengthData, ...elementData]);\n }\n if (data.length > 220) {\n throw new Error(\"OP_RETURN data can not exceed 220 bytes in size\");\n }\n return new this(data);\n }\n /**\n * parseBinary - parse OP_RETURN data and return pushed chunks of binary data\n *\n * @param opReturn Raw OP_RETURN data\n *\n * @returns array of binary data chunks pushed\n */\n static parseBinary(opReturn) {\n const chunks = [];\n let position = 1;\n // handle direct push, OP_PUSHDATA1, OP_PUSHDATA2;\n // OP_PUSHDATA4 is not supported in OP_RETURNs by consensus\n while (opReturn[position]) {\n let length = 0;\n if (opReturn[position] === 0x4c) {\n length = opReturn[position + 1];\n position += 2;\n }\n else if (opReturn[position] === 0x4d) {\n length = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_4__.binToNumberUint16LE)(opReturn.slice(position + 1, position + 3));\n position += 3;\n }\n else {\n length = opReturn[position];\n position += 1;\n }\n chunks.push(opReturn.slice(position, position + length));\n position += length;\n }\n return chunks;\n }\n /**\n * parse - parse OP_RETURN hex data and return pushed chunks of binary data, converted to utf8 strings\n *\n * @param opReturn Raw OP_RETURN hex data\n *\n * @returns array of binary data chunks pushed, converted to utf8 strings\n */\n static parse(opReturnHex) {\n return this.parseBinary((0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_5__.hexToBin)(opReturnHex)).map((val) => (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.binToUtf8)(val));\n }\n}\nclass UtxoItem {\n constructor({ index, value, txId, }) {\n this.value = value;\n this.txId = txId;\n this.index = index;\n this.utxoId = this.toString();\n }\n toString() {\n return [this.txId, this.index, this.value].join(_constant_js__WEBPACK_IMPORTED_MODULE_6__.DELIMITER);\n }\n static fromId(utxoId) {\n let [txid, vout, satoshis] = utxoId.split(_constant_js__WEBPACK_IMPORTED_MODULE_6__.DELIMITER);\n return new this({\n txId: txid,\n index: parseInt(vout),\n value: parseInt(satoshis),\n });\n }\n static fromElectrum(u) {\n return new this({\n txId: u.txid,\n index: u.vout,\n value: u.satoshis,\n });\n }\n asElectrum() {\n return {\n txid: this.txId,\n vout: this.index,\n satoshis: this.value,\n };\n }\n}\nclass UtxoResponse {\n}\nclass SendResponse {\n constructor({ txId, balance, explorerUrl, }) {\n this.txId = txId;\n this.balance = new _util_balanceObjectFromSatoshi_js__WEBPACK_IMPORTED_MODULE_7__.BalanceResponse(balance);\n this.explorerUrl = explorerUrl;\n }\n}\nclass XPubKey {\n constructor({ path, xPubKey }) {\n this.path = path;\n this.xPubKey = xPubKey;\n }\n async ready() {\n await this.xPubKey;\n return this.asObject();\n }\n asObject() {\n return {\n path: this.path,\n xPubKey: this.xPubKey,\n };\n }\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });\n\n//# sourceURL=webpack://mainnet-js/./src/wallet/model.ts?");
|
|
1698
1698
|
|
|
1699
1699
|
/***/ }),
|
|
1700
1700
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as NetworkProvider } from "./NetworkProvider.js";
|
|
2
2
|
import { Network } from "../interface.js";
|
|
3
3
|
import { CashAddressNetworkPrefix } from "@bitauth/libauth";
|
|
4
|
+
export declare function initProvider(network: Network): Promise<NetworkProvider | undefined>;
|
|
4
5
|
export declare function initProviders(networks?: Network[]): Promise<void>;
|
|
5
6
|
export declare function disconnectProviders(networks?: Network[]): Promise<void>;
|
|
6
7
|
export declare class Connection {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../src/network/Connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAOlE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Connection.d.ts","sourceRoot":"","sources":["../../../src/network/Connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAOlE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,wBAAsB,YAAY,CAAC,OAAO,EAAE,OAAO,wCAQlD;AAED,wBAAsB,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,iBAMvD;AAgBD,wBAAsB,mBAAmB,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,iBAI7D;AAED,qBAAa,UAAU;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,EAAE,wBAAwB,CAAC;IACxC,eAAe,EAAE,eAAe,CAAC;gBAE5B,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM;IAM7C,KAAK;IAML,UAAU;CAIxB"}
|
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
import { getNetworkProvider, setGlobalProvider, getGlobalProvider, removeGlobalProvider, } from "./default.js";
|
|
2
2
|
import { networkTickerMap } from "./constant.js";
|
|
3
3
|
import { prefixFromNetworkMap } from "../enum.js";
|
|
4
|
-
async function initProvider(network) {
|
|
4
|
+
export async function initProvider(network) {
|
|
5
5
|
if (!getGlobalProvider(network)) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return provider;
|
|
11
|
-
}
|
|
12
|
-
catch (e) {
|
|
13
|
-
throw `${network} ${e}`;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
// console.warn(
|
|
18
|
-
// `Ignoring attempt to reinitialize non-existent ${network} provider`
|
|
19
|
-
// );
|
|
20
|
-
return true;
|
|
6
|
+
const conn = new Connection(network);
|
|
7
|
+
const provider = (await conn.ready()).networkProvider;
|
|
8
|
+
setGlobalProvider(network, provider);
|
|
9
|
+
return provider;
|
|
21
10
|
}
|
|
11
|
+
return getGlobalProvider(network);
|
|
22
12
|
}
|
|
23
13
|
export async function initProviders(networks) {
|
|
24
14
|
networks = networks ? networks : Object.keys(networkTickerMap);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../src/network/Connection.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGlD,KAAK,UAAU,YAAY,CAAC,OAAgB;
|
|
1
|
+
{"version":3,"file":"Connection.js","sourceRoot":"","sources":["../../../src/network/Connection.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBA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C;QAC9B,OAAO;KACR;SAAM;QACL,gBAAgB;QAChB,sEAAsE;QACtE,KAAK;QACL,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,QAAoB;IAC5D,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAE,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAe,CAAC;IAC9E,IAAI,kBAAkB,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,MAAM,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,OAAO,UAAU;IAMrB,YAAY,OAAiB,EAAE,OAA2B;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;QAC7C,IAAI,CAAC,aAAa,GAAG,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,CAAC,eAAe,GAAG,kBAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;IAEM,KAAK,CAAC,KAAK;QAChB,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;QACrC,MAAM,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,UAAU;QACrB,MAAM,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -2,7 +2,7 @@ import { default as NetworkProvider } from "./NetworkProvider.js";
|
|
|
2
2
|
import { ElectrumClusterParams } from "./interface.js";
|
|
3
3
|
import { Network } from "../interface.js";
|
|
4
4
|
export declare function setGlobalProvider(network: Network, provider: NetworkProvider): NetworkProvider;
|
|
5
|
-
export declare function getGlobalProvider(network: Network): NetworkProvider |
|
|
6
|
-
export declare function removeGlobalProvider(network: Network):
|
|
5
|
+
export declare function getGlobalProvider(network: Network): NetworkProvider | undefined;
|
|
6
|
+
export declare function removeGlobalProvider(network: Network): void;
|
|
7
7
|
export declare function getNetworkProvider(network?: Network, servers?: string[] | string, manualConnectionManagement?: boolean, options?: ElectrumClusterParams): NetworkProvider;
|
|
8
8
|
//# sourceMappingURL=default.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/network/default.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAOlE,OAAO,EAAsB,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAQ1C,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,eAAe,GACxB,eAAe,CAIjB;AAED,wBAAgB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/network/default.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAOlE,OAAO,EAAsB,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAQ1C,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,eAAe,GACxB,eAAe,CAIjB;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GACf,eAAe,GAAG,SAAS,CAG7B;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAK3D;AAED,wBAAgB,kBAAkB,CAChC,OAAO,GAAE,OAAyB,EAClC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAC3B,0BAA0B,CAAC,EAAE,OAAO,EACpC,OAAO,CAAC,EAAE,qBAAqB,GAC9B,eAAe,CAyDjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../src/network/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,8BAA8B,EAC9B,sCAAsC,GACvC,MAAM,eAAe,CAAC;AAEvB,MAAM,UAAU,iBAAiB,CAC/B,OAAgB,EAChB,QAAyB;IAEzB,MAAM,QAAQ,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC3C,UAAU,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IAChC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,iBAAiB,
|
|
1
|
+
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../../src/network/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAA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AAS,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SAC3D;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,GAAG,CACT,oBAAoB,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,SAAS,GAAG,CAAC,MAAM,EAAE,CAC9D,CAAC;SACH;KACF;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,yCAAyC;AACzC,SAAS,SAAS,CAAC,OAAiB,EAAE,OAAgB;IACpD,IAAI,GAAG,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,OAAO,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC;AAED,SAAS,kBAAkB,CAAC,MAA6B,EAAE,OAAgB;IACzE,OAAO,IAAI,eAAe,CACxB,YAAY,EAAE,EACd,OAAO,KAAK,OAAO,CAAC,OAAO;QACzB,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,8BAA8B,EAClC,MAAM,CAAC,UAAU,EACjB,MAAM,CAAC,YAAY,EACnB,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,OAAO,CACf,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CACxB,MAA0B,EAC1B,OAAe,EACf,OAAgB;IAEhB,OAAO,IAAI,cAAc,CACvB,YAAY,EAAE,EACd,OAAO,KAAK,OAAO,CAAC,OAAO;QACzB,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,8BAA8B,EAClC,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,MAAM,EACb,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -14,7 +14,7 @@ export async function amountInSatoshi(value, rawUnit) {
|
|
|
14
14
|
const unit = sanitizeUnit(rawUnit);
|
|
15
15
|
switch (unit) {
|
|
16
16
|
case UnitEnum.BCH:
|
|
17
|
-
return value * bchParam.subUnits;
|
|
17
|
+
return Math.round(value * bchParam.subUnits);
|
|
18
18
|
case UnitEnum.SATOSHI:
|
|
19
19
|
return value;
|
|
20
20
|
case UnitEnum.SAT:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amountInSatoshi.js","sourceRoot":"","sources":["../../../src/util/amountInSatoshi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;;;;;;GAOG;AAEH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,KAAa,EACb,OAAY;IAEZ,MAAM,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IACnC,QAAQ,IAAI,EAAE;QACZ,KAAK,QAAQ,CAAC,GAAG;YACf,OAAO,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"amountInSatoshi.js","sourceRoot":"","sources":["../../../src/util/amountInSatoshi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;;;;;;GAOG;AAEH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,KAAa,EACb,OAAY;IAEZ,MAAM,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IACnC,QAAQ,IAAI,EAAE;QACZ,KAAK,QAAQ,CAAC,GAAG;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC/C,KAAK,QAAQ,CAAC,OAAO;YACnB,OAAO,KAAK,CAAC;QACf,KAAK,QAAQ,CAAC,GAAG;YACf,OAAO,KAAK,CAAC;QACf,KAAK,QAAQ,CAAC,IAAI;YAChB,OAAO,KAAK,CAAC;QACf,KAAK,QAAQ,CAAC,QAAQ;YACpB,OAAO,KAAK,CAAC;QACf,KAAK,QAAQ,CAAC,GAAG;YACf,IAAI,YAAY,GAAG,MAAM,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACjD,IAAI,YAAY,GAAG,QAAQ,CAAC,QAAQ,CAAC;YACrC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;QACnE;YACE,MAAM,KAAK,CAAC,2BAA2B,CAAC,CAAC;KAC5C;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bcmr.d.ts","sourceRoot":"","sources":["../../../src/wallet/Bcmr.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Bcmr.d.ts","sourceRoot":"","sources":["../../../src/wallet/Bcmr.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC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, hexToBin, sha256, utf8ToBin, } from "@bitauth/libauth";
|
|
2
2
|
import axios from "axios";
|
|
3
3
|
import { Network } from "../interface.js";
|
|
4
|
-
import {
|
|
4
|
+
import { initProvider } from "../network/Connection.js";
|
|
5
5
|
// Implementation of CHIP-BCMR v1.0.0, refer to https://github.com/bitjson/chip-bcmr
|
|
6
6
|
export class BCMR {
|
|
7
7
|
static getRegistries() {
|
|
@@ -91,7 +91,7 @@ export class BCMR {
|
|
|
91
91
|
if (options.resolveBase === undefined) {
|
|
92
92
|
options.resolveBase = false;
|
|
93
93
|
}
|
|
94
|
-
const provider =
|
|
94
|
+
const provider = (await initProvider(options.network));
|
|
95
95
|
if (options.rawTx === undefined) {
|
|
96
96
|
options.rawTx = await provider.getRawTransactionObject(options.transactionHash);
|
|
97
97
|
}
|
|
@@ -144,7 +144,7 @@ export class BCMR {
|
|
|
144
144
|
const bcmrOpReturns = opReturns.filter((val) => val.indexOf("6a0442434d52") === 0 ||
|
|
145
145
|
val.indexOf("6a4c0442434d52") === 0 ||
|
|
146
146
|
val.indexOf("6a4d040042434d52") === 0 ||
|
|
147
|
-
val.indexOf("
|
|
147
|
+
val.indexOf("6a4e0400000042434d52") === 0);
|
|
148
148
|
if (bcmrOpReturns.length === 0) {
|
|
149
149
|
return {
|
|
150
150
|
txHash: hash,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bcmr.js","sourceRoot":"","sources":["../../../src/wallet/Bcmr.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,mBAAmB,EACnB,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,MAAM,EAEN,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAO,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAa1D,oFAAoF;AACpF,MAAM,OAAO,IAAI;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QAAQ,CAAC,gBAAgB,CAAC,KAAK,EAAE,QAAQ,KAAK,OAAO,EAAE;oBACzD,OAAO,QAAQ,CAAC,gBAAgB,CAAC;iBAClC;gBAED,6DAA6D;gBAC7D,MAAM,uBAAuB,GAAG,QAAQ,CAAC,UAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;gBACnE,IAAI,uBAAuB,EAAE;oBAC3B,OAAO,uBAAuB,CAAC;iBAChC;aACF;SACF;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;;AAlbD,6BAA6B;AACf,uBAAkB,GAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/wallet/model.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/wallet/model.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAgBvD,oBAAY,eAAe,GACvB,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,KAAK,CAAC,WAAW,GAAG,gBAAgB,GAAG,YAAY,CAAC,GACpD,gBAAgB,EAAE,CAAC;AAEvB,qBAAa,WAAW;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;gBAEH,EACV,QAAQ,EACR,KAAK,EACL,IAAI,GACL,EAAE;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB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
2
2
|
import { sanitizeUnit } from "../util/sanitizeUnit.js";
|
|
3
3
|
import { DELIMITER } from "../constant.js";
|
|
4
|
-
import { binToNumberUint16LE, binToUtf8, hexToBin, utf8ToBin } from "@bitauth/libauth";
|
|
4
|
+
import { binToNumberUint16LE, binToUtf8, hexToBin, utf8ToBin, } from "@bitauth/libauth";
|
|
5
5
|
import { Config } from "../config.js";
|
|
6
6
|
import { checkTokenaddr } from "../util/deriveCashaddr.js";
|
|
7
7
|
export class SendRequest {
|
|
@@ -128,10 +128,12 @@ export class OpReturnData {
|
|
|
128
128
|
else {
|
|
129
129
|
throw new Error("Wrong data array element");
|
|
130
130
|
}
|
|
131
|
-
if (length < 76) {
|
|
131
|
+
if (length < 76) {
|
|
132
|
+
// OP_PUSHDATA_1
|
|
132
133
|
lengthData = [length];
|
|
133
134
|
}
|
|
134
|
-
else if (length < 223) {
|
|
135
|
+
else if (length < 223) {
|
|
136
|
+
// default max `-datacarriersize`
|
|
135
137
|
lengthData = [0x4c, length];
|
|
136
138
|
}
|
|
137
139
|
else {
|
|
@@ -183,7 +185,7 @@ export class OpReturnData {
|
|
|
183
185
|
* @returns array of binary data chunks pushed, converted to utf8 strings
|
|
184
186
|
*/
|
|
185
187
|
static parse(opReturnHex) {
|
|
186
|
-
return this.parseBinary(hexToBin(opReturnHex)).map(val => binToUtf8(val));
|
|
188
|
+
return this.parseBinary(hexToBin(opReturnHex)).map((val) => binToUtf8(val));
|
|
187
189
|
}
|
|
188
190
|
}
|
|
189
191
|
export class UtxoItem {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/wallet/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGvD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,
|
|
1
|
+
{"version":3,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,EAAE,CAAC,CAAC,IAAI;YACZ,KAAK,EAAE,CAAC,CAAC,IAAI;YACb,KAAK,EAAE,CAAC,CAAC,QAAQ;SAClB,CAAC,CAAC;IACL,CAAC;IAEM,UAAU;QACf,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,QAAQ,EAAE,IAAI,CAAC,KAAK;SACZ,CAAC;IACb,CAAC;CACF;AAED,MAAM,OAAO,YAAY;CAExB;AAED,MAAM,OAAO,YAAY;IAMvB,YAAY,EACV,IAAI,EACJ,OAAO,EACP,WAAW,GAKZ;QACC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CACF;AAED,MAAM,OAAO,OAAO;IAIlB,YAAY,EAAE,IAAI,EAAE,OAAO,EAAqC;QAC9D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,KAAK;QAChB,MAAM,IAAI,CAAC,OAAO,CAAC;QACnB,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IAEM,QAAQ;QACb,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/chain.ts","../node_modules/@bitauth/libauth/build/lib/address/base58-address.d.ts","../node_modules/@bitauth/libauth/build/lib/address/bech32.d.ts","../node_modules/@bitauth/libauth/build/lib/address/cash-address.d.ts","../node_modules/@bitauth/libauth/build/lib/address/locking-bytecode.d.ts","../node_modules/@bitauth/libauth/build/lib/address/address.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/hashes.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/ripemd160/ripemd160.base64.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/secp256k1/secp256k1-wasm-types.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/secp256k1/secp256k1-wasm.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/sha1/sha1.base64.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/sha256/sha256.base64.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/sha512/sha512.base64.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/bin.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/combinations.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/sha1.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/sha256.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/sha512.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/ripemd160.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/secp256k1-types.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/default-crypto-instances.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/hmac.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/secp256k1.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/crypto.d.ts","../node_modules/@bitauth/libauth/build/lib/format/base-convert.d.ts","../node_modules/@bitauth/libauth/build/lib/format/base64.d.ts","../node_modules/@bitauth/libauth/build/lib/format/bin-string.d.ts","../node_modules/@bitauth/libauth/build/lib/format/error.d.ts","../node_modules/@bitauth/libauth/build/lib/format/hex.d.ts","../node_modules/@bitauth/libauth/build/lib/format/log.d.ts","../node_modules/@bitauth/libauth/build/lib/format/number.d.ts","../node_modules/@bitauth/libauth/build/lib/format/read.d.ts","../node_modules/@bitauth/libauth/build/lib/format/time.d.ts","../node_modules/@bitauth/libauth/build/lib/format/type-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/format/utf8.d.ts","../node_modules/@bitauth/libauth/build/lib/format/format.d.ts","../node_modules/@bitauth/libauth/build/lib/key/hd-key.d.ts","../node_modules/@bitauth/libauth/build/lib/key/key-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/key/wallet-import-format.d.ts","../node_modules/@bitauth/libauth/build/lib/key/key.d.ts","../node_modules/@bitauth/libauth/build/lib/language/compile.d.ts","../node_modules/@bitauth/libauth/build/lib/language/language-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/language/language-types.d.ts","../node_modules/@bitauth/libauth/build/lib/language/parse.d.ts","../node_modules/@bitauth/libauth/build/lib/language/reduce.d.ts","../node_modules/@bitauth/libauth/build/lib/language/resolve.d.ts","../node_modules/@bitauth/libauth/build/lib/language/language.d.ts","../node_modules/@bitauth/libauth/build/lib/message/read-components.d.ts","../node_modules/@bitauth/libauth/build/lib/message/transaction-types.d.ts","../node_modules/@bitauth/libauth/build/lib/message/transaction-encoding.d.ts","../node_modules/@bitauth/libauth/build/lib/message/message.d.ts","../node_modules/@bitauth/libauth/build/lib/schema/authentication-template.d.ts","../node_modules/@bitauth/libauth/build/lib/schema/schema.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-types.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-bch/compiler-bch.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-defaults.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-operation-helpers.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-operations.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/scenarios.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/p2pkh-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/standard/p2pkh.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/standard/standard.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/template-types.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler.d.ts","../node_modules/@bitauth/libauth/build/lib/transaction/generate-transaction.d.ts","../node_modules/@bitauth/libauth/build/lib/transaction/transaction.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec-descriptions.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec-instruction-set.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec-opcodes.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/virtual-machine.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/vm-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec-vm.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/fixtures/satoshi-client/bitcoin-satoshi-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-descriptions.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-errors.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-instruction-set.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-opcodes.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-vm.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/signing-serialization.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-consensus.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-crypto.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-descriptions.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-errors.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-instruction-set.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-opcodes.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-tokens.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-vm.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-crypto.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-descriptions.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-errors.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-instruction-set.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/arithmetic.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/bitwise.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/consensus.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/combinators.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/common-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/crypto.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/encoding.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/errors.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/flow-control.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/format.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/inspection.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/instruction-sets-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/instruction-sets-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/nop.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/push.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/stack.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/time.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/common.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-loops.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-opcodes.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-vm.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/btc/btc-descriptions.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/btc/btc-opcodes.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/btc/btc-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/btc/btc.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/instruction-sets.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/vm.d.ts","../node_modules/@bitauth/libauth/build/lib/vmb-tests/bch-vmb-test-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/vmb-tests/vmb-tests.d.ts","../node_modules/@bitauth/libauth/build/lib/lib.d.ts","../node_modules/@bitauth/libauth/build/index.d.ts","../../../node_modules/@types/node/ts4.8/assert.d.ts","../../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../../node_modules/@types/node/ts4.8/globals.d.ts","../../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../../node_modules/@types/node/ts4.8/buffer.d.ts","../../../node_modules/@types/node/ts4.8/child_process.d.ts","../../../node_modules/@types/node/ts4.8/cluster.d.ts","../../../node_modules/@types/node/ts4.8/console.d.ts","../../../node_modules/@types/node/ts4.8/constants.d.ts","../../../node_modules/@types/node/ts4.8/crypto.d.ts","../../../node_modules/@types/node/ts4.8/dgram.d.ts","../../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../../node_modules/@types/node/ts4.8/dns.d.ts","../../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../../node_modules/@types/node/ts4.8/domain.d.ts","../../../node_modules/@types/node/ts4.8/dom-events.d.ts","../../../node_modules/@types/node/ts4.8/events.d.ts","../../../node_modules/@types/node/ts4.8/fs.d.ts","../../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../../node_modules/@types/node/ts4.8/http.d.ts","../../../node_modules/@types/node/ts4.8/http2.d.ts","../../../node_modules/@types/node/ts4.8/https.d.ts","../../../node_modules/@types/node/ts4.8/inspector.d.ts","../../../node_modules/@types/node/ts4.8/module.d.ts","../../../node_modules/@types/node/ts4.8/net.d.ts","../../../node_modules/@types/node/ts4.8/os.d.ts","../../../node_modules/@types/node/ts4.8/path.d.ts","../../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../../node_modules/@types/node/ts4.8/process.d.ts","../../../node_modules/@types/node/ts4.8/punycode.d.ts","../../../node_modules/@types/node/ts4.8/querystring.d.ts","../../../node_modules/@types/node/ts4.8/readline.d.ts","../../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../../node_modules/@types/node/ts4.8/repl.d.ts","../../../node_modules/@types/node/ts4.8/stream.d.ts","../../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../../node_modules/@types/node/ts4.8/test.d.ts","../../../node_modules/@types/node/ts4.8/timers.d.ts","../../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../../node_modules/@types/node/ts4.8/tls.d.ts","../../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../../node_modules/@types/node/ts4.8/tty.d.ts","../../../node_modules/@types/node/ts4.8/url.d.ts","../../../node_modules/@types/node/ts4.8/util.d.ts","../../../node_modules/@types/node/ts4.8/v8.d.ts","../../../node_modules/@types/node/ts4.8/vm.d.ts","../../../node_modules/@types/node/ts4.8/wasi.d.ts","../../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../../node_modules/@types/node/ts4.8/zlib.d.ts","../../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../../node_modules/@types/node/ts4.8/index.d.ts","../../../node_modules/bip39/types/_wordlists.d.ts","../../../node_modules/bip39/types/index.d.ts","../src/enum.ts","../src/interface.ts","../src/util/getRuntimePlatform.ts","../../../node_modules/dexie/dist/dexie.d.ts","../src/db/interface.ts","../src/db/StorageProvider.ts","../src/db/IndexedDBProvider.ts","../../../node_modules/axios/index.d.ts","../src/webhook/Webhook.ts","../src/webhook/interface.ts","../../../node_modules/bchaddrjs-slp/src/bchaddr.d.ts","../src/util/bchaddr.ts","../src/db/util.ts","../../../node_modules/pg-types/index.d.ts","../../../node_modules/pg-protocol/dist/messages.d.ts","../../../node_modules/pg-protocol/dist/serializer.d.ts","../../../node_modules/pg-protocol/dist/parser.d.ts","../../../node_modules/pg-protocol/dist/index.d.ts","../../../node_modules/@types/pg/index.d.ts","../../../node_modules/@types/pg-format/index.d.ts","../../../node_modules/bignumber.js/bignumber.d.ts","../src/slp/interface.ts","../src/slp/SlpDbTemplates.ts","../src/slp/SlpProvider.ts","../src/util/base64.ts","../src/util/eventsource.ts","../src/slp/SlpDbProvider.ts","../src/slp/GsppProvider.ts","../src/slp/index.ts","../src/webhook/WebhookWorker.ts","../src/webhook/WebhookSlp.ts","../../../node_modules/@types/ws/index.d.ts","../../../node_modules/isomorphic-ws/index.d.ts","../../../node_modules/async-mutex/lib/MutexInterface.d.ts","../../../node_modules/async-mutex/lib/Mutex.d.ts","../../../node_modules/async-mutex/lib/SemaphoreInterface.d.ts","../../../node_modules/async-mutex/lib/Semaphore.d.ts","../../../node_modules/async-mutex/lib/withTimeout.d.ts","../../../node_modules/async-mutex/lib/tryAcquire.d.ts","../../../node_modules/async-mutex/lib/errors.d.ts","../../../node_modules/async-mutex/lib/index.d.ts","../../../node_modules/electrum-cash/dist/index.d.ts","../src/network/interface.ts","../src/util/floor.ts","../src/constant.ts","../src/db/ExchangeRateProvider.ts","../src/rate/ExchangeRate.ts","../src/util/sanitizeUnit.ts","../src/util/balanceObjectFromSatoshi.ts","../src/webhook/WebhookBch.ts","../src/db/SqlProvider.ts","../src/db/getStorageProvider.ts","../src/wallet/enum.ts","../src/qr/interface.ts","../src/wallet/interface.ts","../src/db/index.ts","../src/qr/Qr.ts","../src/wallet/Base.ts","../src/config.ts","../src/util/hash160.ts","../src/util/deriveCashaddr.ts","../src/wallet/model.ts","../src/transaction/allocateFee.ts","../src/util/amountInSatoshi.ts","../src/util/sumSendRequestAmounts.ts","../src/util/sumUtxoValue.ts","../src/transaction/Wif.ts","../src/util/asSendRequestObject.ts","../src/util/checkWifNetwork.ts","../src/util/derivePublicKeyHash.ts","../src/util/checkForEmptySeed.ts","../src/network/constant.ts","../src/network/NetworkProvider.ts","../src/network/getRelayFeeCache.ts","../../../node_modules/slp-parser/dist/index.d.ts","../src/slp/SlpLibAuth.ts","../src/util/delay.ts","../src/util/transaction.ts","../src/wallet/Util.ts","../src/wallet/Slp.ts","../src/network/ElectrumNetworkProvider.ts","../src/util/satoshiToAmount.ts","../src/util/convert.ts","../src/util/deriveNetwork.ts","../src/util/getAddrsByXpubKey.ts","../src/util/getUsdRate.ts","../src/util/sanitizeAddress.ts","../src/util/randomInt.ts","../src/util/getXPubKey.ts","../src/util/randomValues.ts","../src/util/index.ts","../src/network/configuration.ts","../src/network/util.ts","../src/network/default.ts","../src/network/Connection.ts","../src/network/index.ts","../src/util/randomBytes.ts","../src/message/interface.ts","../src/message/signed.ts","../src/message/index.ts","../src/history/interface.ts","../src/history/electrumTransformer.ts","../src/wallet/bcmr-v1.schema.ts","../src/wallet/Bcmr.ts","../src/wallet/Wif.ts","../src/wallet/createWallet.ts","../src/cli.ts","../src/util/browserNotSupported.ts","../src/mine/mine.ts","../src/mine/index.ts","../src/test/expect.ts","../src/test/axios.ts","../src/webhook/index.ts","../src/libauth.ts","../src/index.ts","../src/util/deriveLockscript.ts","../../../node_modules/@types/jest/node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/@types/jest/node_modules/chalk/index.d.ts","../../../node_modules/@types/jest/node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@types/jest/node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../node_modules/@types/jest/node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/@types/jest/node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"3b9e1093810740229d6e7192880c5f29a0aa676f1886d57ffba1d4286c3592f6","5332c5ccde99dd5f101666907ef9e4d23b0f95b5b973b89e063b0ab9e546cfb3","2fd837dc662e31c39beff2f0a2928ecb50494e6ef9d62fd4f12ea4879c3340fd","706979b041b730ff32de4e478ca995d71f25b5e4246ac90d5b7aea8c92ecc86b","ce0458a4a7c41238fd524d1690b55bca11ae840fd489956937917c4319fdb19e","95ab2fe99faa3e25ff8eb9408451730506d4686dce877a96db073f62f9368932","685f0aa21c1d14d184fbaf5327c390c465d26a0a08e64975764f2b073601bd76","9a18b997370e8442ed2fe2e7e60180f21d2a3e46e45f443784709eec8284f2e4","31ed1f61639da39a41255b3608ebada3c6101ae1bd07ecf67d61605bab1c2c7f","331ad987d42c489d21c59ae5ec30980b43e67ff13cc30bd3e0c73f8af35564d9","a3cc420b6dbdfc0245da4e0d837c339c3f9b6bed2efaa2e26dd8bbe4060cef41","6857d9f06f38c5a8d5bf2a0e8326b978b4876031a3c1f47665876c3daa94522d","a240ea9a3333d3630ce06bf128d796a233df1147bb3cbda86a2b74a584e7f6ea","4419778f6c54c431a8156c7de194ebb9e0876709a8cfc12d40502b0dd1019244","3ea9df1a0f3ae9d4bbc2d5bcc7ddd121af7a1092c5045272664abe07fb5ea98b","0637c5ad5a063a90468be96cd48c4b92fc4e1cb181cde1e4d93f22889e008efd","23577d952485f91222bf21ccba6581742ae4a9a14a5ae9f7cab2af6d0dec4d05","9614a1772bd94d0bcada6b9ffc7019cb03b71e6de4ca1a330ea554c4d6177b59","6286b7dbba20a7394289b54f331eb99527cda91662829d31d5460bc67082fe29","9db83fcda1b23de0829ecbd15655d42171d79bc98f0c6772767e08857aeca611","ada1dc76e297e7fee41eb083b3a60fb54bd7e729ed68732a6ce5d0e88140dae1","ca2777ee09e1dfa097a475133f11da8e4124f9129581e00435f36abd7618b980","3153b9fd0279f7930352e5f55d7d07eb174a8fcfd5f23acc71e3c7293fea8520","e3dd6f5b25d26f229efb106789189628ec8186cc28e3d58783426e18baff9c53","4fbc35a02a0687614b042fa52a46ac1ae7c1bfce68f0aaaad8b5a76a7777edf5","66fc3f87542bc556b590a4f4177c22490c117fc96eab69bda2e9e0c445eb5cc2","1293901b689c514fafaf7f9ff9eff109b25f32fdbf64bc7fe8da561d473d2091","bc82f26edea61e61473470eb7cbbe76b815cc27dcc6aa1b6d3fad86add81fc17","9b45c8fb886e1feee2bee6ff97b84bd10cda89f2b8cff54d27cda826d3609a72","9b15c2754d92c35fc53e42ba771e32b2038d8d72408f4704c8daab757043e4dc","dfb23f34c344a9629724b4dddddef48ce0bfc8e74b1067a8b7f2f71ecd6ee4a0","a1b221ec8bfb5f2c24fe05c514b9c03c2f813a90a1e538fbd3c74998ce0ce096","a7920efa08217d3175420b88117e78fb8f2dfb1de498b3ec294048861675e07b","48084d2b5cba75038992083aba5fc0e41933bf1a59b19733296b1d099be1ec81","15ac5424c6183bd167314972be53111b50fa3945c6f004ecae5aef42d1e03d76","428565fe14b2bb1e0780087739e6a568b102e449da66c2ba4ae8fb6293e7f06c","0ea021174e32d4a992912419754dae74b7c55a07eba639bc5548815ed4c079b6","e0713f909b03190f011a3d4266e7bdf0f313d6e5fc600d95638083380139663d","5af9f4dcc13f7c3afc52644d9e249e3073ea6240a62fffea1d1f88da00801ba9","0708c284b3603bfe7f7946709a8b62f1b81d987b7e301fd8fc5312d8d085abab","0238461d76b89e4f0b2f21073c47e857f40c98f9e5cd402333cbe6b0a0d1bb7d","b18aa158272a8859ffc348d87e39f4fc4cdd526ba7382e2249a7e0207cd304de","9d184849efe9aced4bf7b9fc664d066c34ab7ed64c5f6637037ea7667b7e4209","3be168163c3f0370d5a750ffdd4f562b543e326c73b1b338e30eada2c1d6e104","20ad9e1cf91a430c90b93e8d0bb9abbe8af7dd4971c274c4fa1968fa2102c2ba","8d794a7e97b5e66b95d0cb7199d569f9d1e0172f600237cb4e1aea5bfb645796","e312e6add715ec2e97e938409478d9017d6c91f4487ce6e4aa2709e60f67cd95","012c215dfb627f8427db1e470b018a9869d48170c4275d08ed83be3ef7b3e46c","eaac3250f753e381163c74cc0706e15ea11da870bf67d2ac781328286c7e761d","0367482c4b8443f6c85ea71bf81676636afe88c508cd3fef6cd07ef1b9706fc0","c2a227bd507cac7fdbdb2f5375e3b05f6f28f7e247244c52c81229942d5989aa","da9f4d6baf128522f33de2d696b3aa815bb82773ef5dc4deceaff7eea8337287","9e334139506c8742da707999ab4c169d4f04085288700d28419c439f38342ae1","f555ade89f80bd23a93534e9d1adca5c60b18e20890ed22e691c2bb4305a572d","c9b490ee0f879f4be435965f9cdb2df4e4b67c50aa7bed6ae2a55b98062ab732","f871d624e9cec46e63399c74deb15c183c50390d1e9755130717fef36396bf2d","0c3a5591f9f6d50bec9174a93b2a991630216b95e3d3bc1598e679c2206eda8f","6576b2914897de35e352c748d699d43caa784e9d51c2504b2373ff0689fd5d70","4cd55518543849f25e7bec090efe6e13f6a292240fd216e48a9ff915c9a6ffa3","c4ced9443e575425658517a0cd99be5327dc0bdc556859477785fd8f4c8e5b5c","929cd9e3bae21fddffa7c5b813561e18ec6f3e88c02fa750313e709a7201ebc2","c624d1a578d9b6631bbd099e1f4397b08e9445ca0b7d80fa18c321dd0b4980f6","5e9004c2aba118299bcc17d5d115044512faa9bd814417e3239e8b53f83ff5d3","bda49aa2198d524e9de0c546be272afe8c22b05d6e4acbf668a4a1dafe9813f7","387ba24cca9932007dfa86415d59e2ffc6ff6a35d5e0e1cde27f1ad01b91b9bf","6a82a8b189edac5e97d8f893f901db3a941cc521497789265eccccd94974ab83","29c97e978dd0682439d4109094dff72ec8707906786343f6ba6f6f82f9260f75","d2dec72e158cf166711a3009180d25ad363fe4cad0178020098aa5e08c4842e7","2e3c2763dd6c35e44962b7624fd896a3b551cbd188eec06c45d2729adff13587","f5d8843fd8c6d4aacea9792e8c0ffb47e82c81523b65690fb7a21a76c19a2ae9","339f71322345c9caf86730e90e74a9cc865134cced1d9954b1ff7fbe0da98639","cda18bca3c3c8cfdeec5568cfbb367016dd7f15052d0811d5d128c30e4dd9c66","7513cdd43851e3d51393c68572d42dd944daffb90cdac5687c17993a5c6dc413","76278ca7d48a20284bb7d2852ed2afbe46b47e621d51703499f9934193aacfd4","7560b7502c10ebdf0d07ae7f83567a25f0e18501541a761f5456039a75fdca34","a6d5464c400860c746d59538eeac8aba030bd286a30382cb35ffa180bb45360b","882c65b85e101318cb241a04d9f6098f40f81f60969dc23ed43eca93aa208756","9b9ab0f61e1a9d1544cce8f6a898a67fcb398e7a2916c8f7bff196aeacaa42a1","18aed24936a61efb3c4794117cfd6296a68d709ebefd7ded2d4a8f9a3f10451e","7f45c53d713e44a39ce9715516a742401ec67ca64d28e89800a1087b413bea11","1e6174605c3d8a4ceb9584011a8e765d2a9448a936061245cfe184914956e025","9d04be61d449837d03f2f2c6cb45862e01ecf27f2d9e9e649381923ec2ef183d","e7ef7f20139a8e1107206b6ebca0aeaf5afc106fdcd3320f72d8fa1aa6b8b376","6bbb61263ab6dd8df228f4ffe545c64202c2b9d86dbe915484c75dcb5389fe6f","d1b9f9d3112a2a61002f35217328c4f9d8c855c97a7bffb3c07064e5d75bcdb2","3c4dfe04caf7fcbfc0692300041612b5078691781ccae335085d6dad8cf39ec2","9dbb17d8dd416cd59de116f60c92da5cd5a330657e4b1288ae1667f64ac976ed","c383e01b0a485533eacc2ece74da9806d24c2b04d3a78c0e88bbc170a26e948b","35a99c2aa2cd7d2cd1c44dad12363dedb2eb4ce1aeaea2522b7d673ad0d351e4","84f19808fafe26e154c513ae796980485e314327069d04239b4e3241adf5ff97","6f2aca76e18c1f39674340ce5a26c2a24de95eabae0428a5c2db7f06f492a2b6","fbbe6400d3c632bd8ec78c6c2e52f9f12a5730f1239850360b57c437af85efce","b84133cb67d1fef4258fb16730f559491d5d461a9846179f064b976eca2450f9","36f2980ab459e1b953d14c662daa7156a2a129eb66b83571ac71e0c8881b8522","5a0837a29362a7f55904bc5582af6dc7f77a454419b3482c0066603f79b47d57","ae4ab429f512d21fb3ed429b3ca544a3568790f24a5450a9e1533b1b610ef26e","d3fda3824d4c8d8d37be73e0429c11a3521739a542b075ed44adb322fddcd7a6","238b1c00330577b9b6b1643efb4303bce2c85a95ba2230c239c71fd765faff00","7b50e59b4e32f9e2fbeb7a220250206e48942f5d4a988492d7d059de513d06fd","2693c10e8fabb976fbac9db06949d365cbacd921739e6aa29dc46dd9d5e4cefe","9ff98cf113c2e37f217778541e2fdb9c2be84388a1d270eaa902c9aae61d7212","6b39cda7617dd553240be27ff55b430261ae8a29e714f9c519c06df7689fbc95","78642dc6ba7d04f5a925df178a53899906789b00798af7e816222bf4f46b99c2","f5b16e5d2b22f4f4b8444e03eafdd6fb4ad904695ebec82d25ecc107c9e633e2","beac06589b709b31baeaeb90f771868216b57549407a4a71abc1d858bc7ed9d8","f56587bcdbe14c7b5b8c0a5989aaae30cecd14d2634346e4bef26457c0a1e63b","f215e54e54bc5ec56134d5f660dce46f48c33102a763b41e2eca7ab9285d6d79","ae24edf9350dfc471398c23f268879ecfa535dff67769d602771be59b2cc60f4","e834ca7fe4826cb221d685e465a3c2a790665152a107b9b977b2432afb9951fe","dd252980d1133656ab80e25b92eb1963f4a7c1fd22a327299cb090bebb126367","faa5b92a0d9c92a98db4dd42f7df79ccbcd40500c13a6135da8489dd6f23e080","ee1883ca05392d0a3edaa482b1ecbc8a14440c7b192f7663dff60c2914251954","714e743cd19bae94605cdca05f60e47a46f87a4d229729a8d2c25b0e010274de","bdfc47983cce07807ea805c6a96f28d5d70ecb3c4001b8d0f13e90cdbd7a1b6d","91c100d702370d0333ba322871475b70e2618add8d5708aab911b6f5ea760355","3d5839dcc56fa931ef88d454b74e117800c8b9e6c70dd5ccf61dd0dcb76fb187","d6f7eecd92003c511c4f30395a747a3c8ad1c8a529ba80b08cf71bc52deb44ef","b2cfcb267f3ad6d48aa0b9c7a1146f63984f5ea1cd8dd63527eaf1738c713fca","45c971b451ed5d9aa8d2bb3cf052e74f1d5af0e644aa419d46008e2909c1c1d8","dbdcd6590670ad0392ddcdb9ddcd53eb9e3e4c5db174e6a03355609e29ea690e","5f439f9b428b4819042db3c9cd2ebc1d01227821c75c0d8416456781635996d5","89a092a002b46691edb0ac7b0d2785a1f2536547a98b06805a0ea8f7149e192c","194efe7871d33f19d687dcfc1b5fb65854a0226521a058598dc80e1e4a2c721f","c0c81406c104bf1aecd935b2947171b283ff3b153d539193b3151d54ecbed1b2","ffeebf5bab849797873e4a1e203f15c8a9ca1ef9ffff26b9cd7441d4ea19041c","490e36ecada1b2924a08a79137a30a4180ba888a4ad0099e0525ca80dd5c3502","f309548f6532ec8a8fad2ff9ce69ace82341d4e6a0d284b157470a755a665085","1d4dd1f50665186141bb602fd5a627f3d54343666f34c6eb6fec33cb8c906700","88879e7ee08b5a1b91368a17bb94e40526de99c36ab6d59a9e9f4beb7e571425","9ef9b3e43e4c3c092943fa1792c867fc4fee2bd1bbe54e6e91d6ce8bcccb0dd0","7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"02873d070f9cb79f50833fbf4a9a27ac578a2edf8ddb8421eba1b37faba83bfb","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"c0db280fa6b09d7b8d6720a19a47f485956a41ee0e6914f1b704033eb69c6058","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","afcc1c426b76db7ec80e563d4fb0ba9e6bcc6e63c2d7e9342e649dc56d26347f","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","b01a80007e448d035a16c74b5c95a5405b2e81b12fabcf18b75aa9eb9ef28990","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d4ac44f01d42f541631c5fc88d0ed8efac29a3a3ad9a745d9fd58f8b61ed132e","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","3163f47436da41706c6e2b3c1511f3b7cce9f9f3905b2f3e01246c48b4ba7d14","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","213fc4f2b172d8beb74b77d7c1b41488d67348066d185e4263470cbb010cd6e8",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"f7db71191aa7aac5d6bc927ed6e7075c2763d22c7238227ec0c63c8cf5cb6a8b","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7","b50dc1eb21ae0cf50fdad3a52298af07a6c5aa681c55ecc68b45362294dc3972","2403a8e0780ec6f1e95f3a4f922eafdda29da975f0bffe7e35cad640b333247c","aa88fdf791a8ba56cf4e6d02fe429c5b04ce2503fe086f7e6e9f81531aeed3c1","3ded69a25b2b449fda06c6bb0e32fe4d12ba9de48dc13301da84dc0895374c6e","487341e0f84e05c687e8c70cc1d2037cea278ab2a4f1aaa38442aa1a42a2deef",{"version":"33cffd5ca9095af2ed7ba139141da8149b46f6920ee5a4379977d5b0b5ef0420","affectsGlobalScope":true},"fd284c77ed6d7e0abdc4e403c82bacd771c26ef8397ec5fc23c1f20e88044e0c","edcf370a8ec397dc86c51ed8c8bad2cdb0b02cf1798fadb22060bf46b64f19fa","9585a18102ff193e44658d29314cb22073952db32da15dd4f39a1a682f88eadb","3154a026075044aa102298fe9e6a7a14aaa26a06270680c7478a1765af8ffb09","c2a81d26e7f1ba7021f042a929e15d932acd3e3ceb98f54c8ada93f90ac702d2","553d365034884d76007feda0faebc858106e1acf38c6e24ce9e9162a9983e0e8","27e50d01e5bca9247a03b4323232432555f80a4751bc27b5949c256cd8f292b1","9edaefda3781546d2113d529abfaf4e9c51dc0b635f53b98f88d0df91a241ea8","fdde875d5323fdb8e281a4ea60479a7e85d17271a6b7efeebedb6e90a1daf93f","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","b3e7176bed0257521bf125ebfefbbb5f5dbdfe10e66155167cd0cf1a18872a18","e0fa568e94e16b6ee842d293e387f1b9620686a7f975371322429ce3d2ce0313","1d7d9e42cb2cc36dfc7ce35755ce67d5ff0f4a2ef72d3019f4c461bfd22123da","ddae82f77c1050f3048d717a4623e4dc1f10b3b025e3873e4fb4b03fb8598b2c","487714a2ecb96f22adcded7f82c6d9a9f5c540e78d49c14fe1e82c11155d7bd7","62300d4cf4637c0e974918556cde49d8e5c52a3501d1849409a177004ba5751d","2a851f3adebd931ec949cd374ce0ab05d59dae3cfe3a56300cb0f55c1b933213","7bd5d8c3532aa28239678b30c08a3084912b8c1f1c68d524aa3c1e32bacbb6a6","349137a17177d2168c5298b29eabc8acc6a934585f6638339123f98a859dfcdd","2ced5d1d1451a58b200e865f1165592c07be2c5832572147dd88e571d2705b61","d579ca74740a04bbecc7018bb60bb600898260f35c8a1e3085f92eb2a22689ad","c4242cfb66fd826179d99c6d30fcf86db4e84db1d528ff2c9e2204eb739bad1d","9631810c4f7406485e2487f9b1b817129ad5029d1156324d7f6d43674c26149b","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","1442a75050bad91356b11dcea6dfb877154d1f2e00f863a9b17ba5e903659503","fb14266ae4070bd16db6b071e98887452bc359695c40742e38515a89dbc80a63","4a24d83c0d8f489465c4d38ed9fd87121c8a2cf50c47efe09c2eca93d39fa908","c052e32b9de53cd2596f196a0901801961bd7a31be9fac4ac2f117e4103e3a07","b15cdbb45919bc3b8e6b6f962d65382e85061d70bc26a968604f3dce4ad3a891","d6b58d955981bc1742501b792f1ab9f4cba0c4611f28dcf1c99376c1c33c9f9c","f0b9f6d5db82c3d1679f71b187c4451dbc2875ba734ce416a4804ad47390970a","a5c38939c3e22954a7166d80ab931ac6757283737b000f1e6dc924c6f4402b88","31a863da9da2a3edec16665695bdbc3134e853195f82dafec58e98c8e1bb3119","da728b7b918be9cbef6143a1f30563c8582b4801057777f383569c474fca4088","364c0af9dcfed9dc5a2467f1e30ba9e6b8c931e26d77fc78ed3fdeb96ac0dd96","547bf5974369e3ff85eee157cbc94a69ce177b218cf0586ab93731491c6fc5ae","5a0666d3bfaf3edcedd72e0a0819d7ad2128009acfe9d68f76b827872ffaca57","fb2987ec9f80fe1e21114d584973d553196394a6b5fcfd36b62836cc33bbff5e","8b11baddd86ed7dc23742db36abb061c8030010eb1f4f8efc9b3991969df3a5e","40871fe15e2ecf88714da0847588959d7049d34709a5c4f9f2584d8cdbda2874","2e3778314a396a2943ca5fcb1a2ada99127991eae68a3d6e054580f6e71f5f97","664cbd952ca1c58c4584b8b20069089f6f008549cadd392a8acf817ad595196a","f5eb32a9fe8d26a29e8005ab0f4a6ed57d890acb6c5c4d315a984d661a59acaa","f55f979f31920b252a9f472183e724c372465284eda5593f3ff979f7e781a9c7","ca83a3200101528e59cc12cf22abe8eb9cf2a3b5bafa9a7bf8606562816d20df","94b86c9db78a81e040d2dafc1f7a8c3b9e70a24c222a845371fb1baa9eb132c6","5e5de9f467516458105f114ba1d716c4ef9bad2ffef0597cbedfa623c8c65750","ff570d0aaf44186d578288e50131a0c23714fe2f6ff89cba6e67c3b6e453f20f","367ab90a74f5c19abff93dfee24d933cb672c0d875e4ac95708703871be5707f","e4c43c426ccdaf649d1e7a7420781df4fd39bdaa4eb3d41672974d9a693683d2","6b53e01dcf1e66ff41e08c204bee37b23ad15d49502e7455e4cc3b152932459f","ea38212c34e9ef0d803a4629c30d3808f984dbb8c8da792ec9dfc4cb4da07e46","bbc0a7f0956e301e7143a0236972119766d1a95a641d1f249067b565b18048a9","10e7c7472c14a26dff5e3778ff31937ed7ed1d417f818e307dbe103b1d97bcee","11c97f2e856596a67d789fc11e7edde7efbca3dfeb040543c3a52d4b12a5b258","886512504b741adad9645df0de46ce06a5ba0b8cfbbe0cb6cbdfc02d14eac4e5","5337bd9cee8222598bab8f01a140dcd030d567da487fb6418b849fb2455cfc25","3c0e17e33d3a5b3d2d74140c6b7f2a3d0d138d6b7579f22fb2761a2473b2d41c","28ad1f454e1f58da0dbd3526c00a1bd4555b4d44101ff47beb82ff25df2eaa17","535c495248be283cce05bff71f4ebecc3c712ca7d4ef6735b143426b333e8083","1376fcb20905de176bd02c73f5fdd6dc0366d36d60725eec51273b30df79792c","19c2bc5072ded03c0e230bbf1560ffdb38ccde0ff19e640ba6ae9d4a067dec81","65d024d0983f35187ad678059a2815d98e4ba112575b597b0b4ee4b58a83fcb7","5591c0c89b22bbfb13a46204b4bdc827258c0d5778a80274cc446a8a232b10a1","992a7cc898964f2a4108222528adedc5473820c0d64fbda3a1c9aeb21a03d809","919f2cfcc5ffb092f09f8808b61d052b24a0a8548a5c07b4de8b5c492cf6ccc7","9db9500b8569d1dd236678d71d809da09dbcda9b0ed22c6d741d95e1c784a93e","2ff811272892562199dd2111cbcd09ca3cb4e87b836235ec9a1c51efadc47c89","ca29c120c816120222d7561cd221c6aad4af304cf06e234bc16a6ea59022878c","1d6800aeb28b8beac0b5f3fef6a481574d71919ecdb7075af52f88e1e28f9b71","2484a6663d205139c1b6728ac74d92ca0fa1414c9a0fdacacfd3e6db90b8074c","77dc1d931970de6dabca33e5a7cea9bd7759f5bf1644dc9c7b0cbb7d5a1bf25e","f7af13ff18c0f7f2c5157af3e6053d1b556f4b68b55f2a3722de548bdd04412c","b13986569a88ac17de80fc1ffa0860d0636051e91733437140bf399d56b26047","0d40cf3f6a3b799381e8e2aed00a6e8451e4b8e553e3f2b2415b4625c47ba9c3","22738c10c5a0c76db18caef6741ef17031642fd6a46f02989f5116dcea307f9e","6cf703a66860b2f1a58044937d9d59cf6c18551f56795d2f0b68a8f1da0f241b","bbf28aac6fc307a3925db448f87dc5e8d85b4806d9cead36f8776d77afa0b00f","fb724c133584a056c6d715ce5275bfa294e2378c8bacc28e9ecac1acd5e73717","3c681eacf1fbea01429d3c78f93dda4954109d3300b19a11c343f3583e607fb9","61d5ceb43470315ebaccc58a015eaf09754ea24459ce403a090ac64d3a00d941","3af0990420f89ab85b4bccff233385bf66fd1eb01bf691dfe31372c92a9f39c2","f47b4cdbc1b015d98faf30af8e746327bb9e5f1efa2f707eb070adb483314bfd","97ca28b5c460096532d75a9ce804407b96690b160fcda292fd662025d7484ef5","04ac11c12401bcc89f5ff15c93d5c6f9d38418d2cd6826e3a5aab9fa871ba6ad","4ae141b91c1556f0735b10a94a6c1b944c3d20319d7e15111b466e06aebef97c","d847f63be3bd0f50a8314066d8bbdc375d6da3d0e961ea729117633ffe2955a0","d6ac9140b23463ae26043cbe4de2bd42e2acbc6fe79b740f8ef968a3ac7714fb","f7a76e04d55272e70d5e4aa916062f943870ac3253d495e1bfc3fd8bf2678769","90b61375a9a95ee8016174c9f2400c89734c347afb27f8670650d84cad9df271","2677345388f45180cbbc4e1570912d9c14cb7e0215ee5fbe12c15eaf268b332d","12aa9c803cd79a739aa663156f39131869a41388bf253e3b51f0f61f98a07663","be92647dfc052cf320b5ac0bf79ac1df11c0b77cc6f0b1bf5be7dce314a7db68","ea4f5a4451505cad589168e6a31fa0fe6f5cff894cea623c531cd2dece0a4776","7a2de0665fc211459f42e1d9951ed2fee95116d725f88078fb58cc608c938a32","d4cc9f14e46d4f92b2ec6268b94a4f8113aed206cf926b9302a76a37a492514d","288b57cf5e74baa9e608d6f04efba1d3f6687a6b661dcc56ce95fab35b124378","615b531858d1adbbf76c5509607b3330ff42aa51a4967a3dd318b885f39e3354","8a20e1c333c6bc8a051a6408d5e24684383a8fa89f832f0475d12070220f8023","d5ace6192178d45de42affa439c12585d4fe6aa51ec198da3261d64ce7f6897d","fc9c075827b48e02faa76886d02294f5c81446872aa715cb246c31180896914c","030e1fcbaf536940f6facf8677ff38f729b5574cfa6ebfcd6d354054ffd104af","889b4beefc59797c39dd56afbd7a441c95a55d64ada2640ed7537ffff93c3d43","e86e0e2b983a550a2d01cf9bd788a1cb4013704a2c9d44fa6a92753fe68da24d","a4ff82e54647b1ef4f6cc7faf389469b63d39acc9110de02335507211064881b","ba6a3fbd9e0e983214d64157afacb8c4ca2e5c6571fc16101414f8748f9df65e","c5c49ab1c00721a6832baa031d5cc91464802e1524465f57a50cb13953ebc527","cf8888dcc41b068af7a630cbfffccf68ce6f2ffb5413fda9ec562ca0493f8752","a7321c0e96eecb19dcbf178493836474cef21ee3f9345384ce9d74e4be31228d","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","3054ef91b855e005b9c4681399e9d64d2a7b07a22d539314d794f09e53b876a7","427ce5854885cfc34387e09de05c1d5c1acf94c2143e1693f1d9ff54880573e7","bed2c4f96fab3348be4a34d88dcb12578c1b2475b07c6acd369e99e227718d81","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","9ac9b7b349a96ff204f4172183cca1672cc402e1ee7277bfcdec96c000b7d818","ac127e4c6f2b5220b293cc9d2e64ba49781225b792a51cda50f3db8eafba550c",{"version":"f5e277afc658b3fefe1e9d06f3018416ea92f3e094bc21d38517f7f36627a5e4","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"esModuleInterop":true,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitAny":false,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./module","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"strictPropertyInitialization":false,"target":99,"useDefineForClassFields":false},"fileIdsList":[[216,346,349],[216],[216,344],[216,342,348],[216,346],[216,343,347],[216,345],[170,216],[173,216],[174,179,207,216],[175,186,187,194,204,215,216],[175,176,186,194,216],[177,216],[178,179,187,195,216],[179,204,212,216],[180,182,186,194,216],[181,216],[182,183,216],[186,216],[184,186,216],[186,187,188,204,215,216],[186,187,188,201,204,207,216],[216,220],[189,194,204,215,216],[186,187,189,190,194,204,212,215,216],[189,191,204,212,215,216],[170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222],[186,192,216],[193,215,216],[182,186,194,204,216],[195,216],[196,216],[173,197,216],[198,214,216,220],[199,216],[200,216],[186,201,202,216],[201,203,216,218],[174,186,204,205,206,207,216],[174,204,206,216],[204,205,216],[207,216],[208,216],[186,210,211,216],[210,211,216],[179,194,204,212,216],[213,216],[194,214,216],[174,189,200,215,216],[179,216],[204,216,217],[216,218],[216,219],[174,179,186,188,197,204,215,216,218,220],[204,216,221],[186,204,212,216,223,239,240,243,244],[186,189,191,194,204,212,215,216,221,223],[216,259],[216,261],[216,259,260,261,262,263,264,265],[216,259,261],[216,223,224],[186,194,216,223,257,258,266],[216,257],[216,223,240,241,242],[216,223],[204,216,223,240],[216,223,246],[168,216],[41,42,43,44,216],[41,43,168,216],[46,47,49,50,51,52,216],[48,216],[93,168,216],[93,94,95,96,97,98,99,100,102,103,216],[101,216],[54,55,56,57,58,59,60,61,62,216],[55,56,57,58,59,216],[64,65,66,67,68,69,70,71,72,73,74,216],[76,77,78,216],[80,81,82,83,84,85,216],[82,168,216],[45,53,63,75,79,86,90,92,104,106,165,167,216],[87,88,89,216],[88,168,216],[91,216],[105,216],[111,112,216],[116,117,118,119,120,121,216],[123,216],[124,125,126,127,128,129,130,131,216],[133,168,216],[155,168,216],[111,112,133,216],[133,134,135,136,137,156,157,158,216],[160,161,162,216],[140,168,216],[123,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,216],[112,168,216],[115,122,132,155,159,163,216],[107,108,109,110,113,114,216],[111,112,164,216],[166,216],[216,278,331],[216,229,230],[216,229,230,231],[216,227,230,231,234,235,237,238,244,245,256,275],[216,230],[216,228,231,232,238,276],[216,231,232,276],[169,216],[40,169,216,226,269,295,298,308,326],[216,226],[216,226,227,237,254,270,278,279,280,281,282,283,284,287,316,317,321,323,324,329,330,331,335,336,337,338,339],[216,323,324],[169,216,285,295,323],[216,334],[175,216,333],[169,216,226,227,297,298,319],[216,227,266,267,268,280,297,298,302,303],[216,227],[216,227,297,316],[216,267],[216,227,267,268,297,298,306,317,318],[40,216,297,298],[216,319,320],[216,227,267],[216,267,268],[216,250,279],[216,228,233,238,270,271],[216,227,228,233,246,247,249,250,251],[216,227,228,233,246,247,248,249,250,251],[169,216,226,237,246,247,270,287,300],[216,246,247],[216,246,247,249,252,253],[216,227,246],[216,233],[169,216,227,270,278,287,288,289,290,291],[216,270,278,287],[40,216,226,272,273],[169,216,226,287],[40,216,226,269,272,273],[216,236],[216,228],[216,289,307],[169,216,285],[216,226,295],[216,272],[169,216,228,250,272,273,274,285,286,289,291,293,295,302,308,309,310,311,312,313,314,315],[179,216,228],[216,295],[216,287,289],[216,226,228,277,278,279,280,281,282],[169,216,227,233,268,306,319,328],[169,216,227,228,237,246,247,249,252,253,268,278,279,282,287,292,299,301,302,304,330],[40,169,216,268,303,330],[169,216,225,226,227,233,237,247,268,270,273,274,278,279,280,282,283,286,287,289,290,291,292,293,294,295,296,299,304,305,306,314,321,322,325,326,327,328,329],[216,226,280,283,330],[216,226,227,268,274,278,279],[169,216,226,227,270,273,274,284,286],[216,227,233,276],[216,227,234,255,268,274,276,330],[216,234,237,249,254,255,330],[216,234,235,276],[216,234,235,255,256,275]],"referencedMap":[[350,1],[342,2],[345,3],[344,2],[343,2],[349,4],[347,5],[348,6],[346,7],[170,8],[171,8],[173,9],[174,10],[175,11],[176,12],[177,13],[178,14],[179,15],[180,16],[181,17],[182,18],[183,18],[185,19],[184,20],[186,19],[187,21],[188,22],[172,23],[222,2],[189,24],[190,25],[191,26],[223,27],[192,28],[193,29],[194,30],[195,31],[196,32],[197,33],[198,34],[199,35],[200,36],[201,37],[202,37],[203,38],[204,39],[206,40],[205,41],[207,42],[208,43],[209,2],[210,44],[211,45],[212,46],[213,47],[214,48],[215,49],[216,50],[217,51],[218,52],[219,53],[220,54],[221,55],[245,2],[244,56],[257,57],[260,58],[259,2],[262,59],[261,2],[265,2],[266,60],[264,61],[263,61],[233,2],[236,2],[246,2],[224,2],[225,62],[229,2],[267,63],[258,64],[243,65],[240,66],[242,67],[241,66],[239,2],[300,68],[8,2],[10,2],[9,2],[2,2],[11,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[3,2],[4,2],[22,2],[19,2],[20,2],[21,2],[23,2],[24,2],[25,2],[5,2],[26,2],[27,2],[28,2],[29,2],[6,2],[30,2],[31,2],[32,2],[33,2],[7,2],[38,2],[34,2],[35,2],[36,2],[37,2],[1,2],[39,2],[169,69],[45,70],[41,69],[42,69],[43,69],[44,71],[53,72],[46,2],[47,2],[48,2],[49,73],[50,2],[51,2],[52,2],[94,74],[95,2],[96,74],[97,74],[93,69],[98,69],[104,75],[100,69],[99,74],[101,69],[102,76],[103,2],[54,69],[63,77],[60,78],[61,69],[58,69],[59,2],[62,69],[55,69],[56,69],[57,69],[64,2],[65,2],[66,2],[67,2],[75,79],[68,2],[69,2],[70,69],[71,2],[72,2],[73,2],[74,2],[76,69],[77,2],[79,80],[78,69],[80,69],[82,69],[81,69],[86,81],[83,69],[84,69],[85,82],[168,83],[90,84],[87,69],[89,85],[88,69],[91,69],[92,86],[105,69],[106,87],[116,2],[117,2],[118,69],[119,2],[120,69],[121,88],[122,89],[124,90],[125,69],[126,2],[127,2],[128,69],[129,2],[130,69],[131,88],[132,91],[134,92],[135,2],[136,2],[137,69],[156,93],[157,2],[133,69],[158,94],[159,95],[160,2],[161,2],[162,69],[163,96],[138,69],[139,69],[141,97],[142,69],[155,98],[140,90],[143,69],[144,2],[145,69],[146,69],[147,69],[148,99],[149,2],[150,69],[151,69],[152,97],[123,69],[153,69],[154,69],[164,100],[114,2],[107,2],[108,69],[109,2],[110,2],[113,88],[115,101],[111,69],[112,69],[165,102],[166,69],[167,103],[40,2],[332,104],[284,2],[270,2],[271,105],[232,106],[276,107],[231,108],[277,109],[281,110],[230,2],[238,108],[226,111],[327,112],[326,113],[340,114],[227,111],[339,111],[325,115],[323,2],[324,116],[335,117],[334,118],[320,119],[306,120],[298,121],[317,122],[297,123],[319,124],[299,125],[321,126],[268,127],[318,128],[282,129],[279,2],[272,130],[253,131],[252,132],[248,2],[301,133],[249,134],[254,135],[247,136],[337,137],[336,2],[292,138],[288,139],[289,140],[293,141],[274,142],[250,111],[237,143],[333,144],[296,111],[294,113],[308,145],[302,2],[286,146],[341,111],[309,147],[295,111],[251,144],[269,2],[310,146],[228,2],[311,148],[314,111],[285,111],[316,149],[322,150],[313,2],[315,150],[312,151],[273,113],[307,140],[290,152],[291,121],[303,111],[283,153],[329,154],[305,155],[304,156],[330,157],[328,2],[331,158],[278,2],[280,159],[287,160],[234,161],[275,162],[256,163],[255,164],[338,165],[235,2]],"exportedModulesMap":[[350,1],[342,2],[345,3],[344,2],[343,2],[349,4],[347,5],[348,6],[346,7],[170,8],[171,8],[173,9],[174,10],[175,11],[176,12],[177,13],[178,14],[179,15],[180,16],[181,17],[182,18],[183,18],[185,19],[184,20],[186,19],[187,21],[188,22],[172,23],[222,2],[189,24],[190,25],[191,26],[223,27],[192,28],[193,29],[194,30],[195,31],[196,32],[197,33],[198,34],[199,35],[200,36],[201,37],[202,37],[203,38],[204,39],[206,40],[205,41],[207,42],[208,43],[209,2],[210,44],[211,45],[212,46],[213,47],[214,48],[215,49],[216,50],[217,51],[218,52],[219,53],[220,54],[221,55],[245,2],[244,56],[257,57],[260,58],[259,2],[262,59],[261,2],[265,2],[266,60],[264,61],[263,61],[233,2],[236,2],[246,2],[224,2],[225,62],[229,2],[267,63],[258,64],[243,65],[240,66],[242,67],[241,66],[239,2],[300,68],[8,2],[10,2],[9,2],[2,2],[11,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[3,2],[4,2],[22,2],[19,2],[20,2],[21,2],[23,2],[24,2],[25,2],[5,2],[26,2],[27,2],[28,2],[29,2],[6,2],[30,2],[31,2],[32,2],[33,2],[7,2],[38,2],[34,2],[35,2],[36,2],[37,2],[1,2],[39,2],[169,69],[45,70],[41,69],[42,69],[43,69],[44,71],[53,72],[46,2],[47,2],[48,2],[49,73],[50,2],[51,2],[52,2],[94,74],[95,2],[96,74],[97,74],[93,69],[98,69],[104,75],[100,69],[99,74],[101,69],[102,76],[103,2],[54,69],[63,77],[60,78],[61,69],[58,69],[59,2],[62,69],[55,69],[56,69],[57,69],[64,2],[65,2],[66,2],[67,2],[75,79],[68,2],[69,2],[70,69],[71,2],[72,2],[73,2],[74,2],[76,69],[77,2],[79,80],[78,69],[80,69],[82,69],[81,69],[86,81],[83,69],[84,69],[85,82],[168,83],[90,84],[87,69],[89,85],[88,69],[91,69],[92,86],[105,69],[106,87],[116,2],[117,2],[118,69],[119,2],[120,69],[121,88],[122,89],[124,90],[125,69],[126,2],[127,2],[128,69],[129,2],[130,69],[131,88],[132,91],[134,92],[135,2],[136,2],[137,69],[156,93],[157,2],[133,69],[158,94],[159,95],[160,2],[161,2],[162,69],[163,96],[138,69],[139,69],[141,97],[142,69],[155,98],[140,90],[143,69],[144,2],[145,69],[146,69],[147,69],[148,99],[149,2],[150,69],[151,69],[152,97],[123,69],[153,69],[154,69],[164,100],[114,2],[107,2],[108,69],[109,2],[110,2],[113,88],[115,101],[111,69],[112,69],[165,102],[166,69],[167,103],[40,2],[332,104],[284,2],[270,2],[271,105],[232,106],[276,107],[231,108],[277,109],[281,110],[230,2],[238,108],[226,111],[327,112],[326,113],[340,114],[227,111],[339,111],[325,115],[323,2],[324,116],[335,117],[334,118],[320,119],[306,120],[298,121],[317,122],[297,123],[319,124],[299,125],[321,126],[268,127],[318,128],[282,129],[279,2],[272,130],[253,131],[252,132],[248,2],[301,133],[249,134],[254,135],[247,136],[337,137],[336,2],[292,138],[288,139],[289,140],[293,141],[274,142],[250,111],[237,143],[333,144],[296,111],[294,113],[308,145],[302,2],[286,146],[341,111],[309,147],[295,111],[251,144],[269,2],[310,146],[228,2],[311,148],[314,111],[285,111],[316,149],[322,150],[313,2],[315,150],[312,151],[273,113],[307,140],[290,152],[291,121],[303,111],[283,153],[329,154],[305,155],[304,156],[330,157],[328,2],[331,158],[278,2],[280,159],[287,160],[234,161],[275,162],[256,163],[255,164],[338,165],[235,2]],"semanticDiagnosticsPerFile":[350,342,345,344,343,349,347,348,346,170,171,173,174,175,176,177,178,179,180,181,182,183,185,184,186,187,188,172,222,189,190,191,223,192,193,194,195,196,197,198,199,200,201,202,203,204,206,205,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,245,244,257,260,259,262,261,265,266,264,263,233,236,246,224,225,229,267,258,243,240,242,241,239,300,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,38,34,35,36,37,1,39,169,45,41,42,43,44,53,46,47,48,49,50,51,52,94,95,96,97,93,98,104,100,99,101,102,103,54,63,60,61,58,59,62,55,56,57,64,65,66,67,75,68,69,70,71,72,73,74,76,77,79,78,80,82,81,86,83,84,85,168,90,87,89,88,91,92,105,106,116,117,118,119,120,121,122,124,125,126,127,128,129,130,131,132,134,135,136,137,156,157,133,158,159,160,161,162,163,138,139,141,142,155,140,143,144,145,146,147,148,149,150,151,152,123,153,154,164,114,107,108,109,110,113,115,111,112,165,166,167,40,332,284,270,271,232,276,231,277,281,230,238,226,327,326,340,227,339,325,323,324,335,334,320,306,298,317,297,319,299,321,268,318,282,279,272,253,252,248,301,249,254,247,337,336,292,288,289,293,274,250,237,333,296,294,308,302,286,341,309,295,251,269,310,228,311,314,285,316,322,313,315,312,273,307,290,291,303,283,329,305,304,330,328,331,278,280,287,234,275,256,255,338,235]},"version":"4.4.3"}
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/chain.ts","../node_modules/@bitauth/libauth/build/lib/address/base58-address.d.ts","../node_modules/@bitauth/libauth/build/lib/address/bech32.d.ts","../node_modules/@bitauth/libauth/build/lib/address/cash-address.d.ts","../node_modules/@bitauth/libauth/build/lib/address/locking-bytecode.d.ts","../node_modules/@bitauth/libauth/build/lib/address/address.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/hashes.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/ripemd160/ripemd160.base64.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/secp256k1/secp256k1-wasm-types.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/secp256k1/secp256k1-wasm.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/sha1/sha1.base64.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/sha256/sha256.base64.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/sha512/sha512.base64.d.ts","../node_modules/@bitauth/libauth/build/lib/bin/bin.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/combinations.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/sha1.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/sha256.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/sha512.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/ripemd160.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/secp256k1-types.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/default-crypto-instances.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/hmac.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/secp256k1.d.ts","../node_modules/@bitauth/libauth/build/lib/crypto/crypto.d.ts","../node_modules/@bitauth/libauth/build/lib/format/base-convert.d.ts","../node_modules/@bitauth/libauth/build/lib/format/base64.d.ts","../node_modules/@bitauth/libauth/build/lib/format/bin-string.d.ts","../node_modules/@bitauth/libauth/build/lib/format/error.d.ts","../node_modules/@bitauth/libauth/build/lib/format/hex.d.ts","../node_modules/@bitauth/libauth/build/lib/format/log.d.ts","../node_modules/@bitauth/libauth/build/lib/format/number.d.ts","../node_modules/@bitauth/libauth/build/lib/format/read.d.ts","../node_modules/@bitauth/libauth/build/lib/format/time.d.ts","../node_modules/@bitauth/libauth/build/lib/format/type-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/format/utf8.d.ts","../node_modules/@bitauth/libauth/build/lib/format/format.d.ts","../node_modules/@bitauth/libauth/build/lib/key/hd-key.d.ts","../node_modules/@bitauth/libauth/build/lib/key/key-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/key/wallet-import-format.d.ts","../node_modules/@bitauth/libauth/build/lib/key/key.d.ts","../node_modules/@bitauth/libauth/build/lib/language/compile.d.ts","../node_modules/@bitauth/libauth/build/lib/language/language-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/language/language-types.d.ts","../node_modules/@bitauth/libauth/build/lib/language/parse.d.ts","../node_modules/@bitauth/libauth/build/lib/language/reduce.d.ts","../node_modules/@bitauth/libauth/build/lib/language/resolve.d.ts","../node_modules/@bitauth/libauth/build/lib/language/language.d.ts","../node_modules/@bitauth/libauth/build/lib/message/read-components.d.ts","../node_modules/@bitauth/libauth/build/lib/message/transaction-types.d.ts","../node_modules/@bitauth/libauth/build/lib/message/transaction-encoding.d.ts","../node_modules/@bitauth/libauth/build/lib/message/message.d.ts","../node_modules/@bitauth/libauth/build/lib/schema/authentication-template.d.ts","../node_modules/@bitauth/libauth/build/lib/schema/schema.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-types.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-bch/compiler-bch.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-defaults.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-operation-helpers.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-operations.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/scenarios.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/p2pkh-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/standard/p2pkh.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/standard/standard.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/template-types.d.ts","../node_modules/@bitauth/libauth/build/lib/compiler/compiler.d.ts","../node_modules/@bitauth/libauth/build/lib/transaction/generate-transaction.d.ts","../node_modules/@bitauth/libauth/build/lib/transaction/transaction.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec-descriptions.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec-instruction-set.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec-opcodes.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/virtual-machine.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/vm-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec-vm.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/fixtures/satoshi-client/bitcoin-satoshi-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/xec/xec.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-descriptions.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-errors.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-instruction-set.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-opcodes.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022-vm.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2022/bch-2022.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/signing-serialization.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-consensus.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-crypto.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-descriptions.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-errors.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-instruction-set.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-opcodes.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-tokens.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-vm.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-crypto.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-descriptions.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-errors.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-instruction-set.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/arithmetic.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/bitwise.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/consensus.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/combinators.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/common-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/crypto.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/encoding.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/errors.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/flow-control.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/format.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/inspection.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/instruction-sets-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/instruction-sets-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/nop.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/push.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/stack.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/time.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/common/common.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-loops.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-opcodes.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips-vm.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/chips/bch-chips.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/btc/btc-descriptions.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/btc/btc-opcodes.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/btc/btc-types.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/btc/btc.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/instruction-sets.d.ts","../node_modules/@bitauth/libauth/build/lib/vm/vm.d.ts","../node_modules/@bitauth/libauth/build/lib/vmb-tests/bch-vmb-test-utils.d.ts","../node_modules/@bitauth/libauth/build/lib/vmb-tests/vmb-tests.d.ts","../node_modules/@bitauth/libauth/build/lib/lib.d.ts","../node_modules/@bitauth/libauth/build/index.d.ts","../../../node_modules/@types/node/ts4.8/assert.d.ts","../../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../../node_modules/@types/node/ts4.8/globals.d.ts","../../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../../node_modules/@types/node/ts4.8/buffer.d.ts","../../../node_modules/@types/node/ts4.8/child_process.d.ts","../../../node_modules/@types/node/ts4.8/cluster.d.ts","../../../node_modules/@types/node/ts4.8/console.d.ts","../../../node_modules/@types/node/ts4.8/constants.d.ts","../../../node_modules/@types/node/ts4.8/crypto.d.ts","../../../node_modules/@types/node/ts4.8/dgram.d.ts","../../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../../node_modules/@types/node/ts4.8/dns.d.ts","../../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../../node_modules/@types/node/ts4.8/domain.d.ts","../../../node_modules/@types/node/ts4.8/dom-events.d.ts","../../../node_modules/@types/node/ts4.8/events.d.ts","../../../node_modules/@types/node/ts4.8/fs.d.ts","../../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../../node_modules/@types/node/ts4.8/http.d.ts","../../../node_modules/@types/node/ts4.8/http2.d.ts","../../../node_modules/@types/node/ts4.8/https.d.ts","../../../node_modules/@types/node/ts4.8/inspector.d.ts","../../../node_modules/@types/node/ts4.8/module.d.ts","../../../node_modules/@types/node/ts4.8/net.d.ts","../../../node_modules/@types/node/ts4.8/os.d.ts","../../../node_modules/@types/node/ts4.8/path.d.ts","../../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../../node_modules/@types/node/ts4.8/process.d.ts","../../../node_modules/@types/node/ts4.8/punycode.d.ts","../../../node_modules/@types/node/ts4.8/querystring.d.ts","../../../node_modules/@types/node/ts4.8/readline.d.ts","../../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../../node_modules/@types/node/ts4.8/repl.d.ts","../../../node_modules/@types/node/ts4.8/stream.d.ts","../../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../../node_modules/@types/node/ts4.8/test.d.ts","../../../node_modules/@types/node/ts4.8/timers.d.ts","../../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../../node_modules/@types/node/ts4.8/tls.d.ts","../../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../../node_modules/@types/node/ts4.8/tty.d.ts","../../../node_modules/@types/node/ts4.8/url.d.ts","../../../node_modules/@types/node/ts4.8/util.d.ts","../../../node_modules/@types/node/ts4.8/v8.d.ts","../../../node_modules/@types/node/ts4.8/vm.d.ts","../../../node_modules/@types/node/ts4.8/wasi.d.ts","../../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../../node_modules/@types/node/ts4.8/zlib.d.ts","../../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../../node_modules/@types/node/ts4.8/index.d.ts","../../../node_modules/bip39/types/_wordlists.d.ts","../../../node_modules/bip39/types/index.d.ts","../src/enum.ts","../src/interface.ts","../src/util/getRuntimePlatform.ts","../../../node_modules/dexie/dist/dexie.d.ts","../src/db/interface.ts","../src/db/StorageProvider.ts","../src/db/IndexedDBProvider.ts","../../../node_modules/axios/index.d.ts","../src/webhook/Webhook.ts","../src/webhook/interface.ts","../../../node_modules/bchaddrjs-slp/src/bchaddr.d.ts","../src/util/bchaddr.ts","../src/db/util.ts","../../../node_modules/pg-types/index.d.ts","../../../node_modules/pg-protocol/dist/messages.d.ts","../../../node_modules/pg-protocol/dist/serializer.d.ts","../../../node_modules/pg-protocol/dist/parser.d.ts","../../../node_modules/pg-protocol/dist/index.d.ts","../../../node_modules/@types/pg/index.d.ts","../../../node_modules/@types/pg-format/index.d.ts","../../../node_modules/bignumber.js/bignumber.d.ts","../src/slp/interface.ts","../src/slp/SlpDbTemplates.ts","../src/slp/SlpProvider.ts","../src/util/base64.ts","../src/util/eventsource.ts","../src/slp/SlpDbProvider.ts","../src/slp/GsppProvider.ts","../src/slp/index.ts","../src/webhook/WebhookWorker.ts","../src/webhook/WebhookSlp.ts","../../../node_modules/@types/ws/index.d.ts","../../../node_modules/isomorphic-ws/index.d.ts","../../../node_modules/async-mutex/lib/MutexInterface.d.ts","../../../node_modules/async-mutex/lib/Mutex.d.ts","../../../node_modules/async-mutex/lib/SemaphoreInterface.d.ts","../../../node_modules/async-mutex/lib/Semaphore.d.ts","../../../node_modules/async-mutex/lib/withTimeout.d.ts","../../../node_modules/async-mutex/lib/tryAcquire.d.ts","../../../node_modules/async-mutex/lib/errors.d.ts","../../../node_modules/async-mutex/lib/index.d.ts","../../../node_modules/electrum-cash/dist/index.d.ts","../src/network/interface.ts","../src/util/floor.ts","../src/constant.ts","../src/db/ExchangeRateProvider.ts","../src/rate/ExchangeRate.ts","../src/util/sanitizeUnit.ts","../src/util/balanceObjectFromSatoshi.ts","../src/webhook/WebhookBch.ts","../src/db/SqlProvider.ts","../src/db/getStorageProvider.ts","../src/wallet/enum.ts","../src/qr/interface.ts","../src/wallet/interface.ts","../src/db/index.ts","../src/qr/Qr.ts","../src/wallet/Base.ts","../src/config.ts","../src/util/hash160.ts","../src/util/deriveCashaddr.ts","../src/wallet/model.ts","../src/transaction/allocateFee.ts","../src/util/amountInSatoshi.ts","../src/util/sumSendRequestAmounts.ts","../src/util/sumUtxoValue.ts","../src/transaction/Wif.ts","../src/util/asSendRequestObject.ts","../src/util/checkWifNetwork.ts","../src/util/derivePublicKeyHash.ts","../src/util/checkForEmptySeed.ts","../src/network/constant.ts","../src/network/NetworkProvider.ts","../src/network/getRelayFeeCache.ts","../../../node_modules/slp-parser/dist/index.d.ts","../src/slp/SlpLibAuth.ts","../src/util/delay.ts","../src/util/transaction.ts","../src/wallet/Util.ts","../src/wallet/Slp.ts","../src/network/ElectrumNetworkProvider.ts","../src/util/satoshiToAmount.ts","../src/util/convert.ts","../src/util/deriveNetwork.ts","../src/util/getAddrsByXpubKey.ts","../src/util/getUsdRate.ts","../src/util/sanitizeAddress.ts","../src/util/randomInt.ts","../src/util/getXPubKey.ts","../src/util/randomValues.ts","../src/util/index.ts","../src/network/configuration.ts","../src/network/util.ts","../src/network/default.ts","../src/network/Connection.ts","../src/network/index.ts","../src/util/randomBytes.ts","../src/message/interface.ts","../src/message/signed.ts","../src/message/index.ts","../src/history/interface.ts","../src/history/electrumTransformer.ts","../src/wallet/bcmr-v1.schema.ts","../src/wallet/Bcmr.ts","../src/wallet/Wif.ts","../src/wallet/createWallet.ts","../src/cli.ts","../src/util/browserNotSupported.ts","../src/mine/mine.ts","../src/mine/index.ts","../src/test/expect.ts","../src/test/axios.ts","../src/webhook/index.ts","../src/libauth.ts","../src/index.ts","../src/util/deriveLockscript.ts","../../../node_modules/@types/jest/node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/@types/jest/node_modules/chalk/index.d.ts","../../../node_modules/@types/jest/node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@types/jest/node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../node_modules/@types/jest/node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/@types/jest/node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"3b9e1093810740229d6e7192880c5f29a0aa676f1886d57ffba1d4286c3592f6","5332c5ccde99dd5f101666907ef9e4d23b0f95b5b973b89e063b0ab9e546cfb3","2fd837dc662e31c39beff2f0a2928ecb50494e6ef9d62fd4f12ea4879c3340fd","706979b041b730ff32de4e478ca995d71f25b5e4246ac90d5b7aea8c92ecc86b","ce0458a4a7c41238fd524d1690b55bca11ae840fd489956937917c4319fdb19e","95ab2fe99faa3e25ff8eb9408451730506d4686dce877a96db073f62f9368932","685f0aa21c1d14d184fbaf5327c390c465d26a0a08e64975764f2b073601bd76","9a18b997370e8442ed2fe2e7e60180f21d2a3e46e45f443784709eec8284f2e4","31ed1f61639da39a41255b3608ebada3c6101ae1bd07ecf67d61605bab1c2c7f","331ad987d42c489d21c59ae5ec30980b43e67ff13cc30bd3e0c73f8af35564d9","a3cc420b6dbdfc0245da4e0d837c339c3f9b6bed2efaa2e26dd8bbe4060cef41","6857d9f06f38c5a8d5bf2a0e8326b978b4876031a3c1f47665876c3daa94522d","a240ea9a3333d3630ce06bf128d796a233df1147bb3cbda86a2b74a584e7f6ea","4419778f6c54c431a8156c7de194ebb9e0876709a8cfc12d40502b0dd1019244","3ea9df1a0f3ae9d4bbc2d5bcc7ddd121af7a1092c5045272664abe07fb5ea98b","0637c5ad5a063a90468be96cd48c4b92fc4e1cb181cde1e4d93f22889e008efd","23577d952485f91222bf21ccba6581742ae4a9a14a5ae9f7cab2af6d0dec4d05","9614a1772bd94d0bcada6b9ffc7019cb03b71e6de4ca1a330ea554c4d6177b59","6286b7dbba20a7394289b54f331eb99527cda91662829d31d5460bc67082fe29","9db83fcda1b23de0829ecbd15655d42171d79bc98f0c6772767e08857aeca611","ada1dc76e297e7fee41eb083b3a60fb54bd7e729ed68732a6ce5d0e88140dae1","ca2777ee09e1dfa097a475133f11da8e4124f9129581e00435f36abd7618b980","3153b9fd0279f7930352e5f55d7d07eb174a8fcfd5f23acc71e3c7293fea8520","e3dd6f5b25d26f229efb106789189628ec8186cc28e3d58783426e18baff9c53","4fbc35a02a0687614b042fa52a46ac1ae7c1bfce68f0aaaad8b5a76a7777edf5","66fc3f87542bc556b590a4f4177c22490c117fc96eab69bda2e9e0c445eb5cc2","1293901b689c514fafaf7f9ff9eff109b25f32fdbf64bc7fe8da561d473d2091","bc82f26edea61e61473470eb7cbbe76b815cc27dcc6aa1b6d3fad86add81fc17","9b45c8fb886e1feee2bee6ff97b84bd10cda89f2b8cff54d27cda826d3609a72","9b15c2754d92c35fc53e42ba771e32b2038d8d72408f4704c8daab757043e4dc","dfb23f34c344a9629724b4dddddef48ce0bfc8e74b1067a8b7f2f71ecd6ee4a0","a1b221ec8bfb5f2c24fe05c514b9c03c2f813a90a1e538fbd3c74998ce0ce096","a7920efa08217d3175420b88117e78fb8f2dfb1de498b3ec294048861675e07b","48084d2b5cba75038992083aba5fc0e41933bf1a59b19733296b1d099be1ec81","15ac5424c6183bd167314972be53111b50fa3945c6f004ecae5aef42d1e03d76","428565fe14b2bb1e0780087739e6a568b102e449da66c2ba4ae8fb6293e7f06c","0ea021174e32d4a992912419754dae74b7c55a07eba639bc5548815ed4c079b6","e0713f909b03190f011a3d4266e7bdf0f313d6e5fc600d95638083380139663d","5af9f4dcc13f7c3afc52644d9e249e3073ea6240a62fffea1d1f88da00801ba9","0708c284b3603bfe7f7946709a8b62f1b81d987b7e301fd8fc5312d8d085abab","0238461d76b89e4f0b2f21073c47e857f40c98f9e5cd402333cbe6b0a0d1bb7d","b18aa158272a8859ffc348d87e39f4fc4cdd526ba7382e2249a7e0207cd304de","9d184849efe9aced4bf7b9fc664d066c34ab7ed64c5f6637037ea7667b7e4209","3be168163c3f0370d5a750ffdd4f562b543e326c73b1b338e30eada2c1d6e104","20ad9e1cf91a430c90b93e8d0bb9abbe8af7dd4971c274c4fa1968fa2102c2ba","8d794a7e97b5e66b95d0cb7199d569f9d1e0172f600237cb4e1aea5bfb645796","e312e6add715ec2e97e938409478d9017d6c91f4487ce6e4aa2709e60f67cd95","012c215dfb627f8427db1e470b018a9869d48170c4275d08ed83be3ef7b3e46c","eaac3250f753e381163c74cc0706e15ea11da870bf67d2ac781328286c7e761d","0367482c4b8443f6c85ea71bf81676636afe88c508cd3fef6cd07ef1b9706fc0","c2a227bd507cac7fdbdb2f5375e3b05f6f28f7e247244c52c81229942d5989aa","da9f4d6baf128522f33de2d696b3aa815bb82773ef5dc4deceaff7eea8337287","9e334139506c8742da707999ab4c169d4f04085288700d28419c439f38342ae1","f555ade89f80bd23a93534e9d1adca5c60b18e20890ed22e691c2bb4305a572d","c9b490ee0f879f4be435965f9cdb2df4e4b67c50aa7bed6ae2a55b98062ab732","f871d624e9cec46e63399c74deb15c183c50390d1e9755130717fef36396bf2d","0c3a5591f9f6d50bec9174a93b2a991630216b95e3d3bc1598e679c2206eda8f","6576b2914897de35e352c748d699d43caa784e9d51c2504b2373ff0689fd5d70","4cd55518543849f25e7bec090efe6e13f6a292240fd216e48a9ff915c9a6ffa3","c4ced9443e575425658517a0cd99be5327dc0bdc556859477785fd8f4c8e5b5c","929cd9e3bae21fddffa7c5b813561e18ec6f3e88c02fa750313e709a7201ebc2","c624d1a578d9b6631bbd099e1f4397b08e9445ca0b7d80fa18c321dd0b4980f6","5e9004c2aba118299bcc17d5d115044512faa9bd814417e3239e8b53f83ff5d3","bda49aa2198d524e9de0c546be272afe8c22b05d6e4acbf668a4a1dafe9813f7","387ba24cca9932007dfa86415d59e2ffc6ff6a35d5e0e1cde27f1ad01b91b9bf","6a82a8b189edac5e97d8f893f901db3a941cc521497789265eccccd94974ab83","29c97e978dd0682439d4109094dff72ec8707906786343f6ba6f6f82f9260f75","d2dec72e158cf166711a3009180d25ad363fe4cad0178020098aa5e08c4842e7","2e3c2763dd6c35e44962b7624fd896a3b551cbd188eec06c45d2729adff13587","f5d8843fd8c6d4aacea9792e8c0ffb47e82c81523b65690fb7a21a76c19a2ae9","339f71322345c9caf86730e90e74a9cc865134cced1d9954b1ff7fbe0da98639","cda18bca3c3c8cfdeec5568cfbb367016dd7f15052d0811d5d128c30e4dd9c66","7513cdd43851e3d51393c68572d42dd944daffb90cdac5687c17993a5c6dc413","76278ca7d48a20284bb7d2852ed2afbe46b47e621d51703499f9934193aacfd4","7560b7502c10ebdf0d07ae7f83567a25f0e18501541a761f5456039a75fdca34","a6d5464c400860c746d59538eeac8aba030bd286a30382cb35ffa180bb45360b","882c65b85e101318cb241a04d9f6098f40f81f60969dc23ed43eca93aa208756","9b9ab0f61e1a9d1544cce8f6a898a67fcb398e7a2916c8f7bff196aeacaa42a1","18aed24936a61efb3c4794117cfd6296a68d709ebefd7ded2d4a8f9a3f10451e","7f45c53d713e44a39ce9715516a742401ec67ca64d28e89800a1087b413bea11","1e6174605c3d8a4ceb9584011a8e765d2a9448a936061245cfe184914956e025","9d04be61d449837d03f2f2c6cb45862e01ecf27f2d9e9e649381923ec2ef183d","e7ef7f20139a8e1107206b6ebca0aeaf5afc106fdcd3320f72d8fa1aa6b8b376","6bbb61263ab6dd8df228f4ffe545c64202c2b9d86dbe915484c75dcb5389fe6f","d1b9f9d3112a2a61002f35217328c4f9d8c855c97a7bffb3c07064e5d75bcdb2","3c4dfe04caf7fcbfc0692300041612b5078691781ccae335085d6dad8cf39ec2","9dbb17d8dd416cd59de116f60c92da5cd5a330657e4b1288ae1667f64ac976ed","c383e01b0a485533eacc2ece74da9806d24c2b04d3a78c0e88bbc170a26e948b","35a99c2aa2cd7d2cd1c44dad12363dedb2eb4ce1aeaea2522b7d673ad0d351e4","84f19808fafe26e154c513ae796980485e314327069d04239b4e3241adf5ff97","6f2aca76e18c1f39674340ce5a26c2a24de95eabae0428a5c2db7f06f492a2b6","fbbe6400d3c632bd8ec78c6c2e52f9f12a5730f1239850360b57c437af85efce","b84133cb67d1fef4258fb16730f559491d5d461a9846179f064b976eca2450f9","36f2980ab459e1b953d14c662daa7156a2a129eb66b83571ac71e0c8881b8522","5a0837a29362a7f55904bc5582af6dc7f77a454419b3482c0066603f79b47d57","ae4ab429f512d21fb3ed429b3ca544a3568790f24a5450a9e1533b1b610ef26e","d3fda3824d4c8d8d37be73e0429c11a3521739a542b075ed44adb322fddcd7a6","238b1c00330577b9b6b1643efb4303bce2c85a95ba2230c239c71fd765faff00","7b50e59b4e32f9e2fbeb7a220250206e48942f5d4a988492d7d059de513d06fd","2693c10e8fabb976fbac9db06949d365cbacd921739e6aa29dc46dd9d5e4cefe","9ff98cf113c2e37f217778541e2fdb9c2be84388a1d270eaa902c9aae61d7212","6b39cda7617dd553240be27ff55b430261ae8a29e714f9c519c06df7689fbc95","78642dc6ba7d04f5a925df178a53899906789b00798af7e816222bf4f46b99c2","f5b16e5d2b22f4f4b8444e03eafdd6fb4ad904695ebec82d25ecc107c9e633e2","beac06589b709b31baeaeb90f771868216b57549407a4a71abc1d858bc7ed9d8","f56587bcdbe14c7b5b8c0a5989aaae30cecd14d2634346e4bef26457c0a1e63b","f215e54e54bc5ec56134d5f660dce46f48c33102a763b41e2eca7ab9285d6d79","ae24edf9350dfc471398c23f268879ecfa535dff67769d602771be59b2cc60f4","e834ca7fe4826cb221d685e465a3c2a790665152a107b9b977b2432afb9951fe","dd252980d1133656ab80e25b92eb1963f4a7c1fd22a327299cb090bebb126367","faa5b92a0d9c92a98db4dd42f7df79ccbcd40500c13a6135da8489dd6f23e080","ee1883ca05392d0a3edaa482b1ecbc8a14440c7b192f7663dff60c2914251954","714e743cd19bae94605cdca05f60e47a46f87a4d229729a8d2c25b0e010274de","bdfc47983cce07807ea805c6a96f28d5d70ecb3c4001b8d0f13e90cdbd7a1b6d","91c100d702370d0333ba322871475b70e2618add8d5708aab911b6f5ea760355","3d5839dcc56fa931ef88d454b74e117800c8b9e6c70dd5ccf61dd0dcb76fb187","d6f7eecd92003c511c4f30395a747a3c8ad1c8a529ba80b08cf71bc52deb44ef","b2cfcb267f3ad6d48aa0b9c7a1146f63984f5ea1cd8dd63527eaf1738c713fca","45c971b451ed5d9aa8d2bb3cf052e74f1d5af0e644aa419d46008e2909c1c1d8","dbdcd6590670ad0392ddcdb9ddcd53eb9e3e4c5db174e6a03355609e29ea690e","5f439f9b428b4819042db3c9cd2ebc1d01227821c75c0d8416456781635996d5","89a092a002b46691edb0ac7b0d2785a1f2536547a98b06805a0ea8f7149e192c","194efe7871d33f19d687dcfc1b5fb65854a0226521a058598dc80e1e4a2c721f","c0c81406c104bf1aecd935b2947171b283ff3b153d539193b3151d54ecbed1b2","ffeebf5bab849797873e4a1e203f15c8a9ca1ef9ffff26b9cd7441d4ea19041c","490e36ecada1b2924a08a79137a30a4180ba888a4ad0099e0525ca80dd5c3502","f309548f6532ec8a8fad2ff9ce69ace82341d4e6a0d284b157470a755a665085","1d4dd1f50665186141bb602fd5a627f3d54343666f34c6eb6fec33cb8c906700","88879e7ee08b5a1b91368a17bb94e40526de99c36ab6d59a9e9f4beb7e571425","9ef9b3e43e4c3c092943fa1792c867fc4fee2bd1bbe54e6e91d6ce8bcccb0dd0","7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"02873d070f9cb79f50833fbf4a9a27ac578a2edf8ddb8421eba1b37faba83bfb","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"c0db280fa6b09d7b8d6720a19a47f485956a41ee0e6914f1b704033eb69c6058","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","afcc1c426b76db7ec80e563d4fb0ba9e6bcc6e63c2d7e9342e649dc56d26347f","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","b01a80007e448d035a16c74b5c95a5405b2e81b12fabcf18b75aa9eb9ef28990","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d4ac44f01d42f541631c5fc88d0ed8efac29a3a3ad9a745d9fd58f8b61ed132e","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","3163f47436da41706c6e2b3c1511f3b7cce9f9f3905b2f3e01246c48b4ba7d14","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","213fc4f2b172d8beb74b77d7c1b41488d67348066d185e4263470cbb010cd6e8",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"f7db71191aa7aac5d6bc927ed6e7075c2763d22c7238227ec0c63c8cf5cb6a8b","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7","b50dc1eb21ae0cf50fdad3a52298af07a6c5aa681c55ecc68b45362294dc3972","2403a8e0780ec6f1e95f3a4f922eafdda29da975f0bffe7e35cad640b333247c","aa88fdf791a8ba56cf4e6d02fe429c5b04ce2503fe086f7e6e9f81531aeed3c1","3ded69a25b2b449fda06c6bb0e32fe4d12ba9de48dc13301da84dc0895374c6e","487341e0f84e05c687e8c70cc1d2037cea278ab2a4f1aaa38442aa1a42a2deef",{"version":"33cffd5ca9095af2ed7ba139141da8149b46f6920ee5a4379977d5b0b5ef0420","affectsGlobalScope":true},"fd284c77ed6d7e0abdc4e403c82bacd771c26ef8397ec5fc23c1f20e88044e0c","edcf370a8ec397dc86c51ed8c8bad2cdb0b02cf1798fadb22060bf46b64f19fa","9585a18102ff193e44658d29314cb22073952db32da15dd4f39a1a682f88eadb","3154a026075044aa102298fe9e6a7a14aaa26a06270680c7478a1765af8ffb09","c2a81d26e7f1ba7021f042a929e15d932acd3e3ceb98f54c8ada93f90ac702d2","553d365034884d76007feda0faebc858106e1acf38c6e24ce9e9162a9983e0e8","27e50d01e5bca9247a03b4323232432555f80a4751bc27b5949c256cd8f292b1","9edaefda3781546d2113d529abfaf4e9c51dc0b635f53b98f88d0df91a241ea8","fdde875d5323fdb8e281a4ea60479a7e85d17271a6b7efeebedb6e90a1daf93f","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","b3e7176bed0257521bf125ebfefbbb5f5dbdfe10e66155167cd0cf1a18872a18","e0fa568e94e16b6ee842d293e387f1b9620686a7f975371322429ce3d2ce0313","1d7d9e42cb2cc36dfc7ce35755ce67d5ff0f4a2ef72d3019f4c461bfd22123da","ddae82f77c1050f3048d717a4623e4dc1f10b3b025e3873e4fb4b03fb8598b2c","487714a2ecb96f22adcded7f82c6d9a9f5c540e78d49c14fe1e82c11155d7bd7","62300d4cf4637c0e974918556cde49d8e5c52a3501d1849409a177004ba5751d","2a851f3adebd931ec949cd374ce0ab05d59dae3cfe3a56300cb0f55c1b933213","7bd5d8c3532aa28239678b30c08a3084912b8c1f1c68d524aa3c1e32bacbb6a6","349137a17177d2168c5298b29eabc8acc6a934585f6638339123f98a859dfcdd","2ced5d1d1451a58b200e865f1165592c07be2c5832572147dd88e571d2705b61","d579ca74740a04bbecc7018bb60bb600898260f35c8a1e3085f92eb2a22689ad","c4242cfb66fd826179d99c6d30fcf86db4e84db1d528ff2c9e2204eb739bad1d","9631810c4f7406485e2487f9b1b817129ad5029d1156324d7f6d43674c26149b","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","1442a75050bad91356b11dcea6dfb877154d1f2e00f863a9b17ba5e903659503","fb14266ae4070bd16db6b071e98887452bc359695c40742e38515a89dbc80a63","4a24d83c0d8f489465c4d38ed9fd87121c8a2cf50c47efe09c2eca93d39fa908","c052e32b9de53cd2596f196a0901801961bd7a31be9fac4ac2f117e4103e3a07","b15cdbb45919bc3b8e6b6f962d65382e85061d70bc26a968604f3dce4ad3a891","d6b58d955981bc1742501b792f1ab9f4cba0c4611f28dcf1c99376c1c33c9f9c","f0b9f6d5db82c3d1679f71b187c4451dbc2875ba734ce416a4804ad47390970a","a5c38939c3e22954a7166d80ab931ac6757283737b000f1e6dc924c6f4402b88","31a863da9da2a3edec16665695bdbc3134e853195f82dafec58e98c8e1bb3119","da728b7b918be9cbef6143a1f30563c8582b4801057777f383569c474fca4088","364c0af9dcfed9dc5a2467f1e30ba9e6b8c931e26d77fc78ed3fdeb96ac0dd96","547bf5974369e3ff85eee157cbc94a69ce177b218cf0586ab93731491c6fc5ae","5a0666d3bfaf3edcedd72e0a0819d7ad2128009acfe9d68f76b827872ffaca57","fb2987ec9f80fe1e21114d584973d553196394a6b5fcfd36b62836cc33bbff5e","8b11baddd86ed7dc23742db36abb061c8030010eb1f4f8efc9b3991969df3a5e","40871fe15e2ecf88714da0847588959d7049d34709a5c4f9f2584d8cdbda2874","2e3778314a396a2943ca5fcb1a2ada99127991eae68a3d6e054580f6e71f5f97","664cbd952ca1c58c4584b8b20069089f6f008549cadd392a8acf817ad595196a","f5eb32a9fe8d26a29e8005ab0f4a6ed57d890acb6c5c4d315a984d661a59acaa","f55f979f31920b252a9f472183e724c372465284eda5593f3ff979f7e781a9c7","ca83a3200101528e59cc12cf22abe8eb9cf2a3b5bafa9a7bf8606562816d20df","94b86c9db78a81e040d2dafc1f7a8c3b9e70a24c222a845371fb1baa9eb132c6","5e5de9f467516458105f114ba1d716c4ef9bad2ffef0597cbedfa623c8c65750","ff570d0aaf44186d578288e50131a0c23714fe2f6ff89cba6e67c3b6e453f20f","367ab90a74f5c19abff93dfee24d933cb672c0d875e4ac95708703871be5707f","e4c43c426ccdaf649d1e7a7420781df4fd39bdaa4eb3d41672974d9a693683d2","6b53e01dcf1e66ff41e08c204bee37b23ad15d49502e7455e4cc3b152932459f","ea38212c34e9ef0d803a4629c30d3808f984dbb8c8da792ec9dfc4cb4da07e46","bbc0a7f0956e301e7143a0236972119766d1a95a641d1f249067b565b18048a9","3bee428cd46a29bf46d94081a90f876c1bc85853062dd7d2c08707298ff313fc","11c97f2e856596a67d789fc11e7edde7efbca3dfeb040543c3a52d4b12a5b258","a02e23dbe281ff7810e9e24bd3bf554aa69ac685f4893538bc6d01063bf444d1","5337bd9cee8222598bab8f01a140dcd030d567da487fb6418b849fb2455cfc25","3c0e17e33d3a5b3d2d74140c6b7f2a3d0d138d6b7579f22fb2761a2473b2d41c","28ad1f454e1f58da0dbd3526c00a1bd4555b4d44101ff47beb82ff25df2eaa17","535c495248be283cce05bff71f4ebecc3c712ca7d4ef6735b143426b333e8083","1376fcb20905de176bd02c73f5fdd6dc0366d36d60725eec51273b30df79792c","19c2bc5072ded03c0e230bbf1560ffdb38ccde0ff19e640ba6ae9d4a067dec81","65d024d0983f35187ad678059a2815d98e4ba112575b597b0b4ee4b58a83fcb7","5591c0c89b22bbfb13a46204b4bdc827258c0d5778a80274cc446a8a232b10a1","992a7cc898964f2a4108222528adedc5473820c0d64fbda3a1c9aeb21a03d809","919f2cfcc5ffb092f09f8808b61d052b24a0a8548a5c07b4de8b5c492cf6ccc7","9db9500b8569d1dd236678d71d809da09dbcda9b0ed22c6d741d95e1c784a93e","2ff811272892562199dd2111cbcd09ca3cb4e87b836235ec9a1c51efadc47c89","ca29c120c816120222d7561cd221c6aad4af304cf06e234bc16a6ea59022878c","1d6800aeb28b8beac0b5f3fef6a481574d71919ecdb7075af52f88e1e28f9b71","2484a6663d205139c1b6728ac74d92ca0fa1414c9a0fdacacfd3e6db90b8074c","77dc1d931970de6dabca33e5a7cea9bd7759f5bf1644dc9c7b0cbb7d5a1bf25e","f7af13ff18c0f7f2c5157af3e6053d1b556f4b68b55f2a3722de548bdd04412c","b13986569a88ac17de80fc1ffa0860d0636051e91733437140bf399d56b26047","0d40cf3f6a3b799381e8e2aed00a6e8451e4b8e553e3f2b2415b4625c47ba9c3","22738c10c5a0c76db18caef6741ef17031642fd6a46f02989f5116dcea307f9e","6cf703a66860b2f1a58044937d9d59cf6c18551f56795d2f0b68a8f1da0f241b","bbf28aac6fc307a3925db448f87dc5e8d85b4806d9cead36f8776d77afa0b00f","fb724c133584a056c6d715ce5275bfa294e2378c8bacc28e9ecac1acd5e73717","3c681eacf1fbea01429d3c78f93dda4954109d3300b19a11c343f3583e607fb9","61d5ceb43470315ebaccc58a015eaf09754ea24459ce403a090ac64d3a00d941","3af0990420f89ab85b4bccff233385bf66fd1eb01bf691dfe31372c92a9f39c2","f47b4cdbc1b015d98faf30af8e746327bb9e5f1efa2f707eb070adb483314bfd","97ca28b5c460096532d75a9ce804407b96690b160fcda292fd662025d7484ef5","04ac11c12401bcc89f5ff15c93d5c6f9d38418d2cd6826e3a5aab9fa871ba6ad","3ce0f95537b74eaee6c2321790713952adc3801b3fe4e604d0f3ada83aa5ed50","2db56aa2c1cc6a1f505922bdfad8bdb849d52c89eb0bfb8294dc5642fb3da17f","d6ac9140b23463ae26043cbe4de2bd42e2acbc6fe79b740f8ef968a3ac7714fb","f7a76e04d55272e70d5e4aa916062f943870ac3253d495e1bfc3fd8bf2678769","90b61375a9a95ee8016174c9f2400c89734c347afb27f8670650d84cad9df271","2677345388f45180cbbc4e1570912d9c14cb7e0215ee5fbe12c15eaf268b332d","12aa9c803cd79a739aa663156f39131869a41388bf253e3b51f0f61f98a07663","be92647dfc052cf320b5ac0bf79ac1df11c0b77cc6f0b1bf5be7dce314a7db68","ea4f5a4451505cad589168e6a31fa0fe6f5cff894cea623c531cd2dece0a4776","7a2de0665fc211459f42e1d9951ed2fee95116d725f88078fb58cc608c938a32","ac276d0795ffdab19d82b2cd9b705020c2b90631f0e3ab7f3a95269e37ef2f47","288b57cf5e74baa9e608d6f04efba1d3f6687a6b661dcc56ce95fab35b124378","615b531858d1adbbf76c5509607b3330ff42aa51a4967a3dd318b885f39e3354","8a20e1c333c6bc8a051a6408d5e24684383a8fa89f832f0475d12070220f8023","d5ace6192178d45de42affa439c12585d4fe6aa51ec198da3261d64ce7f6897d","fc9c075827b48e02faa76886d02294f5c81446872aa715cb246c31180896914c","030e1fcbaf536940f6facf8677ff38f729b5574cfa6ebfcd6d354054ffd104af","889b4beefc59797c39dd56afbd7a441c95a55d64ada2640ed7537ffff93c3d43","e86e0e2b983a550a2d01cf9bd788a1cb4013704a2c9d44fa6a92753fe68da24d","a4ff82e54647b1ef4f6cc7faf389469b63d39acc9110de02335507211064881b","ba6a3fbd9e0e983214d64157afacb8c4ca2e5c6571fc16101414f8748f9df65e","c5c49ab1c00721a6832baa031d5cc91464802e1524465f57a50cb13953ebc527","cf8888dcc41b068af7a630cbfffccf68ce6f2ffb5413fda9ec562ca0493f8752","a7321c0e96eecb19dcbf178493836474cef21ee3f9345384ce9d74e4be31228d","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","3054ef91b855e005b9c4681399e9d64d2a7b07a22d539314d794f09e53b876a7","427ce5854885cfc34387e09de05c1d5c1acf94c2143e1693f1d9ff54880573e7","bed2c4f96fab3348be4a34d88dcb12578c1b2475b07c6acd369e99e227718d81","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","9ac9b7b349a96ff204f4172183cca1672cc402e1ee7277bfcdec96c000b7d818","ac127e4c6f2b5220b293cc9d2e64ba49781225b792a51cda50f3db8eafba550c",{"version":"f5e277afc658b3fefe1e9d06f3018416ea92f3e094bc21d38517f7f36627a5e4","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"esModuleInterop":true,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitAny":false,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./module","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"strictPropertyInitialization":false,"target":99,"useDefineForClassFields":false},"fileIdsList":[[216,346,349],[216],[216,344],[216,342,348],[216,346],[216,343,347],[216,345],[170,216],[173,216],[174,179,207,216],[175,186,187,194,204,215,216],[175,176,186,194,216],[177,216],[178,179,187,195,216],[179,204,212,216],[180,182,186,194,216],[181,216],[182,183,216],[186,216],[184,186,216],[186,187,188,204,215,216],[186,187,188,201,204,207,216],[216,220],[189,194,204,215,216],[186,187,189,190,194,204,212,215,216],[189,191,204,212,215,216],[170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222],[186,192,216],[193,215,216],[182,186,194,204,216],[195,216],[196,216],[173,197,216],[198,214,216,220],[199,216],[200,216],[186,201,202,216],[201,203,216,218],[174,186,204,205,206,207,216],[174,204,206,216],[204,205,216],[207,216],[208,216],[186,210,211,216],[210,211,216],[179,194,204,212,216],[213,216],[194,214,216],[174,189,200,215,216],[179,216],[204,216,217],[216,218],[216,219],[174,179,186,188,197,204,215,216,218,220],[204,216,221],[186,204,212,216,223,239,240,243,244],[186,189,191,194,204,212,215,216,221,223],[216,259],[216,261],[216,259,260,261,262,263,264,265],[216,259,261],[216,223,224],[186,194,216,223,257,258,266],[216,257],[216,223,240,241,242],[216,223],[204,216,223,240],[216,223,246],[168,216],[41,42,43,44,216],[41,43,168,216],[46,47,49,50,51,52,216],[48,216],[93,168,216],[93,94,95,96,97,98,99,100,102,103,216],[101,216],[54,55,56,57,58,59,60,61,62,216],[55,56,57,58,59,216],[64,65,66,67,68,69,70,71,72,73,74,216],[76,77,78,216],[80,81,82,83,84,85,216],[82,168,216],[45,53,63,75,79,86,90,92,104,106,165,167,216],[87,88,89,216],[88,168,216],[91,216],[105,216],[111,112,216],[116,117,118,119,120,121,216],[123,216],[124,125,126,127,128,129,130,131,216],[133,168,216],[155,168,216],[111,112,133,216],[133,134,135,136,137,156,157,158,216],[160,161,162,216],[140,168,216],[123,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,216],[112,168,216],[115,122,132,155,159,163,216],[107,108,109,110,113,114,216],[111,112,164,216],[166,216],[216,278,331],[216,229,230],[216,229,230,231],[216,227,230,231,234,235,237,238,244,245,256,275],[216,230],[216,228,231,232,238,276],[216,231,232,276],[169,216],[40,169,216,226,269,295,298,308,326],[216,226],[216,226,227,237,254,270,278,279,280,281,282,283,284,287,316,317,321,323,324,329,330,331,335,336,337,338,339],[216,323,324],[169,216,285,295,323],[216,334],[175,216,333],[169,216,226,227,297,298,319],[216,227,266,267,268,280,297,298,302,303],[216,227],[216,227,297,316],[216,267],[216,227,267,268,297,298,306,317,318],[40,216,297,298],[216,319,320],[216,227,267],[216,267,268],[216,250,279],[216,228,233,238,270,271],[216,227,228,233,246,247,249,250,251],[216,227,228,233,246,247,248,249,250,251],[169,216,226,237,246,247,270,287,300],[216,246,247],[216,246,247,249,252,253],[216,227,246],[216,233],[169,216,227,270,278,287,288,289,290,291],[216,270,278,287],[40,216,226,272,273],[169,216,226,287],[40,216,226,269,272,273],[216,236],[216,228],[216,289,307],[169,216,285],[216,226,295],[216,272],[169,216,228,250,272,273,274,285,286,289,291,293,295,302,308,309,310,311,312,313,314,315],[179,216,228],[216,295],[216,287,289],[216,226,228,277,278,279,280,281,282],[169,216,227,233,268,306,319,320,328],[169,216,227,228,237,246,247,249,252,253,268,278,279,282,287,292,299,301,302,304,330],[40,169,216,268,303,330],[169,216,225,226,227,233,237,247,268,270,273,274,278,279,280,282,283,286,287,289,290,291,292,293,294,295,296,299,304,305,306,314,321,322,325,326,327,328,329],[216,226,280,283,330],[216,226,227,268,274,278,279],[169,216,226,227,270,273,274,284,286],[216,227,233,276],[216,227,234,255,268,274,276,330],[216,234,237,249,254,255,330],[216,234,235,276],[216,234,235,255,256,275]],"referencedMap":[[350,1],[342,2],[345,3],[344,2],[343,2],[349,4],[347,5],[348,6],[346,7],[170,8],[171,8],[173,9],[174,10],[175,11],[176,12],[177,13],[178,14],[179,15],[180,16],[181,17],[182,18],[183,18],[185,19],[184,20],[186,19],[187,21],[188,22],[172,23],[222,2],[189,24],[190,25],[191,26],[223,27],[192,28],[193,29],[194,30],[195,31],[196,32],[197,33],[198,34],[199,35],[200,36],[201,37],[202,37],[203,38],[204,39],[206,40],[205,41],[207,42],[208,43],[209,2],[210,44],[211,45],[212,46],[213,47],[214,48],[215,49],[216,50],[217,51],[218,52],[219,53],[220,54],[221,55],[245,2],[244,56],[257,57],[260,58],[259,2],[262,59],[261,2],[265,2],[266,60],[264,61],[263,61],[233,2],[236,2],[246,2],[224,2],[225,62],[229,2],[267,63],[258,64],[243,65],[240,66],[242,67],[241,66],[239,2],[300,68],[8,2],[10,2],[9,2],[2,2],[11,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[3,2],[4,2],[22,2],[19,2],[20,2],[21,2],[23,2],[24,2],[25,2],[5,2],[26,2],[27,2],[28,2],[29,2],[6,2],[30,2],[31,2],[32,2],[33,2],[7,2],[38,2],[34,2],[35,2],[36,2],[37,2],[1,2],[39,2],[169,69],[45,70],[41,69],[42,69],[43,69],[44,71],[53,72],[46,2],[47,2],[48,2],[49,73],[50,2],[51,2],[52,2],[94,74],[95,2],[96,74],[97,74],[93,69],[98,69],[104,75],[100,69],[99,74],[101,69],[102,76],[103,2],[54,69],[63,77],[60,78],[61,69],[58,69],[59,2],[62,69],[55,69],[56,69],[57,69],[64,2],[65,2],[66,2],[67,2],[75,79],[68,2],[69,2],[70,69],[71,2],[72,2],[73,2],[74,2],[76,69],[77,2],[79,80],[78,69],[80,69],[82,69],[81,69],[86,81],[83,69],[84,69],[85,82],[168,83],[90,84],[87,69],[89,85],[88,69],[91,69],[92,86],[105,69],[106,87],[116,2],[117,2],[118,69],[119,2],[120,69],[121,88],[122,89],[124,90],[125,69],[126,2],[127,2],[128,69],[129,2],[130,69],[131,88],[132,91],[134,92],[135,2],[136,2],[137,69],[156,93],[157,2],[133,69],[158,94],[159,95],[160,2],[161,2],[162,69],[163,96],[138,69],[139,69],[141,97],[142,69],[155,98],[140,90],[143,69],[144,2],[145,69],[146,69],[147,69],[148,99],[149,2],[150,69],[151,69],[152,97],[123,69],[153,69],[154,69],[164,100],[114,2],[107,2],[108,69],[109,2],[110,2],[113,88],[115,101],[111,69],[112,69],[165,102],[166,69],[167,103],[40,2],[332,104],[284,2],[270,2],[271,105],[232,106],[276,107],[231,108],[277,109],[281,110],[230,2],[238,108],[226,111],[327,112],[326,113],[340,114],[227,111],[339,111],[325,115],[323,2],[324,116],[335,117],[334,118],[320,119],[306,120],[298,121],[317,122],[297,123],[319,124],[299,125],[321,126],[268,127],[318,128],[282,129],[279,2],[272,130],[253,131],[252,132],[248,2],[301,133],[249,134],[254,135],[247,136],[337,137],[336,2],[292,138],[288,139],[289,140],[293,141],[274,142],[250,111],[237,143],[333,144],[296,111],[294,113],[308,145],[302,2],[286,146],[341,111],[309,147],[295,111],[251,144],[269,2],[310,146],[228,2],[311,148],[314,111],[285,111],[316,149],[322,150],[313,2],[315,150],[312,151],[273,113],[307,140],[290,152],[291,121],[303,111],[283,153],[329,154],[305,155],[304,156],[330,157],[328,2],[331,158],[278,2],[280,159],[287,160],[234,161],[275,162],[256,163],[255,164],[338,165],[235,2]],"exportedModulesMap":[[350,1],[342,2],[345,3],[344,2],[343,2],[349,4],[347,5],[348,6],[346,7],[170,8],[171,8],[173,9],[174,10],[175,11],[176,12],[177,13],[178,14],[179,15],[180,16],[181,17],[182,18],[183,18],[185,19],[184,20],[186,19],[187,21],[188,22],[172,23],[222,2],[189,24],[190,25],[191,26],[223,27],[192,28],[193,29],[194,30],[195,31],[196,32],[197,33],[198,34],[199,35],[200,36],[201,37],[202,37],[203,38],[204,39],[206,40],[205,41],[207,42],[208,43],[209,2],[210,44],[211,45],[212,46],[213,47],[214,48],[215,49],[216,50],[217,51],[218,52],[219,53],[220,54],[221,55],[245,2],[244,56],[257,57],[260,58],[259,2],[262,59],[261,2],[265,2],[266,60],[264,61],[263,61],[233,2],[236,2],[246,2],[224,2],[225,62],[229,2],[267,63],[258,64],[243,65],[240,66],[242,67],[241,66],[239,2],[300,68],[8,2],[10,2],[9,2],[2,2],[11,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[3,2],[4,2],[22,2],[19,2],[20,2],[21,2],[23,2],[24,2],[25,2],[5,2],[26,2],[27,2],[28,2],[29,2],[6,2],[30,2],[31,2],[32,2],[33,2],[7,2],[38,2],[34,2],[35,2],[36,2],[37,2],[1,2],[39,2],[169,69],[45,70],[41,69],[42,69],[43,69],[44,71],[53,72],[46,2],[47,2],[48,2],[49,73],[50,2],[51,2],[52,2],[94,74],[95,2],[96,74],[97,74],[93,69],[98,69],[104,75],[100,69],[99,74],[101,69],[102,76],[103,2],[54,69],[63,77],[60,78],[61,69],[58,69],[59,2],[62,69],[55,69],[56,69],[57,69],[64,2],[65,2],[66,2],[67,2],[75,79],[68,2],[69,2],[70,69],[71,2],[72,2],[73,2],[74,2],[76,69],[77,2],[79,80],[78,69],[80,69],[82,69],[81,69],[86,81],[83,69],[84,69],[85,82],[168,83],[90,84],[87,69],[89,85],[88,69],[91,69],[92,86],[105,69],[106,87],[116,2],[117,2],[118,69],[119,2],[120,69],[121,88],[122,89],[124,90],[125,69],[126,2],[127,2],[128,69],[129,2],[130,69],[131,88],[132,91],[134,92],[135,2],[136,2],[137,69],[156,93],[157,2],[133,69],[158,94],[159,95],[160,2],[161,2],[162,69],[163,96],[138,69],[139,69],[141,97],[142,69],[155,98],[140,90],[143,69],[144,2],[145,69],[146,69],[147,69],[148,99],[149,2],[150,69],[151,69],[152,97],[123,69],[153,69],[154,69],[164,100],[114,2],[107,2],[108,69],[109,2],[110,2],[113,88],[115,101],[111,69],[112,69],[165,102],[166,69],[167,103],[40,2],[332,104],[284,2],[270,2],[271,105],[232,106],[276,107],[231,108],[277,109],[281,110],[230,2],[238,108],[226,111],[327,112],[326,113],[340,114],[227,111],[339,111],[325,115],[323,2],[324,116],[335,117],[334,118],[320,119],[306,120],[298,121],[317,122],[297,123],[319,124],[299,125],[321,126],[268,127],[318,128],[282,129],[279,2],[272,130],[253,131],[252,132],[248,2],[301,133],[249,134],[254,135],[247,136],[337,137],[336,2],[292,138],[288,139],[289,140],[293,141],[274,142],[250,111],[237,143],[333,144],[296,111],[294,113],[308,145],[302,2],[286,146],[341,111],[309,147],[295,111],[251,144],[269,2],[310,146],[228,2],[311,148],[314,111],[285,111],[316,149],[322,150],[313,2],[315,150],[312,151],[273,113],[307,140],[290,152],[291,121],[303,111],[283,153],[329,154],[305,155],[304,156],[330,157],[328,2],[331,158],[278,2],[280,159],[287,160],[234,161],[275,162],[256,163],[255,164],[338,165],[235,2]],"semanticDiagnosticsPerFile":[350,342,345,344,343,349,347,348,346,170,171,173,174,175,176,177,178,179,180,181,182,183,185,184,186,187,188,172,222,189,190,191,223,192,193,194,195,196,197,198,199,200,201,202,203,204,206,205,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,245,244,257,260,259,262,261,265,266,264,263,233,236,246,224,225,229,267,258,243,240,242,241,239,300,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,38,34,35,36,37,1,39,169,45,41,42,43,44,53,46,47,48,49,50,51,52,94,95,96,97,93,98,104,100,99,101,102,103,54,63,60,61,58,59,62,55,56,57,64,65,66,67,75,68,69,70,71,72,73,74,76,77,79,78,80,82,81,86,83,84,85,168,90,87,89,88,91,92,105,106,116,117,118,119,120,121,122,124,125,126,127,128,129,130,131,132,134,135,136,137,156,157,133,158,159,160,161,162,163,138,139,141,142,155,140,143,144,145,146,147,148,149,150,151,152,123,153,154,164,114,107,108,109,110,113,115,111,112,165,166,167,40,332,284,270,271,232,276,231,277,281,230,238,226,327,326,340,227,339,325,323,324,335,334,320,306,298,317,297,319,299,321,268,318,282,279,272,253,252,248,301,249,254,247,337,336,292,288,289,293,274,250,237,333,296,294,308,302,286,341,309,295,251,269,310,228,311,314,285,316,322,313,315,312,273,307,290,291,303,283,329,305,304,330,328,331,278,280,287,234,275,256,255,338,235]},"version":"4.4.3"}
|
package/package.json
CHANGED
|
@@ -10,22 +10,14 @@ import { networkTickerMap } from "./constant.js";
|
|
|
10
10
|
import { prefixFromNetworkMap } from "../enum.js";
|
|
11
11
|
import { CashAddressNetworkPrefix } from "@bitauth/libauth";
|
|
12
12
|
|
|
13
|
-
async function initProvider(network: Network) {
|
|
13
|
+
export async function initProvider(network: Network) {
|
|
14
14
|
if (!getGlobalProvider(network)) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return provider;
|
|
20
|
-
} catch (e) {
|
|
21
|
-
throw `${network} ${e}`;
|
|
22
|
-
}
|
|
23
|
-
} else {
|
|
24
|
-
// console.warn(
|
|
25
|
-
// `Ignoring attempt to reinitialize non-existent ${network} provider`
|
|
26
|
-
// );
|
|
27
|
-
return true;
|
|
15
|
+
const conn = new Connection(network);
|
|
16
|
+
const provider = (await conn.ready()).networkProvider;
|
|
17
|
+
setGlobalProvider(network, provider);
|
|
18
|
+
return provider;
|
|
28
19
|
}
|
|
20
|
+
return getGlobalProvider(network);
|
|
29
21
|
}
|
|
30
22
|
|
|
31
23
|
export async function initProviders(networks?: Network[]) {
|
package/src/network/default.ts
CHANGED
|
@@ -25,12 +25,14 @@ export function setGlobalProvider(
|
|
|
25
25
|
return provider;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export function getGlobalProvider(
|
|
28
|
+
export function getGlobalProvider(
|
|
29
|
+
network: Network
|
|
30
|
+
): NetworkProvider | undefined {
|
|
29
31
|
const accessor = networkTickerMap[network];
|
|
30
32
|
return globalThis[accessor];
|
|
31
33
|
}
|
|
32
34
|
|
|
33
|
-
export function removeGlobalProvider(network: Network):
|
|
35
|
+
export function removeGlobalProvider(network: Network): void {
|
|
34
36
|
const accessor = networkTickerMap[network];
|
|
35
37
|
if (accessor in globalThis) {
|
|
36
38
|
delete globalThis[accessor];
|
|
@@ -19,7 +19,7 @@ export async function amountInSatoshi(
|
|
|
19
19
|
const unit = sanitizeUnit(rawUnit);
|
|
20
20
|
switch (unit) {
|
|
21
21
|
case UnitEnum.BCH:
|
|
22
|
-
return value * bchParam.subUnits;
|
|
22
|
+
return Math.round(value * bchParam.subUnits);
|
|
23
23
|
case UnitEnum.SATOSHI:
|
|
24
24
|
return value;
|
|
25
25
|
case UnitEnum.SAT:
|
package/src/wallet/Bcmr.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { getGlobalProvider } from "../network/default.js";
|
|
|
14
14
|
import ElectrumNetworkProvider from "../network/ElectrumNetworkProvider.js";
|
|
15
15
|
import { ElectrumRawTransaction } from "../network/interface.js";
|
|
16
16
|
import { IdentitySnapshot, Registry } from "./bcmr-v1.schema.js";
|
|
17
|
+
import { initProvider } from "../network/Connection.js";
|
|
17
18
|
|
|
18
19
|
export interface AuthChainElement {
|
|
19
20
|
txHash: string;
|
|
@@ -145,9 +146,9 @@ export class BCMR {
|
|
|
145
146
|
options.resolveBase = false;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
const provider =
|
|
149
|
+
const provider = (await initProvider(
|
|
149
150
|
options.network
|
|
150
|
-
) as ElectrumNetworkProvider;
|
|
151
|
+
)!) as ElectrumNetworkProvider;
|
|
151
152
|
|
|
152
153
|
if (options.rawTx === undefined) {
|
|
153
154
|
options.rawTx = await provider.getRawTransactionObject(
|
|
@@ -229,7 +230,7 @@ export class BCMR {
|
|
|
229
230
|
val.indexOf("6a0442434d52") === 0 ||
|
|
230
231
|
val.indexOf("6a4c0442434d52") === 0 ||
|
|
231
232
|
val.indexOf("6a4d040042434d52") === 0 ||
|
|
232
|
-
val.indexOf("
|
|
233
|
+
val.indexOf("6a4e0400000042434d52") === 0
|
|
233
234
|
);
|
|
234
235
|
|
|
235
236
|
if (bcmrOpReturns.length === 0) {
|
package/src/wallet/model.ts
CHANGED
|
@@ -3,7 +3,12 @@ import { sanitizeUnit } from "../util/sanitizeUnit.js";
|
|
|
3
3
|
import { UnitEnum } from "../enum.js";
|
|
4
4
|
import { NFTCapability, UtxoI } from "../interface.js";
|
|
5
5
|
import { DELIMITER } from "../constant.js";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
binToNumberUint16LE,
|
|
8
|
+
binToUtf8,
|
|
9
|
+
hexToBin,
|
|
10
|
+
utf8ToBin,
|
|
11
|
+
} from "@bitauth/libauth";
|
|
7
12
|
import { Config } from "../config.js";
|
|
8
13
|
import { checkTokenaddr } from "../util/deriveCashaddr.js";
|
|
9
14
|
|
|
@@ -238,9 +243,11 @@ export class OpReturnData {
|
|
|
238
243
|
throw new Error("Wrong data array element");
|
|
239
244
|
}
|
|
240
245
|
|
|
241
|
-
if (length < 76) {
|
|
246
|
+
if (length < 76) {
|
|
247
|
+
// OP_PUSHDATA_1
|
|
242
248
|
lengthData = [length];
|
|
243
|
-
} else if (length < 223) {
|
|
249
|
+
} else if (length < 223) {
|
|
250
|
+
// default max `-datacarriersize`
|
|
244
251
|
lengthData = [0x4c, length];
|
|
245
252
|
} else {
|
|
246
253
|
throw new Error("OP_RETURN data can not exceed 220 bytes in size");
|
|
@@ -299,7 +306,7 @@ export class OpReturnData {
|
|
|
299
306
|
* @returns array of binary data chunks pushed, converted to utf8 strings
|
|
300
307
|
*/
|
|
301
308
|
public static parse(opReturnHex: string): string[] {
|
|
302
|
-
return this.parseBinary(hexToBin(opReturnHex)).map(val => binToUtf8(val));
|
|
309
|
+
return this.parseBinary(hexToBin(opReturnHex)).map((val) => binToUtf8(val));
|
|
303
310
|
}
|
|
304
311
|
}
|
|
305
312
|
|