@arkade-os/sdk 0.4.73 → 0.4.75

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 (79) 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-5k0H_cDM.d.cts} +2 -2
  8. package/dist/{asyncStorageTaskQueue-C5IwA_Hs.d.ts → asyncStorageTaskQueue-DjwCbb07.d.ts} +2 -2
  9. package/dist/{chunk-L7IEXVXI.cjs → chunk-2Q2PYU3Y.cjs} +10 -10
  10. package/dist/{chunk-L7IEXVXI.cjs.map → chunk-2Q2PYU3Y.cjs.map} +1 -1
  11. package/dist/{chunk-QX2M67YI.js → chunk-2ULUCL6A.js} +21 -22
  12. package/dist/chunk-2ULUCL6A.js.map +1 -0
  13. package/dist/{chunk-G5RPUZJE.js → chunk-4GLSOP6L.js} +12 -5
  14. package/dist/chunk-4GLSOP6L.js.map +1 -0
  15. package/dist/{chunk-C4RKZY7D.cjs → chunk-EHJYR4E5.cjs} +827 -580
  16. package/dist/chunk-EHJYR4E5.cjs.map +1 -0
  17. package/dist/{chunk-YHJJSLE5.js → chunk-FTLPTF3R.js} +391 -147
  18. package/dist/chunk-FTLPTF3R.js.map +1 -0
  19. package/dist/{chunk-KJ5E646Y.cjs → chunk-J5EX3OMM.cjs} +8 -4
  20. package/dist/chunk-J5EX3OMM.cjs.map +1 -0
  21. package/dist/{chunk-M6HIWM5N.js → chunk-PS564TAU.js} +3 -3
  22. package/dist/{chunk-M6HIWM5N.js.map → chunk-PS564TAU.js.map} +1 -1
  23. package/dist/{chunk-D5DLGVN4.cjs → chunk-SH23SRZE.cjs} +17 -17
  24. package/dist/{chunk-D5DLGVN4.cjs.map → chunk-SH23SRZE.cjs.map} +1 -1
  25. package/dist/{chunk-5YCAC6XE.js → chunk-SKAL4MCW.js} +4 -4
  26. package/dist/{chunk-5YCAC6XE.js.map → chunk-SKAL4MCW.js.map} +1 -1
  27. package/dist/{chunk-OV4GLPZI.js → chunk-UKFA7NVE.js} +8 -4
  28. package/dist/chunk-UKFA7NVE.js.map +1 -0
  29. package/dist/{chunk-ZLDO4QDR.cjs → chunk-YA3L3WL4.cjs} +31 -32
  30. package/dist/chunk-YA3L3WL4.cjs.map +1 -0
  31. package/dist/{chunk-2D7F5IU3.cjs → chunk-YYWEBYFJ.cjs} +58 -51
  32. package/dist/chunk-YYWEBYFJ.cjs.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-D0v8yT-a.d.cts} +1 -1
  38. package/dist/{delegate-Ckz_TWzM.d.ts → delegate-D_sW61rj.d.ts} +1 -1
  39. package/dist/{hdWalletCapable-DABgAD-T.d.ts → hdWalletCapable-66hG5KQP.d.cts} +3 -11
  40. package/dist/{hdWalletCapable-DA9bJ5eB.d.cts → hdWalletCapable-DHCNbAgl.d.ts} +3 -11
  41. package/dist/{index-DSbDm0Io.d.cts → index-B2JSxDi1.d.cts} +2 -2
  42. package/dist/{index-Dg0-TvBQ.d.cts → index-TZBbMNqA.d.cts} +22 -7
  43. package/dist/{index-Dg0-TvBQ.d.ts → index-TZBbMNqA.d.ts} +22 -7
  44. package/dist/{index-B8xrELXY.d.ts → index-vUeTpifq.d.ts} +2 -2
  45. package/dist/index.cjs +312 -300
  46. package/dist/index.d.cts +89 -29
  47. package/dist/index.d.ts +89 -29
  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-CAAPpdyi.d.cts} +2 -2
  58. package/dist/{taskRunner-DARTFnZN.d.ts → taskRunner-CairkunF.d.ts} +2 -2
  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-2D7F5IU3.cjs.map +0 -1
  73. package/dist/chunk-C4RKZY7D.cjs.map +0 -1
  74. package/dist/chunk-G5RPUZJE.js.map +0 -1
  75. package/dist/chunk-KJ5E646Y.cjs.map +0 -1
  76. package/dist/chunk-OV4GLPZI.js.map +0 -1
  77. package/dist/chunk-QX2M67YI.js.map +0 -1
  78. package/dist/chunk-YHJJSLE5.js.map +0 -1
  79. 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 chunkYYWEBYFJ_cjs = require('../../chunk-YYWEBYFJ.cjs');
4
+ require('../../chunk-J5EX3OMM.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 chunkYYWEBYFJ_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 chunkYYWEBYFJ_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 chunkYYWEBYFJ_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 chunkYYWEBYFJ_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 chunkYYWEBYFJ_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 chunkYYWEBYFJ_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 chunkYYWEBYFJ_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-B2JSxDi1.cjs';
2
+ import '../../index-TZBbMNqA.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-D0v8yT-a.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-vUeTpifq.js';
2
+ import '../../index-TZBbMNqA.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-D_sW61rj.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-4GLSOP6L.js';
2
+ import '../../chunk-UKFA7NVE.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-TZBbMNqA.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-TZBbMNqA.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-TZBbMNqA.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-Ckz_TWzM.js';
5
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-D0v8yT-a.cjs';
6
6
 
7
7
  /** Wall-clock floor for `batchExpiry` outside regtest. */
8
8
  declare const DEFAULT_MIN_BATCH_EXPIRY_SECONDS = 86400n;
@@ -1759,15 +1759,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
1759
1759
  * fields already written by the event reducer (state-event ordering).
1760
1760
  */
1761
1761
  private persistIntentSnapshot;
1762
- /**
1763
- * @internal Sign an on-chain boarding exit / sweep transaction, routing
1764
- * each input to the correct key by its `witnessUtxo.script`: the identity
1765
- * for index-0 / static boarding, the per-index descriptor for a rotated
1766
- * boarding UTXO (plan §6-III.3). Used by
1767
- * {@link VtxoManager.sweepExpiredBoardingUtxos}; without it, the
1768
- * unilateral exit of a rotated boarding UTXO would be signed with the
1769
- * wrong (index-0) key and rejected.
1770
- */
1762
+ signInputsByWitnessScript(tx: Transaction): Promise<Transaction>;
1771
1763
  signOnchainBoardingTx(tx: Transaction): Promise<Transaction>;
1772
1764
  safeRegisterIntent(intent: SignedIntent<Intent.RegisterMessage>, inputs: ExtendedCoin[]): Promise<string>;
1773
1765
  makeRegisterIntentSignature(coins: ExtendedCoin[], outputs: TransactionOutput[], onchainOutputsIndexes: number[], cosignerPubKeys: string[], validAt?: number): Promise<SignedIntent<Intent.RegisterMessage>>;
@@ -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-TZBbMNqA.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-BJp8f6LT.cjs';
5
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-D_sW61rj.js';
6
6
 
7
7
  /** Wall-clock floor for `batchExpiry` outside regtest. */
8
8
  declare const DEFAULT_MIN_BATCH_EXPIRY_SECONDS = 86400n;
@@ -1759,15 +1759,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
1759
1759
  * fields already written by the event reducer (state-event ordering).
1760
1760
  */
1761
1761
  private persistIntentSnapshot;
1762
- /**
1763
- * @internal Sign an on-chain boarding exit / sweep transaction, routing
1764
- * each input to the correct key by its `witnessUtxo.script`: the identity
1765
- * for index-0 / static boarding, the per-index descriptor for a rotated
1766
- * boarding UTXO (plan §6-III.3). Used by
1767
- * {@link VtxoManager.sweepExpiredBoardingUtxos}; without it, the
1768
- * unilateral exit of a rotated boarding UTXO would be signed with the
1769
- * wrong (index-0) key and rejected.
1770
- */
1762
+ signInputsByWitnessScript(tx: Transaction): Promise<Transaction>;
1771
1763
  signOnchainBoardingTx(tx: Transaction): Promise<Transaction>;
1772
1764
  safeRegisterIntent(intent: SignedIntent<Intent.RegisterMessage>, inputs: ExtendedCoin[]): Promise<string>;
1773
1765
  makeRegisterIntentSignature(coins: ExtendedCoin[], outputs: TransactionOutput[], onchainOutputsIndexes: number[], cosignerPubKeys: string[], validAt?: number): Promise<SignedIntent<Intent.RegisterMessage>>;
@@ -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-TZBbMNqA.cjs';
2
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-D0v8yT-a.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.
@@ -4101,6 +4107,15 @@ declare class ContractManager implements IContractManager {
4101
4107
  /** @see ContractManagerConfig.vtxoSyncMaxAgeMs — for factory-built managers. */
4102
4108
  setVtxoSyncMaxAge(maxAgeMs: number): void;
4103
4109
  private markSyncOnline;
4110
+ /**
4111
+ * Why a sync that just succeeded still has not covered everything it should
4112
+ * have. Both reasons outlive the sync that failed to cover them, so neither
4113
+ * is discharged by the next one succeeding — which is the point: a wallet
4114
+ * that reported itself current while the look-ahead band sat behind the
4115
+ * watermark, or while a contract could not be annotated, would be claiming
4116
+ * coverage it never had. `getSyncState()` is the channel apps already watch.
4117
+ */
4118
+ private syncGapReason;
4104
4119
  /** Contracts a sync could not annotate, as `script → reason`. */
4105
4120
  private annotationFailures;
4106
4121
  private annotationDegradedReason;
@@ -4417,11 +4432,11 @@ declare class ContractManager implements IContractManager {
4417
4432
  */
4418
4433
  isWatching(): Promise<boolean>;
4419
4434
  /** @see IContractManager.watchScript */
4420
- watchScript(script: string, options?: {
4435
+ watchScript(script: string | string[], options?: {
4421
4436
  label?: string;
4422
4437
  }): Promise<void>;
4423
4438
  /** @see IContractManager.unwatchScript */
4424
- unwatchScript(script: string): Promise<void>;
4439
+ unwatchScript(script: string | string[]): Promise<void>;
4425
4440
  /** @see IContractManager.getWatchedScripts */
4426
4441
  getWatchedScripts(): Promise<WatchedScript[]>;
4427
4442
  /**
@@ -5161,11 +5176,11 @@ declare class ContractWatcher {
5161
5176
  */
5162
5177
  private getSubscribedScripts;
5163
5178
  /** @see IContractManager.watchScript for the delivery and filter contract. */
5164
- addWatchedScript(script: string, options?: {
5179
+ addWatchedScript(script: string | string[], options?: {
5165
5180
  label?: string;
5166
5181
  }): Promise<void>;
5167
5182
  /** Stop watching a script added by {@link addWatchedScript}. */
5168
- removeWatchedScript(script: string): Promise<void>;
5183
+ removeWatchedScript(script: string | string[]): Promise<void>;
5169
5184
  /** Every script registered via {@link addWatchedScript}. */
5170
5185
  getWatchedScripts(): WatchedScript[];
5171
5186
  /**
@@ -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.
@@ -4101,6 +4107,15 @@ declare class ContractManager implements IContractManager {
4101
4107
  /** @see ContractManagerConfig.vtxoSyncMaxAgeMs — for factory-built managers. */
4102
4108
  setVtxoSyncMaxAge(maxAgeMs: number): void;
4103
4109
  private markSyncOnline;
4110
+ /**
4111
+ * Why a sync that just succeeded still has not covered everything it should
4112
+ * have. Both reasons outlive the sync that failed to cover them, so neither
4113
+ * is discharged by the next one succeeding — which is the point: a wallet
4114
+ * that reported itself current while the look-ahead band sat behind the
4115
+ * watermark, or while a contract could not be annotated, would be claiming
4116
+ * coverage it never had. `getSyncState()` is the channel apps already watch.
4117
+ */
4118
+ private syncGapReason;
4104
4119
  /** Contracts a sync could not annotate, as `script → reason`. */
4105
4120
  private annotationFailures;
4106
4121
  private annotationDegradedReason;
@@ -4417,11 +4432,11 @@ declare class ContractManager implements IContractManager {
4417
4432
  */
4418
4433
  isWatching(): Promise<boolean>;
4419
4434
  /** @see IContractManager.watchScript */
4420
- watchScript(script: string, options?: {
4435
+ watchScript(script: string | string[], options?: {
4421
4436
  label?: string;
4422
4437
  }): Promise<void>;
4423
4438
  /** @see IContractManager.unwatchScript */
4424
- unwatchScript(script: string): Promise<void>;
4439
+ unwatchScript(script: string | string[]): Promise<void>;
4425
4440
  /** @see IContractManager.getWatchedScripts */
4426
4441
  getWatchedScripts(): Promise<WatchedScript[]>;
4427
4442
  /**
@@ -5161,11 +5176,11 @@ declare class ContractWatcher {
5161
5176
  */
5162
5177
  private getSubscribedScripts;
5163
5178
  /** @see IContractManager.watchScript for the delivery and filter contract. */
5164
- addWatchedScript(script: string, options?: {
5179
+ addWatchedScript(script: string | string[], options?: {
5165
5180
  label?: string;
5166
5181
  }): Promise<void>;
5167
5182
  /** Stop watching a script added by {@link addWatchedScript}. */
5168
- removeWatchedScript(script: string): Promise<void>;
5183
+ removeWatchedScript(script: string | string[]): Promise<void>;
5169
5184
  /** Every script registered via {@link addWatchedScript}. */
5170
5185
  getWatchedScripts(): WatchedScript[];
5171
5186
  /**
@@ -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-TZBbMNqA.js';
2
+ import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-D_sW61rj.js';
3
3
  import { Bytes } from '@scure/btc-signer/utils.js';
4
4
 
5
5
  /**