@arkade-os/sdk 0.4.70 → 0.4.71
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/{asyncStorageTaskQueue-BgUJN-3X.d.ts → asyncStorageTaskQueue-CjKAUiuj.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-Cstx6hS7.d.cts → asyncStorageTaskQueue-DgXf4iuU.d.cts} +2 -2
- package/dist/{chunk-TXSF2DKX.js → chunk-2ZX4Z2IP.js} +3 -3
- package/dist/{chunk-TXSF2DKX.js.map → chunk-2ZX4Z2IP.js.map} +1 -1
- package/dist/{chunk-57636V35.cjs → chunk-5J5PDZRR.cjs} +3 -3
- package/dist/{chunk-57636V35.cjs.map → chunk-5J5PDZRR.cjs.map} +1 -1
- package/dist/{chunk-B73Q75IL.cjs → chunk-7PHMT3T4.cjs} +10 -10
- package/dist/{chunk-B73Q75IL.cjs.map → chunk-7PHMT3T4.cjs.map} +1 -1
- package/dist/{chunk-6UM55KPZ.js → chunk-ALZ2CZ3T.js} +3 -3
- package/dist/{chunk-6UM55KPZ.js.map → chunk-ALZ2CZ3T.js.map} +1 -1
- package/dist/{chunk-JVHO6XHG.js → chunk-E5JNYFOF.js} +272 -31
- package/dist/chunk-E5JNYFOF.js.map +1 -0
- package/dist/{chunk-3KW4TWP2.cjs → chunk-FM263GKH.cjs} +17 -17
- package/dist/{chunk-3KW4TWP2.cjs.map → chunk-FM263GKH.cjs.map} +1 -1
- package/dist/{chunk-JJ7AXR4O.cjs → chunk-I7ZNWBBU.cjs} +17 -17
- package/dist/{chunk-JJ7AXR4O.cjs.map → chunk-I7ZNWBBU.cjs.map} +1 -1
- package/dist/{chunk-XTCOSZ34.cjs → chunk-MK5EPTTB.cjs} +704 -462
- package/dist/chunk-MK5EPTTB.cjs.map +1 -0
- package/dist/{chunk-IUFTICRY.js → chunk-NOWVA5CM.js} +4 -4
- package/dist/{chunk-IUFTICRY.js.map → chunk-NOWVA5CM.js.map} +1 -1
- package/dist/{chunk-3OKEUDHU.cjs → chunk-P6EXRY5L.cjs} +49 -49
- package/dist/{chunk-3OKEUDHU.cjs.map → chunk-P6EXRY5L.cjs.map} +1 -1
- package/dist/{chunk-UG3EZDLF.js → chunk-SCSLCU66.js} +4 -4
- package/dist/{chunk-UG3EZDLF.js.map → chunk-SCSLCU66.js.map} +1 -1
- package/dist/{chunk-F5E7LI6G.js → chunk-ZT3EM4CE.js} +3 -3
- package/dist/{chunk-F5E7LI6G.js.map → chunk-ZT3EM4CE.js.map} +1 -1
- 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-BPdzTbwN.d.ts → delegate-CKJdsC99.d.ts} +1 -1
- package/dist/{delegate-DrwIar11.d.cts → delegate-D-gEEqrP.d.cts} +1 -1
- package/dist/{hdWalletCapable-DyxCiNVE.d.ts → hdWalletCapable-BJ4pvkai.d.ts} +2 -2
- package/dist/{hdWalletCapable-D4WH35z0.d.cts → hdWalletCapable-CwLPmWct.d.cts} +2 -2
- package/dist/{index-BqhpAqqj.d.cts → index-BE1uFXrV.d.cts} +2 -2
- package/dist/{index-TZJvbIaA.d.ts → index-Boppyqav.d.ts} +2 -2
- package/dist/{index-dWRqYSdS.d.ts → index-CyGnhCSS.d.cts} +98 -2
- package/dist/{index-dWRqYSdS.d.cts → index-CyGnhCSS.d.ts} +98 -2
- package/dist/index.cjs +301 -297
- package/dist/index.d.cts +46 -11
- package/dist/index.d.ts +46 -11
- 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-CzYKyJ9c.d.cts → taskRunner-CjmMH_rW.d.cts} +2 -2
- package/dist/{taskRunner-D2fnbqYw.d.ts → taskRunner-l3zyfW_Q.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 +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +5 -5
- 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-JVHO6XHG.js.map +0 -1
- package/dist/chunk-XTCOSZ34.cjs.map +0 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkP6EXRY5L_cjs = require('../../chunk-P6EXRY5L.cjs');
|
|
4
|
+
require('../../chunk-5J5PDZRR.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 chunkP6EXRY5L_cjs.ArkadeContractHandler; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "BoardingContractHandler", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkP6EXRY5L_cjs.BoardingContractHandler; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "DefaultContractHandler", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkP6EXRY5L_cjs.DefaultContractHandler; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "DelegateContractHandler", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkP6EXRY5L_cjs.DelegateContractHandler; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "VHTLCContractHandler", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkP6EXRY5L_cjs.VHTLCContractHandler; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "VHTLCV2ContractHandler", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkP6EXRY5L_cjs.VHTLCV2ContractHandler; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "contractHandlers", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkP6EXRY5L_cjs.contractHandlers; }
|
|
36
36
|
});
|
|
37
37
|
//# sourceMappingURL=index.cjs.map
|
|
38
38
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { n as ArkadeContractHandler, B as BoardingContractHandler, o as BoardingContractParams, D as DefaultContractHandler, q as DefaultContractParams, t as DelegateContractHandler, u as DelegateContractParams, x as VHTLCContractHandler, y as VHTLCContractParams, z as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, F as contractHandlers } from '../../index-
|
|
2
|
-
import '../../index-
|
|
1
|
+
export { n as ArkadeContractHandler, B as BoardingContractHandler, o as BoardingContractParams, D as DefaultContractHandler, q as DefaultContractParams, t as DelegateContractHandler, u as DelegateContractParams, x as VHTLCContractHandler, y as VHTLCContractParams, z as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, F as contractHandlers } from '../../index-BE1uFXrV.cjs';
|
|
2
|
+
import '../../index-CyGnhCSS.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-D-gEEqrP.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { n as ArkadeContractHandler, B as BoardingContractHandler, o as BoardingContractParams, D as DefaultContractHandler, q as DefaultContractParams, t as DelegateContractHandler, u as DelegateContractParams, x as VHTLCContractHandler, y as VHTLCContractParams, z as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, F as contractHandlers } from '../../index-
|
|
2
|
-
import '../../index-
|
|
1
|
+
export { n as ArkadeContractHandler, B as BoardingContractHandler, o as BoardingContractParams, D as DefaultContractHandler, q as DefaultContractParams, t as DelegateContractHandler, u as DelegateContractParams, x as VHTLCContractHandler, y as VHTLCContractParams, z as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, F as contractHandlers } from '../../index-Boppyqav.js';
|
|
2
|
+
import '../../index-CyGnhCSS.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-CKJdsC99.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-ALZ2CZ3T.js';
|
|
2
|
+
import '../../chunk-2ZX4Z2IP.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 { s as RelativeTimelock, V as VtxoScript, t as TapLeafScript } from './index-
|
|
2
|
+
import { s as RelativeTimelock, V as VtxoScript, t as TapLeafScript } from './index-CyGnhCSS.js';
|
|
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 { s as RelativeTimelock, V as VtxoScript, t as TapLeafScript } from './index-
|
|
2
|
+
import { s as RelativeTimelock, V as VtxoScript, t as TapLeafScript } from './index-CyGnhCSS.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DefaultVtxo is the default implementation of a VtxoScript.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as RelativeTimelock, M as Network, P as CSVMultisigTapscript, Q as BatchStartedEvent, U as TreeSigningStartedEvent, X as TxTree, Y as TreeNoncesEvent, Z as BatchFinalizationEvent, _ as BatchFinalizedEvent, $ as BatchFailedEvent, a0 as TreeTxEvent, a1 as TreeSignatureEvent, k as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, a2 as DescriptorProvider, f as IContractManager, a3 as IReadonlyWallet, a4 as ReadonlyIdentity, a5 as OnchainProvider, r as IndexerProvider, a6 as DelegateProvider, a7 as ReadonlyWalletConfig, B as IntentRepository, H as VirtualTxRepository, a8 as ExitCaptureMode, a9 as ExitDataSource, d as ActivityRegistry, aa as IReadonlyAssetManager, ab as ContractSyncState, ac as RecipientAddressContext, q as ArkProvider, ad as NetworkName, ae as ArkInfo, af as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, ag as ContractWithVtxos, ah as selectPendingRecoveryOutpoints, A as ArkTransaction, e as Activity, E as ExtendedCoin, ai as Coin, w as ExtendedVirtualCoin, aj as ContractManager, ak as ContractManagerConfig, I as IWallet, a as Identity, g as GetNewAddressesOptions, h as NewAddress, al as SettlementConfig, m as IAssetManager, am as VtxoManager, i as IDelegateManager, S as SendBitcoinParams, j as SettleParams, R as Recipient, an as SignerSession, ao as SignedIntent, ap as Intent, l as SendParams, aq as TimeHeight } from './index-
|
|
1
|
+
import { s as RelativeTimelock, M as Network, P as CSVMultisigTapscript, Q as BatchStartedEvent, U as TreeSigningStartedEvent, X as TxTree, Y as TreeNoncesEvent, Z as BatchFinalizationEvent, _ as BatchFinalizedEvent, $ as BatchFailedEvent, a0 as TreeTxEvent, a1 as TreeSignatureEvent, k as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, a2 as DescriptorProvider, f as IContractManager, a3 as IReadonlyWallet, a4 as ReadonlyIdentity, a5 as OnchainProvider, r as IndexerProvider, a6 as DelegateProvider, a7 as ReadonlyWalletConfig, B as IntentRepository, H as VirtualTxRepository, a8 as ExitCaptureMode, a9 as ExitDataSource, d as ActivityRegistry, aa as IReadonlyAssetManager, ab as ContractSyncState, ac as RecipientAddressContext, q as ArkProvider, ad as NetworkName, ae as ArkInfo, af as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, ag as ContractWithVtxos, ah as selectPendingRecoveryOutpoints, A as ArkTransaction, e as Activity, E as ExtendedCoin, ai as Coin, w as ExtendedVirtualCoin, aj as ContractManager, ak as ContractManagerConfig, I as IWallet, a as Identity, g as GetNewAddressesOptions, h as NewAddress, al as SettlementConfig, m as IAssetManager, am as VtxoManager, i as IDelegateManager, S as SendBitcoinParams, j as SettleParams, R as Recipient, an as SignerSession, ao as SignedIntent, ap as Intent, l as SendParams, aq as TimeHeight } from './index-CyGnhCSS.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-CKJdsC99.js';
|
|
6
6
|
|
|
7
7
|
/** Wall-clock floor for `batchExpiry` outside regtest. */
|
|
8
8
|
declare const DEFAULT_MIN_BATCH_EXPIRY_SECONDS = 86400n;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as RelativeTimelock, M as Network, P as CSVMultisigTapscript, Q as BatchStartedEvent, U as TreeSigningStartedEvent, X as TxTree, Y as TreeNoncesEvent, Z as BatchFinalizationEvent, _ as BatchFinalizedEvent, $ as BatchFailedEvent, a0 as TreeTxEvent, a1 as TreeSignatureEvent, k as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, a2 as DescriptorProvider, f as IContractManager, a3 as IReadonlyWallet, a4 as ReadonlyIdentity, a5 as OnchainProvider, r as IndexerProvider, a6 as DelegateProvider, a7 as ReadonlyWalletConfig, B as IntentRepository, H as VirtualTxRepository, a8 as ExitCaptureMode, a9 as ExitDataSource, d as ActivityRegistry, aa as IReadonlyAssetManager, ab as ContractSyncState, ac as RecipientAddressContext, q as ArkProvider, ad as NetworkName, ae as ArkInfo, af as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, ag as ContractWithVtxos, ah as selectPendingRecoveryOutpoints, A as ArkTransaction, e as Activity, E as ExtendedCoin, ai as Coin, w as ExtendedVirtualCoin, aj as ContractManager, ak as ContractManagerConfig, I as IWallet, a as Identity, g as GetNewAddressesOptions, h as NewAddress, al as SettlementConfig, m as IAssetManager, am as VtxoManager, i as IDelegateManager, S as SendBitcoinParams, j as SettleParams, R as Recipient, an as SignerSession, ao as SignedIntent, ap as Intent, l as SendParams, aq as TimeHeight } from './index-
|
|
1
|
+
import { s as RelativeTimelock, M as Network, P as CSVMultisigTapscript, Q as BatchStartedEvent, U as TreeSigningStartedEvent, X as TxTree, Y as TreeNoncesEvent, Z as BatchFinalizationEvent, _ as BatchFinalizedEvent, $ as BatchFailedEvent, a0 as TreeTxEvent, a1 as TreeSignatureEvent, k as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, a2 as DescriptorProvider, f as IContractManager, a3 as IReadonlyWallet, a4 as ReadonlyIdentity, a5 as OnchainProvider, r as IndexerProvider, a6 as DelegateProvider, a7 as ReadonlyWalletConfig, B as IntentRepository, H as VirtualTxRepository, a8 as ExitCaptureMode, a9 as ExitDataSource, d as ActivityRegistry, aa as IReadonlyAssetManager, ab as ContractSyncState, ac as RecipientAddressContext, q as ArkProvider, ad as NetworkName, ae as ArkInfo, af as ArkAddress, c as WalletBalance, G as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, ag as ContractWithVtxos, ah as selectPendingRecoveryOutpoints, A as ArkTransaction, e as Activity, E as ExtendedCoin, ai as Coin, w as ExtendedVirtualCoin, aj as ContractManager, ak as ContractManagerConfig, I as IWallet, a as Identity, g as GetNewAddressesOptions, h as NewAddress, al as SettlementConfig, m as IAssetManager, am as VtxoManager, i as IDelegateManager, S as SendBitcoinParams, j as SettleParams, R as Recipient, an as SignerSession, ao as SignedIntent, ap as Intent, l as SendParams, aq as TimeHeight } from './index-CyGnhCSS.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-D-gEEqrP.cjs';
|
|
6
6
|
|
|
7
7
|
/** Wall-clock floor for `batchExpiry` outside regtest. */
|
|
8
8
|
declare const DEFAULT_MIN_BATCH_EXPIRY_SECONDS = 86400n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { bh as ContractHandler, s as RelativeTimelock, bu as Discoverable, V as VtxoScript, t as TapLeafScript, d8 as TapscriptDeriving } from './index-CyGnhCSS.cjs';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-D-gEEqrP.cjs';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { bh as ContractHandler, s as RelativeTimelock, bu as Discoverable, V as VtxoScript, t as TapLeafScript, d8 as TapscriptDeriving } from './index-CyGnhCSS.js';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-CKJdsC99.js';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -3812,6 +3812,38 @@ interface IContractManager extends Disposable {
|
|
|
3812
3812
|
* `handlerErrors` *after* the inline VTXO pull.
|
|
3813
3813
|
*/
|
|
3814
3814
|
scanContracts(opts: ScanContractsOptions): Promise<ScanResult>;
|
|
3815
|
+
/**
|
|
3816
|
+
* Report VTXO activity at `script` without registering it as a contract,
|
|
3817
|
+
* and without the wallet owning it. Activity arrives as
|
|
3818
|
+
* {@link ContractEvent} `vtxo_received` / `vtxo_spent` without the
|
|
3819
|
+
* `contract` — narrow with {@link isContractVtxoEvent};
|
|
3820
|
+
* nothing is persisted and the outputs never enter the wallet's balance,
|
|
3821
|
+
* renewal or recovery paths.
|
|
3822
|
+
*
|
|
3823
|
+
* At-least-once, and re-announces on restart — the registration is
|
|
3824
|
+
* in-memory, so there is no baseline to diff a restart against.
|
|
3825
|
+
* Deduplicate by outpoint, and tolerate a `vtxo_spent` with no
|
|
3826
|
+
* preceding `vtxo_received` — an output can be created and spent
|
|
3827
|
+
* inside one gap in the stream. Re-registering a watched script is a
|
|
3828
|
+
* no-op, so a caller may re-derive its whole set on a timer.
|
|
3829
|
+
*
|
|
3830
|
+
* Reports **spendable** outputs: a preconfirmed one counts, so a fresh
|
|
3831
|
+
* funding is not missed, but one already recoverable or swept is not
|
|
3832
|
+
* reported.
|
|
3833
|
+
*
|
|
3834
|
+
* Optional so adding it does not break an embedder with its own
|
|
3835
|
+
* `IContractManager`; both shipped implementations provide it for real.
|
|
3836
|
+
*/
|
|
3837
|
+
watchScript?(script: string, options?: {
|
|
3838
|
+
label?: string;
|
|
3839
|
+
}): Promise<void>;
|
|
3840
|
+
/** Stop watching a script registered via {@link watchScript}. */
|
|
3841
|
+
unwatchScript?(script: string): Promise<void>;
|
|
3842
|
+
/**
|
|
3843
|
+
* Every script registered via {@link watchScript}. Async for the same
|
|
3844
|
+
* reason {@link isWatching} is: a service worker answers over the bus.
|
|
3845
|
+
*/
|
|
3846
|
+
getWatchedScripts?(): Promise<WatchedScript[]>;
|
|
3815
3847
|
/**
|
|
3816
3848
|
* Whether the underlying watcher is currently active.
|
|
3817
3849
|
*/
|
|
@@ -4347,6 +4379,14 @@ declare class ContractManager implements IContractManager {
|
|
|
4347
4379
|
* Check if currently watching.
|
|
4348
4380
|
*/
|
|
4349
4381
|
isWatching(): Promise<boolean>;
|
|
4382
|
+
/** @see IContractManager.watchScript */
|
|
4383
|
+
watchScript(script: string, options?: {
|
|
4384
|
+
label?: string;
|
|
4385
|
+
}): Promise<void>;
|
|
4386
|
+
/** @see IContractManager.unwatchScript */
|
|
4387
|
+
unwatchScript(script: string): Promise<void>;
|
|
4388
|
+
/** @see IContractManager.getWatchedScripts */
|
|
4389
|
+
getWatchedScripts(): Promise<WatchedScript[]>;
|
|
4350
4390
|
/**
|
|
4351
4391
|
* Emit an event to all registered callbacks.
|
|
4352
4392
|
*/
|
|
@@ -4846,8 +4886,19 @@ interface DerivedContractTapscripts {
|
|
|
4846
4886
|
interface TapscriptDeriving<S extends VtxoScript = VtxoScript> {
|
|
4847
4887
|
deriveTapscripts(script: S, contract: Contract): DerivedContractTapscripts;
|
|
4848
4888
|
}
|
|
4889
|
+
/** A script the watcher reports on without the wallet owning it. */
|
|
4890
|
+
interface WatchedScript {
|
|
4891
|
+
script: string;
|
|
4892
|
+
/** Free-form tag echoed back by `getWatchedScripts`; never sent anywhere. */
|
|
4893
|
+
label?: string;
|
|
4894
|
+
}
|
|
4849
4895
|
/**
|
|
4850
4896
|
* Event emitted when contract-related changes occur.
|
|
4897
|
+
*
|
|
4898
|
+
* A watch-only script reports the same `vtxo_received` / `vtxo_spent` types
|
|
4899
|
+
* but carries no `contract`, and cannot: annotation needs one. That absence is
|
|
4900
|
+
* the ownership boundary, and the compiler enforces it — reading
|
|
4901
|
+
* `event.contract` unnarrowed by {@link isContractVtxoEvent} fails.
|
|
4851
4902
|
*/
|
|
4852
4903
|
type ContractEvent = {
|
|
4853
4904
|
type: "vtxo_received";
|
|
@@ -4861,10 +4912,29 @@ type ContractEvent = {
|
|
|
4861
4912
|
vtxos: ContractVtxo[];
|
|
4862
4913
|
contract: Contract;
|
|
4863
4914
|
timestamp: number;
|
|
4915
|
+
} | {
|
|
4916
|
+
type: "vtxo_received";
|
|
4917
|
+
contractScript: string;
|
|
4918
|
+
vtxos: VirtualCoin[];
|
|
4919
|
+
timestamp: number;
|
|
4920
|
+
} | {
|
|
4921
|
+
type: "vtxo_spent";
|
|
4922
|
+
contractScript: string;
|
|
4923
|
+
vtxos: VirtualCoin[];
|
|
4924
|
+
timestamp: number;
|
|
4864
4925
|
} | {
|
|
4865
4926
|
type: "connection_reset";
|
|
4866
4927
|
timestamp: number;
|
|
4867
4928
|
};
|
|
4929
|
+
type ContractVtxoEvent = Extract<ContractEvent, {
|
|
4930
|
+
contract: Contract;
|
|
4931
|
+
}>;
|
|
4932
|
+
/**
|
|
4933
|
+
* Gate every wallet-side effect on this: a watch-only event has no contract.
|
|
4934
|
+
* @example `if (!isContractVtxoEvent(event)) return;` inside `onContractEvent`,
|
|
4935
|
+
* before reading `event.contract` — which does not compile without it.
|
|
4936
|
+
*/
|
|
4937
|
+
declare function isContractVtxoEvent(event: ContractEvent): event is ContractVtxoEvent;
|
|
4868
4938
|
/**
|
|
4869
4939
|
* Callback for contract events.
|
|
4870
4940
|
*/
|
|
@@ -4976,6 +5046,8 @@ type ConnectionState = "disconnected" | "connecting" | "connected" | "reconnecti
|
|
|
4976
5046
|
declare class ContractWatcher {
|
|
4977
5047
|
private config;
|
|
4978
5048
|
private contracts;
|
|
5049
|
+
/** In-memory and process-lifetime; never persisted. */
|
|
5050
|
+
private watchedScripts;
|
|
4979
5051
|
private subscriptionId?;
|
|
4980
5052
|
private abortController?;
|
|
4981
5053
|
private isWatching;
|
|
@@ -5045,6 +5117,19 @@ declare class ContractWatcher {
|
|
|
5045
5117
|
* are unaffected.
|
|
5046
5118
|
*/
|
|
5047
5119
|
getWatchedContracts(): Contract[];
|
|
5120
|
+
/**
|
|
5121
|
+
* Every script the subscription must carry. Wider than
|
|
5122
|
+
* {@link getWatchedContracts}, which stays the sync scope.
|
|
5123
|
+
*/
|
|
5124
|
+
private getSubscribedScripts;
|
|
5125
|
+
/** @see IContractManager.watchScript for the delivery and filter contract. */
|
|
5126
|
+
addWatchedScript(script: string, options?: {
|
|
5127
|
+
label?: string;
|
|
5128
|
+
}): Promise<void>;
|
|
5129
|
+
/** Stop watching a script added by {@link addWatchedScript}. */
|
|
5130
|
+
removeWatchedScript(script: string): Promise<void>;
|
|
5131
|
+
/** Every script registered via {@link addWatchedScript}. */
|
|
5132
|
+
getWatchedScripts(): WatchedScript[];
|
|
5048
5133
|
/**
|
|
5049
5134
|
* Get virtual outputs for contracts, grouped by contract script.
|
|
5050
5135
|
* @see WalletRepository for `repo`
|
|
@@ -5101,6 +5186,15 @@ declare class ContractWatcher {
|
|
|
5101
5186
|
*/
|
|
5102
5187
|
private startFailsafePolling;
|
|
5103
5188
|
private pollAllContracts;
|
|
5189
|
+
/**
|
|
5190
|
+
* Poll watch-only scripts against the indexer and emit the delta.
|
|
5191
|
+
*
|
|
5192
|
+
* Separate from {@link pollContracts} because that one diffs the wallet
|
|
5193
|
+
* repository, which is permanently empty for a script this wallet does not
|
|
5194
|
+
* own — reusing it would report every live output as spent on every tick.
|
|
5195
|
+
* Not a second poll loop: same timer and callers, different source.
|
|
5196
|
+
*/
|
|
5197
|
+
private pollWatchedScripts;
|
|
5104
5198
|
/**
|
|
5105
5199
|
* Poll specific contracts and emit events for changes.
|
|
5106
5200
|
*/
|
|
@@ -5127,7 +5221,7 @@ declare class ContractWatcher {
|
|
|
5127
5221
|
/**
|
|
5128
5222
|
* Update the subscription with scripts that should be watched.
|
|
5129
5223
|
*
|
|
5130
|
-
* @see
|
|
5224
|
+
* @see getSubscribedScripts
|
|
5131
5225
|
*/
|
|
5132
5226
|
private updateSubscription;
|
|
5133
5227
|
/**
|
|
@@ -5150,6 +5244,8 @@ declare class ContractWatcher {
|
|
|
5150
5244
|
* non-owning contracts that then never reconciled.
|
|
5151
5245
|
*/
|
|
5152
5246
|
private processSubscriptionVtxos;
|
|
5247
|
+
/** As {@link emitVtxoEvent}, less the `contract` and the annotation. */
|
|
5248
|
+
private emitWatchedScriptEvent;
|
|
5153
5249
|
/**
|
|
5154
5250
|
* Emit a virtual output event for a contract.
|
|
5155
5251
|
*/
|
|
@@ -6227,4 +6323,4 @@ interface IReadonlyWallet {
|
|
|
6227
6323
|
clear(): Promise<void>;
|
|
6228
6324
|
}
|
|
6229
6325
|
|
|
6230
|
-
export { type BatchFailedEvent as $, type ArkTransaction as A, type IntentRepository as B, type ContractRepository as C, type ArkIntent as D, type ExtendedCoin as E, type IntentFilter as F, type GetVtxosFilter as G, type VirtualTxRepository as H, type IWallet as I, type VirtualTx as J, type VtxoBranch as K, ChainedTxType as L, type Network as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, CSVMultisigTapscript as P, type BatchStartedEvent as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotificationEvent as T, type TreeSigningStartedEvent as U, VtxoScript as V, type WalletRepository as W, TxTree as X, type TreeNoncesEvent as Y, type BatchFinalizationEvent as Z, type BatchFinalizedEvent as _, type Identity as a, type
|
|
6326
|
+
export { type BatchFailedEvent as $, type ArkTransaction as A, type IntentRepository as B, type ContractRepository as C, type ArkIntent as D, type ExtendedCoin as E, type IntentFilter as F, type GetVtxosFilter as G, type VirtualTxRepository as H, type IWallet as I, type VirtualTx as J, type VtxoBranch as K, ChainedTxType as L, type Network as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, CSVMultisigTapscript as P, type BatchStartedEvent as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotificationEvent as T, type TreeSigningStartedEvent as U, VtxoScript as V, type WalletRepository as W, TxTree as X, type TreeNoncesEvent as Y, type BatchFinalizationEvent as Z, type BatchFinalizedEvent as _, type Identity as a, type PathContext as a$, type TreeTxEvent as a0, type TreeSignatureEvent as a1, type DescriptorProvider as a2, type IReadonlyWallet as a3, type ReadonlyIdentity as a4, type OnchainProvider as a5, type DelegateProvider as a6, type ReadonlyWalletConfig as a7, type ExitCaptureMode as a8, type ExitDataSource as a9, type FeeInfo as aA, type CreateContractParams as aB, type GetContractsFilter as aC, type GetSpendablePathsOptions as aD, type GetAllSpendingPathsOptions as aE, type IssuanceParams as aF, type ReissuanceParams as aG, type BurnParams as aH, type RenewVtxosOptions as aI, type WatchedScript as aJ, type PathSelection as aK, type ContractEvent as aL, type AssetDetails as aM, type IssuanceResult as aN, type DelegateInfo as aO, type MigrationGlobalSkipReason as aP, type MigrationLegSkipReason as aQ, type SignerStatus as aR, type StorageConfig as aS, type IVtxoManager as aT, type ExplorerTransaction as aU, type TreeNonces as aV, type TreePartialSigs as aW, type PendingTx as aX, type EncodedVtxoScript as aY, type Status as aZ, type ChainTx as a_, type IReadonlyAssetManager as aa, type ContractSyncState as ab, type RecipientAddressContext as ac, type NetworkName as ad, type ArkInfo as ae, ArkAddress as af, type ContractWithVtxos as ag, selectPendingRecoveryOutpoints as ah, type Coin as ai, ContractManager as aj, type ContractManagerConfig as ak, type SettlementConfig as al, VtxoManager as am, type SignerSession as an, type SignedIntent as ao, Intent as ap, type TimeHeight as aq, type DescriptorSigningRequest as ar, Transaction as as, type IntentFeeConfig as at, type OffchainInput as au, FeeAmount as av, type OnchainInput as aw, type FeeOutput as ax, type ContractWatcherConfig as ay, type Asset as az, type WalletConfig as b, type RawTxSource as b$, type ActivityIntent as b0, type ActivityResolver as b1, type ArkIntentState as b2, type ArkTapscript as b3, type AssetMetadata as b4, BITCOIN_EMULATOR_PUBKEY as b5, type BaseWalletConfig as b6, type BatchInfo as b7, type BatchSignableIdentity as b8, CLTVMultisigTapscript as b9, type EventSourceFactory as bA, type EventSourceLike as bB, EventSourceUnavailableError as bC, type ExitChainResolver as bD, type ExtendedContractVtxo as bE, type GroupMembership as bF, type HandlerError as bG, type IDelegatorManager as bH, INTENT_TERMINAL_STATES as bI, IndexerTxType as bJ, type IntentCoin as bK, type KnownMetadata as bL, MUTINYNET_EMULATOR_PUBKEY as bM, type MigrateDeprecatedSignerOptions as bN, type MigrationLegReport as bO, type MigrationVtxoRef as bP, MultisigTapscript as bQ, type NewAddressType as bR, type Nonces as bS, type Output as bT, type PageResponse as bU, type PaginationOptions as bV, PartialSig as bW, type PrevTxSource as bX, PrevTxUnavailableError as bY, type ProviderClass as bZ, REGTEST_EMULATOR_PUBKEY as b_, type CandidateDeps as ba, ChainTxType as bb, type CommitmentTx as bc, ConditionCSVMultisigTapscript as bd, ConditionMultisigTapscript as be, type ContractBalance as bf, type ContractEventCallback as bg, type ContractHandler as bh, type ContractState as bi, type ContractVtxo as bj, type ContractVtxoEvent as bk, ContractWatcher as bl, DEFAULT_VTXO_PAGE_SIZE as bm, DelegateManagerImpl as bn, type DelegateOptions as bo, DelegatorManagerImpl as bp, type DelegatorProvider as bq, type DeprecatedSignerMigrationReport as br, type DeprecatedSignerReport as bs, DigestMismatchError as bt, type Discoverable as bu, type DiscoveredContract as bv, type DiscoveryDeps as bw, ESPLORA_URL as bx, EsploraProvider as by, type EventSourceCapable as bz, type WalletBalance as c, isVtxoExpiringSoon as c$, RestDelegateProvider as c0, RestDelegatorProvider as c1, type ScanContractsOptions as c2, type ScanResult as c3, type ScheduledSession as c4, SettlementEventType as c5, type SignRequest as c6, type SignerClassification as c7, type SignerSet as c8, type SubscriptionEvent as c9, classifyAgainstSignerSet as cA, classifyContractSigner as cB, collabExitResolver as cC, configureEventSource as cD, createDefaultActivityRegistry as cE, createExitChainResolver as cF, decodeTapscript as cG, defaultEmulatorPubkey as cH, getConfiguredEventSource as cI, getNetwork as cJ, getRandomId as cK, getSequence as cL, hasCandidates as cM, hasTerminalSpend as cN, isBatchSignable as cO, isContractVtxoEvent as cP, isCooperativelyMigratable as cQ, isDiscoverable as cR, isEventSourceUnavailableError as cS, isExpired as cT, isPastExpiry as cU, isRecoverable as cV, isSigningIdentity as cW, isSpendable as cX, isSubdust as cY, isTerminalIntentState as cZ, isVirtualCoin as c_, type SubscriptionHeartbeat as ca, type SweepTxNotification as cb, type TapLeaves as cc, TapTreeCoder as cd, TapscriptType as ce, type Tx as cf, type TxHistoryRecord as cg, type TxKey as ch, type TxNotification as ci, type TxTag as cj, type TxTreeNode as ck, TxType as cl, type VirtualStatus as cm, type Vtxo as cn, type VtxoChain as co, type VtxoType as cp, type WalletMode as cq, type WithPrevTx as cr, assertAllowedSighashTypes as cs, assetMintResolver as ct, attachPrevArkTxs as cu, attachPrevoutTxs as cv, boardingResolver as cw, canRecoverOnchain as cx, canSpendOffchain as cy, canSweepOnchain as cz, ActivityRegistry as d, networks as d0, resolveEmulatorPubkey as d1, resolveEventSource as d2, resolvePrevTxs as d3, scriptFromTapLeafScript as d4, signerSetFromInfo as d5, toXOnlySignerHex as d6, withPrevTxs as d7, type TapscriptDeriving as d8, type Activity as e, type IContractManager as f, type GetNewAddressesOptions as g, type NewAddress as h, type IDelegateManager as i, type SettleParams as j, type SettlementEvent as k, type SendParams as l, type IAssetManager as m, RestArkProvider as n, RestIndexerProvider as o, type SubscriptionResponse as p, type ArkProvider as q, type IndexerProvider as r, type RelativeTimelock as s, type TapLeafScript as t, type VirtualCoin as u, type Contract as v, type ExtendedVirtualCoin as w, type VtxoRepositoryKey as x, type WalletState as y, type ContractFilter as z };
|
|
@@ -3812,6 +3812,38 @@ interface IContractManager extends Disposable {
|
|
|
3812
3812
|
* `handlerErrors` *after* the inline VTXO pull.
|
|
3813
3813
|
*/
|
|
3814
3814
|
scanContracts(opts: ScanContractsOptions): Promise<ScanResult>;
|
|
3815
|
+
/**
|
|
3816
|
+
* Report VTXO activity at `script` without registering it as a contract,
|
|
3817
|
+
* and without the wallet owning it. Activity arrives as
|
|
3818
|
+
* {@link ContractEvent} `vtxo_received` / `vtxo_spent` without the
|
|
3819
|
+
* `contract` — narrow with {@link isContractVtxoEvent};
|
|
3820
|
+
* nothing is persisted and the outputs never enter the wallet's balance,
|
|
3821
|
+
* renewal or recovery paths.
|
|
3822
|
+
*
|
|
3823
|
+
* At-least-once, and re-announces on restart — the registration is
|
|
3824
|
+
* in-memory, so there is no baseline to diff a restart against.
|
|
3825
|
+
* Deduplicate by outpoint, and tolerate a `vtxo_spent` with no
|
|
3826
|
+
* preceding `vtxo_received` — an output can be created and spent
|
|
3827
|
+
* inside one gap in the stream. Re-registering a watched script is a
|
|
3828
|
+
* no-op, so a caller may re-derive its whole set on a timer.
|
|
3829
|
+
*
|
|
3830
|
+
* Reports **spendable** outputs: a preconfirmed one counts, so a fresh
|
|
3831
|
+
* funding is not missed, but one already recoverable or swept is not
|
|
3832
|
+
* reported.
|
|
3833
|
+
*
|
|
3834
|
+
* Optional so adding it does not break an embedder with its own
|
|
3835
|
+
* `IContractManager`; both shipped implementations provide it for real.
|
|
3836
|
+
*/
|
|
3837
|
+
watchScript?(script: string, options?: {
|
|
3838
|
+
label?: string;
|
|
3839
|
+
}): Promise<void>;
|
|
3840
|
+
/** Stop watching a script registered via {@link watchScript}. */
|
|
3841
|
+
unwatchScript?(script: string): Promise<void>;
|
|
3842
|
+
/**
|
|
3843
|
+
* Every script registered via {@link watchScript}. Async for the same
|
|
3844
|
+
* reason {@link isWatching} is: a service worker answers over the bus.
|
|
3845
|
+
*/
|
|
3846
|
+
getWatchedScripts?(): Promise<WatchedScript[]>;
|
|
3815
3847
|
/**
|
|
3816
3848
|
* Whether the underlying watcher is currently active.
|
|
3817
3849
|
*/
|
|
@@ -4347,6 +4379,14 @@ declare class ContractManager implements IContractManager {
|
|
|
4347
4379
|
* Check if currently watching.
|
|
4348
4380
|
*/
|
|
4349
4381
|
isWatching(): Promise<boolean>;
|
|
4382
|
+
/** @see IContractManager.watchScript */
|
|
4383
|
+
watchScript(script: string, options?: {
|
|
4384
|
+
label?: string;
|
|
4385
|
+
}): Promise<void>;
|
|
4386
|
+
/** @see IContractManager.unwatchScript */
|
|
4387
|
+
unwatchScript(script: string): Promise<void>;
|
|
4388
|
+
/** @see IContractManager.getWatchedScripts */
|
|
4389
|
+
getWatchedScripts(): Promise<WatchedScript[]>;
|
|
4350
4390
|
/**
|
|
4351
4391
|
* Emit an event to all registered callbacks.
|
|
4352
4392
|
*/
|
|
@@ -4846,8 +4886,19 @@ interface DerivedContractTapscripts {
|
|
|
4846
4886
|
interface TapscriptDeriving<S extends VtxoScript = VtxoScript> {
|
|
4847
4887
|
deriveTapscripts(script: S, contract: Contract): DerivedContractTapscripts;
|
|
4848
4888
|
}
|
|
4889
|
+
/** A script the watcher reports on without the wallet owning it. */
|
|
4890
|
+
interface WatchedScript {
|
|
4891
|
+
script: string;
|
|
4892
|
+
/** Free-form tag echoed back by `getWatchedScripts`; never sent anywhere. */
|
|
4893
|
+
label?: string;
|
|
4894
|
+
}
|
|
4849
4895
|
/**
|
|
4850
4896
|
* Event emitted when contract-related changes occur.
|
|
4897
|
+
*
|
|
4898
|
+
* A watch-only script reports the same `vtxo_received` / `vtxo_spent` types
|
|
4899
|
+
* but carries no `contract`, and cannot: annotation needs one. That absence is
|
|
4900
|
+
* the ownership boundary, and the compiler enforces it — reading
|
|
4901
|
+
* `event.contract` unnarrowed by {@link isContractVtxoEvent} fails.
|
|
4851
4902
|
*/
|
|
4852
4903
|
type ContractEvent = {
|
|
4853
4904
|
type: "vtxo_received";
|
|
@@ -4861,10 +4912,29 @@ type ContractEvent = {
|
|
|
4861
4912
|
vtxos: ContractVtxo[];
|
|
4862
4913
|
contract: Contract;
|
|
4863
4914
|
timestamp: number;
|
|
4915
|
+
} | {
|
|
4916
|
+
type: "vtxo_received";
|
|
4917
|
+
contractScript: string;
|
|
4918
|
+
vtxos: VirtualCoin[];
|
|
4919
|
+
timestamp: number;
|
|
4920
|
+
} | {
|
|
4921
|
+
type: "vtxo_spent";
|
|
4922
|
+
contractScript: string;
|
|
4923
|
+
vtxos: VirtualCoin[];
|
|
4924
|
+
timestamp: number;
|
|
4864
4925
|
} | {
|
|
4865
4926
|
type: "connection_reset";
|
|
4866
4927
|
timestamp: number;
|
|
4867
4928
|
};
|
|
4929
|
+
type ContractVtxoEvent = Extract<ContractEvent, {
|
|
4930
|
+
contract: Contract;
|
|
4931
|
+
}>;
|
|
4932
|
+
/**
|
|
4933
|
+
* Gate every wallet-side effect on this: a watch-only event has no contract.
|
|
4934
|
+
* @example `if (!isContractVtxoEvent(event)) return;` inside `onContractEvent`,
|
|
4935
|
+
* before reading `event.contract` — which does not compile without it.
|
|
4936
|
+
*/
|
|
4937
|
+
declare function isContractVtxoEvent(event: ContractEvent): event is ContractVtxoEvent;
|
|
4868
4938
|
/**
|
|
4869
4939
|
* Callback for contract events.
|
|
4870
4940
|
*/
|
|
@@ -4976,6 +5046,8 @@ type ConnectionState = "disconnected" | "connecting" | "connected" | "reconnecti
|
|
|
4976
5046
|
declare class ContractWatcher {
|
|
4977
5047
|
private config;
|
|
4978
5048
|
private contracts;
|
|
5049
|
+
/** In-memory and process-lifetime; never persisted. */
|
|
5050
|
+
private watchedScripts;
|
|
4979
5051
|
private subscriptionId?;
|
|
4980
5052
|
private abortController?;
|
|
4981
5053
|
private isWatching;
|
|
@@ -5045,6 +5117,19 @@ declare class ContractWatcher {
|
|
|
5045
5117
|
* are unaffected.
|
|
5046
5118
|
*/
|
|
5047
5119
|
getWatchedContracts(): Contract[];
|
|
5120
|
+
/**
|
|
5121
|
+
* Every script the subscription must carry. Wider than
|
|
5122
|
+
* {@link getWatchedContracts}, which stays the sync scope.
|
|
5123
|
+
*/
|
|
5124
|
+
private getSubscribedScripts;
|
|
5125
|
+
/** @see IContractManager.watchScript for the delivery and filter contract. */
|
|
5126
|
+
addWatchedScript(script: string, options?: {
|
|
5127
|
+
label?: string;
|
|
5128
|
+
}): Promise<void>;
|
|
5129
|
+
/** Stop watching a script added by {@link addWatchedScript}. */
|
|
5130
|
+
removeWatchedScript(script: string): Promise<void>;
|
|
5131
|
+
/** Every script registered via {@link addWatchedScript}. */
|
|
5132
|
+
getWatchedScripts(): WatchedScript[];
|
|
5048
5133
|
/**
|
|
5049
5134
|
* Get virtual outputs for contracts, grouped by contract script.
|
|
5050
5135
|
* @see WalletRepository for `repo`
|
|
@@ -5101,6 +5186,15 @@ declare class ContractWatcher {
|
|
|
5101
5186
|
*/
|
|
5102
5187
|
private startFailsafePolling;
|
|
5103
5188
|
private pollAllContracts;
|
|
5189
|
+
/**
|
|
5190
|
+
* Poll watch-only scripts against the indexer and emit the delta.
|
|
5191
|
+
*
|
|
5192
|
+
* Separate from {@link pollContracts} because that one diffs the wallet
|
|
5193
|
+
* repository, which is permanently empty for a script this wallet does not
|
|
5194
|
+
* own — reusing it would report every live output as spent on every tick.
|
|
5195
|
+
* Not a second poll loop: same timer and callers, different source.
|
|
5196
|
+
*/
|
|
5197
|
+
private pollWatchedScripts;
|
|
5104
5198
|
/**
|
|
5105
5199
|
* Poll specific contracts and emit events for changes.
|
|
5106
5200
|
*/
|
|
@@ -5127,7 +5221,7 @@ declare class ContractWatcher {
|
|
|
5127
5221
|
/**
|
|
5128
5222
|
* Update the subscription with scripts that should be watched.
|
|
5129
5223
|
*
|
|
5130
|
-
* @see
|
|
5224
|
+
* @see getSubscribedScripts
|
|
5131
5225
|
*/
|
|
5132
5226
|
private updateSubscription;
|
|
5133
5227
|
/**
|
|
@@ -5150,6 +5244,8 @@ declare class ContractWatcher {
|
|
|
5150
5244
|
* non-owning contracts that then never reconciled.
|
|
5151
5245
|
*/
|
|
5152
5246
|
private processSubscriptionVtxos;
|
|
5247
|
+
/** As {@link emitVtxoEvent}, less the `contract` and the annotation. */
|
|
5248
|
+
private emitWatchedScriptEvent;
|
|
5153
5249
|
/**
|
|
5154
5250
|
* Emit a virtual output event for a contract.
|
|
5155
5251
|
*/
|
|
@@ -6227,4 +6323,4 @@ interface IReadonlyWallet {
|
|
|
6227
6323
|
clear(): Promise<void>;
|
|
6228
6324
|
}
|
|
6229
6325
|
|
|
6230
|
-
export { type BatchFailedEvent as $, type ArkTransaction as A, type IntentRepository as B, type ContractRepository as C, type ArkIntent as D, type ExtendedCoin as E, type IntentFilter as F, type GetVtxosFilter as G, type VirtualTxRepository as H, type IWallet as I, type VirtualTx as J, type VtxoBranch as K, ChainedTxType as L, type Network as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, CSVMultisigTapscript as P, type BatchStartedEvent as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotificationEvent as T, type TreeSigningStartedEvent as U, VtxoScript as V, type WalletRepository as W, TxTree as X, type TreeNoncesEvent as Y, type BatchFinalizationEvent as Z, type BatchFinalizedEvent as _, type Identity as a, type
|
|
6326
|
+
export { type BatchFailedEvent as $, type ArkTransaction as A, type IntentRepository as B, type ContractRepository as C, type ArkIntent as D, type ExtendedCoin as E, type IntentFilter as F, type GetVtxosFilter as G, type VirtualTxRepository as H, type IWallet as I, type VirtualTx as J, type VtxoBranch as K, ChainedTxType as L, type Network as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, CSVMultisigTapscript as P, type BatchStartedEvent as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotificationEvent as T, type TreeSigningStartedEvent as U, VtxoScript as V, type WalletRepository as W, TxTree as X, type TreeNoncesEvent as Y, type BatchFinalizationEvent as Z, type BatchFinalizedEvent as _, type Identity as a, type PathContext as a$, type TreeTxEvent as a0, type TreeSignatureEvent as a1, type DescriptorProvider as a2, type IReadonlyWallet as a3, type ReadonlyIdentity as a4, type OnchainProvider as a5, type DelegateProvider as a6, type ReadonlyWalletConfig as a7, type ExitCaptureMode as a8, type ExitDataSource as a9, type FeeInfo as aA, type CreateContractParams as aB, type GetContractsFilter as aC, type GetSpendablePathsOptions as aD, type GetAllSpendingPathsOptions as aE, type IssuanceParams as aF, type ReissuanceParams as aG, type BurnParams as aH, type RenewVtxosOptions as aI, type WatchedScript as aJ, type PathSelection as aK, type ContractEvent as aL, type AssetDetails as aM, type IssuanceResult as aN, type DelegateInfo as aO, type MigrationGlobalSkipReason as aP, type MigrationLegSkipReason as aQ, type SignerStatus as aR, type StorageConfig as aS, type IVtxoManager as aT, type ExplorerTransaction as aU, type TreeNonces as aV, type TreePartialSigs as aW, type PendingTx as aX, type EncodedVtxoScript as aY, type Status as aZ, type ChainTx as a_, type IReadonlyAssetManager as aa, type ContractSyncState as ab, type RecipientAddressContext as ac, type NetworkName as ad, type ArkInfo as ae, ArkAddress as af, type ContractWithVtxos as ag, selectPendingRecoveryOutpoints as ah, type Coin as ai, ContractManager as aj, type ContractManagerConfig as ak, type SettlementConfig as al, VtxoManager as am, type SignerSession as an, type SignedIntent as ao, Intent as ap, type TimeHeight as aq, type DescriptorSigningRequest as ar, Transaction as as, type IntentFeeConfig as at, type OffchainInput as au, FeeAmount as av, type OnchainInput as aw, type FeeOutput as ax, type ContractWatcherConfig as ay, type Asset as az, type WalletConfig as b, type RawTxSource as b$, type ActivityIntent as b0, type ActivityResolver as b1, type ArkIntentState as b2, type ArkTapscript as b3, type AssetMetadata as b4, BITCOIN_EMULATOR_PUBKEY as b5, type BaseWalletConfig as b6, type BatchInfo as b7, type BatchSignableIdentity as b8, CLTVMultisigTapscript as b9, type EventSourceFactory as bA, type EventSourceLike as bB, EventSourceUnavailableError as bC, type ExitChainResolver as bD, type ExtendedContractVtxo as bE, type GroupMembership as bF, type HandlerError as bG, type IDelegatorManager as bH, INTENT_TERMINAL_STATES as bI, IndexerTxType as bJ, type IntentCoin as bK, type KnownMetadata as bL, MUTINYNET_EMULATOR_PUBKEY as bM, type MigrateDeprecatedSignerOptions as bN, type MigrationLegReport as bO, type MigrationVtxoRef as bP, MultisigTapscript as bQ, type NewAddressType as bR, type Nonces as bS, type Output as bT, type PageResponse as bU, type PaginationOptions as bV, PartialSig as bW, type PrevTxSource as bX, PrevTxUnavailableError as bY, type ProviderClass as bZ, REGTEST_EMULATOR_PUBKEY as b_, type CandidateDeps as ba, ChainTxType as bb, type CommitmentTx as bc, ConditionCSVMultisigTapscript as bd, ConditionMultisigTapscript as be, type ContractBalance as bf, type ContractEventCallback as bg, type ContractHandler as bh, type ContractState as bi, type ContractVtxo as bj, type ContractVtxoEvent as bk, ContractWatcher as bl, DEFAULT_VTXO_PAGE_SIZE as bm, DelegateManagerImpl as bn, type DelegateOptions as bo, DelegatorManagerImpl as bp, type DelegatorProvider as bq, type DeprecatedSignerMigrationReport as br, type DeprecatedSignerReport as bs, DigestMismatchError as bt, type Discoverable as bu, type DiscoveredContract as bv, type DiscoveryDeps as bw, ESPLORA_URL as bx, EsploraProvider as by, type EventSourceCapable as bz, type WalletBalance as c, isVtxoExpiringSoon as c$, RestDelegateProvider as c0, RestDelegatorProvider as c1, type ScanContractsOptions as c2, type ScanResult as c3, type ScheduledSession as c4, SettlementEventType as c5, type SignRequest as c6, type SignerClassification as c7, type SignerSet as c8, type SubscriptionEvent as c9, classifyAgainstSignerSet as cA, classifyContractSigner as cB, collabExitResolver as cC, configureEventSource as cD, createDefaultActivityRegistry as cE, createExitChainResolver as cF, decodeTapscript as cG, defaultEmulatorPubkey as cH, getConfiguredEventSource as cI, getNetwork as cJ, getRandomId as cK, getSequence as cL, hasCandidates as cM, hasTerminalSpend as cN, isBatchSignable as cO, isContractVtxoEvent as cP, isCooperativelyMigratable as cQ, isDiscoverable as cR, isEventSourceUnavailableError as cS, isExpired as cT, isPastExpiry as cU, isRecoverable as cV, isSigningIdentity as cW, isSpendable as cX, isSubdust as cY, isTerminalIntentState as cZ, isVirtualCoin as c_, type SubscriptionHeartbeat as ca, type SweepTxNotification as cb, type TapLeaves as cc, TapTreeCoder as cd, TapscriptType as ce, type Tx as cf, type TxHistoryRecord as cg, type TxKey as ch, type TxNotification as ci, type TxTag as cj, type TxTreeNode as ck, TxType as cl, type VirtualStatus as cm, type Vtxo as cn, type VtxoChain as co, type VtxoType as cp, type WalletMode as cq, type WithPrevTx as cr, assertAllowedSighashTypes as cs, assetMintResolver as ct, attachPrevArkTxs as cu, attachPrevoutTxs as cv, boardingResolver as cw, canRecoverOnchain as cx, canSpendOffchain as cy, canSweepOnchain as cz, ActivityRegistry as d, networks as d0, resolveEmulatorPubkey as d1, resolveEventSource as d2, resolvePrevTxs as d3, scriptFromTapLeafScript as d4, signerSetFromInfo as d5, toXOnlySignerHex as d6, withPrevTxs as d7, type TapscriptDeriving as d8, type Activity as e, type IContractManager as f, type GetNewAddressesOptions as g, type NewAddress as h, type IDelegateManager as i, type SettleParams as j, type SettlementEvent as k, type SendParams as l, type IAssetManager as m, RestArkProvider as n, RestIndexerProvider as o, type SubscriptionResponse as p, type ArkProvider as q, type IndexerProvider as r, type RelativeTimelock as s, type TapLeafScript as t, type VirtualCoin as u, type Contract as v, type ExtendedVirtualCoin as w, type VtxoRepositoryKey as x, type WalletState as y, type ContractFilter as z };
|