@arkade-os/sdk 0.4.76 → 0.4.78
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 +3 -5
- package/dist/adapters/indexedDB.cjs.map +1 -1
- package/dist/adapters/indexedDB.d.cts +1 -1
- package/dist/adapters/indexedDB.d.ts +1 -1
- package/dist/adapters/indexedDB.js +3 -5
- package/dist/adapters/indexedDB.js.map +1 -1
- package/dist/{asyncStorageTaskQueue-D7BU-BdP.d.cts → asyncStorageTaskQueue-DiXxP-nQ.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-DrKbfleJ.d.ts → asyncStorageTaskQueue-YW2t31_o.d.ts} +2 -2
- package/dist/{chunk-F6YOCYWU.js → chunk-7KIGEOYT.js} +29 -12
- package/dist/chunk-7KIGEOYT.js.map +1 -0
- package/dist/{chunk-54W6QBXL.js → chunk-CTFYT24G.js} +3 -3
- package/dist/{chunk-54W6QBXL.js.map → chunk-CTFYT24G.js.map} +1 -1
- package/dist/{chunk-2KFXM3N5.cjs → chunk-DFWLP3MD.cjs} +17 -17
- package/dist/{chunk-2KFXM3N5.cjs.map → chunk-DFWLP3MD.cjs.map} +1 -1
- package/dist/{chunk-T327OEMV.cjs → chunk-IAM5IEVT.cjs} +17 -17
- package/dist/{chunk-T327OEMV.cjs.map → chunk-IAM5IEVT.cjs.map} +1 -1
- package/dist/{chunk-LQM6RHNT.cjs → chunk-KEEZSFLI.cjs} +10 -10
- package/dist/{chunk-LQM6RHNT.cjs.map → chunk-KEEZSFLI.cjs.map} +1 -1
- package/dist/{chunk-WMHELOHH.js → chunk-LKAASQTL.js} +604 -138
- package/dist/chunk-LKAASQTL.js.map +1 -0
- package/dist/{chunk-MUBPGYUE.js → chunk-OUHUC26M.js} +4 -4
- package/dist/{chunk-MUBPGYUE.js.map → chunk-OUHUC26M.js.map} +1 -1
- package/dist/{chunk-O2BIWLZC.js → chunk-P766MOPU.js} +4 -4
- package/dist/{chunk-O2BIWLZC.js.map → chunk-P766MOPU.js.map} +1 -1
- package/dist/{chunk-P53OHGXY.cjs → chunk-PWIESIO6.cjs} +30 -11
- package/dist/chunk-PWIESIO6.cjs.map +1 -0
- package/dist/{chunk-LHSVPDFJ.cjs → chunk-VJ7M6WKB.cjs} +1031 -566
- package/dist/chunk-VJ7M6WKB.cjs.map +1 -0
- package/dist/{chunk-CQNX4BTA.cjs → chunk-Y7BVR6SQ.cjs} +89 -57
- package/dist/chunk-Y7BVR6SQ.cjs.map +1 -0
- package/dist/{chunk-7UJLIZQU.js → chunk-ZOCJ7E6M.js} +43 -11
- package/dist/chunk-ZOCJ7E6M.js.map +1 -0
- package/dist/contracts/handlers/index.cjs +9 -9
- 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-CR7msIXK.d.cts → delegate-DaNNUI_B.d.cts} +1 -1
- package/dist/{delegate-BAYpqkEx.d.ts → delegate-b2Wiymoj.d.ts} +1 -1
- package/dist/{hdWalletCapable-BSF29IjK.d.ts → hdWalletCapable-B2XVTOvu.d.ts} +6 -4
- package/dist/{hdWalletCapable-BbZxCUeZ.d.cts → hdWalletCapable-D6PqWpuW.d.cts} +6 -4
- package/dist/{index-4NF3srcg.d.cts → index-BlB97fYl.d.cts} +26 -8
- package/dist/{index-B_RYn9rg.d.cts → index-CAS4GyN-.d.cts} +36 -9
- package/dist/{index-B_RYn9rg.d.ts → index-CAS4GyN-.d.ts} +36 -9
- package/dist/{index-Dj2yOhQ2.d.ts → index-CYsKAXog.d.ts} +26 -8
- package/dist/index.cjs +307 -303
- package/dist/index.d.cts +75 -13
- package/dist/index.d.ts +75 -13
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +36 -19
- package/dist/repositories/realm/index.cjs.map +1 -1
- package/dist/repositories/realm/index.d.cts +6 -3
- package/dist/repositories/realm/index.d.ts +6 -3
- package/dist/repositories/realm/index.js +22 -5
- package/dist/repositories/realm/index.js.map +1 -1
- package/dist/repositories/sqlite/index.cjs +42 -18
- package/dist/repositories/sqlite/index.cjs.map +1 -1
- package/dist/repositories/sqlite/index.d.cts +5 -2
- package/dist/repositories/sqlite/index.d.ts +5 -2
- package/dist/repositories/sqlite/index.js +29 -5
- package/dist/repositories/sqlite/index.js.map +1 -1
- package/dist/{taskRunner-TzGUhxP-.d.ts → taskRunner-BJj7xe35.d.ts} +2 -2
- package/dist/{taskRunner-DGxde-YU.d.cts → taskRunner-HS2d2oda.d.cts} +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.cjs.map +1 -1
- 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/expo/index.js.map +1 -1
- 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-7UJLIZQU.js.map +0 -1
- package/dist/chunk-CQNX4BTA.cjs.map +0 -1
- package/dist/chunk-F6YOCYWU.js.map +0 -1
- package/dist/chunk-LHSVPDFJ.cjs.map +0 -1
- package/dist/chunk-P53OHGXY.cjs.map +0 -1
- package/dist/chunk-WMHELOHH.js.map +0 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkY7BVR6SQ_cjs = require('../../chunk-Y7BVR6SQ.cjs');
|
|
4
|
+
require('../../chunk-PWIESIO6.cjs');
|
|
5
5
|
require('../../chunk-5BLDMQED.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "ArkadeContractHandler", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkY7BVR6SQ_cjs.ArkadeContractHandler; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "BoardingContractHandler", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkY7BVR6SQ_cjs.BoardingContractHandler; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "DefaultContractHandler", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkY7BVR6SQ_cjs.DefaultContractHandler; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "DelegateContractHandler", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkY7BVR6SQ_cjs.DelegateContractHandler; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "VHTLCContractHandler", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkY7BVR6SQ_cjs.VHTLCContractHandler; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "VHTLCV2ContractHandler", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkY7BVR6SQ_cjs.VHTLCV2ContractHandler; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "contractHandlers", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkY7BVR6SQ_cjs.contractHandlers; }
|
|
36
36
|
});
|
|
37
37
|
//# sourceMappingURL=index.cjs.map
|
|
38
38
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '../../index-
|
|
1
|
+
export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from '../../index-BlB97fYl.cjs';
|
|
2
|
+
import '../../index-CAS4GyN-.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/btc-signer/psbt.js';
|
|
7
|
-
import '../../delegate-
|
|
7
|
+
import '../../delegate-DaNNUI_B.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '../../index-
|
|
1
|
+
export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from '../../index-CYsKAXog.js';
|
|
2
|
+
import '../../index-CAS4GyN-.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/btc-signer/psbt.js';
|
|
7
|
-
import '../../delegate-
|
|
7
|
+
import '../../delegate-b2Wiymoj.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-ZOCJ7E6M.js';
|
|
2
|
+
import '../../chunk-7KIGEOYT.js';
|
|
3
3
|
import '../../chunk-NSBPE2FW.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
2
|
-
import {
|
|
2
|
+
import { t as RelativeTimelock, V as VtxoScript, u as TapLeafScript } from './index-CAS4GyN-.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DefaultVtxo is the default implementation of a VtxoScript.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
2
|
-
import {
|
|
2
|
+
import { t as RelativeTimelock, V as VtxoScript, u as TapLeafScript } from './index-CAS4GyN-.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DefaultVtxo is the default implementation of a VtxoScript.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as RelativeTimelock, P as Network, Q as CSVMultisigTapscript, U as BatchStartedEvent, X as TreeSigningStartedEvent, Y as TxTree, Z as TreeNoncesEvent, _ as BatchFinalizationEvent, $ as BatchFinalizedEvent, a0 as BatchFailedEvent, a1 as TreeTxEvent, a2 as TreeSignatureEvent, l as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, a3 as DescriptorProvider, g as IContractManager, a4 as IReadonlyWallet, a5 as ReadonlyIdentity, a6 as OnchainProvider, s as IndexerProvider, a7 as DelegateProvider, a8 as ReadonlyWalletConfig, D as IntentRepository, J as VirtualTxRepository, a9 as ExitCaptureMode, aa as ExitDataSource, e as ActivityRegistry, ab as IReadonlyAssetManager, ac as ContractSyncState, ad as RecipientAddressContext, r as ArkProvider, ae as NetworkName, af as ArkInfo, ag as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, d as GetSpendableVtxosFilter, ah as ContractWithVtxos, ai as selectPendingRecoveryOutpoints, A as ArkTransaction, f as Activity, E as ExtendedCoin, aj as Coin, x as ExtendedVirtualCoin, ak as ContractManager, al as ContractManagerConfig, I as IWallet, a as Identity, h as GetNewAddressesOptions, i as NewAddress, am as SettlementConfig, n as IAssetManager, an as VtxoManager, j as IDelegateManager, S as SendBitcoinParams, k as SettleParams, R as Recipient, ao as SignerSession, ap as SignedIntent, aq as Intent, m as SendParams, ar as TimeHeight } from './index-CAS4GyN-.js';
|
|
2
2
|
import { Transaction } from '@scure/btc-signer';
|
|
3
3
|
import { TransactionOutput } from '@scure/btc-signer/psbt.js';
|
|
4
4
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
5
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
5
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-b2Wiymoj.js';
|
|
6
6
|
|
|
7
7
|
/** Wall-clock floor for `batchExpiry` outside regtest. */
|
|
8
8
|
declare const DEFAULT_MIN_BATCH_EXPIRY_SECONDS = 86400n;
|
|
@@ -973,7 +973,7 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
973
973
|
*/
|
|
974
974
|
getVtxos(filter?: GetVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
975
975
|
/** @inheritdoc */
|
|
976
|
-
getSpendableVtxos(filter?:
|
|
976
|
+
getSpendableVtxos(filter?: GetSpendableVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
977
977
|
/**
|
|
978
978
|
* Debug-log any explicit input generic selection would have excluded, for
|
|
979
979
|
* each of the three reasons it excludes on. Explicit-input APIs stay ungated
|
|
@@ -1008,7 +1008,9 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
1008
1008
|
* otherwise the gate and the pending-recovery set answer about two different
|
|
1009
1009
|
* points in time, and each read costs another sync.
|
|
1010
1010
|
*/
|
|
1011
|
-
protected contractSnapshot(
|
|
1011
|
+
protected contractSnapshot(filter?: GetSpendableVtxosFilter, options?: {
|
|
1012
|
+
unspentOnly?: boolean;
|
|
1013
|
+
}): Promise<ContractWithVtxos[]>;
|
|
1012
1014
|
/**
|
|
1013
1015
|
* The two exclusion sets the gate is made of, derived from one snapshot so
|
|
1014
1016
|
* {@link getSpendableVtxos} and the balance answer about the same instant.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as RelativeTimelock, P as Network, Q as CSVMultisigTapscript, U as BatchStartedEvent, X as TreeSigningStartedEvent, Y as TxTree, Z as TreeNoncesEvent, _ as BatchFinalizationEvent, $ as BatchFinalizedEvent, a0 as BatchFailedEvent, a1 as TreeTxEvent, a2 as TreeSignatureEvent, l as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, a3 as DescriptorProvider, g as IContractManager, a4 as IReadonlyWallet, a5 as ReadonlyIdentity, a6 as OnchainProvider, s as IndexerProvider, a7 as DelegateProvider, a8 as ReadonlyWalletConfig, D as IntentRepository, J as VirtualTxRepository, a9 as ExitCaptureMode, aa as ExitDataSource, e as ActivityRegistry, ab as IReadonlyAssetManager, ac as ContractSyncState, ad as RecipientAddressContext, r as ArkProvider, ae as NetworkName, af as ArkInfo, ag as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, d as GetSpendableVtxosFilter, ah as ContractWithVtxos, ai as selectPendingRecoveryOutpoints, A as ArkTransaction, f as Activity, E as ExtendedCoin, aj as Coin, x as ExtendedVirtualCoin, ak as ContractManager, al as ContractManagerConfig, I as IWallet, a as Identity, h as GetNewAddressesOptions, i as NewAddress, am as SettlementConfig, n as IAssetManager, an as VtxoManager, j as IDelegateManager, S as SendBitcoinParams, k as SettleParams, R as Recipient, ao as SignerSession, ap as SignedIntent, aq as Intent, m as SendParams, ar as TimeHeight } from './index-CAS4GyN-.cjs';
|
|
2
2
|
import { Transaction } from '@scure/btc-signer';
|
|
3
3
|
import { TransactionOutput } from '@scure/btc-signer/psbt.js';
|
|
4
4
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
5
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
5
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-DaNNUI_B.cjs';
|
|
6
6
|
|
|
7
7
|
/** Wall-clock floor for `batchExpiry` outside regtest. */
|
|
8
8
|
declare const DEFAULT_MIN_BATCH_EXPIRY_SECONDS = 86400n;
|
|
@@ -973,7 +973,7 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
973
973
|
*/
|
|
974
974
|
getVtxos(filter?: GetVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
975
975
|
/** @inheritdoc */
|
|
976
|
-
getSpendableVtxos(filter?:
|
|
976
|
+
getSpendableVtxos(filter?: GetSpendableVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
977
977
|
/**
|
|
978
978
|
* Debug-log any explicit input generic selection would have excluded, for
|
|
979
979
|
* each of the three reasons it excludes on. Explicit-input APIs stay ungated
|
|
@@ -1008,7 +1008,9 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
1008
1008
|
* otherwise the gate and the pending-recovery set answer about two different
|
|
1009
1009
|
* points in time, and each read costs another sync.
|
|
1010
1010
|
*/
|
|
1011
|
-
protected contractSnapshot(
|
|
1011
|
+
protected contractSnapshot(filter?: GetSpendableVtxosFilter, options?: {
|
|
1012
|
+
unspentOnly?: boolean;
|
|
1013
|
+
}): Promise<ContractWithVtxos[]>;
|
|
1012
1014
|
/**
|
|
1013
1015
|
* The two exclusion sets the gate is made of, derived from one snapshot so
|
|
1014
1016
|
* {@link getSpendableVtxos} and the balance answer about the same instant.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { bi as ContractHandler, t as RelativeTimelock, bv as Discoverable, V as VtxoScript, u as TapLeafScript, da as TapscriptDeriving } from './index-CAS4GyN-.cjs';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-DaNNUI_B.cjs';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -654,14 +654,28 @@ interface InputDef {
|
|
|
654
654
|
* {@link ArkadeArgValue}).
|
|
655
655
|
*/
|
|
656
656
|
type InputRef = string | InputDef;
|
|
657
|
-
/**
|
|
658
|
-
|
|
657
|
+
/** Constructor pubkey `$param` tweaked by `fn`'s covenant. */
|
|
658
|
+
interface TweakedSigner {
|
|
659
|
+
tweak: string;
|
|
660
|
+
fn: string;
|
|
661
|
+
}
|
|
662
|
+
/** A `"$param"` reference, literal x-only bytes, or a {@link TweakedSigner}. */
|
|
663
|
+
type SignerRef = string | Uint8Array | TweakedSigner;
|
|
659
664
|
/** A witness-stack item: a function-input name, a `"$param"`, a literal number/bigint (minimal script-num), or raw bytes. */
|
|
660
665
|
type WitnessRef = string | number | bigint | Uint8Array;
|
|
661
666
|
/** Bitcoin Script segment of a spending path — enforced on-chain. */
|
|
662
667
|
interface TapscriptSegment {
|
|
663
|
-
/**
|
|
668
|
+
/**
|
|
669
|
+
* Required signers. A path with `arkadeScript` also appends the emulator
|
|
670
|
+
* co-signer, unless `emulator` is `null`.
|
|
671
|
+
*/
|
|
664
672
|
signers: SignerRef[];
|
|
673
|
+
/**
|
|
674
|
+
* Covenant named by `<EMULATOR_KEY:fn>`. `null` when this leaf belongs to a
|
|
675
|
+
* covenant but signs with a constructor-key tweak instead. Omitted on
|
|
676
|
+
* hand-written programs, which still append the co-signer.
|
|
677
|
+
*/
|
|
678
|
+
emulator?: string | null;
|
|
665
679
|
/**
|
|
666
680
|
* Optional standard-opcode condition (e.g. a hashlock), encoded into a
|
|
667
681
|
* ConditionMultisig leaf — or ConditionCSVMultisig when combined with `csv`.
|
|
@@ -798,15 +812,19 @@ declare class ArkadeProgramScript extends VtxoScript {
|
|
|
798
812
|
functionByName(name: string): CompiledProgramFunction | undefined;
|
|
799
813
|
}
|
|
800
814
|
/**
|
|
801
|
-
* Convert a
|
|
815
|
+
* Convert a Program JSON artifact into a {@link Program}. Byte values are
|
|
802
816
|
* encoded as `0x`-prefixed hex strings in `asm`/`witness`/`signers`; opcode names,
|
|
803
817
|
* `$param` placeholders and numbers pass through unchanged.
|
|
818
|
+
*
|
|
819
|
+
* This is *not* the JSON `arkadec` writes. That artifact lists spend groups in
|
|
820
|
+
* an array and uses `<param>` placeholders and raw leaf assembly; pass it to
|
|
821
|
+
* {@link programFromArtifact} instead.
|
|
804
822
|
*/
|
|
805
823
|
declare function parseArtifact(artifact: {
|
|
806
824
|
version?: number;
|
|
807
825
|
name?: string;
|
|
808
826
|
params?: readonly InputRef[];
|
|
809
|
-
functions:
|
|
827
|
+
functions: unknown;
|
|
810
828
|
}): Program;
|
|
811
829
|
/**
|
|
812
830
|
* Serialize a {@link Program} to compiler-artifact JSON — the inverse of
|
|
@@ -847,4 +865,4 @@ declare function deserializeArkadeContractParams(params: Record<string, string>)
|
|
|
847
865
|
*/
|
|
848
866
|
declare const ArkadeContractHandler: ContractHandler<ArkadeContractParams, ArkadeProgramScript> & TapscriptDeriving<ArkadeProgramScript>;
|
|
849
867
|
|
|
850
|
-
export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, type VHTLCV2ContractParams as
|
|
868
|
+
export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, VHTLCV2ContractHandler as E, type VHTLCV2ContractParams as F, contractHandlers as G, type InputRef as I, type Program as P, SUPPORTED_PROGRAM_VERSION as S, type TapscriptSegment as T, VHTLC as V, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeArgValue as c, type ArkadeFunction as d, type InputDef as e, type ArkadeValueType as f, type ArkadeArgType as g, type ArkadeContractParams as h, type ArkadeSegment as i, type AsmToken as j, type SignerRef as k, type TweakedSigner as l, deserializeArkadeContractParams as m, stringifyArtifact as n, ArkadeContractHandler as o, parseArtifact as p, type BoardingContractParams as q, resolveAsm as r, serializeArkadeContractParams as s, type DefaultContractParams as t, DelegateContractHandler as u, validateProgram as v, witnessRefToBytes as w, type DelegateContractParams as x, VHTLCContractHandler as y, type VHTLCContractParams as z };
|
|
@@ -1948,7 +1948,9 @@ type NormalizedExtendedVirtualCoin = ExtendedVirtualCoin & NormalizedVirtualCoin
|
|
|
1948
1948
|
* it was consumed. Mirrors NArk's `ArkVtxo.IsSpent()`. The location axis is {@link canSweepOnchain},
|
|
1949
1949
|
* which the two capability predicates below subtract instead.
|
|
1950
1950
|
*/
|
|
1951
|
-
declare function
|
|
1951
|
+
declare function isVtxoSpent(vtxo: VirtualCoin): boolean;
|
|
1952
|
+
/** @deprecated Use {@link isVtxoSpent}. */
|
|
1953
|
+
declare const hasTerminalSpend: typeof isVtxoSpent;
|
|
1952
1954
|
/**
|
|
1953
1955
|
* Whether a virtual output's batch expiry has passed. Pure expiry — swept is a separate fact, ORed
|
|
1954
1956
|
* in explicitly by {@link canSpendOffchain} / {@link canRecoverOnchain}.
|
|
@@ -3002,9 +3004,14 @@ interface WalletRepository extends AsyncDisposable {
|
|
|
3002
3004
|
deleteVtxos(address: string): Promise<void>;
|
|
3003
3005
|
/**
|
|
3004
3006
|
* Fetch stored virtual outputs for a script.
|
|
3007
|
+
* Unspent-only reads use {@link getVtxosForScripts} when present, so it can skip spent rows.
|
|
3005
3008
|
* @optional SDK backends implement this; custom backends fall back to Tier 1.
|
|
3006
3009
|
*/
|
|
3007
3010
|
getVtxosForScript?(script: string): Promise<ExtendedVirtualCoin[]>;
|
|
3011
|
+
/** Fetch a script set without one read per contract; `unspentOnly` omits spent rows. */
|
|
3012
|
+
getVtxosForScripts?(scripts: string[], options?: {
|
|
3013
|
+
unspentOnly?: boolean;
|
|
3014
|
+
}): Promise<ExtendedVirtualCoin[]>;
|
|
3008
3015
|
/**
|
|
3009
3016
|
* Save virtual outputs for a script.
|
|
3010
3017
|
* @optional SDK backends implement this; custom backends fall back to Tier 1.
|
|
@@ -3644,8 +3651,14 @@ interface IContractManager extends Disposable {
|
|
|
3644
3651
|
* List contracts and their current virtual outputs.
|
|
3645
3652
|
*
|
|
3646
3653
|
* If no filter is provided, returns all contracts with their virtual outputs.
|
|
3654
|
+
* `unspentOnly` omits spent VTXOs from the repository result; it
|
|
3655
|
+
* does not narrow the provider sync or change the full-history default.
|
|
3647
3656
|
*/
|
|
3648
|
-
getContractsWithVtxos(filter?: GetContractsFilter
|
|
3657
|
+
getContractsWithVtxos(filter?: GetContractsFilter, pageSize?: number, options?: {
|
|
3658
|
+
maxSyncAgeMs?: number;
|
|
3659
|
+
unspentOnly?: boolean;
|
|
3660
|
+
requireSynced?: boolean;
|
|
3661
|
+
}): Promise<ContractWithVtxos[]>;
|
|
3649
3662
|
/**
|
|
3650
3663
|
* Latest provider-sync health (online vs. degraded to repository data).
|
|
3651
3664
|
* See {@link ContractSyncState}.
|
|
@@ -4317,7 +4330,11 @@ declare class ContractManager implements IContractManager {
|
|
|
4317
4330
|
* ```
|
|
4318
4331
|
*/
|
|
4319
4332
|
getContracts(filter?: GetContractsFilter): Promise<Contract[]>;
|
|
4320
|
-
getContractsWithVtxos(filter?: GetContractsFilter, pageSize?: number
|
|
4333
|
+
getContractsWithVtxos(filter?: GetContractsFilter, pageSize?: number, options?: {
|
|
4334
|
+
maxSyncAgeMs?: number;
|
|
4335
|
+
unspentOnly?: boolean;
|
|
4336
|
+
requireSynced?: boolean;
|
|
4337
|
+
}): Promise<ContractWithVtxos[]>;
|
|
4321
4338
|
annotateVtxos(vtxos: VirtualCoin[], tapscripts?: ContractTapscriptCache): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
4322
4339
|
/** @inheritdoc */
|
|
4323
4340
|
assertAnnotatable(vtxos: readonly {
|
|
@@ -5971,7 +5988,7 @@ interface Status {
|
|
|
5971
5988
|
* @deprecated Use the canonical facts on {@link VirtualCoin} — `isSwept`, `isPreconfirmed`,
|
|
5972
5989
|
* `isSpent`, `expiresAt`, `expiresAtHeight`, `commitmentTxIds`, `spentBy`, `settledBy` — and the
|
|
5973
5990
|
* capability predicates {@link canSpendOffchain}, {@link canRecoverOnchain},
|
|
5974
|
-
* {@link
|
|
5991
|
+
* {@link isVtxoSpent}, {@link isPastExpiry}. `state` collapses independent facts into one
|
|
5975
5992
|
* lossy label; this object is retained only as a backward-compatible projection.
|
|
5976
5993
|
*/
|
|
5977
5994
|
interface VirtualStatus {
|
|
@@ -6031,7 +6048,7 @@ interface Coin extends Outpoint {
|
|
|
6031
6048
|
* {@link IndexerProvider} and {@link WalletRepository} implementations may hand back coins without
|
|
6032
6049
|
* them. The SDK normalizes every incoming coin, so coins it returns always carry the facts that are
|
|
6033
6050
|
* determinable; do not read these fields off a coin the SDK has not returned to you — use
|
|
6034
|
-
* {@link canSpendOffchain} / {@link canRecoverOnchain} / {@link
|
|
6051
|
+
* {@link canSpendOffchain} / {@link canRecoverOnchain} / {@link isVtxoSpent} /
|
|
6035
6052
|
* {@link isPastExpiry}, which normalize defensively.
|
|
6036
6053
|
*
|
|
6037
6054
|
* @see Coin
|
|
@@ -6211,6 +6228,16 @@ type GetVtxosFilter = {
|
|
|
6211
6228
|
*/
|
|
6212
6229
|
withUnrolled?: boolean;
|
|
6213
6230
|
};
|
|
6231
|
+
type GetSpendableVtxosFilter = GetVtxosFilter & {
|
|
6232
|
+
/** Exclude contracts retained for history from this spendable read. */
|
|
6233
|
+
watchedOnly?: boolean;
|
|
6234
|
+
/** Query only contracts whose handler permits generic spending. */
|
|
6235
|
+
genericallySpendableOnly?: boolean;
|
|
6236
|
+
/** Maximum age of a successful sync reused by this read, in milliseconds. Default: 0. */
|
|
6237
|
+
maxSyncAgeMs?: number;
|
|
6238
|
+
/** Reject repository fallback when the selected contracts could not be synced. */
|
|
6239
|
+
requireSynced?: boolean;
|
|
6240
|
+
};
|
|
6214
6241
|
/**
|
|
6215
6242
|
* Readonly asset manager interface for asset operations that do not require wallet identity.
|
|
6216
6243
|
*
|
|
@@ -6362,10 +6389,10 @@ interface IReadonlyWallet {
|
|
|
6362
6389
|
* Both exclusion sets are derived from one contract snapshot, so they cannot
|
|
6363
6390
|
* disagree about which VTXOs exist.
|
|
6364
6391
|
*
|
|
6365
|
-
* @param filter - Same flags
|
|
6366
|
-
* @see
|
|
6392
|
+
* @param filter - Same coin flags and defaults as {@link getVtxos}, with opt-in contract scopes
|
|
6393
|
+
* @see GetSpendableVtxosFilter
|
|
6367
6394
|
*/
|
|
6368
|
-
getSpendableVtxos(filter?:
|
|
6395
|
+
getSpendableVtxos(filter?: GetSpendableVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
6369
6396
|
/** @returns Onchain boarding inputs tracked by the wallet. */
|
|
6370
6397
|
getBoardingUtxos(): Promise<ExtendedCoin[]>;
|
|
6371
6398
|
/** @returns Wallet transaction history derived from boarding and Arkade activity. */
|
|
@@ -6390,4 +6417,4 @@ interface IReadonlyWallet {
|
|
|
6390
6417
|
clear(): Promise<void>;
|
|
6391
6418
|
}
|
|
6392
6419
|
|
|
6393
|
-
export { type
|
|
6420
|
+
export { type BatchFinalizedEvent as $, type ArkTransaction as A, type ContractFilter as B, type ContractRepository as C, type IntentRepository as D, type ExtendedCoin as E, type ArkIntent as F, type GetVtxosFilter as G, type IntentFilter as H, type IWallet as I, type VirtualTxRepository as J, type VirtualTx as K, type VtxoBranch as L, ChainedTxType as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, type Network as P, CSVMultisigTapscript as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotificationEvent as T, type BatchStartedEvent as U, VtxoScript as V, type WalletRepository as W, type TreeSigningStartedEvent as X, TxTree as Y, type TreeNoncesEvent as Z, type BatchFinalizationEvent as _, type Identity as a, type ChainTx as a$, type BatchFailedEvent as a0, type TreeTxEvent as a1, type TreeSignatureEvent as a2, type DescriptorProvider as a3, type IReadonlyWallet as a4, type ReadonlyIdentity as a5, type OnchainProvider as a6, type DelegateProvider as a7, type ReadonlyWalletConfig as a8, type ExitCaptureMode as a9, type Asset as aA, type FeeInfo as aB, type CreateContractParams as aC, type GetContractsFilter as aD, type GetSpendablePathsOptions as aE, type GetAllSpendingPathsOptions as aF, type IssuanceParams as aG, type ReissuanceParams as aH, type BurnParams as aI, type RenewVtxosOptions as aJ, type WatchedScript as aK, type PathSelection as aL, type ContractEvent as aM, type AssetDetails as aN, type IssuanceResult as aO, type DelegateInfo as aP, type MigrationGlobalSkipReason as aQ, type MigrationLegSkipReason as aR, type SignerStatus as aS, type StorageConfig as aT, type IVtxoManager as aU, type ExplorerTransaction as aV, type TreeNonces as aW, type TreePartialSigs as aX, type PendingTx as aY, type EncodedVtxoScript as aZ, type Status as a_, type ExitDataSource as aa, type IReadonlyAssetManager as ab, type ContractSyncState as ac, type RecipientAddressContext as ad, type NetworkName as ae, type ArkInfo as af, ArkAddress as ag, type ContractWithVtxos as ah, selectPendingRecoveryOutpoints as ai, type Coin as aj, ContractManager as ak, type ContractManagerConfig as al, type SettlementConfig as am, VtxoManager as an, type SignerSession as ao, type SignedIntent as ap, Intent as aq, type TimeHeight as ar, type DescriptorSigningRequest as as, Transaction as at, type IntentFeeConfig as au, type OffchainInput as av, FeeAmount as aw, type OnchainInput as ax, type FeeOutput as ay, type ContractWatcherConfig as az, type WalletConfig as b, REGTEST_EMULATOR_PUBKEY as b$, type PathContext as b0, type ActivityIntent as b1, type ActivityResolver as b2, type ArkIntentState as b3, type ArkTapscript as b4, type AssetMetadata as b5, BITCOIN_EMULATOR_PUBKEY as b6, type BaseWalletConfig as b7, type BatchInfo as b8, type BatchSignableIdentity as b9, type EventSourceCapable as bA, type EventSourceFactory as bB, type EventSourceLike as bC, EventSourceUnavailableError as bD, type ExitChainResolver as bE, type ExtendedContractVtxo as bF, type GroupMembership as bG, type HandlerError as bH, type IDelegatorManager as bI, INTENT_TERMINAL_STATES as bJ, IndexerTxType as bK, type IntentCoin as bL, type KnownMetadata as bM, MUTINYNET_EMULATOR_PUBKEY as bN, type MigrateDeprecatedSignerOptions as bO, type MigrationLegReport as bP, type MigrationVtxoRef as bQ, MultisigTapscript as bR, type NewAddressType as bS, type Nonces as bT, type Output as bU, type PageResponse as bV, type PaginationOptions as bW, PartialSig as bX, type PrevTxSource as bY, PrevTxUnavailableError as bZ, type ProviderClass as b_, CLTVMultisigTapscript as ba, type CandidateDeps as bb, ChainTxType as bc, type CommitmentTx as bd, ConditionCSVMultisigTapscript as be, ConditionMultisigTapscript as bf, type ContractBalance as bg, type ContractEventCallback as bh, type ContractHandler as bi, type ContractState as bj, type ContractVtxo as bk, type ContractVtxoEvent as bl, ContractWatcher as bm, DEFAULT_VTXO_PAGE_SIZE as bn, DelegateManagerImpl as bo, type DelegateOptions as bp, DelegatorManagerImpl as bq, type DelegatorProvider as br, type DeprecatedSignerMigrationReport as bs, type DeprecatedSignerReport as bt, DigestMismatchError as bu, type Discoverable as bv, type DiscoveredContract as bw, type DiscoveryDeps as bx, ESPLORA_URL as by, EsploraProvider as bz, type WalletBalance as c, isVirtualCoin as c$, type RawTxSource as c0, RestDelegateProvider as c1, RestDelegatorProvider as c2, type ScanContractsOptions as c3, type ScanResult as c4, type ScheduledSession as c5, SettlementEventType as c6, type SignRequest as c7, type SignerClassification as c8, type SignerSet as c9, canSweepOnchain as cA, classifyAgainstSignerSet as cB, classifyContractSigner as cC, collabExitResolver as cD, configureEventSource as cE, createDefaultActivityRegistry as cF, createExitChainResolver as cG, decodeTapscript as cH, defaultEmulatorPubkey as cI, getConfiguredEventSource as cJ, getNetwork as cK, getRandomId as cL, getSequence as cM, hasCandidates as cN, hasTerminalSpend as cO, isBatchSignable as cP, isContractVtxoEvent as cQ, isCooperativelyMigratable as cR, isDiscoverable as cS, isEventSourceUnavailableError as cT, isExpired as cU, isPastExpiry as cV, isRecoverable as cW, isSigningIdentity as cX, isSpendable as cY, isSubdust as cZ, isTerminalIntentState as c_, type SubscriptionEvent as ca, type SubscriptionHeartbeat as cb, type SweepTxNotification as cc, type TapLeaves as cd, TapTreeCoder as ce, TapscriptType as cf, type Tx as cg, type TxHistoryRecord as ch, type TxKey as ci, type TxNotification as cj, type TxTag as ck, type TxTreeNode as cl, TxType as cm, type VirtualStatus as cn, type Vtxo as co, type VtxoChain as cp, type VtxoType as cq, type WalletMode as cr, type WithPrevTx as cs, assertAllowedSighashTypes as ct, assetMintResolver as cu, attachPrevArkTxs as cv, attachPrevoutTxs as cw, boardingResolver as cx, canRecoverOnchain as cy, canSpendOffchain as cz, type GetSpendableVtxosFilter as d, isVtxoExpiringSoon as d0, isVtxoSpent as d1, networks as d2, resolveEmulatorPubkey as d3, resolveEventSource as d4, resolvePrevTxs as d5, scriptFromTapLeafScript as d6, signerSetFromInfo as d7, toXOnlySignerHex as d8, withPrevTxs as d9, type TapscriptDeriving as da, ActivityRegistry as e, type Activity as f, type IContractManager as g, type GetNewAddressesOptions as h, type NewAddress as i, type IDelegateManager as j, type SettleParams as k, type SettlementEvent as l, type SendParams as m, type IAssetManager as n, RestArkProvider as o, RestIndexerProvider as p, type SubscriptionResponse as q, type ArkProvider as r, type IndexerProvider as s, type RelativeTimelock as t, type TapLeafScript as u, type VirtualCoin as v, type Contract as w, type ExtendedVirtualCoin as x, type VtxoRepositoryKey as y, type WalletState as z };
|
|
@@ -1948,7 +1948,9 @@ type NormalizedExtendedVirtualCoin = ExtendedVirtualCoin & NormalizedVirtualCoin
|
|
|
1948
1948
|
* it was consumed. Mirrors NArk's `ArkVtxo.IsSpent()`. The location axis is {@link canSweepOnchain},
|
|
1949
1949
|
* which the two capability predicates below subtract instead.
|
|
1950
1950
|
*/
|
|
1951
|
-
declare function
|
|
1951
|
+
declare function isVtxoSpent(vtxo: VirtualCoin): boolean;
|
|
1952
|
+
/** @deprecated Use {@link isVtxoSpent}. */
|
|
1953
|
+
declare const hasTerminalSpend: typeof isVtxoSpent;
|
|
1952
1954
|
/**
|
|
1953
1955
|
* Whether a virtual output's batch expiry has passed. Pure expiry — swept is a separate fact, ORed
|
|
1954
1956
|
* in explicitly by {@link canSpendOffchain} / {@link canRecoverOnchain}.
|
|
@@ -3002,9 +3004,14 @@ interface WalletRepository extends AsyncDisposable {
|
|
|
3002
3004
|
deleteVtxos(address: string): Promise<void>;
|
|
3003
3005
|
/**
|
|
3004
3006
|
* Fetch stored virtual outputs for a script.
|
|
3007
|
+
* Unspent-only reads use {@link getVtxosForScripts} when present, so it can skip spent rows.
|
|
3005
3008
|
* @optional SDK backends implement this; custom backends fall back to Tier 1.
|
|
3006
3009
|
*/
|
|
3007
3010
|
getVtxosForScript?(script: string): Promise<ExtendedVirtualCoin[]>;
|
|
3011
|
+
/** Fetch a script set without one read per contract; `unspentOnly` omits spent rows. */
|
|
3012
|
+
getVtxosForScripts?(scripts: string[], options?: {
|
|
3013
|
+
unspentOnly?: boolean;
|
|
3014
|
+
}): Promise<ExtendedVirtualCoin[]>;
|
|
3008
3015
|
/**
|
|
3009
3016
|
* Save virtual outputs for a script.
|
|
3010
3017
|
* @optional SDK backends implement this; custom backends fall back to Tier 1.
|
|
@@ -3644,8 +3651,14 @@ interface IContractManager extends Disposable {
|
|
|
3644
3651
|
* List contracts and their current virtual outputs.
|
|
3645
3652
|
*
|
|
3646
3653
|
* If no filter is provided, returns all contracts with their virtual outputs.
|
|
3654
|
+
* `unspentOnly` omits spent VTXOs from the repository result; it
|
|
3655
|
+
* does not narrow the provider sync or change the full-history default.
|
|
3647
3656
|
*/
|
|
3648
|
-
getContractsWithVtxos(filter?: GetContractsFilter
|
|
3657
|
+
getContractsWithVtxos(filter?: GetContractsFilter, pageSize?: number, options?: {
|
|
3658
|
+
maxSyncAgeMs?: number;
|
|
3659
|
+
unspentOnly?: boolean;
|
|
3660
|
+
requireSynced?: boolean;
|
|
3661
|
+
}): Promise<ContractWithVtxos[]>;
|
|
3649
3662
|
/**
|
|
3650
3663
|
* Latest provider-sync health (online vs. degraded to repository data).
|
|
3651
3664
|
* See {@link ContractSyncState}.
|
|
@@ -4317,7 +4330,11 @@ declare class ContractManager implements IContractManager {
|
|
|
4317
4330
|
* ```
|
|
4318
4331
|
*/
|
|
4319
4332
|
getContracts(filter?: GetContractsFilter): Promise<Contract[]>;
|
|
4320
|
-
getContractsWithVtxos(filter?: GetContractsFilter, pageSize?: number
|
|
4333
|
+
getContractsWithVtxos(filter?: GetContractsFilter, pageSize?: number, options?: {
|
|
4334
|
+
maxSyncAgeMs?: number;
|
|
4335
|
+
unspentOnly?: boolean;
|
|
4336
|
+
requireSynced?: boolean;
|
|
4337
|
+
}): Promise<ContractWithVtxos[]>;
|
|
4321
4338
|
annotateVtxos(vtxos: VirtualCoin[], tapscripts?: ContractTapscriptCache): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
4322
4339
|
/** @inheritdoc */
|
|
4323
4340
|
assertAnnotatable(vtxos: readonly {
|
|
@@ -5971,7 +5988,7 @@ interface Status {
|
|
|
5971
5988
|
* @deprecated Use the canonical facts on {@link VirtualCoin} — `isSwept`, `isPreconfirmed`,
|
|
5972
5989
|
* `isSpent`, `expiresAt`, `expiresAtHeight`, `commitmentTxIds`, `spentBy`, `settledBy` — and the
|
|
5973
5990
|
* capability predicates {@link canSpendOffchain}, {@link canRecoverOnchain},
|
|
5974
|
-
* {@link
|
|
5991
|
+
* {@link isVtxoSpent}, {@link isPastExpiry}. `state` collapses independent facts into one
|
|
5975
5992
|
* lossy label; this object is retained only as a backward-compatible projection.
|
|
5976
5993
|
*/
|
|
5977
5994
|
interface VirtualStatus {
|
|
@@ -6031,7 +6048,7 @@ interface Coin extends Outpoint {
|
|
|
6031
6048
|
* {@link IndexerProvider} and {@link WalletRepository} implementations may hand back coins without
|
|
6032
6049
|
* them. The SDK normalizes every incoming coin, so coins it returns always carry the facts that are
|
|
6033
6050
|
* determinable; do not read these fields off a coin the SDK has not returned to you — use
|
|
6034
|
-
* {@link canSpendOffchain} / {@link canRecoverOnchain} / {@link
|
|
6051
|
+
* {@link canSpendOffchain} / {@link canRecoverOnchain} / {@link isVtxoSpent} /
|
|
6035
6052
|
* {@link isPastExpiry}, which normalize defensively.
|
|
6036
6053
|
*
|
|
6037
6054
|
* @see Coin
|
|
@@ -6211,6 +6228,16 @@ type GetVtxosFilter = {
|
|
|
6211
6228
|
*/
|
|
6212
6229
|
withUnrolled?: boolean;
|
|
6213
6230
|
};
|
|
6231
|
+
type GetSpendableVtxosFilter = GetVtxosFilter & {
|
|
6232
|
+
/** Exclude contracts retained for history from this spendable read. */
|
|
6233
|
+
watchedOnly?: boolean;
|
|
6234
|
+
/** Query only contracts whose handler permits generic spending. */
|
|
6235
|
+
genericallySpendableOnly?: boolean;
|
|
6236
|
+
/** Maximum age of a successful sync reused by this read, in milliseconds. Default: 0. */
|
|
6237
|
+
maxSyncAgeMs?: number;
|
|
6238
|
+
/** Reject repository fallback when the selected contracts could not be synced. */
|
|
6239
|
+
requireSynced?: boolean;
|
|
6240
|
+
};
|
|
6214
6241
|
/**
|
|
6215
6242
|
* Readonly asset manager interface for asset operations that do not require wallet identity.
|
|
6216
6243
|
*
|
|
@@ -6362,10 +6389,10 @@ interface IReadonlyWallet {
|
|
|
6362
6389
|
* Both exclusion sets are derived from one contract snapshot, so they cannot
|
|
6363
6390
|
* disagree about which VTXOs exist.
|
|
6364
6391
|
*
|
|
6365
|
-
* @param filter - Same flags
|
|
6366
|
-
* @see
|
|
6392
|
+
* @param filter - Same coin flags and defaults as {@link getVtxos}, with opt-in contract scopes
|
|
6393
|
+
* @see GetSpendableVtxosFilter
|
|
6367
6394
|
*/
|
|
6368
|
-
getSpendableVtxos(filter?:
|
|
6395
|
+
getSpendableVtxos(filter?: GetSpendableVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
6369
6396
|
/** @returns Onchain boarding inputs tracked by the wallet. */
|
|
6370
6397
|
getBoardingUtxos(): Promise<ExtendedCoin[]>;
|
|
6371
6398
|
/** @returns Wallet transaction history derived from boarding and Arkade activity. */
|
|
@@ -6390,4 +6417,4 @@ interface IReadonlyWallet {
|
|
|
6390
6417
|
clear(): Promise<void>;
|
|
6391
6418
|
}
|
|
6392
6419
|
|
|
6393
|
-
export { type
|
|
6420
|
+
export { type BatchFinalizedEvent as $, type ArkTransaction as A, type ContractFilter as B, type ContractRepository as C, type IntentRepository as D, type ExtendedCoin as E, type ArkIntent as F, type GetVtxosFilter as G, type IntentFilter as H, type IWallet as I, type VirtualTxRepository as J, type VirtualTx as K, type VtxoBranch as L, ChainedTxType as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, type Network as P, CSVMultisigTapscript as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotificationEvent as T, type BatchStartedEvent as U, VtxoScript as V, type WalletRepository as W, type TreeSigningStartedEvent as X, TxTree as Y, type TreeNoncesEvent as Z, type BatchFinalizationEvent as _, type Identity as a, type ChainTx as a$, type BatchFailedEvent as a0, type TreeTxEvent as a1, type TreeSignatureEvent as a2, type DescriptorProvider as a3, type IReadonlyWallet as a4, type ReadonlyIdentity as a5, type OnchainProvider as a6, type DelegateProvider as a7, type ReadonlyWalletConfig as a8, type ExitCaptureMode as a9, type Asset as aA, type FeeInfo as aB, type CreateContractParams as aC, type GetContractsFilter as aD, type GetSpendablePathsOptions as aE, type GetAllSpendingPathsOptions as aF, type IssuanceParams as aG, type ReissuanceParams as aH, type BurnParams as aI, type RenewVtxosOptions as aJ, type WatchedScript as aK, type PathSelection as aL, type ContractEvent as aM, type AssetDetails as aN, type IssuanceResult as aO, type DelegateInfo as aP, type MigrationGlobalSkipReason as aQ, type MigrationLegSkipReason as aR, type SignerStatus as aS, type StorageConfig as aT, type IVtxoManager as aU, type ExplorerTransaction as aV, type TreeNonces as aW, type TreePartialSigs as aX, type PendingTx as aY, type EncodedVtxoScript as aZ, type Status as a_, type ExitDataSource as aa, type IReadonlyAssetManager as ab, type ContractSyncState as ac, type RecipientAddressContext as ad, type NetworkName as ae, type ArkInfo as af, ArkAddress as ag, type ContractWithVtxos as ah, selectPendingRecoveryOutpoints as ai, type Coin as aj, ContractManager as ak, type ContractManagerConfig as al, type SettlementConfig as am, VtxoManager as an, type SignerSession as ao, type SignedIntent as ap, Intent as aq, type TimeHeight as ar, type DescriptorSigningRequest as as, Transaction as at, type IntentFeeConfig as au, type OffchainInput as av, FeeAmount as aw, type OnchainInput as ax, type FeeOutput as ay, type ContractWatcherConfig as az, type WalletConfig as b, REGTEST_EMULATOR_PUBKEY as b$, type PathContext as b0, type ActivityIntent as b1, type ActivityResolver as b2, type ArkIntentState as b3, type ArkTapscript as b4, type AssetMetadata as b5, BITCOIN_EMULATOR_PUBKEY as b6, type BaseWalletConfig as b7, type BatchInfo as b8, type BatchSignableIdentity as b9, type EventSourceCapable as bA, type EventSourceFactory as bB, type EventSourceLike as bC, EventSourceUnavailableError as bD, type ExitChainResolver as bE, type ExtendedContractVtxo as bF, type GroupMembership as bG, type HandlerError as bH, type IDelegatorManager as bI, INTENT_TERMINAL_STATES as bJ, IndexerTxType as bK, type IntentCoin as bL, type KnownMetadata as bM, MUTINYNET_EMULATOR_PUBKEY as bN, type MigrateDeprecatedSignerOptions as bO, type MigrationLegReport as bP, type MigrationVtxoRef as bQ, MultisigTapscript as bR, type NewAddressType as bS, type Nonces as bT, type Output as bU, type PageResponse as bV, type PaginationOptions as bW, PartialSig as bX, type PrevTxSource as bY, PrevTxUnavailableError as bZ, type ProviderClass as b_, CLTVMultisigTapscript as ba, type CandidateDeps as bb, ChainTxType as bc, type CommitmentTx as bd, ConditionCSVMultisigTapscript as be, ConditionMultisigTapscript as bf, type ContractBalance as bg, type ContractEventCallback as bh, type ContractHandler as bi, type ContractState as bj, type ContractVtxo as bk, type ContractVtxoEvent as bl, ContractWatcher as bm, DEFAULT_VTXO_PAGE_SIZE as bn, DelegateManagerImpl as bo, type DelegateOptions as bp, DelegatorManagerImpl as bq, type DelegatorProvider as br, type DeprecatedSignerMigrationReport as bs, type DeprecatedSignerReport as bt, DigestMismatchError as bu, type Discoverable as bv, type DiscoveredContract as bw, type DiscoveryDeps as bx, ESPLORA_URL as by, EsploraProvider as bz, type WalletBalance as c, isVirtualCoin as c$, type RawTxSource as c0, RestDelegateProvider as c1, RestDelegatorProvider as c2, type ScanContractsOptions as c3, type ScanResult as c4, type ScheduledSession as c5, SettlementEventType as c6, type SignRequest as c7, type SignerClassification as c8, type SignerSet as c9, canSweepOnchain as cA, classifyAgainstSignerSet as cB, classifyContractSigner as cC, collabExitResolver as cD, configureEventSource as cE, createDefaultActivityRegistry as cF, createExitChainResolver as cG, decodeTapscript as cH, defaultEmulatorPubkey as cI, getConfiguredEventSource as cJ, getNetwork as cK, getRandomId as cL, getSequence as cM, hasCandidates as cN, hasTerminalSpend as cO, isBatchSignable as cP, isContractVtxoEvent as cQ, isCooperativelyMigratable as cR, isDiscoverable as cS, isEventSourceUnavailableError as cT, isExpired as cU, isPastExpiry as cV, isRecoverable as cW, isSigningIdentity as cX, isSpendable as cY, isSubdust as cZ, isTerminalIntentState as c_, type SubscriptionEvent as ca, type SubscriptionHeartbeat as cb, type SweepTxNotification as cc, type TapLeaves as cd, TapTreeCoder as ce, TapscriptType as cf, type Tx as cg, type TxHistoryRecord as ch, type TxKey as ci, type TxNotification as cj, type TxTag as ck, type TxTreeNode as cl, TxType as cm, type VirtualStatus as cn, type Vtxo as co, type VtxoChain as cp, type VtxoType as cq, type WalletMode as cr, type WithPrevTx as cs, assertAllowedSighashTypes as ct, assetMintResolver as cu, attachPrevArkTxs as cv, attachPrevoutTxs as cw, boardingResolver as cx, canRecoverOnchain as cy, canSpendOffchain as cz, type GetSpendableVtxosFilter as d, isVtxoExpiringSoon as d0, isVtxoSpent as d1, networks as d2, resolveEmulatorPubkey as d3, resolveEventSource as d4, resolvePrevTxs as d5, scriptFromTapLeafScript as d6, signerSetFromInfo as d7, toXOnlySignerHex as d8, withPrevTxs as d9, type TapscriptDeriving as da, ActivityRegistry as e, type Activity as f, type IContractManager as g, type GetNewAddressesOptions as h, type NewAddress as i, type IDelegateManager as j, type SettleParams as k, type SettlementEvent as l, type SendParams as m, type IAssetManager as n, RestArkProvider as o, RestIndexerProvider as p, type SubscriptionResponse as q, type ArkProvider as r, type IndexerProvider as s, type RelativeTimelock as t, type TapLeafScript as u, type VirtualCoin as v, type Contract as w, type ExtendedVirtualCoin as x, type VtxoRepositoryKey as y, type WalletState as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { bi as ContractHandler, t as RelativeTimelock, bv as Discoverable, V as VtxoScript, u as TapLeafScript, da as TapscriptDeriving } from './index-CAS4GyN-.js';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-b2Wiymoj.js';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -654,14 +654,28 @@ interface InputDef {
|
|
|
654
654
|
* {@link ArkadeArgValue}).
|
|
655
655
|
*/
|
|
656
656
|
type InputRef = string | InputDef;
|
|
657
|
-
/**
|
|
658
|
-
|
|
657
|
+
/** Constructor pubkey `$param` tweaked by `fn`'s covenant. */
|
|
658
|
+
interface TweakedSigner {
|
|
659
|
+
tweak: string;
|
|
660
|
+
fn: string;
|
|
661
|
+
}
|
|
662
|
+
/** A `"$param"` reference, literal x-only bytes, or a {@link TweakedSigner}. */
|
|
663
|
+
type SignerRef = string | Uint8Array | TweakedSigner;
|
|
659
664
|
/** A witness-stack item: a function-input name, a `"$param"`, a literal number/bigint (minimal script-num), or raw bytes. */
|
|
660
665
|
type WitnessRef = string | number | bigint | Uint8Array;
|
|
661
666
|
/** Bitcoin Script segment of a spending path — enforced on-chain. */
|
|
662
667
|
interface TapscriptSegment {
|
|
663
|
-
/**
|
|
668
|
+
/**
|
|
669
|
+
* Required signers. A path with `arkadeScript` also appends the emulator
|
|
670
|
+
* co-signer, unless `emulator` is `null`.
|
|
671
|
+
*/
|
|
664
672
|
signers: SignerRef[];
|
|
673
|
+
/**
|
|
674
|
+
* Covenant named by `<EMULATOR_KEY:fn>`. `null` when this leaf belongs to a
|
|
675
|
+
* covenant but signs with a constructor-key tweak instead. Omitted on
|
|
676
|
+
* hand-written programs, which still append the co-signer.
|
|
677
|
+
*/
|
|
678
|
+
emulator?: string | null;
|
|
665
679
|
/**
|
|
666
680
|
* Optional standard-opcode condition (e.g. a hashlock), encoded into a
|
|
667
681
|
* ConditionMultisig leaf — or ConditionCSVMultisig when combined with `csv`.
|
|
@@ -798,15 +812,19 @@ declare class ArkadeProgramScript extends VtxoScript {
|
|
|
798
812
|
functionByName(name: string): CompiledProgramFunction | undefined;
|
|
799
813
|
}
|
|
800
814
|
/**
|
|
801
|
-
* Convert a
|
|
815
|
+
* Convert a Program JSON artifact into a {@link Program}. Byte values are
|
|
802
816
|
* encoded as `0x`-prefixed hex strings in `asm`/`witness`/`signers`; opcode names,
|
|
803
817
|
* `$param` placeholders and numbers pass through unchanged.
|
|
818
|
+
*
|
|
819
|
+
* This is *not* the JSON `arkadec` writes. That artifact lists spend groups in
|
|
820
|
+
* an array and uses `<param>` placeholders and raw leaf assembly; pass it to
|
|
821
|
+
* {@link programFromArtifact} instead.
|
|
804
822
|
*/
|
|
805
823
|
declare function parseArtifact(artifact: {
|
|
806
824
|
version?: number;
|
|
807
825
|
name?: string;
|
|
808
826
|
params?: readonly InputRef[];
|
|
809
|
-
functions:
|
|
827
|
+
functions: unknown;
|
|
810
828
|
}): Program;
|
|
811
829
|
/**
|
|
812
830
|
* Serialize a {@link Program} to compiler-artifact JSON — the inverse of
|
|
@@ -847,4 +865,4 @@ declare function deserializeArkadeContractParams(params: Record<string, string>)
|
|
|
847
865
|
*/
|
|
848
866
|
declare const ArkadeContractHandler: ContractHandler<ArkadeContractParams, ArkadeProgramScript> & TapscriptDeriving<ArkadeProgramScript>;
|
|
849
867
|
|
|
850
|
-
export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, type VHTLCV2ContractParams as
|
|
868
|
+
export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, VHTLCV2ContractHandler as E, type VHTLCV2ContractParams as F, contractHandlers as G, type InputRef as I, type Program as P, SUPPORTED_PROGRAM_VERSION as S, type TapscriptSegment as T, VHTLC as V, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeArgValue as c, type ArkadeFunction as d, type InputDef as e, type ArkadeValueType as f, type ArkadeArgType as g, type ArkadeContractParams as h, type ArkadeSegment as i, type AsmToken as j, type SignerRef as k, type TweakedSigner as l, deserializeArkadeContractParams as m, stringifyArtifact as n, ArkadeContractHandler as o, parseArtifact as p, type BoardingContractParams as q, resolveAsm as r, serializeArkadeContractParams as s, type DefaultContractParams as t, DelegateContractHandler as u, validateProgram as v, witnessRefToBytes as w, type DelegateContractParams as x, VHTLCContractHandler as y, type VHTLCContractParams as z };
|