@arkade-os/boltz-swap 0.3.31 → 0.3.33

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 (31) hide show
  1. package/README.md +22 -26
  2. package/dist/{arkade-swaps-CS8FZSVL.d.cts → arkade-swaps-9M7FRuq1.d.cts} +57 -5
  3. package/dist/{arkade-swaps-WiKCanCL.d.ts → arkade-swaps-DNsyWeFr.d.ts} +57 -5
  4. package/dist/{chunk-NHBWNN6H.js → chunk-HNQDJOLM.js} +8 -27
  5. package/dist/{chunk-B3Q4TFWT.js → chunk-SJ5SYSMK.js} +551 -779
  6. package/dist/chunk-SJQJQO7P.js +25 -0
  7. package/dist/expo/background.cjs +573 -805
  8. package/dist/expo/background.d.cts +3 -3
  9. package/dist/expo/background.d.ts +3 -3
  10. package/dist/expo/background.js +8 -20
  11. package/dist/expo/index.cjs +574 -783
  12. package/dist/expo/index.d.cts +7 -5
  13. package/dist/expo/index.d.ts +7 -5
  14. package/dist/expo/index.js +17 -20
  15. package/dist/index.cjs +732 -931
  16. package/dist/index.d.cts +80 -10
  17. package/dist/index.d.ts +80 -10
  18. package/dist/index.js +126 -115
  19. package/dist/repositories/realm/index.cjs +10 -22
  20. package/dist/repositories/realm/index.d.cts +7 -5
  21. package/dist/repositories/realm/index.d.ts +7 -5
  22. package/dist/repositories/realm/index.js +8 -22
  23. package/dist/repositories/sqlite/index.cjs +12 -23
  24. package/dist/repositories/sqlite/index.d.cts +1 -1
  25. package/dist/repositories/sqlite/index.d.ts +1 -1
  26. package/dist/repositories/sqlite/index.js +10 -23
  27. package/dist/{swapsPollProcessor-wYOMzldd.d.ts → swapsPollProcessor-CEgeGlbP.d.ts} +3 -3
  28. package/dist/{swapsPollProcessor-BF3uTFae.d.cts → swapsPollProcessor-CuITxZie.d.cts} +3 -3
  29. package/dist/{types-BBI7-KJ0.d.cts → types-CrKkVzBB.d.cts} +9 -3
  30. package/dist/{types-BBI7-KJ0.d.ts → types-CrKkVzBB.d.ts} +9 -3
  31. package/package.json +10 -25
@@ -24,6 +24,12 @@ __export(sqlite_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(sqlite_exports);
26
26
 
27
+ // src/repositories/swap-repository.ts
28
+ function hasImpossibleSwapsFilter(filter) {
29
+ if (!filter) return false;
30
+ return Array.isArray(filter.id) && filter.id.length === 0 || Array.isArray(filter.status) && filter.status.length === 0 || Array.isArray(filter.type) && filter.type.length === 0;
31
+ }
32
+
27
33
  // src/repositories/sqlite/swap-repository.ts
28
34
  var SQLiteSwapRepository = class {
29
35
  constructor(executor) {
@@ -66,13 +72,7 @@ var SQLiteSwapRepository = class {
66
72
  await this.executor.run(
67
73
  `INSERT OR REPLACE INTO boltz_swaps (id, type, status, created_at, data)
68
74
  VALUES (?, ?, ?, ?, ?)`,
69
- [
70
- swap.id,
71
- swap.type,
72
- swap.status,
73
- swap.createdAt,
74
- JSON.stringify(swap)
75
- ]
75
+ [swap.id, swap.type, swap.status, swap.createdAt, JSON.stringify(swap)]
76
76
  );
77
77
  }
78
78
  async deleteSwap(id) {
@@ -81,17 +81,13 @@ var SQLiteSwapRepository = class {
81
81
  }
82
82
  async getAllSwaps(filter) {
83
83
  await this.ensureInit();
84
- if (Array.isArray(filter?.id) && filter.id.length === 0 || Array.isArray(filter?.status) && filter.status.length === 0 || Array.isArray(filter?.type) && filter.type.length === 0) {
85
- return [];
86
- }
84
+ if (hasImpossibleSwapsFilter(filter)) return [];
87
85
  const conditions = [];
88
86
  const params = [];
89
87
  if (filter) {
90
88
  if (filter.id !== void 0) {
91
89
  if (Array.isArray(filter.id)) {
92
- conditions.push(
93
- `id IN (${filter.id.map(() => "?").join(",")})`
94
- );
90
+ conditions.push(`id IN (${filter.id.map(() => "?").join(",")})`);
95
91
  params.push(...filter.id);
96
92
  } else {
97
93
  conditions.push(`id = ?`);
@@ -100,9 +96,7 @@ var SQLiteSwapRepository = class {
100
96
  }
101
97
  if (filter.status !== void 0) {
102
98
  if (Array.isArray(filter.status)) {
103
- conditions.push(
104
- `status IN (${filter.status.map(() => "?").join(",")})`
105
- );
99
+ conditions.push(`status IN (${filter.status.map(() => "?").join(",")})`);
106
100
  params.push(...filter.status);
107
101
  } else {
108
102
  conditions.push(`status = ?`);
@@ -111,9 +105,7 @@ var SQLiteSwapRepository = class {
111
105
  }
112
106
  if (filter.type !== void 0) {
113
107
  if (Array.isArray(filter.type)) {
114
- conditions.push(
115
- `type IN (${filter.type.map(() => "?").join(",")})`
116
- );
108
+ conditions.push(`type IN (${filter.type.map(() => "?").join(",")})`);
117
109
  params.push(...filter.type);
118
110
  } else {
119
111
  conditions.push(`type = ?`);
@@ -129,10 +121,7 @@ var SQLiteSwapRepository = class {
129
121
  const direction = filter.orderDirection === "desc" ? "DESC" : "ASC";
130
122
  sql += ` ORDER BY created_at ${direction}`;
131
123
  }
132
- const rows = await this.executor.all(
133
- sql,
134
- params
135
- );
124
+ const rows = await this.executor.all(sql, params);
136
125
  return rows.map((row) => JSON.parse(row.data));
137
126
  }
138
127
  async clear() {
@@ -1,5 +1,5 @@
1
1
  import { SQLExecutor } from '@arkade-os/sdk/repositories/sqlite';
2
- import { m as SwapRepository, B as BoltzSwap, o as GetSwapsFilter } from '../../types-BBI7-KJ0.cjs';
2
+ import { m as SwapRepository, B as BoltzSwap, o as GetSwapsFilter } from '../../types-CrKkVzBB.cjs';
3
3
  import '@arkade-os/sdk';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { SQLExecutor } from '@arkade-os/sdk/repositories/sqlite';
2
- import { m as SwapRepository, B as BoltzSwap, o as GetSwapsFilter } from '../../types-BBI7-KJ0.js';
2
+ import { m as SwapRepository, B as BoltzSwap, o as GetSwapsFilter } from '../../types-CrKkVzBB.js';
3
3
  import '@arkade-os/sdk';
4
4
 
5
5
  /**
@@ -1,3 +1,7 @@
1
+ import {
2
+ hasImpossibleSwapsFilter
3
+ } from "../../chunk-SJQJQO7P.js";
4
+
1
5
  // src/repositories/sqlite/swap-repository.ts
2
6
  var SQLiteSwapRepository = class {
3
7
  constructor(executor) {
@@ -40,13 +44,7 @@ var SQLiteSwapRepository = class {
40
44
  await this.executor.run(
41
45
  `INSERT OR REPLACE INTO boltz_swaps (id, type, status, created_at, data)
42
46
  VALUES (?, ?, ?, ?, ?)`,
43
- [
44
- swap.id,
45
- swap.type,
46
- swap.status,
47
- swap.createdAt,
48
- JSON.stringify(swap)
49
- ]
47
+ [swap.id, swap.type, swap.status, swap.createdAt, JSON.stringify(swap)]
50
48
  );
51
49
  }
52
50
  async deleteSwap(id) {
@@ -55,17 +53,13 @@ var SQLiteSwapRepository = class {
55
53
  }
56
54
  async getAllSwaps(filter) {
57
55
  await this.ensureInit();
58
- if (Array.isArray(filter?.id) && filter.id.length === 0 || Array.isArray(filter?.status) && filter.status.length === 0 || Array.isArray(filter?.type) && filter.type.length === 0) {
59
- return [];
60
- }
56
+ if (hasImpossibleSwapsFilter(filter)) return [];
61
57
  const conditions = [];
62
58
  const params = [];
63
59
  if (filter) {
64
60
  if (filter.id !== void 0) {
65
61
  if (Array.isArray(filter.id)) {
66
- conditions.push(
67
- `id IN (${filter.id.map(() => "?").join(",")})`
68
- );
62
+ conditions.push(`id IN (${filter.id.map(() => "?").join(",")})`);
69
63
  params.push(...filter.id);
70
64
  } else {
71
65
  conditions.push(`id = ?`);
@@ -74,9 +68,7 @@ var SQLiteSwapRepository = class {
74
68
  }
75
69
  if (filter.status !== void 0) {
76
70
  if (Array.isArray(filter.status)) {
77
- conditions.push(
78
- `status IN (${filter.status.map(() => "?").join(",")})`
79
- );
71
+ conditions.push(`status IN (${filter.status.map(() => "?").join(",")})`);
80
72
  params.push(...filter.status);
81
73
  } else {
82
74
  conditions.push(`status = ?`);
@@ -85,9 +77,7 @@ var SQLiteSwapRepository = class {
85
77
  }
86
78
  if (filter.type !== void 0) {
87
79
  if (Array.isArray(filter.type)) {
88
- conditions.push(
89
- `type IN (${filter.type.map(() => "?").join(",")})`
90
- );
80
+ conditions.push(`type IN (${filter.type.map(() => "?").join(",")})`);
91
81
  params.push(...filter.type);
92
82
  } else {
93
83
  conditions.push(`type = ?`);
@@ -103,10 +93,7 @@ var SQLiteSwapRepository = class {
103
93
  const direction = filter.orderDirection === "desc" ? "DESC" : "ASC";
104
94
  sql += ` ORDER BY created_at ${direction}`;
105
95
  }
106
- const rows = await this.executor.all(
107
- sql,
108
- params
109
- );
96
+ const rows = await this.executor.all(sql, params);
110
97
  return rows.map((row) => JSON.parse(row.data));
111
98
  }
112
99
  async clear() {
@@ -1,6 +1,6 @@
1
1
  import { AsyncStorageTaskQueue, TaskProcessor } from '@arkade-os/sdk/worker/expo';
2
- import { ArkProvider, IndexerProvider, Identity, IWallet } from '@arkade-os/sdk';
3
- import { m as SwapRepository, p as BoltzSwapProvider, N as Network, A as ArkadeSwapsConfig } from './types-BBI7-KJ0.js';
2
+ import { Identity, ArkProvider, IndexerProvider, IWallet } from '@arkade-os/sdk';
3
+ import { m as SwapRepository, N as Network, q as BoltzSwapProvider, A as ArkadeSwapsConfig } from './types-CrKkVzBB.js';
4
4
 
5
5
  /**
6
6
  * Dependencies injected into every swap processor at runtime.
@@ -90,4 +90,4 @@ declare const SWAP_POLL_TASK_TYPE = "swap-poll";
90
90
  */
91
91
  declare const swapsPollProcessor: TaskProcessor<SwapTaskDependencies>;
92
92
 
93
- export { type DefineSwapBackgroundTaskOptions as D, type ExpoArkadeSwapsConfig as E, type PersistedSwapBackgroundConfig as P, SWAP_POLL_TASK_TYPE as S, type SwapTaskDependencies as a, type ExpoSwapBackgroundConfig as b, type ExpoArkadeLightningConfig as c, swapsPollProcessor as s };
93
+ export { type DefineSwapBackgroundTaskOptions as D, type ExpoArkadeSwapsConfig as E, type PersistedSwapBackgroundConfig as P, SWAP_POLL_TASK_TYPE as S, type SwapTaskDependencies as a, type ExpoArkadeLightningConfig as b, type ExpoSwapBackgroundConfig as c, swapsPollProcessor as s };
@@ -1,6 +1,6 @@
1
1
  import { AsyncStorageTaskQueue, TaskProcessor } from '@arkade-os/sdk/worker/expo';
2
- import { ArkProvider, IndexerProvider, Identity, IWallet } from '@arkade-os/sdk';
3
- import { m as SwapRepository, p as BoltzSwapProvider, N as Network, A as ArkadeSwapsConfig } from './types-BBI7-KJ0.cjs';
2
+ import { Identity, ArkProvider, IndexerProvider, IWallet } from '@arkade-os/sdk';
3
+ import { m as SwapRepository, N as Network, q as BoltzSwapProvider, A as ArkadeSwapsConfig } from './types-CrKkVzBB.cjs';
4
4
 
5
5
  /**
6
6
  * Dependencies injected into every swap processor at runtime.
@@ -90,4 +90,4 @@ declare const SWAP_POLL_TASK_TYPE = "swap-poll";
90
90
  */
91
91
  declare const swapsPollProcessor: TaskProcessor<SwapTaskDependencies>;
92
92
 
93
- export { type DefineSwapBackgroundTaskOptions as D, type ExpoArkadeSwapsConfig as E, type PersistedSwapBackgroundConfig as P, SWAP_POLL_TASK_TYPE as S, type SwapTaskDependencies as a, type ExpoSwapBackgroundConfig as b, type ExpoArkadeLightningConfig as c, swapsPollProcessor as s };
93
+ export { type DefineSwapBackgroundTaskOptions as D, type ExpoArkadeSwapsConfig as E, type PersistedSwapBackgroundConfig as P, SWAP_POLL_TASK_TYPE as S, type SwapTaskDependencies as a, type ExpoArkadeLightningConfig as b, type ExpoSwapBackgroundConfig as c, swapsPollProcessor as s };
@@ -1,4 +1,4 @@
1
- import { Transaction, NetworkName, IWallet, ArkProvider, IndexerProvider } from '@arkade-os/sdk';
1
+ import { Transaction, IWallet, ArkProvider, NetworkName, IndexerProvider } from '@arkade-os/sdk';
2
2
 
3
3
  /** Configuration for BoltzSwapProvider. */
4
4
  interface SwapProviderConfig {
@@ -337,7 +337,13 @@ declare class BoltzSwapProvider {
337
337
  transaction: Transaction;
338
338
  checkpoint: Transaction;
339
339
  }>;
340
- /** Monitors swap status updates via WebSocket. Calls update callback on each status change. Resolves when terminal. */
340
+ /**
341
+ * Monitors swap status updates and forwards them to the update callback.
342
+ * Prefers a WebSocket subscription; on connection error or premature close
343
+ * it falls back to REST polling so callers don't fail when the WS endpoint
344
+ * is flaky (observed in CI). Resolves when the swap reaches a terminal
345
+ * status.
346
+ */
341
347
  monitorSwap(swapId: string, update: (type: BoltzSwapStatus, data?: any) => void): Promise<void>;
342
348
  /** Returns current chain swap fees for a given pair (e.g. ARK→BTC). */
343
349
  getChainFees(from: Chain, to: Chain): Promise<ChainFeesResponse>;
@@ -1099,4 +1105,4 @@ interface ChainFeesResponse {
1099
1105
  };
1100
1106
  }
1101
1107
 
1102
- export { type PendingSubmarineSwap as $, type ArkadeSwapsConfig as A, type BoltzSwap as B, type CreateLightningInvoiceRequest as C, type DecodedInvoice as D, isPendingChainSwap as E, type FeesResponse as F, type GetSwapStatusResponse as G, isPendingReverseSwap as H, isPendingSubmarineSwap as I, isReverseClaimableStatus as J, isReverseFailedStatus as K, type LimitsResponse as L, isReverseFinalStatus as M, type Network as N, isReversePendingStatus as O, isReverseSuccessStatus as P, isReverseSwapClaimable as Q, isSubmarineFailedStatus as R, type SendLightningPaymentRequest as S, isSubmarineFinalStatus as T, isSubmarinePendingStatus as U, isSubmarineSuccessStatus as V, isSubmarineRefundableStatus as W, isSubmarineSwapRefundable as X, SwapManager as Y, type IncomingPaymentSubscription as Z, type ArkadeSwapsCreateConfig as _, type BoltzChainSwap as a, type PendingReverseSwap as a0, type PendingChainSwap as a1, type PendingSwap as a2, type Vtxo as a3, type SubmarineRecoveryStatus as a4, type SwapManagerConfig as a5, type SwapManagerEvents as a6, type SwapManagerCallbacks as a7, type BoltzReverseSwap as b, type BoltzSubmarineSwap as c, type Chain as d, type CreateLightningInvoiceResponse as e, type SendLightningPaymentResponse as f, type SubmarineRefundOutcome as g, type SubmarineRecoveryInfo as h, type SubmarineRecoveryResult as i, type ChainFeesResponse as j, type ArkToBtcResponse as k, type BtcToArkResponse as l, type SwapRepository as m, type SwapManagerClient as n, type GetSwapsFilter as o, BoltzSwapProvider as p, type BoltzSwapStatus as q, isChainClaimableStatus as r, isChainFailedStatus as s, isChainFinalStatus as t, isChainPendingStatus as u, isChainRefundableStatus as v, isChainSignableStatus as w, isChainSuccessStatus as x, isChainSwapClaimable as y, isChainSwapRefundable as z };
1108
+ export { isReversePendingStatus as $, type ArkadeSwapsConfig as A, type BoltzSwap as B, type CreateLightningInvoiceRequest as C, type DecodedInvoice as D, isChainClaimableStatus as E, type FeesResponse as F, type GetSwapStatusResponse as G, isChainFailedStatus as H, type IncomingPaymentSubscription as I, isChainFinalStatus as J, isChainPendingStatus as K, type LimitsResponse as L, isChainRefundableStatus as M, type Network as N, isChainSignableStatus as O, type PendingChainSwap as P, isChainSuccessStatus as Q, isChainSwapClaimable as R, type SendLightningPaymentRequest as S, isChainSwapRefundable as T, isPendingChainSwap as U, type Vtxo as V, isPendingReverseSwap as W, isPendingSubmarineSwap as X, isReverseClaimableStatus as Y, isReverseFailedStatus as Z, isReverseFinalStatus as _, type BoltzChainSwap as a, isReverseSuccessStatus as a0, isReverseSwapClaimable as a1, isSubmarineFailedStatus as a2, isSubmarineFinalStatus as a3, isSubmarinePendingStatus as a4, isSubmarineRefundableStatus as a5, isSubmarineSuccessStatus as a6, isSubmarineSwapRefundable as a7, type BoltzReverseSwap as b, type BoltzSubmarineSwap as c, type Chain as d, type CreateLightningInvoiceResponse as e, type SendLightningPaymentResponse as f, type SubmarineRefundOutcome as g, type SubmarineRecoveryInfo as h, type SubmarineRecoveryResult as i, type ChainFeesResponse as j, type ArkToBtcResponse as k, type BtcToArkResponse as l, type SwapRepository as m, type SwapManagerClient as n, type GetSwapsFilter as o, type ArkadeSwapsCreateConfig as p, BoltzSwapProvider as q, type BoltzSwapStatus as r, type PendingReverseSwap as s, type PendingSubmarineSwap as t, type PendingSwap as u, type SubmarineRecoveryStatus as v, SwapManager as w, type SwapManagerCallbacks as x, type SwapManagerConfig as y, type SwapManagerEvents as z };
@@ -1,4 +1,4 @@
1
- import { Transaction, NetworkName, IWallet, ArkProvider, IndexerProvider } from '@arkade-os/sdk';
1
+ import { Transaction, IWallet, ArkProvider, NetworkName, IndexerProvider } from '@arkade-os/sdk';
2
2
 
3
3
  /** Configuration for BoltzSwapProvider. */
4
4
  interface SwapProviderConfig {
@@ -337,7 +337,13 @@ declare class BoltzSwapProvider {
337
337
  transaction: Transaction;
338
338
  checkpoint: Transaction;
339
339
  }>;
340
- /** Monitors swap status updates via WebSocket. Calls update callback on each status change. Resolves when terminal. */
340
+ /**
341
+ * Monitors swap status updates and forwards them to the update callback.
342
+ * Prefers a WebSocket subscription; on connection error or premature close
343
+ * it falls back to REST polling so callers don't fail when the WS endpoint
344
+ * is flaky (observed in CI). Resolves when the swap reaches a terminal
345
+ * status.
346
+ */
341
347
  monitorSwap(swapId: string, update: (type: BoltzSwapStatus, data?: any) => void): Promise<void>;
342
348
  /** Returns current chain swap fees for a given pair (e.g. ARK→BTC). */
343
349
  getChainFees(from: Chain, to: Chain): Promise<ChainFeesResponse>;
@@ -1099,4 +1105,4 @@ interface ChainFeesResponse {
1099
1105
  };
1100
1106
  }
1101
1107
 
1102
- export { type PendingSubmarineSwap as $, type ArkadeSwapsConfig as A, type BoltzSwap as B, type CreateLightningInvoiceRequest as C, type DecodedInvoice as D, isPendingChainSwap as E, type FeesResponse as F, type GetSwapStatusResponse as G, isPendingReverseSwap as H, isPendingSubmarineSwap as I, isReverseClaimableStatus as J, isReverseFailedStatus as K, type LimitsResponse as L, isReverseFinalStatus as M, type Network as N, isReversePendingStatus as O, isReverseSuccessStatus as P, isReverseSwapClaimable as Q, isSubmarineFailedStatus as R, type SendLightningPaymentRequest as S, isSubmarineFinalStatus as T, isSubmarinePendingStatus as U, isSubmarineSuccessStatus as V, isSubmarineRefundableStatus as W, isSubmarineSwapRefundable as X, SwapManager as Y, type IncomingPaymentSubscription as Z, type ArkadeSwapsCreateConfig as _, type BoltzChainSwap as a, type PendingReverseSwap as a0, type PendingChainSwap as a1, type PendingSwap as a2, type Vtxo as a3, type SubmarineRecoveryStatus as a4, type SwapManagerConfig as a5, type SwapManagerEvents as a6, type SwapManagerCallbacks as a7, type BoltzReverseSwap as b, type BoltzSubmarineSwap as c, type Chain as d, type CreateLightningInvoiceResponse as e, type SendLightningPaymentResponse as f, type SubmarineRefundOutcome as g, type SubmarineRecoveryInfo as h, type SubmarineRecoveryResult as i, type ChainFeesResponse as j, type ArkToBtcResponse as k, type BtcToArkResponse as l, type SwapRepository as m, type SwapManagerClient as n, type GetSwapsFilter as o, BoltzSwapProvider as p, type BoltzSwapStatus as q, isChainClaimableStatus as r, isChainFailedStatus as s, isChainFinalStatus as t, isChainPendingStatus as u, isChainRefundableStatus as v, isChainSignableStatus as w, isChainSuccessStatus as x, isChainSwapClaimable as y, isChainSwapRefundable as z };
1108
+ export { isReversePendingStatus as $, type ArkadeSwapsConfig as A, type BoltzSwap as B, type CreateLightningInvoiceRequest as C, type DecodedInvoice as D, isChainClaimableStatus as E, type FeesResponse as F, type GetSwapStatusResponse as G, isChainFailedStatus as H, type IncomingPaymentSubscription as I, isChainFinalStatus as J, isChainPendingStatus as K, type LimitsResponse as L, isChainRefundableStatus as M, type Network as N, isChainSignableStatus as O, type PendingChainSwap as P, isChainSuccessStatus as Q, isChainSwapClaimable as R, type SendLightningPaymentRequest as S, isChainSwapRefundable as T, isPendingChainSwap as U, type Vtxo as V, isPendingReverseSwap as W, isPendingSubmarineSwap as X, isReverseClaimableStatus as Y, isReverseFailedStatus as Z, isReverseFinalStatus as _, type BoltzChainSwap as a, isReverseSuccessStatus as a0, isReverseSwapClaimable as a1, isSubmarineFailedStatus as a2, isSubmarineFinalStatus as a3, isSubmarinePendingStatus as a4, isSubmarineRefundableStatus as a5, isSubmarineSuccessStatus as a6, isSubmarineSwapRefundable as a7, type BoltzReverseSwap as b, type BoltzSubmarineSwap as c, type Chain as d, type CreateLightningInvoiceResponse as e, type SendLightningPaymentResponse as f, type SubmarineRefundOutcome as g, type SubmarineRecoveryInfo as h, type SubmarineRecoveryResult as i, type ChainFeesResponse as j, type ArkToBtcResponse as k, type BtcToArkResponse as l, type SwapRepository as m, type SwapManagerClient as n, type GetSwapsFilter as o, type ArkadeSwapsCreateConfig as p, BoltzSwapProvider as q, type BoltzSwapStatus as r, type PendingReverseSwap as s, type PendingSubmarineSwap as t, type PendingSwap as u, type SubmarineRecoveryStatus as v, SwapManager as w, type SwapManagerCallbacks as x, type SwapManagerConfig as y, type SwapManagerEvents as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkade-os/boltz-swap",
3
- "version": "0.3.31",
3
+ "version": "0.3.33",
4
4
  "type": "module",
5
5
  "description": "A production-ready TypeScript package that brings Boltz submarine-swaps to Arkade.",
6
6
  "main": "./dist/index.js",
@@ -70,13 +70,13 @@
70
70
  "author": "Arkade-OS",
71
71
  "license": "MIT",
72
72
  "dependencies": {
73
- "@arkade-os/sdk": "0.4.26",
73
+ "@noble/curves": "2.0.1",
74
74
  "@noble/hashes": "2.0.1",
75
75
  "@scure/base": "2.0.0",
76
76
  "@scure/btc-signer": "2.0.1",
77
- "bip68": "^1.0.4",
78
- "@noble/curves": "^2.0.1",
79
- "light-bolt11-decoder": "3.2.0"
77
+ "bip68": "1.0.4",
78
+ "light-bolt11-decoder": "3.2.0",
79
+ "@arkade-os/sdk": "0.4.28"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "expo-task-manager": ">=3.0.0",
@@ -91,29 +91,17 @@
91
91
  }
92
92
  },
93
93
  "devDependencies": {
94
- "@eslint/js": "^9.35.0",
95
- "@types/node": "^24.3.1",
96
94
  "@types/ws": "^8.18.1",
97
- "@typescript-eslint/eslint-plugin": "^8.43.0",
98
- "@typescript-eslint/parser": "^8.43.0",
99
- "eslint": "^9.35.0",
100
- "eventsource": "^4.1.0",
101
- "fake-indexeddb": "^6.0.0",
102
- "prettier": "3.6.2",
103
- "tsup": "^8.5.0",
104
- "typescript": "^5.9.2",
105
- "vite": "7.1.11",
106
- "vitest": "^3.2.4"
107
- },
108
- "engines": {
109
- "node": ">=22.12.0 <23",
110
- "pnpm": ">=10.25.0 <11"
95
+ "vite": "7.1.11"
111
96
  },
112
97
  "publishConfig": {
113
- "access": "public"
98
+ "access": "public",
99
+ "registry": "https://registry.npmjs.org/"
114
100
  },
115
101
  "scripts": {
116
102
  "build": "tsup src/index.ts src/expo/index.ts src/expo/background.ts src/repositories/sqlite/index.ts src/repositories/realm/index.ts --format esm,cjs --dts --clean",
103
+ "smoke:dist": "node scripts/smoke-dist.mjs",
104
+ "typecheck": "tsc --noEmit",
117
105
  "format": "prettier --write src test",
118
106
  "lint": "prettier --check src test",
119
107
  "test": "vitest run",
@@ -121,9 +109,6 @@
121
109
  "test:integration": "vitest run test/e2e/**",
122
110
  "test:setup-docker": "node test/e2e/setup.mjs",
123
111
  "test:integration-docker": "vitest run test/e2e/**",
124
- "release": "pnpm run build && bash scripts/release.sh",
125
- "release:dry-run": "bash scripts/release.sh --dry-run",
126
- "release:cleanup": "bash scripts/release.sh --cleanup",
127
112
  "regtest:start": "./regtest/start-env.sh",
128
113
  "regtest:stop": "./regtest/stop-env.sh",
129
114
  "regtest:clean": "./regtest/clean-env.sh",