@arkade-os/sdk 0.4.54 → 0.4.56
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.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{ark-acFuA57I.d.cts → ark-Cgsd9tMd.d.cts} +40 -3
- package/dist/{ark-acFuA57I.d.ts → ark-Cgsd9tMd.d.ts} +40 -3
- package/dist/{asyncStorageTaskQueue-BO3cvMpP.d.cts → asyncStorageTaskQueue-C0ZsDE60.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-DACXtP0I.d.ts → asyncStorageTaskQueue-CXz4PRBW.d.ts} +2 -2
- package/dist/{chunk-RNECH3TA.cjs → chunk-24YNIQSW.cjs} +15 -15
- package/dist/{chunk-RNECH3TA.cjs.map → chunk-24YNIQSW.cjs.map} +1 -1
- package/dist/{chunk-53XNU2EL.cjs → chunk-37XKN5DZ.cjs} +60 -40
- package/dist/chunk-37XKN5DZ.cjs.map +1 -0
- package/dist/{chunk-7L3P3EP5.js → chunk-5IMBONCK.js} +4 -4
- package/dist/{chunk-7L3P3EP5.js.map → chunk-5IMBONCK.js.map} +1 -1
- package/dist/{chunk-GMUVWKOK.cjs → chunk-CDWLZQQW.cjs} +11 -3
- package/dist/chunk-CDWLZQQW.cjs.map +1 -0
- package/dist/{chunk-D5LUPJJP.cjs → chunk-ENRRZFZ4.cjs} +774 -399
- package/dist/chunk-ENRRZFZ4.cjs.map +1 -0
- package/dist/{chunk-4EIKOJLD.js → chunk-IFGN2GB2.js} +11 -4
- package/dist/chunk-IFGN2GB2.js.map +1 -0
- package/dist/{chunk-YRLBZJYO.cjs → chunk-IMVKQQHU.cjs} +9 -9
- package/dist/{chunk-YRLBZJYO.cjs.map → chunk-IMVKQQHU.cjs.map} +1 -1
- package/dist/{chunk-BYJJIITU.cjs → chunk-MXPBHDOI.cjs} +17 -17
- package/dist/{chunk-BYJJIITU.cjs.map → chunk-MXPBHDOI.cjs.map} +1 -1
- package/dist/{chunk-ZOY5JSVA.js → chunk-NN7BNNF5.js} +3 -3
- package/dist/{chunk-ZOY5JSVA.js.map → chunk-NN7BNNF5.js.map} +1 -1
- package/dist/{chunk-A37WVZ5T.js → chunk-OOPDT2WV.js} +23 -4
- package/dist/chunk-OOPDT2WV.js.map +1 -0
- package/dist/{chunk-TEHJCEF3.js → chunk-T22257HW.js} +422 -56
- package/dist/chunk-T22257HW.js.map +1 -0
- package/dist/{chunk-QY2YVFZT.js → chunk-VNDVUM2W.js} +4 -4
- package/dist/{chunk-QY2YVFZT.js.map → chunk-VNDVUM2W.js.map} +1 -1
- package/dist/contracts/handlers/index.cjs +8 -8
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-DjwZZi6L.d.ts → delegate-CZPXtd2F.d.ts} +1 -1
- package/dist/{delegate-Ca_wXiYE.d.cts → delegate-xXT8O-Kn.d.cts} +1 -1
- package/dist/{index-Ddq0mIKX.d.ts → index-BBJ466mM.d.ts} +2 -2
- package/dist/{index-DFfefdpc.d.cts → index-BYG2eKOA.d.cts} +2 -2
- package/dist/index.cjs +246 -202
- package/dist/index.d.cts +169 -16
- package/dist/index.d.ts +169 -16
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +19 -19
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +18 -18
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-DEwlrgId.d.cts → taskRunner-BG1PRFps.d.cts} +2 -2
- package/dist/{taskRunner-DbCNRP31.d.ts → taskRunner-C46NnRsY.d.ts} +2 -2
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +14 -14
- package/dist/wallet/expo/index.d.cts +5 -5
- package/dist/wallet/expo/index.d.ts +5 -5
- package/dist/wallet/expo/index.js +5 -5
- package/dist/{wallet-B9rpddG2.d.ts → wallet-1yWg75gN.d.cts} +100 -6
- package/dist/{wallet-ByjM6L20.d.cts → wallet-DuCm55EC.d.ts} +100 -6
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-4EIKOJLD.js.map +0 -1
- package/dist/chunk-53XNU2EL.cjs.map +0 -1
- package/dist/chunk-A37WVZ5T.js.map +0 -1
- package/dist/chunk-D5LUPJJP.cjs.map +0 -1
- package/dist/chunk-GMUVWKOK.cjs.map +0 -1
- package/dist/chunk-TEHJCEF3.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCDWLZQQW_cjs = require('./chunk-CDWLZQQW.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
|
|
79
|
+
class Script3 extends chunkCDWLZQQW_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 =
|
|
83
|
+
const forfeitScript = chunkCDWLZQQW_cjs.MultisigTapscript.encode({
|
|
84
84
|
pubkeys: [pubKey, serverPubKey]
|
|
85
85
|
}).script;
|
|
86
|
-
const exitScript =
|
|
86
|
+
const exitScript = chunkCDWLZQQW_cjs.CSVMultisigTapscript.encode({
|
|
87
87
|
timelock: csvTimelock,
|
|
88
88
|
pubkeys: [pubKey]
|
|
89
89
|
}).script;
|
|
@@ -193,6 +193,25 @@ function deriveDescriptorLeafPubKey(descriptor) {
|
|
|
193
193
|
}
|
|
194
194
|
return key.pubkey;
|
|
195
195
|
}
|
|
196
|
+
function deriveDescriptorLeafCompressedPubKey(descriptor) {
|
|
197
|
+
const network = isMainnetDescriptor(descriptor) ? descriptorsScure.networks.bitcoin : descriptorsScure.networks.testnet;
|
|
198
|
+
let expansion;
|
|
199
|
+
try {
|
|
200
|
+
expansion = descriptorsScure.expand({ descriptor, network });
|
|
201
|
+
} catch (e) {
|
|
202
|
+
throw new Error(
|
|
203
|
+
`Cannot derive compressed leaf pubkey from descriptor (length=${descriptor.length}): ensure it is materialized (no wildcard) and parsable.`,
|
|
204
|
+
{ cause: e }
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
const key = expansion.expansionMap?.["@0"];
|
|
208
|
+
if (!key?.bip32) {
|
|
209
|
+
throw new Error(
|
|
210
|
+
`Cannot derive compressed leaf pubkey from descriptor (length=${descriptor.length}): not an HD descriptor, so the key parity is unrecoverable.`
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
return key.keyPath ? key.bip32.derivePath(key.keyPath.replace(/^\//, "")).publicKey : key.bip32.publicKey;
|
|
214
|
+
}
|
|
196
215
|
|
|
197
216
|
// src/contracts/metadata.ts
|
|
198
217
|
var WALLET_RECEIVE_SOURCE = "wallet-receive";
|
|
@@ -244,7 +263,7 @@ function extractPubKeyBytes(value) {
|
|
|
244
263
|
return base.hex.decode(extractPubKey(normalizeToDescriptor(value)));
|
|
245
264
|
}
|
|
246
265
|
function deserializeCsvTimelock(value) {
|
|
247
|
-
return value !== void 0 && value !== "" ?
|
|
266
|
+
return value !== void 0 && value !== "" ? chunkCDWLZQQW_cjs.sequenceToTimelock(Number(value)) : exports.DefaultVtxo.Script.DEFAULT_TIMELOCK;
|
|
248
267
|
}
|
|
249
268
|
var CLTV_HEIGHT_THRESHOLD = 500000000n;
|
|
250
269
|
function isCltvSatisfied(context, locktime) {
|
|
@@ -258,7 +277,7 @@ function isCltvSatisfied(context, locktime) {
|
|
|
258
277
|
function isCsvSpendable(context, sequence) {
|
|
259
278
|
if (sequence === void 0) return true;
|
|
260
279
|
if (!context.vtxo) return false;
|
|
261
|
-
const timelock =
|
|
280
|
+
const timelock = chunkCDWLZQQW_cjs.sequenceToTimelock(sequence);
|
|
262
281
|
if (timelock.type === "blocks") {
|
|
263
282
|
if (context.blockHeight === void 0 || context.vtxo.status.block_height === void 0) {
|
|
264
283
|
return false;
|
|
@@ -316,21 +335,21 @@ function forfeitExitSpendablePaths(script, contract, context) {
|
|
|
316
335
|
async function detectUsedScripts(indexerProvider, scriptHexes) {
|
|
317
336
|
const used = /* @__PURE__ */ new Set();
|
|
318
337
|
const unique = [...new Set(scriptHexes)];
|
|
319
|
-
for (let offset = 0; offset < unique.length; offset +=
|
|
320
|
-
const scripts = unique.slice(offset, offset +
|
|
338
|
+
for (let offset = 0; offset < unique.length; offset += chunkCDWLZQQW_cjs.SCRIPT_QUERY_CHUNK_SIZE) {
|
|
339
|
+
const scripts = unique.slice(offset, offset + chunkCDWLZQQW_cjs.SCRIPT_QUERY_CHUNK_SIZE);
|
|
321
340
|
const remaining = new Set(scripts);
|
|
322
341
|
let pageIndex = 0;
|
|
323
342
|
let hasMore = true;
|
|
324
343
|
while (hasMore && remaining.size > 0) {
|
|
325
|
-
const { vtxos, page } = await
|
|
344
|
+
const { vtxos, page } = await chunkCDWLZQQW_cjs.getNormalizedVtxos(indexerProvider, {
|
|
326
345
|
scripts,
|
|
327
346
|
pageIndex,
|
|
328
|
-
pageSize:
|
|
347
|
+
pageSize: chunkCDWLZQQW_cjs.DEFAULT_PAGE_SIZE
|
|
329
348
|
});
|
|
330
349
|
for (const vtxo of vtxos) {
|
|
331
350
|
if (remaining.delete(vtxo.script)) used.add(vtxo.script);
|
|
332
351
|
}
|
|
333
|
-
hasMore = page ? vtxos.length ===
|
|
352
|
+
hasMore = page ? vtxos.length === chunkCDWLZQQW_cjs.DEFAULT_PAGE_SIZE : false;
|
|
334
353
|
pageIndex++;
|
|
335
354
|
}
|
|
336
355
|
}
|
|
@@ -391,7 +410,7 @@ var DefaultContractHandler = {
|
|
|
391
410
|
return {
|
|
392
411
|
pubKey: base.hex.encode(params.pubKey),
|
|
393
412
|
serverPubKey: base.hex.encode(params.serverPubKey),
|
|
394
|
-
csvTimelock:
|
|
413
|
+
csvTimelock: chunkCDWLZQQW_cjs.timelockToSequence(params.csvTimelock).toString()
|
|
395
414
|
};
|
|
396
415
|
},
|
|
397
416
|
deserializeParams(params) {
|
|
@@ -424,7 +443,7 @@ function defaultCandidatesAt(_index, descriptor, deps) {
|
|
|
424
443
|
params: {
|
|
425
444
|
pubKey: base.hex.encode(c.pubKey),
|
|
426
445
|
serverPubKey: base.hex.encode(c.serverPubKey),
|
|
427
|
-
csvTimelock:
|
|
446
|
+
csvTimelock: chunkCDWLZQQW_cjs.timelockToSequence(c.csvTimelock).toString()
|
|
428
447
|
},
|
|
429
448
|
script: c.scriptHex,
|
|
430
449
|
address: c.script.address(deps.network.hrp, c.serverPubKey).encode()
|
|
@@ -440,12 +459,12 @@ function discoverDefaultRange(entries, deps) {
|
|
|
440
459
|
}
|
|
441
460
|
exports.DelegateVtxo = void 0;
|
|
442
461
|
((DelegateVtxo2) => {
|
|
443
|
-
class Script3 extends
|
|
462
|
+
class Script3 extends chunkCDWLZQQW_cjs.VtxoScript {
|
|
444
463
|
/** Create a delegated virtual output script with forfeit, exit, and delegate paths. */
|
|
445
464
|
constructor(options) {
|
|
446
465
|
const defaultVtxo = new exports.DefaultVtxo.Script(options);
|
|
447
466
|
const { delegatePubKey, pubKey, serverPubKey } = options;
|
|
448
|
-
const delegateScript =
|
|
467
|
+
const delegateScript = chunkCDWLZQQW_cjs.MultisigTapscript.encode({
|
|
449
468
|
pubkeys: [pubKey, delegatePubKey, serverPubKey]
|
|
450
469
|
}).script;
|
|
451
470
|
super([...defaultVtxo.scripts, delegateScript]);
|
|
@@ -484,7 +503,7 @@ var DelegateContractHandler = {
|
|
|
484
503
|
pubKey: base.hex.encode(params.pubKey),
|
|
485
504
|
serverPubKey: base.hex.encode(params.serverPubKey),
|
|
486
505
|
delegatePubKey: base.hex.encode(params.delegatePubKey),
|
|
487
|
-
csvTimelock:
|
|
506
|
+
csvTimelock: chunkCDWLZQQW_cjs.timelockToSequence(params.csvTimelock).toString()
|
|
488
507
|
};
|
|
489
508
|
},
|
|
490
509
|
deserializeParams(params) {
|
|
@@ -526,7 +545,7 @@ function delegateCandidatesAt(_index, descriptor, deps) {
|
|
|
526
545
|
pubKey: base.hex.encode(c.pubKey),
|
|
527
546
|
serverPubKey: base.hex.encode(c.serverPubKey),
|
|
528
547
|
delegatePubKey: base.hex.encode(delegatePubKey),
|
|
529
|
-
csvTimelock:
|
|
548
|
+
csvTimelock: chunkCDWLZQQW_cjs.timelockToSequence(c.csvTimelock).toString()
|
|
530
549
|
},
|
|
531
550
|
script: c.scriptHex,
|
|
532
551
|
address: c.script.address(deps.network.hrp, c.serverPubKey).encode()
|
|
@@ -545,7 +564,7 @@ function discoverDelegateRange(entries, deps) {
|
|
|
545
564
|
}
|
|
546
565
|
exports.VHTLC = void 0;
|
|
547
566
|
((VHTLC2) => {
|
|
548
|
-
class Script3 extends
|
|
567
|
+
class Script3 extends chunkCDWLZQQW_cjs.VtxoScript {
|
|
549
568
|
/** Create a VHTLC script from the supplied participant keys, hash, and timelocks. */
|
|
550
569
|
constructor(options) {
|
|
551
570
|
validateOptions(options);
|
|
@@ -560,27 +579,27 @@ exports.VHTLC = void 0;
|
|
|
560
579
|
unilateralRefundWithoutReceiverDelay
|
|
561
580
|
} = options;
|
|
562
581
|
const conditionScript = preimageConditionScript(preimageHash);
|
|
563
|
-
const claimScript =
|
|
582
|
+
const claimScript = chunkCDWLZQQW_cjs.ConditionMultisigTapscript.encode({
|
|
564
583
|
conditionScript,
|
|
565
584
|
pubkeys: [receiver, server]
|
|
566
585
|
}).script;
|
|
567
|
-
const refundScript =
|
|
586
|
+
const refundScript = chunkCDWLZQQW_cjs.MultisigTapscript.encode({
|
|
568
587
|
pubkeys: [sender, receiver, server]
|
|
569
588
|
}).script;
|
|
570
|
-
const refundWithoutReceiverScript =
|
|
589
|
+
const refundWithoutReceiverScript = chunkCDWLZQQW_cjs.CLTVMultisigTapscript.encode({
|
|
571
590
|
absoluteTimelock: refundLocktime,
|
|
572
591
|
pubkeys: [sender, server]
|
|
573
592
|
}).script;
|
|
574
|
-
const unilateralClaimScript =
|
|
593
|
+
const unilateralClaimScript = chunkCDWLZQQW_cjs.ConditionCSVMultisigTapscript.encode({
|
|
575
594
|
conditionScript,
|
|
576
595
|
timelock: unilateralClaimDelay,
|
|
577
596
|
pubkeys: [receiver]
|
|
578
597
|
}).script;
|
|
579
|
-
const unilateralRefundScript =
|
|
598
|
+
const unilateralRefundScript = chunkCDWLZQQW_cjs.CSVMultisigTapscript.encode({
|
|
580
599
|
timelock: unilateralRefundDelay,
|
|
581
600
|
pubkeys: [sender, receiver]
|
|
582
601
|
}).script;
|
|
583
|
-
const unilateralRefundWithoutReceiverScript =
|
|
602
|
+
const unilateralRefundWithoutReceiverScript = chunkCDWLZQQW_cjs.CSVMultisigTapscript.encode({
|
|
584
603
|
timelock: unilateralRefundWithoutReceiverDelay,
|
|
585
604
|
pubkeys: [sender]
|
|
586
605
|
}).script;
|
|
@@ -708,9 +727,9 @@ var VHTLCContractHandler = {
|
|
|
708
727
|
server: base.hex.encode(params.server),
|
|
709
728
|
hash: base.hex.encode(params.preimageHash),
|
|
710
729
|
refundLocktime: params.refundLocktime.toString(),
|
|
711
|
-
claimDelay:
|
|
712
|
-
refundDelay:
|
|
713
|
-
refundNoReceiverDelay:
|
|
730
|
+
claimDelay: chunkCDWLZQQW_cjs.timelockToSequence(params.unilateralClaimDelay).toString(),
|
|
731
|
+
refundDelay: chunkCDWLZQQW_cjs.timelockToSequence(params.unilateralRefundDelay).toString(),
|
|
732
|
+
refundNoReceiverDelay: chunkCDWLZQQW_cjs.timelockToSequence(
|
|
714
733
|
params.unilateralRefundWithoutReceiverDelay
|
|
715
734
|
).toString()
|
|
716
735
|
};
|
|
@@ -722,9 +741,9 @@ var VHTLCContractHandler = {
|
|
|
722
741
|
server: base.hex.decode(params.server),
|
|
723
742
|
preimageHash: base.hex.decode(params.hash),
|
|
724
743
|
refundLocktime: BigInt(params.refundLocktime),
|
|
725
|
-
unilateralClaimDelay:
|
|
726
|
-
unilateralRefundDelay:
|
|
727
|
-
unilateralRefundWithoutReceiverDelay:
|
|
744
|
+
unilateralClaimDelay: chunkCDWLZQQW_cjs.sequenceToTimelock(Number(params.claimDelay)),
|
|
745
|
+
unilateralRefundDelay: chunkCDWLZQQW_cjs.sequenceToTimelock(Number(params.refundDelay)),
|
|
746
|
+
unilateralRefundWithoutReceiverDelay: chunkCDWLZQQW_cjs.sequenceToTimelock(
|
|
728
747
|
Number(params.refundNoReceiverDelay)
|
|
729
748
|
)
|
|
730
749
|
};
|
|
@@ -917,7 +936,7 @@ var BoardingContractHandler = {
|
|
|
917
936
|
const coins = await deps.onchainProvider.getCoins(onchainAddress);
|
|
918
937
|
if (coins.length === 0) return [];
|
|
919
938
|
const scriptHex = base.hex.encode(script.pkScript);
|
|
920
|
-
const boardingSeq =
|
|
939
|
+
const boardingSeq = chunkCDWLZQQW_cjs.timelockToSequence(deps.boardingTimelock);
|
|
921
940
|
return [
|
|
922
941
|
{
|
|
923
942
|
type: "boarding",
|
|
@@ -1898,27 +1917,27 @@ function encodeTapscriptSegment(seg, pubkeys, args) {
|
|
|
1898
1917
|
if (seg.csv) {
|
|
1899
1918
|
const timelock = { type: seg.csv.type, value: resolveTimelockValue(seg.csv.value, args) };
|
|
1900
1919
|
if (seg.asm) {
|
|
1901
|
-
return
|
|
1920
|
+
return chunkCDWLZQQW_cjs.ConditionCSVMultisigTapscript.encode({
|
|
1902
1921
|
conditionScript: resolveAsm(seg.asm, args),
|
|
1903
1922
|
timelock,
|
|
1904
1923
|
pubkeys
|
|
1905
1924
|
});
|
|
1906
1925
|
}
|
|
1907
|
-
return
|
|
1926
|
+
return chunkCDWLZQQW_cjs.CSVMultisigTapscript.encode({ timelock, pubkeys });
|
|
1908
1927
|
}
|
|
1909
1928
|
if (seg.cltv !== void 0) {
|
|
1910
|
-
return
|
|
1929
|
+
return chunkCDWLZQQW_cjs.CLTVMultisigTapscript.encode({
|
|
1911
1930
|
absoluteTimelock: resolveTimelockValue(seg.cltv, args),
|
|
1912
1931
|
pubkeys
|
|
1913
1932
|
});
|
|
1914
1933
|
}
|
|
1915
1934
|
if (seg.asm) {
|
|
1916
|
-
return
|
|
1935
|
+
return chunkCDWLZQQW_cjs.ConditionMultisigTapscript.encode({
|
|
1917
1936
|
conditionScript: resolveAsm(seg.asm, args),
|
|
1918
1937
|
pubkeys
|
|
1919
1938
|
});
|
|
1920
1939
|
}
|
|
1921
|
-
return
|
|
1940
|
+
return chunkCDWLZQQW_cjs.MultisigTapscript.encode({ pubkeys });
|
|
1922
1941
|
}
|
|
1923
1942
|
function compileFunctions(program, args, keys) {
|
|
1924
1943
|
if (program.version !== SUPPORTED_PROGRAM_VERSION) {
|
|
@@ -1948,7 +1967,7 @@ function compileFunctions(program, args, keys) {
|
|
|
1948
1967
|
return { name: names[i], def, leafScript, arkadeScript, signerKeys: pubkeys };
|
|
1949
1968
|
});
|
|
1950
1969
|
}
|
|
1951
|
-
var ArkadeProgramScript = class extends
|
|
1970
|
+
var ArkadeProgramScript = class extends chunkCDWLZQQW_cjs.VtxoScript {
|
|
1952
1971
|
constructor(program, args, keys) {
|
|
1953
1972
|
const partial = compileFunctions(program, args, keys);
|
|
1954
1973
|
super(partial.map((p) => p.leafScript));
|
|
@@ -2161,7 +2180,7 @@ function pathsFor(script, context, opts) {
|
|
|
2161
2180
|
continue;
|
|
2162
2181
|
}
|
|
2163
2182
|
if (requiresServer) continue;
|
|
2164
|
-
const sequence = csv ? Number(
|
|
2183
|
+
const sequence = csv ? Number(chunkCDWLZQQW_cjs.timelockToSequence(csv)) : void 0;
|
|
2165
2184
|
if (opts.checkTimelocks && csv && !isCsvSpendable(context, sequence)) continue;
|
|
2166
2185
|
if (opts.checkTimelocks && cltv !== void 0 && !isCltvSatisfied(context, cltv)) {
|
|
2167
2186
|
continue;
|
|
@@ -2253,6 +2272,7 @@ exports.bignum_exports = bignum_exports;
|
|
|
2253
2272
|
exports.bytesToASM = bytesToASM;
|
|
2254
2273
|
exports.computeArkadeScriptPublicKey = computeArkadeScriptPublicKey;
|
|
2255
2274
|
exports.contractHandlers = contractHandlers;
|
|
2275
|
+
exports.deriveDescriptorLeafCompressedPubKey = deriveDescriptorLeafCompressedPubKey;
|
|
2256
2276
|
exports.deriveDescriptorLeafPubKey = deriveDescriptorLeafPubKey;
|
|
2257
2277
|
exports.descriptorIsOurs = descriptorIsOurs;
|
|
2258
2278
|
exports.deserializeArkadeContractParams = deserializeArkadeContractParams;
|
|
@@ -2271,5 +2291,5 @@ exports.stringifyArtifact = stringifyArtifact;
|
|
|
2271
2291
|
exports.toASM = toASM;
|
|
2272
2292
|
exports.validateProgram = validateProgram;
|
|
2273
2293
|
exports.witnessRefToBytes = witnessRefToBytes;
|
|
2274
|
-
//# sourceMappingURL=chunk-
|
|
2275
|
-
//# sourceMappingURL=chunk-
|
|
2294
|
+
//# sourceMappingURL=chunk-37XKN5DZ.cjs.map
|
|
2295
|
+
//# sourceMappingURL=chunk-37XKN5DZ.cjs.map
|