@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.
Files changed (73) hide show
  1. package/dist/adapters/expo.cjs +5 -5
  2. package/dist/adapters/expo.d.cts +2 -2
  3. package/dist/adapters/expo.d.ts +2 -2
  4. package/dist/adapters/expo.js +3 -3
  5. package/dist/adapters/indexedDB.cjs +5 -5
  6. package/dist/adapters/indexedDB.js +4 -4
  7. package/dist/{ark-Do9Lqfsp.d.cts → ark-Cgsd9tMd.d.cts} +6 -2
  8. package/dist/{ark-Do9Lqfsp.d.ts → ark-Cgsd9tMd.d.ts} +6 -2
  9. package/dist/{asyncStorageTaskQueue-C3DYxvAT.d.cts → asyncStorageTaskQueue-C0ZsDE60.d.cts} +1 -1
  10. package/dist/{asyncStorageTaskQueue-DOnBOEDn.d.ts → asyncStorageTaskQueue-CXz4PRBW.d.ts} +1 -1
  11. package/dist/{chunk-G7DOBFQN.cjs → chunk-24YNIQSW.cjs} +15 -15
  12. package/dist/{chunk-G7DOBFQN.cjs.map → chunk-24YNIQSW.cjs.map} +1 -1
  13. package/dist/{chunk-V2TOHHPW.cjs → chunk-37XKN5DZ.cjs} +40 -40
  14. package/dist/{chunk-V2TOHHPW.cjs.map → chunk-37XKN5DZ.cjs.map} +1 -1
  15. package/dist/{chunk-LAONNMM5.js → chunk-5IMBONCK.js} +4 -4
  16. package/dist/{chunk-LAONNMM5.js.map → chunk-5IMBONCK.js.map} +1 -1
  17. package/dist/{chunk-OWCPXRGP.cjs → chunk-CDWLZQQW.cjs} +3 -3
  18. package/dist/{chunk-OWCPXRGP.cjs.map → chunk-CDWLZQQW.cjs.map} +1 -1
  19. package/dist/{chunk-ZPL34T2Q.cjs → chunk-ENRRZFZ4.cjs} +431 -378
  20. package/dist/chunk-ENRRZFZ4.cjs.map +1 -0
  21. package/dist/{chunk-JCJ5WFS3.js → chunk-IFGN2GB2.js} +3 -3
  22. package/dist/{chunk-JCJ5WFS3.js.map → chunk-IFGN2GB2.js.map} +1 -1
  23. package/dist/{chunk-C6UYPHTQ.cjs → chunk-IMVKQQHU.cjs} +9 -9
  24. package/dist/{chunk-C6UYPHTQ.cjs.map → chunk-IMVKQQHU.cjs.map} +1 -1
  25. package/dist/{chunk-CSS74VCN.cjs → chunk-MXPBHDOI.cjs} +17 -17
  26. package/dist/{chunk-CSS74VCN.cjs.map → chunk-MXPBHDOI.cjs.map} +1 -1
  27. package/dist/{chunk-ENWR2F2P.js → chunk-NN7BNNF5.js} +3 -3
  28. package/dist/{chunk-ENWR2F2P.js.map → chunk-NN7BNNF5.js.map} +1 -1
  29. package/dist/{chunk-QMPNPZ2T.js → chunk-OOPDT2WV.js} +3 -3
  30. package/dist/{chunk-QMPNPZ2T.js.map → chunk-OOPDT2WV.js.map} +1 -1
  31. package/dist/{chunk-QO3IKBYL.js → chunk-T22257HW.js} +62 -11
  32. package/dist/chunk-T22257HW.js.map +1 -0
  33. package/dist/{chunk-SG4X7SEC.js → chunk-VNDVUM2W.js} +4 -4
  34. package/dist/{chunk-SG4X7SEC.js.map → chunk-VNDVUM2W.js.map} +1 -1
  35. package/dist/contracts/handlers/index.cjs +8 -8
  36. package/dist/contracts/handlers/index.d.cts +3 -3
  37. package/dist/contracts/handlers/index.d.ts +3 -3
  38. package/dist/contracts/handlers/index.js +2 -2
  39. package/dist/{delegate-DmhFrtdq.d.ts → delegate-CZPXtd2F.d.ts} +1 -1
  40. package/dist/{delegate-C0iIBxen.d.cts → delegate-xXT8O-Kn.d.cts} +1 -1
  41. package/dist/{index-BNt4wcSh.d.ts → index-BBJ466mM.d.ts} +2 -2
  42. package/dist/{index-BnLM1XxA.d.cts → index-BYG2eKOA.d.cts} +2 -2
  43. package/dist/index.cjs +219 -211
  44. package/dist/index.d.cts +40 -11
  45. package/dist/index.d.ts +40 -11
  46. package/dist/index.js +4 -4
  47. package/dist/repositories/realm/index.cjs +19 -19
  48. package/dist/repositories/realm/index.d.cts +2 -2
  49. package/dist/repositories/realm/index.d.ts +2 -2
  50. package/dist/repositories/realm/index.js +5 -5
  51. package/dist/repositories/sqlite/index.cjs +18 -18
  52. package/dist/repositories/sqlite/index.d.cts +2 -2
  53. package/dist/repositories/sqlite/index.d.ts +2 -2
  54. package/dist/repositories/sqlite/index.js +5 -5
  55. package/dist/{taskRunner-RwUvgQ5M.d.cts → taskRunner-BG1PRFps.d.cts} +1 -1
  56. package/dist/{taskRunner-Bgs-0I3x.d.ts → taskRunner-C46NnRsY.d.ts} +1 -1
  57. package/dist/wallet/expo/background.cjs +14 -14
  58. package/dist/wallet/expo/background.d.cts +3 -3
  59. package/dist/wallet/expo/background.d.ts +3 -3
  60. package/dist/wallet/expo/background.js +6 -6
  61. package/dist/wallet/expo/index.cjs +14 -14
  62. package/dist/wallet/expo/index.d.cts +4 -4
  63. package/dist/wallet/expo/index.d.ts +4 -4
  64. package/dist/wallet/expo/index.js +5 -5
  65. package/dist/{wallet-Ck7BH8zR.d.cts → wallet-1yWg75gN.d.cts} +20 -3
  66. package/dist/{wallet-5Aou-V5n.d.ts → wallet-DuCm55EC.d.ts} +20 -3
  67. package/dist/worker/expo/index.cjs +9 -9
  68. package/dist/worker/expo/index.d.cts +4 -4
  69. package/dist/worker/expo/index.d.ts +4 -4
  70. package/dist/worker/expo/index.js +5 -5
  71. package/package.json +1 -1
  72. package/dist/chunk-QO3IKBYL.js.map +0 -1
  73. package/dist/chunk-ZPL34T2Q.cjs.map +0 -1
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkC6UYPHTQ_cjs = require('../../chunk-C6UYPHTQ.cjs');
4
- var chunkCSS74VCN_cjs = require('../../chunk-CSS74VCN.cjs');
5
- var chunkZPL34T2Q_cjs = require('../../chunk-ZPL34T2Q.cjs');
6
- require('../../chunk-G7DOBFQN.cjs');
7
- require('../../chunk-V2TOHHPW.cjs');
8
- require('../../chunk-OWCPXRGP.cjs');
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 = [chunkC6UYPHTQ_cjs.contractPollProcessor]
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 chunkCSS74VCN_cjs.ExpoIndexerProvider(config.arkServerUrl);
48
- const arkProvider = new chunkCSS74VCN_cjs.ExpoArkProvider(config.arkServerUrl);
49
- const deps = chunkC6UYPHTQ_cjs.createTaskDependencies({
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 chunkC6UYPHTQ_cjs.runTasks(taskQueue, processors, deps);
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(chunkC6UYPHTQ_cjs.CONTRACT_POLL_TASK_TYPE);
60
+ const existing = await taskQueue.getTasks(chunkIMVKQQHU_cjs.CONTRACT_POLL_TASK_TYPE);
61
61
  if (existing.length === 0) {
62
62
  const task = {
63
- id: chunkZPL34T2Q_cjs.getRandomId(),
64
- type: chunkC6UYPHTQ_cjs.CONTRACT_POLL_TASK_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-Do9Lqfsp.cjs';
2
- import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-C3DYxvAT.cjs';
3
- import { T as TaskProcessor } from '../../taskRunner-RwUvgQ5M.cjs';
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-Do9Lqfsp.js';
2
- import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-DOnBOEDn.js';
3
- import { T as TaskProcessor } from '../../taskRunner-Bgs-0I3x.js';
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-LAONNMM5.js';
2
- import { ExpoIndexerProvider, ExpoArkProvider } from '../../chunk-SG4X7SEC.js';
3
- import { getRandomId } from '../../chunk-QO3IKBYL.js';
4
- import '../../chunk-ENWR2F2P.js';
5
- import '../../chunk-QMPNPZ2T.js';
6
- import '../../chunk-JCJ5WFS3.js';
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 chunkC6UYPHTQ_cjs = require('../../chunk-C6UYPHTQ.cjs');
4
- var chunkZPL34T2Q_cjs = require('../../chunk-ZPL34T2Q.cjs');
5
- require('../../chunk-G7DOBFQN.cjs');
6
- require('../../chunk-V2TOHHPW.cjs');
7
- var chunkOWCPXRGP_cjs = require('../../chunk-OWCPXRGP.cjs');
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 chunkZPL34T2Q_cjs.Wallet.create(config);
62
- const processors = config.background.processors ?? [chunkC6UYPHTQ_cjs.contractPollProcessor];
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) => chunkZPL34T2Q_cjs.extendVirtualCoinForContract(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 chunkOWCPXRGP_cjs.RestArkProvider ? wallet.arkProvider.serverUrl : void 0);
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 chunkC6UYPHTQ_cjs.runTasks(this.taskQueue, this.processors, this.deps);
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(chunkC6UYPHTQ_cjs.CONTRACT_POLL_TASK_TYPE);
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: chunkZPL34T2Q_cjs.getRandomId(),
116
- type: chunkC6UYPHTQ_cjs.CONTRACT_POLL_TASK_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(chunkC6UYPHTQ_cjs.CONTRACT_POLL_TASK_TYPE);
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-Ck7BH8zR.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-Do9Lqfsp.cjs';
3
- import { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-RwUvgQ5M.cjs';
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-C0iIBxen.cjs';
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-5Aou-V5n.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-Do9Lqfsp.js';
3
- import { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-Bgs-0I3x.js';
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-DmhFrtdq.js';
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-LAONNMM5.js';
2
- import { Wallet, getRandomId, extendVirtualCoinForContract } from '../../chunk-QO3IKBYL.js';
3
- import '../../chunk-ENWR2F2P.js';
4
- import '../../chunk-QMPNPZ2T.js';
5
- import { RestArkProvider } from '../../chunk-JCJ5WFS3.js';
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 BatchStartedEvent, K as TreeSigningStartedEvent, L as TxTree, M as TreeNoncesEvent, P as BatchFinalizationEvent, Q as BatchFinalizedEvent, U as BatchFailedEvent, X as TreeTxEvent, Y as TreeSignatureEvent, i as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, Z as DescriptorProvider, f as IContractManager, _ as IReadonlyWallet, $ as ReadonlyIdentity, a0 as Network, a1 as OnchainProvider, o as IndexerProvider, a2 as DelegateProvider, a3 as ReadonlyWalletConfig, x as IntentRepository, B as VirtualTxRepository, a4 as ExitCaptureMode, a5 as ExitDataSource, p as RelativeTimelock, d as ActivityRegistry, a6 as IReadonlyAssetManager, a7 as ContractSyncState, n as ArkProvider, a8 as NetworkName, a9 as ArkInfo, aa as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, A as ArkTransaction, e as Activity, E as ExtendedCoin, ab as Coin, t as ExtendedVirtualCoin, ac as ContractManager, ad as ContractManagerConfig, I as IWallet, ae as CSVMultisigTapscript, af as SettlementConfig, j as IAssetManager, ag as VtxoManager, g as IDelegateManager, S as SendBitcoinParams, h as SettleParams, R as Recipient, ah as SignerSession, ai as SignedIntent, aj as Intent, ak as TimeHeight } from './ark-Do9Lqfsp.cjs';
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-C0iIBxen.cjs';
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, isArkError as m, isHDWalletCapable as n, maybeArkError as o, selectVirtualCoins as s, waitForIncomingFunds as w };
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 BatchStartedEvent, K as TreeSigningStartedEvent, L as TxTree, M as TreeNoncesEvent, P as BatchFinalizationEvent, Q as BatchFinalizedEvent, U as BatchFailedEvent, X as TreeTxEvent, Y as TreeSignatureEvent, i as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, Z as DescriptorProvider, f as IContractManager, _ as IReadonlyWallet, $ as ReadonlyIdentity, a0 as Network, a1 as OnchainProvider, o as IndexerProvider, a2 as DelegateProvider, a3 as ReadonlyWalletConfig, x as IntentRepository, B as VirtualTxRepository, a4 as ExitCaptureMode, a5 as ExitDataSource, p as RelativeTimelock, d as ActivityRegistry, a6 as IReadonlyAssetManager, a7 as ContractSyncState, n as ArkProvider, a8 as NetworkName, a9 as ArkInfo, aa as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, A as ArkTransaction, e as Activity, E as ExtendedCoin, ab as Coin, t as ExtendedVirtualCoin, ac as ContractManager, ad as ContractManagerConfig, I as IWallet, ae as CSVMultisigTapscript, af as SettlementConfig, j as IAssetManager, ag as VtxoManager, g as IDelegateManager, S as SendBitcoinParams, h as SettleParams, R as Recipient, ah as SignerSession, ai as SignedIntent, aj as Intent, ak as TimeHeight } from './ark-Do9Lqfsp.js';
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-DmhFrtdq.js';
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, isArkError as m, isHDWalletCapable as n, maybeArkError as o, selectVirtualCoins as s, waitForIncomingFunds as w };
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 chunkC6UYPHTQ_cjs = require('../../chunk-C6UYPHTQ.cjs');
4
- require('../../chunk-ZPL34T2Q.cjs');
5
- require('../../chunk-G7DOBFQN.cjs');
6
- require('../../chunk-V2TOHHPW.cjs');
7
- require('../../chunk-OWCPXRGP.cjs');
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 chunkC6UYPHTQ_cjs.CONTRACT_POLL_TASK_TYPE; }
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 chunkC6UYPHTQ_cjs.contractPollProcessor; }
128
+ get: function () { return chunkIMVKQQHU_cjs.contractPollProcessor; }
129
129
  });
130
130
  Object.defineProperty(exports, "createTaskDependencies", {
131
131
  enumerable: true,
132
- get: function () { return chunkC6UYPHTQ_cjs.createTaskDependencies; }
132
+ get: function () { return chunkIMVKQQHU_cjs.createTaskDependencies; }
133
133
  });
134
134
  Object.defineProperty(exports, "runTasks", {
135
135
  enumerable: true,
136
- get: function () { return chunkC6UYPHTQ_cjs.runTasks; }
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-RwUvgQ5M.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-RwUvgQ5M.cjs';
3
- export { a as AsyncStorageLike, A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-C3DYxvAT.cjs';
4
- import '../../ark-Do9Lqfsp.cjs';
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-Bgs-0I3x.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-Bgs-0I3x.js';
3
- export { a as AsyncStorageLike, A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-DOnBOEDn.js';
4
- import '../../ark-Do9Lqfsp.js';
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-LAONNMM5.js';
2
- import '../../chunk-QO3IKBYL.js';
3
- import '../../chunk-ENWR2F2P.js';
4
- import '../../chunk-QMPNPZ2T.js';
5
- import '../../chunk-JCJ5WFS3.js';
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkade-os/sdk",
3
- "version": "0.4.55",
3
+ "version": "0.4.56",
4
4
  "description": "TypeScript SDK for building Bitcoin wallets using the Arkade protocol",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",