@arkade-os/sdk 0.5.0 → 0.5.2

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 (72) hide show
  1. package/README.md +10 -6
  2. package/dist/adapters/expo.cjs +5 -5
  3. package/dist/adapters/expo.d.cts +2 -2
  4. package/dist/adapters/expo.d.ts +2 -2
  5. package/dist/adapters/expo.js +3 -3
  6. package/dist/{asyncStorageTaskQueue-qRRQUOE8.d.cts → asyncStorageTaskQueue-BtEc3Qca.d.cts} +2 -2
  7. package/dist/{asyncStorageTaskQueue-BFv2O1y1.d.ts → asyncStorageTaskQueue-DIn7bTqN.d.ts} +2 -2
  8. package/dist/{chunk-AU77RYOC.cjs → chunk-2OCYL6BJ.cjs} +1177 -864
  9. package/dist/chunk-2OCYL6BJ.cjs.map +1 -0
  10. package/dist/{chunk-K2E6X6JT.js → chunk-2QRUQXLS.js} +4 -4
  11. package/dist/{chunk-K2E6X6JT.js.map → chunk-2QRUQXLS.js.map} +1 -1
  12. package/dist/{chunk-IQWLFYT2.cjs → chunk-64R7CRKN.cjs} +18 -18
  13. package/dist/{chunk-IQWLFYT2.cjs.map → chunk-64R7CRKN.cjs.map} +1 -1
  14. package/dist/{chunk-GWJWXVUB.js → chunk-AJWXVQYG.js} +692 -379
  15. package/dist/chunk-AJWXVQYG.js.map +1 -0
  16. package/dist/{chunk-UUSKJOSX.cjs → chunk-GGKR4O5X.cjs} +3 -3
  17. package/dist/{chunk-UUSKJOSX.cjs.map → chunk-GGKR4O5X.cjs.map} +1 -1
  18. package/dist/{chunk-ZOEB53NQ.js → chunk-HKG26NUT.js} +3 -3
  19. package/dist/{chunk-ZOEB53NQ.js.map → chunk-HKG26NUT.js.map} +1 -1
  20. package/dist/{chunk-K352GMVL.js → chunk-LWRMSC4M.js} +3 -3
  21. package/dist/{chunk-K352GMVL.js.map → chunk-LWRMSC4M.js.map} +1 -1
  22. package/dist/{chunk-TZSKLERU.js → chunk-MOBDJ7U2.js} +4 -4
  23. package/dist/{chunk-TZSKLERU.js.map → chunk-MOBDJ7U2.js.map} +1 -1
  24. package/dist/{chunk-GN2K4WBP.cjs → chunk-OM6FJ76H.cjs} +48 -48
  25. package/dist/{chunk-GN2K4WBP.cjs.map → chunk-OM6FJ76H.cjs.map} +1 -1
  26. package/dist/{chunk-GOM26K6H.cjs → chunk-PVFQFQBY.cjs} +10 -10
  27. package/dist/{chunk-GOM26K6H.cjs.map → chunk-PVFQFQBY.cjs.map} +1 -1
  28. package/dist/{chunk-JT5YVMCJ.cjs → chunk-TAIWH3HG.cjs} +16 -16
  29. package/dist/{chunk-JT5YVMCJ.cjs.map → chunk-TAIWH3HG.cjs.map} +1 -1
  30. package/dist/{chunk-HABGVRLF.js → chunk-U5XG7SWA.js} +3 -3
  31. package/dist/{chunk-HABGVRLF.js.map → chunk-U5XG7SWA.js.map} +1 -1
  32. package/dist/contracts/handlers/index.cjs +9 -9
  33. package/dist/contracts/handlers/index.d.cts +3 -3
  34. package/dist/contracts/handlers/index.d.ts +3 -3
  35. package/dist/contracts/handlers/index.js +2 -2
  36. package/dist/{delegate-B5BmYkEY.d.cts → delegate-CaL8EN4Q.d.cts} +1 -1
  37. package/dist/{delegate-DNbiUgy8.d.ts → delegate-Jd4zs88Q.d.ts} +1 -1
  38. package/dist/{index-B4QuO9sH.d.cts → index-BwdGzNSn.d.cts} +2 -2
  39. package/dist/{index-CYeyT3kn.d.ts → index-D-xqVzf8.d.ts} +2 -2
  40. package/dist/{index-CZw-MMfY.d.cts → index-DdKxfC29.d.cts} +35 -17
  41. package/dist/{index-CZw-MMfY.d.ts → index-DdKxfC29.d.ts} +35 -17
  42. package/dist/index.cjs +313 -313
  43. package/dist/index.d.cts +100 -26
  44. package/dist/index.d.ts +100 -26
  45. package/dist/index.js +4 -4
  46. package/dist/repositories/realm/index.cjs +35 -35
  47. package/dist/repositories/realm/index.d.cts +2 -2
  48. package/dist/repositories/realm/index.d.ts +2 -2
  49. package/dist/repositories/realm/index.js +5 -5
  50. package/dist/repositories/sqlite/index.cjs +33 -33
  51. package/dist/repositories/sqlite/index.d.cts +2 -2
  52. package/dist/repositories/sqlite/index.d.ts +2 -2
  53. package/dist/repositories/sqlite/index.js +5 -5
  54. package/dist/{taskRunner-B3SLvUfL.d.cts → taskRunner-67YSEpsz.d.cts} +2 -2
  55. package/dist/{taskRunner-wm1bhmtP.d.ts → taskRunner-ZyGGjtIq.d.ts} +2 -2
  56. package/dist/wallet/expo/background.cjs +14 -14
  57. package/dist/wallet/expo/background.d.cts +3 -3
  58. package/dist/wallet/expo/background.d.ts +3 -3
  59. package/dist/wallet/expo/background.js +6 -6
  60. package/dist/wallet/expo/index.cjs +15 -15
  61. package/dist/wallet/expo/index.d.cts +4 -4
  62. package/dist/wallet/expo/index.d.ts +4 -4
  63. package/dist/wallet/expo/index.js +5 -5
  64. package/dist/{wallet-DGLXuwXT.d.ts → wallet-B8LW7cV1.d.cts} +7 -6
  65. package/dist/{wallet-DCZ2-Bea.d.cts → wallet-bFS7VybL.d.ts} +7 -6
  66. package/dist/worker/expo/index.cjs +9 -9
  67. package/dist/worker/expo/index.d.cts +4 -4
  68. package/dist/worker/expo/index.d.ts +4 -4
  69. package/dist/worker/expo/index.js +5 -5
  70. package/package.json +1 -1
  71. package/dist/chunk-AU77RYOC.cjs.map +0 -1
  72. package/dist/chunk-GWJWXVUB.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkJT5YVMCJ_cjs = require('../../chunk-JT5YVMCJ.cjs');
4
- var chunkGOM26K6H_cjs = require('../../chunk-GOM26K6H.cjs');
5
- var chunkAU77RYOC_cjs = require('../../chunk-AU77RYOC.cjs');
6
- require('../../chunk-IQWLFYT2.cjs');
7
- require('../../chunk-GN2K4WBP.cjs');
8
- require('../../chunk-UUSKJOSX.cjs');
3
+ var chunkTAIWH3HG_cjs = require('../../chunk-TAIWH3HG.cjs');
4
+ var chunkPVFQFQBY_cjs = require('../../chunk-PVFQFQBY.cjs');
5
+ var chunk2OCYL6BJ_cjs = require('../../chunk-2OCYL6BJ.cjs');
6
+ require('../../chunk-64R7CRKN.cjs');
7
+ require('../../chunk-OM6FJ76H.cjs');
8
+ require('../../chunk-GGKR4O5X.cjs');
9
9
  var TaskManager = require('expo-task-manager');
10
10
  var BackgroundTask = require('expo-background-task');
11
11
 
@@ -35,7 +35,7 @@ function defineExpoBackgroundTask(taskName, options) {
35
35
  taskQueue,
36
36
  walletRepository,
37
37
  contractRepository,
38
- processors = [chunkGOM26K6H_cjs.contractPollProcessor]
38
+ processors = [chunkPVFQFQBY_cjs.contractPollProcessor]
39
39
  } = options;
40
40
  TaskManager__namespace.defineTask(taskName, async () => {
41
41
  try {
@@ -43,24 +43,24 @@ function defineExpoBackgroundTask(taskName, options) {
43
43
  if (!config) {
44
44
  return BackgroundTask__namespace.BackgroundTaskResult.Success;
45
45
  }
46
- const indexerProvider = new chunkJT5YVMCJ_cjs.ExpoIndexerProvider(config.arkServerUrl);
47
- const arkProvider = new chunkJT5YVMCJ_cjs.ExpoArkProvider(config.arkServerUrl);
48
- const deps = chunkGOM26K6H_cjs.createTaskDependencies({
46
+ const indexerProvider = new chunkTAIWH3HG_cjs.ExpoIndexerProvider(config.arkServerUrl);
47
+ const arkProvider = new chunkTAIWH3HG_cjs.ExpoArkProvider(config.arkServerUrl);
48
+ const deps = chunkPVFQFQBY_cjs.createTaskDependencies({
49
49
  walletRepository,
50
50
  contractRepository,
51
51
  indexerProvider,
52
52
  arkProvider
53
53
  });
54
- await chunkGOM26K6H_cjs.runTasks(taskQueue, processors, deps);
54
+ await chunkPVFQFQBY_cjs.runTasks(taskQueue, processors, deps);
55
55
  const results = await taskQueue.getResults();
56
56
  if (results.length > 0) {
57
57
  await taskQueue.acknowledgeResults(results.map((r) => r.id));
58
58
  }
59
- const existing = await taskQueue.getTasks(chunkGOM26K6H_cjs.CONTRACT_POLL_TASK_TYPE);
59
+ const existing = await taskQueue.getTasks(chunkPVFQFQBY_cjs.CONTRACT_POLL_TASK_TYPE);
60
60
  if (existing.length === 0) {
61
61
  const task = {
62
- id: chunkAU77RYOC_cjs.getRandomId(),
63
- type: chunkGOM26K6H_cjs.CONTRACT_POLL_TASK_TYPE,
62
+ id: chunk2OCYL6BJ_cjs.getRandomId(),
63
+ type: chunkPVFQFQBY_cjs.CONTRACT_POLL_TASK_TYPE,
64
64
  data: {},
65
65
  createdAt: Date.now()
66
66
  };
@@ -1,6 +1,6 @@
1
- import { W as WalletRepository, C as ContractRepository } from '../../index-CZw-MMfY.cjs';
2
- import { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-qRRQUOE8.cjs';
3
- import { T as TaskProcessor } from '../../taskRunner-B3SLvUfL.cjs';
1
+ import { W as WalletRepository, C as ContractRepository } from '../../index-DdKxfC29.cjs';
2
+ import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-BtEc3Qca.cjs';
3
+ import { T as TaskProcessor } from '../../taskRunner-67YSEpsz.cjs';
4
4
  import '@scure/btc-signer/utils.js';
5
5
  import '@scure/btc-signer/psbt.js';
6
6
  import '@scure/btc-signer';
@@ -1,6 +1,6 @@
1
- import { W as WalletRepository, C as ContractRepository } from '../../index-CZw-MMfY.js';
2
- import { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-BFv2O1y1.js';
3
- import { T as TaskProcessor } from '../../taskRunner-wm1bhmtP.js';
1
+ import { W as WalletRepository, C as ContractRepository } from '../../index-DdKxfC29.js';
2
+ import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-DIn7bTqN.js';
3
+ import { T as TaskProcessor } from '../../taskRunner-ZyGGjtIq.js';
4
4
  import '@scure/btc-signer/utils.js';
5
5
  import '@scure/btc-signer/psbt.js';
6
6
  import '@scure/btc-signer';
@@ -1,9 +1,9 @@
1
- import { ExpoIndexerProvider, ExpoArkProvider } from '../../chunk-K2E6X6JT.js';
2
- import { contractPollProcessor, createTaskDependencies, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-TZSKLERU.js';
3
- import { getRandomId } from '../../chunk-GWJWXVUB.js';
4
- import '../../chunk-HABGVRLF.js';
5
- import '../../chunk-K352GMVL.js';
6
- import '../../chunk-ZOEB53NQ.js';
1
+ import { ExpoIndexerProvider, ExpoArkProvider } from '../../chunk-2QRUQXLS.js';
2
+ import { contractPollProcessor, createTaskDependencies, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-MOBDJ7U2.js';
3
+ import { getRandomId } from '../../chunk-AJWXVQYG.js';
4
+ import '../../chunk-U5XG7SWA.js';
5
+ import '../../chunk-LWRMSC4M.js';
6
+ import '../../chunk-HKG26NUT.js';
7
7
  import * as TaskManager from 'expo-task-manager';
8
8
  import * as BackgroundTask from 'expo-background-task';
9
9
 
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkGOM26K6H_cjs = require('../../chunk-GOM26K6H.cjs');
4
- var chunkAU77RYOC_cjs = require('../../chunk-AU77RYOC.cjs');
5
- require('../../chunk-IQWLFYT2.cjs');
6
- require('../../chunk-GN2K4WBP.cjs');
7
- var chunkUUSKJOSX_cjs = require('../../chunk-UUSKJOSX.cjs');
3
+ var chunkPVFQFQBY_cjs = require('../../chunk-PVFQFQBY.cjs');
4
+ var chunk2OCYL6BJ_cjs = require('../../chunk-2OCYL6BJ.cjs');
5
+ require('../../chunk-64R7CRKN.cjs');
6
+ require('../../chunk-OM6FJ76H.cjs');
7
+ var chunkGGKR4O5X_cjs = require('../../chunk-GGKR4O5X.cjs');
8
8
  var base = require('@scure/base');
9
9
 
10
10
  function warnOnRemovedBackgroundFields(bg) {
@@ -56,20 +56,20 @@ var ExpoWallet = class _ExpoWallet {
56
56
  * by the consumer.
57
57
  */
58
58
  static async setup(config) {
59
- chunkUUSKJOSX_cjs.assertTimerMs("foregroundIntervalMs", config.background.foregroundIntervalMs);
59
+ chunkGGKR4O5X_cjs.assertTimerMs("foregroundIntervalMs", config.background.foregroundIntervalMs);
60
60
  warnOnRemovedBackgroundFields(config.background);
61
- const wallet = await chunkAU77RYOC_cjs.Wallet.create(config);
62
- const processors = config.background.processors ?? [chunkGOM26K6H_cjs.contractPollProcessor];
61
+ const wallet = await chunk2OCYL6BJ_cjs.Wallet.create(config);
62
+ const processors = config.background.processors ?? [chunkPVFQFQBY_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) => chunkAU77RYOC_cjs.extendVirtualCoinForContract(vtxo, contract)
68
+ extendVtxo: (vtxo, contract) => chunk2OCYL6BJ_cjs.extendVirtualCoinForContract(vtxo, contract)
69
69
  };
70
70
  const { taskQueue } = config.background;
71
71
  if ("persistConfig" in taskQueue) {
72
- const arkServerUrl = chunkAU77RYOC_cjs.extractArkProviderUrl(wallet.arkProvider);
72
+ const arkServerUrl = chunk2OCYL6BJ_cjs.extractArkProviderUrl(wallet.arkProvider);
73
73
  if (typeof arkServerUrl === "string" && arkServerUrl.length > 0) {
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 chunkGOM26K6H_cjs.runTasks(this.taskQueue, this.processors, this.deps);
103
+ await chunkPVFQFQBY_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(chunkGOM26K6H_cjs.CONTRACT_POLL_TASK_TYPE);
112
+ const existing = await this.taskQueue.getTasks(chunkPVFQFQBY_cjs.CONTRACT_POLL_TASK_TYPE);
113
113
  if (existing.length > 0) return;
114
114
  const task = {
115
- id: chunkAU77RYOC_cjs.getRandomId(),
116
- type: chunkGOM26K6H_cjs.CONTRACT_POLL_TASK_TYPE,
115
+ id: chunk2OCYL6BJ_cjs.getRandomId(),
116
+ type: chunkPVFQFQBY_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(chunkGOM26K6H_cjs.CONTRACT_POLL_TASK_TYPE);
123
+ const tasks = await this.taskQueue.getTasks(chunkPVFQFQBY_cjs.CONTRACT_POLL_TASK_TYPE);
124
124
  for (const task of tasks) {
125
125
  await this.taskQueue.removeTask(task.id);
126
126
  }
@@ -1,9 +1,9 @@
1
- import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../wallet-DCZ2-Bea.cjs';
2
- import { I as IWallet, a as Identity, b as WalletConfig, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, E as ExtendedCoin, h as ArkTransaction, i as ActivityRegistry, j as Activity, k as IContractManager, l as GetNewAddressesOptions, m as NewAddress, n as IDelegateManager, S as SettleParams, o as SettlementEvent, p as SendParams, R as Recipient, q as IAssetManager } from '../../index-CZw-MMfY.cjs';
3
- import { c as TaskQueue, T as TaskProcessor } from '../../taskRunner-B3SLvUfL.cjs';
1
+ import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../wallet-B8LW7cV1.cjs';
2
+ import { I as IWallet, a as Identity, b as WalletConfig, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, E as ExtendedCoin, h as ArkTransaction, i as ActivityRegistry, j as Activity, k as IContractManager, l as GetNewAddressesOptions, m as NewAddress, n as IDelegateManager, S as SettleParams, o as SettlementEvent, p as SendParams, R as Recipient, q as IAssetManager } from '../../index-DdKxfC29.cjs';
3
+ import { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-67YSEpsz.cjs';
4
4
  import '@scure/btc-signer/psbt.js';
5
5
  import '@scure/btc-signer/utils.js';
6
- import '../../delegate-B5BmYkEY.cjs';
6
+ import '../../delegate-CaL8EN4Q.cjs';
7
7
  import '@scure/btc-signer';
8
8
  import '@scure/btc-signer/transaction.js';
9
9
 
@@ -1,9 +1,9 @@
1
- import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../wallet-DGLXuwXT.js';
2
- import { I as IWallet, a as Identity, b as WalletConfig, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, E as ExtendedCoin, h as ArkTransaction, i as ActivityRegistry, j as Activity, k as IContractManager, l as GetNewAddressesOptions, m as NewAddress, n as IDelegateManager, S as SettleParams, o as SettlementEvent, p as SendParams, R as Recipient, q as IAssetManager } from '../../index-CZw-MMfY.js';
3
- import { c as TaskQueue, T as TaskProcessor } from '../../taskRunner-wm1bhmtP.js';
1
+ import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../wallet-bFS7VybL.js';
2
+ import { I as IWallet, a as Identity, b as WalletConfig, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, E as ExtendedCoin, h as ArkTransaction, i as ActivityRegistry, j as Activity, k as IContractManager, l as GetNewAddressesOptions, m as NewAddress, n as IDelegateManager, S as SettleParams, o as SettlementEvent, p as SendParams, R as Recipient, q as IAssetManager } from '../../index-DdKxfC29.js';
3
+ import { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-ZyGGjtIq.js';
4
4
  import '@scure/btc-signer/psbt.js';
5
5
  import '@scure/btc-signer/utils.js';
6
- import '../../delegate-DNbiUgy8.js';
6
+ import '../../delegate-Jd4zs88Q.js';
7
7
  import '@scure/btc-signer';
8
8
  import '@scure/btc-signer/transaction.js';
9
9
 
@@ -1,8 +1,8 @@
1
- import { contractPollProcessor, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-TZSKLERU.js';
2
- import { Wallet, extractArkProviderUrl, getRandomId, extendVirtualCoinForContract } from '../../chunk-GWJWXVUB.js';
3
- import '../../chunk-HABGVRLF.js';
4
- import '../../chunk-K352GMVL.js';
5
- import { assertTimerMs } from '../../chunk-ZOEB53NQ.js';
1
+ import { contractPollProcessor, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-MOBDJ7U2.js';
2
+ import { Wallet, extractArkProviderUrl, getRandomId, extendVirtualCoinForContract } from '../../chunk-AJWXVQYG.js';
3
+ import '../../chunk-U5XG7SWA.js';
4
+ import '../../chunk-LWRMSC4M.js';
5
+ import { assertTimerMs } from '../../chunk-HKG26NUT.js';
6
6
  import { hex } from '@scure/base';
7
7
 
8
8
  function warnOnRemovedBackgroundFields(bg) {
@@ -1,7 +1,7 @@
1
- import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, a3 as DescriptorProvider, a4 as DescriptorSigningRequest, a5 as Transaction, l as GetNewAddressesOptions, m as NewAddress, a as Identity, x as RelativeTimelock, a6 as Network, a7 as BatchStartedEvent, a8 as TreeSigningStartedEvent, a9 as TxTree, aa as TreeNoncesEvent, ab as BatchFinalizationEvent, ac as BatchFinalizedEvent, ad as BatchFailedEvent, ae as TreeTxEvent, af as TreeSignatureEvent, o as SettlementEvent, b as WalletConfig, C as ContractRepository, k as IContractManager, ag as IReadonlyWallet, ah as ReadonlyIdentity, ai as OnchainProvider, v as ArkProvider, w as IndexerProvider, aj as DelegateProvider, ak as ReadonlyWalletConfig, Y as IntentRepository, $ as VirtualTxRepository, al as ExitCaptureMode, am as ExitDataSource, i as ActivityRegistry, an as IReadonlyAssetManager, ao as ContractSyncState, ap as RecipientArkadeAddressContext, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, aq as NetworkName, ar as ArkAddress, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, as as ContractWithVtxos, at as selectPendingRecoveryOutpoints, j as Activity, au as Coin, av as ContractManager, aw as ContractManagerConfig, I as IWallet, ax as CSVMultisigTapscript, ay as SettlementConfig, d as ArkadeBroadcaster, q as IAssetManager, az as VtxoManager, n as IDelegateManager, S as SettleParams, R as Recipient, aA as SignerSession, aB as SignedIntent, aC as Intent, p as SendParams, aD as TimeHeight } from './index-CZw-MMfY.js';
1
+ import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, a3 as DescriptorProvider, a4 as DescriptorSigningRequest, a5 as Transaction, l as GetNewAddressesOptions, m as NewAddress, a as Identity, x as RelativeTimelock, a6 as Network, a7 as BatchStartedEvent, a8 as TreeSigningStartedEvent, a9 as TxTree, aa as TreeNoncesEvent, ab as BatchFinalizationEvent, ac as BatchFinalizedEvent, ad as BatchFailedEvent, ae as TreeTxEvent, af as TreeSignatureEvent, o as SettlementEvent, b as WalletConfig, C as ContractRepository, k as IContractManager, ag as IReadonlyWallet, ah as ReadonlyIdentity, ai as OnchainProvider, v as ArkProvider, w as IndexerProvider, aj as DelegateProvider, ak as ReadonlyWalletConfig, Y as IntentRepository, $ as VirtualTxRepository, al as ExitCaptureMode, am as ExitDataSource, i as ActivityRegistry, an as IReadonlyAssetManager, ao as ContractSyncState, ap as RecipientArkadeAddressContext, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, aq as EsploraProvider, ar as NetworkName, as as ArkAddress, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, at as ContractWithVtxos, au as selectPendingRecoveryOutpoints, j as Activity, av as Coin, aw as ContractManager, ax as ContractManagerConfig, I as IWallet, ay as CSVMultisigTapscript, az as SettlementConfig, d as ArkadeBroadcaster, q as IAssetManager, aA as VtxoManager, n as IDelegateManager, S as SettleParams, R as Recipient, aB as SignerSession, aC as SignedIntent, aD as Intent, p as SendParams, aE as TimeHeight } from './index-DdKxfC29.cjs';
2
2
  import { TransactionOutput } from '@scure/btc-signer/psbt.js';
3
3
  import { Bytes } from '@scure/btc-signer/utils.js';
4
- import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-DNbiUgy8.js';
4
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-CaL8EN4Q.cjs';
5
5
 
6
6
  /**
7
7
  * IndexedDB-based implementation of WalletRepository.
@@ -976,7 +976,7 @@ declare class ReadonlyWallet implements IReadonlyWallet {
976
976
  protected static setupWalletConfig(config: ReadonlyWalletConfig, pubKey: Uint8Array): Promise<{
977
977
  arkProvider: ArkProvider;
978
978
  indexerProvider: IndexerProvider;
979
- onchainProvider: OnchainProvider;
979
+ onchainProvider: OnchainProvider | EsploraProvider;
980
980
  network: Network;
981
981
  networkName: NetworkName;
982
982
  serverPubKey: Uint8Array<ArrayBufferLike>;
@@ -1138,9 +1138,10 @@ declare class ReadonlyWallet implements IReadonlyWallet {
1138
1138
  */
1139
1139
  getBoardingUtxos(): Promise<ExtendedCoin[]>;
1140
1140
  /**
1141
- * @internal {@link getBoardingUtxos} minus those an in-flight settle is spending, for SDK
1142
- * picks. The getter itself lists them: callers that mirror it (the worker's cache and
1143
- * broadcasts, balances) must not see a settle's inputs vanish, and then stay gone if it fails.
1141
+ * @internal {@link getBoardingUtxos} minus those an in-flight settle is spending or an
1142
+ * unresolved intent locks, for SDK picks. The getter itself lists them: callers that mirror it
1143
+ * (the worker's cache and broadcasts, balances) must not see a settle's inputs vanish, and then
1144
+ * stay gone if it fails.
1144
1145
  */
1145
1146
  getSelectableBoardingUtxos(): Promise<ExtendedCoin[]>;
1146
1147
  getStoredBoardingUtxos(): Promise<ExtendedCoin[]>;
@@ -1,7 +1,7 @@
1
- import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, a3 as DescriptorProvider, a4 as DescriptorSigningRequest, a5 as Transaction, l as GetNewAddressesOptions, m as NewAddress, a as Identity, x as RelativeTimelock, a6 as Network, a7 as BatchStartedEvent, a8 as TreeSigningStartedEvent, a9 as TxTree, aa as TreeNoncesEvent, ab as BatchFinalizationEvent, ac as BatchFinalizedEvent, ad as BatchFailedEvent, ae as TreeTxEvent, af as TreeSignatureEvent, o as SettlementEvent, b as WalletConfig, C as ContractRepository, k as IContractManager, ag as IReadonlyWallet, ah as ReadonlyIdentity, ai as OnchainProvider, v as ArkProvider, w as IndexerProvider, aj as DelegateProvider, ak as ReadonlyWalletConfig, Y as IntentRepository, $ as VirtualTxRepository, al as ExitCaptureMode, am as ExitDataSource, i as ActivityRegistry, an as IReadonlyAssetManager, ao as ContractSyncState, ap as RecipientArkadeAddressContext, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, aq as NetworkName, ar as ArkAddress, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, as as ContractWithVtxos, at as selectPendingRecoveryOutpoints, j as Activity, au as Coin, av as ContractManager, aw as ContractManagerConfig, I as IWallet, ax as CSVMultisigTapscript, ay as SettlementConfig, d as ArkadeBroadcaster, q as IAssetManager, az as VtxoManager, n as IDelegateManager, S as SettleParams, R as Recipient, aA as SignerSession, aB as SignedIntent, aC as Intent, p as SendParams, aD as TimeHeight } from './index-CZw-MMfY.cjs';
1
+ import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, a3 as DescriptorProvider, a4 as DescriptorSigningRequest, a5 as Transaction, l as GetNewAddressesOptions, m as NewAddress, a as Identity, x as RelativeTimelock, a6 as Network, a7 as BatchStartedEvent, a8 as TreeSigningStartedEvent, a9 as TxTree, aa as TreeNoncesEvent, ab as BatchFinalizationEvent, ac as BatchFinalizedEvent, ad as BatchFailedEvent, ae as TreeTxEvent, af as TreeSignatureEvent, o as SettlementEvent, b as WalletConfig, C as ContractRepository, k as IContractManager, ag as IReadonlyWallet, ah as ReadonlyIdentity, ai as OnchainProvider, v as ArkProvider, w as IndexerProvider, aj as DelegateProvider, ak as ReadonlyWalletConfig, Y as IntentRepository, $ as VirtualTxRepository, al as ExitCaptureMode, am as ExitDataSource, i as ActivityRegistry, an as IReadonlyAssetManager, ao as ContractSyncState, ap as RecipientArkadeAddressContext, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, aq as EsploraProvider, ar as NetworkName, as as ArkAddress, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, at as ContractWithVtxos, au as selectPendingRecoveryOutpoints, j as Activity, av as Coin, aw as ContractManager, ax as ContractManagerConfig, I as IWallet, ay as CSVMultisigTapscript, az as SettlementConfig, d as ArkadeBroadcaster, q as IAssetManager, aA as VtxoManager, n as IDelegateManager, S as SettleParams, R as Recipient, aB as SignerSession, aC as SignedIntent, aD as Intent, p as SendParams, aE as TimeHeight } from './index-DdKxfC29.js';
2
2
  import { TransactionOutput } from '@scure/btc-signer/psbt.js';
3
3
  import { Bytes } from '@scure/btc-signer/utils.js';
4
- import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-B5BmYkEY.cjs';
4
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-Jd4zs88Q.js';
5
5
 
6
6
  /**
7
7
  * IndexedDB-based implementation of WalletRepository.
@@ -976,7 +976,7 @@ declare class ReadonlyWallet implements IReadonlyWallet {
976
976
  protected static setupWalletConfig(config: ReadonlyWalletConfig, pubKey: Uint8Array): Promise<{
977
977
  arkProvider: ArkProvider;
978
978
  indexerProvider: IndexerProvider;
979
- onchainProvider: OnchainProvider;
979
+ onchainProvider: OnchainProvider | EsploraProvider;
980
980
  network: Network;
981
981
  networkName: NetworkName;
982
982
  serverPubKey: Uint8Array<ArrayBufferLike>;
@@ -1138,9 +1138,10 @@ declare class ReadonlyWallet implements IReadonlyWallet {
1138
1138
  */
1139
1139
  getBoardingUtxos(): Promise<ExtendedCoin[]>;
1140
1140
  /**
1141
- * @internal {@link getBoardingUtxos} minus those an in-flight settle is spending, for SDK
1142
- * picks. The getter itself lists them: callers that mirror it (the worker's cache and
1143
- * broadcasts, balances) must not see a settle's inputs vanish, and then stay gone if it fails.
1141
+ * @internal {@link getBoardingUtxos} minus those an in-flight settle is spending or an
1142
+ * unresolved intent locks, for SDK picks. The getter itself lists them: callers that mirror it
1143
+ * (the worker's cache and broadcasts, balances) must not see a settle's inputs vanish, and then
1144
+ * stay gone if it fails.
1144
1145
  */
1145
1146
  getSelectableBoardingUtxos(): Promise<ExtendedCoin[]>;
1146
1147
  getStoredBoardingUtxos(): Promise<ExtendedCoin[]>;
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkGOM26K6H_cjs = require('../../chunk-GOM26K6H.cjs');
4
- require('../../chunk-AU77RYOC.cjs');
5
- require('../../chunk-IQWLFYT2.cjs');
6
- require('../../chunk-GN2K4WBP.cjs');
7
- require('../../chunk-UUSKJOSX.cjs');
3
+ var chunkPVFQFQBY_cjs = require('../../chunk-PVFQFQBY.cjs');
4
+ require('../../chunk-2OCYL6BJ.cjs');
5
+ require('../../chunk-64R7CRKN.cjs');
6
+ require('../../chunk-OM6FJ76H.cjs');
7
+ require('../../chunk-GGKR4O5X.cjs');
8
8
 
9
9
  // src/worker/expo/taskQueue.ts
10
10
  var InMemoryTaskQueue = class {
@@ -120,19 +120,19 @@ var AsyncStorageTaskQueue = class {
120
120
 
121
121
  Object.defineProperty(exports, "CONTRACT_POLL_TASK_TYPE", {
122
122
  enumerable: true,
123
- get: function () { return chunkGOM26K6H_cjs.CONTRACT_POLL_TASK_TYPE; }
123
+ get: function () { return chunkPVFQFQBY_cjs.CONTRACT_POLL_TASK_TYPE; }
124
124
  });
125
125
  Object.defineProperty(exports, "contractPollProcessor", {
126
126
  enumerable: true,
127
- get: function () { return chunkGOM26K6H_cjs.contractPollProcessor; }
127
+ get: function () { return chunkPVFQFQBY_cjs.contractPollProcessor; }
128
128
  });
129
129
  Object.defineProperty(exports, "createTaskDependencies", {
130
130
  enumerable: true,
131
- get: function () { return chunkGOM26K6H_cjs.createTaskDependencies; }
131
+ get: function () { return chunkPVFQFQBY_cjs.createTaskDependencies; }
132
132
  });
133
133
  Object.defineProperty(exports, "runTasks", {
134
134
  enumerable: true,
135
- get: function () { return chunkGOM26K6H_cjs.runTasks; }
135
+ get: function () { return chunkPVFQFQBY_cjs.runTasks; }
136
136
  });
137
137
  exports.AsyncStorageTaskQueue = AsyncStorageTaskQueue;
138
138
  exports.InMemoryTaskQueue = InMemoryTaskQueue;
@@ -1,7 +1,7 @@
1
- import { T as TaskProcessor } from '../../taskRunner-B3SLvUfL.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-B3SLvUfL.cjs';
3
- export { A as AsyncStorageLike, a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-qRRQUOE8.cjs';
4
- import '../../index-CZw-MMfY.cjs';
1
+ import { T as TaskProcessor } from '../../taskRunner-67YSEpsz.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-67YSEpsz.cjs';
3
+ export { a as AsyncStorageLike, A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-BtEc3Qca.cjs';
4
+ import '../../index-DdKxfC29.cjs';
5
5
  import '@scure/btc-signer/utils.js';
6
6
  import '@scure/btc-signer/psbt.js';
7
7
  import '@scure/btc-signer';
@@ -1,7 +1,7 @@
1
- import { T as TaskProcessor } from '../../taskRunner-wm1bhmtP.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-wm1bhmtP.js';
3
- export { A as AsyncStorageLike, a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-BFv2O1y1.js';
4
- import '../../index-CZw-MMfY.js';
1
+ import { T as TaskProcessor } from '../../taskRunner-ZyGGjtIq.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-ZyGGjtIq.js';
3
+ export { a as AsyncStorageLike, A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-DIn7bTqN.js';
4
+ import '../../index-DdKxfC29.js';
5
5
  import '@scure/btc-signer/utils.js';
6
6
  import '@scure/btc-signer/psbt.js';
7
7
  import '@scure/btc-signer';
@@ -1,8 +1,8 @@
1
- export { CONTRACT_POLL_TASK_TYPE, contractPollProcessor, createTaskDependencies, runTasks } from '../../chunk-TZSKLERU.js';
2
- import '../../chunk-GWJWXVUB.js';
3
- import '../../chunk-HABGVRLF.js';
4
- import '../../chunk-K352GMVL.js';
5
- import '../../chunk-ZOEB53NQ.js';
1
+ export { CONTRACT_POLL_TASK_TYPE, contractPollProcessor, createTaskDependencies, runTasks } from '../../chunk-MOBDJ7U2.js';
2
+ import '../../chunk-AJWXVQYG.js';
3
+ import '../../chunk-U5XG7SWA.js';
4
+ import '../../chunk-LWRMSC4M.js';
5
+ import '../../chunk-HKG26NUT.js';
6
6
 
7
7
  // src/worker/expo/taskQueue.ts
8
8
  var InMemoryTaskQueue = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkade-os/sdk",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "TypeScript SDK for building Bitcoin wallets using the Arkade protocol",
5
5
  "repository": {
6
6
  "type": "git",