mainnet-js 1.1.29 → 1.1.31

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 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.1.29.js"></script></head>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1"><script defer src="mainnet-1.1.31.js"></script></head>
7
7
  <body><script>document.addEventListener("DOMContentLoaded", async (event) => Object.assign(globalThis, await __mainnetPromise))</script>
8
8
  </body>
9
9
  </html>
@@ -1304,7 +1304,7 @@ eval("/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harm
1304
1304
  \********************************/
1305
1305
  /***/ ((module, __webpack_exports__, __webpack_require__) => {
1306
1306
 
1307
- 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 */ \"buildEncodedTransaction\": () => (/* binding */ buildEncodedTransaction),\n/* harmony export */ \"getFeeAmount\": () => (/* binding */ getFeeAmount),\n/* harmony export */ \"getFeeAmountSimple\": () => (/* binding */ getFeeAmountSimple),\n/* harmony export */ \"getSuitableUtxos\": () => (/* binding */ getSuitableUtxos),\n/* harmony export */ \"signUnsignedTransaction\": () => (/* binding */ signUnsignedTransaction)\n/* harmony export */ });\n/* unused harmony exports buildP2pkhNonHdTransaction, prepareInputs, prepareOutputs, prepareOpReturnOutput, prepareTokenOutputs */\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/schema/authentication-template.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/compiler/standard/p2pkh.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/compiler/compiler-bch/compiler-bch.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/address/locking-bytecode.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/transaction/generate-transaction.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-tokens.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/format/hex.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/message/transaction-encoding.js\");\n/* harmony import */ var _interface_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../interface.js */ \"./src/interface.ts\");\n/* harmony import */ var _allocateFee_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./allocateFee.js */ \"./src/transaction/allocateFee.ts\");\n/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constant.js */ \"./src/constant.ts\");\n/* harmony import */ var _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../wallet/model.js */ \"./src/wallet/model.ts\");\n/* harmony import */ var _util_amountInSatoshi_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../util/amountInSatoshi.js */ \"./src/util/amountInSatoshi.ts\");\n/* harmony import */ var _util_sumSendRequestAmounts_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/sumSendRequestAmounts.js */ \"./src/util/sumSendRequestAmounts.ts\");\n/* harmony import */ var _util_sumUtxoValue_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/sumUtxoValue.js */ \"./src/util/sumUtxoValue.ts\");\n/* harmony import */ var _wallet_enum_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../wallet/enum.js */ \"./src/wallet/enum.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__, _util_sumSendRequestAmounts_js__WEBPACK_IMPORTED_MODULE_5__, _allocateFee_js__WEBPACK_IMPORTED_MODULE_6__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_9__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_10__, _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__, _util_amountInSatoshi_js__WEBPACK_IMPORTED_MODULE_13__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__]);\n([_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__, _util_sumSendRequestAmounts_js__WEBPACK_IMPORTED_MODULE_5__, _allocateFee_js__WEBPACK_IMPORTED_MODULE_6__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_9__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_10__, _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__, _util_amountInSatoshi_js__WEBPACK_IMPORTED_MODULE_13__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\n\n\n// Build a transaction for a p2pkh transaction for a non HD wallet\nasync function buildP2pkhNonHdTransaction({ inputs, outputs, signingKey, sourceAddress, fee = 0, discardChange = false, slpOutputs = [], feePaidBy = _wallet_enum_js__WEBPACK_IMPORTED_MODULE_0__.FeePaidByEnum.change, changeAddress = \"\", }) {\n if (!signingKey) {\n throw new Error(\"Missing signing key when building transaction\");\n }\n const template = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.importAuthenticationTemplate)(_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.authenticationTemplateP2pkhNonHd);\n if (typeof template === \"string\") {\n throw new Error(\"Transaction template error\");\n }\n const compiler = await (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.authenticationTemplateToCompilerBCH)(template);\n const inputAmount = await (0,_util_sumUtxoValue_js__WEBPACK_IMPORTED_MODULE_4__.sumUtxoValue)(inputs);\n const sendAmount = await (0,_util_sumSendRequestAmounts_js__WEBPACK_IMPORTED_MODULE_5__.sumSendRequestAmounts)(outputs);\n const changeAmount = BigInt(inputAmount) - BigInt(sendAmount) - BigInt(fee);\n outputs = (0,_allocateFee_js__WEBPACK_IMPORTED_MODULE_6__.allocateFee)(outputs, fee, feePaidBy, changeAmount);\n const lockedOutputs = await prepareOutputs(outputs);\n if (!changeAddress) {\n changeAddress = sourceAddress;\n }\n if (discardChange !== true) {\n if (changeAmount > _constant_js__WEBPACK_IMPORTED_MODULE_7__.DUST_UTXO_THRESHOLD) {\n const changeLockingBytecode = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__.cashAddressToLockingBytecode)(changeAddress);\n if (typeof changeLockingBytecode === \"string\") {\n throw Error(changeLockingBytecode);\n }\n lockedOutputs.push({\n lockingBytecode: changeLockingBytecode.bytecode,\n valueSatoshis: BigInt(changeAmount),\n });\n }\n }\n const { preparedInputs, sourceOutputs } = prepareInputs({\n inputs,\n compiler,\n signingKey,\n sourceAddress,\n });\n const result = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_9__.generateTransaction)({\n inputs: preparedInputs,\n locktime: 0,\n outputs: [...slpOutputs, ...lockedOutputs],\n version: 2,\n });\n if (!result.success) {\n throw Error(\"Error building transaction with fee\");\n }\n // console.log(stringify(result.transaction), stringify(sourceOutputs))\n const tokenValidationResult = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_10__.verifyTransactionTokens)(result.transaction, sourceOutputs);\n if (tokenValidationResult !== true && fee > 0) {\n throw tokenValidationResult;\n }\n return { transaction: result.transaction, sourceOutputs: sourceOutputs };\n}\nfunction prepareInputs({ inputs, compiler, signingKey, sourceAddress, }) {\n const preparedInputs = [];\n const sourceOutputs = [];\n for (const i of inputs) {\n const utxoTxnValue = i.satoshis;\n const utxoIndex = i.vout;\n // slice will create a clone of the array\n const utxoOutpointTransactionHash = new Uint8Array(i.txid.match(/.{1,2}/g).map((byte) => parseInt(byte, 16)));\n // reverse the cloned copy\n // utxoOutpointTransactionHash.reverse();\n if (!utxoOutpointTransactionHash || utxoIndex === undefined) {\n throw new Error(\"Missing unspent outpoint when building transaction\");\n }\n const libAuthToken = i.token && {\n amount: BigInt(i.token.amount),\n category: (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__.hexToBin)(i.token.tokenId),\n nft: i.token.capability !== undefined || i.token.commitment !== undefined\n ? {\n capability: i.token.capability,\n commitment: i.token.commitment !== undefined &&\n (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__.hexToBin)(i.token.commitment),\n }\n : undefined,\n };\n const key = signingKey?.length ? signingKey : Uint8Array.from(Array(32));\n const newInput = {\n outpointIndex: utxoIndex,\n outpointTransactionHash: utxoOutpointTransactionHash,\n sequenceNumber: 0,\n unlockingBytecode: {\n compiler,\n data: {\n keys: { privateKeys: { key: key } },\n },\n valueSatoshis: BigInt(utxoTxnValue),\n script: \"unlock\",\n token: libAuthToken,\n },\n };\n preparedInputs.push(newInput);\n const lockingBytecode = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__.cashAddressToLockingBytecode)(sourceAddress);\n if (typeof lockingBytecode === \"string\") {\n throw lockingBytecode;\n }\n sourceOutputs.push({\n outpointIndex: utxoIndex,\n outpointTransactionHash: utxoOutpointTransactionHash,\n sequenceNumber: 0,\n unlockingBytecode: Uint8Array.from([]),\n // additional info for sourceOutputs\n lockingBytecode: lockingBytecode.bytecode,\n valueSatoshis: BigInt(utxoTxnValue),\n token: libAuthToken,\n });\n }\n return { preparedInputs, sourceOutputs };\n}\n/**\n * prepareOutputs - create outputs for a transaction from a list of send requests\n *\n * a wrapper function\n *\n * @returns A promise to a list of unspent outputs\n */\nasync function prepareOutputs(outputs) {\n const lockedOutputs = [];\n for (const output of outputs) {\n if (output instanceof _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__.TokenSendRequest) {\n lockedOutputs.push(prepareTokenOutputs(output));\n continue;\n }\n if (output instanceof _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__.OpReturnData) {\n lockedOutputs.push(prepareOpReturnOutput(output));\n continue;\n }\n const outputLockingBytecode = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__.cashAddressToLockingBytecode)(output.cashaddr);\n if (typeof outputLockingBytecode === \"string\")\n throw new Error(outputLockingBytecode);\n const sendAmount = await (0,_util_amountInSatoshi_js__WEBPACK_IMPORTED_MODULE_13__.amountInSatoshi)(output.value, output.unit);\n if (sendAmount % 1 !== 0) {\n throw Error(`Cannot send ${sendAmount} satoshis, (fractional sats do not exist, yet), please use an integer number.`);\n }\n const lockedOutput = {\n lockingBytecode: outputLockingBytecode.bytecode,\n valueSatoshis: BigInt(sendAmount),\n };\n lockedOutputs.push(lockedOutput);\n }\n return lockedOutputs;\n}\n/**\n * prepareOpReturnOutput - create an output for OP_RETURN data\n *\n * @returns A promise to a list of unspent outputs\n */\nfunction prepareOpReturnOutput(request) {\n return {\n lockingBytecode: request.buffer,\n valueSatoshis: BigInt(0),\n };\n}\n/**\n * prepareOpReturnOutput - create an output for token data\n *\n * @returns A libauth Output\n */\nfunction prepareTokenOutputs(request) {\n const token = request;\n const outputLockingBytecode = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__.cashAddressToLockingBytecode)(request.cashaddr);\n if (typeof outputLockingBytecode === \"string\")\n throw new Error(outputLockingBytecode);\n const libAuthToken = {\n amount: BigInt(token.amount),\n category: (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__.hexToBin)(token.tokenId),\n nft: token.capability !== undefined || token.commitment !== undefined\n ? {\n capability: token.capability,\n commitment: token.commitment !== undefined && (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__.hexToBin)(token.commitment),\n }\n : undefined,\n };\n return {\n lockingBytecode: outputLockingBytecode.bytecode,\n valueSatoshis: BigInt(request.value || 1000),\n token: libAuthToken,\n };\n}\n/**\n * getSuitableUtxos - Filter a list of unspent transaction outputs to the minimum needed to complete a transaction\n *\n * a intermediate function\n *\n * @param unspentOutputs An unfiltered list of available unspent transaction outputs\n *\n * @returns A promise to a list of unspent outputs\n */\nasync function getSuitableUtxos(inputs, amountRequired, bestHeight, feePaidBy, requests, ensureUtxos = [], tokenOperation = \"send\") {\n const suitableUtxos = [...ensureUtxos];\n let amountAvailable = BigInt(0);\n const tokenRequests = requests.filter((val) => val instanceof _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__.TokenSendRequest);\n const availableInputs = inputs.slice();\n // find matching utxos for token transfers\n if (tokenOperation === \"send\") {\n for (const request of tokenRequests) {\n const tokenInputs = availableInputs.filter((val) => val.token?.tokenId === request.tokenId);\n const sameCommitmentTokens = [...suitableUtxos, ...tokenInputs].filter((val) => val.token?.capability === request.capability &&\n val.token?.commitment === request.commitment);\n if (sameCommitmentTokens.length) {\n const input = sameCommitmentTokens[0];\n const index = availableInputs.indexOf(input);\n if (index !== -1) {\n suitableUtxos.push(input);\n availableInputs.splice(index, 1);\n amountAvailable += BigInt(input.satoshis);\n }\n continue;\n }\n if (request.capability === _interface_js__WEBPACK_IMPORTED_MODULE_14__.NFTCapability.minting ||\n request.capability === _interface_js__WEBPACK_IMPORTED_MODULE_14__.NFTCapability.mutable) {\n const changeCommitmentTokens = [\n ...suitableUtxos,\n ...tokenInputs,\n ].filter((val) => val.token?.capability === request.capability);\n if (changeCommitmentTokens.length) {\n const input = changeCommitmentTokens[0];\n const index = availableInputs.indexOf(input);\n if (index !== -1) {\n suitableUtxos.push(input);\n availableInputs.splice(index, 1);\n amountAvailable += BigInt(input.satoshis);\n }\n continue;\n }\n }\n throw Error(`No suitable token utxos available to send token with id \"${request.tokenId}\", capability \"${request.capability}\", commitment \"${request.commitment}\"`);\n }\n }\n // console.log(suitableUtxos)\n // find plain bch outputs\n for (const u of availableInputs) {\n if (u.token) {\n continue;\n }\n if (u.coinbase && u.height && bestHeight) {\n const age = bestHeight - u.height;\n if (age > 100) {\n suitableUtxos.push(u);\n amountAvailable += BigInt(u.satoshis);\n }\n }\n else {\n suitableUtxos.push(u);\n amountAvailable += BigInt(u.satoshis);\n }\n // if amountRequired is not given, assume it is a max spend request, skip this condition\n if (amountRequired && amountAvailable > amountRequired) {\n break;\n }\n }\n const addEnsured = (suitableUtxos) => {\n return [...ensureUtxos, ...suitableUtxos].filter((val, index, array) => array.findIndex((other) => other.txid === val.txid && other.vout === val.vout) === index);\n };\n // if the fee is split with a feePaidBy option, skip checking change.\n if (feePaidBy && feePaidBy != _wallet_enum_js__WEBPACK_IMPORTED_MODULE_0__.FeePaidByEnum.change) {\n return addEnsured(suitableUtxos);\n }\n // If the amount needed is met, or no amount is given, return\n if (typeof amountRequired === \"undefined\") {\n return addEnsured(suitableUtxos);\n }\n else if (amountAvailable < amountRequired) {\n const e = Error(`Amount required was not met, ${amountRequired} satoshis needed, ${amountAvailable} satoshis available`);\n e[\"data\"] = {\n required: amountRequired,\n available: amountAvailable,\n };\n throw e;\n }\n else {\n return addEnsured(suitableUtxos);\n }\n}\n// model-based imprecise and fast fee estimation\nasync function getFeeAmountSimple({ utxos, sendRequests, relayFeePerByteInSatoshi, slpOutputs, discardChange, }) {\n const inputSizeP2pkh = 148;\n const outputSizeP2pkh = 34;\n const inputTotalSize = utxos.reduce((prev, curr) => prev +\n (curr.token\n ? inputSizeP2pkh +\n 1 +\n 34 +\n Math.round(1 + (curr.token.commitment?.length ?? 0) / 2) +\n (curr.token.amount ? 9 : 0)\n : inputSizeP2pkh), 0);\n const outputSize = (sendRequest) => {\n if (sendRequest.hasOwnProperty(\"unit\")) {\n return outputSizeP2pkh;\n }\n else if (sendRequest.hasOwnProperty(\"tokenId\")) {\n const tokenRequest = sendRequest;\n return (outputSizeP2pkh +\n 1 +\n 34 +\n Math.round(1 + (tokenRequest.commitment?.length ?? 0) / 2) +\n (tokenRequest.amount ? 9 : 0));\n }\n else if (sendRequest.hasOwnProperty(\"buffer\")) {\n return 9 + sendRequest.buffer.length;\n }\n return 0;\n };\n const outputTotalSize = sendRequests.reduce((prev, curr) => prev + outputSize(curr), 0) +\n (discardChange ? 0 : outputSizeP2pkh);\n const slpTotalSize = slpOutputs.reduce((prev, curr) => prev + curr.lockingBytecode.length, 0);\n return ((inputTotalSize + outputTotalSize + slpTotalSize + 16) *\n relayFeePerByteInSatoshi);\n}\n// precise fee estimation\nasync function getFeeAmount({ utxos, sendRequests, privateKey, sourceAddress, relayFeePerByteInSatoshi, slpOutputs, feePaidBy, discardChange, }) {\n // build transaction\n if (utxos) {\n // Build the transaction to get the approximate size\n const { encodedTransaction: draftTransaction } = await buildEncodedTransaction({\n inputs: utxos,\n outputs: sendRequests,\n signingKey: privateKey,\n sourceAddress,\n fee: 0,\n discardChange: discardChange ?? false,\n slpOutputs,\n feePaidBy,\n changeAddress: \"\",\n });\n return draftTransaction.length * relayFeePerByteInSatoshi + 1;\n }\n else {\n throw Error(\"The available inputs in the wallet cannot satisfy this send request\");\n }\n}\n// Build encoded transaction\nasync function buildEncodedTransaction({ inputs, outputs, signingKey, sourceAddress, fee = 0, discardChange = false, slpOutputs = [], feePaidBy = _wallet_enum_js__WEBPACK_IMPORTED_MODULE_0__.FeePaidByEnum.change, changeAddress = \"\", buildUnsigned = false, }) {\n const { transaction, sourceOutputs } = await buildP2pkhNonHdTransaction({\n inputs,\n outputs,\n signingKey,\n sourceAddress,\n fee,\n discardChange,\n slpOutputs,\n feePaidBy,\n changeAddress,\n });\n if (buildUnsigned === true) {\n transaction.inputs.forEach((input) => (input.unlockingBytecode = Uint8Array.from([])));\n }\n return { encodedTransaction: (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__.encodeTransaction)(transaction), sourceOutputs };\n}\nasync function signUnsignedTransaction(transaction, sourceOutputs, signingKey) {\n if (typeof transaction === \"string\") {\n transaction = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__.hexToBin)(transaction);\n }\n const decoded = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__.decodeTransaction)(transaction);\n if (typeof decoded === \"string\") {\n throw decoded;\n }\n const template = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.importAuthenticationTemplate)(_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.authenticationTemplateP2pkhNonHd);\n if (typeof template === \"string\") {\n throw new Error(\"Transaction template error\");\n }\n const compiler = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.authenticationTemplateToCompilerBCH)(template);\n const transactionTemplate = { ...decoded };\n for (const [index, input] of decoded.inputs.entries()) {\n const sourceOutput = sourceOutputs[index];\n transactionTemplate.inputs[index] = {\n ...input,\n unlockingBytecode: {\n compiler,\n data: {\n keys: { privateKeys: { key: signingKey } },\n },\n valueSatoshis: sourceOutput.valueSatoshis,\n script: \"unlock\",\n token: sourceOutput.token,\n },\n };\n }\n const result = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_9__.generateTransaction)(transactionTemplate);\n if (!result.success) {\n throw result.errors;\n }\n return (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__.encodeTransaction)(result.transaction);\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });\n\n//# sourceURL=webpack://mainnet-js/./src/transaction/Wif.ts?");
1307
+ 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 */ \"buildEncodedTransaction\": () => (/* binding */ buildEncodedTransaction),\n/* harmony export */ \"getFeeAmount\": () => (/* binding */ getFeeAmount),\n/* harmony export */ \"getFeeAmountSimple\": () => (/* binding */ getFeeAmountSimple),\n/* harmony export */ \"getSuitableUtxos\": () => (/* binding */ getSuitableUtxos),\n/* harmony export */ \"signUnsignedTransaction\": () => (/* binding */ signUnsignedTransaction)\n/* harmony export */ });\n/* unused harmony exports buildP2pkhNonHdTransaction, prepareInputs, prepareOutputs, prepareOpReturnOutput, prepareTokenOutputs */\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/schema/authentication-template.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/compiler/standard/p2pkh.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/compiler/compiler-bch/compiler-bch.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/address/locking-bytecode.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/transaction/generate-transaction.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/vm/instruction-sets/bch/2023/bch-2023-tokens.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/format/hex.js\");\n/* harmony import */ var _bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @bitauth/libauth */ \"../../node_modules/@bitauth/libauth/build/lib/message/transaction-encoding.js\");\n/* harmony import */ var _interface_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../interface.js */ \"./src/interface.ts\");\n/* harmony import */ var _allocateFee_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./allocateFee.js */ \"./src/transaction/allocateFee.ts\");\n/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../constant.js */ \"./src/constant.ts\");\n/* harmony import */ var _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../wallet/model.js */ \"./src/wallet/model.ts\");\n/* harmony import */ var _util_amountInSatoshi_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../util/amountInSatoshi.js */ \"./src/util/amountInSatoshi.ts\");\n/* harmony import */ var _util_sumSendRequestAmounts_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/sumSendRequestAmounts.js */ \"./src/util/sumSendRequestAmounts.ts\");\n/* harmony import */ var _util_sumUtxoValue_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/sumUtxoValue.js */ \"./src/util/sumUtxoValue.ts\");\n/* harmony import */ var _wallet_enum_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../wallet/enum.js */ \"./src/wallet/enum.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__, _util_sumSendRequestAmounts_js__WEBPACK_IMPORTED_MODULE_5__, _allocateFee_js__WEBPACK_IMPORTED_MODULE_6__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_9__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_10__, _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__, _util_amountInSatoshi_js__WEBPACK_IMPORTED_MODULE_13__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__]);\n([_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__, _util_sumSendRequestAmounts_js__WEBPACK_IMPORTED_MODULE_5__, _allocateFee_js__WEBPACK_IMPORTED_MODULE_6__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_9__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_10__, _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__, _util_amountInSatoshi_js__WEBPACK_IMPORTED_MODULE_13__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\n\n\n// Build a transaction for a p2pkh transaction for a non HD wallet\nasync function buildP2pkhNonHdTransaction({ inputs, outputs, signingKey, sourceAddress, fee = 0, discardChange = false, slpOutputs = [], feePaidBy = _wallet_enum_js__WEBPACK_IMPORTED_MODULE_0__.FeePaidByEnum.change, changeAddress = \"\", }) {\n if (!signingKey) {\n throw new Error(\"Missing signing key when building transaction\");\n }\n const template = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.importAuthenticationTemplate)(_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.authenticationTemplateP2pkhNonHd);\n if (typeof template === \"string\") {\n throw new Error(\"Transaction template error\");\n }\n const compiler = await (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.authenticationTemplateToCompilerBCH)(template);\n const inputAmount = await (0,_util_sumUtxoValue_js__WEBPACK_IMPORTED_MODULE_4__.sumUtxoValue)(inputs);\n const sendAmount = await (0,_util_sumSendRequestAmounts_js__WEBPACK_IMPORTED_MODULE_5__.sumSendRequestAmounts)(outputs);\n const changeAmount = BigInt(inputAmount) - BigInt(sendAmount) - BigInt(fee);\n outputs = (0,_allocateFee_js__WEBPACK_IMPORTED_MODULE_6__.allocateFee)(outputs, fee, feePaidBy, changeAmount);\n const lockedOutputs = await prepareOutputs(outputs);\n if (!changeAddress) {\n changeAddress = sourceAddress;\n }\n if (discardChange !== true) {\n if (changeAmount > _constant_js__WEBPACK_IMPORTED_MODULE_7__.DUST_UTXO_THRESHOLD) {\n const changeLockingBytecode = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__.cashAddressToLockingBytecode)(changeAddress);\n if (typeof changeLockingBytecode === \"string\") {\n throw Error(changeLockingBytecode);\n }\n lockedOutputs.push({\n lockingBytecode: changeLockingBytecode.bytecode,\n valueSatoshis: BigInt(changeAmount),\n });\n }\n }\n const { preparedInputs, sourceOutputs } = prepareInputs({\n inputs,\n compiler,\n signingKey,\n sourceAddress,\n });\n const result = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_9__.generateTransaction)({\n inputs: preparedInputs,\n locktime: 0,\n outputs: [...slpOutputs, ...lockedOutputs],\n version: 2,\n });\n if (!result.success) {\n throw Error(\"Error building transaction with fee\");\n }\n const tokenValidationResult = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_10__.verifyTransactionTokens)(result.transaction, sourceOutputs);\n if (tokenValidationResult !== true && fee > 0) {\n throw tokenValidationResult;\n }\n return { transaction: result.transaction, sourceOutputs: sourceOutputs };\n}\nfunction prepareInputs({ inputs, compiler, signingKey, sourceAddress, }) {\n const preparedInputs = [];\n const sourceOutputs = [];\n for (const i of inputs) {\n const utxoTxnValue = i.satoshis;\n const utxoIndex = i.vout;\n // slice will create a clone of the array\n const utxoOutpointTransactionHash = new Uint8Array(i.txid.match(/.{1,2}/g).map((byte) => parseInt(byte, 16)));\n // reverse the cloned copy\n // utxoOutpointTransactionHash.reverse();\n if (!utxoOutpointTransactionHash || utxoIndex === undefined) {\n throw new Error(\"Missing unspent outpoint when building transaction\");\n }\n const libAuthToken = i.token && {\n amount: BigInt(i.token.amount),\n category: (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__.hexToBin)(i.token.tokenId),\n nft: i.token.capability !== undefined || i.token.commitment !== undefined\n ? {\n capability: i.token.capability,\n commitment: i.token.commitment !== undefined &&\n (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__.hexToBin)(i.token.commitment),\n }\n : undefined,\n };\n const key = signingKey?.length ? signingKey : Uint8Array.from(Array(32));\n const newInput = {\n outpointIndex: utxoIndex,\n outpointTransactionHash: utxoOutpointTransactionHash,\n sequenceNumber: 0,\n unlockingBytecode: {\n compiler,\n data: {\n keys: { privateKeys: { key: key } },\n },\n valueSatoshis: BigInt(utxoTxnValue),\n script: \"unlock\",\n token: libAuthToken,\n },\n };\n preparedInputs.push(newInput);\n const lockingBytecode = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__.cashAddressToLockingBytecode)(sourceAddress);\n if (typeof lockingBytecode === \"string\") {\n throw lockingBytecode;\n }\n sourceOutputs.push({\n outpointIndex: utxoIndex,\n outpointTransactionHash: utxoOutpointTransactionHash,\n sequenceNumber: 0,\n unlockingBytecode: Uint8Array.from([]),\n // additional info for sourceOutputs\n lockingBytecode: lockingBytecode.bytecode,\n valueSatoshis: BigInt(utxoTxnValue),\n token: libAuthToken,\n });\n }\n return { preparedInputs, sourceOutputs };\n}\n/**\n * prepareOutputs - create outputs for a transaction from a list of send requests\n *\n * a wrapper function\n *\n * @returns A promise to a list of unspent outputs\n */\nasync function prepareOutputs(outputs) {\n const lockedOutputs = [];\n for (const output of outputs) {\n if (output instanceof _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__.TokenSendRequest) {\n lockedOutputs.push(prepareTokenOutputs(output));\n continue;\n }\n if (output instanceof _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__.OpReturnData) {\n lockedOutputs.push(prepareOpReturnOutput(output));\n continue;\n }\n const outputLockingBytecode = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__.cashAddressToLockingBytecode)(output.cashaddr);\n if (typeof outputLockingBytecode === \"string\")\n throw new Error(outputLockingBytecode);\n const sendAmount = await (0,_util_amountInSatoshi_js__WEBPACK_IMPORTED_MODULE_13__.amountInSatoshi)(output.value, output.unit);\n if (sendAmount % 1 !== 0) {\n throw Error(`Cannot send ${sendAmount} satoshis, (fractional sats do not exist, yet), please use an integer number.`);\n }\n const lockedOutput = {\n lockingBytecode: outputLockingBytecode.bytecode,\n valueSatoshis: BigInt(sendAmount),\n };\n lockedOutputs.push(lockedOutput);\n }\n return lockedOutputs;\n}\n/**\n * prepareOpReturnOutput - create an output for OP_RETURN data\n *\n * @returns A promise to a list of unspent outputs\n */\nfunction prepareOpReturnOutput(request) {\n return {\n lockingBytecode: request.buffer,\n valueSatoshis: BigInt(0),\n };\n}\n/**\n * prepareOpReturnOutput - create an output for token data\n *\n * @returns A libauth Output\n */\nfunction prepareTokenOutputs(request) {\n const token = request;\n const outputLockingBytecode = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_8__.cashAddressToLockingBytecode)(request.cashaddr);\n if (typeof outputLockingBytecode === \"string\")\n throw new Error(outputLockingBytecode);\n const libAuthToken = {\n amount: BigInt(token.amount),\n category: (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__.hexToBin)(token.tokenId),\n nft: token.capability !== undefined || token.commitment !== undefined\n ? {\n capability: token.capability,\n commitment: token.commitment !== undefined && (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__.hexToBin)(token.commitment),\n }\n : undefined,\n };\n return {\n lockingBytecode: outputLockingBytecode.bytecode,\n valueSatoshis: BigInt(request.value || 1000),\n token: libAuthToken,\n };\n}\n/**\n * getSuitableUtxos - Filter a list of unspent transaction outputs to the minimum needed to complete a transaction\n *\n * a intermediate function\n *\n * @param unspentOutputs An unfiltered list of available unspent transaction outputs\n *\n * @returns A promise to a list of unspent outputs\n */\nasync function getSuitableUtxos(inputs, amountRequired, bestHeight, feePaidBy, requests, ensureUtxos = [], tokenOperation = \"send\") {\n const suitableUtxos = [...ensureUtxos];\n let amountAvailable = BigInt(0);\n const tokenRequests = requests.filter((val) => val instanceof _wallet_model_js__WEBPACK_IMPORTED_MODULE_12__.TokenSendRequest);\n const availableInputs = inputs.slice();\n // find matching utxos for token transfers\n if (tokenOperation === \"send\") {\n for (const request of tokenRequests) {\n const tokenInputs = availableInputs.filter((val) => val.token?.tokenId === request.tokenId);\n const sameCommitmentTokens = [...suitableUtxos, ...tokenInputs].filter((val) => val.token?.capability === request.capability &&\n val.token?.commitment === request.commitment);\n if (sameCommitmentTokens.length) {\n const input = sameCommitmentTokens[0];\n const index = availableInputs.indexOf(input);\n if (index !== -1) {\n suitableUtxos.push(input);\n availableInputs.splice(index, 1);\n amountAvailable += BigInt(input.satoshis);\n }\n continue;\n }\n if (request.capability === _interface_js__WEBPACK_IMPORTED_MODULE_14__.NFTCapability.minting ||\n request.capability === _interface_js__WEBPACK_IMPORTED_MODULE_14__.NFTCapability.mutable) {\n const changeCommitmentTokens = [\n ...suitableUtxos,\n ...tokenInputs,\n ].filter((val) => val.token?.capability === request.capability);\n if (changeCommitmentTokens.length) {\n const input = changeCommitmentTokens[0];\n const index = availableInputs.indexOf(input);\n if (index !== -1) {\n suitableUtxos.push(input);\n availableInputs.splice(index, 1);\n amountAvailable += BigInt(input.satoshis);\n }\n continue;\n }\n }\n // handle splitting the hybrid (FT+NFT) token into its parts\n if (request.capability === undefined &&\n request.commitment === undefined &&\n [...suitableUtxos, ...tokenInputs]\n .map((val) => val.token?.tokenId)\n .includes(request.tokenId)) {\n continue;\n }\n throw Error(`No suitable token utxos available to send token with id \"${request.tokenId}\", capability \"${request.capability}\", commitment \"${request.commitment}\"`);\n }\n }\n // find plain bch outputs\n for (const u of availableInputs) {\n if (u.token) {\n continue;\n }\n if (u.coinbase && u.height && bestHeight) {\n const age = bestHeight - u.height;\n if (age > 100) {\n suitableUtxos.push(u);\n amountAvailable += BigInt(u.satoshis);\n }\n }\n else {\n suitableUtxos.push(u);\n amountAvailable += BigInt(u.satoshis);\n }\n // if amountRequired is not given, assume it is a max spend request, skip this condition\n if (amountRequired && amountAvailable > amountRequired) {\n break;\n }\n }\n const addEnsured = (suitableUtxos) => {\n return [...ensureUtxos, ...suitableUtxos].filter((val, index, array) => array.findIndex((other) => other.txid === val.txid && other.vout === val.vout) === index);\n };\n // if the fee is split with a feePaidBy option, skip checking change.\n if (feePaidBy && feePaidBy != _wallet_enum_js__WEBPACK_IMPORTED_MODULE_0__.FeePaidByEnum.change) {\n return addEnsured(suitableUtxos);\n }\n // If the amount needed is met, or no amount is given, return\n if (typeof amountRequired === \"undefined\") {\n return addEnsured(suitableUtxos);\n }\n else if (amountAvailable < amountRequired) {\n const e = Error(`Amount required was not met, ${amountRequired} satoshis needed, ${amountAvailable} satoshis available`);\n e[\"data\"] = {\n required: amountRequired,\n available: amountAvailable,\n };\n throw e;\n }\n else {\n return addEnsured(suitableUtxos);\n }\n}\n// model-based imprecise and fast fee estimation\nasync function getFeeAmountSimple({ utxos, sendRequests, relayFeePerByteInSatoshi, slpOutputs, discardChange, }) {\n const inputSizeP2pkh = 148;\n const outputSizeP2pkh = 34;\n const inputTotalSize = utxos.reduce((prev, curr) => prev +\n (curr.token\n ? inputSizeP2pkh +\n 1 +\n 34 +\n Math.round(1 + (curr.token.commitment?.length ?? 0) / 2) +\n (curr.token.amount ? 9 : 0)\n : inputSizeP2pkh), 0);\n const outputSize = (sendRequest) => {\n if (sendRequest.hasOwnProperty(\"unit\")) {\n return outputSizeP2pkh;\n }\n else if (sendRequest.hasOwnProperty(\"tokenId\")) {\n const tokenRequest = sendRequest;\n return (outputSizeP2pkh +\n 1 +\n 34 +\n Math.round(1 + (tokenRequest.commitment?.length ?? 0) / 2) +\n (tokenRequest.amount ? 9 : 0));\n }\n else if (sendRequest.hasOwnProperty(\"buffer\")) {\n return 9 + sendRequest.buffer.length;\n }\n return 0;\n };\n const outputTotalSize = sendRequests.reduce((prev, curr) => prev + outputSize(curr), 0) +\n (discardChange ? 0 : outputSizeP2pkh);\n const slpTotalSize = slpOutputs.reduce((prev, curr) => prev + curr.lockingBytecode.length, 0);\n return ((inputTotalSize + outputTotalSize + slpTotalSize + 16) *\n relayFeePerByteInSatoshi);\n}\n// precise fee estimation\nasync function getFeeAmount({ utxos, sendRequests, privateKey, sourceAddress, relayFeePerByteInSatoshi, slpOutputs, feePaidBy, discardChange, }) {\n // build transaction\n if (utxos) {\n // Build the transaction to get the approximate size\n const { encodedTransaction: draftTransaction } = await buildEncodedTransaction({\n inputs: utxos,\n outputs: sendRequests,\n signingKey: privateKey,\n sourceAddress,\n fee: 0,\n discardChange: discardChange ?? false,\n slpOutputs,\n feePaidBy,\n changeAddress: \"\",\n });\n return draftTransaction.length * relayFeePerByteInSatoshi + 1;\n }\n else {\n throw Error(\"The available inputs in the wallet cannot satisfy this send request\");\n }\n}\n// Build encoded transaction\nasync function buildEncodedTransaction({ inputs, outputs, signingKey, sourceAddress, fee = 0, discardChange = false, slpOutputs = [], feePaidBy = _wallet_enum_js__WEBPACK_IMPORTED_MODULE_0__.FeePaidByEnum.change, changeAddress = \"\", buildUnsigned = false, }) {\n const { transaction, sourceOutputs } = await buildP2pkhNonHdTransaction({\n inputs,\n outputs,\n signingKey,\n sourceAddress,\n fee,\n discardChange,\n slpOutputs,\n feePaidBy,\n changeAddress,\n });\n if (buildUnsigned === true) {\n transaction.inputs.forEach((input) => (input.unlockingBytecode = Uint8Array.from([])));\n }\n return { encodedTransaction: (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__.encodeTransaction)(transaction), sourceOutputs };\n}\nasync function signUnsignedTransaction(transaction, sourceOutputs, signingKey) {\n if (typeof transaction === \"string\") {\n transaction = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_11__.hexToBin)(transaction);\n }\n const decoded = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__.decodeTransaction)(transaction);\n if (typeof decoded === \"string\") {\n throw decoded;\n }\n const template = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.importAuthenticationTemplate)(_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__.authenticationTemplateP2pkhNonHd);\n if (typeof template === \"string\") {\n throw new Error(\"Transaction template error\");\n }\n const compiler = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.authenticationTemplateToCompilerBCH)(template);\n const transactionTemplate = { ...decoded };\n for (const [index, input] of decoded.inputs.entries()) {\n const sourceOutput = sourceOutputs[index];\n transactionTemplate.inputs[index] = {\n ...input,\n unlockingBytecode: {\n compiler,\n data: {\n keys: { privateKeys: { key: signingKey } },\n },\n valueSatoshis: sourceOutput.valueSatoshis,\n script: \"unlock\",\n token: sourceOutput.token,\n },\n };\n }\n const result = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_9__.generateTransaction)(transactionTemplate);\n if (!result.success) {\n throw result.errors;\n }\n return (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_15__.encodeTransaction)(result.transaction);\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });\n\n//# sourceURL=webpack://mainnet-js/./src/transaction/Wif.ts?");
1308
1308
 
1309
1309
  /***/ }),
1310
1310
 
@@ -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_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_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_Connection_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../network/Connection.js */ \"./src/network/Connection.ts\");\n/* harmony import */ var _model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./model.js */ \"./src/wallet/model.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__, _model_js__WEBPACK_IMPORTED_MODULE_4__, _network_Connection_js__WEBPACK_IMPORTED_MODULE_6__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__]);\n([_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__, _model_js__WEBPACK_IMPORTED_MODULE_4__, _network_Connection_js__WEBPACK_IMPORTED_MODULE_6__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n// Implementation of CHIP-BCMR v2.0.0-draft, 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 // helper function to enforce the constraints on the 0th output, decode the BCMR's OP_RETURN data\n // returns resolved AuthChainElement\n static 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 uris: [],\n httpsUrl: \"\",\n };\n }\n const opReturnHex = opReturns[0];\n const chunks = _model_js__WEBPACK_IMPORTED_MODULE_4__.OpReturnData.parseBinary((0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.hexToBin)(opReturnHex));\n if (chunks.length < 2) {\n throw new Error(`Malformed BCMR output: ${opReturnHex}`);\n }\n const result = {\n txHash: hash,\n contentHash: \"\",\n uris: [],\n httpsUrl: \"\",\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.uris = [`ipfs://${ipfsCid}`];\n result.httpsUrl = `https://dweb.link/ipfs/${ipfsCid}`;\n }\n else {\n // URI 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());\n const uris = chunks.slice(2);\n for (const uri of uris) {\n const uriString = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.binToUtf8)(uri);\n result.uris.push(uriString);\n if (result.httpsUrl) {\n continue;\n }\n if (uriString.indexOf(\"ipfs://\") === 0) {\n const ipfsCid = uriString.replace(\"ipfs://\", \"\");\n result.httpsUrl = `https://dweb.link/ipfs/${ipfsCid}`;\n }\n else if (uriString.indexOf(\"https://\") === 0) {\n result.httpsUrl = uriString;\n }\n else if (uriString.indexOf(\"https://\") === -1) {\n result.httpsUrl = uriString;\n // case for domain name specifier, like example.com\n if (uriString.indexOf(\"/\") === -1) {\n const parts = uriString.toLowerCase().split(\".\");\n if (!(parts?.[0]?.indexOf(\"baf\") === 0 && parts?.[1] === \"ipfs\")) {\n result.httpsUrl = `${result.httpsUrl}/.well-known/bitcoin-cash-metadata-registry.json`;\n }\n }\n result.httpsUrl = `https://${result.httpsUrl}`;\n }\n else {\n throw new Error(`Unsupported uri type: ${uriString}`);\n }\n }\n }\n return result;\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 = (await (0,_network_Connection_js__WEBPACK_IMPORTED_MODULE_6__.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 // make authchain element and combine with the rest obtained\n let element;\n try {\n element = BCMR.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.httpsUrl, element.contentHash);\n if (registry.extensions &&\n registry.extensions[\"authchain\"] &&\n Object.keys(registry.extensions[\"authchain\"]).length) {\n const chainTxArray = Object.values(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 }) => BCMR.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 = BCMR.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.httpsUrl.length);\n }\n }\n // return the last chain element (or the only found in an edge case)\n return [...chainBase, element].filter((val) => val.httpsUrl.length);\n }\n /**\n * fetchAuthChainFromChaingraph Fetch the authchain information from a trusted external indexer\n * The authchain in this implementation is specific to resolve to a valid metadata registry\n *\n * @param {string} options.chaingraphUrl (required) URL of a chaingraph indexer instance to fetch info from\n * @param {string} options.transactionHash (required) transaction hash from which to build the auth chain\n * @param {string?} options.network (default=mainnet) network to query the data from, specific to the queried instance, can be mainnet, chipnet, or anything else\n *\n * @returns {AuthChain} returns the resolved authchain\n */\n static async fetchAuthChainFromChaingraph(options) {\n if (!options.chaingraphUrl) {\n throw new Error(\"Provide `chaingraphUrl` param.\");\n }\n if (options.network === undefined) {\n options.network = \"mainnet\";\n }\n const response = await axios__WEBPACK_IMPORTED_MODULE_0___default().post(options.chaingraphUrl, {\n operationName: null,\n variables: {},\n query: `{\n transaction(\n where: {\n hash:{_eq:\"\\\\\\\\x${options.transactionHash}\"},\n block_inclusions:{block:{accepted_by:{node:{name:{_ilike:\"%${options.network}%\"}}}}}\n }\n ) {\n hash\n authchains {\n authchain_length\n migrations(\n where: {\n transaction: {\n outputs: { locking_bytecode_pattern: { _like: \"6a04%\" } }\n }\n }\n ) {\n transaction {\n hash\n inputs(where:{ outpoint_index: { _eq:\"0\" } }){\n outpoint_index\n }\n outputs(where: { locking_bytecode_pattern: { _like: \"6a04%\" } }) {\n output_index\n locking_bytecode\n }\n }\n }\n }\n }\n}`,\n }, {\n responseType: \"json\",\n headers: {\n Accept: \"*/*\",\n \"Content-Type\": \"application/json\",\n },\n });\n const result = [];\n const migrations = response.data.data.transaction[0]?.authchains[0].migrations;\n if (!migrations) {\n return result;\n }\n for (const migration of migrations) {\n const transaction = migration.transaction[0];\n if (!transaction) {\n continue;\n }\n transaction.inputs.forEach((input) => (input.outpointIndex = Number(input.outpoint_index)));\n transaction.outputs.forEach((output) => {\n output.outputIndex = Number(output.output_index);\n output.lockingBytecode = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.hexToBin)(output.locking_bytecode.replace(\"\\\\x\", \"\"));\n });\n const txHash = transaction.hash.replace(\"\\\\x\", \"\");\n result.push(BCMR.makeAuthChainElement(transaction, txHash));\n }\n return result.filter(element => element.contentHash.length && element.httpsUrl.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].httpsUrl);\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 const history = registry.identities?.[tokenId];\n if (!history) {\n continue;\n }\n const latestIdentityIndex = Object.keys(history)[0];\n if (latestIdentityIndex === undefined) {\n continue;\n }\n return history[latestIdentityIndex];\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_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_Connection_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../network/Connection.js */ \"./src/network/Connection.ts\");\n/* harmony import */ var _model_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./model.js */ \"./src/wallet/model.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__, _model_js__WEBPACK_IMPORTED_MODULE_4__, _network_Connection_js__WEBPACK_IMPORTED_MODULE_6__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__]);\n([_bitauth_libauth__WEBPACK_IMPORTED_MODULE_2__, _model_js__WEBPACK_IMPORTED_MODULE_4__, _network_Connection_js__WEBPACK_IMPORTED_MODULE_6__, _bitauth_libauth__WEBPACK_IMPORTED_MODULE_7__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n// Implementation of CHIP-BCMR v2.0.0-draft, 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 // helper function to enforce the constraints on the 0th output, decode the BCMR's OP_RETURN data\n // returns resolved AuthChainElement\n static 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 uris: [],\n httpsUrl: \"\",\n };\n }\n const opReturnHex = opReturns[0];\n const chunks = _model_js__WEBPACK_IMPORTED_MODULE_4__.OpReturnData.parseBinary((0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.hexToBin)(opReturnHex));\n if (chunks.length < 2) {\n throw new Error(`Malformed BCMR output: ${opReturnHex}`);\n }\n const result = {\n txHash: hash,\n contentHash: \"\",\n uris: [],\n httpsUrl: \"\",\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.uris = [`ipfs://${ipfsCid}`];\n result.httpsUrl = `https://dweb.link/ipfs/${ipfsCid}`;\n }\n else {\n // URI 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());\n const uris = chunks.slice(2);\n for (const uri of uris) {\n const uriString = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_3__.binToUtf8)(uri);\n result.uris.push(uriString);\n if (result.httpsUrl) {\n continue;\n }\n if (uriString.indexOf(\"ipfs://\") === 0) {\n const ipfsCid = uriString.replace(\"ipfs://\", \"\");\n result.httpsUrl = `https://dweb.link/ipfs/${ipfsCid}`;\n }\n else if (uriString.indexOf(\"https://\") === 0) {\n result.httpsUrl = uriString;\n }\n else if (uriString.indexOf(\"https://\") === -1) {\n result.httpsUrl = uriString;\n // case for domain name specifier, like example.com\n if (uriString.indexOf(\"/\") === -1) {\n const parts = uriString.toLowerCase().split(\".\");\n if (!(parts?.[0]?.indexOf(\"baf\") === 0 && parts?.[1] === \"ipfs\")) {\n result.httpsUrl = `${result.httpsUrl}/.well-known/bitcoin-cash-metadata-registry.json`;\n }\n }\n result.httpsUrl = `https://${result.httpsUrl}`;\n }\n else {\n throw new Error(`Unsupported uri type: ${uriString}`);\n }\n }\n }\n return result;\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 = (await (0,_network_Connection_js__WEBPACK_IMPORTED_MODULE_6__.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 // make authchain element and combine with the rest obtained\n let element;\n try {\n element = BCMR.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.httpsUrl, element.contentHash);\n if (registry.extensions &&\n registry.extensions[\"authchain\"] &&\n Object.keys(registry.extensions[\"authchain\"]).length) {\n const chainTxArray = Object.values(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 }) => BCMR.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 = BCMR.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.httpsUrl.length);\n }\n }\n // return the last chain element (or the only found in an edge case)\n return [...chainBase, element].filter((val) => val.httpsUrl.length);\n }\n /**\n * fetchAuthChainFromChaingraph Fetch the authchain information from a trusted external indexer\n * The authchain in this implementation is specific to resolve to a valid metadata registry\n *\n * @param {string} options.chaingraphUrl (required) URL of a chaingraph indexer instance to fetch info from\n * @param {string} options.transactionHash (required) transaction hash from which to build the auth chain\n * @param {string?} options.network (default=mainnet) network to query the data from, specific to the queried instance, can be mainnet, chipnet, or anything else\n *\n * @returns {AuthChain} returns the resolved authchain\n */\n static async fetchAuthChainFromChaingraph(options) {\n if (!options.chaingraphUrl) {\n throw new Error(\"Provide `chaingraphUrl` param.\");\n }\n if (options.network === undefined) {\n options.network = \"mainnet\";\n }\n const response = await axios__WEBPACK_IMPORTED_MODULE_0___default().post(options.chaingraphUrl, {\n operationName: null,\n variables: {},\n query: `{\n transaction(\n where: {\n hash:{_eq:\"\\\\\\\\x${options.transactionHash}\"},\n node_validation_timeline:{node:{name:{_ilike:\"%${options.network}%\"}}}\n }\n ) {\n hash\n authchains {\n authchain_length\n migrations(\n where: {\n transaction: {\n outputs: { locking_bytecode_pattern: { _like: \"6a04%\" } }\n }\n }\n ) {\n transaction {\n hash\n inputs(where:{ outpoint_index: { _eq:\"0\" } }){\n outpoint_index\n }\n outputs(where: { locking_bytecode_pattern: { _like: \"6a04%\" } }) {\n output_index\n locking_bytecode\n }\n }\n }\n }\n }\n}`,\n }, {\n responseType: \"json\",\n headers: {\n Accept: \"*/*\",\n \"Content-Type\": \"application/json\",\n },\n });\n const result = [];\n const migrations = response.data.data.transaction[0]?.authchains[0].migrations;\n if (!migrations) {\n return result;\n }\n for (const migration of migrations) {\n const transaction = migration.transaction[0];\n if (!transaction) {\n continue;\n }\n transaction.inputs.forEach((input) => (input.outpointIndex = Number(input.outpoint_index)));\n transaction.outputs.forEach((output) => {\n output.outputIndex = Number(output.output_index);\n output.lockingBytecode = (0,_bitauth_libauth__WEBPACK_IMPORTED_MODULE_1__.hexToBin)(output.locking_bytecode.replace(\"\\\\x\", \"\"));\n });\n const txHash = transaction.hash.replace(\"\\\\x\", \"\");\n result.push(BCMR.makeAuthChainElement(transaction, txHash));\n }\n return result.filter((element) => element.contentHash.length && element.httpsUrl.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].httpsUrl);\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 const history = registry.identities?.[tokenId];\n if (!history) {\n continue;\n }\n const latestIdentityIndex = Object.keys(history)[0];\n if (latestIdentityIndex === undefined) {\n continue;\n }\n return history[latestIdentityIndex];\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
 
@@ -1 +1 @@
1
- {"version":3,"file":"Wif.d.ts","sourceRoot":"","sources":["../../../src/transaction/Wif.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,QAAQ,EAIR,wBAAwB,EACxB,gCAAgC,EAChC,qBAAqB,EACrB,MAAM,EAMP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAyB,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAI/D,OAAO,EACL,YAAY,EACZ,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,wBAAsB,0BAA0B,CAAC,EAC/C,MAAM,EACN,OAAO,EACP,UAAU,EACV,aAAa,EACb,GAAO,EACP,aAAqB,EACrB,UAAe,EACf,SAAgC,EAChC,aAAkB,GACnB,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC,WAAW,GAAG,gBAAgB,GAAG,YAAY,CAAC,CAAC;IAC9D,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,OAAO,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EACxB,UAAU,EACV,SAAS,EACT,aAAa,GACd,EAAE;IACD,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,YAAY,EAAE,KAAK,CAAC,WAAW,GAAG,gBAAgB,GAAG,YAAY,CAAC,CAAC;IACnE,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,wBAAwB,EAAE,MAAM,CAAC;IACjC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,aAAa,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,mBAuBA;AAGD,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,OAAO,EACP,UAAU,EACV,aAAa,EACb,GAAO,EACP,aAAqB,EACrB,UAAe,EACf,SAAgC,EAChC,aAAkB,EAClB,aAAqB,GACtB,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC,WAAW,GAAG,gBAAgB,GAAG,YAAY,CAAC,CAAC;IAC9D,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;;;GAoBA;AAED,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,UAAU,GAAG,MAAM,EAChC,aAAa,EAAE,YAAY,EAAE,EAC7B,UAAU,EAAE,UAAU,GACrB,OAAO,CAAC,UAAU,CAAC,CA2CrB"}
@@ -52,7 +52,6 @@ export async function buildP2pkhNonHdTransaction({ inputs, outputs, signingKey,
52
52
  if (!result.success) {
53
53
  throw Error("Error building transaction with fee");
54
54
  }
55
- // console.log(stringify(result.transaction), stringify(sourceOutputs))
56
55
  const tokenValidationResult = verifyTransactionTokens(result.transaction, sourceOutputs);
57
56
  if (tokenValidationResult !== true && fee > 0) {
58
57
  throw tokenValidationResult;
@@ -233,10 +232,17 @@ export async function getSuitableUtxos(inputs, amountRequired, bestHeight, feePa
233
232
  continue;
234
233
  }
235
234
  }
235
+ // handle splitting the hybrid (FT+NFT) token into its parts
236
+ if (request.capability === undefined &&
237
+ request.commitment === undefined &&
238
+ [...suitableUtxos, ...tokenInputs]
239
+ .map((val) => val.token?.tokenId)
240
+ .includes(request.tokenId)) {
241
+ continue;
242
+ }
236
243
  throw Error(`No suitable token utxos available to send token with id "${request.tokenId}", capability "${request.capability}", commitment "${request.commitment}"`);
237
244
  }
238
245
  }
239
- // console.log(suitableUtxos)
240
246
  // find plain bch outputs
241
247
  for (const u of availableInputs) {
242
248
  if (u.token) {
@@ -1 +1 @@
1
- {"version":3,"file":"Wif.js","sourceRoot":"","sources":["../../../src/transaction/Wif.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,mCAAmC,EACnC,4BAA4B,EAE5B,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAK5B,QAAQ,EACR,uBAAuB,EACvB,iBAAiB,GAGlB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAiB,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,YAAY,EAIZ,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,kEAAkE;AAClE,MA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C,GAAG,OAAO,CAAC,SAAS,CAAC;IAwBtB;;;;;;OAMG;WACW,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;CAgB1E"}
@@ -312,7 +312,7 @@ export class BCMR {
312
312
  transaction(
313
313
  where: {
314
314
  hash:{_eq:"\\\\x${options.transactionHash}"},
315
- block_inclusions:{block:{accepted_by:{node:{name:{_ilike:"%${options.network}%"}}}}}
315
+ node_validation_timeline:{node:{name:{_ilike:"%${options.network}%"}}}
316
316
  }
317
317
  ) {
318
318
  hash
@@ -364,7 +364,7 @@ export class BCMR {
364
364
  const txHash = transaction.hash.replace("\\x", "");
365
365
  result.push(BCMR.makeAuthChainElement(transaction, txHash));
366
366
  }
367
- return result.filter(element => element.contentHash.length && element.httpsUrl.length);
367
+ return result.filter((element) => element.contentHash.length && element.httpsUrl.length);
368
368
  }
369
369
  /**
370
370
  * addMetadataRegistryAuthChain Add BCMR metadata registry by resolving an authchain
@@ -1 +1 @@
1
- {"version":3,"file":"Bcmr.js","sourceRoot":"","sources":["../../../src/wallet/Bcmr.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,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;AAI/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAW1C,0FAA0F;AAC1F,MAAM,OAAO,IAAI;IAIR,MAAM,CAAC,aAAa;QACzB,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,eAAe;QAC3B,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAC;IAC/B,CAAC;IAED;;;;;;;;;OASG;IACI,MAAM,CAAC,KAAK,C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CAAC;YACpD,IAAI,mBAAmB,KAAK,SAAS,EAAE;gBACrC,SAAS;aACV;YAED,OAAO,OAAO,CAAC,mBAAmB,CAAC,CAAC;SACrC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;;AAphBD,6BAA6B;AACf,uBAAkB,GAAe,EAAE,CAAC"}
@@ -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-v2.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","f9f790e57d3e54a951f58ef7847a0761433c8fc020ba56181e0a0b1cb3edfac3","9d7c06936c2b731734059e575cf7930aa028487722593fb176f4d64de9fdfb8c","5afea36bfebe56bd19e43900b94fda8c5ac31409de197832ae006c0120d54122","5dd455bedf7b5f7a5d8ccc17323761ac73ab5a93a7af0a595297b90c33bd9d8e","95ab2fe99faa3e25ff8eb9408451730506d4686dce877a96db073f62f9368932","685f0aa21c1d14d184fbaf5327c390c465d26a0a08e64975764f2b073601bd76","9a18b997370e8442ed2fe2e7e60180f21d2a3e46e45f443784709eec8284f2e4","31ed1f61639da39a41255b3608ebada3c6101ae1bd07ecf67d61605bab1c2c7f","3c863e6ccce69483eedb3d505701a957c51af40859c7b19a4558836b1321a892","a3cc420b6dbdfc0245da4e0d837c339c3f9b6bed2efaa2e26dd8bbe4060cef41","6857d9f06f38c5a8d5bf2a0e8326b978b4876031a3c1f47665876c3daa94522d","a240ea9a3333d3630ce06bf128d796a233df1147bb3cbda86a2b74a584e7f6ea","4419778f6c54c431a8156c7de194ebb9e0876709a8cfc12d40502b0dd1019244","3c2e9fd191f39682dd1c5a8bf30ea2e639a12dcda5ef0f57f05c84f17a88bc4e","39541b2c269eff86c2792b6ca162e6fdc861d388e7d3d19f7831d9179c362d7c","20a4eb5bc4d45e0f1e5a0f40da4da7a850cb87098be0e65ea09313f9f38ca495","36b664ce956bec5150c15ea3763a4a5b0af8c305a10ec7a45d584885280cc893","34e612720139dfd4e4529140bb1fd41ac57dfeb9ac0760857d765211498729dd","f4123d3203f9caa925d3068da188cc867cafe29d4660456a9f322833fa0c80a2","ada1dc76e297e7fee41eb083b3a60fb54bd7e729ed68732a6ce5d0e88140dae1","b3876d5830d84c781ac4a7482c06887cfd90c3409af82fc29ec20375d38fb217","874f6101540444f6cb89a7d7447f664ee7c42f50e790ec1432cbbc14fd56159e","e3dd6f5b25d26f229efb106789189628ec8186cc28e3d58783426e18baff9c53","4fbc35a02a0687614b042fa52a46ac1ae7c1bfce68f0aaaad8b5a76a7777edf5","66fc3f87542bc556b590a4f4177c22490c117fc96eab69bda2e9e0c445eb5cc2","1293901b689c514fafaf7f9ff9eff109b25f32fdbf64bc7fe8da561d473d2091","bc82f26edea61e61473470eb7cbbe76b815cc27dcc6aa1b6d3fad86add81fc17","9b45c8fb886e1feee2bee6ff97b84bd10cda89f2b8cff54d27cda826d3609a72","9b15c2754d92c35fc53e42ba771e32b2038d8d72408f4704c8daab757043e4dc","294e7339aaee5e008a3e892318487b1970ceee107c1cd68a0f81533369b1430d","584a7cabf27eef35ca78f5c66e9606440faafdef157eec243c6c672f808dce00","a7920efa08217d3175420b88117e78fb8f2dfb1de498b3ec294048861675e07b","0aec829b11c3834d2fb9245945eb5549446f8e1c1ae94b0ab167e44bd7d438e4","15ac5424c6183bd167314972be53111b50fa3945c6f004ecae5aef42d1e03d76","428565fe14b2bb1e0780087739e6a568b102e449da66c2ba4ae8fb6293e7f06c","ea08b8cd81c90c218ba3f04cdb2e7c87ee8c427b4c544911095a9304dc5e9f52","e0713f909b03190f011a3d4266e7bdf0f313d6e5fc600d95638083380139663d","f7bdf7751b647cb56d24e19b46540812deb89163f43434d6b842377e1ba15279","0708c284b3603bfe7f7946709a8b62f1b81d987b7e301fd8fc5312d8d085abab","6f34c20edf7ec48f4db7cf4417d06e6a8f712ed7f38386c6b9c8243e5aecc4d0","aa1c6664820510d6009e5172f2c9b013f8d1c9bd94796eb66d5553c5ddfaeb1f","07b0c184ae96b59f4126a3ef4eced70ccb5462090c6a123921227b8fb7c1d2e0","5e6a8186fc4d3d31fb0c1ca5087e846378d3302f5905a8ccc2ab243ffa10f94b","5d08773a7f13c36508ce760c3517a8afab5c5a5f551ca39ad41683930bfda66c","9577c23d43c81fe2e66373ee377b5ed32e10f2774653dc2384c4cbc7ce329982","e312e6add715ec2e97e938409478d9017d6c91f4487ce6e4aa2709e60f67cd95","f1909b1623b22940bbb7be98cbfac6d24a34d0c510dde3df5564404064e3e7fd","02c03fc5fc14f75802bd70c8297d1e4a6f18dbcc02a1699591c9e4c0135c5de0","5a86e2cbfe51de88bdf32cebe82aa0ed049f6edba3a2c757312cab3c37f29ade","c2a227bd507cac7fdbdb2f5375e3b05f6f28f7e247244c52c81229942d5989aa","28aa20795a164add6b9e7443535f34939ea1e9c27719bfa0db96225881d47bbc","9e334139506c8742da707999ab4c169d4f04085288700d28419c439f38342ae1","680cbca33c1438c1f5de005564302ef57d679b54303d794663dceb180be4a0f0","2877475d53a76cf91e2336f8347a8fb00c9d1eac85a059058c5b027d74822960","f871d624e9cec46e63399c74deb15c183c50390d1e9755130717fef36396bf2d","6850411b8d4bf4c5f950fc182f17a58ebeea0173d0395591761b40904006c788","be150501ccabade2b0280d5be03c766f39381e51d5739e04f5656df4080e8487","fa81e6ab7fc27f43789b878e4bab158e12ff31748d6652724ef09e3053815c69","71f0af94667eb3d33e61a5f7e8d20c8259158871ba332ed370421c867fc8d64c","929cd9e3bae21fddffa7c5b813561e18ec6f3e88c02fa750313e709a7201ebc2","afd6e503a3873ec9c12e57ef614f3a87d57bd88301247498c45afd992a4b7b98","5e9004c2aba118299bcc17d5d115044512faa9bd814417e3239e8b53f83ff5d3","f67509d8eac18dd03a6598a9b428dcd09ef04487b31dd8226b5b2ba67588205c","387ba24cca9932007dfa86415d59e2ffc6ff6a35d5e0e1cde27f1ad01b91b9bf","7d24e31d9b3cb94992a45d71918940cfc0f04e1aab36acff1f1e88d825e95f45","29c97e978dd0682439d4109094dff72ec8707906786343f6ba6f6f82f9260f75","d2dec72e158cf166711a3009180d25ad363fe4cad0178020098aa5e08c4842e7","5e3f8d4b99733c1365ad9f07ba62f7604e6ede0bf94632e1710590fbf5503d0f","f5d8843fd8c6d4aacea9792e8c0ffb47e82c81523b65690fb7a21a76c19a2ae9","339f71322345c9caf86730e90e74a9cc865134cced1d9954b1ff7fbe0da98639","5929ad11c6a01e61924e690bc5da6030e6568e6a9afa22d2e3e9ffd6e5ff5da1","9fdbb2de7d996d633c1e8b15e81598cc03b78d189c502f508405e01065d150b2","76278ca7d48a20284bb7d2852ed2afbe46b47e621d51703499f9934193aacfd4","7560b7502c10ebdf0d07ae7f83567a25f0e18501541a761f5456039a75fdca34","a6d5464c400860c746d59538eeac8aba030bd286a30382cb35ffa180bb45360b","882c65b85e101318cb241a04d9f6098f40f81f60969dc23ed43eca93aa208756","9b9ab0f61e1a9d1544cce8f6a898a67fcb398e7a2916c8f7bff196aeacaa42a1","70c76a6057c1bc0bba81bbfe37dd4bfb5d3ec470779543cf4265bacc8bc34fde","7f45c53d713e44a39ce9715516a742401ec67ca64d28e89800a1087b413bea11","fce8fdfd2fad64fd92d00849d61517872d7ffe130683216530ed80aa87c0d4ed","9d04be61d449837d03f2f2c6cb45862e01ecf27f2d9e9e649381923ec2ef183d","e7ef7f20139a8e1107206b6ebca0aeaf5afc106fdcd3320f72d8fa1aa6b8b376","6e30db287568ec99d3f9a9f13a250b8713c08f7e80258b00525118983f75b0a4","d1b9f9d3112a2a61002f35217328c4f9d8c855c97a7bffb3c07064e5d75bcdb2","d92b44ee50805ae18826ccbb6626a8956d1ad4030776e9d8d6665ac4b25594c2","9dbb17d8dd416cd59de116f60c92da5cd5a330657e4b1288ae1667f64ac976ed","c383e01b0a485533eacc2ece74da9806d24c2b04d3a78c0e88bbc170a26e948b","1ae78536a74e399118a613e2733285b11dc319385b205b91be0a2e3191fe2254","84f19808fafe26e154c513ae796980485e314327069d04239b4e3241adf5ff97","17f12aca109be03c5bdf67e1c7071c0ca86066806f373efe1706a6fbc760b705","fbbe6400d3c632bd8ec78c6c2e52f9f12a5730f1239850360b57c437af85efce","b84133cb67d1fef4258fb16730f559491d5d461a9846179f064b976eca2450f9","a4f479167a2b60f44d277e0e95ac7406391a32871d452c952963833288161e34","8db5ba8ae3754a488df8a62b76c8eade022c7931b4603f21f8691a7aa44e08cb","ae4ab429f512d21fb3ed429b3ca544a3568790f24a5450a9e1533b1b610ef26e","d3fda3824d4c8d8d37be73e0429c11a3521739a542b075ed44adb322fddcd7a6","811bf83a1de5e46170eab4fae912a4d33cc7a4f783a20b1e28d4c82bb75de9b7","0783408c38ff652538a7a6dd5a86121b88412589375480fa572d042c17ae0186","4dbbe40419e9749d380d28e2f25a1f806c5a7a405aa0308a178d750464b79dd7","9ff98cf113c2e37f217778541e2fdb9c2be84388a1d270eaa902c9aae61d7212","7e547303b50679bb7c97614c0040f2996d4e201b1e9ad7f19e10c0b59fc81c49","e50a6ce0708ba6bbe0907c3604aa1b461dbfc4f1960f7d29b7c3f6dbb7ecfa38","77e86cbec6fbdbc4c06163499aa24b76925613a174600cd0e14744712c1ffa71","beac06589b709b31baeaeb90f771868216b57549407a4a71abc1d858bc7ed9d8","de02780fe1506e22f50235523d193dea6689d947a356433eca7df4f4356d4476","33f9ba19058820c381b3ee185014b0014f73c692e00615afce686084af7195c6","8e1b0ebe06b33c85e728f3efa21804bfe177b25446da845c7ba2c91990e50ba4","91d0e80aae82040fc4d320d415f7118cc304bfd4e81fc20cd435921bd12913d0","bc492678c5eaa9363984d6c66b787720ced87d01882c702b040ce5b58cfc325f","84f688f194236138f32c258dc6fa571dbeeb80d5b0fce573fd91e325b13e846e","9f1fe22bca3d154b2eeb89900eeb6e35106e15a6e2bf53cd1fb00c024c002324","30c0316a4f23ab0b7f58fc049117d2ab4cc34e1d5b716ec13819a6d6e6537fb4","c6b147e0c606a69c2ca70917679f98e4cd2f52762c183a12c70d146f2c20a873","e9d90b998bf4224d53354910a8b649b26d96fdde74bfd860da416d6cc0a47afd","3d5839dcc56fa931ef88d454b74e117800c8b9e6c70dd5ccf61dd0dcb76fb187","d88cf5d04730fed67895c3aa49431184a184391a969cca50417edc68c37bd348","b2cfcb267f3ad6d48aa0b9c7a1146f63984f5ea1cd8dd63527eaf1738c713fca","45c971b451ed5d9aa8d2bb3cf052e74f1d5af0e644aa419d46008e2909c1c1d8","dbdcd6590670ad0392ddcdb9ddcd53eb9e3e4c5db174e6a03355609e29ea690e","5f439f9b428b4819042db3c9cd2ebc1d01227821c75c0d8416456781635996d5","89a092a002b46691edb0ac7b0d2785a1f2536547a98b06805a0ea8f7149e192c","3e827bec7f0ff866a5ea09daaa116c115157cdc536a24e698f190de52e322c93","c0c81406c104bf1aecd935b2947171b283ff3b153d539193b3151d54ecbed1b2","ffeebf5bab849797873e4a1e203f15c8a9ca1ef9ffff26b9cd7441d4ea19041c","490e36ecada1b2924a08a79137a30a4180ba888a4ad0099e0525ca80dd5c3502","63ed116bb4b5070309de7daa1a3b111d4ea67e485258ed82806130e59df74421","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","9d637b02a5fef99276d516c55aec98547f133d41eaf36e9b0375f196a633fcfd","40871fe15e2ecf88714da0847588959d7049d34709a5c4f9f2584d8cdbda2874","2e3778314a396a2943ca5fcb1a2ada99127991eae68a3d6e054580f6e71f5f97","664cbd952ca1c58c4584b8b20069089f6f008549cadd392a8acf817ad595196a","f5eb32a9fe8d26a29e8005ab0f4a6ed57d890acb6c5c4d315a984d661a59acaa","f55f979f31920b252a9f472183e724c372465284eda5593f3ff979f7e781a9c7","ca83a3200101528e59cc12cf22abe8eb9cf2a3b5bafa9a7bf8606562816d20df","94b86c9db78a81e040d2dafc1f7a8c3b9e70a24c222a845371fb1baa9eb132c6","12e2539f8424434d58f2019bba168ee6115d7e8e78327b750d32637d3c7d2ead","ff570d0aaf44186d578288e50131a0c23714fe2f6ff89cba6e67c3b6e453f20f","367ab90a74f5c19abff93dfee24d933cb672c0d875e4ac95708703871be5707f","e4c43c426ccdaf649d1e7a7420781df4fd39bdaa4eb3d41672974d9a693683d2","07319d086eb114973ae76560b021df33c2b4d7dfde77867a29836ac7619768d0","ea38212c34e9ef0d803a4629c30d3808f984dbb8c8da792ec9dfc4cb4da07e46","5724c8addc06acba94bd88c1091ca37ad28cbb4362ba37ccd9f1835375c067b7","f382b47fc400a4f75c52fcefd6fb393c6f3fc85249bb87fd5678b01812d098f1","11c97f2e856596a67d789fc11e7edde7efbca3dfeb040543c3a52d4b12a5b258","a02e23dbe281ff7810e9e24bd3bf554aa69ac685f4893538bc6d01063bf444d1","5337bd9cee8222598bab8f01a140dcd030d567da487fb6418b849fb2455cfc25","3c0e17e33d3a5b3d2d74140c6b7f2a3d0d138d6b7579f22fb2761a2473b2d41c","e7fab6d439052b5d5eaa0d9baff3a278cb827f99974d11f8ddb44d534ec8dd02","535c495248be283cce05bff71f4ebecc3c712ca7d4ef6735b143426b333e8083","1376fcb20905de176bd02c73f5fdd6dc0366d36d60725eec51273b30df79792c","19c2bc5072ded03c0e230bbf1560ffdb38ccde0ff19e640ba6ae9d4a067dec81","65d024d0983f35187ad678059a2815d98e4ba112575b597b0b4ee4b58a83fcb7","4897607f6544b9aba89c61ec30d0ff3b5089f082363034854c5acac847f8313a","992a7cc898964f2a4108222528adedc5473820c0d64fbda3a1c9aeb21a03d809","919f2cfcc5ffb092f09f8808b61d052b24a0a8548a5c07b4de8b5c492cf6ccc7","9db9500b8569d1dd236678d71d809da09dbcda9b0ed22c6d741d95e1c784a93e","2ff811272892562199dd2111cbcd09ca3cb4e87b836235ec9a1c51efadc47c89","ca29c120c816120222d7561cd221c6aad4af304cf06e234bc16a6ea59022878c","1d6800aeb28b8beac0b5f3fef6a481574d71919ecdb7075af52f88e1e28f9b71","2484a6663d205139c1b6728ac74d92ca0fa1414c9a0fdacacfd3e6db90b8074c","b1bc5de7541676647dddd5b2e755433d427d98f6ab72edb784b4e0109c72253e","91cb0617f031ad5c4969e49e011faa29f811f3656978632f5987d7e263ffed7b","b13986569a88ac17de80fc1ffa0860d0636051e91733437140bf399d56b26047","0d40cf3f6a3b799381e8e2aed00a6e8451e4b8e553e3f2b2415b4625c47ba9c3","22738c10c5a0c76db18caef6741ef17031642fd6a46f02989f5116dcea307f9e","6cf703a66860b2f1a58044937d9d59cf6c18551f56795d2f0b68a8f1da0f241b","bbf28aac6fc307a3925db448f87dc5e8d85b4806d9cead36f8776d77afa0b00f","fb724c133584a056c6d715ce5275bfa294e2378c8bacc28e9ecac1acd5e73717","3c681eacf1fbea01429d3c78f93dda4954109d3300b19a11c343f3583e607fb9","61d5ceb43470315ebaccc58a015eaf09754ea24459ce403a090ac64d3a00d941","3af0990420f89ab85b4bccff233385bf66fd1eb01bf691dfe31372c92a9f39c2","f47b4cdbc1b015d98faf30af8e746327bb9e5f1efa2f707eb070adb483314bfd","97ca28b5c460096532d75a9ce804407b96690b160fcda292fd662025d7484ef5","04ac11c12401bcc89f5ff15c93d5c6f9d38418d2cd6826e3a5aab9fa871ba6ad","d036f28759fdaacdf83649323db2a672d3649189e2f30f0a157606e96bad9787","2db56aa2c1cc6a1f505922bdfad8bdb849d52c89eb0bfb8294dc5642fb3da17f","fc64e90a1bf8ee888757014d44bdc1d3d5349a15f7ef1edfe3644e61d88762f6","f7a76e04d55272e70d5e4aa916062f943870ac3253d495e1bfc3fd8bf2678769","90b61375a9a95ee8016174c9f2400c89734c347afb27f8670650d84cad9df271","2677345388f45180cbbc4e1570912d9c14cb7e0215ee5fbe12c15eaf268b332d","12aa9c803cd79a739aa663156f39131869a41388bf253e3b51f0f61f98a07663","be92647dfc052cf320b5ac0bf79ac1df11c0b77cc6f0b1bf5be7dce314a7db68","ea4f5a4451505cad589168e6a31fa0fe6f5cff894cea623c531cd2dece0a4776","1a159891a2340adfb2c31ed2fc626212feb08f10a57b1b2238f3c24f06e7a3b8","de22edac9c79912b02eff335d6c5fb68089f39b5f45f250ce378498419a9ac05","72248dba3ea2651f7b649ed7bec0b2301fc543fd49e2f6a96f81f3af74bf9312","615b531858d1adbbf76c5509607b3330ff42aa51a4967a3dd318b885f39e3354","8a20e1c333c6bc8a051a6408d5e24684383a8fa89f832f0475d12070220f8023","d5ace6192178d45de42affa439c12585d4fe6aa51ec198da3261d64ce7f6897d","fc9c075827b48e02faa76886d02294f5c81446872aa715cb246c31180896914c","030e1fcbaf536940f6facf8677ff38f729b5574cfa6ebfcd6d354054ffd104af","889b4beefc59797c39dd56afbd7a441c95a55d64ada2640ed7537ffff93c3d43","e86e0e2b983a550a2d01cf9bd788a1cb4013704a2c9d44fa6a92753fe68da24d","a4ff82e54647b1ef4f6cc7faf389469b63d39acc9110de02335507211064881b","c340b3d2b89e11d45944896444a83992fe9612eb3f9b66d26ce4d94b6fafbd3c","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":[[168,216],[41,42,43,44,216],[41,43,168,216],[46,47,49,50,51,52,216],[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,346,349],[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],[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,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,298,306,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,287,306,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,284,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":[[169,1],[45,2],[41,1],[42,1],[43,1],[44,3],[53,4],[46,5],[47,5],[48,5],[49,6],[50,5],[51,5],[52,5],[94,7],[95,5],[96,7],[97,7],[93,1],[98,1],[104,8],[100,1],[99,7],[101,1],[102,9],[103,5],[54,1],[63,10],[60,11],[61,1],[58,1],[59,5],[62,1],[55,1],[56,1],[57,1],[64,5],[65,5],[66,5],[67,5],[75,12],[68,5],[69,5],[70,1],[71,5],[72,5],[73,5],[74,5],[76,1],[77,5],[79,13],[78,1],[80,1],[82,1],[81,1],[86,14],[83,1],[84,1],[85,15],[168,16],[90,17],[87,1],[89,18],[88,1],[91,1],[92,19],[105,1],[106,20],[116,5],[117,5],[118,1],[119,5],[120,1],[121,21],[122,22],[124,23],[125,1],[126,5],[127,5],[128,1],[129,5],[130,1],[131,21],[132,24],[134,25],[135,5],[136,5],[137,1],[156,26],[157,5],[133,1],[158,27],[159,28],[160,5],[161,5],[162,1],[163,29],[138,1],[139,1],[141,30],[142,1],[155,31],[140,23],[143,1],[144,5],[145,1],[146,1],[147,1],[148,32],[149,5],[150,1],[151,1],[152,30],[123,1],[153,1],[154,1],[164,33],[114,5],[107,5],[108,1],[109,5],[110,5],[113,21],[115,34],[111,1],[112,1],[165,35],[166,1],[167,36],[350,37],[342,5],[345,38],[344,5],[343,5],[349,39],[347,40],[348,41],[346,42],[170,43],[171,43],[173,44],[174,45],[175,46],[176,47],[177,48],[178,49],[179,50],[180,51],[181,52],[182,53],[183,53],[185,54],[184,55],[186,54],[187,56],[188,57],[172,58],[222,5],[189,59],[190,60],[191,61],[223,62],[192,63],[193,64],[194,65],[195,66],[196,67],[197,68],[198,69],[199,70],[200,71],[201,72],[202,72],[203,73],[204,74],[206,75],[205,76],[207,77],[208,78],[209,5],[210,79],[211,80],[212,81],[213,82],[214,83],[215,84],[216,85],[217,86],[218,87],[219,88],[220,89],[221,90],[245,5],[244,91],[257,92],[260,93],[259,5],[262,94],[261,5],[265,5],[266,95],[264,96],[263,96],[233,5],[236,5],[246,5],[224,5],[225,97],[229,5],[267,98],[258,99],[243,100],[240,101],[242,102],[241,101],[239,5],[300,103],[8,5],[10,5],[9,5],[2,5],[11,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[3,5],[4,5],[22,5],[19,5],[20,5],[21,5],[23,5],[24,5],[25,5],[5,5],[26,5],[27,5],[28,5],[29,5],[6,5],[30,5],[31,5],[32,5],[33,5],[7,5],[38,5],[34,5],[35,5],[36,5],[37,5],[1,5],[39,5],[40,5],[332,104],[284,5],[270,5],[271,105],[232,106],[276,107],[231,108],[277,109],[281,110],[230,5],[238,108],[226,111],[327,112],[326,113],[340,114],[227,111],[339,111],[325,115],[323,5],[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,5],[272,130],[253,131],[252,132],[248,5],[301,133],[249,134],[254,135],[247,136],[337,137],[336,5],[292,138],[288,139],[289,140],[293,141],[274,142],[250,111],[237,143],[333,144],[296,111],[294,113],[308,145],[302,5],[286,146],[341,111],[309,147],[295,111],[251,144],[269,5],[310,146],[228,5],[311,148],[314,111],[285,111],[316,149],[322,150],[313,5],[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,5],[331,158],[278,5],[280,159],[287,160],[234,161],[275,162],[256,163],[255,164],[338,165],[235,5]],"exportedModulesMap":[[169,1],[45,2],[41,1],[42,1],[43,1],[44,3],[53,4],[46,5],[47,5],[48,5],[49,6],[50,5],[51,5],[52,5],[94,7],[95,5],[96,7],[97,7],[93,1],[98,1],[104,8],[100,1],[99,7],[101,1],[102,9],[103,5],[54,1],[63,10],[60,11],[61,1],[58,1],[59,5],[62,1],[55,1],[56,1],[57,1],[64,5],[65,5],[66,5],[67,5],[75,12],[68,5],[69,5],[70,1],[71,5],[72,5],[73,5],[74,5],[76,1],[77,5],[79,13],[78,1],[80,1],[82,1],[81,1],[86,14],[83,1],[84,1],[85,15],[168,16],[90,17],[87,1],[89,18],[88,1],[91,1],[92,19],[105,1],[106,20],[116,5],[117,5],[118,1],[119,5],[120,1],[121,21],[122,22],[124,23],[125,1],[126,5],[127,5],[128,1],[129,5],[130,1],[131,21],[132,24],[134,25],[135,5],[136,5],[137,1],[156,26],[157,5],[133,1],[158,27],[159,28],[160,5],[161,5],[162,1],[163,29],[138,1],[139,1],[141,30],[142,1],[155,31],[140,23],[143,1],[144,5],[145,1],[146,1],[147,1],[148,32],[149,5],[150,1],[151,1],[152,30],[123,1],[153,1],[154,1],[164,33],[114,5],[107,5],[108,1],[109,5],[110,5],[113,21],[115,34],[111,1],[112,1],[165,35],[166,1],[167,36],[350,37],[342,5],[345,38],[344,5],[343,5],[349,39],[347,40],[348,41],[346,42],[170,43],[171,43],[173,44],[174,45],[175,46],[176,47],[177,48],[178,49],[179,50],[180,51],[181,52],[182,53],[183,53],[185,54],[184,55],[186,54],[187,56],[188,57],[172,58],[222,5],[189,59],[190,60],[191,61],[223,62],[192,63],[193,64],[194,65],[195,66],[196,67],[197,68],[198,69],[199,70],[200,71],[201,72],[202,72],[203,73],[204,74],[206,75],[205,76],[207,77],[208,78],[209,5],[210,79],[211,80],[212,81],[213,82],[214,83],[215,84],[216,85],[217,86],[218,87],[219,88],[220,89],[221,90],[245,5],[244,91],[257,92],[260,93],[259,5],[262,94],[261,5],[265,5],[266,95],[264,96],[263,96],[233,5],[236,5],[246,5],[224,5],[225,97],[229,5],[267,98],[258,99],[243,100],[240,101],[242,102],[241,101],[239,5],[300,103],[8,5],[10,5],[9,5],[2,5],[11,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[3,5],[4,5],[22,5],[19,5],[20,5],[21,5],[23,5],[24,5],[25,5],[5,5],[26,5],[27,5],[28,5],[29,5],[6,5],[30,5],[31,5],[32,5],[33,5],[7,5],[38,5],[34,5],[35,5],[36,5],[37,5],[1,5],[39,5],[40,5],[332,104],[284,5],[270,5],[271,105],[232,106],[276,107],[231,108],[277,109],[281,110],[230,5],[238,108],[226,111],[327,112],[326,113],[340,114],[227,111],[339,111],[325,115],[323,5],[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,5],[272,130],[253,131],[252,132],[248,5],[301,133],[249,134],[254,135],[247,136],[337,137],[336,5],[292,138],[288,139],[289,140],[293,141],[274,142],[250,111],[237,143],[333,144],[296,111],[294,113],[308,145],[302,5],[286,146],[341,111],[309,147],[295,111],[251,144],[269,5],[310,146],[228,5],[311,148],[314,111],[285,111],[316,149],[322,150],[313,5],[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,5],[331,158],[278,5],[280,159],[287,160],[234,161],[275,162],[256,163],[255,164],[338,165],[235,5]],"semanticDiagnosticsPerFile":[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,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,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-v2.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","f9f790e57d3e54a951f58ef7847a0761433c8fc020ba56181e0a0b1cb3edfac3","9d7c06936c2b731734059e575cf7930aa028487722593fb176f4d64de9fdfb8c","5afea36bfebe56bd19e43900b94fda8c5ac31409de197832ae006c0120d54122","5dd455bedf7b5f7a5d8ccc17323761ac73ab5a93a7af0a595297b90c33bd9d8e","95ab2fe99faa3e25ff8eb9408451730506d4686dce877a96db073f62f9368932","685f0aa21c1d14d184fbaf5327c390c465d26a0a08e64975764f2b073601bd76","9a18b997370e8442ed2fe2e7e60180f21d2a3e46e45f443784709eec8284f2e4","31ed1f61639da39a41255b3608ebada3c6101ae1bd07ecf67d61605bab1c2c7f","3c863e6ccce69483eedb3d505701a957c51af40859c7b19a4558836b1321a892","a3cc420b6dbdfc0245da4e0d837c339c3f9b6bed2efaa2e26dd8bbe4060cef41","6857d9f06f38c5a8d5bf2a0e8326b978b4876031a3c1f47665876c3daa94522d","a240ea9a3333d3630ce06bf128d796a233df1147bb3cbda86a2b74a584e7f6ea","4419778f6c54c431a8156c7de194ebb9e0876709a8cfc12d40502b0dd1019244","3c2e9fd191f39682dd1c5a8bf30ea2e639a12dcda5ef0f57f05c84f17a88bc4e","39541b2c269eff86c2792b6ca162e6fdc861d388e7d3d19f7831d9179c362d7c","20a4eb5bc4d45e0f1e5a0f40da4da7a850cb87098be0e65ea09313f9f38ca495","36b664ce956bec5150c15ea3763a4a5b0af8c305a10ec7a45d584885280cc893","34e612720139dfd4e4529140bb1fd41ac57dfeb9ac0760857d765211498729dd","f4123d3203f9caa925d3068da188cc867cafe29d4660456a9f322833fa0c80a2","ada1dc76e297e7fee41eb083b3a60fb54bd7e729ed68732a6ce5d0e88140dae1","b3876d5830d84c781ac4a7482c06887cfd90c3409af82fc29ec20375d38fb217","874f6101540444f6cb89a7d7447f664ee7c42f50e790ec1432cbbc14fd56159e","e3dd6f5b25d26f229efb106789189628ec8186cc28e3d58783426e18baff9c53","4fbc35a02a0687614b042fa52a46ac1ae7c1bfce68f0aaaad8b5a76a7777edf5","66fc3f87542bc556b590a4f4177c22490c117fc96eab69bda2e9e0c445eb5cc2","1293901b689c514fafaf7f9ff9eff109b25f32fdbf64bc7fe8da561d473d2091","bc82f26edea61e61473470eb7cbbe76b815cc27dcc6aa1b6d3fad86add81fc17","9b45c8fb886e1feee2bee6ff97b84bd10cda89f2b8cff54d27cda826d3609a72","9b15c2754d92c35fc53e42ba771e32b2038d8d72408f4704c8daab757043e4dc","294e7339aaee5e008a3e892318487b1970ceee107c1cd68a0f81533369b1430d","584a7cabf27eef35ca78f5c66e9606440faafdef157eec243c6c672f808dce00","a7920efa08217d3175420b88117e78fb8f2dfb1de498b3ec294048861675e07b","0aec829b11c3834d2fb9245945eb5549446f8e1c1ae94b0ab167e44bd7d438e4","15ac5424c6183bd167314972be53111b50fa3945c6f004ecae5aef42d1e03d76","428565fe14b2bb1e0780087739e6a568b102e449da66c2ba4ae8fb6293e7f06c","ea08b8cd81c90c218ba3f04cdb2e7c87ee8c427b4c544911095a9304dc5e9f52","e0713f909b03190f011a3d4266e7bdf0f313d6e5fc600d95638083380139663d","f7bdf7751b647cb56d24e19b46540812deb89163f43434d6b842377e1ba15279","0708c284b3603bfe7f7946709a8b62f1b81d987b7e301fd8fc5312d8d085abab","6f34c20edf7ec48f4db7cf4417d06e6a8f712ed7f38386c6b9c8243e5aecc4d0","aa1c6664820510d6009e5172f2c9b013f8d1c9bd94796eb66d5553c5ddfaeb1f","07b0c184ae96b59f4126a3ef4eced70ccb5462090c6a123921227b8fb7c1d2e0","5e6a8186fc4d3d31fb0c1ca5087e846378d3302f5905a8ccc2ab243ffa10f94b","5d08773a7f13c36508ce760c3517a8afab5c5a5f551ca39ad41683930bfda66c","9577c23d43c81fe2e66373ee377b5ed32e10f2774653dc2384c4cbc7ce329982","e312e6add715ec2e97e938409478d9017d6c91f4487ce6e4aa2709e60f67cd95","f1909b1623b22940bbb7be98cbfac6d24a34d0c510dde3df5564404064e3e7fd","02c03fc5fc14f75802bd70c8297d1e4a6f18dbcc02a1699591c9e4c0135c5de0","5a86e2cbfe51de88bdf32cebe82aa0ed049f6edba3a2c757312cab3c37f29ade","c2a227bd507cac7fdbdb2f5375e3b05f6f28f7e247244c52c81229942d5989aa","28aa20795a164add6b9e7443535f34939ea1e9c27719bfa0db96225881d47bbc","9e334139506c8742da707999ab4c169d4f04085288700d28419c439f38342ae1","680cbca33c1438c1f5de005564302ef57d679b54303d794663dceb180be4a0f0","2877475d53a76cf91e2336f8347a8fb00c9d1eac85a059058c5b027d74822960","f871d624e9cec46e63399c74deb15c183c50390d1e9755130717fef36396bf2d","6850411b8d4bf4c5f950fc182f17a58ebeea0173d0395591761b40904006c788","be150501ccabade2b0280d5be03c766f39381e51d5739e04f5656df4080e8487","fa81e6ab7fc27f43789b878e4bab158e12ff31748d6652724ef09e3053815c69","71f0af94667eb3d33e61a5f7e8d20c8259158871ba332ed370421c867fc8d64c","929cd9e3bae21fddffa7c5b813561e18ec6f3e88c02fa750313e709a7201ebc2","afd6e503a3873ec9c12e57ef614f3a87d57bd88301247498c45afd992a4b7b98","5e9004c2aba118299bcc17d5d115044512faa9bd814417e3239e8b53f83ff5d3","f67509d8eac18dd03a6598a9b428dcd09ef04487b31dd8226b5b2ba67588205c","387ba24cca9932007dfa86415d59e2ffc6ff6a35d5e0e1cde27f1ad01b91b9bf","7d24e31d9b3cb94992a45d71918940cfc0f04e1aab36acff1f1e88d825e95f45","29c97e978dd0682439d4109094dff72ec8707906786343f6ba6f6f82f9260f75","d2dec72e158cf166711a3009180d25ad363fe4cad0178020098aa5e08c4842e7","5e3f8d4b99733c1365ad9f07ba62f7604e6ede0bf94632e1710590fbf5503d0f","f5d8843fd8c6d4aacea9792e8c0ffb47e82c81523b65690fb7a21a76c19a2ae9","339f71322345c9caf86730e90e74a9cc865134cced1d9954b1ff7fbe0da98639","5929ad11c6a01e61924e690bc5da6030e6568e6a9afa22d2e3e9ffd6e5ff5da1","9fdbb2de7d996d633c1e8b15e81598cc03b78d189c502f508405e01065d150b2","76278ca7d48a20284bb7d2852ed2afbe46b47e621d51703499f9934193aacfd4","7560b7502c10ebdf0d07ae7f83567a25f0e18501541a761f5456039a75fdca34","a6d5464c400860c746d59538eeac8aba030bd286a30382cb35ffa180bb45360b","882c65b85e101318cb241a04d9f6098f40f81f60969dc23ed43eca93aa208756","9b9ab0f61e1a9d1544cce8f6a898a67fcb398e7a2916c8f7bff196aeacaa42a1","70c76a6057c1bc0bba81bbfe37dd4bfb5d3ec470779543cf4265bacc8bc34fde","7f45c53d713e44a39ce9715516a742401ec67ca64d28e89800a1087b413bea11","fce8fdfd2fad64fd92d00849d61517872d7ffe130683216530ed80aa87c0d4ed","9d04be61d449837d03f2f2c6cb45862e01ecf27f2d9e9e649381923ec2ef183d","e7ef7f20139a8e1107206b6ebca0aeaf5afc106fdcd3320f72d8fa1aa6b8b376","6e30db287568ec99d3f9a9f13a250b8713c08f7e80258b00525118983f75b0a4","d1b9f9d3112a2a61002f35217328c4f9d8c855c97a7bffb3c07064e5d75bcdb2","d92b44ee50805ae18826ccbb6626a8956d1ad4030776e9d8d6665ac4b25594c2","9dbb17d8dd416cd59de116f60c92da5cd5a330657e4b1288ae1667f64ac976ed","c383e01b0a485533eacc2ece74da9806d24c2b04d3a78c0e88bbc170a26e948b","1ae78536a74e399118a613e2733285b11dc319385b205b91be0a2e3191fe2254","84f19808fafe26e154c513ae796980485e314327069d04239b4e3241adf5ff97","17f12aca109be03c5bdf67e1c7071c0ca86066806f373efe1706a6fbc760b705","fbbe6400d3c632bd8ec78c6c2e52f9f12a5730f1239850360b57c437af85efce","b84133cb67d1fef4258fb16730f559491d5d461a9846179f064b976eca2450f9","a4f479167a2b60f44d277e0e95ac7406391a32871d452c952963833288161e34","8db5ba8ae3754a488df8a62b76c8eade022c7931b4603f21f8691a7aa44e08cb","ae4ab429f512d21fb3ed429b3ca544a3568790f24a5450a9e1533b1b610ef26e","d3fda3824d4c8d8d37be73e0429c11a3521739a542b075ed44adb322fddcd7a6","811bf83a1de5e46170eab4fae912a4d33cc7a4f783a20b1e28d4c82bb75de9b7","0783408c38ff652538a7a6dd5a86121b88412589375480fa572d042c17ae0186","4dbbe40419e9749d380d28e2f25a1f806c5a7a405aa0308a178d750464b79dd7","9ff98cf113c2e37f217778541e2fdb9c2be84388a1d270eaa902c9aae61d7212","7e547303b50679bb7c97614c0040f2996d4e201b1e9ad7f19e10c0b59fc81c49","e50a6ce0708ba6bbe0907c3604aa1b461dbfc4f1960f7d29b7c3f6dbb7ecfa38","77e86cbec6fbdbc4c06163499aa24b76925613a174600cd0e14744712c1ffa71","beac06589b709b31baeaeb90f771868216b57549407a4a71abc1d858bc7ed9d8","de02780fe1506e22f50235523d193dea6689d947a356433eca7df4f4356d4476","33f9ba19058820c381b3ee185014b0014f73c692e00615afce686084af7195c6","8e1b0ebe06b33c85e728f3efa21804bfe177b25446da845c7ba2c91990e50ba4","91d0e80aae82040fc4d320d415f7118cc304bfd4e81fc20cd435921bd12913d0","bc492678c5eaa9363984d6c66b787720ced87d01882c702b040ce5b58cfc325f","84f688f194236138f32c258dc6fa571dbeeb80d5b0fce573fd91e325b13e846e","9f1fe22bca3d154b2eeb89900eeb6e35106e15a6e2bf53cd1fb00c024c002324","30c0316a4f23ab0b7f58fc049117d2ab4cc34e1d5b716ec13819a6d6e6537fb4","c6b147e0c606a69c2ca70917679f98e4cd2f52762c183a12c70d146f2c20a873","e9d90b998bf4224d53354910a8b649b26d96fdde74bfd860da416d6cc0a47afd","3d5839dcc56fa931ef88d454b74e117800c8b9e6c70dd5ccf61dd0dcb76fb187","d88cf5d04730fed67895c3aa49431184a184391a969cca50417edc68c37bd348","b2cfcb267f3ad6d48aa0b9c7a1146f63984f5ea1cd8dd63527eaf1738c713fca","45c971b451ed5d9aa8d2bb3cf052e74f1d5af0e644aa419d46008e2909c1c1d8","dbdcd6590670ad0392ddcdb9ddcd53eb9e3e4c5db174e6a03355609e29ea690e","5f439f9b428b4819042db3c9cd2ebc1d01227821c75c0d8416456781635996d5","89a092a002b46691edb0ac7b0d2785a1f2536547a98b06805a0ea8f7149e192c","3e827bec7f0ff866a5ea09daaa116c115157cdc536a24e698f190de52e322c93","c0c81406c104bf1aecd935b2947171b283ff3b153d539193b3151d54ecbed1b2","ffeebf5bab849797873e4a1e203f15c8a9ca1ef9ffff26b9cd7441d4ea19041c","490e36ecada1b2924a08a79137a30a4180ba888a4ad0099e0525ca80dd5c3502","63ed116bb4b5070309de7daa1a3b111d4ea67e485258ed82806130e59df74421","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","9d637b02a5fef99276d516c55aec98547f133d41eaf36e9b0375f196a633fcfd","40871fe15e2ecf88714da0847588959d7049d34709a5c4f9f2584d8cdbda2874","2e3778314a396a2943ca5fcb1a2ada99127991eae68a3d6e054580f6e71f5f97","664cbd952ca1c58c4584b8b20069089f6f008549cadd392a8acf817ad595196a","f5eb32a9fe8d26a29e8005ab0f4a6ed57d890acb6c5c4d315a984d661a59acaa","f55f979f31920b252a9f472183e724c372465284eda5593f3ff979f7e781a9c7","ca83a3200101528e59cc12cf22abe8eb9cf2a3b5bafa9a7bf8606562816d20df","94b86c9db78a81e040d2dafc1f7a8c3b9e70a24c222a845371fb1baa9eb132c6","12e2539f8424434d58f2019bba168ee6115d7e8e78327b750d32637d3c7d2ead","ff570d0aaf44186d578288e50131a0c23714fe2f6ff89cba6e67c3b6e453f20f","367ab90a74f5c19abff93dfee24d933cb672c0d875e4ac95708703871be5707f","e4c43c426ccdaf649d1e7a7420781df4fd39bdaa4eb3d41672974d9a693683d2","07319d086eb114973ae76560b021df33c2b4d7dfde77867a29836ac7619768d0","ea38212c34e9ef0d803a4629c30d3808f984dbb8c8da792ec9dfc4cb4da07e46","5724c8addc06acba94bd88c1091ca37ad28cbb4362ba37ccd9f1835375c067b7","f382b47fc400a4f75c52fcefd6fb393c6f3fc85249bb87fd5678b01812d098f1","11c97f2e856596a67d789fc11e7edde7efbca3dfeb040543c3a52d4b12a5b258","a02e23dbe281ff7810e9e24bd3bf554aa69ac685f4893538bc6d01063bf444d1","5337bd9cee8222598bab8f01a140dcd030d567da487fb6418b849fb2455cfc25","3c0e17e33d3a5b3d2d74140c6b7f2a3d0d138d6b7579f22fb2761a2473b2d41c","a57f214e2cc78f7685c1ada9dbe94dac3fd00feafeeb372b30d91fbab794deac","535c495248be283cce05bff71f4ebecc3c712ca7d4ef6735b143426b333e8083","1376fcb20905de176bd02c73f5fdd6dc0366d36d60725eec51273b30df79792c","19c2bc5072ded03c0e230bbf1560ffdb38ccde0ff19e640ba6ae9d4a067dec81","65d024d0983f35187ad678059a2815d98e4ba112575b597b0b4ee4b58a83fcb7","4897607f6544b9aba89c61ec30d0ff3b5089f082363034854c5acac847f8313a","992a7cc898964f2a4108222528adedc5473820c0d64fbda3a1c9aeb21a03d809","919f2cfcc5ffb092f09f8808b61d052b24a0a8548a5c07b4de8b5c492cf6ccc7","9db9500b8569d1dd236678d71d809da09dbcda9b0ed22c6d741d95e1c784a93e","2ff811272892562199dd2111cbcd09ca3cb4e87b836235ec9a1c51efadc47c89","ca29c120c816120222d7561cd221c6aad4af304cf06e234bc16a6ea59022878c","1d6800aeb28b8beac0b5f3fef6a481574d71919ecdb7075af52f88e1e28f9b71","2484a6663d205139c1b6728ac74d92ca0fa1414c9a0fdacacfd3e6db90b8074c","b1bc5de7541676647dddd5b2e755433d427d98f6ab72edb784b4e0109c72253e","91cb0617f031ad5c4969e49e011faa29f811f3656978632f5987d7e263ffed7b","b13986569a88ac17de80fc1ffa0860d0636051e91733437140bf399d56b26047","0d40cf3f6a3b799381e8e2aed00a6e8451e4b8e553e3f2b2415b4625c47ba9c3","22738c10c5a0c76db18caef6741ef17031642fd6a46f02989f5116dcea307f9e","6cf703a66860b2f1a58044937d9d59cf6c18551f56795d2f0b68a8f1da0f241b","bbf28aac6fc307a3925db448f87dc5e8d85b4806d9cead36f8776d77afa0b00f","fb724c133584a056c6d715ce5275bfa294e2378c8bacc28e9ecac1acd5e73717","3c681eacf1fbea01429d3c78f93dda4954109d3300b19a11c343f3583e607fb9","61d5ceb43470315ebaccc58a015eaf09754ea24459ce403a090ac64d3a00d941","3af0990420f89ab85b4bccff233385bf66fd1eb01bf691dfe31372c92a9f39c2","f47b4cdbc1b015d98faf30af8e746327bb9e5f1efa2f707eb070adb483314bfd","97ca28b5c460096532d75a9ce804407b96690b160fcda292fd662025d7484ef5","04ac11c12401bcc89f5ff15c93d5c6f9d38418d2cd6826e3a5aab9fa871ba6ad","d036f28759fdaacdf83649323db2a672d3649189e2f30f0a157606e96bad9787","2db56aa2c1cc6a1f505922bdfad8bdb849d52c89eb0bfb8294dc5642fb3da17f","fc64e90a1bf8ee888757014d44bdc1d3d5349a15f7ef1edfe3644e61d88762f6","f7a76e04d55272e70d5e4aa916062f943870ac3253d495e1bfc3fd8bf2678769","90b61375a9a95ee8016174c9f2400c89734c347afb27f8670650d84cad9df271","2677345388f45180cbbc4e1570912d9c14cb7e0215ee5fbe12c15eaf268b332d","12aa9c803cd79a739aa663156f39131869a41388bf253e3b51f0f61f98a07663","be92647dfc052cf320b5ac0bf79ac1df11c0b77cc6f0b1bf5be7dce314a7db68","ea4f5a4451505cad589168e6a31fa0fe6f5cff894cea623c531cd2dece0a4776","1a159891a2340adfb2c31ed2fc626212feb08f10a57b1b2238f3c24f06e7a3b8","806dcbea6f3a55c516c603444fd64ee3a267bb381afdeb5065c34aec6869a3dd","72248dba3ea2651f7b649ed7bec0b2301fc543fd49e2f6a96f81f3af74bf9312","615b531858d1adbbf76c5509607b3330ff42aa51a4967a3dd318b885f39e3354","8a20e1c333c6bc8a051a6408d5e24684383a8fa89f832f0475d12070220f8023","d5ace6192178d45de42affa439c12585d4fe6aa51ec198da3261d64ce7f6897d","fc9c075827b48e02faa76886d02294f5c81446872aa715cb246c31180896914c","030e1fcbaf536940f6facf8677ff38f729b5574cfa6ebfcd6d354054ffd104af","889b4beefc59797c39dd56afbd7a441c95a55d64ada2640ed7537ffff93c3d43","e86e0e2b983a550a2d01cf9bd788a1cb4013704a2c9d44fa6a92753fe68da24d","a4ff82e54647b1ef4f6cc7faf389469b63d39acc9110de02335507211064881b","c340b3d2b89e11d45944896444a83992fe9612eb3f9b66d26ce4d94b6fafbd3c","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":[[168,216],[41,42,43,44,216],[41,43,168,216],[46,47,49,50,51,52,216],[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,346,349],[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],[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,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,298,306,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,287,306,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,284,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":[[169,1],[45,2],[41,1],[42,1],[43,1],[44,3],[53,4],[46,5],[47,5],[48,5],[49,6],[50,5],[51,5],[52,5],[94,7],[95,5],[96,7],[97,7],[93,1],[98,1],[104,8],[100,1],[99,7],[101,1],[102,9],[103,5],[54,1],[63,10],[60,11],[61,1],[58,1],[59,5],[62,1],[55,1],[56,1],[57,1],[64,5],[65,5],[66,5],[67,5],[75,12],[68,5],[69,5],[70,1],[71,5],[72,5],[73,5],[74,5],[76,1],[77,5],[79,13],[78,1],[80,1],[82,1],[81,1],[86,14],[83,1],[84,1],[85,15],[168,16],[90,17],[87,1],[89,18],[88,1],[91,1],[92,19],[105,1],[106,20],[116,5],[117,5],[118,1],[119,5],[120,1],[121,21],[122,22],[124,23],[125,1],[126,5],[127,5],[128,1],[129,5],[130,1],[131,21],[132,24],[134,25],[135,5],[136,5],[137,1],[156,26],[157,5],[133,1],[158,27],[159,28],[160,5],[161,5],[162,1],[163,29],[138,1],[139,1],[141,30],[142,1],[155,31],[140,23],[143,1],[144,5],[145,1],[146,1],[147,1],[148,32],[149,5],[150,1],[151,1],[152,30],[123,1],[153,1],[154,1],[164,33],[114,5],[107,5],[108,1],[109,5],[110,5],[113,21],[115,34],[111,1],[112,1],[165,35],[166,1],[167,36],[350,37],[342,5],[345,38],[344,5],[343,5],[349,39],[347,40],[348,41],[346,42],[170,43],[171,43],[173,44],[174,45],[175,46],[176,47],[177,48],[178,49],[179,50],[180,51],[181,52],[182,53],[183,53],[185,54],[184,55],[186,54],[187,56],[188,57],[172,58],[222,5],[189,59],[190,60],[191,61],[223,62],[192,63],[193,64],[194,65],[195,66],[196,67],[197,68],[198,69],[199,70],[200,71],[201,72],[202,72],[203,73],[204,74],[206,75],[205,76],[207,77],[208,78],[209,5],[210,79],[211,80],[212,81],[213,82],[214,83],[215,84],[216,85],[217,86],[218,87],[219,88],[220,89],[221,90],[245,5],[244,91],[257,92],[260,93],[259,5],[262,94],[261,5],[265,5],[266,95],[264,96],[263,96],[233,5],[236,5],[246,5],[224,5],[225,97],[229,5],[267,98],[258,99],[243,100],[240,101],[242,102],[241,101],[239,5],[300,103],[8,5],[10,5],[9,5],[2,5],[11,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[3,5],[4,5],[22,5],[19,5],[20,5],[21,5],[23,5],[24,5],[25,5],[5,5],[26,5],[27,5],[28,5],[29,5],[6,5],[30,5],[31,5],[32,5],[33,5],[7,5],[38,5],[34,5],[35,5],[36,5],[37,5],[1,5],[39,5],[40,5],[332,104],[284,5],[270,5],[271,105],[232,106],[276,107],[231,108],[277,109],[281,110],[230,5],[238,108],[226,111],[327,112],[326,113],[340,114],[227,111],[339,111],[325,115],[323,5],[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,5],[272,130],[253,131],[252,132],[248,5],[301,133],[249,134],[254,135],[247,136],[337,137],[336,5],[292,138],[288,139],[289,140],[293,141],[274,142],[250,111],[237,143],[333,144],[296,111],[294,113],[308,145],[302,5],[286,146],[341,111],[309,147],[295,111],[251,144],[269,5],[310,146],[228,5],[311,148],[314,111],[285,111],[316,149],[322,150],[313,5],[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,5],[331,158],[278,5],[280,159],[287,160],[234,161],[275,162],[256,163],[255,164],[338,165],[235,5]],"exportedModulesMap":[[169,1],[45,2],[41,1],[42,1],[43,1],[44,3],[53,4],[46,5],[47,5],[48,5],[49,6],[50,5],[51,5],[52,5],[94,7],[95,5],[96,7],[97,7],[93,1],[98,1],[104,8],[100,1],[99,7],[101,1],[102,9],[103,5],[54,1],[63,10],[60,11],[61,1],[58,1],[59,5],[62,1],[55,1],[56,1],[57,1],[64,5],[65,5],[66,5],[67,5],[75,12],[68,5],[69,5],[70,1],[71,5],[72,5],[73,5],[74,5],[76,1],[77,5],[79,13],[78,1],[80,1],[82,1],[81,1],[86,14],[83,1],[84,1],[85,15],[168,16],[90,17],[87,1],[89,18],[88,1],[91,1],[92,19],[105,1],[106,20],[116,5],[117,5],[118,1],[119,5],[120,1],[121,21],[122,22],[124,23],[125,1],[126,5],[127,5],[128,1],[129,5],[130,1],[131,21],[132,24],[134,25],[135,5],[136,5],[137,1],[156,26],[157,5],[133,1],[158,27],[159,28],[160,5],[161,5],[162,1],[163,29],[138,1],[139,1],[141,30],[142,1],[155,31],[140,23],[143,1],[144,5],[145,1],[146,1],[147,1],[148,32],[149,5],[150,1],[151,1],[152,30],[123,1],[153,1],[154,1],[164,33],[114,5],[107,5],[108,1],[109,5],[110,5],[113,21],[115,34],[111,1],[112,1],[165,35],[166,1],[167,36],[350,37],[342,5],[345,38],[344,5],[343,5],[349,39],[347,40],[348,41],[346,42],[170,43],[171,43],[173,44],[174,45],[175,46],[176,47],[177,48],[178,49],[179,50],[180,51],[181,52],[182,53],[183,53],[185,54],[184,55],[186,54],[187,56],[188,57],[172,58],[222,5],[189,59],[190,60],[191,61],[223,62],[192,63],[193,64],[194,65],[195,66],[196,67],[197,68],[198,69],[199,70],[200,71],[201,72],[202,72],[203,73],[204,74],[206,75],[205,76],[207,77],[208,78],[209,5],[210,79],[211,80],[212,81],[213,82],[214,83],[215,84],[216,85],[217,86],[218,87],[219,88],[220,89],[221,90],[245,5],[244,91],[257,92],[260,93],[259,5],[262,94],[261,5],[265,5],[266,95],[264,96],[263,96],[233,5],[236,5],[246,5],[224,5],[225,97],[229,5],[267,98],[258,99],[243,100],[240,101],[242,102],[241,101],[239,5],[300,103],[8,5],[10,5],[9,5],[2,5],[11,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[3,5],[4,5],[22,5],[19,5],[20,5],[21,5],[23,5],[24,5],[25,5],[5,5],[26,5],[27,5],[28,5],[29,5],[6,5],[30,5],[31,5],[32,5],[33,5],[7,5],[38,5],[34,5],[35,5],[36,5],[37,5],[1,5],[39,5],[40,5],[332,104],[284,5],[270,5],[271,105],[232,106],[276,107],[231,108],[277,109],[281,110],[230,5],[238,108],[226,111],[327,112],[326,113],[340,114],[227,111],[339,111],[325,115],[323,5],[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,5],[272,130],[253,131],[252,132],[248,5],[301,133],[249,134],[254,135],[247,136],[337,137],[336,5],[292,138],[288,139],[289,140],[293,141],[274,142],[250,111],[237,143],[333,144],[296,111],[294,113],[308,145],[302,5],[286,146],[341,111],[309,147],[295,111],[251,144],[269,5],[310,146],[228,5],[311,148],[314,111],[285,111],[316,149],[322,150],[313,5],[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,5],[331,158],[278,5],[280,159],[287,160],[234,161],[275,162],[256,163],[255,164],[338,165],[235,5]],"semanticDiagnosticsPerFile":[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,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,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
@@ -9,7 +9,7 @@
9
9
  "url": "https://github.com/mainnet-cash/mainnet-js/issues"
10
10
  },
11
11
  "name": "mainnet-js",
12
- "version": "1.1.29",
12
+ "version": "1.1.31",
13
13
  "homepage": "https://mainnet.cash",
14
14
  "module": "dist/module/index.js",
15
15
  "browser": {
@@ -14,7 +14,6 @@ import {
14
14
  verifyTransactionTokens,
15
15
  decodeTransaction,
16
16
  TransactionTemplateFixed,
17
- stringify,
18
17
  } from "@bitauth/libauth";
19
18
  import { NFTCapability, TokenI, UtxoI } from "../interface.js";
20
19
  import { allocateFee } from "./allocateFee.js";
@@ -110,7 +109,6 @@ export async function buildP2pkhNonHdTransaction({
110
109
  throw Error("Error building transaction with fee");
111
110
  }
112
111
 
113
- // console.log(stringify(result.transaction), stringify(sourceOutputs))
114
112
  const tokenValidationResult = verifyTransactionTokens(
115
113
  result.transaction,
116
114
  sourceOutputs
@@ -355,12 +353,24 @@ export async function getSuitableUtxos(
355
353
  continue;
356
354
  }
357
355
  }
356
+
357
+ // handle splitting the hybrid (FT+NFT) token into its parts
358
+ if (
359
+ request.capability === undefined &&
360
+ request.commitment === undefined &&
361
+ [...suitableUtxos, ...tokenInputs]
362
+ .map((val) => val.token?.tokenId)
363
+ .includes(request.tokenId)
364
+ ) {
365
+ continue;
366
+ }
367
+
358
368
  throw Error(
359
369
  `No suitable token utxos available to send token with id "${request.tokenId}", capability "${request.capability}", commitment "${request.commitment}"`
360
370
  );
361
371
  }
362
372
  }
363
- // console.log(suitableUtxos)
373
+
364
374
  // find plain bch outputs
365
375
  for (const u of availableInputs) {
366
376
  if (u.token) {
@@ -428,7 +428,7 @@ export class BCMR {
428
428
  transaction(
429
429
  where: {
430
430
  hash:{_eq:"\\\\x${options.transactionHash}"},
431
- block_inclusions:{block:{accepted_by:{node:{name:{_ilike:"%${options.network}%"}}}}}
431
+ node_validation_timeline:{node:{name:{_ilike:"%${options.network}%"}}}
432
432
  }
433
433
  ) {
434
434
  hash
@@ -492,7 +492,9 @@ export class BCMR {
492
492
  );
493
493
  }
494
494
 
495
- return result.filter(element => element.contentHash.length && element.httpsUrl.length);
495
+ return result.filter(
496
+ (element) => element.contentHash.length && element.httpsUrl.length
497
+ );
496
498
  }
497
499
 
498
500
  /**
@@ -841,6 +841,86 @@ describe(`Test cashtokens`, () => {
841
841
  );
842
842
  });
843
843
 
844
+ test("Test splitting and merging FT and NFTs", async () => {
845
+ // handle the cases from the following examples
846
+ // https://bch.loping.net/tx/86f3c86e7e9c6853e489dc7ea85e2192b1b2cce691fa5ff9597e98f045a0bf72
847
+ // https://bch.loping.net/tx/83ef2ab9687c53bb24c3d99f3cc7f0a2c7f23e180c8dbee5c845d1db6725d3e8
848
+
849
+ const alice = await RegTestWallet.fromId(process.env.ALICE_ID!);
850
+ const bob = await RegTestWallet.newRandom();
851
+
852
+ await alice.send({ cashaddr: bob.cashaddr!, value: 10000, unit: "sat" });
853
+
854
+ const genesisResponse = await bob.tokenGenesis({
855
+ capability: "none",
856
+ commitment: "0000000e",
857
+ amount: 10000,
858
+ });
859
+
860
+ const tokenId = genesisResponse.tokenIds![0];
861
+
862
+ expect(await bob.getTokenBalance(tokenId)).toBe(10000);
863
+ expect(await bob.getNftTokenBalance(tokenId)).toBe(1);
864
+ expect((await bob.getTokenUtxos(tokenId)).length).toBe(1);
865
+
866
+ // explicitly split FT amounts from NFT
867
+ await bob.send([
868
+ new TokenSendRequest({
869
+ cashaddr: bob.cashaddr!,
870
+ tokenId: tokenId,
871
+ capability: "none",
872
+ commitment: "0000000e",
873
+ }),
874
+ new TokenSendRequest({
875
+ cashaddr: bob.cashaddr!,
876
+ tokenId: tokenId,
877
+ amount: 10000,
878
+ }),
879
+ ]);
880
+
881
+ expect(await bob.getTokenBalance(tokenId)).toBe(10000);
882
+ expect(await bob.getNftTokenBalance(tokenId)).toBe(1);
883
+ expect((await bob.getTokenUtxos(tokenId)).length).toBe(2);
884
+
885
+ // add FT amount to an NFT
886
+ await bob.send([
887
+ new TokenSendRequest({
888
+ cashaddr: bob.cashaddr!,
889
+ tokenId: tokenId,
890
+ amount: 9000,
891
+ }),
892
+ new TokenSendRequest({
893
+ cashaddr: bob.cashaddr!,
894
+ tokenId: tokenId,
895
+ capability: "none",
896
+ commitment: "0000000e",
897
+ amount: 1000,
898
+ }),
899
+ ]);
900
+
901
+ expect(await bob.getTokenBalance(tokenId)).toBe(10000);
902
+ expect(await bob.getNftTokenBalance(tokenId)).toBe(1);
903
+ expect((await bob.getTokenUtxos(tokenId)).length).toBe(2);
904
+ const tokenUtxos = await bob.getTokenUtxos(tokenId);
905
+ expect(tokenUtxos[0].token?.amount).toBe(9000);
906
+ expect(tokenUtxos[1].token?.amount).toBe(1000);
907
+
908
+ // merge FT and NFT into single utxo
909
+ await bob.send([
910
+ new TokenSendRequest({
911
+ cashaddr: bob.cashaddr!,
912
+ tokenId: tokenId,
913
+ capability: "none",
914
+ commitment: "0000000e",
915
+ amount: 10000,
916
+ }),
917
+ ]);
918
+
919
+ expect(await bob.getTokenBalance(tokenId)).toBe(10000);
920
+ expect(await bob.getNftTokenBalance(tokenId)).toBe(1);
921
+ expect((await bob.getTokenUtxos(tokenId)).length).toBe(1);
922
+ });
923
+
844
924
  test("Should encode unsigned transactions", async () => {
845
925
  const aliceWif = `wif:regtest:${process.env.PRIVATE_WIF!}`;
846
926
  const aliceWallet = await RegTestWallet.fromId(aliceWif);