@arkade-os/boltz-swap 0.3.22 → 0.3.24

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.
@@ -1,5 +1,5 @@
1
- import { I as IArkadeSwaps, A as ArkadeSwaps } from '../arkade-swaps-CvA3RP7_.cjs';
2
- import { A as ArkadeSwapsConfig, j as SwapRepository, m as BoltzSwapProvider, N as Network, k as SwapManagerClient, C as CreateLightningInvoiceRequest, e as CreateLightningInvoiceResponse, S as SendLightningPaymentRequest, f as SendLightningPaymentResponse, c as BoltzSubmarineSwap, b as BoltzReverseSwap, F as FeesResponse, a as BoltzChainSwap, h as ArkToBtcResponse, i as BtcToArkResponse, d as Chain, g as ChainFeesResponse, L as LimitsResponse, G as GetSwapStatusResponse, B as BoltzSwap } from '../types-OyAdK824.cjs';
1
+ import { I as IArkadeSwaps, A as ArkadeSwaps, V as VhtlcTimeouts } from '../arkade-swaps-CZF9XoFR.cjs';
2
+ import { A as ArkadeSwapsConfig, m as SwapRepository, p as BoltzSwapProvider, N as Network, n as SwapManagerClient, C as CreateLightningInvoiceRequest, e as CreateLightningInvoiceResponse, S as SendLightningPaymentRequest, f as SendLightningPaymentResponse, c as BoltzSubmarineSwap, b as BoltzReverseSwap, g as SubmarineRefundOutcome, h as SubmarineRecoveryInfo, i as SubmarineRecoveryResult, F as FeesResponse, a as BoltzChainSwap, k as ArkToBtcResponse, l as BtcToArkResponse, d as Chain, j as ChainFeesResponse, L as LimitsResponse, G as GetSwapStatusResponse, B as BoltzSwap } from '../types-LCXS1AVA.cjs';
3
3
  import { Identity, ArkProvider, IndexerProvider, IWallet, ArkInfo, ArkTxInput, VHTLC } from '@arkade-os/sdk';
4
4
  import { AsyncStorageTaskQueue, TaskProcessor } from '@arkade-os/sdk/worker/expo';
5
5
  import { TransactionOutput } from '@scure/btc-signer/psbt.js';
@@ -141,7 +141,11 @@ declare class ExpoArkadeSwaps implements IArkadeSwaps {
141
141
  createSubmarineSwap(args: SendLightningPaymentRequest): Promise<BoltzSubmarineSwap>;
142
142
  createReverseSwap(args: CreateLightningInvoiceRequest): Promise<BoltzReverseSwap>;
143
143
  claimVHTLC(pendingSwap: BoltzReverseSwap): Promise<void>;
144
- refundVHTLC(pendingSwap: BoltzSubmarineSwap): Promise<void>;
144
+ refundVHTLC(pendingSwap: BoltzSubmarineSwap): Promise<SubmarineRefundOutcome>;
145
+ inspectSubmarineRecovery(swap: BoltzSubmarineSwap): Promise<SubmarineRecoveryInfo>;
146
+ scanRecoverableSubmarineSwaps(): Promise<SubmarineRecoveryInfo[]>;
147
+ recoverSubmarineFunds(swap: BoltzSubmarineSwap): Promise<SubmarineRefundOutcome>;
148
+ recoverAllSubmarineFunds(swaps: BoltzSubmarineSwap[]): Promise<SubmarineRecoveryResult[]>;
145
149
  waitAndClaim(pendingSwap: BoltzReverseSwap): Promise<{
146
150
  txid: string;
147
151
  }>;
@@ -201,12 +205,7 @@ declare class ExpoArkadeSwaps implements IArkadeSwaps {
201
205
  receiverPubkey: string;
202
206
  senderPubkey: string;
203
207
  serverPubkey: string;
204
- timeoutBlockHeights: {
205
- refund: number;
206
- unilateralClaim: number;
207
- unilateralRefund: number;
208
- unilateralRefundWithoutReceiver: number;
209
- };
208
+ timeoutBlockHeights: VhtlcTimeouts;
210
209
  }): {
211
210
  vhtlcScript: VHTLC.Script;
212
211
  vhtlcAddress: string;
@@ -1,5 +1,5 @@
1
- import { I as IArkadeSwaps, A as ArkadeSwaps } from '../arkade-swaps-DEvf-2g2.js';
2
- import { A as ArkadeSwapsConfig, j as SwapRepository, m as BoltzSwapProvider, N as Network, k as SwapManagerClient, C as CreateLightningInvoiceRequest, e as CreateLightningInvoiceResponse, S as SendLightningPaymentRequest, f as SendLightningPaymentResponse, c as BoltzSubmarineSwap, b as BoltzReverseSwap, F as FeesResponse, a as BoltzChainSwap, h as ArkToBtcResponse, i as BtcToArkResponse, d as Chain, g as ChainFeesResponse, L as LimitsResponse, G as GetSwapStatusResponse, B as BoltzSwap } from '../types-OyAdK824.js';
1
+ import { I as IArkadeSwaps, A as ArkadeSwaps, V as VhtlcTimeouts } from '../arkade-swaps-pfAgQUMP.js';
2
+ import { A as ArkadeSwapsConfig, m as SwapRepository, p as BoltzSwapProvider, N as Network, n as SwapManagerClient, C as CreateLightningInvoiceRequest, e as CreateLightningInvoiceResponse, S as SendLightningPaymentRequest, f as SendLightningPaymentResponse, c as BoltzSubmarineSwap, b as BoltzReverseSwap, g as SubmarineRefundOutcome, h as SubmarineRecoveryInfo, i as SubmarineRecoveryResult, F as FeesResponse, a as BoltzChainSwap, k as ArkToBtcResponse, l as BtcToArkResponse, d as Chain, j as ChainFeesResponse, L as LimitsResponse, G as GetSwapStatusResponse, B as BoltzSwap } from '../types-LCXS1AVA.js';
3
3
  import { Identity, ArkProvider, IndexerProvider, IWallet, ArkInfo, ArkTxInput, VHTLC } from '@arkade-os/sdk';
4
4
  import { AsyncStorageTaskQueue, TaskProcessor } from '@arkade-os/sdk/worker/expo';
5
5
  import { TransactionOutput } from '@scure/btc-signer/psbt.js';
@@ -141,7 +141,11 @@ declare class ExpoArkadeSwaps implements IArkadeSwaps {
141
141
  createSubmarineSwap(args: SendLightningPaymentRequest): Promise<BoltzSubmarineSwap>;
142
142
  createReverseSwap(args: CreateLightningInvoiceRequest): Promise<BoltzReverseSwap>;
143
143
  claimVHTLC(pendingSwap: BoltzReverseSwap): Promise<void>;
144
- refundVHTLC(pendingSwap: BoltzSubmarineSwap): Promise<void>;
144
+ refundVHTLC(pendingSwap: BoltzSubmarineSwap): Promise<SubmarineRefundOutcome>;
145
+ inspectSubmarineRecovery(swap: BoltzSubmarineSwap): Promise<SubmarineRecoveryInfo>;
146
+ scanRecoverableSubmarineSwaps(): Promise<SubmarineRecoveryInfo[]>;
147
+ recoverSubmarineFunds(swap: BoltzSubmarineSwap): Promise<SubmarineRefundOutcome>;
148
+ recoverAllSubmarineFunds(swaps: BoltzSubmarineSwap[]): Promise<SubmarineRecoveryResult[]>;
145
149
  waitAndClaim(pendingSwap: BoltzReverseSwap): Promise<{
146
150
  txid: string;
147
151
  }>;
@@ -201,12 +205,7 @@ declare class ExpoArkadeSwaps implements IArkadeSwaps {
201
205
  receiverPubkey: string;
202
206
  senderPubkey: string;
203
207
  serverPubkey: string;
204
- timeoutBlockHeights: {
205
- refund: number;
206
- unilateralClaim: number;
207
- unilateralRefund: number;
208
- unilateralRefundWithoutReceiver: number;
209
- };
208
+ timeoutBlockHeights: VhtlcTimeouts;
210
209
  }): {
211
210
  vhtlcScript: VHTLC.Script;
212
211
  vhtlcAddress: string;
@@ -4,10 +4,10 @@ import {
4
4
  registerExpoSwapBackgroundTask,
5
5
  swapsPollProcessor,
6
6
  unregisterExpoSwapBackgroundTask
7
- } from "../chunk-EQK2BJQC.js";
7
+ } from "../chunk-FEXQELYZ.js";
8
8
  import {
9
9
  ArkadeSwaps
10
- } from "../chunk-K3QEFL7D.js";
10
+ } from "../chunk-XC2ARJZO.js";
11
11
  import "../chunk-3RG5ZIWI.js";
12
12
 
13
13
  // src/expo/arkade-lightning.ts
@@ -56,7 +56,7 @@ var ExpoArkadeSwaps = class _ExpoArkadeSwaps {
56
56
  await instance.seedSwapPollTask();
57
57
  if (config.background.minimumBackgroundInterval) {
58
58
  try {
59
- const { registerExpoSwapBackgroundTask: registerExpoSwapBackgroundTask2 } = await import("../background-EHOJZDKT.js");
59
+ const { registerExpoSwapBackgroundTask: registerExpoSwapBackgroundTask2 } = await import("../background-GCBCKLGY.js");
60
60
  await registerExpoSwapBackgroundTask2(
61
61
  config.background.taskName,
62
62
  {
@@ -129,7 +129,7 @@ var ExpoArkadeSwaps = class _ExpoArkadeSwaps {
129
129
  }
130
130
  await this.inner.dispose();
131
131
  try {
132
- const { unregisterExpoSwapBackgroundTask: unregisterExpoSwapBackgroundTask2 } = await import("../background-EHOJZDKT.js");
132
+ const { unregisterExpoSwapBackgroundTask: unregisterExpoSwapBackgroundTask2 } = await import("../background-GCBCKLGY.js");
133
133
  await unregisterExpoSwapBackgroundTask2(this.taskName);
134
134
  } catch (err) {
135
135
  const message = err instanceof Error ? err.message : String(err);
@@ -175,6 +175,18 @@ var ExpoArkadeSwaps = class _ExpoArkadeSwaps {
175
175
  refundVHTLC(pendingSwap) {
176
176
  return this.inner.refundVHTLC(pendingSwap);
177
177
  }
178
+ inspectSubmarineRecovery(swap) {
179
+ return this.inner.inspectSubmarineRecovery(swap);
180
+ }
181
+ scanRecoverableSubmarineSwaps() {
182
+ return this.inner.scanRecoverableSubmarineSwaps();
183
+ }
184
+ recoverSubmarineFunds(swap) {
185
+ return this.inner.recoverSubmarineFunds(swap);
186
+ }
187
+ recoverAllSubmarineFunds(swaps) {
188
+ return this.inner.recoverAllSubmarineFunds(swaps);
189
+ }
178
190
  waitAndClaim(pendingSwap) {
179
191
  return this.inner.waitAndClaim(pendingSwap);
180
192
  }