@arkade-os/sdk 0.5.7 → 0.5.9
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 +24 -6
- package/dist/adapters/expo.cjs +7 -7
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +4 -4
- package/dist/{asyncStorageTaskQueue-B9byr6ij.d.cts → asyncStorageTaskQueue-B6rFkXzW.d.cts} +1 -1
- package/dist/{asyncStorageTaskQueue-XP4CCdRY.d.ts → asyncStorageTaskQueue-C0irgPwJ.d.ts} +1 -1
- package/dist/{chunk-MWEDDWFU.js → chunk-2657D67V.js} +9 -7
- package/dist/chunk-2657D67V.js.map +1 -0
- package/dist/{chunk-MWMO2ZQP.js → chunk-3KNSMZWD.js} +24 -13
- package/dist/chunk-3KNSMZWD.js.map +1 -0
- package/dist/{chunk-DNFTHG73.js → chunk-4DUTRRXF.js} +8 -6
- package/dist/chunk-4DUTRRXF.js.map +1 -0
- package/dist/{chunk-MQUATTIM.cjs → chunk-4PSM6ZUC.cjs} +55 -57
- package/dist/chunk-4PSM6ZUC.cjs.map +1 -0
- package/dist/{chunk-FDJ734CH.js → chunk-DPFD5KBK.js} +5 -2
- package/dist/chunk-DPFD5KBK.js.map +1 -0
- package/dist/{chunk-OMPDPBT5.cjs → chunk-DY24A73N.cjs} +296 -240
- package/dist/chunk-DY24A73N.cjs.map +1 -0
- package/dist/{chunk-VMVFRTF4.js → chunk-FUCKDTH7.js} +285 -234
- package/dist/chunk-FUCKDTH7.js.map +1 -0
- package/dist/{chunk-4AJRIM44.js → chunk-GUK33TNC.js} +9 -13
- package/dist/chunk-GUK33TNC.js.map +1 -0
- package/dist/{chunk-RLD7DRSZ.js → chunk-HT35HPXR.js} +19365 -18395
- package/dist/chunk-HT35HPXR.js.map +1 -0
- package/dist/{chunk-3NALVGMJ.cjs → chunk-ODLSVJRU.cjs} +38 -27
- package/dist/chunk-ODLSVJRU.cjs.map +1 -0
- package/dist/{chunk-X6ZI53DZ.cjs → chunk-OMZZQTDM.cjs} +28 -35
- package/dist/chunk-OMZZQTDM.cjs.map +1 -0
- package/dist/{chunk-V3ZLL5VY.js → chunk-PXEFYEKL.js} +22 -29
- package/dist/chunk-PXEFYEKL.js.map +1 -0
- package/dist/{chunk-JFJNB7ZH.cjs → chunk-UPIQZRNJ.cjs} +16 -14
- package/dist/chunk-UPIQZRNJ.cjs.map +1 -0
- package/dist/{chunk-V5WRO3P6.cjs → chunk-UPV4W423.cjs} +14 -18
- package/dist/chunk-UPV4W423.cjs.map +1 -0
- package/dist/{chunk-URGVQ5TQ.cjs → chunk-V2EU5QWF.cjs} +4583 -3610
- package/dist/chunk-V2EU5QWF.cjs.map +1 -0
- package/dist/{chunk-FLPWNMX3.cjs → chunk-WIZCF5IX.cjs} +5 -2
- package/dist/chunk-WIZCF5IX.cjs.map +1 -0
- package/dist/{chunk-MXCB6EVM.cjs → chunk-WZJJZGBT.cjs} +22 -20
- package/dist/chunk-WZJJZGBT.cjs.map +1 -0
- package/dist/{chunk-V2DDN4MV.js → chunk-Z6WDOZZI.js} +10 -12
- package/dist/chunk-Z6WDOZZI.js.map +1 -0
- package/dist/compiler.cjs +4 -4
- package/dist/compiler.d.cts +1 -1
- package/dist/compiler.d.ts +1 -1
- package/dist/compiler.js +3 -3
- package/dist/contracts/handlers/index.cjs +11 -11
- package/dist/contracts/handlers/index.d.cts +3 -4
- package/dist/contracts/handlers/index.d.ts +3 -4
- package/dist/contracts/handlers/index.js +4 -4
- package/dist/{index-18cDMayF.d.ts → index-Bq349_ly.d.cts} +2334 -101
- package/dist/{index-Ccfhdfvj.d.cts → index-D4ahI0W6.d.cts} +2 -3
- package/dist/{index-DDJFHfba.d.cts → index-Mn2POBPj.d.ts} +2334 -101
- package/dist/{index-B_kcptF8.d.ts → index-Yh5y9G4E.d.ts} +2 -3
- package/dist/index.cjs +362 -346
- package/dist/index.d.cts +1505 -1374
- package/dist/index.d.ts +1505 -1374
- package/dist/index.js +7 -7
- 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 +40 -40
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +8 -8
- package/dist/repositories/sqlite/index.cjs +38 -38
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +8 -8
- package/dist/{taskRunner-DUafWu0o.d.ts → taskRunner-BYxEgwM5.d.ts} +1 -1
- package/dist/{taskRunner-JYHaLPne.d.cts → taskRunner-Z3LnHfgs.d.cts} +1 -1
- package/dist/wallet/expo/background.cjs +17 -17
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +9 -9
- package/dist/wallet/expo/index.cjs +18 -18
- package/dist/wallet/expo/index.d.cts +3 -5
- package/dist/wallet/expo/index.d.ts +3 -5
- package/dist/wallet/expo/index.js +8 -8
- package/dist/worker/expo/index.cjs +12 -12
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +8 -8
- package/package.json +1 -1
- package/dist/chunk-3NALVGMJ.cjs.map +0 -1
- package/dist/chunk-4AJRIM44.js.map +0 -1
- package/dist/chunk-DNFTHG73.js.map +0 -1
- package/dist/chunk-FDJ734CH.js.map +0 -1
- package/dist/chunk-FLPWNMX3.cjs.map +0 -1
- package/dist/chunk-JFJNB7ZH.cjs.map +0 -1
- package/dist/chunk-MQUATTIM.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-V2DDN4MV.js.map +0 -1
- package/dist/chunk-V3ZLL5VY.js.map +0 -1
- package/dist/chunk-V5WRO3P6.cjs.map +0 -1
- package/dist/chunk-VMVFRTF4.js.map +0 -1
- package/dist/chunk-X6ZI53DZ.cjs.map +0 -1
- package/dist/delegate-gGkUnYpi.d.cts +0 -92
- package/dist/delegate-iyDum4fw.d.ts +0 -92
- package/dist/keyringDescriptorProvider-DL-jAiRO.d.ts +0 -2082
- package/dist/keyringDescriptorProvider-Dtv0JWrT.d.cts +0 -2082
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository,
|
|
2
|
-
export {
|
|
1
|
+
import { W as WalletRepository, _ as AtomicWalletState, J as PageRequest, K as Outpoint, L as PageResult, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, $ as WalletState, C as ContractRepository, a0 as ContractFilter, D as Contract, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch } from '../../index-Bq349_ly.cjs';
|
|
2
|
+
export { a7 as ChainedTxType } from '../../index-Bq349_ly.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository,
|
|
2
|
-
export {
|
|
1
|
+
import { W as WalletRepository, _ as AtomicWalletState, J as PageRequest, K as Outpoint, L as PageResult, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, $ as WalletState, C as ContractRepository, a0 as ContractFilter, D as Contract, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch } from '../../index-Mn2POBPj.js';
|
|
2
|
+
export { a7 as ChainedTxType } from '../../index-Mn2POBPj.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
8
|
-
import '../../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-HT35HPXR.js';
|
|
2
|
+
export { ChainedTxType } from '../../chunk-HT35HPXR.js';
|
|
3
|
+
import '../../chunk-PXEFYEKL.js';
|
|
4
|
+
import '../../chunk-3KNSMZWD.js';
|
|
5
|
+
import '../../chunk-Z6WDOZZI.js';
|
|
6
|
+
import '../../chunk-4DUTRRXF.js';
|
|
7
|
+
import { isVtxoSpent } from '../../chunk-FUCKDTH7.js';
|
|
8
|
+
import '../../chunk-DPFD5KBK.js';
|
|
9
9
|
|
|
10
10
|
// src/repositories/sqlite/transaction.ts
|
|
11
11
|
var executorQueues = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository,
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, z as IndexerProvider, B as OperatorProvider, V as VirtualCoin, D as Contract, F as ExtendedVirtualCoin } from './index-Mn2POBPj.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A task item represents a unit of work in the inbox.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository,
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, z as IndexerProvider, B as OperatorProvider, V as VirtualCoin, D as Contract, F as ExtendedVirtualCoin } from './index-Bq349_ly.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A task item represents a unit of work in the inbox.
|
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
11
|
-
require('../../chunk-
|
|
3
|
+
var chunkWZJJZGBT_cjs = require('../../chunk-WZJJZGBT.cjs');
|
|
4
|
+
var chunkUPV4W423_cjs = require('../../chunk-UPV4W423.cjs');
|
|
5
|
+
var chunkV2EU5QWF_cjs = require('../../chunk-V2EU5QWF.cjs');
|
|
6
|
+
require('../../chunk-OMZZQTDM.cjs');
|
|
7
|
+
require('../../chunk-ODLSVJRU.cjs');
|
|
8
|
+
require('../../chunk-4PSM6ZUC.cjs');
|
|
9
|
+
require('../../chunk-UPIQZRNJ.cjs');
|
|
10
|
+
require('../../chunk-DY24A73N.cjs');
|
|
11
|
+
require('../../chunk-WIZCF5IX.cjs');
|
|
12
12
|
var TaskManager = require('expo-task-manager');
|
|
13
13
|
var BackgroundTask = require('expo-background-task');
|
|
14
14
|
|
|
@@ -38,7 +38,7 @@ function defineExpoBackgroundTask(taskName, options) {
|
|
|
38
38
|
taskQueue,
|
|
39
39
|
walletRepository,
|
|
40
40
|
contractRepository,
|
|
41
|
-
processors = [
|
|
41
|
+
processors = [chunkUPV4W423_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 chunkWZJJZGBT_cjs.ExpoIndexerProvider(config.arkServerUrl);
|
|
50
|
+
const arkProvider = new chunkWZJJZGBT_cjs.ExpoOperatorProvider(config.arkServerUrl);
|
|
51
|
+
const deps = chunkUPV4W423_cjs.createTaskDependencies({
|
|
52
52
|
walletRepository,
|
|
53
53
|
contractRepository,
|
|
54
54
|
indexerProvider,
|
|
55
55
|
arkProvider
|
|
56
56
|
});
|
|
57
|
-
await
|
|
57
|
+
await chunkUPV4W423_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(chunkUPV4W423_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
63
63
|
if (existing.length === 0) {
|
|
64
64
|
const task = {
|
|
65
|
-
id:
|
|
66
|
-
type:
|
|
65
|
+
id: chunkV2EU5QWF_cjs.getRandomId(),
|
|
66
|
+
type: chunkUPV4W423_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 { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../index-Bq349_ly.cjs';
|
|
2
|
+
import { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-B6rFkXzW.cjs';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-Z3LnHfgs.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 { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../index-Mn2POBPj.js';
|
|
2
|
+
import { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-C0irgPwJ.js';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-BYxEgwM5.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
9
|
-
import '../../chunk-
|
|
1
|
+
import { ExpoIndexerProvider, ExpoOperatorProvider } from '../../chunk-2657D67V.js';
|
|
2
|
+
import { contractPollProcessor, createTaskDependencies, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-GUK33TNC.js';
|
|
3
|
+
import { getRandomId } from '../../chunk-HT35HPXR.js';
|
|
4
|
+
import '../../chunk-PXEFYEKL.js';
|
|
5
|
+
import '../../chunk-3KNSMZWD.js';
|
|
6
|
+
import '../../chunk-Z6WDOZZI.js';
|
|
7
|
+
import '../../chunk-4DUTRRXF.js';
|
|
8
|
+
import '../../chunk-FUCKDTH7.js';
|
|
9
|
+
import '../../chunk-DPFD5KBK.js';
|
|
10
10
|
import * as TaskManager from 'expo-task-manager';
|
|
11
11
|
import * as BackgroundTask from 'expo-background-task';
|
|
12
12
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
var
|
|
10
|
-
require('../../chunk-
|
|
3
|
+
var chunkUPV4W423_cjs = require('../../chunk-UPV4W423.cjs');
|
|
4
|
+
var chunkV2EU5QWF_cjs = require('../../chunk-V2EU5QWF.cjs');
|
|
5
|
+
require('../../chunk-OMZZQTDM.cjs');
|
|
6
|
+
require('../../chunk-ODLSVJRU.cjs');
|
|
7
|
+
require('../../chunk-4PSM6ZUC.cjs');
|
|
8
|
+
require('../../chunk-UPIQZRNJ.cjs');
|
|
9
|
+
var chunkDY24A73N_cjs = require('../../chunk-DY24A73N.cjs');
|
|
10
|
+
require('../../chunk-WIZCF5IX.cjs');
|
|
11
11
|
var base = require('@scure/base');
|
|
12
12
|
|
|
13
13
|
function warnOnRemovedBackgroundFields(bg) {
|
|
@@ -59,20 +59,20 @@ var ExpoWallet = class _ExpoWallet {
|
|
|
59
59
|
* by the consumer.
|
|
60
60
|
*/
|
|
61
61
|
static async setup(config) {
|
|
62
|
-
|
|
62
|
+
chunkDY24A73N_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 chunkV2EU5QWF_cjs.Wallet.create(config);
|
|
65
|
+
const processors = config.background.processors ?? [chunkUPV4W423_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) => chunkV2EU5QWF_cjs.extendVirtualCoinForContract(vtxo, contract)
|
|
72
72
|
};
|
|
73
73
|
const { taskQueue } = config.background;
|
|
74
74
|
if ("persistConfig" in taskQueue) {
|
|
75
|
-
const arkServerUrl =
|
|
75
|
+
const arkServerUrl = chunkV2EU5QWF_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 chunkUPV4W423_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(chunkUPV4W423_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
116
116
|
if (existing.length > 0) return;
|
|
117
117
|
const task = {
|
|
118
|
-
id:
|
|
119
|
-
type:
|
|
118
|
+
id: chunkV2EU5QWF_cjs.getRandomId(),
|
|
119
|
+
type: chunkUPV4W423_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(chunkUPV4W423_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
127
127
|
for (const task of tasks) {
|
|
128
128
|
await this.taskQueue.removeTask(task.id);
|
|
129
129
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Transaction } from '@scure/btc-signer';
|
|
2
|
-
import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable,
|
|
3
|
-
import {
|
|
4
|
-
import { c as TaskQueue, T as TaskProcessor } from '../../taskRunner-JYHaLPne.cjs';
|
|
5
|
-
import '@scure/btc-signer/psbt.js';
|
|
2
|
+
import { I as IWallet, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, b as Identity, c as Wallet, d as WalletConfig, G as GetOperatorInfoOptions, O as OperatorInfo, e as ArkadeReader, f as ArkadeBroadcaster, g as WalletBalance, h as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, i as GetSpendableVtxosFilter, E as ExtendedCoin, j as ArkTransaction, k as ActivityRegistry, l as Activity, m as IContractManager, n as GetNewAddressesOptions, o as NewAddress, P as ProviderConnectionState, p as IDelegateManager, S as SettleParams, q as SettlementEvent, r as SendParams, R as Recipient, s as SendOnchainParams, t as IAssetManager } from '../../index-Bq349_ly.cjs';
|
|
3
|
+
import { c as TaskQueue, T as TaskProcessor } from '../../taskRunner-Z3LnHfgs.cjs';
|
|
6
4
|
import '@scure/btc-signer/utils.js';
|
|
5
|
+
import '@scure/btc-signer/psbt.js';
|
|
7
6
|
import '../../base-C-Y5t_0F.cjs';
|
|
8
|
-
import '../../delegate-gGkUnYpi.cjs';
|
|
9
7
|
import '@scure/btc-signer/transaction.js';
|
|
10
8
|
|
|
11
9
|
/**
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Transaction } from '@scure/btc-signer';
|
|
2
|
-
import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable,
|
|
3
|
-
import {
|
|
4
|
-
import { c as TaskQueue, T as TaskProcessor } from '../../taskRunner-DUafWu0o.js';
|
|
5
|
-
import '@scure/btc-signer/psbt.js';
|
|
2
|
+
import { I as IWallet, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, b as Identity, c as Wallet, d as WalletConfig, G as GetOperatorInfoOptions, O as OperatorInfo, e as ArkadeReader, f as ArkadeBroadcaster, g as WalletBalance, h as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, i as GetSpendableVtxosFilter, E as ExtendedCoin, j as ArkTransaction, k as ActivityRegistry, l as Activity, m as IContractManager, n as GetNewAddressesOptions, o as NewAddress, P as ProviderConnectionState, p as IDelegateManager, S as SettleParams, q as SettlementEvent, r as SendParams, R as Recipient, s as SendOnchainParams, t as IAssetManager } from '../../index-Mn2POBPj.js';
|
|
3
|
+
import { c as TaskQueue, T as TaskProcessor } from '../../taskRunner-BYxEgwM5.js';
|
|
6
4
|
import '@scure/btc-signer/utils.js';
|
|
5
|
+
import '@scure/btc-signer/psbt.js';
|
|
7
6
|
import '../../base-C-Y5t_0F.js';
|
|
8
|
-
import '../../delegate-iyDum4fw.js';
|
|
9
7
|
import '@scure/btc-signer/transaction.js';
|
|
10
8
|
|
|
11
9
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
8
|
-
import '../../chunk-
|
|
1
|
+
import { contractPollProcessor, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-GUK33TNC.js';
|
|
2
|
+
import { Wallet, extractOperatorProviderUrl, getRandomId, extendVirtualCoinForContract } from '../../chunk-HT35HPXR.js';
|
|
3
|
+
import '../../chunk-PXEFYEKL.js';
|
|
4
|
+
import '../../chunk-3KNSMZWD.js';
|
|
5
|
+
import '../../chunk-Z6WDOZZI.js';
|
|
6
|
+
import '../../chunk-4DUTRRXF.js';
|
|
7
|
+
import { assertTimerMs } from '../../chunk-FUCKDTH7.js';
|
|
8
|
+
import '../../chunk-DPFD5KBK.js';
|
|
9
9
|
import { hex } from '@scure/base';
|
|
10
10
|
|
|
11
11
|
function warnOnRemovedBackgroundFields(bg) {
|
|
@@ -1,13 +1,13 @@
|
|
|
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-
|
|
10
|
-
require('../../chunk-
|
|
3
|
+
var chunkUPV4W423_cjs = require('../../chunk-UPV4W423.cjs');
|
|
4
|
+
require('../../chunk-V2EU5QWF.cjs');
|
|
5
|
+
require('../../chunk-OMZZQTDM.cjs');
|
|
6
|
+
require('../../chunk-ODLSVJRU.cjs');
|
|
7
|
+
require('../../chunk-4PSM6ZUC.cjs');
|
|
8
|
+
require('../../chunk-UPIQZRNJ.cjs');
|
|
9
|
+
require('../../chunk-DY24A73N.cjs');
|
|
10
|
+
require('../../chunk-WIZCF5IX.cjs');
|
|
11
11
|
|
|
12
12
|
// src/worker/expo/taskQueue.ts
|
|
13
13
|
var InMemoryTaskQueue = class {
|
|
@@ -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 chunkUPV4W423_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 chunkUPV4W423_cjs.contractPollProcessor; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "createTaskDependencies", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkUPV4W423_cjs.createTaskDependencies; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "runTasks", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkUPV4W423_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, a as TaskDependencies, b as TaskItem, c as TaskQueue, d as TaskResult, e as createTaskDependencies, r as runTasks } from '../../taskRunner-
|
|
3
|
-
export { A as AsyncStorageLike, a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-
|
|
4
|
-
import '../../index-
|
|
1
|
+
import { T as TaskProcessor } from '../../taskRunner-Z3LnHfgs.cjs';
|
|
2
|
+
export { C as CreateTaskDependenciesOptions, I as InMemoryTaskQueue, a as TaskDependencies, b as TaskItem, c as TaskQueue, d as TaskResult, e as createTaskDependencies, r as runTasks } from '../../taskRunner-Z3LnHfgs.cjs';
|
|
3
|
+
export { A as AsyncStorageLike, a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-B6rFkXzW.cjs';
|
|
4
|
+
import '../../index-Bq349_ly.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, a as TaskDependencies, b as TaskItem, c as TaskQueue, d as TaskResult, e as createTaskDependencies, r as runTasks } from '../../taskRunner-
|
|
3
|
-
export { A as AsyncStorageLike, a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-
|
|
4
|
-
import '../../index-
|
|
1
|
+
import { T as TaskProcessor } from '../../taskRunner-BYxEgwM5.js';
|
|
2
|
+
export { C as CreateTaskDependenciesOptions, I as InMemoryTaskQueue, a as TaskDependencies, b as TaskItem, c as TaskQueue, d as TaskResult, e as createTaskDependencies, r as runTasks } from '../../taskRunner-BYxEgwM5.js';
|
|
3
|
+
export { A as AsyncStorageLike, a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-C0irgPwJ.js';
|
|
4
|
+
import '../../index-Mn2POBPj.js';
|
|
5
5
|
import '@scure/btc-signer/utils.js';
|
|
6
6
|
import '@scure/btc-signer';
|
|
7
7
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
8
|
-
import '../../chunk-
|
|
1
|
+
export { CONTRACT_POLL_TASK_TYPE, contractPollProcessor, createTaskDependencies, runTasks } from '../../chunk-GUK33TNC.js';
|
|
2
|
+
import '../../chunk-HT35HPXR.js';
|
|
3
|
+
import '../../chunk-PXEFYEKL.js';
|
|
4
|
+
import '../../chunk-3KNSMZWD.js';
|
|
5
|
+
import '../../chunk-Z6WDOZZI.js';
|
|
6
|
+
import '../../chunk-4DUTRRXF.js';
|
|
7
|
+
import '../../chunk-FUCKDTH7.js';
|
|
8
|
+
import '../../chunk-DPFD5KBK.js';
|
|
9
9
|
|
|
10
10
|
// src/worker/expo/taskQueue.ts
|
|
11
11
|
var InMemoryTaskQueue = class {
|