@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.
- package/README.md +22 -0
- package/dist/{arkade-swaps-DEvf-2g2.d.ts → arkade-swaps-CZF9XoFR.d.cts} +101 -16
- package/dist/{arkade-swaps-CvA3RP7_.d.cts → arkade-swaps-pfAgQUMP.d.ts} +101 -16
- package/dist/{background-EHOJZDKT.js → background-GCBCKLGY.js} +2 -2
- package/dist/{chunk-EQK2BJQC.js → chunk-FEXQELYZ.js} +1 -1
- package/dist/{chunk-K3QEFL7D.js → chunk-XC2ARJZO.js} +390 -70
- package/dist/expo/index.cjs +408 -73
- package/dist/expo/index.d.cts +8 -9
- package/dist/expo/index.d.ts +8 -9
- package/dist/expo/index.js +16 -4
- package/dist/index.cjs +515 -79
- package/dist/index.d.cts +46 -14
- package/dist/index.d.ts +46 -14
- package/dist/index.js +126 -10
- package/dist/repositories/realm/index.d.cts +1 -1
- package/dist/repositories/realm/index.d.ts +1 -1
- package/dist/repositories/sqlite/index.d.cts +1 -1
- package/dist/repositories/sqlite/index.d.ts +1 -1
- package/dist/{types-OyAdK824.d.cts → types-LCXS1AVA.d.cts} +63 -1
- package/dist/{types-OyAdK824.d.ts → types-LCXS1AVA.d.ts} +63 -1
- package/package.json +2 -2
package/dist/expo/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IArkadeSwaps, A as ArkadeSwaps } from '../arkade-swaps-
|
|
2
|
-
import { A as ArkadeSwapsConfig,
|
|
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<
|
|
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;
|
package/dist/expo/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IArkadeSwaps, A as ArkadeSwaps } from '../arkade-swaps-
|
|
2
|
-
import { A as ArkadeSwapsConfig,
|
|
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<
|
|
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;
|
package/dist/expo/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
registerExpoSwapBackgroundTask,
|
|
5
5
|
swapsPollProcessor,
|
|
6
6
|
unregisterExpoSwapBackgroundTask
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-FEXQELYZ.js";
|
|
8
8
|
import {
|
|
9
9
|
ArkadeSwaps
|
|
10
|
-
} from "../chunk-
|
|
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-
|
|
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-
|
|
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
|
}
|