@arkade-os/boltz-swap 0.3.43 → 0.3.44
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/dist/{arkade-swaps-LvsGHtre.d.ts → arkade-swaps-2q3VSgb4.d.ts} +27 -1
- package/dist/{arkade-swaps-C3sUFr5f.d.cts → arkade-swaps-DwgfLCMY.d.cts} +27 -1
- package/dist/{chunk-CWY37W4B.js → chunk-PHF6C2NE.js} +1 -1
- package/dist/{chunk-UXYHW7KV.js → chunk-QVXFEX5F.js} +184 -158
- package/dist/expo/background.cjs +184 -158
- package/dist/expo/background.js +2 -2
- package/dist/expo/index.cjs +184 -158
- package/dist/expo/index.d.cts +1 -1
- package/dist/expo/index.d.ts +1 -1
- package/dist/expo/index.js +2 -2
- package/dist/index.cjs +185 -159
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/expo/background.cjs
CHANGED
|
@@ -3043,6 +3043,40 @@ var claimVHTLCwithOffchainTx = async (identity, vhtlcScript, serverXOnlyPublicKe
|
|
|
3043
3043
|
await arkProvider.finalizeTx(arkTxid, finalCheckpoints);
|
|
3044
3044
|
return arkTxid;
|
|
3045
3045
|
};
|
|
3046
|
+
var refundWithoutReceiverVHTLCwithOffchainTx = async (identity, vhtlcScript, serverXOnlyPublicKey, input, output, arkInfo, arkProvider) => {
|
|
3047
|
+
const rawCheckpointTapscript = import_base8.hex.decode(arkInfo.checkpointTapscript);
|
|
3048
|
+
const serverUnrollScript = import_sdk7.CSVMultisigTapscript.decode(rawCheckpointTapscript);
|
|
3049
|
+
const { arkTx, checkpoints } = (0, import_sdk7.buildOffchainTx)([input], [output], serverUnrollScript);
|
|
3050
|
+
const signedArkTx = await identity.sign(arkTx);
|
|
3051
|
+
const { arkTxid, finalArkTx, signedCheckpointTxs } = await arkProvider.submitTx(
|
|
3052
|
+
import_base8.base64.encode(signedArkTx.toPSBT()),
|
|
3053
|
+
checkpoints.map((c) => import_base8.base64.encode(c.toPSBT()))
|
|
3054
|
+
);
|
|
3055
|
+
const finalTx = import_sdk7.Transaction.fromPSBT(import_base8.base64.decode(finalArkTx));
|
|
3056
|
+
const serverPubkeyHex = import_base8.hex.encode(serverXOnlyPublicKey);
|
|
3057
|
+
const refundLeafHash = (0, import_payment3.tapLeafHash)(
|
|
3058
|
+
scriptFromTapLeafScript(vhtlcScript.refundWithoutReceiver())
|
|
3059
|
+
);
|
|
3060
|
+
for (let i = 0; i < finalTx.inputsLength; i++) {
|
|
3061
|
+
if (!verifySignatures(finalTx, i, [serverPubkeyHex], refundLeafHash)) {
|
|
3062
|
+
throw new Error("Invalid final Ark transaction");
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
const finalCheckpoints = await Promise.all(
|
|
3066
|
+
signedCheckpointTxs.map(async (c, idx) => {
|
|
3067
|
+
const tx = import_sdk7.Transaction.fromPSBT(import_base8.base64.decode(c));
|
|
3068
|
+
const checkpointLeaf = checkpoints[idx].getInput(0).tapLeafScript[0];
|
|
3069
|
+
const cpLeafHash = (0, import_payment3.tapLeafHash)(scriptFromTapLeafScript(checkpointLeaf));
|
|
3070
|
+
if (!verifySignatures(tx, 0, [serverPubkeyHex], cpLeafHash)) {
|
|
3071
|
+
throw new Error("Invalid server signature in checkpoint transaction");
|
|
3072
|
+
}
|
|
3073
|
+
const signedCheckpoint = await identity.sign(tx, [0]);
|
|
3074
|
+
return import_base8.base64.encode(signedCheckpoint.toPSBT());
|
|
3075
|
+
})
|
|
3076
|
+
);
|
|
3077
|
+
await arkProvider.finalizeTx(arkTxid, finalCheckpoints);
|
|
3078
|
+
return arkTxid;
|
|
3079
|
+
};
|
|
3046
3080
|
var refundVHTLCwithOffchainTx = async (swapId, identity, arkProvider, boltzXOnlyPublicKey, ourXOnlyPublicKey, serverXOnlyPublicKey, input, output, arkInfo, refundFunc) => {
|
|
3047
3081
|
const rawCheckpointTapscript = import_base8.hex.decode(arkInfo.checkpointTapscript);
|
|
3048
3082
|
const serverUnrollScript = import_sdk7.CSVMultisigTapscript.decode(rawCheckpointTapscript);
|
|
@@ -3797,85 +3831,22 @@ var ArkadeSwaps = class _ArkadeSwaps {
|
|
|
3797
3831
|
}
|
|
3798
3832
|
const outputScript = import_sdk8.ArkAddress.decode(address).pkScript;
|
|
3799
3833
|
const refundWithoutReceiverLeaf = vhtlcScript.refundWithoutReceiver();
|
|
3800
|
-
const
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
await this.joinBatch(
|
|
3817
|
-
this.wallet.identity,
|
|
3818
|
-
input2,
|
|
3819
|
-
output,
|
|
3820
|
-
arkInfo,
|
|
3821
|
-
isRecoverableVtxo
|
|
3822
|
-
);
|
|
3823
|
-
sweptCount++;
|
|
3824
|
-
continue;
|
|
3825
|
-
}
|
|
3826
|
-
if (isRecoverableVtxo) {
|
|
3827
|
-
logger.error(
|
|
3828
|
-
`Swap ${pendingSwap.id}: recoverable VTXO ${vtxo.txid}:${vtxo.vout} cannot be refunded yet \u2014 refundWithoutReceiver locktime has not passed (refundLocktime=${vhtlcTimeouts.refund}, currentTimestamp=${Math.floor(Date.now() / 1e3)}). Refund will be retried after locktime.`
|
|
3829
|
-
);
|
|
3830
|
-
skippedCount++;
|
|
3831
|
-
continue;
|
|
3832
|
-
}
|
|
3833
|
-
const input = {
|
|
3834
|
-
...vtxo,
|
|
3835
|
-
tapLeafScript: vhtlcScript.refund(),
|
|
3836
|
-
tapTree: vhtlcScript.encode()
|
|
3837
|
-
};
|
|
3838
|
-
try {
|
|
3839
|
-
if (boltzCallCount > 0) {
|
|
3840
|
-
await new Promise((r) => setTimeout(r, 2e3));
|
|
3841
|
-
}
|
|
3842
|
-
boltzCallCount++;
|
|
3843
|
-
await refundVHTLCwithOffchainTx(
|
|
3844
|
-
pendingSwap.id,
|
|
3845
|
-
this.wallet.identity,
|
|
3846
|
-
this.arkProvider,
|
|
3847
|
-
boltzXOnlyPublicKey,
|
|
3848
|
-
ourXOnlyPublicKey,
|
|
3849
|
-
serverXOnlyPublicKey,
|
|
3850
|
-
input,
|
|
3851
|
-
output,
|
|
3852
|
-
arkInfo,
|
|
3853
|
-
this.swapProvider.refundSubmarineSwap.bind(this.swapProvider)
|
|
3854
|
-
);
|
|
3855
|
-
sweptCount++;
|
|
3856
|
-
} catch (error) {
|
|
3857
|
-
if (!(error instanceof BoltzRefundError)) {
|
|
3858
|
-
throw error;
|
|
3859
|
-
}
|
|
3860
|
-
if (!isSubmarineRefundLocktimeReached(vhtlcTimeouts.refund)) {
|
|
3861
|
-
logger.error(
|
|
3862
|
-
`Swap ${pendingSwap.id}: Boltz rejected VTXO outpoint and refundWithoutReceiver locktime has not passed yet (currentTimestamp=${Math.floor(Date.now() / 1e3)}, locktime=${vhtlcTimeouts.refund}). Refund will be retried after locktime.`
|
|
3863
|
-
);
|
|
3864
|
-
skippedCount++;
|
|
3865
|
-
continue;
|
|
3866
|
-
}
|
|
3867
|
-
logger.warn(
|
|
3868
|
-
`Swap ${pendingSwap.id}: Boltz rejected VTXO outpoint, falling back to refundWithoutReceiver via joinBatch`
|
|
3869
|
-
);
|
|
3870
|
-
const fallbackInput = {
|
|
3871
|
-
...vtxo,
|
|
3872
|
-
tapLeafScript: refundWithoutReceiverLeaf,
|
|
3873
|
-
tapTree: vhtlcScript.encode()
|
|
3874
|
-
};
|
|
3875
|
-
await this.joinBatch(this.wallet.identity, fallbackInput, output, arkInfo, false);
|
|
3876
|
-
sweptCount++;
|
|
3877
|
-
}
|
|
3878
|
-
}
|
|
3834
|
+
const refundContext = {
|
|
3835
|
+
arkInfo,
|
|
3836
|
+
vhtlcScript,
|
|
3837
|
+
serverXOnlyPublicKey,
|
|
3838
|
+
refundWithoutReceiverLeaf,
|
|
3839
|
+
outputScript
|
|
3840
|
+
};
|
|
3841
|
+
const { swept: sweptCount, skipped: skippedCount } = await this.refundVtxos({
|
|
3842
|
+
swapId: pendingSwap.id,
|
|
3843
|
+
vtxos: refundableVtxos,
|
|
3844
|
+
refundLocktime: vhtlcTimeouts.refund,
|
|
3845
|
+
refundContext,
|
|
3846
|
+
boltzXOnlyPublicKey,
|
|
3847
|
+
ourXOnlyPublicKey,
|
|
3848
|
+
refundViaBoltz: this.swapProvider.refundSubmarineSwap.bind(this.swapProvider)
|
|
3849
|
+
});
|
|
3879
3850
|
if (!isSubmarineSuccessStatus(pendingSwap.status)) {
|
|
3880
3851
|
const fullyRefunded = skippedCount === 0;
|
|
3881
3852
|
await updateSubmarineSwapStatus(
|
|
@@ -4433,7 +4404,10 @@ var ArkadeSwaps = class _ArkadeSwaps {
|
|
|
4433
4404
|
* swap's ARK lockup address.
|
|
4434
4405
|
*
|
|
4435
4406
|
* Path selection per VTXO:
|
|
4436
|
-
* - CLTV
|
|
4407
|
+
* - CLTV elapsed, live VTXO → `refundWithoutReceiver` offchain (sender +
|
|
4408
|
+
* server, no Boltz, no batch round).
|
|
4409
|
+
* - CLTV elapsed, swept VTXO → `refundWithoutReceiver` via `joinBatch`
|
|
4410
|
+
* (a swept VTXO is no longer a live leaf).
|
|
4437
4411
|
* - Pre-CLTV recoverable → skipped (Boltz can't co-sign swept-batch refund).
|
|
4438
4412
|
* - Pre-CLTV non-recoverable → cooperative 3-of-3 refund via Boltz.
|
|
4439
4413
|
*
|
|
@@ -4490,84 +4464,22 @@ var ArkadeSwaps = class _ArkadeSwaps {
|
|
|
4490
4464
|
const outputScript = import_sdk8.ArkAddress.decode(address).pkScript;
|
|
4491
4465
|
const refundWithoutReceiverLeaf = vhtlcScript.refundWithoutReceiver();
|
|
4492
4466
|
const refundLocktime = pendingSwap.response.lockupDetails.timeouts.refund;
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
this.wallet.identity,
|
|
4510
|
-
input2,
|
|
4511
|
-
output,
|
|
4512
|
-
arkInfo,
|
|
4513
|
-
isRecoverableVtxo
|
|
4514
|
-
);
|
|
4515
|
-
sweptCount++;
|
|
4516
|
-
continue;
|
|
4517
|
-
}
|
|
4518
|
-
if (isRecoverableVtxo) {
|
|
4519
|
-
logger.error(
|
|
4520
|
-
`Swap ${pendingSwap.id}: recoverable VTXO ${vtxo.txid}:${vtxo.vout} cannot be refunded yet \u2014 refundWithoutReceiver locktime has not passed (refundLocktime=${refundLocktime}, currentTimestamp=${Math.floor(Date.now() / 1e3)}). Refund will be retried after locktime.`
|
|
4521
|
-
);
|
|
4522
|
-
skippedCount++;
|
|
4523
|
-
continue;
|
|
4524
|
-
}
|
|
4525
|
-
const input = {
|
|
4526
|
-
...vtxo,
|
|
4527
|
-
tapLeafScript: vhtlcScript.refund(),
|
|
4528
|
-
tapTree: vhtlcScript.encode()
|
|
4529
|
-
};
|
|
4530
|
-
try {
|
|
4531
|
-
if (boltzCallCount > 0) {
|
|
4532
|
-
await new Promise((r) => setTimeout(r, 2e3));
|
|
4533
|
-
}
|
|
4534
|
-
boltzCallCount++;
|
|
4535
|
-
await refundVHTLCwithOffchainTx(
|
|
4536
|
-
pendingSwap.id,
|
|
4537
|
-
this.wallet.identity,
|
|
4538
|
-
this.arkProvider,
|
|
4539
|
-
boltzXOnlyPublicKey,
|
|
4540
|
-
ourXOnlyPublicKey,
|
|
4541
|
-
serverXOnlyPublicKey,
|
|
4542
|
-
input,
|
|
4543
|
-
output,
|
|
4544
|
-
arkInfo,
|
|
4545
|
-
this.swapProvider.refundChainSwap.bind(this.swapProvider)
|
|
4546
|
-
);
|
|
4547
|
-
sweptCount++;
|
|
4548
|
-
} catch (error) {
|
|
4549
|
-
if (!(error instanceof BoltzRefundError)) {
|
|
4550
|
-
throw error;
|
|
4551
|
-
}
|
|
4552
|
-
if (!isSubmarineRefundLocktimeReached(refundLocktime)) {
|
|
4553
|
-
logger.error(
|
|
4554
|
-
`Swap ${pendingSwap.id}: Boltz rejected VTXO outpoint and refundWithoutReceiver locktime has not passed yet (currentTimestamp=${Math.floor(Date.now() / 1e3)}, locktime=${refundLocktime}). Refund will be retried after locktime.`
|
|
4555
|
-
);
|
|
4556
|
-
skippedCount++;
|
|
4557
|
-
continue;
|
|
4558
|
-
}
|
|
4559
|
-
logger.warn(
|
|
4560
|
-
`Swap ${pendingSwap.id}: Boltz rejected VTXO outpoint, falling back to refundWithoutReceiver via joinBatch`
|
|
4561
|
-
);
|
|
4562
|
-
const fallbackInput = {
|
|
4563
|
-
...vtxo,
|
|
4564
|
-
tapLeafScript: refundWithoutReceiverLeaf,
|
|
4565
|
-
tapTree: vhtlcScript.encode()
|
|
4566
|
-
};
|
|
4567
|
-
await this.joinBatch(this.wallet.identity, fallbackInput, output, arkInfo, false);
|
|
4568
|
-
sweptCount++;
|
|
4569
|
-
}
|
|
4570
|
-
}
|
|
4467
|
+
const refundContext = {
|
|
4468
|
+
arkInfo,
|
|
4469
|
+
vhtlcScript,
|
|
4470
|
+
serverXOnlyPublicKey,
|
|
4471
|
+
refundWithoutReceiverLeaf,
|
|
4472
|
+
outputScript
|
|
4473
|
+
};
|
|
4474
|
+
const { swept: sweptCount, skipped: skippedCount } = await this.refundVtxos({
|
|
4475
|
+
swapId: pendingSwap.id,
|
|
4476
|
+
vtxos: unspentVtxos,
|
|
4477
|
+
refundLocktime,
|
|
4478
|
+
refundContext,
|
|
4479
|
+
boltzXOnlyPublicKey,
|
|
4480
|
+
ourXOnlyPublicKey,
|
|
4481
|
+
refundViaBoltz: this.swapProvider.refundChainSwap.bind(this.swapProvider)
|
|
4482
|
+
});
|
|
4571
4483
|
const finalStatus = await this.getSwapStatus(pendingSwap.id);
|
|
4572
4484
|
await this.savePendingChainSwap({
|
|
4573
4485
|
...pendingSwap,
|
|
@@ -5100,6 +5012,120 @@ var ArkadeSwaps = class _ArkadeSwaps {
|
|
|
5100
5012
|
async joinBatch(identity, input, output, arkInfo, isRecoverable2 = true) {
|
|
5101
5013
|
return joinBatch(this.arkProvider, identity, input, output, arkInfo, isRecoverable2);
|
|
5102
5014
|
}
|
|
5015
|
+
/**
|
|
5016
|
+
* Settle a `refundWithoutReceiver` (sender + server, no Boltz) refund for a
|
|
5017
|
+
* single VTXO whose CLTV refund locktime has elapsed.
|
|
5018
|
+
*
|
|
5019
|
+
* A live VTXO settles the leaf with an offchain Ark tx — no batch round. A
|
|
5020
|
+
* swept (recoverable) VTXO is no longer a live leaf, so it can only be
|
|
5021
|
+
* reclaimed by re-registering it into a batch.
|
|
5022
|
+
*/
|
|
5023
|
+
async settleRefundWithoutReceiver(ctx, vtxo) {
|
|
5024
|
+
const input = {
|
|
5025
|
+
...vtxo,
|
|
5026
|
+
tapLeafScript: ctx.refundWithoutReceiverLeaf,
|
|
5027
|
+
tapTree: ctx.vhtlcScript.encode()
|
|
5028
|
+
};
|
|
5029
|
+
const output = { amount: BigInt(vtxo.value), script: ctx.outputScript };
|
|
5030
|
+
if ((0, import_sdk8.isRecoverable)(vtxo)) {
|
|
5031
|
+
await this.joinBatch(this.wallet.identity, input, output, ctx.arkInfo, true);
|
|
5032
|
+
} else {
|
|
5033
|
+
await refundWithoutReceiverVHTLCwithOffchainTx(
|
|
5034
|
+
this.wallet.identity,
|
|
5035
|
+
ctx.vhtlcScript,
|
|
5036
|
+
ctx.serverXOnlyPublicKey,
|
|
5037
|
+
input,
|
|
5038
|
+
output,
|
|
5039
|
+
ctx.arkInfo,
|
|
5040
|
+
this.arkProvider
|
|
5041
|
+
);
|
|
5042
|
+
}
|
|
5043
|
+
}
|
|
5044
|
+
/**
|
|
5045
|
+
* Refund every VTXO at a swap's VHTLC address back to the wallet, shared by
|
|
5046
|
+
* {@link ArkadeSwaps.refundVHTLC} (submarine) and {@link ArkadeSwaps.refundArk}
|
|
5047
|
+
* (chain). Path selection per VTXO:
|
|
5048
|
+
* - CLTV elapsed → `refundWithoutReceiver` (offchain for a live VTXO, via a
|
|
5049
|
+
* batch round for a swept one — see {@link settleRefundWithoutReceiver}).
|
|
5050
|
+
* - Pre-CLTV recoverable → skipped (Boltz can't co-sign a swept-batch refund).
|
|
5051
|
+
* - Pre-CLTV non-recoverable → cooperative 3-of-3 refund via Boltz, falling
|
|
5052
|
+
* back to `refundWithoutReceiver` offchain if Boltz rejects after the
|
|
5053
|
+
* locktime has since elapsed.
|
|
5054
|
+
*
|
|
5055
|
+
* @returns Counts of VTXOs swept vs. deferred.
|
|
5056
|
+
*/
|
|
5057
|
+
async refundVtxos(params) {
|
|
5058
|
+
const {
|
|
5059
|
+
swapId,
|
|
5060
|
+
vtxos,
|
|
5061
|
+
refundLocktime,
|
|
5062
|
+
refundContext,
|
|
5063
|
+
boltzXOnlyPublicKey,
|
|
5064
|
+
ourXOnlyPublicKey,
|
|
5065
|
+
refundViaBoltz
|
|
5066
|
+
} = params;
|
|
5067
|
+
const { vhtlcScript, serverXOnlyPublicKey, arkInfo, outputScript } = refundContext;
|
|
5068
|
+
let boltzCallCount = 0;
|
|
5069
|
+
let sweptCount = 0;
|
|
5070
|
+
let skippedCount = 0;
|
|
5071
|
+
for (const vtxo of vtxos) {
|
|
5072
|
+
const isRecoverableVtxo = (0, import_sdk8.isRecoverable)(vtxo);
|
|
5073
|
+
const output = { amount: BigInt(vtxo.value), script: outputScript };
|
|
5074
|
+
if (isSubmarineRefundLocktimeReached(refundLocktime)) {
|
|
5075
|
+
await this.settleRefundWithoutReceiver(refundContext, vtxo);
|
|
5076
|
+
sweptCount++;
|
|
5077
|
+
continue;
|
|
5078
|
+
}
|
|
5079
|
+
if (isRecoverableVtxo) {
|
|
5080
|
+
logger.error(
|
|
5081
|
+
`Swap ${swapId}: recoverable VTXO ${vtxo.txid}:${vtxo.vout} cannot be refunded yet \u2014 refundWithoutReceiver locktime has not passed (refundLocktime=${refundLocktime}, currentTimestamp=${Math.floor(Date.now() / 1e3)}). Refund will be retried after locktime.`
|
|
5082
|
+
);
|
|
5083
|
+
skippedCount++;
|
|
5084
|
+
continue;
|
|
5085
|
+
}
|
|
5086
|
+
const input = {
|
|
5087
|
+
...vtxo,
|
|
5088
|
+
tapLeafScript: vhtlcScript.refund(),
|
|
5089
|
+
tapTree: vhtlcScript.encode()
|
|
5090
|
+
};
|
|
5091
|
+
try {
|
|
5092
|
+
if (boltzCallCount > 0) {
|
|
5093
|
+
await new Promise((r) => setTimeout(r, 2e3));
|
|
5094
|
+
}
|
|
5095
|
+
boltzCallCount++;
|
|
5096
|
+
await refundVHTLCwithOffchainTx(
|
|
5097
|
+
swapId,
|
|
5098
|
+
this.wallet.identity,
|
|
5099
|
+
this.arkProvider,
|
|
5100
|
+
boltzXOnlyPublicKey,
|
|
5101
|
+
ourXOnlyPublicKey,
|
|
5102
|
+
serverXOnlyPublicKey,
|
|
5103
|
+
input,
|
|
5104
|
+
output,
|
|
5105
|
+
arkInfo,
|
|
5106
|
+
refundViaBoltz
|
|
5107
|
+
);
|
|
5108
|
+
sweptCount++;
|
|
5109
|
+
} catch (error) {
|
|
5110
|
+
if (!(error instanceof BoltzRefundError)) {
|
|
5111
|
+
throw error;
|
|
5112
|
+
}
|
|
5113
|
+
if (!isSubmarineRefundLocktimeReached(refundLocktime)) {
|
|
5114
|
+
logger.error(
|
|
5115
|
+
`Swap ${swapId}: Boltz rejected VTXO outpoint and refundWithoutReceiver locktime has not passed yet (currentTimestamp=${Math.floor(Date.now() / 1e3)}, locktime=${refundLocktime}). Refund will be retried after locktime.`
|
|
5116
|
+
);
|
|
5117
|
+
skippedCount++;
|
|
5118
|
+
continue;
|
|
5119
|
+
}
|
|
5120
|
+
logger.warn(
|
|
5121
|
+
`Swap ${swapId}: Boltz rejected VTXO outpoint, falling back to refundWithoutReceiver offchain`
|
|
5122
|
+
);
|
|
5123
|
+
await this.settleRefundWithoutReceiver(refundContext, vtxo);
|
|
5124
|
+
sweptCount++;
|
|
5125
|
+
}
|
|
5126
|
+
}
|
|
5127
|
+
return { swept: sweptCount, skipped: skippedCount };
|
|
5128
|
+
}
|
|
5103
5129
|
/**
|
|
5104
5130
|
* Creates a VHTLC script for the swap.
|
|
5105
5131
|
* Works for submarine, reverse, and chain swaps.
|
package/dist/expo/background.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SWAP_POLL_TASK_TYPE,
|
|
3
3
|
swapsPollProcessor
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-PHF6C2NE.js";
|
|
5
5
|
import {
|
|
6
6
|
BoltzSwapProvider
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-QVXFEX5F.js";
|
|
8
8
|
import "../chunk-SJQJQO7P.js";
|
|
9
9
|
|
|
10
10
|
// src/expo/background.ts
|