@arkade-os/sdk 0.4.69 → 0.5.0-rc.1

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 (80) hide show
  1. package/README.md +35 -5
  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/adapters/indexedDB.cjs +5 -5
  7. package/dist/adapters/indexedDB.js +4 -4
  8. package/dist/{asyncStorageTaskQueue-BgUJN-3X.d.ts → asyncStorageTaskQueue-DAs_n1xr.d.ts} +2 -2
  9. package/dist/{asyncStorageTaskQueue-Cstx6hS7.d.cts → asyncStorageTaskQueue-DqGRG66E.d.cts} +2 -2
  10. package/dist/{chunk-L5SCQYHF.js → chunk-6COJWPBO.js} +19 -9
  11. package/dist/chunk-6COJWPBO.js.map +1 -0
  12. package/dist/{chunk-XQPN5YP2.cjs → chunk-KB7OP3FG.cjs} +17 -17
  13. package/dist/{chunk-XQPN5YP2.cjs.map → chunk-KB7OP3FG.cjs.map} +1 -1
  14. package/dist/{chunk-XLWDX7QZ.js → chunk-LPK4UBNJ.js} +4 -4
  15. package/dist/{chunk-XLWDX7QZ.js.map → chunk-LPK4UBNJ.js.map} +1 -1
  16. package/dist/{chunk-MNMPGEK2.js → chunk-MEJSBJVH.js} +4 -4
  17. package/dist/{chunk-MNMPGEK2.js.map → chunk-MEJSBJVH.js.map} +1 -1
  18. package/dist/{chunk-HQ4DMGA4.cjs → chunk-MXY23OPP.cjs} +10 -10
  19. package/dist/{chunk-HQ4DMGA4.cjs.map → chunk-MXY23OPP.cjs.map} +1 -1
  20. package/dist/{chunk-WIFL5QYZ.cjs → chunk-Q5WQ4Y2I.cjs} +53 -54
  21. package/dist/chunk-Q5WQ4Y2I.cjs.map +1 -0
  22. package/dist/{chunk-5MLC2HU3.cjs → chunk-RZ2NGS6A.cjs} +19 -7
  23. package/dist/chunk-RZ2NGS6A.cjs.map +1 -0
  24. package/dist/{chunk-YG7T6LI3.js → chunk-SG4XYCS7.js} +3 -3
  25. package/dist/{chunk-YG7T6LI3.js.map → chunk-SG4XYCS7.js.map} +1 -1
  26. package/dist/{chunk-TA7XLEP2.js → chunk-VTE3NYVD.js} +298 -41
  27. package/dist/chunk-VTE3NYVD.js.map +1 -0
  28. package/dist/{chunk-GVHUHTRH.cjs → chunk-WQIWUTYS.cjs} +17 -17
  29. package/dist/{chunk-GVHUHTRH.cjs.map → chunk-WQIWUTYS.cjs.map} +1 -1
  30. package/dist/{chunk-EBYCTLET.cjs → chunk-YEUXBECG.cjs} +727 -469
  31. package/dist/chunk-YEUXBECG.cjs.map +1 -0
  32. package/dist/{chunk-2PPL3O7Z.js → chunk-ZPSUBAWQ.js} +7 -8
  33. package/dist/chunk-ZPSUBAWQ.js.map +1 -0
  34. package/dist/contracts/handlers/index.cjs +9 -9
  35. package/dist/contracts/handlers/index.d.cts +3 -3
  36. package/dist/contracts/handlers/index.d.ts +3 -3
  37. package/dist/contracts/handlers/index.js +2 -2
  38. package/dist/{delegate-BPdzTbwN.d.ts → delegate-B9Bmrns7.d.ts} +1 -1
  39. package/dist/{delegate-DrwIar11.d.cts → delegate-CZzIduW4.d.cts} +1 -1
  40. package/dist/{hdWalletCapable-D4WH35z0.d.cts → hdWalletCapable-BIl3yLVM.d.cts} +103 -28
  41. package/dist/{hdWalletCapable-DyxCiNVE.d.ts → hdWalletCapable-Cr5nGpK5.d.ts} +103 -28
  42. package/dist/{index-TZJvbIaA.d.ts → index-Ci5MmNnK.d.cts} +7 -7
  43. package/dist/{index-BqhpAqqj.d.cts → index-DQ1Hb2w_.d.ts} +7 -7
  44. package/dist/{index-dWRqYSdS.d.ts → index-DnNIOqHS.d.cts} +168 -19
  45. package/dist/{index-dWRqYSdS.d.cts → index-DnNIOqHS.d.ts} +168 -19
  46. package/dist/index.cjs +307 -291
  47. package/dist/index.d.cts +121 -29
  48. package/dist/index.d.ts +121 -29
  49. package/dist/index.js +4 -4
  50. package/dist/repositories/realm/index.cjs +19 -19
  51. package/dist/repositories/realm/index.d.cts +2 -2
  52. package/dist/repositories/realm/index.d.ts +2 -2
  53. package/dist/repositories/realm/index.js +5 -5
  54. package/dist/repositories/sqlite/index.cjs +18 -18
  55. package/dist/repositories/sqlite/index.d.cts +2 -2
  56. package/dist/repositories/sqlite/index.d.ts +2 -2
  57. package/dist/repositories/sqlite/index.js +5 -5
  58. package/dist/{taskRunner-CzYKyJ9c.d.cts → taskRunner-BDb5Ee2J.d.cts} +2 -2
  59. package/dist/{taskRunner-D2fnbqYw.d.ts → taskRunner-F7wNJcF3.d.ts} +2 -2
  60. package/dist/wallet/expo/background.cjs +14 -14
  61. package/dist/wallet/expo/background.d.cts +3 -3
  62. package/dist/wallet/expo/background.d.ts +3 -3
  63. package/dist/wallet/expo/background.js +6 -6
  64. package/dist/wallet/expo/index.cjs +23 -14
  65. package/dist/wallet/expo/index.cjs.map +1 -1
  66. package/dist/wallet/expo/index.d.cts +7 -4
  67. package/dist/wallet/expo/index.d.ts +7 -4
  68. package/dist/wallet/expo/index.js +14 -5
  69. package/dist/wallet/expo/index.js.map +1 -1
  70. package/dist/worker/expo/index.cjs +9 -9
  71. package/dist/worker/expo/index.d.cts +4 -4
  72. package/dist/worker/expo/index.d.ts +4 -4
  73. package/dist/worker/expo/index.js +5 -5
  74. package/package.json +3 -2
  75. package/dist/chunk-2PPL3O7Z.js.map +0 -1
  76. package/dist/chunk-5MLC2HU3.cjs.map +0 -1
  77. package/dist/chunk-EBYCTLET.cjs.map +0 -1
  78. package/dist/chunk-L5SCQYHF.js.map +0 -1
  79. package/dist/chunk-TA7XLEP2.js.map +0 -1
  80. package/dist/chunk-WIFL5QYZ.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk5MLC2HU3_cjs = require('./chunk-5MLC2HU3.cjs');
3
+ var chunkRZ2NGS6A_cjs = require('./chunk-RZ2NGS6A.cjs');
4
4
  var chunk5BLDMQED_cjs = require('./chunk-5BLDMQED.cjs');
5
5
  var base = require('@scure/base');
6
6
  var descriptorsScure = require('@bitcoinerlab/descriptors-scure');
@@ -76,14 +76,14 @@ var ContractHandlerRegistry = class {
76
76
  var contractHandlers = new ContractHandlerRegistry();
77
77
  exports.DefaultVtxo = void 0;
78
78
  ((DefaultVtxo2) => {
79
- class Script3 extends chunk5MLC2HU3_cjs.VtxoScript {
79
+ class Script3 extends chunkRZ2NGS6A_cjs.VtxoScript {
80
80
  /** Create the default virtual output script with one forfeit path and one exit path. */
81
81
  constructor(options) {
82
82
  const { pubKey, serverPubKey, csvTimelock } = options;
83
- const forfeitScript = chunk5MLC2HU3_cjs.MultisigTapscript.encode({
83
+ const forfeitScript = chunkRZ2NGS6A_cjs.MultisigTapscript.encode({
84
84
  pubkeys: [pubKey, serverPubKey]
85
85
  }).script;
86
- const exitScript = chunk5MLC2HU3_cjs.CSVMultisigTapscript.encode({
86
+ const exitScript = chunkRZ2NGS6A_cjs.CSVMultisigTapscript.encode({
87
87
  timelock: csvTimelock,
88
88
  pubkeys: [pubKey]
89
89
  }).script;
@@ -288,7 +288,7 @@ function extractPubKeyBytes(value) {
288
288
  return base.hex.decode(extractPubKey(normalizeToDescriptor(value)));
289
289
  }
290
290
  function deserializeCsvTimelock(value) {
291
- return value !== void 0 && value !== "" ? chunk5MLC2HU3_cjs.sequenceToTimelock(Number(value)) : exports.DefaultVtxo.Script.DEFAULT_TIMELOCK;
291
+ return value !== void 0 && value !== "" ? chunkRZ2NGS6A_cjs.sequenceToTimelock(Number(value)) : exports.DefaultVtxo.Script.DEFAULT_TIMELOCK;
292
292
  }
293
293
  var CLTV_HEIGHT_THRESHOLD = 500000000n;
294
294
  function isCltvSatisfied(context, locktime) {
@@ -330,7 +330,7 @@ function assertVhtlcSpendableNow(contract, context) {
330
330
  function isCsvSpendable(context, sequence) {
331
331
  if (sequence === void 0) return true;
332
332
  if (!context.vtxo) return false;
333
- const timelock = chunk5MLC2HU3_cjs.sequenceToTimelock(sequence);
333
+ const timelock = chunkRZ2NGS6A_cjs.sequenceToTimelock(sequence);
334
334
  if (timelock.type === "blocks") {
335
335
  if (context.blockHeight === void 0 || context.vtxo.status.block_height === void 0) {
336
336
  return false;
@@ -388,21 +388,21 @@ function forfeitExitSpendablePaths(script, contract, context) {
388
388
  async function detectUsedScripts(indexerProvider, scriptHexes) {
389
389
  const used = /* @__PURE__ */ new Set();
390
390
  const unique = [...new Set(scriptHexes)];
391
- for (let offset = 0; offset < unique.length; offset += chunk5MLC2HU3_cjs.SCRIPT_QUERY_CHUNK_SIZE) {
392
- const scripts = unique.slice(offset, offset + chunk5MLC2HU3_cjs.SCRIPT_QUERY_CHUNK_SIZE);
391
+ for (let offset = 0; offset < unique.length; offset += chunkRZ2NGS6A_cjs.SCRIPT_QUERY_CHUNK_SIZE) {
392
+ const scripts = unique.slice(offset, offset + chunkRZ2NGS6A_cjs.SCRIPT_QUERY_CHUNK_SIZE);
393
393
  const remaining = new Set(scripts);
394
394
  let pageIndex = 0;
395
395
  let hasMore = true;
396
396
  while (hasMore && remaining.size > 0) {
397
- const { vtxos, page } = await chunk5MLC2HU3_cjs.getNormalizedVtxos(indexerProvider, {
397
+ const { vtxos, page } = await chunkRZ2NGS6A_cjs.getNormalizedVtxos(indexerProvider, {
398
398
  scripts,
399
399
  pageIndex,
400
- pageSize: chunk5MLC2HU3_cjs.DEFAULT_PAGE_SIZE
400
+ pageSize: chunkRZ2NGS6A_cjs.DEFAULT_PAGE_SIZE
401
401
  });
402
402
  for (const vtxo of vtxos) {
403
403
  if (remaining.delete(vtxo.script)) used.add(vtxo.script);
404
404
  }
405
- hasMore = page ? vtxos.length === chunk5MLC2HU3_cjs.DEFAULT_PAGE_SIZE : false;
405
+ hasMore = page ? vtxos.length === chunkRZ2NGS6A_cjs.DEFAULT_PAGE_SIZE : false;
406
406
  pageIndex++;
407
407
  }
408
408
  }
@@ -463,7 +463,7 @@ var DefaultContractHandler = {
463
463
  return {
464
464
  pubKey: base.hex.encode(params.pubKey),
465
465
  serverPubKey: base.hex.encode(params.serverPubKey),
466
- csvTimelock: chunk5MLC2HU3_cjs.timelockToSequence(params.csvTimelock).toString()
466
+ csvTimelock: chunkRZ2NGS6A_cjs.timelockToSequence(params.csvTimelock).toString()
467
467
  };
468
468
  },
469
469
  deserializeParams(params) {
@@ -498,7 +498,7 @@ function defaultCandidatesAt(_index, descriptor, deps) {
498
498
  params: {
499
499
  pubKey: base.hex.encode(c.pubKey),
500
500
  serverPubKey: base.hex.encode(c.serverPubKey),
501
- csvTimelock: chunk5MLC2HU3_cjs.timelockToSequence(c.csvTimelock).toString()
501
+ csvTimelock: chunkRZ2NGS6A_cjs.timelockToSequence(c.csvTimelock).toString()
502
502
  },
503
503
  script: c.scriptHex,
504
504
  address: c.script.address(deps.network.hrp, c.serverPubKey).encode()
@@ -514,12 +514,12 @@ function discoverDefaultRange(entries, deps) {
514
514
  }
515
515
  exports.DelegateVtxo = void 0;
516
516
  ((DelegateVtxo2) => {
517
- class Script3 extends chunk5MLC2HU3_cjs.VtxoScript {
517
+ class Script3 extends chunkRZ2NGS6A_cjs.VtxoScript {
518
518
  /** Create a delegated virtual output script with forfeit, exit, and delegate paths. */
519
519
  constructor(options) {
520
520
  const defaultVtxo = new exports.DefaultVtxo.Script(options);
521
521
  const { delegatePubKey, pubKey, serverPubKey } = options;
522
- const delegateScript = chunk5MLC2HU3_cjs.MultisigTapscript.encode({
522
+ const delegateScript = chunkRZ2NGS6A_cjs.MultisigTapscript.encode({
523
523
  pubkeys: [pubKey, delegatePubKey, serverPubKey]
524
524
  }).script;
525
525
  super([...defaultVtxo.scripts, delegateScript]);
@@ -558,7 +558,7 @@ var DelegateContractHandler = {
558
558
  pubKey: base.hex.encode(params.pubKey),
559
559
  serverPubKey: base.hex.encode(params.serverPubKey),
560
560
  delegatePubKey: base.hex.encode(params.delegatePubKey),
561
- csvTimelock: chunk5MLC2HU3_cjs.timelockToSequence(params.csvTimelock).toString()
561
+ csvTimelock: chunkRZ2NGS6A_cjs.timelockToSequence(params.csvTimelock).toString()
562
562
  };
563
563
  },
564
564
  deserializeParams(params) {
@@ -602,7 +602,7 @@ function delegateCandidatesAt(_index, descriptor, deps) {
602
602
  pubKey: base.hex.encode(c.pubKey),
603
603
  serverPubKey: base.hex.encode(c.serverPubKey),
604
604
  delegatePubKey: base.hex.encode(delegatePubKey),
605
- csvTimelock: chunk5MLC2HU3_cjs.timelockToSequence(c.csvTimelock).toString()
605
+ csvTimelock: chunkRZ2NGS6A_cjs.timelockToSequence(c.csvTimelock).toString()
606
606
  },
607
607
  script: c.scriptHex,
608
608
  address: c.script.address(deps.network.hrp, c.serverPubKey).encode()
@@ -1445,7 +1445,7 @@ function computeArkadeScriptPublicKey(pubKey, script) {
1445
1445
  // src/script/vhtlc.ts
1446
1446
  exports.VHTLC = void 0;
1447
1447
  ((VHTLC2) => {
1448
- class BaseScript extends chunk5MLC2HU3_cjs.VtxoScript {
1448
+ class BaseScript extends chunkRZ2NGS6A_cjs.VtxoScript {
1449
1449
  options;
1450
1450
  claimScript;
1451
1451
  refundScript;
@@ -1472,27 +1472,27 @@ exports.VHTLC = void 0;
1472
1472
  unilateralRefundWithoutReceiverDelay
1473
1473
  } = options;
1474
1474
  const conditionScript = preimageCondition(preimageHash);
1475
- const claimScript = chunk5MLC2HU3_cjs.ConditionMultisigTapscript.encode({
1475
+ const claimScript = chunkRZ2NGS6A_cjs.ConditionMultisigTapscript.encode({
1476
1476
  conditionScript,
1477
1477
  pubkeys: [receiver, server]
1478
1478
  }).script;
1479
- const refundScript = chunk5MLC2HU3_cjs.MultisigTapscript.encode({
1479
+ const refundScript = chunkRZ2NGS6A_cjs.MultisigTapscript.encode({
1480
1480
  pubkeys: [sender, receiver, server]
1481
1481
  }).script;
1482
- const refundWithoutReceiverScript = chunk5MLC2HU3_cjs.CLTVMultisigTapscript.encode({
1482
+ const refundWithoutReceiverScript = chunkRZ2NGS6A_cjs.CLTVMultisigTapscript.encode({
1483
1483
  absoluteTimelock: refundLocktime,
1484
1484
  pubkeys: [sender, server]
1485
1485
  }).script;
1486
- const unilateralClaimScript = chunk5MLC2HU3_cjs.ConditionCSVMultisigTapscript.encode({
1486
+ const unilateralClaimScript = chunkRZ2NGS6A_cjs.ConditionCSVMultisigTapscript.encode({
1487
1487
  conditionScript,
1488
1488
  timelock: unilateralClaimDelay,
1489
1489
  pubkeys: [receiver]
1490
1490
  }).script;
1491
- const unilateralRefundScript = chunk5MLC2HU3_cjs.CSVMultisigTapscript.encode({
1491
+ const unilateralRefundScript = chunkRZ2NGS6A_cjs.CSVMultisigTapscript.encode({
1492
1492
  timelock: unilateralRefundDelay,
1493
1493
  pubkeys: [sender, receiver]
1494
1494
  }).script;
1495
- const unilateralRefundWithoutReceiverScript = chunk5MLC2HU3_cjs.CSVMultisigTapscript.encode({
1495
+ const unilateralRefundWithoutReceiverScript = chunkRZ2NGS6A_cjs.CSVMultisigTapscript.encode({
1496
1496
  timelock: unilateralRefundWithoutReceiverDelay,
1497
1497
  pubkeys: [sender]
1498
1498
  }).script;
@@ -1512,7 +1512,7 @@ exports.VHTLC = void 0;
1512
1512
  const covenants = options.nonInteractiveParameters;
1513
1513
  if (covenants) {
1514
1514
  arkadeScriptNic = enforcePayToMaybeAsset(covenants.receiverPkScript, options.asset);
1515
- nonInteractiveClaimScript = chunk5MLC2HU3_cjs.ConditionMultisigTapscript.encode({
1515
+ nonInteractiveClaimScript = chunkRZ2NGS6A_cjs.ConditionMultisigTapscript.encode({
1516
1516
  conditionScript,
1517
1517
  pubkeys: [
1518
1518
  server,
@@ -1525,12 +1525,12 @@ exports.VHTLC = void 0;
1525
1525
  covenants.emulatorPubkey,
1526
1526
  arkadeScriptNir
1527
1527
  );
1528
- nonInteractiveRefundScript = chunk5MLC2HU3_cjs.MultisigTapscript.encode({
1528
+ nonInteractiveRefundScript = chunkRZ2NGS6A_cjs.MultisigTapscript.encode({
1529
1529
  pubkeys: [server, receiver, nirCosigner]
1530
1530
  }).script;
1531
1531
  scripts.push(nonInteractiveRefundScript);
1532
1532
  if (covenants.legacy !== "preTimelockedRefund") {
1533
- nonInteractiveRefundWithoutReceiverScript = chunk5MLC2HU3_cjs.CLTVMultisigTapscript.encode({
1533
+ nonInteractiveRefundWithoutReceiverScript = chunkRZ2NGS6A_cjs.CLTVMultisigTapscript.encode({
1534
1534
  absoluteTimelock: refundLocktime,
1535
1535
  pubkeys: [server, nirCosigner]
1536
1536
  }).script;
@@ -1844,9 +1844,9 @@ var VHTLCContractHandler = {
1844
1844
  server: base.hex.encode(params.server),
1845
1845
  hash: base.hex.encode(params.preimageHash),
1846
1846
  refundLocktime: params.refundLocktime.toString(),
1847
- claimDelay: chunk5MLC2HU3_cjs.timelockToSequence(params.unilateralClaimDelay).toString(),
1848
- refundDelay: chunk5MLC2HU3_cjs.timelockToSequence(params.unilateralRefundDelay).toString(),
1849
- refundNoReceiverDelay: chunk5MLC2HU3_cjs.timelockToSequence(
1847
+ claimDelay: chunkRZ2NGS6A_cjs.timelockToSequence(params.unilateralClaimDelay).toString(),
1848
+ refundDelay: chunkRZ2NGS6A_cjs.timelockToSequence(params.unilateralRefundDelay).toString(),
1849
+ refundNoReceiverDelay: chunkRZ2NGS6A_cjs.timelockToSequence(
1850
1850
  params.unilateralRefundWithoutReceiverDelay
1851
1851
  ).toString()
1852
1852
  };
@@ -1858,9 +1858,9 @@ var VHTLCContractHandler = {
1858
1858
  server: base.hex.decode(params.server),
1859
1859
  preimageHash: base.hex.decode(params.hash),
1860
1860
  refundLocktime: BigInt(params.refundLocktime),
1861
- unilateralClaimDelay: chunk5MLC2HU3_cjs.sequenceToTimelock(Number(params.claimDelay)),
1862
- unilateralRefundDelay: chunk5MLC2HU3_cjs.sequenceToTimelock(Number(params.refundDelay)),
1863
- unilateralRefundWithoutReceiverDelay: chunk5MLC2HU3_cjs.sequenceToTimelock(
1861
+ unilateralClaimDelay: chunkRZ2NGS6A_cjs.sequenceToTimelock(Number(params.claimDelay)),
1862
+ unilateralRefundDelay: chunkRZ2NGS6A_cjs.sequenceToTimelock(Number(params.refundDelay)),
1863
+ unilateralRefundWithoutReceiverDelay: chunkRZ2NGS6A_cjs.sequenceToTimelock(
1864
1864
  Number(params.refundNoReceiverDelay)
1865
1865
  )
1866
1866
  };
@@ -2106,9 +2106,9 @@ var VHTLCV2ContractHandler = {
2106
2106
  server: base.hex.encode(params.server),
2107
2107
  hash: base.hex.encode(params.preimageHash),
2108
2108
  refundLocktime: params.refundLocktime.toString(),
2109
- claimDelay: chunk5MLC2HU3_cjs.timelockToSequence(params.unilateralClaimDelay).toString(),
2110
- refundDelay: chunk5MLC2HU3_cjs.timelockToSequence(params.unilateralRefundDelay).toString(),
2111
- refundNoReceiverDelay: chunk5MLC2HU3_cjs.timelockToSequence(
2109
+ claimDelay: chunkRZ2NGS6A_cjs.timelockToSequence(params.unilateralClaimDelay).toString(),
2110
+ refundDelay: chunkRZ2NGS6A_cjs.timelockToSequence(params.unilateralRefundDelay).toString(),
2111
+ refundNoReceiverDelay: chunkRZ2NGS6A_cjs.timelockToSequence(
2112
2112
  params.unilateralRefundWithoutReceiverDelay
2113
2113
  ).toString(),
2114
2114
  // The on-disk keys keep their per-leaf names even though the typed
@@ -2184,7 +2184,7 @@ var VHTLCV2ContractHandler = {
2184
2184
  }
2185
2185
  if (params.strictClaimAmount !== void 0 || params.strictClaimAssetAmount !== void 0) {
2186
2186
  throw new Error(
2187
- "strict claim params on a stored row: the strict claim bound was removed and this row's lockup cannot be re-derived without it \u2014 restore it with the SDK version that wrote it"
2187
+ "strict claim params on a stored row: the strict claim bound was removed in 0.4.68, so this row \u2014 written by 0.4.65-0.4.67 \u2014 locks to a script this build cannot re-derive. To clear it: claim or refund the swap on 0.4.67, then drop the settled row here with `contractManager.deleteContract(script)`. Do not delete it first \u2014 any balance it still holds is only reachable from 0.4.67."
2188
2188
  );
2189
2189
  }
2190
2190
  if (params.nonInteractiveRefundWithoutReceiver !== void 0 && !refund) {
@@ -2208,9 +2208,9 @@ var VHTLCV2ContractHandler = {
2208
2208
  preimageHash: base.hex.decode(params.hash),
2209
2209
  refundLocktime: BigInt(params.refundLocktime),
2210
2210
  ...asset && { asset },
2211
- unilateralClaimDelay: chunk5MLC2HU3_cjs.sequenceToTimelock(Number(params.claimDelay)),
2212
- unilateralRefundDelay: chunk5MLC2HU3_cjs.sequenceToTimelock(Number(params.refundDelay)),
2213
- unilateralRefundWithoutReceiverDelay: chunk5MLC2HU3_cjs.sequenceToTimelock(
2211
+ unilateralClaimDelay: chunkRZ2NGS6A_cjs.sequenceToTimelock(Number(params.claimDelay)),
2212
+ unilateralRefundDelay: chunkRZ2NGS6A_cjs.sequenceToTimelock(Number(params.refundDelay)),
2213
+ unilateralRefundWithoutReceiverDelay: chunkRZ2NGS6A_cjs.sequenceToTimelock(
2214
2214
  Number(params.refundNoReceiverDelay)
2215
2215
  ),
2216
2216
  ...claim && refund && {
@@ -2410,10 +2410,9 @@ var VHTLCV2ContractHandler = {
2410
2410
  *
2411
2411
  * **It carries a CLTV, and callers must respect it.** A settlement built on
2412
2412
  * this leaf is only valid once `refundLocktime` has matured, so a recovery
2413
- * round that sweeps this VTXO early is rejected by the server. That is the
2414
- * same constraint `packages/boltz-swap` encodes as "pre-CLTV recoverable
2415
- * skipped"; nothing in this handler can enforce it, because the annotation
2416
- * is derived per contract and knows no clock. `recoverVtxos` filters on
2413
+ * round that sweeps this VTXO early is rejected by the server. Nothing in
2414
+ * this handler can enforce it, because the annotation is derived per
2415
+ * contract and knows no clock. `recoverVtxos` filters on
2417
2416
  * {@link assertSpendableNow} for it.
2418
2417
  *
2419
2418
  * **Role-blind.** A receiver's row gets the same leaf, which names keys that
@@ -2483,7 +2482,7 @@ var BoardingContractHandler = {
2483
2482
  const coins = await deps.onchainProvider.getCoins(onchainAddress);
2484
2483
  if (coins.length === 0) return [];
2485
2484
  const scriptHex = base.hex.encode(script.pkScript);
2486
- const boardingSeq = chunk5MLC2HU3_cjs.timelockToSequence(deps.boardingTimelock);
2485
+ const boardingSeq = chunkRZ2NGS6A_cjs.timelockToSequence(deps.boardingTimelock);
2487
2486
  return [
2488
2487
  {
2489
2488
  type: "boarding",
@@ -2644,27 +2643,27 @@ function encodeTapscriptSegment(seg, pubkeys, args) {
2644
2643
  if (seg.csv) {
2645
2644
  const timelock = { type: seg.csv.type, value: resolveTimelockValue(seg.csv.value, args) };
2646
2645
  if (seg.asm) {
2647
- return chunk5MLC2HU3_cjs.ConditionCSVMultisigTapscript.encode({
2646
+ return chunkRZ2NGS6A_cjs.ConditionCSVMultisigTapscript.encode({
2648
2647
  conditionScript: resolveAsm(seg.asm, args),
2649
2648
  timelock,
2650
2649
  pubkeys
2651
2650
  });
2652
2651
  }
2653
- return chunk5MLC2HU3_cjs.CSVMultisigTapscript.encode({ timelock, pubkeys });
2652
+ return chunkRZ2NGS6A_cjs.CSVMultisigTapscript.encode({ timelock, pubkeys });
2654
2653
  }
2655
2654
  if (seg.cltv !== void 0) {
2656
- return chunk5MLC2HU3_cjs.CLTVMultisigTapscript.encode({
2655
+ return chunkRZ2NGS6A_cjs.CLTVMultisigTapscript.encode({
2657
2656
  absoluteTimelock: resolveTimelockValue(seg.cltv, args),
2658
2657
  pubkeys
2659
2658
  });
2660
2659
  }
2661
2660
  if (seg.asm) {
2662
- return chunk5MLC2HU3_cjs.ConditionMultisigTapscript.encode({
2661
+ return chunkRZ2NGS6A_cjs.ConditionMultisigTapscript.encode({
2663
2662
  conditionScript: resolveAsm(seg.asm, args),
2664
2663
  pubkeys
2665
2664
  });
2666
2665
  }
2667
- return chunk5MLC2HU3_cjs.MultisigTapscript.encode({ pubkeys });
2666
+ return chunkRZ2NGS6A_cjs.MultisigTapscript.encode({ pubkeys });
2668
2667
  }
2669
2668
  function compileFunctions(program, args, keys) {
2670
2669
  if (program.version !== SUPPORTED_PROGRAM_VERSION) {
@@ -2694,7 +2693,7 @@ function compileFunctions(program, args, keys) {
2694
2693
  return { name: names[i], def, leafScript, arkadeScript, signerKeys: pubkeys };
2695
2694
  });
2696
2695
  }
2697
- var ArkadeProgramScript = class extends chunk5MLC2HU3_cjs.VtxoScript {
2696
+ var ArkadeProgramScript = class extends chunkRZ2NGS6A_cjs.VtxoScript {
2698
2697
  constructor(program, args, keys) {
2699
2698
  const partial = compileFunctions(program, args, keys);
2700
2699
  super(partial.map((p) => p.leafScript));
@@ -2907,7 +2906,7 @@ function pathsFor(script, context, opts) {
2907
2906
  continue;
2908
2907
  }
2909
2908
  if (requiresServer) continue;
2910
- const sequence = csv ? Number(chunk5MLC2HU3_cjs.timelockToSequence(csv)) : void 0;
2909
+ const sequence = csv ? Number(chunkRZ2NGS6A_cjs.timelockToSequence(csv)) : void 0;
2911
2910
  if (opts.checkTimelocks && csv && !isCsvSpendable(context, sequence)) continue;
2912
2911
  if (opts.checkTimelocks && cltv !== void 0 && !isCltvSatisfied(context, cltv)) {
2913
2912
  continue;
@@ -3036,5 +3035,5 @@ exports.toASM = toASM;
3036
3035
  exports.toXOnly = toXOnly;
3037
3036
  exports.validateProgram = validateProgram;
3038
3037
  exports.witnessRefToBytes = witnessRefToBytes;
3039
- //# sourceMappingURL=chunk-WIFL5QYZ.cjs.map
3040
- //# sourceMappingURL=chunk-WIFL5QYZ.cjs.map
3038
+ //# sourceMappingURL=chunk-Q5WQ4Y2I.cjs.map
3039
+ //# sourceMappingURL=chunk-Q5WQ4Y2I.cjs.map