@arkade-os/sdk 0.4.73 → 0.4.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/adapters/expo.cjs +5 -5
  2. package/dist/adapters/expo.d.cts +2 -2
  3. package/dist/adapters/expo.d.ts +2 -2
  4. package/dist/adapters/expo.js +3 -3
  5. package/dist/adapters/indexedDB.cjs +5 -5
  6. package/dist/adapters/indexedDB.js +4 -4
  7. package/dist/{asyncStorageTaskQueue-DA2OdpJ0.d.cts → asyncStorageTaskQueue-D1AwLuqn.d.cts} +1 -1
  8. package/dist/{asyncStorageTaskQueue-C5IwA_Hs.d.ts → asyncStorageTaskQueue-aCaOBGTS.d.ts} +1 -1
  9. package/dist/{chunk-D5DLGVN4.cjs → chunk-AS3W34MG.cjs} +17 -17
  10. package/dist/{chunk-D5DLGVN4.cjs.map → chunk-AS3W34MG.cjs.map} +1 -1
  11. package/dist/{chunk-2D7F5IU3.cjs → chunk-DXLVCFVK.cjs} +49 -49
  12. package/dist/{chunk-2D7F5IU3.cjs.map → chunk-DXLVCFVK.cjs.map} +1 -1
  13. package/dist/{chunk-QX2M67YI.js → chunk-J3XVGWMP.js} +21 -22
  14. package/dist/chunk-J3XVGWMP.js.map +1 -0
  15. package/dist/{chunk-ZLDO4QDR.cjs → chunk-J4ZR4VEM.cjs} +31 -32
  16. package/dist/chunk-J4ZR4VEM.cjs.map +1 -0
  17. package/dist/{chunk-KJ5E646Y.cjs → chunk-KMPNH7NS.cjs} +8 -4
  18. package/dist/chunk-KMPNH7NS.cjs.map +1 -0
  19. package/dist/{chunk-5YCAC6XE.js → chunk-KPLQN4M4.js} +4 -4
  20. package/dist/{chunk-5YCAC6XE.js.map → chunk-KPLQN4M4.js.map} +1 -1
  21. package/dist/{chunk-G5RPUZJE.js → chunk-LGB65ZCO.js} +3 -3
  22. package/dist/{chunk-G5RPUZJE.js.map → chunk-LGB65ZCO.js.map} +1 -1
  23. package/dist/{chunk-L7IEXVXI.cjs → chunk-QS6AZE4F.cjs} +10 -10
  24. package/dist/{chunk-L7IEXVXI.cjs.map → chunk-QS6AZE4F.cjs.map} +1 -1
  25. package/dist/{chunk-C4RKZY7D.cjs → chunk-WIHSU3YS.cjs} +560 -476
  26. package/dist/chunk-WIHSU3YS.cjs.map +1 -0
  27. package/dist/{chunk-OV4GLPZI.js → chunk-WJVOFYTQ.js} +8 -4
  28. package/dist/chunk-WJVOFYTQ.js.map +1 -0
  29. package/dist/{chunk-M6HIWM5N.js → chunk-X5BPARRD.js} +3 -3
  30. package/dist/{chunk-M6HIWM5N.js.map → chunk-X5BPARRD.js.map} +1 -1
  31. package/dist/{chunk-YHJJSLE5.js → chunk-ZTGTQP2W.js} +115 -33
  32. package/dist/chunk-ZTGTQP2W.js.map +1 -0
  33. package/dist/contracts/handlers/index.cjs +9 -9
  34. package/dist/contracts/handlers/index.d.cts +3 -3
  35. package/dist/contracts/handlers/index.d.ts +3 -3
  36. package/dist/contracts/handlers/index.js +2 -2
  37. package/dist/{delegate-BJp8f6LT.d.cts → delegate-6N0DKdnG.d.cts} +1 -1
  38. package/dist/{delegate-Ckz_TWzM.d.ts → delegate-z6veQfLI.d.ts} +1 -1
  39. package/dist/{hdWalletCapable-DABgAD-T.d.ts → hdWalletCapable-Bncp-eF0.d.ts} +2 -2
  40. package/dist/{hdWalletCapable-DA9bJ5eB.d.cts → hdWalletCapable-DJT8E8sN.d.cts} +2 -2
  41. package/dist/{index-DSbDm0Io.d.cts → index-BVqlZJwW.d.cts} +2 -2
  42. package/dist/{index-Dg0-TvBQ.d.cts → index-Bxz3cKPA.d.cts} +13 -7
  43. package/dist/{index-Dg0-TvBQ.d.ts → index-Bxz3cKPA.d.ts} +13 -7
  44. package/dist/{index-B8xrELXY.d.ts → index-CKQQ1oOg.d.ts} +2 -2
  45. package/dist/index.cjs +308 -300
  46. package/dist/index.d.cts +47 -24
  47. package/dist/index.d.ts +47 -24
  48. package/dist/index.js +4 -4
  49. package/dist/repositories/realm/index.cjs +19 -19
  50. package/dist/repositories/realm/index.d.cts +2 -2
  51. package/dist/repositories/realm/index.d.ts +2 -2
  52. package/dist/repositories/realm/index.js +5 -5
  53. package/dist/repositories/sqlite/index.cjs +18 -18
  54. package/dist/repositories/sqlite/index.d.cts +2 -2
  55. package/dist/repositories/sqlite/index.d.ts +2 -2
  56. package/dist/repositories/sqlite/index.js +5 -5
  57. package/dist/{taskRunner-C_uAJDsn.d.cts → taskRunner-C26IIg1F.d.cts} +1 -1
  58. package/dist/{taskRunner-DARTFnZN.d.ts → taskRunner-KxtIKYLv.d.ts} +1 -1
  59. package/dist/wallet/expo/background.cjs +14 -14
  60. package/dist/wallet/expo/background.d.cts +3 -3
  61. package/dist/wallet/expo/background.d.ts +3 -3
  62. package/dist/wallet/expo/background.js +6 -6
  63. package/dist/wallet/expo/index.cjs +14 -14
  64. package/dist/wallet/expo/index.d.cts +4 -4
  65. package/dist/wallet/expo/index.d.ts +4 -4
  66. package/dist/wallet/expo/index.js +5 -5
  67. package/dist/worker/expo/index.cjs +9 -9
  68. package/dist/worker/expo/index.d.cts +4 -4
  69. package/dist/worker/expo/index.d.ts +4 -4
  70. package/dist/worker/expo/index.js +5 -5
  71. package/package.json +1 -1
  72. package/dist/chunk-C4RKZY7D.cjs.map +0 -1
  73. package/dist/chunk-KJ5E646Y.cjs.map +0 -1
  74. package/dist/chunk-OV4GLPZI.js.map +0 -1
  75. package/dist/chunk-QX2M67YI.js.map +0 -1
  76. package/dist/chunk-YHJJSLE5.js.map +0 -1
  77. package/dist/chunk-ZLDO4QDR.cjs.map +0 -1
@@ -1,38 +1,38 @@
1
1
  'use strict';
2
2
 
3
- var chunk2D7F5IU3_cjs = require('../../chunk-2D7F5IU3.cjs');
4
- require('../../chunk-KJ5E646Y.cjs');
3
+ var chunkDXLVCFVK_cjs = require('../../chunk-DXLVCFVK.cjs');
4
+ require('../../chunk-KMPNH7NS.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 chunk2D7F5IU3_cjs.ArkadeContractHandler; }
11
+ get: function () { return chunkDXLVCFVK_cjs.ArkadeContractHandler; }
12
12
  });
13
13
  Object.defineProperty(exports, "BoardingContractHandler", {
14
14
  enumerable: true,
15
- get: function () { return chunk2D7F5IU3_cjs.BoardingContractHandler; }
15
+ get: function () { return chunkDXLVCFVK_cjs.BoardingContractHandler; }
16
16
  });
17
17
  Object.defineProperty(exports, "DefaultContractHandler", {
18
18
  enumerable: true,
19
- get: function () { return chunk2D7F5IU3_cjs.DefaultContractHandler; }
19
+ get: function () { return chunkDXLVCFVK_cjs.DefaultContractHandler; }
20
20
  });
21
21
  Object.defineProperty(exports, "DelegateContractHandler", {
22
22
  enumerable: true,
23
- get: function () { return chunk2D7F5IU3_cjs.DelegateContractHandler; }
23
+ get: function () { return chunkDXLVCFVK_cjs.DelegateContractHandler; }
24
24
  });
25
25
  Object.defineProperty(exports, "VHTLCContractHandler", {
26
26
  enumerable: true,
27
- get: function () { return chunk2D7F5IU3_cjs.VHTLCContractHandler; }
27
+ get: function () { return chunkDXLVCFVK_cjs.VHTLCContractHandler; }
28
28
  });
29
29
  Object.defineProperty(exports, "VHTLCV2ContractHandler", {
30
30
  enumerable: true,
31
- get: function () { return chunk2D7F5IU3_cjs.VHTLCV2ContractHandler; }
31
+ get: function () { return chunkDXLVCFVK_cjs.VHTLCV2ContractHandler; }
32
32
  });
33
33
  Object.defineProperty(exports, "contractHandlers", {
34
34
  enumerable: true,
35
- get: function () { return chunk2D7F5IU3_cjs.contractHandlers; }
35
+ get: function () { return chunkDXLVCFVK_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-DSbDm0Io.cjs';
2
- import '../../index-Dg0-TvBQ.cjs';
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-BVqlZJwW.cjs';
2
+ import '../../index-Bxz3cKPA.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-BJp8f6LT.cjs';
7
+ import '../../delegate-6N0DKdnG.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-B8xrELXY.js';
2
- import '../../index-Dg0-TvBQ.js';
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-CKQQ1oOg.js';
2
+ import '../../index-Bxz3cKPA.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-Ckz_TWzM.js';
7
+ import '../../delegate-z6veQfLI.js';
@@ -1,5 +1,5 @@
1
- export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-G5RPUZJE.js';
2
- import '../../chunk-OV4GLPZI.js';
1
+ export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-LGB65ZCO.js';
2
+ import '../../chunk-WJVOFYTQ.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-Dg0-TvBQ.cjs';
2
+ import { s as RelativeTimelock, V as VtxoScript, t as TapLeafScript } from './index-Bxz3cKPA.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 { s as RelativeTimelock, V as VtxoScript, t as TapLeafScript } from './index-Dg0-TvBQ.js';
2
+ import { s as RelativeTimelock, V as VtxoScript, t as TapLeafScript } from './index-Bxz3cKPA.js';
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-Dg0-TvBQ.js';
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-Bxz3cKPA.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-Ckz_TWzM.js';
5
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-z6veQfLI.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-Dg0-TvBQ.cjs';
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-Bxz3cKPA.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-BJp8f6LT.cjs';
5
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-6N0DKdnG.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 { bh as ContractHandler, s as RelativeTimelock, bu as Discoverable, V as VtxoScript, t as TapLeafScript, d8 as TapscriptDeriving } from './index-Dg0-TvBQ.cjs';
2
- import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-BJp8f6LT.cjs';
1
+ import { bh as ContractHandler, s as RelativeTimelock, bu as Discoverable, V as VtxoScript, t as TapLeafScript, d8 as TapscriptDeriving } from './index-Bxz3cKPA.cjs';
2
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-6N0DKdnG.cjs';
3
3
  import { Bytes } from '@scure/btc-signer/utils.js';
4
4
 
5
5
  /**
@@ -3850,14 +3850,20 @@ interface IContractManager extends Disposable {
3850
3850
  * funding is not missed, but one already recoverable or swept is not
3851
3851
  * reported.
3852
3852
  *
3853
+ * Takes one script or a set. A set costs one subscription update and one
3854
+ * indexer read however many scripts it carries, which is the difference
3855
+ * between registering and re-registering cheaply and paying N round trips
3856
+ * — what a service watching an address per payment does on every restart.
3857
+ *
3853
3858
  * Optional so adding it does not break an embedder with its own
3854
3859
  * `IContractManager`; both shipped implementations provide it for real.
3855
3860
  */
3856
- watchScript?(script: string, options?: {
3861
+ watchScript?(script: string | string[], options?: {
3857
3862
  label?: string;
3858
3863
  }): Promise<void>;
3859
- /** Stop watching a script registered via {@link watchScript}. */
3860
- unwatchScript?(script: string): Promise<void>;
3864
+ /** Stop watching a script registered via {@link watchScript}. Takes one or
3865
+ * a set, and rebuilds the subscription once either way. */
3866
+ unwatchScript?(script: string | string[]): Promise<void>;
3861
3867
  /**
3862
3868
  * Every script registered via {@link watchScript}. Async for the same
3863
3869
  * reason {@link isWatching} is: a service worker answers over the bus.
@@ -4417,11 +4423,11 @@ declare class ContractManager implements IContractManager {
4417
4423
  */
4418
4424
  isWatching(): Promise<boolean>;
4419
4425
  /** @see IContractManager.watchScript */
4420
- watchScript(script: string, options?: {
4426
+ watchScript(script: string | string[], options?: {
4421
4427
  label?: string;
4422
4428
  }): Promise<void>;
4423
4429
  /** @see IContractManager.unwatchScript */
4424
- unwatchScript(script: string): Promise<void>;
4430
+ unwatchScript(script: string | string[]): Promise<void>;
4425
4431
  /** @see IContractManager.getWatchedScripts */
4426
4432
  getWatchedScripts(): Promise<WatchedScript[]>;
4427
4433
  /**
@@ -5161,11 +5167,11 @@ declare class ContractWatcher {
5161
5167
  */
5162
5168
  private getSubscribedScripts;
5163
5169
  /** @see IContractManager.watchScript for the delivery and filter contract. */
5164
- addWatchedScript(script: string, options?: {
5170
+ addWatchedScript(script: string | string[], options?: {
5165
5171
  label?: string;
5166
5172
  }): Promise<void>;
5167
5173
  /** Stop watching a script added by {@link addWatchedScript}. */
5168
- removeWatchedScript(script: string): Promise<void>;
5174
+ removeWatchedScript(script: string | string[]): Promise<void>;
5169
5175
  /** Every script registered via {@link addWatchedScript}. */
5170
5176
  getWatchedScripts(): WatchedScript[];
5171
5177
  /**
@@ -3850,14 +3850,20 @@ interface IContractManager extends Disposable {
3850
3850
  * funding is not missed, but one already recoverable or swept is not
3851
3851
  * reported.
3852
3852
  *
3853
+ * Takes one script or a set. A set costs one subscription update and one
3854
+ * indexer read however many scripts it carries, which is the difference
3855
+ * between registering and re-registering cheaply and paying N round trips
3856
+ * — what a service watching an address per payment does on every restart.
3857
+ *
3853
3858
  * Optional so adding it does not break an embedder with its own
3854
3859
  * `IContractManager`; both shipped implementations provide it for real.
3855
3860
  */
3856
- watchScript?(script: string, options?: {
3861
+ watchScript?(script: string | string[], options?: {
3857
3862
  label?: string;
3858
3863
  }): Promise<void>;
3859
- /** Stop watching a script registered via {@link watchScript}. */
3860
- unwatchScript?(script: string): Promise<void>;
3864
+ /** Stop watching a script registered via {@link watchScript}. Takes one or
3865
+ * a set, and rebuilds the subscription once either way. */
3866
+ unwatchScript?(script: string | string[]): Promise<void>;
3861
3867
  /**
3862
3868
  * Every script registered via {@link watchScript}. Async for the same
3863
3869
  * reason {@link isWatching} is: a service worker answers over the bus.
@@ -4417,11 +4423,11 @@ declare class ContractManager implements IContractManager {
4417
4423
  */
4418
4424
  isWatching(): Promise<boolean>;
4419
4425
  /** @see IContractManager.watchScript */
4420
- watchScript(script: string, options?: {
4426
+ watchScript(script: string | string[], options?: {
4421
4427
  label?: string;
4422
4428
  }): Promise<void>;
4423
4429
  /** @see IContractManager.unwatchScript */
4424
- unwatchScript(script: string): Promise<void>;
4430
+ unwatchScript(script: string | string[]): Promise<void>;
4425
4431
  /** @see IContractManager.getWatchedScripts */
4426
4432
  getWatchedScripts(): Promise<WatchedScript[]>;
4427
4433
  /**
@@ -5161,11 +5167,11 @@ declare class ContractWatcher {
5161
5167
  */
5162
5168
  private getSubscribedScripts;
5163
5169
  /** @see IContractManager.watchScript for the delivery and filter contract. */
5164
- addWatchedScript(script: string, options?: {
5170
+ addWatchedScript(script: string | string[], options?: {
5165
5171
  label?: string;
5166
5172
  }): Promise<void>;
5167
5173
  /** Stop watching a script added by {@link addWatchedScript}. */
5168
- removeWatchedScript(script: string): Promise<void>;
5174
+ removeWatchedScript(script: string | string[]): Promise<void>;
5169
5175
  /** Every script registered via {@link addWatchedScript}. */
5170
5176
  getWatchedScripts(): WatchedScript[];
5171
5177
  /**
@@ -1,5 +1,5 @@
1
- import { bh as ContractHandler, s as RelativeTimelock, bu as Discoverable, V as VtxoScript, t as TapLeafScript, d8 as TapscriptDeriving } from './index-Dg0-TvBQ.js';
2
- import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-Ckz_TWzM.js';
1
+ import { bh as ContractHandler, s as RelativeTimelock, bu as Discoverable, V as VtxoScript, t as TapLeafScript, d8 as TapscriptDeriving } from './index-Bxz3cKPA.js';
2
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-z6veQfLI.js';
3
3
  import { Bytes } from '@scure/btc-signer/utils.js';
4
4
 
5
5
  /**