@arkade-os/sdk 0.4.29 → 0.4.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/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/indexedDB.cjs +2 -2
- package/dist/adapters/indexedDB.js +1 -1
- package/dist/{ark-ChhTwpLf.d.cts → ark-ibLW4Hte.d.cts} +20 -3
- package/dist/{ark-ChhTwpLf.d.ts → ark-ibLW4Hte.d.ts} +20 -3
- package/dist/{asyncStorageTaskQueue-DZ0nUuEJ.d.ts → asyncStorageTaskQueue-BEOFPNc0.d.ts} +1 -1
- package/dist/{asyncStorageTaskQueue-DW1-BpI7.d.cts → asyncStorageTaskQueue-VGHXWR9F.d.cts} +1 -1
- package/dist/{chunk-TH6T23XG.js → chunk-AXGVYRAL.js} +3 -3
- package/dist/{chunk-TH6T23XG.js.map → chunk-AXGVYRAL.js.map} +1 -1
- package/dist/{chunk-GDCTOSMV.cjs → chunk-GPZH5QNA.cjs} +63 -12
- package/dist/chunk-GPZH5QNA.cjs.map +1 -0
- package/dist/{chunk-BVP2U66Q.js → chunk-HJM6JPG4.js} +63 -12
- package/dist/chunk-HJM6JPG4.js.map +1 -0
- package/dist/{chunk-PJUFOJ2L.cjs → chunk-RN2OFLC3.cjs} +7 -7
- package/dist/{chunk-PJUFOJ2L.cjs.map → chunk-RN2OFLC3.cjs.map} +1 -1
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/{delegate-DN7RELL1.d.ts → delegate-BXaR1RNG.d.ts} +1 -1
- package/dist/{delegate-4JBUkUhR.d.cts → delegate-BvNTw44a.d.cts} +1 -1
- package/dist/{index-Cn82bBUu.d.ts → index-BusKawmy.d.ts} +2 -2
- package/dist/{index-DfT5xzgY.d.cts → index-C-5Tw7VA.d.cts} +2 -2
- package/dist/index.cjs +86 -86
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +1 -1
- package/dist/repositories/realm/index.cjs +10 -10
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +1 -1
- package/dist/repositories/sqlite/index.cjs +10 -10
- package/dist/repositories/sqlite/index.d.cts +1 -1
- package/dist/repositories/sqlite/index.d.ts +1 -1
- package/dist/repositories/sqlite/index.js +1 -1
- package/dist/{taskRunner-B-vG08pX.d.ts → taskRunner-B1igKGAo.d.ts} +1 -1
- package/dist/{taskRunner-B-aPfHhK.d.cts → taskRunner-By92TQ1m.d.cts} +1 -1
- package/dist/wallet/expo/background.cjs +8 -8
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +2 -2
- package/dist/wallet/expo/index.cjs +9 -9
- package/dist/wallet/expo/index.d.cts +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +2 -2
- package/dist/{wallet-DjgFb_4T.d.cts → wallet-B_rxgQTu.d.cts} +2 -2
- package/dist/{wallet-CCtqT2Wb.d.ts → wallet-CyM4F7Bs.d.ts} +2 -2
- package/dist/worker/expo/index.cjs +6 -6
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-BVP2U66Q.js.map +0 -1
- package/dist/chunk-GDCTOSMV.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGPZH5QNA_cjs = require('./chunk-GPZH5QNA.cjs');
|
|
4
4
|
|
|
5
5
|
// src/worker/expo/taskRunner.ts
|
|
6
6
|
async function runTasks(queue, processors, deps) {
|
|
@@ -32,7 +32,7 @@ async function runTasks(queue, processors, deps) {
|
|
|
32
32
|
}
|
|
33
33
|
const result = {
|
|
34
34
|
...partial,
|
|
35
|
-
id:
|
|
35
|
+
id: chunkGPZH5QNA_cjs.getRandomId(),
|
|
36
36
|
executedAt: Date.now()
|
|
37
37
|
};
|
|
38
38
|
await queue.pushResult(result);
|
|
@@ -44,7 +44,7 @@ async function runTasks(queue, processors, deps) {
|
|
|
44
44
|
function createTaskDependencies(options) {
|
|
45
45
|
return {
|
|
46
46
|
...options,
|
|
47
|
-
extendVtxo: (vtxo, contract) =>
|
|
47
|
+
extendVtxo: (vtxo, contract) => chunkGPZH5QNA_cjs.extendVirtualCoinForContract(vtxo, contract)
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -74,12 +74,12 @@ var contractPollProcessor = {
|
|
|
74
74
|
hasMore = page ? vtxos.length === pageSize : false;
|
|
75
75
|
pageIndex++;
|
|
76
76
|
}
|
|
77
|
-
const filtered =
|
|
77
|
+
const filtered = chunkGPZH5QNA_cjs.warnAndFilterVtxosForScript(
|
|
78
78
|
allVtxos,
|
|
79
79
|
contract.script,
|
|
80
80
|
"contractPollProcessor"
|
|
81
81
|
);
|
|
82
|
-
await
|
|
82
|
+
await chunkGPZH5QNA_cjs.saveVtxosForContract(walletRepository, contract, filtered);
|
|
83
83
|
vtxosSaved += filtered.length;
|
|
84
84
|
contractsProcessed++;
|
|
85
85
|
}
|
|
@@ -96,5 +96,5 @@ exports.CONTRACT_POLL_TASK_TYPE = CONTRACT_POLL_TASK_TYPE;
|
|
|
96
96
|
exports.contractPollProcessor = contractPollProcessor;
|
|
97
97
|
exports.createTaskDependencies = createTaskDependencies;
|
|
98
98
|
exports.runTasks = runTasks;
|
|
99
|
-
//# sourceMappingURL=chunk-
|
|
100
|
-
//# sourceMappingURL=chunk-
|
|
99
|
+
//# sourceMappingURL=chunk-RN2OFLC3.cjs.map
|
|
100
|
+
//# sourceMappingURL=chunk-RN2OFLC3.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/worker/expo/taskRunner.ts","../src/worker/expo/processors/contractPollProcessor.ts"],"names":["getRandomId","extendVirtualCoinForContract","warnAndFilterVtxosForScript","saveVtxosForContract"],"mappings":";;;;;AAkDA,eAAsB,QAAA,CAClB,KAAA,EACA,UAAA,EACA,IAAA,EACqB;AACrB,EAAA,MAAM,KAAA,GAAQ,MAAM,KAAA,CAAM,QAAA,EAAS;AACnC,EAAA,MAAM,YAAA,GAAe,IAAI,GAAA,CAAI,UAAA,CAAW,GAAA,CAAI,CAAC,CAAA,KAAM,CAAC,CAAA,CAAE,QAAA,EAAU,CAAC,CAAC,CAAC,CAAA;AACnE,EAAA,MAAM,UAAwB,EAAC;AAE/B,EAAA,KAAA,MAAW,QAAQ,KAAA,EAAO;AACtB,IAAA,MAAM,SAAA,GAAY,YAAA,CAAa,GAAA,CAAI,IAAA,CAAK,IAAI,CAAA;AAE5C,IAAA,IAAI,OAAA;AAEJ,IAAA,IAAI,CAAC,SAAA,EAAW;AACZ,MAAA,OAAA,GAAU;AAAA,QACN,YAAY,IAAA,CAAK,EAAA;AAAA,QACjB,MAAM,IAAA,CAAK,IAAA;AAAA,QACX,MAAA,EAAQ;AAAA,OACZ;AAAA,IACJ,CAAA,MAAO;AACH,MAAA,IAAI;AACA,QAAA,OAAA,GAAU,MAAM,SAAA,CAAU,OAAA,CAAQ,IAAA,EAAM,IAAI,CAAA;AAAA,MAChD,SAAS,KAAA,EAAO;AACZ,QAAA,OAAA,GAAU;AAAA,UACN,YAAY,IAAA,CAAK,EAAA;AAAA,UACjB,MAAM,IAAA,CAAK,IAAA;AAAA,UACX,MAAA,EAAQ,QAAA;AAAA,UACR,IAAA,EAAM;AAAA,YACF,OAAO,KAAA,YAAiB,KAAA,GAAQ,KAAA,CAAM,OAAA,GAAU,OAAO,KAAK;AAAA;AAChE,SACJ;AAAA,MACJ;AAAA,IACJ;AAEA,IAAA,MAAM,MAAA,GAAqB;AAAA,MACvB,GAAG,OAAA;AAAA,MACH,IAAIA,6BAAA,EAAY;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UAAA,QAAA,CAAS,IAAA,CAAK,UAAA,CAAW,IAAA,EAAM,QAAQ,CAAC,CAAA;AAAA,QAC5C;AAEA,QAAA,OAAA,GAAU,IAAA,GAAO,KAAA,CAAM,MAAA,KAAW,QAAA,GAAW,KAAA;AAC7C,QAAA,SAAA,EAAA;AAAA,MACJ;AAKA,MAAA,MAAM,QAAA,GAAWC,6CAAA;AAAA,QACb,QAAA;AAAA,QACA,QAAA,CAAS,MAAA;AAAA,QACT;AAAA,OACJ;AACA,MAAA,MAAMC,sCAAA,CAAqB,gBAAA,EAAkB,QAAA,EAAU,QAAQ,CAAA;AAC/D,MAAA,UAAA,IAAc,QAAA,CAAS,MAAA;AACvB,MAAA,kBAAA,EAAA;AAAA,IACJ;AAEA,IAAA,OAAO;AAAA,MACH,YAAY,IAAA,CAAK,EAAA;AAAA,MACjB,IAAA,EAAM,uBAAA;AAAA,MACN,MAAA,EAAQ,SAAA;AAAA,MACR,IAAA,EAAM,EAAE,kBAAA,EAAoB,UAAA;AAAW,KAC3C;AAAA,EACJ;AACJ","file":"chunk-PJUFOJ2L.cjs","sourcesContent":["import type { TaskItem, TaskResult, TaskQueue } from \"./taskQueue\";\nimport type { WalletRepository } from \"../../repositories/walletRepository\";\nimport type { ContractRepository } from \"../../repositories/contractRepository\";\nimport type { IndexerProvider } from \"../../providers/indexer\";\nimport type { ArkProvider } from \"../../providers/ark\";\nimport type { ExtendedVirtualCoin, VirtualCoin } from \"../../wallet\";\nimport type { Contract } from \"../../contracts/types\";\nimport { getRandomId, extendVirtualCoinForContract } from \"../../wallet/utils\";\n\n/**\n * Shared dependencies injected into every processor at runtime.\n *\n * `extendVtxo` requires the owning contract — processors must resolve each\n * vtxo's `script` to a known contract (via the contract repository) before\n * calling this. The strict signature prevents the footgun where a missing\n * contract silently falls back to the wallet's default tapscript.\n */\nexport interface TaskDependencies {\n walletRepository: WalletRepository;\n contractRepository: ContractRepository;\n indexerProvider: IndexerProvider;\n arkProvider: ArkProvider;\n extendVtxo: (vtxo: VirtualCoin, contract: Contract) => ExtendedVirtualCoin;\n}\n\n/**\n * A stateless unit that handles one type of task item.\n *\n * Processors must not keep in-memory state across invocations —\n * all coordination lives in the @see TaskQueue and repositories.\n *\n * The `TDeps` parameter defaults to @see TaskDependencies but\n * can be overridden for domain-specific processors (e.g. swap processing).\n */\nexport interface TaskProcessor<TDeps = TaskDependencies> {\n readonly taskType: string;\n execute(item: TaskItem, deps: TDeps): Promise<Omit<TaskResult, \"id\" | \"executedAt\">>;\n}\n\n/**\n * Run all pending tasks from the queue through matching processors.\n *\n * For each task in the inbox:\n * 1. Find the processor whose `taskType` matches `task.type`.\n * 2. Execute it, producing a @see TaskResult.\n * 3. Push the result to the outbox and remove the task from the inbox.\n *\n * Tasks with no matching processor produce a `\"noop\"` result.\n * Processor errors produce a `\"failed\"` result with the error message.\n */\nexport async function runTasks<TDeps = TaskDependencies>(\n queue: TaskQueue,\n processors: TaskProcessor<TDeps>[],\n deps: TDeps,\n): Promise<TaskResult[]> {\n const tasks = await queue.getTasks();\n const processorMap = new Map(processors.map((p) => [p.taskType, p]));\n const results: TaskResult[] = [];\n\n for (const task of tasks) {\n const processor = processorMap.get(task.type);\n\n let partial: Omit<TaskResult, \"id\" | \"executedAt\">;\n\n if (!processor) {\n partial = {\n taskItemId: task.id,\n type: task.type,\n status: \"noop\",\n };\n } else {\n try {\n partial = await processor.execute(task, deps);\n } catch (error) {\n partial = {\n taskItemId: task.id,\n type: task.type,\n status: \"failed\",\n data: {\n error: error instanceof Error ? error.message : String(error),\n },\n };\n }\n }\n\n const result: TaskResult = {\n ...partial,\n id: getRandomId(),\n executedAt: Date.now(),\n };\n\n await queue.pushResult(result);\n await queue.removeTask(task.id);\n results.push(result);\n }\n\n return results;\n}\n\n/**\n * Options for @see createTaskDependencies.\n */\nexport interface CreateTaskDependenciesOptions {\n walletRepository: WalletRepository;\n contractRepository: ContractRepository;\n indexerProvider: IndexerProvider;\n arkProvider: ArkProvider;\n}\n\n/**\n * Build the @see TaskDependencies needed by task processors\n * (e.g. `src/worker/expo/processors/contractPollProcessor.ts`)\n *\n * This is the same construction that `defineExpoBackgroundTask` does\n * internally, extracted so that consumers with custom schedulers\n * (e.g. bare React Native with `react-native-background-fetch`)\n * can build deps without depending on Expo.\n */\nexport function createTaskDependencies(options: CreateTaskDependenciesOptions): TaskDependencies {\n return {\n ...options,\n extendVtxo: (vtxo: VirtualCoin, contract: Contract) =>\n extendVirtualCoinForContract(vtxo, contract),\n };\n}\n","import type { TaskItem, TaskResult } from \"../taskQueue\";\nimport type { TaskProcessor, TaskDependencies } from \"../taskRunner\";\nimport type { ExtendedVirtualCoin } from \"../../../wallet\";\nimport {\n warnAndFilterVtxosForScript,\n saveVtxosForContract,\n} from \"../../../contracts/vtxoOwnership\";\n\nexport const CONTRACT_POLL_TASK_TYPE = \"contract-poll\";\n\n/**\n * Polls the indexer for the latest VTXO state of every contract and\n * persists the results to the wallet repository.\n *\n * Replicates the polling subset of @see ContractManager.initialize:\n * 1. Load all contracts from the contract repository.\n * 2. Paginated fetch of every VTXO (including spent) from the indexer.\n * 3. Extend each VTXO with tapscript data.\n * 4. Save to the wallet repository.\n *\n * NOTE: the indexer query deliberately omits `spendableOnly`. Every\n * repository implements `saveVtxos` as an upsert with no batch delete,\n * so filtering to spendable-only would leave VTXOs that became spent\n * between polls marked as spendable forever. Fetching the full set lets\n * the upsert overwrite stale records with their latest state.\n */\nexport const contractPollProcessor: TaskProcessor = {\n taskType: CONTRACT_POLL_TASK_TYPE,\n\n async execute(\n item: TaskItem,\n deps: TaskDependencies,\n ): Promise<Omit<TaskResult, \"id\" | \"executedAt\">> {\n const { contractRepository, walletRepository, indexerProvider, extendVtxo } = deps;\n\n const contracts = await contractRepository.getContracts();\n let contractsProcessed = 0;\n let vtxosSaved = 0;\n\n for (const contract of contracts) {\n // Paginated fetch of spendable virtual outputs\n const pageSize = 100;\n let pageIndex = 0;\n let hasMore = true;\n const allVtxos: ExtendedVirtualCoin[] = [];\n\n while (hasMore) {\n const { vtxos, page } = await indexerProvider.getVtxos({\n scripts: [contract.script],\n pageIndex,\n pageSize,\n });\n\n for (const vtxo of vtxos) {\n allVtxos.push(extendVtxo(vtxo, contract));\n }\n\n hasMore = page ? vtxos.length === pageSize : false;\n pageIndex++;\n }\n\n // Skip wrong-script rows (legacy duplicates or indexer drift)\n // before persisting; the loop must keep going for the remaining\n // contracts even when one row is rejected.\n const filtered = warnAndFilterVtxosForScript(\n allVtxos,\n contract.script,\n \"contractPollProcessor\",\n );\n await saveVtxosForContract(walletRepository, contract, filtered);\n vtxosSaved += filtered.length;\n contractsProcessed++;\n }\n\n return {\n taskItemId: item.id,\n type: CONTRACT_POLL_TASK_TYPE,\n status: \"success\",\n data: { contractsProcessed, vtxosSaved },\n };\n },\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/worker/expo/taskRunner.ts","../src/worker/expo/processors/contractPollProcessor.ts"],"names":["getRandomId","extendVirtualCoinForContract","warnAndFilterVtxosForScript","saveVtxosForContract"],"mappings":";;;;;AAkDA,eAAsB,QAAA,CAClB,KAAA,EACA,UAAA,EACA,IAAA,EACqB;AACrB,EAAA,MAAM,KAAA,GAAQ,MAAM,KAAA,CAAM,QAAA,EAAS;AACnC,EAAA,MAAM,YAAA,GAAe,IAAI,GAAA,CAAI,UAAA,CAAW,GAAA,CAAI,CAAC,CAAA,KAAM,CAAC,CAAA,CAAE,QAAA,EAAU,CAAC,CAAC,CAAC,CAAA;AACnE,EAAA,MAAM,UAAwB,EAAC;AAE/B,EAAA,KAAA,MAAW,QAAQ,KAAA,EAAO;AACtB,IAAA,MAAM,SAAA,GAAY,YAAA,CAAa,GAAA,CAAI,IAAA,CAAK,IAAI,CAAA;AAE5C,IAAA,IAAI,OAAA;AAEJ,IAAA,IAAI,CAAC,SAAA,EAAW;AACZ,MAAA,OAAA,GAAU;AAAA,QACN,YAAY,IAAA,CAAK,EAAA;AAAA,QACjB,MAAM,IAAA,CAAK,IAAA;AAAA,QACX,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TaskResult, TaskQueue } from \"./taskQueue\";\nimport type { WalletRepository } from \"../../repositories/walletRepository\";\nimport type { ContractRepository } from \"../../repositories/contractRepository\";\nimport type { IndexerProvider } from \"../../providers/indexer\";\nimport type { ArkProvider } from \"../../providers/ark\";\nimport type { ExtendedVirtualCoin, VirtualCoin } from \"../../wallet\";\nimport type { Contract } from \"../../contracts/types\";\nimport { getRandomId, extendVirtualCoinForContract } from \"../../wallet/utils\";\n\n/**\n * Shared dependencies injected into every processor at runtime.\n *\n * `extendVtxo` requires the owning contract — processors must resolve each\n * vtxo's `script` to a known contract (via the contract repository) before\n * calling this. The strict signature prevents the footgun where a missing\n * contract silently falls back to the wallet's default tapscript.\n */\nexport interface TaskDependencies {\n walletRepository: WalletRepository;\n contractRepository: ContractRepository;\n indexerProvider: IndexerProvider;\n arkProvider: ArkProvider;\n extendVtxo: (vtxo: VirtualCoin, contract: Contract) => ExtendedVirtualCoin;\n}\n\n/**\n * A stateless unit that handles one type of task item.\n *\n * Processors must not keep in-memory state across invocations —\n * all coordination lives in the @see TaskQueue and repositories.\n *\n * The `TDeps` parameter defaults to @see TaskDependencies but\n * can be overridden for domain-specific processors (e.g. swap processing).\n */\nexport interface TaskProcessor<TDeps = TaskDependencies> {\n readonly taskType: string;\n execute(item: TaskItem, deps: TDeps): Promise<Omit<TaskResult, \"id\" | \"executedAt\">>;\n}\n\n/**\n * Run all pending tasks from the queue through matching processors.\n *\n * For each task in the inbox:\n * 1. Find the processor whose `taskType` matches `task.type`.\n * 2. Execute it, producing a @see TaskResult.\n * 3. Push the result to the outbox and remove the task from the inbox.\n *\n * Tasks with no matching processor produce a `\"noop\"` result.\n * Processor errors produce a `\"failed\"` result with the error message.\n */\nexport async function runTasks<TDeps = TaskDependencies>(\n queue: TaskQueue,\n processors: TaskProcessor<TDeps>[],\n deps: TDeps,\n): Promise<TaskResult[]> {\n const tasks = await queue.getTasks();\n const processorMap = new Map(processors.map((p) => [p.taskType, p]));\n const results: TaskResult[] = [];\n\n for (const task of tasks) {\n const processor = processorMap.get(task.type);\n\n let partial: Omit<TaskResult, \"id\" | \"executedAt\">;\n\n if (!processor) {\n partial = {\n taskItemId: task.id,\n type: task.type,\n status: \"noop\",\n };\n } else {\n try {\n partial = await processor.execute(task, deps);\n } catch (error) {\n partial = {\n taskItemId: task.id,\n type: task.type,\n status: \"failed\",\n data: {\n error: error instanceof Error ? error.message : String(error),\n },\n };\n }\n }\n\n const result: TaskResult = {\n ...partial,\n id: getRandomId(),\n executedAt: Date.now(),\n };\n\n await queue.pushResult(result);\n await queue.removeTask(task.id);\n results.push(result);\n }\n\n return results;\n}\n\n/**\n * Options for @see createTaskDependencies.\n */\nexport interface CreateTaskDependenciesOptions {\n walletRepository: WalletRepository;\n contractRepository: ContractRepository;\n indexerProvider: IndexerProvider;\n arkProvider: ArkProvider;\n}\n\n/**\n * Build the @see TaskDependencies needed by task processors\n * (e.g. `src/worker/expo/processors/contractPollProcessor.ts`)\n *\n * This is the same construction that `defineExpoBackgroundTask` does\n * internally, extracted so that consumers with custom schedulers\n * (e.g. bare React Native with `react-native-background-fetch`)\n * can build deps without depending on Expo.\n */\nexport function createTaskDependencies(options: CreateTaskDependenciesOptions): TaskDependencies {\n return {\n ...options,\n extendVtxo: (vtxo: VirtualCoin, contract: Contract) =>\n extendVirtualCoinForContract(vtxo, contract),\n };\n}\n","import type { TaskItem, TaskResult } from \"../taskQueue\";\nimport type { TaskProcessor, TaskDependencies } from \"../taskRunner\";\nimport type { ExtendedVirtualCoin } from \"../../../wallet\";\nimport {\n warnAndFilterVtxosForScript,\n saveVtxosForContract,\n} from \"../../../contracts/vtxoOwnership\";\n\nexport const CONTRACT_POLL_TASK_TYPE = \"contract-poll\";\n\n/**\n * Polls the indexer for the latest VTXO state of every contract and\n * persists the results to the wallet repository.\n *\n * Replicates the polling subset of @see ContractManager.initialize:\n * 1. Load all contracts from the contract repository.\n * 2. Paginated fetch of every VTXO (including spent) from the indexer.\n * 3. Extend each VTXO with tapscript data.\n * 4. Save to the wallet repository.\n *\n * NOTE: the indexer query deliberately omits `spendableOnly`. Every\n * repository implements `saveVtxos` as an upsert with no batch delete,\n * so filtering to spendable-only would leave VTXOs that became spent\n * between polls marked as spendable forever. Fetching the full set lets\n * the upsert overwrite stale records with their latest state.\n */\nexport const contractPollProcessor: TaskProcessor = {\n taskType: CONTRACT_POLL_TASK_TYPE,\n\n async execute(\n item: TaskItem,\n deps: TaskDependencies,\n ): Promise<Omit<TaskResult, \"id\" | \"executedAt\">> {\n const { contractRepository, walletRepository, indexerProvider, extendVtxo } = deps;\n\n const contracts = await contractRepository.getContracts();\n let contractsProcessed = 0;\n let vtxosSaved = 0;\n\n for (const contract of contracts) {\n // Paginated fetch of spendable virtual outputs\n const pageSize = 100;\n let pageIndex = 0;\n let hasMore = true;\n const allVtxos: ExtendedVirtualCoin[] = [];\n\n while (hasMore) {\n const { vtxos, page } = await indexerProvider.getVtxos({\n scripts: [contract.script],\n pageIndex,\n pageSize,\n });\n\n for (const vtxo of vtxos) {\n allVtxos.push(extendVtxo(vtxo, contract));\n }\n\n hasMore = page ? vtxos.length === pageSize : false;\n pageIndex++;\n }\n\n // Skip wrong-script rows (legacy duplicates or indexer drift)\n // before persisting; the loop must keep going for the remaining\n // contracts even when one row is rejected.\n const filtered = warnAndFilterVtxosForScript(\n allVtxos,\n contract.script,\n \"contractPollProcessor\",\n );\n await saveVtxosForContract(walletRepository, contract, filtered);\n vtxosSaved += filtered.length;\n contractsProcessed++;\n }\n\n return {\n taskItemId: item.id,\n type: CONTRACT_POLL_TASK_TYPE,\n status: \"success\",\n data: { contractsProcessed, vtxosSaved },\n };\n },\n};\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { D as DefaultContractHandler, a as DefaultContractParams, b as DelegateContractHandler, c as DelegateContractParams, d as VHTLCContractHandler, e as VHTLCContractParams, f as contractHandlers } from '../../index-
|
|
2
|
-
import '../../ark-
|
|
1
|
+
export { D as DefaultContractHandler, a as DefaultContractParams, b as DelegateContractHandler, c as DelegateContractParams, d as VHTLCContractHandler, e as VHTLCContractParams, f as contractHandlers } from '../../index-C-5Tw7VA.cjs';
|
|
2
|
+
import '../../ark-ibLW4Hte.cjs';
|
|
3
3
|
import '@scure/btc-signer/transaction.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
6
6
|
import '@scure/btc-signer';
|
|
7
|
-
import '../../delegate-
|
|
7
|
+
import '../../delegate-BvNTw44a.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { D as DefaultContractHandler, a as DefaultContractParams, b as DelegateContractHandler, c as DelegateContractParams, d as VHTLCContractHandler, e as VHTLCContractParams, f as contractHandlers } from '../../index-
|
|
2
|
-
import '../../ark-
|
|
1
|
+
export { D as DefaultContractHandler, a as DefaultContractParams, b as DelegateContractHandler, c as DelegateContractParams, d as VHTLCContractHandler, e as VHTLCContractParams, f as contractHandlers } from '../../index-BusKawmy.js';
|
|
2
|
+
import '../../ark-ibLW4Hte.js';
|
|
3
3
|
import '@scure/btc-signer/transaction.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
6
6
|
import '@scure/btc-signer';
|
|
7
|
-
import '../../delegate-
|
|
7
|
+
import '../../delegate-BXaR1RNG.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
2
|
-
import { o as RelativeTimelock, V as VtxoScript, p as TapLeafScript } from './ark-
|
|
2
|
+
import { o as RelativeTimelock, V as VtxoScript, p as TapLeafScript } from './ark-ibLW4Hte.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DefaultVtxo is the default implementation of a VtxoScript.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
2
|
-
import { o as RelativeTimelock, V as VtxoScript, p as TapLeafScript } from './ark-
|
|
2
|
+
import { o as RelativeTimelock, V as VtxoScript, p as TapLeafScript } from './ark-ibLW4Hte.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DefaultVtxo is the default implementation of a VtxoScript.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as RelativeTimelock, V as VtxoScript, p as TapLeafScript,
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { o as RelativeTimelock, V as VtxoScript, p as TapLeafScript, aM as ContractHandler, aV as Discoverable } from './ark-ibLW4Hte.js';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-BXaR1RNG.js';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/** Virtual Hash Time Lock Contract (VHTLC) namespace. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as RelativeTimelock, V as VtxoScript, p as TapLeafScript,
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { o as RelativeTimelock, V as VtxoScript, p as TapLeafScript, aM as ContractHandler, aV as Discoverable } from './ark-ibLW4Hte.cjs';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-BvNTw44a.cjs';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/** Virtual Hash Time Lock Contract (VHTLC) namespace. */
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGPZH5QNA_cjs = require('./chunk-GPZH5QNA.cjs');
|
|
4
4
|
var chunk6FLL2Q36_cjs = require('./chunk-6FLL2Q36.cjs');
|
|
5
5
|
var chunkIEO3XDKI_cjs = require('./chunk-IEO3XDKI.cjs');
|
|
6
6
|
var chunkWMIPYZSB_cjs = require('./chunk-WMIPYZSB.cjs');
|
|
@@ -10,343 +10,343 @@ require('./chunk-5BLDMQED.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "ArkNote", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkGPZH5QNA_cjs.ArkNote; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "AssetManager", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkGPZH5QNA_cjs.AssetManager; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "BIP322", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkGPZH5QNA_cjs.BIP322; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "Batch", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkGPZH5QNA_cjs.Batch; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "ContractManager", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkGPZH5QNA_cjs.ContractManager; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ContractRepositoryImpl", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkGPZH5QNA_cjs.ContractRepositoryImpl; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "ContractWatcher", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkGPZH5QNA_cjs.ContractWatcher; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "DEFAULT_MESSAGE_TIMEOUTS", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkGPZH5QNA_cjs.DEFAULT_MESSAGE_TIMEOUTS; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "DelegateManagerImpl", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkGPZH5QNA_cjs.DelegateManagerImpl; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "DelegateNotConfiguredError", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkGPZH5QNA_cjs.DelegateNotConfiguredError; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "DelegatorManagerImpl", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkGPZH5QNA_cjs.DelegatorManagerImpl; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "DelegatorNotConfiguredError", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkGPZH5QNA_cjs.DelegatorNotConfiguredError; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "DescriptorSigningProviderMissingError", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkGPZH5QNA_cjs.DescriptorSigningProviderMissingError; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "DustChangeError", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkGPZH5QNA_cjs.DustChangeError; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "ELECTRUM_TCP_HOST", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkGPZH5QNA_cjs.ELECTRUM_TCP_HOST; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "ELECTRUM_WS_URL", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkGPZH5QNA_cjs.ELECTRUM_WS_URL; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "ESPLORA_URL", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkGPZH5QNA_cjs.ESPLORA_URL; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "ElectrumOnchainProvider", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkGPZH5QNA_cjs.ElectrumOnchainProvider; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "EsploraProvider", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkGPZH5QNA_cjs.EsploraProvider; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "Estimator", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkGPZH5QNA_cjs.Estimator; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "HDDescriptorProvider", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkGPZH5QNA_cjs.HDDescriptorProvider; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "InMemoryContractRepository", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkGPZH5QNA_cjs.InMemoryContractRepository; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "InMemoryWalletRepository", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkGPZH5QNA_cjs.InMemoryWalletRepository; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "IndexedDBContractRepository", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkGPZH5QNA_cjs.IndexedDBContractRepository; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "IndexedDBWalletRepository", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkGPZH5QNA_cjs.IndexedDBWalletRepository; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "MESSAGE_BUS_NOT_INITIALIZED", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkGPZH5QNA_cjs.MESSAGE_BUS_NOT_INITIALIZED; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "MIGRATION_KEY", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkGPZH5QNA_cjs.MIGRATION_KEY; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "MessageBus", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkGPZH5QNA_cjs.MessageBus; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "MessageBusNotInitializedError", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkGPZH5QNA_cjs.MessageBusNotInitializedError; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "MissingSigningDescriptorError", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkGPZH5QNA_cjs.MissingSigningDescriptorError; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "MnemonicIdentity", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkGPZH5QNA_cjs.MnemonicIdentity; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "OnchainWallet", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkGPZH5QNA_cjs.OnchainWallet; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "P2A", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkGPZH5QNA_cjs.P2A; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "Ramps", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkGPZH5QNA_cjs.Ramps; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "ReadonlyAssetManager", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkGPZH5QNA_cjs.ReadonlyAssetManager; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "ReadonlyDescriptorIdentity", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkGPZH5QNA_cjs.ReadonlyDescriptorIdentity; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "ReadonlySingleKey", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkGPZH5QNA_cjs.ReadonlySingleKey; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "ReadonlyWallet", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkGPZH5QNA_cjs.ReadonlyWallet; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "ReadonlyWalletError", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkGPZH5QNA_cjs.ReadonlyWalletError; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "RestDelegateProvider", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkGPZH5QNA_cjs.RestDelegateProvider; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "RestDelegatorProvider", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkGPZH5QNA_cjs.RestDelegatorProvider; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "SeedIdentity", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkGPZH5QNA_cjs.SeedIdentity; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "ServiceWorkerReadonlyWallet", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkGPZH5QNA_cjs.ServiceWorkerReadonlyWallet; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "ServiceWorkerTimeoutError", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkGPZH5QNA_cjs.ServiceWorkerTimeoutError; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "ServiceWorkerWallet", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkGPZH5QNA_cjs.ServiceWorkerWallet; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "SingleKey", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkGPZH5QNA_cjs.SingleKey; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "TxTree", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkGPZH5QNA_cjs.TxTree; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "TxType", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkGPZH5QNA_cjs.TxType; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "TxWeightEstimator", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkGPZH5QNA_cjs.TxWeightEstimator; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "Unroll", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkGPZH5QNA_cjs.Unroll; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "VtxoManager", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkGPZH5QNA_cjs.VtxoManager; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "Wallet", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkGPZH5QNA_cjs.Wallet; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "WalletMessageHandler", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkGPZH5QNA_cjs.WalletMessageHandler; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "WalletNotInitializedError", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkGPZH5QNA_cjs.WalletNotInitializedError; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "WalletRepositoryImpl", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkGPZH5QNA_cjs.WalletRepositoryImpl; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "WsElectrumChainSource", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkGPZH5QNA_cjs.WsElectrumChainSource; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "buildForfeitTx", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkGPZH5QNA_cjs.buildForfeitTx; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "buildOffchainTx", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkGPZH5QNA_cjs.buildOffchainTx; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "closeDatabase", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkGPZH5QNA_cjs.closeDatabase; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "combineTapscriptSigs", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkGPZH5QNA_cjs.combineTapscriptSigs; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "contractFromArkContract", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkGPZH5QNA_cjs.contractFromArkContract; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "contractFromArkContractWithAddress", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkGPZH5QNA_cjs.contractFromArkContractWithAddress; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "decodeArkContract", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkGPZH5QNA_cjs.decodeArkContract; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "encodeArkContract", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkGPZH5QNA_cjs.encodeArkContract; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "getMigrationStatus", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkGPZH5QNA_cjs.getMigrationStatus; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "getRandomId", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkGPZH5QNA_cjs.getRandomId; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "hasBoardingTxExpired", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkGPZH5QNA_cjs.hasBoardingTxExpired; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "isArkContract", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkGPZH5QNA_cjs.isArkContract; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "isBatchSignable", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkGPZH5QNA_cjs.isBatchSignable; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "isDiscoverable", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkGPZH5QNA_cjs.isDiscoverable; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "isExpired", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkGPZH5QNA_cjs.isExpired; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "isRecoverable", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkGPZH5QNA_cjs.isRecoverable; }
|
|
298
298
|
});
|
|
299
299
|
Object.defineProperty(exports, "isSpendable", {
|
|
300
300
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunkGPZH5QNA_cjs.isSpendable; }
|
|
302
302
|
});
|
|
303
303
|
Object.defineProperty(exports, "isSubdust", {
|
|
304
304
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkGPZH5QNA_cjs.isSubdust; }
|
|
306
306
|
});
|
|
307
307
|
Object.defineProperty(exports, "isValidArkAddress", {
|
|
308
308
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkGPZH5QNA_cjs.isValidArkAddress; }
|
|
310
310
|
});
|
|
311
311
|
Object.defineProperty(exports, "isVtxoExpiringSoon", {
|
|
312
312
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkGPZH5QNA_cjs.isVtxoExpiringSoon; }
|
|
314
314
|
});
|
|
315
315
|
Object.defineProperty(exports, "migrateWalletRepository", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunkGPZH5QNA_cjs.migrateWalletRepository; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "openDatabase", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunkGPZH5QNA_cjs.openDatabase; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "requiresMigration", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunkGPZH5QNA_cjs.requiresMigration; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "rollbackMigration", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunkGPZH5QNA_cjs.rollbackMigration; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "setupServiceWorker", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunkGPZH5QNA_cjs.setupServiceWorker; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "validateConnectorsTxGraph", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunkGPZH5QNA_cjs.validateConnectorsTxGraph; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "validateVtxoTxGraph", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunkGPZH5QNA_cjs.validateVtxoTxGraph; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "verifyTapscriptSignatures", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkGPZH5QNA_cjs.verifyTapscriptSignatures; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "waitForIncomingFunds", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkGPZH5QNA_cjs.waitForIncomingFunds; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "ArkError", {
|
|
352
352
|
enumerable: true,
|