@arkade-os/sdk 0.4.56 → 0.4.57
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.cjs +5 -5
- 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/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{ark-Cgsd9tMd.d.cts → ark-CJgH_pmn.d.cts} +20 -1
- package/dist/{ark-Cgsd9tMd.d.ts → ark-CJgH_pmn.d.ts} +20 -1
- package/dist/{asyncStorageTaskQueue-CXz4PRBW.d.ts → asyncStorageTaskQueue-BeeZbf-Q.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-C0ZsDE60.d.cts → asyncStorageTaskQueue-BlrsUUX_.d.cts} +2 -2
- package/dist/{chunk-IMVKQQHU.cjs → chunk-A7TOVUYG.cjs} +9 -9
- package/dist/{chunk-IMVKQQHU.cjs.map → chunk-A7TOVUYG.cjs.map} +1 -1
- package/dist/{chunk-NN7BNNF5.js → chunk-ASUJNZ63.js} +3 -3
- package/dist/{chunk-NN7BNNF5.js.map → chunk-ASUJNZ63.js.map} +1 -1
- package/dist/{chunk-5IMBONCK.js → chunk-C4SVRVNM.js} +4 -4
- package/dist/{chunk-5IMBONCK.js.map → chunk-C4SVRVNM.js.map} +1 -1
- package/dist/{chunk-VNDVUM2W.js → chunk-CPS7V4A3.js} +4 -4
- package/dist/{chunk-VNDVUM2W.js.map → chunk-CPS7V4A3.js.map} +1 -1
- package/dist/{chunk-MXPBHDOI.cjs → chunk-EZBKSWEL.cjs} +17 -17
- package/dist/{chunk-MXPBHDOI.cjs.map → chunk-EZBKSWEL.cjs.map} +1 -1
- package/dist/{chunk-ENRRZFZ4.cjs → chunk-KEG4AAKX.cjs} +511 -409
- package/dist/chunk-KEG4AAKX.cjs.map +1 -0
- package/dist/{chunk-CDWLZQQW.cjs → chunk-KUN5ZRMW.cjs} +4 -3
- package/dist/chunk-KUN5ZRMW.cjs.map +1 -0
- package/dist/{chunk-T22257HW.js → chunk-NIZPFPUM.js} +136 -44
- package/dist/chunk-NIZPFPUM.js.map +1 -0
- package/dist/{chunk-37XKN5DZ.cjs → chunk-OWTKOMJZ.cjs} +40 -40
- package/dist/{chunk-37XKN5DZ.cjs.map → chunk-OWTKOMJZ.cjs.map} +1 -1
- package/dist/{chunk-OOPDT2WV.js → chunk-P6L2W5IL.js} +3 -3
- package/dist/{chunk-OOPDT2WV.js.map → chunk-P6L2W5IL.js.map} +1 -1
- package/dist/{chunk-IFGN2GB2.js → chunk-PUNBWFIV.js} +4 -3
- package/dist/chunk-PUNBWFIV.js.map +1 -0
- package/dist/{chunk-24YNIQSW.cjs → chunk-YK6NP5KX.cjs} +15 -15
- package/dist/{chunk-24YNIQSW.cjs.map → chunk-YK6NP5KX.cjs.map} +1 -1
- package/dist/contracts/handlers/index.cjs +8 -8
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-CZPXtd2F.d.ts → delegate-DM3YECSY.d.ts} +1 -1
- package/dist/{delegate-xXT8O-Kn.d.cts → delegate-Dk-OJVdf.d.cts} +1 -1
- package/dist/{index-BYG2eKOA.d.cts → index-Cig0RkTf.d.cts} +2 -2
- package/dist/{index-BBJ466mM.d.ts → index-CnE7Gnvb.d.ts} +2 -2
- package/dist/index.cjs +253 -213
- package/dist/index.d.cts +12 -10
- package/dist/index.d.ts +12 -10
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +19 -19
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +18 -18
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-BG1PRFps.d.cts → taskRunner-CnGSTaAJ.d.cts} +2 -2
- package/dist/{taskRunner-C46NnRsY.d.ts → taskRunner-F7tWzsrC.d.ts} +2 -2
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +14 -14
- package/dist/wallet/expo/index.d.cts +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +5 -5
- package/dist/{wallet-DuCm55EC.d.ts → wallet-D6_S0n6B.d.ts} +107 -4
- package/dist/{wallet-1yWg75gN.d.cts → wallet-DvRIQBBY.d.cts} +107 -4
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-CDWLZQQW.cjs.map +0 -1
- package/dist/chunk-ENRRZFZ4.cjs.map +0 -1
- package/dist/chunk-IFGN2GB2.js.map +0 -1
- package/dist/chunk-T22257HW.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository } from '../../ark-
|
|
2
|
-
import {
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../ark-CJgH_pmn.cjs';
|
|
2
|
+
import { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-BlrsUUX_.cjs';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-CnGSTaAJ.cjs';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer/utils.js';
|
|
6
6
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository } from '../../ark-
|
|
2
|
-
import {
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../ark-CJgH_pmn.js';
|
|
2
|
+
import { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-BeeZbf-Q.js';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-F7tWzsrC.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer/utils.js';
|
|
6
6
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { contractPollProcessor, createTaskDependencies, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-
|
|
2
|
-
import { ExpoIndexerProvider, ExpoArkProvider } from '../../chunk-
|
|
3
|
-
import { getRandomId } from '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
1
|
+
import { contractPollProcessor, createTaskDependencies, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-C4SVRVNM.js';
|
|
2
|
+
import { ExpoIndexerProvider, ExpoArkProvider } from '../../chunk-CPS7V4A3.js';
|
|
3
|
+
import { getRandomId } from '../../chunk-NIZPFPUM.js';
|
|
4
|
+
import '../../chunk-ASUJNZ63.js';
|
|
5
|
+
import '../../chunk-P6L2W5IL.js';
|
|
6
|
+
import '../../chunk-PUNBWFIV.js';
|
|
7
7
|
import '../../chunk-NSBPE2FW.js';
|
|
8
8
|
import * as TaskManager from 'expo-task-manager';
|
|
9
9
|
import * as BackgroundTask from 'expo-background-task';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
var
|
|
3
|
+
var chunkA7TOVUYG_cjs = require('../../chunk-A7TOVUYG.cjs');
|
|
4
|
+
var chunkKEG4AAKX_cjs = require('../../chunk-KEG4AAKX.cjs');
|
|
5
|
+
require('../../chunk-YK6NP5KX.cjs');
|
|
6
|
+
require('../../chunk-OWTKOMJZ.cjs');
|
|
7
|
+
var chunkKUN5ZRMW_cjs = require('../../chunk-KUN5ZRMW.cjs');
|
|
8
8
|
require('../../chunk-5BLDMQED.cjs');
|
|
9
9
|
var base = require('@scure/base');
|
|
10
10
|
|
|
@@ -58,18 +58,18 @@ var ExpoWallet = class _ExpoWallet {
|
|
|
58
58
|
*/
|
|
59
59
|
static async setup(config) {
|
|
60
60
|
warnOnRemovedBackgroundFields(config.background);
|
|
61
|
-
const wallet = await
|
|
62
|
-
const processors = config.background.processors ?? [
|
|
61
|
+
const wallet = await chunkKEG4AAKX_cjs.Wallet.create(config);
|
|
62
|
+
const processors = config.background.processors ?? [chunkA7TOVUYG_cjs.contractPollProcessor];
|
|
63
63
|
const deps = {
|
|
64
64
|
walletRepository: wallet.walletRepository,
|
|
65
65
|
contractRepository: wallet.contractRepository,
|
|
66
66
|
indexerProvider: wallet.indexerProvider,
|
|
67
67
|
arkProvider: wallet.arkProvider,
|
|
68
|
-
extendVtxo: (vtxo, contract) =>
|
|
68
|
+
extendVtxo: (vtxo, contract) => chunkKEG4AAKX_cjs.extendVirtualCoinForContract(vtxo, contract)
|
|
69
69
|
};
|
|
70
70
|
const { taskQueue } = config.background;
|
|
71
71
|
if ("persistConfig" in taskQueue) {
|
|
72
|
-
const arkServerUrl = config.arkServerUrl || (wallet.arkProvider instanceof
|
|
72
|
+
const arkServerUrl = config.arkServerUrl || (wallet.arkProvider instanceof chunkKUN5ZRMW_cjs.RestArkProvider ? wallet.arkProvider.serverUrl : void 0);
|
|
73
73
|
if (arkServerUrl) {
|
|
74
74
|
const timelock = wallet.offchainTapscript.options.csvTimelock;
|
|
75
75
|
const bgConfig = {
|
|
@@ -100,7 +100,7 @@ var ExpoWallet = class _ExpoWallet {
|
|
|
100
100
|
}
|
|
101
101
|
async runForegroundPoll() {
|
|
102
102
|
if (this.cleared) return;
|
|
103
|
-
await
|
|
103
|
+
await chunkA7TOVUYG_cjs.runTasks(this.taskQueue, this.processors, this.deps);
|
|
104
104
|
const results = await this.taskQueue.getResults();
|
|
105
105
|
if (results.length > 0) {
|
|
106
106
|
await this.taskQueue.acknowledgeResults(results.map((r) => r.id));
|
|
@@ -109,18 +109,18 @@ var ExpoWallet = class _ExpoWallet {
|
|
|
109
109
|
await this.seedContractPollTask();
|
|
110
110
|
}
|
|
111
111
|
async seedContractPollTask() {
|
|
112
|
-
const existing = await this.taskQueue.getTasks(
|
|
112
|
+
const existing = await this.taskQueue.getTasks(chunkA7TOVUYG_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
113
113
|
if (existing.length > 0) return;
|
|
114
114
|
const task = {
|
|
115
|
-
id:
|
|
116
|
-
type:
|
|
115
|
+
id: chunkKEG4AAKX_cjs.getRandomId(),
|
|
116
|
+
type: chunkA7TOVUYG_cjs.CONTRACT_POLL_TASK_TYPE,
|
|
117
117
|
data: {},
|
|
118
118
|
createdAt: Date.now()
|
|
119
119
|
};
|
|
120
120
|
await this.taskQueue.addTask(task);
|
|
121
121
|
}
|
|
122
122
|
async removeContractPollTasks() {
|
|
123
|
-
const tasks = await this.taskQueue.getTasks(
|
|
123
|
+
const tasks = await this.taskQueue.getTasks(chunkA7TOVUYG_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
124
124
|
for (const task of tasks) {
|
|
125
125
|
await this.taskQueue.removeTask(task.id);
|
|
126
126
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { W as Wallet, P as ProviderConnectionState } from '../../wallet-
|
|
2
|
-
import { I as IWallet, a as Identity, b as WalletConfig, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, E as ExtendedCoin, A as ArkTransaction, d as ActivityRegistry, e as Activity, f as IContractManager, g as IDelegateManager, S as SendBitcoinParams, h as SettleParams, i as SettlementEvent, R as Recipient, j as IAssetManager } from '../../ark-
|
|
3
|
-
import {
|
|
1
|
+
import { W as Wallet, P as ProviderConnectionState } from '../../wallet-DvRIQBBY.cjs';
|
|
2
|
+
import { I as IWallet, a as Identity, b as WalletConfig, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, E as ExtendedCoin, A as ArkTransaction, d as ActivityRegistry, e as Activity, f as IContractManager, g as IDelegateManager, S as SendBitcoinParams, h as SettleParams, i as SettlementEvent, R as Recipient, j as IAssetManager } from '../../ark-CJgH_pmn.cjs';
|
|
3
|
+
import { c as TaskQueue, T as TaskProcessor } from '../../taskRunner-CnGSTaAJ.cjs';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
6
6
|
import '@scure/btc-signer/utils.js';
|
|
7
|
-
import '../../delegate-
|
|
7
|
+
import '../../delegate-Dk-OJVdf.cjs';
|
|
8
8
|
import '@scure/btc-signer/transaction.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { W as Wallet, P as ProviderConnectionState } from '../../wallet-
|
|
2
|
-
import { I as IWallet, a as Identity, b as WalletConfig, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, E as ExtendedCoin, A as ArkTransaction, d as ActivityRegistry, e as Activity, f as IContractManager, g as IDelegateManager, S as SendBitcoinParams, h as SettleParams, i as SettlementEvent, R as Recipient, j as IAssetManager } from '../../ark-
|
|
3
|
-
import {
|
|
1
|
+
import { W as Wallet, P as ProviderConnectionState } from '../../wallet-D6_S0n6B.js';
|
|
2
|
+
import { I as IWallet, a as Identity, b as WalletConfig, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, E as ExtendedCoin, A as ArkTransaction, d as ActivityRegistry, e as Activity, f as IContractManager, g as IDelegateManager, S as SendBitcoinParams, h as SettleParams, i as SettlementEvent, R as Recipient, j as IAssetManager } from '../../ark-CJgH_pmn.js';
|
|
3
|
+
import { c as TaskQueue, T as TaskProcessor } from '../../taskRunner-F7tWzsrC.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
6
6
|
import '@scure/btc-signer/utils.js';
|
|
7
|
-
import '../../delegate-
|
|
7
|
+
import '../../delegate-DM3YECSY.js';
|
|
8
8
|
import '@scure/btc-signer/transaction.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { contractPollProcessor, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-
|
|
2
|
-
import { Wallet, getRandomId, extendVirtualCoinForContract } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import { RestArkProvider } from '../../chunk-
|
|
1
|
+
import { contractPollProcessor, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-C4SVRVNM.js';
|
|
2
|
+
import { Wallet, getRandomId, extendVirtualCoinForContract } from '../../chunk-NIZPFPUM.js';
|
|
3
|
+
import '../../chunk-ASUJNZ63.js';
|
|
4
|
+
import '../../chunk-P6L2W5IL.js';
|
|
5
|
+
import { RestArkProvider } from '../../chunk-PUNBWFIV.js';
|
|
6
6
|
import '../../chunk-NSBPE2FW.js';
|
|
7
7
|
import { hex } from '@scure/base';
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Identity, J as
|
|
1
|
+
import { a as Identity, p as RelativeTimelock, J as Network, K as CSVMultisigTapscript, L as SignerSet, M as BatchStartedEvent, P as TreeSigningStartedEvent, Q as TxTree, U as TreeNoncesEvent, X as BatchFinalizationEvent, Y as BatchFinalizedEvent, Z as BatchFailedEvent, _ as TreeTxEvent, $ as TreeSignatureEvent, i as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, a0 as DescriptorProvider, f as IContractManager, a1 as IReadonlyWallet, a2 as ReadonlyIdentity, a3 as OnchainProvider, o as IndexerProvider, a4 as DelegateProvider, a5 as ReadonlyWalletConfig, x as IntentRepository, B as VirtualTxRepository, a6 as ExitCaptureMode, a7 as ExitDataSource, d as ActivityRegistry, a8 as IReadonlyAssetManager, a9 as ContractSyncState, n as ArkProvider, aa as NetworkName, ab as ArkInfo, ac as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, A as ArkTransaction, e as Activity, E as ExtendedCoin, ad as Coin, t as ExtendedVirtualCoin, ae as ContractManager, af as ContractManagerConfig, I as IWallet, ag as SettlementConfig, j as IAssetManager, ah as VtxoManager, g as IDelegateManager, S as SendBitcoinParams, h as SettleParams, R as Recipient, ai as SignerSession, aj as SignedIntent, ak as Intent, al as TimeHeight } from './ark-CJgH_pmn.js';
|
|
2
2
|
import { Transaction } from '@scure/btc-signer';
|
|
3
3
|
import { TransactionOutput } from '@scure/btc-signer/psbt.js';
|
|
4
4
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
5
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
5
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-DM3YECSY.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Capability a wallet exposes so descriptor-blind consumers — Boltz swaps and
|
|
@@ -36,6 +36,101 @@ interface HDWalletCapable {
|
|
|
36
36
|
/** Structural type guard for {@link HDWalletCapable}. */
|
|
37
37
|
declare function isHDWalletCapable(value: unknown): value is HDWalletCapable;
|
|
38
38
|
|
|
39
|
+
/** Wall-clock floor for `batchExpiry` outside regtest. */
|
|
40
|
+
declare const DEFAULT_MIN_BATCH_EXPIRY_SECONDS = 86400n;
|
|
41
|
+
/** Wall-clock floor for `batchExpiry` on regtest (~10 blocks). */
|
|
42
|
+
declare const REGTEST_MIN_BATCH_EXPIRY_SECONDS = 6000n;
|
|
43
|
+
/** Bounds applied to a server-supplied `BatchStartedEvent.batchExpiry`. */
|
|
44
|
+
type BatchExpiryPolicy = {
|
|
45
|
+
/** Minimum wall-clock delay in seconds, after normalization. */
|
|
46
|
+
minSeconds: bigint;
|
|
47
|
+
/**
|
|
48
|
+
* Reject block-typed timelocks. Mirrors arkd, which allows a block-typed
|
|
49
|
+
* vtxo tree expiry only on regtest.
|
|
50
|
+
*/
|
|
51
|
+
requireSeconds: boolean;
|
|
52
|
+
/** When advertised by the operator, `batchExpiry` must equal it exactly. */
|
|
53
|
+
advertisedVtxoTreeExpiry?: bigint;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Default policy for a network.
|
|
57
|
+
*
|
|
58
|
+
* Derive it from the locally held {@link Network} — pinned at wallet setup —
|
|
59
|
+
* rather than from a per-round server field, so the permissive regtest branch
|
|
60
|
+
* can't be selected by the operator at event time.
|
|
61
|
+
*/
|
|
62
|
+
declare function defaultBatchExpiryPolicy(network: Network): BatchExpiryPolicy;
|
|
63
|
+
/** Resolve a policy for `network`, applying any caller overrides on top. */
|
|
64
|
+
declare function resolveBatchExpiryPolicy(network: Network, overrides?: Partial<BatchExpiryPolicy>): BatchExpiryPolicy;
|
|
65
|
+
/**
|
|
66
|
+
* Check a server-supplied batch expiry against `policy` and return the timelock
|
|
67
|
+
* to commit to.
|
|
68
|
+
*
|
|
69
|
+
* The sweep leaf of the shared batch output is derived from this value, so it
|
|
70
|
+
* is never reconstructible from anything else the server sends: validating the
|
|
71
|
+
* tree only proves it is consistent with whatever value was chosen. Callers
|
|
72
|
+
* must encode the returned timelock rather than re-deriving their own.
|
|
73
|
+
*
|
|
74
|
+
* @throws {ServerResponseMismatchError} if the value is out of policy.
|
|
75
|
+
*/
|
|
76
|
+
declare function assertValidBatchExpiry(batchExpiry: bigint, policy: BatchExpiryPolicy): RelativeTimelock;
|
|
77
|
+
|
|
78
|
+
/** Wall-clock floor for the checkpoint exit delay outside regtest. Matches arkd's own default. */
|
|
79
|
+
declare const DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS = 86400n;
|
|
80
|
+
/**
|
|
81
|
+
* Wall-clock floor for the checkpoint exit delay on regtest (~2 blocks nominal).
|
|
82
|
+
*
|
|
83
|
+
* Deliberately lower than {@link REGTEST_MIN_BATCH_EXPIRY_SECONDS "../wallet/batchExpiry"} — this
|
|
84
|
+
* repo's own regtest envs run `ARKD_CHECKPOINT_EXIT_DELAY` as low as 5 blocks
|
|
85
|
+
* (`packages/boltz-swap/.env.regtest`), so the floor must clear that while still rejecting a
|
|
86
|
+
* 1-block attack.
|
|
87
|
+
*/
|
|
88
|
+
declare const REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS = 1200n;
|
|
89
|
+
/** Bounds applied to a server-supplied `ArkInfo.checkpointTapscript`. */
|
|
90
|
+
type CheckpointExitDelayPolicy = {
|
|
91
|
+
/** Minimum wall-clock delay in seconds, after normalization. */
|
|
92
|
+
minSeconds: bigint;
|
|
93
|
+
/**
|
|
94
|
+
* Reject block-typed timelocks. Mirrors arkd, which allows a block-typed
|
|
95
|
+
* checkpoint exit delay only on regtest.
|
|
96
|
+
*/
|
|
97
|
+
requireSeconds: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* When set, the script's embedded pubkey must equal this x-only key.
|
|
100
|
+
*
|
|
101
|
+
* arkd always builds the checkpoint tapscript from its own `forfeitPubkey`
|
|
102
|
+
* (`internal/core/application/service.go`), so this should be the
|
|
103
|
+
* `forfeitPubkey` the caller already trusts — pinned wallet state where one
|
|
104
|
+
* exists, otherwise the same `ArkInfo` response's own `forfeitPubkey` field
|
|
105
|
+
* as a self-consistency check.
|
|
106
|
+
*/
|
|
107
|
+
advertisedForfeitPubkey?: Bytes;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Default policy for a network.
|
|
111
|
+
*
|
|
112
|
+
* Derive it from the locally held {@link Network} — pinned at wallet setup —
|
|
113
|
+
* rather than from server data, so the permissive regtest branch can't be
|
|
114
|
+
* selected by the operator.
|
|
115
|
+
*/
|
|
116
|
+
declare function defaultCheckpointExitDelayPolicy(network: Network): CheckpointExitDelayPolicy;
|
|
117
|
+
/** Resolve a policy for `network`, applying any caller overrides on top. */
|
|
118
|
+
declare function resolveCheckpointExitDelayPolicy(network: Network, overrides?: Partial<CheckpointExitDelayPolicy>): CheckpointExitDelayPolicy;
|
|
119
|
+
/**
|
|
120
|
+
* Decode and validate a server-supplied `checkpointTapscript` against `policy`.
|
|
121
|
+
*
|
|
122
|
+
* Every offchain send/claim builds its checkpoint outputs' server-claim leaf
|
|
123
|
+
* straight from this script — undecodable, sub-floor or wrong-pubkey values
|
|
124
|
+
* let the operator sweep an in-flight checkpoint before it settles. This is
|
|
125
|
+
* the sole gate: callers must use the returned script rather than decoding
|
|
126
|
+
* their own copy.
|
|
127
|
+
*
|
|
128
|
+
* @throws {ServerResponseMismatchError} if the script fails to decode, its
|
|
129
|
+
* timelock is out of policy, or its pubkey does not match
|
|
130
|
+
* `policy.advertisedForfeitPubkey` (when set).
|
|
131
|
+
*/
|
|
132
|
+
declare function assertValidServerUnrollScript(checkpointTapscript: string, policy: CheckpointExitDelayPolicy): CSVMultisigTapscript.Type;
|
|
133
|
+
|
|
39
134
|
declare function getRandomId(): string;
|
|
40
135
|
/**
|
|
41
136
|
* What a recipient Arkade address must match. An address failing either check
|
|
@@ -1062,6 +1157,10 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable
|
|
|
1062
1157
|
readonly arkProvider: ArkProvider;
|
|
1063
1158
|
readonly forfeitOutputScript: Bytes;
|
|
1064
1159
|
readonly forfeitPubkey: Bytes;
|
|
1160
|
+
/** Overrides for the `batchExpiry` bounds; defaults derive from `network`. */
|
|
1161
|
+
protected readonly batchExpiryPolicy?: Partial<BatchExpiryPolicy> | undefined;
|
|
1162
|
+
/** Overrides for the checkpoint exit delay bounds; defaults derive from `network`. */
|
|
1163
|
+
protected readonly checkpointExitDelayPolicy?: Partial<CheckpointExitDelayPolicy> | undefined;
|
|
1065
1164
|
static MIN_FEE_RATE: number;
|
|
1066
1165
|
readonly identity: Identity;
|
|
1067
1166
|
private readonly _delegateManager?;
|
|
@@ -1305,7 +1404,11 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable
|
|
|
1305
1404
|
readonly settlementConfig: SettlementConfig | false;
|
|
1306
1405
|
protected constructor(identity: Identity, network: Network, onchainProvider: OnchainProvider, arkProvider: ArkProvider, indexerProvider: IndexerProvider, arkServerPublicKey: Bytes, offchainTapscript: DefaultVtxo.Script | DelegateVtxo.Script, boardingTapscript: DefaultVtxo.Script, serverUnrollScript: CSVMultisigTapscript.Type, forfeitOutputScript: Bytes, forfeitPubkey: Bytes, dustAmount: bigint, walletRepository: WalletRepository, contractRepository: ContractRepository,
|
|
1307
1406
|
/** @deprecated Use settlementConfig */
|
|
1308
|
-
renewalConfig?: WalletConfig["renewalConfig"], delegateProvider?: DelegateProvider, watcherConfig?: WalletConfig["watcherConfig"], settlementConfig?: WalletConfig["settlementConfig"], walletContractTimelocks?: RelativeTimelock[], receiveRotator?: WalletReceiveRotator, descriptorProvider?: DescriptorProvider, lookAheadWindow?: number
|
|
1407
|
+
renewalConfig?: WalletConfig["renewalConfig"], delegateProvider?: DelegateProvider, watcherConfig?: WalletConfig["watcherConfig"], settlementConfig?: WalletConfig["settlementConfig"], walletContractTimelocks?: RelativeTimelock[], receiveRotator?: WalletReceiveRotator, descriptorProvider?: DescriptorProvider, lookAheadWindow?: number,
|
|
1408
|
+
/** Overrides for the `batchExpiry` bounds; defaults derive from `network`. */
|
|
1409
|
+
batchExpiryPolicy?: Partial<BatchExpiryPolicy> | undefined,
|
|
1410
|
+
/** Overrides for the checkpoint exit delay bounds; defaults derive from `network`. */
|
|
1411
|
+
checkpointExitDelayPolicy?: Partial<CheckpointExitDelayPolicy> | undefined);
|
|
1309
1412
|
get assetManager(): IAssetManager;
|
|
1310
1413
|
getVtxoManager(): Promise<VtxoManager>;
|
|
1311
1414
|
dispose(): Promise<void>;
|
|
@@ -1583,4 +1686,4 @@ declare function selectVirtualCoins(coins: ExtendedVirtualCoin[], targetAmount:
|
|
|
1583
1686
|
*/
|
|
1584
1687
|
declare function waitForIncomingFunds(wallet: Wallet): Promise<IncomingFunds>;
|
|
1585
1688
|
|
|
1586
|
-
export { ArkError as A,
|
|
1689
|
+
export { ArkError as A, type BatchExpiryPolicy as B, type CheckpointExitDelayPolicy as C, DEFAULT_MIN_BATCH_EXPIRY_SECONDS as D, selectVirtualCoins as E, waitForIncomingFunds as F, type HDWalletCapable as H, type IncomingFunds as I, type ProviderConnectionState as P, ReadonlyWallet as R, type ServerInfoSource as S, Wallet as W, type ReceiveRotatorFactory as a, type ReceiveRotatorBootOpts as b, type ReceiveRotatorBoot as c, Batch as d, ArkErrorName as e, type ArkadeCashClaimResult as f, ArkadeCashCreateError as g, type ArkadeCashUnclaimedReason as h, type ArkadeCashUnclaimedVtxo as i, type BoardingUtxoGroup as j, DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS as k, type ProviderKind as l, ProviderUnavailableError as m, REGTEST_MIN_BATCH_EXPIRY_SECONDS as n, REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS as o, ServerResponseMismatchError as p, assertValidBatchExpiry as q, assertValidServerUnrollScript as r, defaultBatchExpiryPolicy as s, defaultCheckpointExitDelayPolicy as t, getRandomId as u, isArkError as v, isHDWalletCapable as w, maybeArkError as x, resolveBatchExpiryPolicy as y, resolveCheckpointExitDelayPolicy as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Identity, J as
|
|
1
|
+
import { a as Identity, p as RelativeTimelock, J as Network, K as CSVMultisigTapscript, L as SignerSet, M as BatchStartedEvent, P as TreeSigningStartedEvent, Q as TxTree, U as TreeNoncesEvent, X as BatchFinalizationEvent, Y as BatchFinalizedEvent, Z as BatchFailedEvent, _ as TreeTxEvent, $ as TreeSignatureEvent, i as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, a0 as DescriptorProvider, f as IContractManager, a1 as IReadonlyWallet, a2 as ReadonlyIdentity, a3 as OnchainProvider, o as IndexerProvider, a4 as DelegateProvider, a5 as ReadonlyWalletConfig, x as IntentRepository, B as VirtualTxRepository, a6 as ExitCaptureMode, a7 as ExitDataSource, d as ActivityRegistry, a8 as IReadonlyAssetManager, a9 as ContractSyncState, n as ArkProvider, aa as NetworkName, ab as ArkInfo, ac as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, A as ArkTransaction, e as Activity, E as ExtendedCoin, ad as Coin, t as ExtendedVirtualCoin, ae as ContractManager, af as ContractManagerConfig, I as IWallet, ag as SettlementConfig, j as IAssetManager, ah as VtxoManager, g as IDelegateManager, S as SendBitcoinParams, h as SettleParams, R as Recipient, ai as SignerSession, aj as SignedIntent, ak as Intent, al as TimeHeight } from './ark-CJgH_pmn.cjs';
|
|
2
2
|
import { Transaction } from '@scure/btc-signer';
|
|
3
3
|
import { TransactionOutput } from '@scure/btc-signer/psbt.js';
|
|
4
4
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
5
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
5
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-Dk-OJVdf.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Capability a wallet exposes so descriptor-blind consumers — Boltz swaps and
|
|
@@ -36,6 +36,101 @@ interface HDWalletCapable {
|
|
|
36
36
|
/** Structural type guard for {@link HDWalletCapable}. */
|
|
37
37
|
declare function isHDWalletCapable(value: unknown): value is HDWalletCapable;
|
|
38
38
|
|
|
39
|
+
/** Wall-clock floor for `batchExpiry` outside regtest. */
|
|
40
|
+
declare const DEFAULT_MIN_BATCH_EXPIRY_SECONDS = 86400n;
|
|
41
|
+
/** Wall-clock floor for `batchExpiry` on regtest (~10 blocks). */
|
|
42
|
+
declare const REGTEST_MIN_BATCH_EXPIRY_SECONDS = 6000n;
|
|
43
|
+
/** Bounds applied to a server-supplied `BatchStartedEvent.batchExpiry`. */
|
|
44
|
+
type BatchExpiryPolicy = {
|
|
45
|
+
/** Minimum wall-clock delay in seconds, after normalization. */
|
|
46
|
+
minSeconds: bigint;
|
|
47
|
+
/**
|
|
48
|
+
* Reject block-typed timelocks. Mirrors arkd, which allows a block-typed
|
|
49
|
+
* vtxo tree expiry only on regtest.
|
|
50
|
+
*/
|
|
51
|
+
requireSeconds: boolean;
|
|
52
|
+
/** When advertised by the operator, `batchExpiry` must equal it exactly. */
|
|
53
|
+
advertisedVtxoTreeExpiry?: bigint;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Default policy for a network.
|
|
57
|
+
*
|
|
58
|
+
* Derive it from the locally held {@link Network} — pinned at wallet setup —
|
|
59
|
+
* rather than from a per-round server field, so the permissive regtest branch
|
|
60
|
+
* can't be selected by the operator at event time.
|
|
61
|
+
*/
|
|
62
|
+
declare function defaultBatchExpiryPolicy(network: Network): BatchExpiryPolicy;
|
|
63
|
+
/** Resolve a policy for `network`, applying any caller overrides on top. */
|
|
64
|
+
declare function resolveBatchExpiryPolicy(network: Network, overrides?: Partial<BatchExpiryPolicy>): BatchExpiryPolicy;
|
|
65
|
+
/**
|
|
66
|
+
* Check a server-supplied batch expiry against `policy` and return the timelock
|
|
67
|
+
* to commit to.
|
|
68
|
+
*
|
|
69
|
+
* The sweep leaf of the shared batch output is derived from this value, so it
|
|
70
|
+
* is never reconstructible from anything else the server sends: validating the
|
|
71
|
+
* tree only proves it is consistent with whatever value was chosen. Callers
|
|
72
|
+
* must encode the returned timelock rather than re-deriving their own.
|
|
73
|
+
*
|
|
74
|
+
* @throws {ServerResponseMismatchError} if the value is out of policy.
|
|
75
|
+
*/
|
|
76
|
+
declare function assertValidBatchExpiry(batchExpiry: bigint, policy: BatchExpiryPolicy): RelativeTimelock;
|
|
77
|
+
|
|
78
|
+
/** Wall-clock floor for the checkpoint exit delay outside regtest. Matches arkd's own default. */
|
|
79
|
+
declare const DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS = 86400n;
|
|
80
|
+
/**
|
|
81
|
+
* Wall-clock floor for the checkpoint exit delay on regtest (~2 blocks nominal).
|
|
82
|
+
*
|
|
83
|
+
* Deliberately lower than {@link REGTEST_MIN_BATCH_EXPIRY_SECONDS "../wallet/batchExpiry"} — this
|
|
84
|
+
* repo's own regtest envs run `ARKD_CHECKPOINT_EXIT_DELAY` as low as 5 blocks
|
|
85
|
+
* (`packages/boltz-swap/.env.regtest`), so the floor must clear that while still rejecting a
|
|
86
|
+
* 1-block attack.
|
|
87
|
+
*/
|
|
88
|
+
declare const REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS = 1200n;
|
|
89
|
+
/** Bounds applied to a server-supplied `ArkInfo.checkpointTapscript`. */
|
|
90
|
+
type CheckpointExitDelayPolicy = {
|
|
91
|
+
/** Minimum wall-clock delay in seconds, after normalization. */
|
|
92
|
+
minSeconds: bigint;
|
|
93
|
+
/**
|
|
94
|
+
* Reject block-typed timelocks. Mirrors arkd, which allows a block-typed
|
|
95
|
+
* checkpoint exit delay only on regtest.
|
|
96
|
+
*/
|
|
97
|
+
requireSeconds: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* When set, the script's embedded pubkey must equal this x-only key.
|
|
100
|
+
*
|
|
101
|
+
* arkd always builds the checkpoint tapscript from its own `forfeitPubkey`
|
|
102
|
+
* (`internal/core/application/service.go`), so this should be the
|
|
103
|
+
* `forfeitPubkey` the caller already trusts — pinned wallet state where one
|
|
104
|
+
* exists, otherwise the same `ArkInfo` response's own `forfeitPubkey` field
|
|
105
|
+
* as a self-consistency check.
|
|
106
|
+
*/
|
|
107
|
+
advertisedForfeitPubkey?: Bytes;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Default policy for a network.
|
|
111
|
+
*
|
|
112
|
+
* Derive it from the locally held {@link Network} — pinned at wallet setup —
|
|
113
|
+
* rather than from server data, so the permissive regtest branch can't be
|
|
114
|
+
* selected by the operator.
|
|
115
|
+
*/
|
|
116
|
+
declare function defaultCheckpointExitDelayPolicy(network: Network): CheckpointExitDelayPolicy;
|
|
117
|
+
/** Resolve a policy for `network`, applying any caller overrides on top. */
|
|
118
|
+
declare function resolveCheckpointExitDelayPolicy(network: Network, overrides?: Partial<CheckpointExitDelayPolicy>): CheckpointExitDelayPolicy;
|
|
119
|
+
/**
|
|
120
|
+
* Decode and validate a server-supplied `checkpointTapscript` against `policy`.
|
|
121
|
+
*
|
|
122
|
+
* Every offchain send/claim builds its checkpoint outputs' server-claim leaf
|
|
123
|
+
* straight from this script — undecodable, sub-floor or wrong-pubkey values
|
|
124
|
+
* let the operator sweep an in-flight checkpoint before it settles. This is
|
|
125
|
+
* the sole gate: callers must use the returned script rather than decoding
|
|
126
|
+
* their own copy.
|
|
127
|
+
*
|
|
128
|
+
* @throws {ServerResponseMismatchError} if the script fails to decode, its
|
|
129
|
+
* timelock is out of policy, or its pubkey does not match
|
|
130
|
+
* `policy.advertisedForfeitPubkey` (when set).
|
|
131
|
+
*/
|
|
132
|
+
declare function assertValidServerUnrollScript(checkpointTapscript: string, policy: CheckpointExitDelayPolicy): CSVMultisigTapscript.Type;
|
|
133
|
+
|
|
39
134
|
declare function getRandomId(): string;
|
|
40
135
|
/**
|
|
41
136
|
* What a recipient Arkade address must match. An address failing either check
|
|
@@ -1062,6 +1157,10 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable
|
|
|
1062
1157
|
readonly arkProvider: ArkProvider;
|
|
1063
1158
|
readonly forfeitOutputScript: Bytes;
|
|
1064
1159
|
readonly forfeitPubkey: Bytes;
|
|
1160
|
+
/** Overrides for the `batchExpiry` bounds; defaults derive from `network`. */
|
|
1161
|
+
protected readonly batchExpiryPolicy?: Partial<BatchExpiryPolicy> | undefined;
|
|
1162
|
+
/** Overrides for the checkpoint exit delay bounds; defaults derive from `network`. */
|
|
1163
|
+
protected readonly checkpointExitDelayPolicy?: Partial<CheckpointExitDelayPolicy> | undefined;
|
|
1065
1164
|
static MIN_FEE_RATE: number;
|
|
1066
1165
|
readonly identity: Identity;
|
|
1067
1166
|
private readonly _delegateManager?;
|
|
@@ -1305,7 +1404,11 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable
|
|
|
1305
1404
|
readonly settlementConfig: SettlementConfig | false;
|
|
1306
1405
|
protected constructor(identity: Identity, network: Network, onchainProvider: OnchainProvider, arkProvider: ArkProvider, indexerProvider: IndexerProvider, arkServerPublicKey: Bytes, offchainTapscript: DefaultVtxo.Script | DelegateVtxo.Script, boardingTapscript: DefaultVtxo.Script, serverUnrollScript: CSVMultisigTapscript.Type, forfeitOutputScript: Bytes, forfeitPubkey: Bytes, dustAmount: bigint, walletRepository: WalletRepository, contractRepository: ContractRepository,
|
|
1307
1406
|
/** @deprecated Use settlementConfig */
|
|
1308
|
-
renewalConfig?: WalletConfig["renewalConfig"], delegateProvider?: DelegateProvider, watcherConfig?: WalletConfig["watcherConfig"], settlementConfig?: WalletConfig["settlementConfig"], walletContractTimelocks?: RelativeTimelock[], receiveRotator?: WalletReceiveRotator, descriptorProvider?: DescriptorProvider, lookAheadWindow?: number
|
|
1407
|
+
renewalConfig?: WalletConfig["renewalConfig"], delegateProvider?: DelegateProvider, watcherConfig?: WalletConfig["watcherConfig"], settlementConfig?: WalletConfig["settlementConfig"], walletContractTimelocks?: RelativeTimelock[], receiveRotator?: WalletReceiveRotator, descriptorProvider?: DescriptorProvider, lookAheadWindow?: number,
|
|
1408
|
+
/** Overrides for the `batchExpiry` bounds; defaults derive from `network`. */
|
|
1409
|
+
batchExpiryPolicy?: Partial<BatchExpiryPolicy> | undefined,
|
|
1410
|
+
/** Overrides for the checkpoint exit delay bounds; defaults derive from `network`. */
|
|
1411
|
+
checkpointExitDelayPolicy?: Partial<CheckpointExitDelayPolicy> | undefined);
|
|
1309
1412
|
get assetManager(): IAssetManager;
|
|
1310
1413
|
getVtxoManager(): Promise<VtxoManager>;
|
|
1311
1414
|
dispose(): Promise<void>;
|
|
@@ -1583,4 +1686,4 @@ declare function selectVirtualCoins(coins: ExtendedVirtualCoin[], targetAmount:
|
|
|
1583
1686
|
*/
|
|
1584
1687
|
declare function waitForIncomingFunds(wallet: Wallet): Promise<IncomingFunds>;
|
|
1585
1688
|
|
|
1586
|
-
export { ArkError as A,
|
|
1689
|
+
export { ArkError as A, type BatchExpiryPolicy as B, type CheckpointExitDelayPolicy as C, DEFAULT_MIN_BATCH_EXPIRY_SECONDS as D, selectVirtualCoins as E, waitForIncomingFunds as F, type HDWalletCapable as H, type IncomingFunds as I, type ProviderConnectionState as P, ReadonlyWallet as R, type ServerInfoSource as S, Wallet as W, type ReceiveRotatorFactory as a, type ReceiveRotatorBootOpts as b, type ReceiveRotatorBoot as c, Batch as d, ArkErrorName as e, type ArkadeCashClaimResult as f, ArkadeCashCreateError as g, type ArkadeCashUnclaimedReason as h, type ArkadeCashUnclaimedVtxo as i, type BoardingUtxoGroup as j, DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS as k, type ProviderKind as l, ProviderUnavailableError as m, REGTEST_MIN_BATCH_EXPIRY_SECONDS as n, REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS as o, ServerResponseMismatchError as p, assertValidBatchExpiry as q, assertValidServerUnrollScript as r, defaultBatchExpiryPolicy as s, defaultCheckpointExitDelayPolicy as t, getRandomId as u, isArkError as v, isHDWalletCapable as w, maybeArkError as x, resolveBatchExpiryPolicy as y, resolveCheckpointExitDelayPolicy as z };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
3
|
+
var chunkA7TOVUYG_cjs = require('../../chunk-A7TOVUYG.cjs');
|
|
4
|
+
require('../../chunk-KEG4AAKX.cjs');
|
|
5
|
+
require('../../chunk-YK6NP5KX.cjs');
|
|
6
|
+
require('../../chunk-OWTKOMJZ.cjs');
|
|
7
|
+
require('../../chunk-KUN5ZRMW.cjs');
|
|
8
8
|
require('../../chunk-5BLDMQED.cjs');
|
|
9
9
|
|
|
10
10
|
// src/worker/expo/taskQueue.ts
|
|
@@ -121,19 +121,19 @@ var AsyncStorageTaskQueue = class {
|
|
|
121
121
|
|
|
122
122
|
Object.defineProperty(exports, "CONTRACT_POLL_TASK_TYPE", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkA7TOVUYG_cjs.CONTRACT_POLL_TASK_TYPE; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "contractPollProcessor", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkA7TOVUYG_cjs.contractPollProcessor; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "createTaskDependencies", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkA7TOVUYG_cjs.createTaskDependencies; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "runTasks", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkA7TOVUYG_cjs.runTasks; }
|
|
137
137
|
});
|
|
138
138
|
exports.AsyncStorageTaskQueue = AsyncStorageTaskQueue;
|
|
139
139
|
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 '../../ark-
|
|
1
|
+
import { T as TaskProcessor } from '../../taskRunner-CnGSTaAJ.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-CnGSTaAJ.cjs';
|
|
3
|
+
export { A as AsyncStorageLike, a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-BlrsUUX_.cjs';
|
|
4
|
+
import '../../ark-CJgH_pmn.cjs';
|
|
5
5
|
import '@scure/btc-signer/transaction.js';
|
|
6
6
|
import '@scure/btc-signer/utils.js';
|
|
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 '../../ark-
|
|
1
|
+
import { T as TaskProcessor } from '../../taskRunner-F7tWzsrC.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-F7tWzsrC.js';
|
|
3
|
+
export { A as AsyncStorageLike, a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-BeeZbf-Q.js';
|
|
4
|
+
import '../../ark-CJgH_pmn.js';
|
|
5
5
|
import '@scure/btc-signer/transaction.js';
|
|
6
6
|
import '@scure/btc-signer/utils.js';
|
|
7
7
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { CONTRACT_POLL_TASK_TYPE, contractPollProcessor, createTaskDependencies, runTasks } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
1
|
+
export { CONTRACT_POLL_TASK_TYPE, contractPollProcessor, createTaskDependencies, runTasks } from '../../chunk-C4SVRVNM.js';
|
|
2
|
+
import '../../chunk-NIZPFPUM.js';
|
|
3
|
+
import '../../chunk-ASUJNZ63.js';
|
|
4
|
+
import '../../chunk-P6L2W5IL.js';
|
|
5
|
+
import '../../chunk-PUNBWFIV.js';
|
|
6
6
|
import '../../chunk-NSBPE2FW.js';
|
|
7
7
|
|
|
8
8
|
// src/worker/expo/taskQueue.ts
|