@arkade-os/sdk 0.4.55 → 0.4.56
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-Do9Lqfsp.d.cts → ark-Cgsd9tMd.d.cts} +6 -2
- package/dist/{ark-Do9Lqfsp.d.ts → ark-Cgsd9tMd.d.ts} +6 -2
- package/dist/{asyncStorageTaskQueue-C3DYxvAT.d.cts → asyncStorageTaskQueue-C0ZsDE60.d.cts} +1 -1
- package/dist/{asyncStorageTaskQueue-DOnBOEDn.d.ts → asyncStorageTaskQueue-CXz4PRBW.d.ts} +1 -1
- package/dist/{chunk-G7DOBFQN.cjs → chunk-24YNIQSW.cjs} +15 -15
- package/dist/{chunk-G7DOBFQN.cjs.map → chunk-24YNIQSW.cjs.map} +1 -1
- package/dist/{chunk-V2TOHHPW.cjs → chunk-37XKN5DZ.cjs} +40 -40
- package/dist/{chunk-V2TOHHPW.cjs.map → chunk-37XKN5DZ.cjs.map} +1 -1
- package/dist/{chunk-LAONNMM5.js → chunk-5IMBONCK.js} +4 -4
- package/dist/{chunk-LAONNMM5.js.map → chunk-5IMBONCK.js.map} +1 -1
- package/dist/{chunk-OWCPXRGP.cjs → chunk-CDWLZQQW.cjs} +3 -3
- package/dist/{chunk-OWCPXRGP.cjs.map → chunk-CDWLZQQW.cjs.map} +1 -1
- package/dist/{chunk-ZPL34T2Q.cjs → chunk-ENRRZFZ4.cjs} +431 -378
- package/dist/chunk-ENRRZFZ4.cjs.map +1 -0
- package/dist/{chunk-JCJ5WFS3.js → chunk-IFGN2GB2.js} +3 -3
- package/dist/{chunk-JCJ5WFS3.js.map → chunk-IFGN2GB2.js.map} +1 -1
- package/dist/{chunk-C6UYPHTQ.cjs → chunk-IMVKQQHU.cjs} +9 -9
- package/dist/{chunk-C6UYPHTQ.cjs.map → chunk-IMVKQQHU.cjs.map} +1 -1
- package/dist/{chunk-CSS74VCN.cjs → chunk-MXPBHDOI.cjs} +17 -17
- package/dist/{chunk-CSS74VCN.cjs.map → chunk-MXPBHDOI.cjs.map} +1 -1
- package/dist/{chunk-ENWR2F2P.js → chunk-NN7BNNF5.js} +3 -3
- package/dist/{chunk-ENWR2F2P.js.map → chunk-NN7BNNF5.js.map} +1 -1
- package/dist/{chunk-QMPNPZ2T.js → chunk-OOPDT2WV.js} +3 -3
- package/dist/{chunk-QMPNPZ2T.js.map → chunk-OOPDT2WV.js.map} +1 -1
- package/dist/{chunk-QO3IKBYL.js → chunk-T22257HW.js} +62 -11
- package/dist/chunk-T22257HW.js.map +1 -0
- package/dist/{chunk-SG4X7SEC.js → chunk-VNDVUM2W.js} +4 -4
- package/dist/{chunk-SG4X7SEC.js.map → chunk-VNDVUM2W.js.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-DmhFrtdq.d.ts → delegate-CZPXtd2F.d.ts} +1 -1
- package/dist/{delegate-C0iIBxen.d.cts → delegate-xXT8O-Kn.d.cts} +1 -1
- package/dist/{index-BNt4wcSh.d.ts → index-BBJ466mM.d.ts} +2 -2
- package/dist/{index-BnLM1XxA.d.cts → index-BYG2eKOA.d.cts} +2 -2
- package/dist/index.cjs +219 -211
- package/dist/index.d.cts +40 -11
- package/dist/index.d.ts +40 -11
- 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-RwUvgQ5M.d.cts → taskRunner-BG1PRFps.d.cts} +1 -1
- package/dist/{taskRunner-Bgs-0I3x.d.ts → taskRunner-C46NnRsY.d.ts} +1 -1
- 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-Ck7BH8zR.d.cts → wallet-1yWg75gN.d.cts} +20 -3
- package/dist/{wallet-5Aou-V5n.d.ts → wallet-DuCm55EC.d.ts} +20 -3
- 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-QO3IKBYL.js.map +0 -1
- package/dist/chunk-ZPL34T2Q.cjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
3
|
+
var chunkIMVKQQHU_cjs = require('../../chunk-IMVKQQHU.cjs');
|
|
4
|
+
var chunkMXPBHDOI_cjs = require('../../chunk-MXPBHDOI.cjs');
|
|
5
|
+
var chunkENRRZFZ4_cjs = require('../../chunk-ENRRZFZ4.cjs');
|
|
6
|
+
require('../../chunk-24YNIQSW.cjs');
|
|
7
|
+
require('../../chunk-37XKN5DZ.cjs');
|
|
8
|
+
require('../../chunk-CDWLZQQW.cjs');
|
|
9
9
|
require('../../chunk-5BLDMQED.cjs');
|
|
10
10
|
var TaskManager = require('expo-task-manager');
|
|
11
11
|
var BackgroundTask = require('expo-background-task');
|
|
@@ -36,7 +36,7 @@ function defineExpoBackgroundTask(taskName, options) {
|
|
|
36
36
|
taskQueue,
|
|
37
37
|
walletRepository,
|
|
38
38
|
contractRepository,
|
|
39
|
-
processors = [
|
|
39
|
+
processors = [chunkIMVKQQHU_cjs.contractPollProcessor]
|
|
40
40
|
} = options;
|
|
41
41
|
TaskManager__namespace.defineTask(taskName, async () => {
|
|
42
42
|
try {
|
|
@@ -44,24 +44,24 @@ function defineExpoBackgroundTask(taskName, options) {
|
|
|
44
44
|
if (!config) {
|
|
45
45
|
return BackgroundTask__namespace.BackgroundTaskResult.Success;
|
|
46
46
|
}
|
|
47
|
-
const indexerProvider = new
|
|
48
|
-
const arkProvider = new
|
|
49
|
-
const deps =
|
|
47
|
+
const indexerProvider = new chunkMXPBHDOI_cjs.ExpoIndexerProvider(config.arkServerUrl);
|
|
48
|
+
const arkProvider = new chunkMXPBHDOI_cjs.ExpoArkProvider(config.arkServerUrl);
|
|
49
|
+
const deps = chunkIMVKQQHU_cjs.createTaskDependencies({
|
|
50
50
|
walletRepository,
|
|
51
51
|
contractRepository,
|
|
52
52
|
indexerProvider,
|
|
53
53
|
arkProvider
|
|
54
54
|
});
|
|
55
|
-
await
|
|
55
|
+
await chunkIMVKQQHU_cjs.runTasks(taskQueue, processors, deps);
|
|
56
56
|
const results = await taskQueue.getResults();
|
|
57
57
|
if (results.length > 0) {
|
|
58
58
|
await taskQueue.acknowledgeResults(results.map((r) => r.id));
|
|
59
59
|
}
|
|
60
|
-
const existing = await taskQueue.getTasks(
|
|
60
|
+
const existing = await taskQueue.getTasks(chunkIMVKQQHU_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
61
61
|
if (existing.length === 0) {
|
|
62
62
|
const task = {
|
|
63
|
-
id:
|
|
64
|
-
type:
|
|
63
|
+
id: chunkENRRZFZ4_cjs.getRandomId(),
|
|
64
|
+
type: chunkIMVKQQHU_cjs.CONTRACT_POLL_TASK_TYPE,
|
|
65
65
|
data: {},
|
|
66
66
|
createdAt: Date.now()
|
|
67
67
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository } from '../../ark-
|
|
2
|
-
import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../ark-Cgsd9tMd.cjs';
|
|
2
|
+
import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-C0ZsDE60.cjs';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-BG1PRFps.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 { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../ark-Cgsd9tMd.js';
|
|
2
|
+
import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-CXz4PRBW.js';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-C46NnRsY.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-5IMBONCK.js';
|
|
2
|
+
import { ExpoIndexerProvider, ExpoArkProvider } from '../../chunk-VNDVUM2W.js';
|
|
3
|
+
import { getRandomId } from '../../chunk-T22257HW.js';
|
|
4
|
+
import '../../chunk-NN7BNNF5.js';
|
|
5
|
+
import '../../chunk-OOPDT2WV.js';
|
|
6
|
+
import '../../chunk-IFGN2GB2.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 chunkIMVKQQHU_cjs = require('../../chunk-IMVKQQHU.cjs');
|
|
4
|
+
var chunkENRRZFZ4_cjs = require('../../chunk-ENRRZFZ4.cjs');
|
|
5
|
+
require('../../chunk-24YNIQSW.cjs');
|
|
6
|
+
require('../../chunk-37XKN5DZ.cjs');
|
|
7
|
+
var chunkCDWLZQQW_cjs = require('../../chunk-CDWLZQQW.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 chunkENRRZFZ4_cjs.Wallet.create(config);
|
|
62
|
+
const processors = config.background.processors ?? [chunkIMVKQQHU_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) => chunkENRRZFZ4_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 chunkCDWLZQQW_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 chunkIMVKQQHU_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(chunkIMVKQQHU_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
113
113
|
if (existing.length > 0) return;
|
|
114
114
|
const task = {
|
|
115
|
-
id:
|
|
116
|
-
type:
|
|
115
|
+
id: chunkENRRZFZ4_cjs.getRandomId(),
|
|
116
|
+
type: chunkIMVKQQHU_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(chunkIMVKQQHU_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 { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as Wallet, P as ProviderConnectionState } from '../../wallet-1yWg75gN.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-Cgsd9tMd.cjs';
|
|
3
|
+
import { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-BG1PRFps.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-xXT8O-Kn.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 { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as Wallet, P as ProviderConnectionState } from '../../wallet-DuCm55EC.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-Cgsd9tMd.js';
|
|
3
|
+
import { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-C46NnRsY.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-CZPXtd2F.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-5IMBONCK.js';
|
|
2
|
+
import { Wallet, getRandomId, extendVirtualCoinForContract } from '../../chunk-T22257HW.js';
|
|
3
|
+
import '../../chunk-NN7BNNF5.js';
|
|
4
|
+
import '../../chunk-OOPDT2WV.js';
|
|
5
|
+
import { RestArkProvider } from '../../chunk-IFGN2GB2.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, J as SignerSet, K as BatchStartedEvent, L as TreeSigningStartedEvent, M as TxTree, P as TreeNoncesEvent, Q as BatchFinalizationEvent, U as BatchFinalizedEvent, X as BatchFailedEvent, Y as TreeTxEvent, Z as TreeSignatureEvent, i as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, _ as DescriptorProvider, f as IContractManager, $ as IReadonlyWallet, a0 as ReadonlyIdentity, a1 as Network, a2 as OnchainProvider, o as IndexerProvider, a3 as DelegateProvider, a4 as ReadonlyWalletConfig, x as IntentRepository, B as VirtualTxRepository, a5 as ExitCaptureMode, a6 as ExitDataSource, p as RelativeTimelock, d as ActivityRegistry, a7 as IReadonlyAssetManager, a8 as ContractSyncState, n as ArkProvider, a9 as NetworkName, aa as ArkInfo, ab as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, A as ArkTransaction, e as Activity, E as ExtendedCoin, ac as Coin, t as ExtendedVirtualCoin, ad as ContractManager, ae as ContractManagerConfig, I as IWallet, af as CSVMultisigTapscript, 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-Cgsd9tMd.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-xXT8O-Kn.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Capability a wallet exposes so descriptor-blind consumers — Boltz swaps and
|
|
@@ -36,6 +36,17 @@ interface HDWalletCapable {
|
|
|
36
36
|
/** Structural type guard for {@link HDWalletCapable}. */
|
|
37
37
|
declare function isHDWalletCapable(value: unknown): value is HDWalletCapable;
|
|
38
38
|
|
|
39
|
+
declare function getRandomId(): string;
|
|
40
|
+
/**
|
|
41
|
+
* What a recipient Arkade address must match. An address failing either check
|
|
42
|
+
* belongs to another network or operator, so this wallet's operator cannot
|
|
43
|
+
* create the VTXO where the recipient's wallet expects it.
|
|
44
|
+
*/
|
|
45
|
+
type RecipientAddressContext = {
|
|
46
|
+
hrp: string;
|
|
47
|
+
signerSet: SignerSet;
|
|
48
|
+
};
|
|
49
|
+
|
|
39
50
|
declare class ArkError extends Error {
|
|
40
51
|
readonly code: number;
|
|
41
52
|
readonly message: string;
|
|
@@ -750,6 +761,12 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
750
761
|
* spend path, which is current-signer-only.
|
|
751
762
|
*/
|
|
752
763
|
protected watchedBoardingSigners(): Set<string>;
|
|
764
|
+
/**
|
|
765
|
+
* `serverPubKey` defaults to the live key; spend paths that snapshot it
|
|
766
|
+
* against mid-flight rotation pass their snapshot, so the check reads from
|
|
767
|
+
* one rotation epoch.
|
|
768
|
+
*/
|
|
769
|
+
protected recipientAddressContext(serverPubKey?: Bytes): RecipientAddressContext;
|
|
753
770
|
/**
|
|
754
771
|
* Currently-active receive tapscript. Read-only from the outside;
|
|
755
772
|
* mutated only via {@link Wallet.setOffchainTapscriptForRotation}
|
|
@@ -1566,4 +1583,4 @@ declare function selectVirtualCoins(coins: ExtendedVirtualCoin[], targetAmount:
|
|
|
1566
1583
|
*/
|
|
1567
1584
|
declare function waitForIncomingFunds(wallet: Wallet): Promise<IncomingFunds>;
|
|
1568
1585
|
|
|
1569
|
-
export { ArkError as A, Batch as B, 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, ArkErrorName as d, type ArkadeCashClaimResult as e, ArkadeCashCreateError as f, type ArkadeCashUnclaimedReason as g, type ArkadeCashUnclaimedVtxo as h, type BoardingUtxoGroup as i, type ProviderKind as j, ProviderUnavailableError as k, ServerResponseMismatchError as l,
|
|
1586
|
+
export { ArkError as A, Batch as B, 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, ArkErrorName as d, type ArkadeCashClaimResult as e, ArkadeCashCreateError as f, type ArkadeCashUnclaimedReason as g, type ArkadeCashUnclaimedVtxo as h, type BoardingUtxoGroup as i, type ProviderKind as j, ProviderUnavailableError as k, ServerResponseMismatchError as l, getRandomId as m, isArkError as n, isHDWalletCapable as o, maybeArkError as p, selectVirtualCoins as s, waitForIncomingFunds as w };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Identity, J as
|
|
1
|
+
import { a as Identity, J as SignerSet, K as BatchStartedEvent, L as TreeSigningStartedEvent, M as TxTree, P as TreeNoncesEvent, Q as BatchFinalizationEvent, U as BatchFinalizedEvent, X as BatchFailedEvent, Y as TreeTxEvent, Z as TreeSignatureEvent, i as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, _ as DescriptorProvider, f as IContractManager, $ as IReadonlyWallet, a0 as ReadonlyIdentity, a1 as Network, a2 as OnchainProvider, o as IndexerProvider, a3 as DelegateProvider, a4 as ReadonlyWalletConfig, x as IntentRepository, B as VirtualTxRepository, a5 as ExitCaptureMode, a6 as ExitDataSource, p as RelativeTimelock, d as ActivityRegistry, a7 as IReadonlyAssetManager, a8 as ContractSyncState, n as ArkProvider, a9 as NetworkName, aa as ArkInfo, ab as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, A as ArkTransaction, e as Activity, E as ExtendedCoin, ac as Coin, t as ExtendedVirtualCoin, ad as ContractManager, ae as ContractManagerConfig, I as IWallet, af as CSVMultisigTapscript, 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-Cgsd9tMd.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-CZPXtd2F.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Capability a wallet exposes so descriptor-blind consumers — Boltz swaps and
|
|
@@ -36,6 +36,17 @@ interface HDWalletCapable {
|
|
|
36
36
|
/** Structural type guard for {@link HDWalletCapable}. */
|
|
37
37
|
declare function isHDWalletCapable(value: unknown): value is HDWalletCapable;
|
|
38
38
|
|
|
39
|
+
declare function getRandomId(): string;
|
|
40
|
+
/**
|
|
41
|
+
* What a recipient Arkade address must match. An address failing either check
|
|
42
|
+
* belongs to another network or operator, so this wallet's operator cannot
|
|
43
|
+
* create the VTXO where the recipient's wallet expects it.
|
|
44
|
+
*/
|
|
45
|
+
type RecipientAddressContext = {
|
|
46
|
+
hrp: string;
|
|
47
|
+
signerSet: SignerSet;
|
|
48
|
+
};
|
|
49
|
+
|
|
39
50
|
declare class ArkError extends Error {
|
|
40
51
|
readonly code: number;
|
|
41
52
|
readonly message: string;
|
|
@@ -750,6 +761,12 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
750
761
|
* spend path, which is current-signer-only.
|
|
751
762
|
*/
|
|
752
763
|
protected watchedBoardingSigners(): Set<string>;
|
|
764
|
+
/**
|
|
765
|
+
* `serverPubKey` defaults to the live key; spend paths that snapshot it
|
|
766
|
+
* against mid-flight rotation pass their snapshot, so the check reads from
|
|
767
|
+
* one rotation epoch.
|
|
768
|
+
*/
|
|
769
|
+
protected recipientAddressContext(serverPubKey?: Bytes): RecipientAddressContext;
|
|
753
770
|
/**
|
|
754
771
|
* Currently-active receive tapscript. Read-only from the outside;
|
|
755
772
|
* mutated only via {@link Wallet.setOffchainTapscriptForRotation}
|
|
@@ -1566,4 +1583,4 @@ declare function selectVirtualCoins(coins: ExtendedVirtualCoin[], targetAmount:
|
|
|
1566
1583
|
*/
|
|
1567
1584
|
declare function waitForIncomingFunds(wallet: Wallet): Promise<IncomingFunds>;
|
|
1568
1585
|
|
|
1569
|
-
export { ArkError as A, Batch as B, 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, ArkErrorName as d, type ArkadeCashClaimResult as e, ArkadeCashCreateError as f, type ArkadeCashUnclaimedReason as g, type ArkadeCashUnclaimedVtxo as h, type BoardingUtxoGroup as i, type ProviderKind as j, ProviderUnavailableError as k, ServerResponseMismatchError as l,
|
|
1586
|
+
export { ArkError as A, Batch as B, 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, ArkErrorName as d, type ArkadeCashClaimResult as e, ArkadeCashCreateError as f, type ArkadeCashUnclaimedReason as g, type ArkadeCashUnclaimedVtxo as h, type BoardingUtxoGroup as i, type ProviderKind as j, ProviderUnavailableError as k, ServerResponseMismatchError as l, getRandomId as m, isArkError as n, isHDWalletCapable as o, maybeArkError as p, selectVirtualCoins as s, waitForIncomingFunds as w };
|
|
@@ -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 chunkIMVKQQHU_cjs = require('../../chunk-IMVKQQHU.cjs');
|
|
4
|
+
require('../../chunk-ENRRZFZ4.cjs');
|
|
5
|
+
require('../../chunk-24YNIQSW.cjs');
|
|
6
|
+
require('../../chunk-37XKN5DZ.cjs');
|
|
7
|
+
require('../../chunk-CDWLZQQW.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 chunkIMVKQQHU_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 chunkIMVKQQHU_cjs.contractPollProcessor; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "createTaskDependencies", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkIMVKQQHU_cjs.createTaskDependencies; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "runTasks", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkIMVKQQHU_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, b as TaskDependencies, c as TaskItem, a 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 '../../ark-
|
|
1
|
+
import { T as TaskProcessor } from '../../taskRunner-BG1PRFps.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-BG1PRFps.cjs';
|
|
3
|
+
export { a as AsyncStorageLike, A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-C0ZsDE60.cjs';
|
|
4
|
+
import '../../ark-Cgsd9tMd.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, b as TaskDependencies, c as TaskItem, a 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 '../../ark-
|
|
1
|
+
import { T as TaskProcessor } from '../../taskRunner-C46NnRsY.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-C46NnRsY.js';
|
|
3
|
+
export { a as AsyncStorageLike, A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-CXz4PRBW.js';
|
|
4
|
+
import '../../ark-Cgsd9tMd.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-5IMBONCK.js';
|
|
2
|
+
import '../../chunk-T22257HW.js';
|
|
3
|
+
import '../../chunk-NN7BNNF5.js';
|
|
4
|
+
import '../../chunk-OOPDT2WV.js';
|
|
5
|
+
import '../../chunk-IFGN2GB2.js';
|
|
6
6
|
import '../../chunk-NSBPE2FW.js';
|
|
7
7
|
|
|
8
8
|
// src/worker/expo/taskQueue.ts
|