@arkade-os/sdk 0.5.7 → 0.5.8
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/README.md +2 -2
- package/dist/adapters/expo.cjs +6 -6
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/{asyncStorageTaskQueue-B9byr6ij.d.cts → asyncStorageTaskQueue-B5NPtkXo.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-XP4CCdRY.d.ts → asyncStorageTaskQueue-YPwiJyVA.d.ts} +2 -2
- package/dist/{chunk-V2DDN4MV.js → chunk-3F5AJ235.js} +4 -4
- package/dist/{chunk-V2DDN4MV.js.map → chunk-3F5AJ235.js.map} +1 -1
- package/dist/{chunk-3NALVGMJ.cjs → chunk-4IDCSOP2.cjs} +22 -16
- package/dist/chunk-4IDCSOP2.cjs.map +1 -0
- package/dist/{chunk-JFJNB7ZH.cjs → chunk-5PWL7WOT.cjs} +7 -5
- package/dist/chunk-5PWL7WOT.cjs.map +1 -0
- package/dist/{chunk-MWMO2ZQP.js → chunk-E7LKKEVR.js} +10 -4
- package/dist/chunk-E7LKKEVR.js.map +1 -0
- package/dist/{chunk-URGVQ5TQ.cjs → chunk-EQ3JVVUR.cjs} +599 -547
- package/dist/chunk-EQ3JVVUR.cjs.map +1 -0
- package/dist/{chunk-MWEDDWFU.js → chunk-F5O6JI2H.js} +8 -6
- package/dist/chunk-F5O6JI2H.js.map +1 -0
- package/dist/{chunk-4AJRIM44.js → chunk-H7GT3QC4.js} +4 -4
- package/dist/{chunk-4AJRIM44.js.map → chunk-H7GT3QC4.js.map} +1 -1
- package/dist/{chunk-MXCB6EVM.cjs → chunk-JQSHFSME.cjs} +19 -17
- package/dist/chunk-JQSHFSME.cjs.map +1 -0
- package/dist/{chunk-MQUATTIM.cjs → chunk-JYQXB7OH.cjs} +19 -19
- package/dist/{chunk-MQUATTIM.cjs.map → chunk-JYQXB7OH.cjs.map} +1 -1
- package/dist/{chunk-V5WRO3P6.cjs → chunk-KWR37J6L.cjs} +10 -10
- package/dist/{chunk-V5WRO3P6.cjs.map → chunk-KWR37J6L.cjs.map} +1 -1
- package/dist/{chunk-X6ZI53DZ.cjs → chunk-L7OOPAUG.cjs} +14 -26
- package/dist/chunk-L7OOPAUG.cjs.map +1 -0
- package/dist/{chunk-RLD7DRSZ.js → chunk-OLKZUJIN.js} +127 -75
- package/dist/chunk-OLKZUJIN.js.map +1 -0
- package/dist/{chunk-OMPDPBT5.cjs → chunk-SOJDUKY6.cjs} +271 -225
- package/dist/chunk-SOJDUKY6.cjs.map +1 -0
- package/dist/{chunk-V3ZLL5VY.js → chunk-U34GU5RM.js} +9 -21
- package/dist/chunk-U34GU5RM.js.map +1 -0
- package/dist/{chunk-DNFTHG73.js → chunk-XXNPX4MK.js} +7 -5
- package/dist/chunk-XXNPX4MK.js.map +1 -0
- package/dist/{chunk-VMVFRTF4.js → chunk-YTOABP6J.js} +268 -226
- package/dist/chunk-YTOABP6J.js.map +1 -0
- package/dist/compiler.cjs +3 -3
- package/dist/compiler.d.cts +1 -1
- package/dist/compiler.d.ts +1 -1
- package/dist/compiler.js +2 -2
- package/dist/contracts/handlers/index.cjs +10 -10
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +3 -3
- package/dist/{index-Ccfhdfvj.d.cts → index-CKzBYoDa.d.cts} +2 -2
- package/dist/{index-B_kcptF8.d.ts → index-COs69e8T.d.ts} +2 -2
- package/dist/{index-18cDMayF.d.ts → index-Pk3i_MMU.d.ts} +12 -2
- package/dist/{index-DDJFHfba.d.cts → index-czozpKPT.d.cts} +12 -2
- package/dist/index.cjs +325 -321
- package/dist/index.d.cts +52 -23
- package/dist/index.d.ts +52 -23
- package/dist/index.js +6 -6
- package/dist/{keyringDescriptorProvider-DL-jAiRO.d.ts → keyringDescriptorProvider-CbNzWwbS.d.ts} +15 -2
- package/dist/{keyringDescriptorProvider-Dtv0JWrT.d.cts → keyringDescriptorProvider-nC8fIjBN.d.cts} +15 -2
- package/dist/{program-BARSNg3X.d.ts → program-38A2Twvj.d.ts} +4 -2
- package/dist/{program-znrWkxE4.d.cts → program-DPzf5qsk.d.cts} +4 -2
- package/dist/repositories/realm/index.cjs +39 -39
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +7 -7
- package/dist/repositories/sqlite/index.cjs +37 -37
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +7 -7
- package/dist/{taskRunner-DUafWu0o.d.ts → taskRunner-DBOqvP33.d.ts} +2 -2
- package/dist/{taskRunner-JYHaLPne.d.cts → taskRunner-DXivOJHc.d.cts} +2 -2
- package/dist/wallet/expo/background.cjs +16 -16
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +8 -8
- package/dist/wallet/expo/index.cjs +17 -17
- package/dist/wallet/expo/index.d.cts +3 -3
- package/dist/wallet/expo/index.d.ts +3 -3
- package/dist/wallet/expo/index.js +7 -7
- package/dist/worker/expo/index.cjs +11 -11
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +7 -7
- package/package.json +1 -1
- package/dist/chunk-3NALVGMJ.cjs.map +0 -1
- package/dist/chunk-DNFTHG73.js.map +0 -1
- package/dist/chunk-JFJNB7ZH.cjs.map +0 -1
- package/dist/chunk-MWEDDWFU.js.map +0 -1
- package/dist/chunk-MWMO2ZQP.js.map +0 -1
- package/dist/chunk-MXCB6EVM.cjs.map +0 -1
- package/dist/chunk-OMPDPBT5.cjs.map +0 -1
- package/dist/chunk-RLD7DRSZ.js.map +0 -1
- package/dist/chunk-URGVQ5TQ.cjs.map +0 -1
- package/dist/chunk-V3ZLL5VY.js.map +0 -1
- package/dist/chunk-VMVFRTF4.js.map +0 -1
- package/dist/chunk-X6ZI53DZ.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, Q as AtomicWalletState, P as PageRequest, B as Outpoint, D as PageResult, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, U as WalletState, C as ContractRepository, X as ContractFilter, y as Contract, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-
|
|
2
|
-
export { a2 as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, Q as AtomicWalletState, P as PageRequest, B as Outpoint, D as PageResult, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, U as WalletState, C as ContractRepository, X as ContractFilter, y as Contract, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-Pk3i_MMU.js';
|
|
2
|
+
export { a2 as ChainedTxType } from '../../index-Pk3i_MMU.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { legacyVtxoFacts, serializeVtxo, createdAtToIso, assertPageRequest, pageResult, checkSaveVtxosForScript, utxoEntries, serializeUtxo, assertHistoryPageFilter, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, contractFilterMatchesNothing, scopeOf, intentMatchesFilter, isTerminalBatchRegistrationState, applyWalletStateUpdate, mergeChainedTxType } from '../../chunk-
|
|
2
|
-
export { ChainedTxType } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import { isVtxoSpent } from '../../chunk-
|
|
1
|
+
import { legacyVtxoFacts, serializeVtxo, createdAtToIso, assertPageRequest, pageResult, checkSaveVtxosForScript, utxoEntries, serializeUtxo, assertHistoryPageFilter, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, contractFilterMatchesNothing, scopeOf, intentMatchesFilter, isTerminalBatchRegistrationState, applyWalletStateUpdate, mergeChainedTxType } from '../../chunk-OLKZUJIN.js';
|
|
2
|
+
export { ChainedTxType } from '../../chunk-OLKZUJIN.js';
|
|
3
|
+
import '../../chunk-U34GU5RM.js';
|
|
4
|
+
import '../../chunk-E7LKKEVR.js';
|
|
5
|
+
import '../../chunk-3F5AJ235.js';
|
|
6
|
+
import '../../chunk-XXNPX4MK.js';
|
|
7
|
+
import { isVtxoSpent } from '../../chunk-YTOABP6J.js';
|
|
8
8
|
import '../../chunk-FDJ734CH.js';
|
|
9
9
|
|
|
10
10
|
// src/repositories/sqlite/transaction.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, x as OperatorProvider, V as VirtualCoin, y as Contract, z as ExtendedVirtualCoin } from './index-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, x as OperatorProvider, V as VirtualCoin, y as Contract, z as ExtendedVirtualCoin } from './index-Pk3i_MMU.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A task item represents a unit of work in the inbox.
|
|
@@ -111,4 +111,4 @@ interface CreateTaskDependenciesOptions {
|
|
|
111
111
|
*/
|
|
112
112
|
declare function createTaskDependencies(options: CreateTaskDependenciesOptions): TaskDependencies;
|
|
113
113
|
|
|
114
|
-
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type
|
|
114
|
+
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type TaskQueue as a, type TaskDependencies as b, type TaskItem as c, type TaskResult as d, createTaskDependencies as e, runTasks as r };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, x as OperatorProvider, V as VirtualCoin, y as Contract, z as ExtendedVirtualCoin } from './index-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, x as OperatorProvider, V as VirtualCoin, y as Contract, z as ExtendedVirtualCoin } from './index-czozpKPT.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A task item represents a unit of work in the inbox.
|
|
@@ -111,4 +111,4 @@ interface CreateTaskDependenciesOptions {
|
|
|
111
111
|
*/
|
|
112
112
|
declare function createTaskDependencies(options: CreateTaskDependenciesOptions): TaskDependencies;
|
|
113
113
|
|
|
114
|
-
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type
|
|
114
|
+
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type TaskQueue as a, type TaskDependencies as b, type TaskItem as c, type TaskResult as d, createTaskDependencies as e, runTasks as r };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
3
|
+
var chunkJQSHFSME_cjs = require('../../chunk-JQSHFSME.cjs');
|
|
4
|
+
var chunkKWR37J6L_cjs = require('../../chunk-KWR37J6L.cjs');
|
|
5
|
+
var chunkEQ3JVVUR_cjs = require('../../chunk-EQ3JVVUR.cjs');
|
|
6
|
+
require('../../chunk-L7OOPAUG.cjs');
|
|
7
|
+
require('../../chunk-4IDCSOP2.cjs');
|
|
8
|
+
require('../../chunk-JYQXB7OH.cjs');
|
|
9
|
+
require('../../chunk-5PWL7WOT.cjs');
|
|
10
|
+
require('../../chunk-SOJDUKY6.cjs');
|
|
11
11
|
require('../../chunk-FLPWNMX3.cjs');
|
|
12
12
|
var TaskManager = require('expo-task-manager');
|
|
13
13
|
var BackgroundTask = require('expo-background-task');
|
|
@@ -38,7 +38,7 @@ function defineExpoBackgroundTask(taskName, options) {
|
|
|
38
38
|
taskQueue,
|
|
39
39
|
walletRepository,
|
|
40
40
|
contractRepository,
|
|
41
|
-
processors = [
|
|
41
|
+
processors = [chunkKWR37J6L_cjs.contractPollProcessor]
|
|
42
42
|
} = options;
|
|
43
43
|
TaskManager__namespace.defineTask(taskName, async () => {
|
|
44
44
|
try {
|
|
@@ -46,24 +46,24 @@ function defineExpoBackgroundTask(taskName, options) {
|
|
|
46
46
|
if (!config) {
|
|
47
47
|
return BackgroundTask__namespace.BackgroundTaskResult.Success;
|
|
48
48
|
}
|
|
49
|
-
const indexerProvider = new
|
|
50
|
-
const arkProvider = new
|
|
51
|
-
const deps =
|
|
49
|
+
const indexerProvider = new chunkJQSHFSME_cjs.ExpoIndexerProvider(config.arkServerUrl);
|
|
50
|
+
const arkProvider = new chunkJQSHFSME_cjs.ExpoOperatorProvider(config.arkServerUrl);
|
|
51
|
+
const deps = chunkKWR37J6L_cjs.createTaskDependencies({
|
|
52
52
|
walletRepository,
|
|
53
53
|
contractRepository,
|
|
54
54
|
indexerProvider,
|
|
55
55
|
arkProvider
|
|
56
56
|
});
|
|
57
|
-
await
|
|
57
|
+
await chunkKWR37J6L_cjs.runTasks(taskQueue, processors, deps);
|
|
58
58
|
const results = await taskQueue.getResults();
|
|
59
59
|
if (results.length > 0) {
|
|
60
60
|
await taskQueue.acknowledgeResults(results.map((r) => r.id));
|
|
61
61
|
}
|
|
62
|
-
const existing = await taskQueue.getTasks(
|
|
62
|
+
const existing = await taskQueue.getTasks(chunkKWR37J6L_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
63
63
|
if (existing.length === 0) {
|
|
64
64
|
const task = {
|
|
65
|
-
id:
|
|
66
|
-
type:
|
|
65
|
+
id: chunkEQ3JVVUR_cjs.getRandomId(),
|
|
66
|
+
type: chunkKWR37J6L_cjs.CONTRACT_POLL_TASK_TYPE,
|
|
67
67
|
data: {},
|
|
68
68
|
createdAt: Date.now()
|
|
69
69
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository } from '../../index-
|
|
2
|
-
import {
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../index-czozpKPT.cjs';
|
|
2
|
+
import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-B5NPtkXo.cjs';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-DXivOJHc.cjs';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository } from '../../index-
|
|
2
|
-
import {
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../index-Pk3i_MMU.js';
|
|
2
|
+
import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-YPwiJyVA.js';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-DBOqvP33.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ExpoIndexerProvider, ExpoOperatorProvider } from '../../chunk-
|
|
2
|
-
import { contractPollProcessor, createTaskDependencies, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-
|
|
3
|
-
import { getRandomId } from '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
1
|
+
import { ExpoIndexerProvider, ExpoOperatorProvider } from '../../chunk-F5O6JI2H.js';
|
|
2
|
+
import { contractPollProcessor, createTaskDependencies, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-H7GT3QC4.js';
|
|
3
|
+
import { getRandomId } from '../../chunk-OLKZUJIN.js';
|
|
4
|
+
import '../../chunk-U34GU5RM.js';
|
|
5
|
+
import '../../chunk-E7LKKEVR.js';
|
|
6
|
+
import '../../chunk-3F5AJ235.js';
|
|
7
|
+
import '../../chunk-XXNPX4MK.js';
|
|
8
|
+
import '../../chunk-YTOABP6J.js';
|
|
9
9
|
import '../../chunk-FDJ734CH.js';
|
|
10
10
|
import * as TaskManager from 'expo-task-manager';
|
|
11
11
|
import * as BackgroundTask from 'expo-background-task';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
var
|
|
3
|
+
var chunkKWR37J6L_cjs = require('../../chunk-KWR37J6L.cjs');
|
|
4
|
+
var chunkEQ3JVVUR_cjs = require('../../chunk-EQ3JVVUR.cjs');
|
|
5
|
+
require('../../chunk-L7OOPAUG.cjs');
|
|
6
|
+
require('../../chunk-4IDCSOP2.cjs');
|
|
7
|
+
require('../../chunk-JYQXB7OH.cjs');
|
|
8
|
+
require('../../chunk-5PWL7WOT.cjs');
|
|
9
|
+
var chunkSOJDUKY6_cjs = require('../../chunk-SOJDUKY6.cjs');
|
|
10
10
|
require('../../chunk-FLPWNMX3.cjs');
|
|
11
11
|
var base = require('@scure/base');
|
|
12
12
|
|
|
@@ -59,20 +59,20 @@ var ExpoWallet = class _ExpoWallet {
|
|
|
59
59
|
* by the consumer.
|
|
60
60
|
*/
|
|
61
61
|
static async setup(config) {
|
|
62
|
-
|
|
62
|
+
chunkSOJDUKY6_cjs.assertTimerMs("foregroundIntervalMs", config.background.foregroundIntervalMs);
|
|
63
63
|
warnOnRemovedBackgroundFields(config.background);
|
|
64
|
-
const wallet = await
|
|
65
|
-
const processors = config.background.processors ?? [
|
|
64
|
+
const wallet = await chunkEQ3JVVUR_cjs.Wallet.create(config);
|
|
65
|
+
const processors = config.background.processors ?? [chunkKWR37J6L_cjs.contractPollProcessor];
|
|
66
66
|
const deps = {
|
|
67
67
|
walletRepository: wallet.walletRepository,
|
|
68
68
|
contractRepository: wallet.contractRepository,
|
|
69
69
|
indexerProvider: wallet.indexerProvider,
|
|
70
70
|
arkProvider: wallet.arkProvider,
|
|
71
|
-
extendVtxo: (vtxo, contract) =>
|
|
71
|
+
extendVtxo: (vtxo, contract) => chunkEQ3JVVUR_cjs.extendVirtualCoinForContract(vtxo, contract)
|
|
72
72
|
};
|
|
73
73
|
const { taskQueue } = config.background;
|
|
74
74
|
if ("persistConfig" in taskQueue) {
|
|
75
|
-
const arkServerUrl =
|
|
75
|
+
const arkServerUrl = chunkEQ3JVVUR_cjs.extractOperatorProviderUrl(wallet.arkProvider);
|
|
76
76
|
if (typeof arkServerUrl === "string" && arkServerUrl.length > 0) {
|
|
77
77
|
const timelock = wallet.offchainTapscript.options.csvTimelock;
|
|
78
78
|
const bgConfig = {
|
|
@@ -103,7 +103,7 @@ var ExpoWallet = class _ExpoWallet {
|
|
|
103
103
|
}
|
|
104
104
|
async runForegroundPoll() {
|
|
105
105
|
if (this.cleared) return;
|
|
106
|
-
await
|
|
106
|
+
await chunkKWR37J6L_cjs.runTasks(this.taskQueue, this.processors, this.deps);
|
|
107
107
|
const results = await this.taskQueue.getResults();
|
|
108
108
|
if (results.length > 0) {
|
|
109
109
|
await this.taskQueue.acknowledgeResults(results.map((r) => r.id));
|
|
@@ -112,18 +112,18 @@ var ExpoWallet = class _ExpoWallet {
|
|
|
112
112
|
await this.seedContractPollTask();
|
|
113
113
|
}
|
|
114
114
|
async seedContractPollTask() {
|
|
115
|
-
const existing = await this.taskQueue.getTasks(
|
|
115
|
+
const existing = await this.taskQueue.getTasks(chunkKWR37J6L_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
116
116
|
if (existing.length > 0) return;
|
|
117
117
|
const task = {
|
|
118
|
-
id:
|
|
119
|
-
type:
|
|
118
|
+
id: chunkEQ3JVVUR_cjs.getRandomId(),
|
|
119
|
+
type: chunkKWR37J6L_cjs.CONTRACT_POLL_TASK_TYPE,
|
|
120
120
|
data: {},
|
|
121
121
|
createdAt: Date.now()
|
|
122
122
|
};
|
|
123
123
|
await this.taskQueue.addTask(task);
|
|
124
124
|
}
|
|
125
125
|
async removeContractPollTasks() {
|
|
126
|
-
const tasks = await this.taskQueue.getTasks(
|
|
126
|
+
const tasks = await this.taskQueue.getTasks(chunkKWR37J6L_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
127
127
|
for (const task of tasks) {
|
|
128
128
|
await this.taskQueue.removeTask(task.id);
|
|
129
129
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Transaction } from '@scure/btc-signer';
|
|
2
|
-
import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../keyringDescriptorProvider-
|
|
3
|
-
import { I as IWallet, a as Identity, b as WalletConfig, G as GetOperatorInfoOptions, O as OperatorInfo, A as ArkadeReader, c as ArkadeBroadcaster, d as WalletBalance, e as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, f as GetSpendableVtxosFilter, E as ExtendedCoin, g as ArkTransaction, h as ActivityRegistry, i as Activity, j as IContractManager, k as GetNewAddressesOptions, l as NewAddress, m as IDelegateManager, S as SettleParams, n as SettlementEvent, o as SendParams, R as Recipient, p as SendOnchainParams, q as IAssetManager } from '../../index-
|
|
4
|
-
import {
|
|
2
|
+
import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../keyringDescriptorProvider-nC8fIjBN.cjs';
|
|
3
|
+
import { I as IWallet, a as Identity, b as WalletConfig, G as GetOperatorInfoOptions, O as OperatorInfo, A as ArkadeReader, c as ArkadeBroadcaster, d as WalletBalance, e as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, f as GetSpendableVtxosFilter, E as ExtendedCoin, g as ArkTransaction, h as ActivityRegistry, i as Activity, j as IContractManager, k as GetNewAddressesOptions, l as NewAddress, m as IDelegateManager, S as SettleParams, n as SettlementEvent, o as SendParams, R as Recipient, p as SendOnchainParams, q as IAssetManager } from '../../index-czozpKPT.cjs';
|
|
4
|
+
import { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-DXivOJHc.cjs';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
6
6
|
import '@scure/btc-signer/utils.js';
|
|
7
7
|
import '../../base-C-Y5t_0F.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Transaction } from '@scure/btc-signer';
|
|
2
|
-
import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../keyringDescriptorProvider-
|
|
3
|
-
import { I as IWallet, a as Identity, b as WalletConfig, G as GetOperatorInfoOptions, O as OperatorInfo, A as ArkadeReader, c as ArkadeBroadcaster, d as WalletBalance, e as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, f as GetSpendableVtxosFilter, E as ExtendedCoin, g as ArkTransaction, h as ActivityRegistry, i as Activity, j as IContractManager, k as GetNewAddressesOptions, l as NewAddress, m as IDelegateManager, S as SettleParams, n as SettlementEvent, o as SendParams, R as Recipient, p as SendOnchainParams, q as IAssetManager } from '../../index-
|
|
4
|
-
import {
|
|
2
|
+
import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../keyringDescriptorProvider-CbNzWwbS.js';
|
|
3
|
+
import { I as IWallet, a as Identity, b as WalletConfig, G as GetOperatorInfoOptions, O as OperatorInfo, A as ArkadeReader, c as ArkadeBroadcaster, d as WalletBalance, e as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, f as GetSpendableVtxosFilter, E as ExtendedCoin, g as ArkTransaction, h as ActivityRegistry, i as Activity, j as IContractManager, k as GetNewAddressesOptions, l as NewAddress, m as IDelegateManager, S as SettleParams, n as SettlementEvent, o as SendParams, R as Recipient, p as SendOnchainParams, q as IAssetManager } from '../../index-Pk3i_MMU.js';
|
|
4
|
+
import { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-DBOqvP33.js';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
6
6
|
import '@scure/btc-signer/utils.js';
|
|
7
7
|
import '../../base-C-Y5t_0F.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { contractPollProcessor, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-
|
|
2
|
-
import { Wallet, extractOperatorProviderUrl, getRandomId, extendVirtualCoinForContract } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import { assertTimerMs } from '../../chunk-
|
|
1
|
+
import { contractPollProcessor, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-H7GT3QC4.js';
|
|
2
|
+
import { Wallet, extractOperatorProviderUrl, getRandomId, extendVirtualCoinForContract } from '../../chunk-OLKZUJIN.js';
|
|
3
|
+
import '../../chunk-U34GU5RM.js';
|
|
4
|
+
import '../../chunk-E7LKKEVR.js';
|
|
5
|
+
import '../../chunk-3F5AJ235.js';
|
|
6
|
+
import '../../chunk-XXNPX4MK.js';
|
|
7
|
+
import { assertTimerMs } from '../../chunk-YTOABP6J.js';
|
|
8
8
|
import '../../chunk-FDJ734CH.js';
|
|
9
9
|
import { hex } from '@scure/base';
|
|
10
10
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
3
|
+
var chunkKWR37J6L_cjs = require('../../chunk-KWR37J6L.cjs');
|
|
4
|
+
require('../../chunk-EQ3JVVUR.cjs');
|
|
5
|
+
require('../../chunk-L7OOPAUG.cjs');
|
|
6
|
+
require('../../chunk-4IDCSOP2.cjs');
|
|
7
|
+
require('../../chunk-JYQXB7OH.cjs');
|
|
8
|
+
require('../../chunk-5PWL7WOT.cjs');
|
|
9
|
+
require('../../chunk-SOJDUKY6.cjs');
|
|
10
10
|
require('../../chunk-FLPWNMX3.cjs');
|
|
11
11
|
|
|
12
12
|
// src/worker/expo/taskQueue.ts
|
|
@@ -123,19 +123,19 @@ var AsyncStorageTaskQueue = class {
|
|
|
123
123
|
|
|
124
124
|
Object.defineProperty(exports, "CONTRACT_POLL_TASK_TYPE", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkKWR37J6L_cjs.CONTRACT_POLL_TASK_TYPE; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "contractPollProcessor", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkKWR37J6L_cjs.contractPollProcessor; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "createTaskDependencies", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkKWR37J6L_cjs.createTaskDependencies; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "runTasks", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkKWR37J6L_cjs.runTasks; }
|
|
139
139
|
});
|
|
140
140
|
exports.AsyncStorageTaskQueue = AsyncStorageTaskQueue;
|
|
141
141
|
exports.InMemoryTaskQueue = InMemoryTaskQueue;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
2
|
-
export { C as CreateTaskDependenciesOptions, I as InMemoryTaskQueue,
|
|
3
|
-
export {
|
|
4
|
-
import '../../index-
|
|
1
|
+
import { T as TaskProcessor } from '../../taskRunner-DXivOJHc.cjs';
|
|
2
|
+
export { C as CreateTaskDependenciesOptions, I as InMemoryTaskQueue, b as TaskDependencies, c as TaskItem, a as TaskQueue, d as TaskResult, e as createTaskDependencies, r as runTasks } from '../../taskRunner-DXivOJHc.cjs';
|
|
3
|
+
export { a as AsyncStorageLike, A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-B5NPtkXo.cjs';
|
|
4
|
+
import '../../index-czozpKPT.cjs';
|
|
5
5
|
import '@scure/btc-signer/utils.js';
|
|
6
6
|
import '@scure/btc-signer';
|
|
7
7
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
2
|
-
export { C as CreateTaskDependenciesOptions, I as InMemoryTaskQueue,
|
|
3
|
-
export {
|
|
4
|
-
import '../../index-
|
|
1
|
+
import { T as TaskProcessor } from '../../taskRunner-DBOqvP33.js';
|
|
2
|
+
export { C as CreateTaskDependenciesOptions, I as InMemoryTaskQueue, b as TaskDependencies, c as TaskItem, a as TaskQueue, d as TaskResult, e as createTaskDependencies, r as runTasks } from '../../taskRunner-DBOqvP33.js';
|
|
3
|
+
export { a as AsyncStorageLike, A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-YPwiJyVA.js';
|
|
4
|
+
import '../../index-Pk3i_MMU.js';
|
|
5
5
|
import '@scure/btc-signer/utils.js';
|
|
6
6
|
import '@scure/btc-signer';
|
|
7
7
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { CONTRACT_POLL_TASK_TYPE, contractPollProcessor, createTaskDependencies, runTasks } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
1
|
+
export { CONTRACT_POLL_TASK_TYPE, contractPollProcessor, createTaskDependencies, runTasks } from '../../chunk-H7GT3QC4.js';
|
|
2
|
+
import '../../chunk-OLKZUJIN.js';
|
|
3
|
+
import '../../chunk-U34GU5RM.js';
|
|
4
|
+
import '../../chunk-E7LKKEVR.js';
|
|
5
|
+
import '../../chunk-3F5AJ235.js';
|
|
6
|
+
import '../../chunk-XXNPX4MK.js';
|
|
7
|
+
import '../../chunk-YTOABP6J.js';
|
|
8
8
|
import '../../chunk-FDJ734CH.js';
|
|
9
9
|
|
|
10
10
|
// src/worker/expo/taskQueue.ts
|