@arkade-os/sdk 0.5.0-rc.13 → 0.5.0-rc.15
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/adapters/expo.cjs +5 -5
- package/dist/adapters/expo.js +3 -3
- package/dist/{asyncStorageTaskQueue-DV94jhwq.d.ts → asyncStorageTaskQueue-B3CNSoyU.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-0EeSeCAt.d.cts → asyncStorageTaskQueue-C2YTpmtL.d.cts} +2 -2
- package/dist/{chunk-4EU2Q6YT.js → chunk-23USIDZD.js} +4 -4
- package/dist/{chunk-4EU2Q6YT.js.map → chunk-23USIDZD.js.map} +1 -1
- package/dist/{chunk-JOUPIZ32.js → chunk-7BJBBOV6.js} +3 -3
- package/dist/{chunk-JOUPIZ32.js.map → chunk-7BJBBOV6.js.map} +1 -1
- package/dist/{chunk-FDQQOF3F.cjs → chunk-7TSJAQRV.cjs} +47 -47
- package/dist/{chunk-FDQQOF3F.cjs.map → chunk-7TSJAQRV.cjs.map} +1 -1
- package/dist/{chunk-7BACS4XK.cjs → chunk-D5DCON5Q.cjs} +10 -10
- package/dist/{chunk-7BACS4XK.cjs.map → chunk-D5DCON5Q.cjs.map} +1 -1
- package/dist/{chunk-BFQX2KS3.cjs → chunk-JEJJYYYJ.cjs} +18 -18
- package/dist/{chunk-BFQX2KS3.cjs.map → chunk-JEJJYYYJ.cjs.map} +1 -1
- package/dist/{chunk-D7JLTHSZ.js → chunk-LJYEUSW3.js} +4 -4
- package/dist/{chunk-D7JLTHSZ.js.map → chunk-LJYEUSW3.js.map} +1 -1
- package/dist/{chunk-7NK6XFC3.cjs → chunk-NUIZAUNR.cjs} +3 -3
- package/dist/{chunk-7NK6XFC3.cjs.map → chunk-NUIZAUNR.cjs.map} +1 -1
- package/dist/{chunk-I4YBVHAK.cjs → chunk-OUX4QYWG.cjs} +451 -451
- package/dist/{chunk-I4YBVHAK.cjs.map → chunk-OUX4QYWG.cjs.map} +1 -1
- package/dist/{chunk-EJYWGTZ7.js → chunk-QGIJSURM.js} +3 -3
- package/dist/{chunk-EJYWGTZ7.js.map → chunk-QGIJSURM.js.map} +1 -1
- package/dist/{chunk-IV2252XM.js → chunk-QVMEGC66.js} +5 -5
- package/dist/{chunk-IV2252XM.js.map → chunk-QVMEGC66.js.map} +1 -1
- package/dist/{chunk-3JLYJ5KZ.js → chunk-WSVXDZPU.js} +3 -3
- package/dist/{chunk-3JLYJ5KZ.js.map → chunk-WSVXDZPU.js.map} +1 -1
- package/dist/{chunk-RDQSVIXD.cjs → chunk-XRSRFN26.cjs} +15 -15
- package/dist/{chunk-RDQSVIXD.cjs.map → chunk-XRSRFN26.cjs.map} +1 -1
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/index.cjs +305 -305
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +34 -34
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +32 -32
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-DJrFFyus.d.cts → taskRunner-CZoWmoTc.d.cts} +1 -1
- package/dist/{taskRunner-BX-pB0sv.d.ts → taskRunner-lfY7w6Up.d.ts} +1 -1
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +2 -2
- package/dist/wallet/expo/background.d.ts +2 -2
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +14 -14
- package/dist/wallet/expo/index.d.cts +1 -1
- package/dist/wallet/expo/index.d.ts +1 -1
- package/dist/wallet/expo/index.js +5 -5
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +3 -3
- package/dist/worker/expo/index.d.ts +3 -3
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNUIZAUNR_cjs = require('./chunk-NUIZAUNR.cjs');
|
|
4
4
|
var base = require('@scure/base');
|
|
5
5
|
var descriptorsScure = require('@bitcoinerlab/descriptors-scure');
|
|
6
6
|
var btcSigner = require('@scure/btc-signer');
|
|
@@ -67,14 +67,14 @@ var ContractHandlerRegistry = class {
|
|
|
67
67
|
var contractHandlers = new ContractHandlerRegistry();
|
|
68
68
|
exports.DefaultVtxo = void 0;
|
|
69
69
|
((DefaultVtxo2) => {
|
|
70
|
-
class Script3 extends
|
|
70
|
+
class Script3 extends chunkNUIZAUNR_cjs.VtxoScript {
|
|
71
71
|
/** Create the default virtual output script with one forfeit path and one exit path. */
|
|
72
72
|
constructor(options) {
|
|
73
73
|
const { pubKey, serverPubKey, csvTimelock } = options;
|
|
74
|
-
const forfeitScript =
|
|
74
|
+
const forfeitScript = chunkNUIZAUNR_cjs.MultisigTapscript.encode({
|
|
75
75
|
pubkeys: [pubKey, serverPubKey]
|
|
76
76
|
}).script;
|
|
77
|
-
const exitScript =
|
|
77
|
+
const exitScript = chunkNUIZAUNR_cjs.CSVMultisigTapscript.encode({
|
|
78
78
|
timelock: csvTimelock,
|
|
79
79
|
pubkeys: [pubKey]
|
|
80
80
|
}).script;
|
|
@@ -266,7 +266,7 @@ function extractPubKeyBytes(value) {
|
|
|
266
266
|
return base.hex.decode(extractPubKey(normalizeToDescriptor(value)));
|
|
267
267
|
}
|
|
268
268
|
function deserializeCsvTimelock(value) {
|
|
269
|
-
return value !== void 0 && value !== "" ?
|
|
269
|
+
return value !== void 0 && value !== "" ? chunkNUIZAUNR_cjs.sequenceToTimelock(Number(value)) : exports.DefaultVtxo.Script.DEFAULT_TIMELOCK;
|
|
270
270
|
}
|
|
271
271
|
var CLTV_HEIGHT_THRESHOLD = 500000000n;
|
|
272
272
|
function isCltvSatisfied(context, locktime) {
|
|
@@ -437,7 +437,7 @@ function deriveVhtlcTapscripts(script) {
|
|
|
437
437
|
function isCsvSpendable(context, sequence) {
|
|
438
438
|
if (sequence === void 0) return true;
|
|
439
439
|
if (!context.vtxo) return false;
|
|
440
|
-
const timelock =
|
|
440
|
+
const timelock = chunkNUIZAUNR_cjs.sequenceToTimelock(sequence);
|
|
441
441
|
if (timelock.type === "blocks") {
|
|
442
442
|
if (context.blockHeight === void 0 || context.vtxo.status.block_height === void 0) {
|
|
443
443
|
return false;
|
|
@@ -495,21 +495,21 @@ function forfeitExitSpendablePaths(script, contract, context) {
|
|
|
495
495
|
async function detectUsedScripts(indexerProvider, scriptHexes) {
|
|
496
496
|
const used = /* @__PURE__ */ new Set();
|
|
497
497
|
const unique = [...new Set(scriptHexes)];
|
|
498
|
-
for (let offset = 0; offset < unique.length; offset +=
|
|
499
|
-
const scripts = unique.slice(offset, offset +
|
|
498
|
+
for (let offset = 0; offset < unique.length; offset += chunkNUIZAUNR_cjs.SCRIPT_QUERY_CHUNK_SIZE) {
|
|
499
|
+
const scripts = unique.slice(offset, offset + chunkNUIZAUNR_cjs.SCRIPT_QUERY_CHUNK_SIZE);
|
|
500
500
|
const remaining = new Set(scripts);
|
|
501
501
|
let pageIndex = 0;
|
|
502
502
|
let hasMore = true;
|
|
503
503
|
while (hasMore && remaining.size > 0) {
|
|
504
|
-
const { vtxos, page } = await
|
|
504
|
+
const { vtxos, page } = await chunkNUIZAUNR_cjs.getNormalizedVtxos(indexerProvider, {
|
|
505
505
|
scripts,
|
|
506
506
|
pageIndex,
|
|
507
|
-
pageSize:
|
|
507
|
+
pageSize: chunkNUIZAUNR_cjs.DEFAULT_PAGE_SIZE
|
|
508
508
|
});
|
|
509
509
|
for (const vtxo of vtxos) {
|
|
510
510
|
if (remaining.delete(vtxo.script)) used.add(vtxo.script);
|
|
511
511
|
}
|
|
512
|
-
hasMore = page ? vtxos.length ===
|
|
512
|
+
hasMore = page ? vtxos.length === chunkNUIZAUNR_cjs.DEFAULT_PAGE_SIZE : false;
|
|
513
513
|
pageIndex++;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
@@ -570,7 +570,7 @@ var DefaultContractHandler = {
|
|
|
570
570
|
return {
|
|
571
571
|
pubKey: base.hex.encode(params.pubKey),
|
|
572
572
|
serverPubKey: base.hex.encode(params.serverPubKey),
|
|
573
|
-
csvTimelock:
|
|
573
|
+
csvTimelock: chunkNUIZAUNR_cjs.timelockToSequence(params.csvTimelock).toString()
|
|
574
574
|
};
|
|
575
575
|
},
|
|
576
576
|
deserializeParams(params) {
|
|
@@ -617,12 +617,12 @@ function discoverDefaultRange(entries, deps) {
|
|
|
617
617
|
}
|
|
618
618
|
exports.DelegateVtxo = void 0;
|
|
619
619
|
((DelegateVtxo2) => {
|
|
620
|
-
class Script3 extends
|
|
620
|
+
class Script3 extends chunkNUIZAUNR_cjs.VtxoScript {
|
|
621
621
|
/** Create a delegated virtual output script with forfeit, exit, and delegate paths. */
|
|
622
622
|
constructor(options) {
|
|
623
623
|
const defaultVtxo = new exports.DefaultVtxo.Script(options);
|
|
624
624
|
const { delegatePubKey, pubKey, serverPubKey } = options;
|
|
625
|
-
const delegateScript =
|
|
625
|
+
const delegateScript = chunkNUIZAUNR_cjs.MultisigTapscript.encode({
|
|
626
626
|
pubkeys: [pubKey, delegatePubKey, serverPubKey]
|
|
627
627
|
}).script;
|
|
628
628
|
super([...defaultVtxo.scripts, delegateScript]);
|
|
@@ -661,7 +661,7 @@ var DelegateContractHandler = {
|
|
|
661
661
|
pubKey: base.hex.encode(params.pubKey),
|
|
662
662
|
serverPubKey: base.hex.encode(params.serverPubKey),
|
|
663
663
|
delegatePubKey: base.hex.encode(params.delegatePubKey),
|
|
664
|
-
csvTimelock:
|
|
664
|
+
csvTimelock: chunkNUIZAUNR_cjs.timelockToSequence(params.csvTimelock).toString()
|
|
665
665
|
};
|
|
666
666
|
},
|
|
667
667
|
deserializeParams(params) {
|
|
@@ -854,7 +854,7 @@ function getOpcodeValue(name) {
|
|
|
854
854
|
|
|
855
855
|
// src/arkade/bignum.ts
|
|
856
856
|
var bignum_exports = {};
|
|
857
|
-
|
|
857
|
+
chunkNUIZAUNR_cjs.__export(bignum_exports, {
|
|
858
858
|
BIGNUM_MAX_BYTES: () => BIGNUM_MAX_BYTES,
|
|
859
859
|
decode: () => decode,
|
|
860
860
|
encode: () => encode
|
|
@@ -1043,7 +1043,7 @@ function computeArkadeScriptPublicKey(pubKey, script) {
|
|
|
1043
1043
|
// src/script/vhtlc.ts
|
|
1044
1044
|
exports.VHTLC = void 0;
|
|
1045
1045
|
((VHTLC2) => {
|
|
1046
|
-
class BaseScript extends
|
|
1046
|
+
class BaseScript extends chunkNUIZAUNR_cjs.VtxoScript {
|
|
1047
1047
|
options;
|
|
1048
1048
|
claimScript;
|
|
1049
1049
|
refundScript;
|
|
@@ -1070,27 +1070,27 @@ exports.VHTLC = void 0;
|
|
|
1070
1070
|
unilateralRefundWithoutReceiverDelay
|
|
1071
1071
|
} = options;
|
|
1072
1072
|
const conditionScript = preimageCondition(preimageHash);
|
|
1073
|
-
const claimScript =
|
|
1073
|
+
const claimScript = chunkNUIZAUNR_cjs.ConditionMultisigTapscript.encode({
|
|
1074
1074
|
conditionScript,
|
|
1075
1075
|
pubkeys: [receiver, server]
|
|
1076
1076
|
}).script;
|
|
1077
|
-
const refundScript =
|
|
1077
|
+
const refundScript = chunkNUIZAUNR_cjs.MultisigTapscript.encode({
|
|
1078
1078
|
pubkeys: [sender, receiver, server]
|
|
1079
1079
|
}).script;
|
|
1080
|
-
const refundWithoutReceiverScript =
|
|
1080
|
+
const refundWithoutReceiverScript = chunkNUIZAUNR_cjs.CLTVMultisigTapscript.encode({
|
|
1081
1081
|
absoluteTimelock: refundLocktime,
|
|
1082
1082
|
pubkeys: [sender, server]
|
|
1083
1083
|
}).script;
|
|
1084
|
-
const unilateralClaimScript =
|
|
1084
|
+
const unilateralClaimScript = chunkNUIZAUNR_cjs.ConditionCSVMultisigTapscript.encode({
|
|
1085
1085
|
conditionScript,
|
|
1086
1086
|
timelock: unilateralClaimDelay,
|
|
1087
1087
|
pubkeys: [receiver]
|
|
1088
1088
|
}).script;
|
|
1089
|
-
const unilateralRefundScript =
|
|
1089
|
+
const unilateralRefundScript = chunkNUIZAUNR_cjs.CSVMultisigTapscript.encode({
|
|
1090
1090
|
timelock: unilateralRefundDelay,
|
|
1091
1091
|
pubkeys: [sender, receiver]
|
|
1092
1092
|
}).script;
|
|
1093
|
-
const unilateralRefundWithoutReceiverScript =
|
|
1093
|
+
const unilateralRefundWithoutReceiverScript = chunkNUIZAUNR_cjs.CSVMultisigTapscript.encode({
|
|
1094
1094
|
timelock: unilateralRefundWithoutReceiverDelay,
|
|
1095
1095
|
pubkeys: [sender]
|
|
1096
1096
|
}).script;
|
|
@@ -1110,7 +1110,7 @@ exports.VHTLC = void 0;
|
|
|
1110
1110
|
const covenants = options.nonInteractiveParameters;
|
|
1111
1111
|
if (covenants) {
|
|
1112
1112
|
arkadeScriptNic = enforcePayToMaybeAsset(covenants.receiverPkScript, options.asset);
|
|
1113
|
-
nonInteractiveClaimScript =
|
|
1113
|
+
nonInteractiveClaimScript = chunkNUIZAUNR_cjs.ConditionMultisigTapscript.encode({
|
|
1114
1114
|
conditionScript,
|
|
1115
1115
|
pubkeys: [
|
|
1116
1116
|
server,
|
|
@@ -1123,12 +1123,12 @@ exports.VHTLC = void 0;
|
|
|
1123
1123
|
covenants.emulatorPubkey,
|
|
1124
1124
|
arkadeScriptNir
|
|
1125
1125
|
);
|
|
1126
|
-
nonInteractiveRefundScript =
|
|
1126
|
+
nonInteractiveRefundScript = chunkNUIZAUNR_cjs.MultisigTapscript.encode({
|
|
1127
1127
|
pubkeys: [server, receiver, nirCosigner]
|
|
1128
1128
|
}).script;
|
|
1129
1129
|
scripts.push(nonInteractiveRefundScript);
|
|
1130
1130
|
if (covenants.legacy !== "preTimelockedRefund") {
|
|
1131
|
-
nonInteractiveRefundWithoutReceiverScript =
|
|
1131
|
+
nonInteractiveRefundWithoutReceiverScript = chunkNUIZAUNR_cjs.CLTVMultisigTapscript.encode({
|
|
1132
1132
|
absoluteTimelock: refundLocktime,
|
|
1133
1133
|
pubkeys: [server, nirCosigner]
|
|
1134
1134
|
}).script;
|
|
@@ -1404,9 +1404,9 @@ var VHTLCContractHandler = {
|
|
|
1404
1404
|
server: base.hex.encode(params.server),
|
|
1405
1405
|
hash: base.hex.encode(params.preimageHash),
|
|
1406
1406
|
refundLocktime: params.refundLocktime.toString(),
|
|
1407
|
-
claimDelay:
|
|
1408
|
-
refundDelay:
|
|
1409
|
-
refundNoReceiverDelay:
|
|
1407
|
+
claimDelay: chunkNUIZAUNR_cjs.timelockToSequence(params.unilateralClaimDelay).toString(),
|
|
1408
|
+
refundDelay: chunkNUIZAUNR_cjs.timelockToSequence(params.unilateralRefundDelay).toString(),
|
|
1409
|
+
refundNoReceiverDelay: chunkNUIZAUNR_cjs.timelockToSequence(
|
|
1410
1410
|
params.unilateralRefundWithoutReceiverDelay
|
|
1411
1411
|
).toString()
|
|
1412
1412
|
};
|
|
@@ -1418,9 +1418,9 @@ var VHTLCContractHandler = {
|
|
|
1418
1418
|
server: base.hex.decode(params.server),
|
|
1419
1419
|
preimageHash: base.hex.decode(params.hash),
|
|
1420
1420
|
refundLocktime: BigInt(params.refundLocktime),
|
|
1421
|
-
unilateralClaimDelay:
|
|
1422
|
-
unilateralRefundDelay:
|
|
1423
|
-
unilateralRefundWithoutReceiverDelay:
|
|
1421
|
+
unilateralClaimDelay: chunkNUIZAUNR_cjs.sequenceToTimelock(Number(params.claimDelay)),
|
|
1422
|
+
unilateralRefundDelay: chunkNUIZAUNR_cjs.sequenceToTimelock(Number(params.refundDelay)),
|
|
1423
|
+
unilateralRefundWithoutReceiverDelay: chunkNUIZAUNR_cjs.sequenceToTimelock(
|
|
1424
1424
|
Number(params.refundNoReceiverDelay)
|
|
1425
1425
|
)
|
|
1426
1426
|
};
|
|
@@ -1513,9 +1513,9 @@ var VHTLCV2ContractHandler = {
|
|
|
1513
1513
|
server: base.hex.encode(params.server),
|
|
1514
1514
|
hash: base.hex.encode(params.preimageHash),
|
|
1515
1515
|
refundLocktime: params.refundLocktime.toString(),
|
|
1516
|
-
claimDelay:
|
|
1517
|
-
refundDelay:
|
|
1518
|
-
refundNoReceiverDelay:
|
|
1516
|
+
claimDelay: chunkNUIZAUNR_cjs.timelockToSequence(params.unilateralClaimDelay).toString(),
|
|
1517
|
+
refundDelay: chunkNUIZAUNR_cjs.timelockToSequence(params.unilateralRefundDelay).toString(),
|
|
1518
|
+
refundNoReceiverDelay: chunkNUIZAUNR_cjs.timelockToSequence(
|
|
1519
1519
|
params.unilateralRefundWithoutReceiverDelay
|
|
1520
1520
|
).toString(),
|
|
1521
1521
|
// Per-leaf on-disk keys predate the grouped param and older rows carry exactly these;
|
|
@@ -1593,9 +1593,9 @@ var VHTLCV2ContractHandler = {
|
|
|
1593
1593
|
preimageHash: base.hex.decode(params.hash),
|
|
1594
1594
|
refundLocktime: BigInt(params.refundLocktime),
|
|
1595
1595
|
...asset && { asset },
|
|
1596
|
-
unilateralClaimDelay:
|
|
1597
|
-
unilateralRefundDelay:
|
|
1598
|
-
unilateralRefundWithoutReceiverDelay:
|
|
1596
|
+
unilateralClaimDelay: chunkNUIZAUNR_cjs.sequenceToTimelock(Number(params.claimDelay)),
|
|
1597
|
+
unilateralRefundDelay: chunkNUIZAUNR_cjs.sequenceToTimelock(Number(params.refundDelay)),
|
|
1598
|
+
unilateralRefundWithoutReceiverDelay: chunkNUIZAUNR_cjs.sequenceToTimelock(
|
|
1599
1599
|
Number(params.refundNoReceiverDelay)
|
|
1600
1600
|
),
|
|
1601
1601
|
...claim && refund && {
|
|
@@ -1856,27 +1856,27 @@ function encodeTapscriptSegment(seg, pubkeys, args) {
|
|
|
1856
1856
|
if (seg.csv) {
|
|
1857
1857
|
const timelock = { type: seg.csv.type, value: resolveTimelockValue(seg.csv.value, args) };
|
|
1858
1858
|
if (seg.asm) {
|
|
1859
|
-
return
|
|
1859
|
+
return chunkNUIZAUNR_cjs.ConditionCSVMultisigTapscript.encode({
|
|
1860
1860
|
conditionScript: resolveAsm(seg.asm, args),
|
|
1861
1861
|
timelock,
|
|
1862
1862
|
pubkeys
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
|
-
return
|
|
1865
|
+
return chunkNUIZAUNR_cjs.CSVMultisigTapscript.encode({ timelock, pubkeys });
|
|
1866
1866
|
}
|
|
1867
1867
|
if (seg.cltv !== void 0) {
|
|
1868
|
-
return
|
|
1868
|
+
return chunkNUIZAUNR_cjs.CLTVMultisigTapscript.encode({
|
|
1869
1869
|
absoluteTimelock: resolveTimelockValue(seg.cltv, args),
|
|
1870
1870
|
pubkeys
|
|
1871
1871
|
});
|
|
1872
1872
|
}
|
|
1873
1873
|
if (seg.asm) {
|
|
1874
|
-
return
|
|
1874
|
+
return chunkNUIZAUNR_cjs.ConditionMultisigTapscript.encode({
|
|
1875
1875
|
conditionScript: resolveAsm(seg.asm, args),
|
|
1876
1876
|
pubkeys
|
|
1877
1877
|
});
|
|
1878
1878
|
}
|
|
1879
|
-
return
|
|
1879
|
+
return chunkNUIZAUNR_cjs.MultisigTapscript.encode({ pubkeys });
|
|
1880
1880
|
}
|
|
1881
1881
|
function compileFunctions(program, args, keys) {
|
|
1882
1882
|
if (program.version !== SUPPORTED_PROGRAM_VERSION) {
|
|
@@ -1918,7 +1918,7 @@ function compileFunctions(program, args, keys) {
|
|
|
1918
1918
|
return { name: names[i], def, leafScript, arkadeScript, signerKeys: pubkeys };
|
|
1919
1919
|
});
|
|
1920
1920
|
}
|
|
1921
|
-
var ArkadeProgramScript = class extends
|
|
1921
|
+
var ArkadeProgramScript = class extends chunkNUIZAUNR_cjs.VtxoScript {
|
|
1922
1922
|
constructor(program, args, keys) {
|
|
1923
1923
|
const partial = compileFunctions(program, args, keys);
|
|
1924
1924
|
super(partial.map((p) => p.leafScript));
|
|
@@ -2136,7 +2136,7 @@ function pathsFor(script, context, opts) {
|
|
|
2136
2136
|
continue;
|
|
2137
2137
|
}
|
|
2138
2138
|
if (requiresServer) continue;
|
|
2139
|
-
const sequence = csv ? Number(
|
|
2139
|
+
const sequence = csv ? Number(chunkNUIZAUNR_cjs.timelockToSequence(csv)) : void 0;
|
|
2140
2140
|
if (opts.checkTimelocks && csv && !isCsvSpendable(context, sequence)) continue;
|
|
2141
2141
|
if (opts.checkTimelocks && cltv !== void 0 && !isCltvSatisfied(context, cltv)) {
|
|
2142
2142
|
continue;
|
|
@@ -2265,5 +2265,5 @@ exports.toASM = toASM;
|
|
|
2265
2265
|
exports.toXOnly = toXOnly;
|
|
2266
2266
|
exports.validateProgram = validateProgram;
|
|
2267
2267
|
exports.witnessRefToBytes = witnessRefToBytes;
|
|
2268
|
-
//# sourceMappingURL=chunk-
|
|
2269
|
-
//# sourceMappingURL=chunk-
|
|
2268
|
+
//# sourceMappingURL=chunk-7TSJAQRV.cjs.map
|
|
2269
|
+
//# sourceMappingURL=chunk-7TSJAQRV.cjs.map
|