@arkade-os/sdk 0.4.52 → 0.4.54

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 (81) 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/{ark-B69ugeJw.d.cts → ark-acFuA57I.d.cts} +2 -1
  8. package/dist/{ark-B69ugeJw.d.ts → ark-acFuA57I.d.ts} +2 -1
  9. package/dist/{asyncStorageTaskQueue-DScPdQAy.d.cts → asyncStorageTaskQueue-BO3cvMpP.d.cts} +1 -1
  10. package/dist/{asyncStorageTaskQueue-BImF14sj.d.ts → asyncStorageTaskQueue-DACXtP0I.d.ts} +1 -1
  11. package/dist/chunk-4EIKOJLD.js +2319 -0
  12. package/dist/chunk-4EIKOJLD.js.map +1 -0
  13. package/dist/{chunk-IEMPH7J6.cjs → chunk-53XNU2EL.cjs} +40 -40
  14. package/dist/{chunk-IEMPH7J6.cjs.map → chunk-53XNU2EL.cjs.map} +1 -1
  15. package/dist/{chunk-3ZGANANS.js → chunk-7L3P3EP5.js} +4 -4
  16. package/dist/{chunk-3ZGANANS.js.map → chunk-7L3P3EP5.js.map} +1 -1
  17. package/dist/{chunk-UZLQUWYP.js → chunk-A37WVZ5T.js} +3 -3
  18. package/dist/{chunk-UZLQUWYP.js.map → chunk-A37WVZ5T.js.map} +1 -1
  19. package/dist/{chunk-E6RT5XYB.cjs → chunk-BYJJIITU.cjs} +17 -17
  20. package/dist/{chunk-E6RT5XYB.cjs.map → chunk-BYJJIITU.cjs.map} +1 -1
  21. package/dist/{chunk-ML33GFCH.cjs → chunk-D5LUPJJP.cjs} +837 -437
  22. package/dist/chunk-D5LUPJJP.cjs.map +1 -0
  23. package/dist/chunk-GMUVWKOK.cjs +2407 -0
  24. package/dist/chunk-GMUVWKOK.cjs.map +1 -0
  25. package/dist/{chunk-WIVQWYPZ.js → chunk-QY2YVFZT.js} +4 -4
  26. package/dist/{chunk-WIVQWYPZ.js.map → chunk-QY2YVFZT.js.map} +1 -1
  27. package/dist/{chunk-FZPYPEWN.cjs → chunk-RNECH3TA.cjs} +19 -1367
  28. package/dist/chunk-RNECH3TA.cjs.map +1 -0
  29. package/dist/{chunk-AXCKRS2D.js → chunk-TEHJCEF3.js} +473 -91
  30. package/dist/chunk-TEHJCEF3.js.map +1 -0
  31. package/dist/{chunk-3Z5HK35D.cjs → chunk-YRLBZJYO.cjs} +9 -9
  32. package/dist/{chunk-3Z5HK35D.cjs.map → chunk-YRLBZJYO.cjs.map} +1 -1
  33. package/dist/{chunk-ZK3JITHP.js → chunk-ZOY5JSVA.js} +8 -1327
  34. package/dist/chunk-ZOY5JSVA.js.map +1 -0
  35. package/dist/contracts/handlers/index.cjs +8 -8
  36. package/dist/contracts/handlers/index.d.cts +3 -3
  37. package/dist/contracts/handlers/index.d.ts +3 -3
  38. package/dist/contracts/handlers/index.js +2 -2
  39. package/dist/{delegate-C_Y2YrXC.d.cts → delegate-Ca_wXiYE.d.cts} +1 -1
  40. package/dist/{delegate-BU-Cpyjw.d.ts → delegate-DjwZZi6L.d.ts} +1 -1
  41. package/dist/{index-tzAInyiX.d.cts → index-DFfefdpc.d.cts} +2 -2
  42. package/dist/{index-BWF-C9eh.d.ts → index-Ddq0mIKX.d.ts} +2 -2
  43. package/dist/index.cjs +319 -239
  44. package/dist/index.d.cts +300 -12
  45. package/dist/index.d.ts +300 -12
  46. package/dist/index.js +4 -4
  47. package/dist/repositories/realm/index.cjs +19 -19
  48. package/dist/repositories/realm/index.d.cts +2 -2
  49. package/dist/repositories/realm/index.d.ts +2 -2
  50. package/dist/repositories/realm/index.js +5 -5
  51. package/dist/repositories/sqlite/index.cjs +18 -18
  52. package/dist/repositories/sqlite/index.d.cts +2 -2
  53. package/dist/repositories/sqlite/index.d.ts +2 -2
  54. package/dist/repositories/sqlite/index.js +5 -5
  55. package/dist/{taskRunner-ClwI8jU8.d.cts → taskRunner-DEwlrgId.d.cts} +1 -1
  56. package/dist/{taskRunner-Cf80BqSy.d.ts → taskRunner-DbCNRP31.d.ts} +1 -1
  57. package/dist/wallet/expo/background.cjs +15 -15
  58. package/dist/wallet/expo/background.cjs.map +1 -1
  59. package/dist/wallet/expo/background.d.cts +3 -3
  60. package/dist/wallet/expo/background.d.ts +3 -3
  61. package/dist/wallet/expo/background.js +7 -7
  62. package/dist/wallet/expo/background.js.map +1 -1
  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/{wallet-B6Xiferv.d.cts → wallet-B9rpddG2.d.ts} +2 -2
  68. package/dist/{wallet-CuHAI-eW.d.ts → wallet-ByjM6L20.d.cts} +2 -2
  69. package/dist/worker/expo/index.cjs +9 -9
  70. package/dist/worker/expo/index.d.cts +4 -4
  71. package/dist/worker/expo/index.d.ts +4 -4
  72. package/dist/worker/expo/index.js +5 -5
  73. package/package.json +1 -1
  74. package/dist/chunk-AXCKRS2D.js.map +0 -1
  75. package/dist/chunk-E7HB3GKK.cjs +0 -1030
  76. package/dist/chunk-E7HB3GKK.cjs.map +0 -1
  77. package/dist/chunk-EFNLTS6Q.js +0 -976
  78. package/dist/chunk-EFNLTS6Q.js.map +0 -1
  79. package/dist/chunk-FZPYPEWN.cjs.map +0 -1
  80. package/dist/chunk-ML33GFCH.cjs.map +0 -1
  81. package/dist/chunk-ZK3JITHP.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { K as ReadonlyIdentity, a as Identity, al as DescriptorSigningRequest, am as Transaction, a8 as SignerSession, Q as IntentRepository, af as ArkIntent, ag as IntentFilter, ah as Outpoint, U as VirtualTxRepository, ai as VirtualTx, aj as VtxoBranch, W as WalletRepository, t as ExtendedVirtualCoin, ac as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, ad as WalletState, s as Contract, C as ContractRepository, ae as ContractFilter, an as IntentFeeConfig, ao as OffchainInput, ap as FeeAmount, aq as OnchainInput, ar as FeeOutput, n as ArkProvider, a6 as SettlementConfig, as as ContractWatcherConfig, at as Asset, R as Recipient, I as IWallet, au as FeeInfo, i as SettlementEvent, H as DescriptorProvider, h as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, av as CreateContractParams, aw as GetContractsFilter, r as VirtualCoin, ax as GetSpendablePathsOptions, ay as GetAllSpendingPathsOptions, az as IssuanceParams, aA as ReissuanceParams, aB as BurnParams, aC as RenewVtxosOptions, c as WalletBalance, _ as ContractSyncState, aD as ContractWithVtxos, aE as PathSelection, aF as ContractEvent, aG as AssetDetails, aH as IssuanceResult, aI as DelegateInfo, aJ as MigrationGlobalSkipReason, aK as MigrationLegSkipReason, aL as SignerStatus, J as IReadonlyWallet, d as ActivityRegistry, Z as IReadonlyAssetManager, aM as StorageConfig, e as Activity, N as NormalizedExtendedVirtualCoin, f as IContractManager, j as IAssetManager, g as IDelegateManager, aN as IVtxoManager, O as OnchainProvider, L as Network, $ as NetworkName, a2 as Coin, aO as ExplorerTransaction, q as TapLeafScript, aP as EncodedVtxoScript, a5 as CSVMultisigTapscript, p as RelativeTimelock, V as VtxoScript, aQ as Status, a1 as ArkAddress, aa as Intent, aR as ChainTx, o as IndexerProvider, v as TxTree, aS as PathContext } from './ark-B69ugeJw.cjs';
2
- export { aT as ActivityIntent, aU as ActivityResolver, a0 as ArkInfo, aV as ArkIntentState, aW as ArkTapscript, aX as AssetMetadata, aY as BaseWalletConfig, z as BatchFailedEvent, x as BatchFinalizationEvent, y as BatchFinalizedEvent, aZ as BatchInfo, a_ as BatchSignableIdentity, B as BatchStartedEvent, a$ as CLTVMultisigTapscript, b0 as CandidateDeps, b1 as ChainTxType, ak as ChainedTxType, b2 as CommitmentTx, b3 as ConditionCSVMultisigTapscript, b4 as ConditionMultisigTapscript, b5 as ContractBalance, b6 as ContractEventCallback, b7 as ContractHandler, a3 as ContractManager, a4 as ContractManagerConfig, b8 as ContractState, b9 as ContractVtxo, ba as ContractWatcher, bb as DelegateManagerImpl, bc as DelegateOptions, M as DelegateProvider, bd as DelegatorManagerImpl, be as DelegatorProvider, bf as DeprecatedSignerMigrationReport, bg as DeprecatedSignerReport, bh as DigestMismatchError, bi as Discoverable, bj as DiscoveredContract, bk as DiscoveryDeps, bl as ESPLORA_URL, bm as EsploraProvider, X as ExitCaptureMode, bn as ExitChainResolver, Y as ExitDataSource, bo as ExtendedContractVtxo, bp as GroupMembership, bq as HandlerError, br as IDelegatorManager, bs as INTENT_TERMINAL_STATES, bt as IndexerTxType, bu as KnownMetadata, bv as MigrateDeprecatedSignerOptions, bw as MigrationLegReport, bx as MigrationVtxoRef, by as MultisigTapscript, bz as Nonces, bA as Output, bB as PageResponse, bC as PaginationOptions, bD as PartialSig, bE as ProviderClass, P as ReadonlyWalletConfig, k as RestArkProvider, bF as RestDelegateProvider, bG as RestDelegatorProvider, l as RestIndexerProvider, bH as ScanContractsOptions, bI as ScanResult, bJ as ScheduledSession, bK as SettlementEventType, bL as SignRequest, a9 as SignedIntent, bM as SignerClassification, bN as SignerSet, bO as SubscriptionEvent, bP as SubscriptionHeartbeat, m as SubscriptionResponse, bQ as TapLeaves, bR as TapTreeCoder, bS as TapscriptType, ab as TimeHeight, bT as TreeNonces, w as TreeNoncesEvent, bU as TreePartialSigs, F as TreeSignatureEvent, u as TreeSigningStartedEvent, D as TreeTxEvent, bV as Tx, bW as TxHistoryRecord, bX as TxKey, T as TxNotification, bY as TxTreeNode, bZ as TxType, b_ as VirtualStatus, b$ as Vtxo, c0 as VtxoChain, a7 as VtxoManager, c1 as VtxoType, b as WalletConfig, c2 as WalletMode, c3 as boardingResolver, c4 as canRecoverOnchain, c5 as canSpendOffchain, c6 as classifyAgainstSignerSet, c7 as classifyContractSigner, c8 as createDefaultActivityRegistry, c9 as createExitChainResolver, ca as decodeTapscript, cb as getNetwork, cc as getSequence, cd as hasCandidates, ce as hasTerminalSpend, cf as isBatchSignable, cg as isCooperativelyMigratable, ch as isDiscoverable, ci as isExpired, cj as isPastExpiry, ck as isRecoverable, cl as isSpendable, cm as isSubdust, cn as isTerminalIntentState, co as isVirtualCoin, cp as isVtxoExpiringSoon, cq as networks, cr as signerSetFromInfo, cs as toXOnlySignerHex } from './ark-B69ugeJw.cjs';
3
- import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-tzAInyiX.cjs';
4
- export { n as ArkadeContractHandler, B as BoardingContractHandler, o as BoardingContractParams, D as DefaultContractHandler, q as DefaultContractParams, t as DelegateContractHandler, u as DelegateContractParams, V as VHTLC, x as VHTLCContractHandler, y as VHTLCContractParams, z as contractHandlers } from './index-tzAInyiX.cjs';
5
- import { D as DefaultVtxo } from './delegate-C_Y2YrXC.cjs';
6
- export { a as DelegateVtxo } from './delegate-C_Y2YrXC.cjs';
7
- import { W as Wallet, R as ReadonlyWallet, a as ReceiveRotatorFactory, b as ReceiveRotatorBootOpts, c as ReceiveRotatorBoot, P as ProviderConnectionState, B as Batch } from './wallet-B6Xiferv.cjs';
8
- export { A as ArkError, d as ArkErrorName, e as ArkadeCashClaimResult, f as ArkadeCashCreateError, g as ArkadeCashUnclaimedReason, h as ArkadeCashUnclaimedVtxo, i as BoardingUtxoGroup, I as IncomingFunds, j as ProviderKind, k as ProviderUnavailableError, S as ServerInfoSource, l as isArkError, m as maybeArkError, s as selectVirtualCoins, w as waitForIncomingFunds } from './wallet-B6Xiferv.cjs';
1
+ import { $ as ReadonlyIdentity, a as Identity, al as DescriptorSigningRequest, am as Transaction, ah as SignerSession, x as IntentRepository, y as ArkIntent, z as IntentFilter, O as Outpoint, B as VirtualTxRepository, D as VirtualTx, F as VtxoBranch, W as WalletRepository, t as ExtendedVirtualCoin, u as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, v as WalletState, s as Contract, C as ContractRepository, w as ContractFilter, an as IntentFeeConfig, ao as OffchainInput, ap as FeeAmount, aq as OnchainInput, ar as FeeOutput, n as ArkProvider, af as SettlementConfig, as as ContractWatcherConfig, at as Asset, R as Recipient, I as IWallet, au as FeeInfo, i as SettlementEvent, Z as DescriptorProvider, h as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, av as CreateContractParams, aw as GetContractsFilter, r as VirtualCoin, ax as GetSpendablePathsOptions, ay as GetAllSpendingPathsOptions, az as IssuanceParams, aA as ReissuanceParams, aB as BurnParams, aC as RenewVtxosOptions, c as WalletBalance, a7 as ContractSyncState, aD as ContractWithVtxos, aE as PathSelection, aF as ContractEvent, aG as AssetDetails, aH as IssuanceResult, aI as DelegateInfo, aJ as MigrationGlobalSkipReason, aK as MigrationLegSkipReason, aL as SignerStatus, _ as IReadonlyWallet, d as ActivityRegistry, a6 as IReadonlyAssetManager, aM as StorageConfig, e as Activity, N as NormalizedExtendedVirtualCoin, f as IContractManager, j as IAssetManager, g as IDelegateManager, aN as IVtxoManager, a1 as OnchainProvider, a0 as Network, a8 as NetworkName, ab as Coin, aO as ExplorerTransaction, q as TapLeafScript, aP as EncodedVtxoScript, ae as CSVMultisigTapscript, p as RelativeTimelock, V as VtxoScript, aQ as Status, aa as ArkAddress, aj as Intent, aR as ChainTx, o as IndexerProvider, L as TxTree, aS as PathContext } from './ark-acFuA57I.cjs';
2
+ export { aT as ActivityIntent, aU as ActivityResolver, a9 as ArkInfo, aV as ArkIntentState, aW as ArkTapscript, aX as AssetMetadata, aY as BaseWalletConfig, U as BatchFailedEvent, P as BatchFinalizationEvent, Q as BatchFinalizedEvent, aZ as BatchInfo, a_ as BatchSignableIdentity, J as BatchStartedEvent, a$ as CLTVMultisigTapscript, b0 as CandidateDeps, b1 as ChainTxType, H as ChainedTxType, b2 as CommitmentTx, b3 as ConditionCSVMultisigTapscript, b4 as ConditionMultisigTapscript, b5 as ContractBalance, b6 as ContractEventCallback, b7 as ContractHandler, ac as ContractManager, ad as ContractManagerConfig, b8 as ContractState, b9 as ContractVtxo, ba as ContractWatcher, bb as DelegateManagerImpl, bc as DelegateOptions, a2 as DelegateProvider, bd as DelegatorManagerImpl, be as DelegatorProvider, bf as DeprecatedSignerMigrationReport, bg as DeprecatedSignerReport, bh as DigestMismatchError, bi as Discoverable, bj as DiscoveredContract, bk as DiscoveryDeps, bl as ESPLORA_URL, bm as EsploraProvider, a4 as ExitCaptureMode, bn as ExitChainResolver, a5 as ExitDataSource, bo as ExtendedContractVtxo, bp as GroupMembership, bq as HandlerError, br as IDelegatorManager, bs as INTENT_TERMINAL_STATES, bt as IndexerTxType, bu as KnownMetadata, bv as MigrateDeprecatedSignerOptions, bw as MigrationLegReport, bx as MigrationVtxoRef, by as MultisigTapscript, bz as Nonces, bA as Output, bB as PageResponse, bC as PaginationOptions, bD as PartialSig, bE as ProviderClass, a3 as ReadonlyWalletConfig, k as RestArkProvider, bF as RestDelegateProvider, bG as RestDelegatorProvider, l as RestIndexerProvider, bH as ScanContractsOptions, bI as ScanResult, bJ as ScheduledSession, bK as SettlementEventType, bL as SignRequest, ai as SignedIntent, bM as SignerClassification, bN as SignerSet, bO as SubscriptionEvent, bP as SubscriptionHeartbeat, m as SubscriptionResponse, bQ as TapLeaves, bR as TapTreeCoder, bS as TapscriptType, ak as TimeHeight, bT as TreeNonces, M as TreeNoncesEvent, bU as TreePartialSigs, Y as TreeSignatureEvent, K as TreeSigningStartedEvent, X as TreeTxEvent, bV as Tx, bW as TxHistoryRecord, bX as TxKey, T as TxNotification, bY as TxTreeNode, bZ as TxType, b_ as VirtualStatus, b$ as Vtxo, c0 as VtxoChain, ag as VtxoManager, c1 as VtxoType, b as WalletConfig, c2 as WalletMode, c3 as boardingResolver, c4 as canRecoverOnchain, c5 as canSpendOffchain, c6 as classifyAgainstSignerSet, c7 as classifyContractSigner, c8 as createDefaultActivityRegistry, c9 as createExitChainResolver, ca as decodeTapscript, cb as getNetwork, cc as getSequence, cd as hasCandidates, ce as hasTerminalSpend, cf as isBatchSignable, cg as isCooperativelyMigratable, ch as isDiscoverable, ci as isExpired, cj as isPastExpiry, ck as isRecoverable, cl as isSpendable, cm as isSubdust, cn as isTerminalIntentState, co as isVirtualCoin, cp as isVtxoExpiringSoon, cq as networks, cr as scriptFromTapLeafScript, cs as signerSetFromInfo, ct as toXOnlySignerHex } from './ark-acFuA57I.cjs';
3
+ import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-DFfefdpc.cjs';
4
+ export { n as ArkadeContractHandler, B as BoardingContractHandler, o as BoardingContractParams, D as DefaultContractHandler, q as DefaultContractParams, t as DelegateContractHandler, u as DelegateContractParams, V as VHTLC, x as VHTLCContractHandler, y as VHTLCContractParams, z as contractHandlers } from './index-DFfefdpc.cjs';
5
+ import { D as DefaultVtxo } from './delegate-Ca_wXiYE.cjs';
6
+ export { a as DelegateVtxo } from './delegate-Ca_wXiYE.cjs';
7
+ import { W as Wallet, R as ReadonlyWallet, a as ReceiveRotatorFactory, b as ReceiveRotatorBootOpts, c as ReceiveRotatorBoot, P as ProviderConnectionState, B as Batch } from './wallet-ByjM6L20.cjs';
8
+ export { A as ArkError, d as ArkErrorName, e as ArkadeCashClaimResult, f as ArkadeCashCreateError, g as ArkadeCashUnclaimedReason, h as ArkadeCashUnclaimedVtxo, i as BoardingUtxoGroup, I as IncomingFunds, j as ProviderKind, k as ProviderUnavailableError, S as ServerInfoSource, l as isArkError, m as maybeArkError, s as selectVirtualCoins, w as waitForIncomingFunds } from './wallet-ByjM6L20.cjs';
9
9
  import { Bytes, BTC_NETWORK } from '@scure/btc-signer/utils.js';
10
10
  import { P2TR } from '@scure/btc-signer/payment.js';
11
11
  import { Transaction as Transaction$1, OP, Script, ScriptType } from '@scure/btc-signer';
@@ -2479,8 +2479,8 @@ declare class WalletMessageHandler implements MessageHandler<WalletUpdaterReques
2479
2479
  */
2480
2480
  private getVtxosFromRepo;
2481
2481
  /**
2482
- * Build transaction history from cached virtual outputs without hitting the indexer.
2483
- * Falls back to indexer only for uncached transaction timestamps.
2482
+ * Build transaction history from cached virtual outputs, hitting the indexer only for
2483
+ * uncached timestamps. Best-effort, like the plain Wallet path.
2484
2484
  */
2485
2485
  private buildTransactionHistoryFromCache;
2486
2486
  private ensureContractEventBroadcasting;
@@ -3260,9 +3260,11 @@ declare function hasBoardingTxExpired(coin: ExtendedCoin, boardingTimelock: Rela
3260
3260
  * @param requiredSigners List of required signer pubkeys (hex encoded)
3261
3261
  * @param excludePubkeys List of pubkeys to exclude from verification (hex encoded, e.g., server key not yet signed)
3262
3262
  * @param allowedSighashTypes List of allowed sighash types (defaults to [SigHash.DEFAULT])
3263
+ * @param expectedLeafHash Tapscript leaf hash the signatures must commit to. When omitted, a
3264
+ * signature over any leaf carried by the input is accepted.
3263
3265
  * @throws Error if verification fails
3264
3266
  */
3265
- declare function verifyTapscriptSignatures(tx: Transaction, inputIndex: number, requiredSigners: string[], excludePubkeys?: string[], allowedSighashTypes?: number[]): void;
3267
+ declare function verifyTapscriptSignatures(tx: Transaction, inputIndex: number, requiredSigners: string[], excludePubkeys?: string[], allowedSighashTypes?: number[], expectedLeafHash?: Uint8Array): void;
3266
3268
  /**
3267
3269
  * Merges the tapscript signatures of `signedTx` onto `originalTx`, in place.
3268
3270
  *
@@ -3997,10 +3999,20 @@ declare class Executor implements AsyncIterable<ExecutorEvent> {
3997
3999
  readonly provider: OnchainProvider;
3998
4000
  private readonly pollIntervalMs;
3999
4001
  private readonly feeWallet?;
4002
+ private readonly signal?;
4000
4003
  constructor(pkg: ExitPackage, provider: OnchainProvider, opts?: {
4001
4004
  pollIntervalMs?: number;
4002
4005
  feeWallet?: ExitFeeWallet;
4006
+ /** Abort to stop execution. Iteration then rejects with an error
4007
+ * whose `name` is "AbortError". Already-broadcast transactions are
4008
+ * not recalled; the executor is idempotent, so a later run resumes. */
4009
+ signal?: AbortSignal;
4003
4010
  });
4011
+ /**
4012
+ * Poll delay. Nearly all wall-clock time is spent here, so it must be the
4013
+ * thing that reacts to abort — checking only between polls would leave
4014
+ * cancellation up to a full interval late and the timer still pending.
4015
+ */
4004
4016
  private sleep;
4005
4017
  private status;
4006
4018
  private waitConfirmed;
@@ -4931,6 +4943,280 @@ declare namespace index {
4931
4943
  export { index_ARKADE_OP as ARKADE_OP, index_ARKADE_OPCODES as ARKADE_OPCODES, index_ARKADE_OPCODE_NAMES as ARKADE_OPCODE_NAMES, index_ARKADE_OPCODE_VALUES as ARKADE_OPCODE_VALUES, index_ARKADE_OPS as ARKADE_OPS, index_Arkade as Arkade, index_ArkadeArgType as ArkadeArgType, index_ArkadeArgValue as ArkadeArgValue, type index_ArkadeBatchInput as ArkadeBatchInput, type index_ArkadeConnectOptions as ArkadeConnectOptions, index_ArkadeContract as ArkadeContract, index_ArkadeContractParams as ArkadeContractParams, type index_ArkadeExtendedCoin as ArkadeExtendedCoin, type index_ArkadeExtendedVirtualCoin as ArkadeExtendedVirtualCoin, index_ArkadeFunction as ArkadeFunction, index_ArkadeParamValue as ArkadeParamValue, index_ArkadeProgramScript as ArkadeProgramScript, index_ArkadeScript as ArkadeScript, type index_ArkadeScriptOP as ArkadeScriptOP, type index_ArkadeScriptType as ArkadeScriptType, index_ArkadeSegment as ArkadeSegment, type index_ArkadeSpendResult as ArkadeSpendResult, index_ArkadeTransactionBuilder as ArkadeTransactionBuilder, index_AsmToken as AsmToken, type index_AssetSpec as AssetSpec, bignum as BigNum, type index_CallableFunctions as CallableFunctions, index_CompiledProgramFunction as CompiledProgramFunction, type index_ContractFunctions as ContractFunctions, index_InputDef as InputDef, index_InputRef as InputRef, index_OP as OP, index_OPCODE_NAMES as OPCODE_NAMES, index_OPCODE_VALUES as OPCODE_VALUES, index_Program as Program, index_ProgramKeys as ProgramKeys, index_SUPPORTED_PROGRAM_VERSION as SUPPORTED_PROGRAM_VERSION, index_Script as Script, index_ScriptType as ScriptType, index_SignerRef as SignerRef, index_TapscriptSegment as TapscriptSegment, type index_Utxo as Utxo, index_WitnessRef as WitnessRef, index_arkadeScriptHash as arkadeScriptHash, index_arkadeWitnessHash as arkadeWitnessHash, index_asmToBytes as asmToBytes, index_bytesToASM as bytesToASM, index_computeArkadeScriptPublicKey as computeArkadeScriptPublicKey, index_createArkadeBatchHandler as createArkadeBatchHandler, index_deserializeArkadeContractParams as deserializeArkadeContractParams, index_fromASM as fromASM, index_getOpcodeName as getOpcodeName, index_getOpcodeValue as getOpcodeValue, index_parseArtifact as parseArtifact, index_resolveAsm as resolveAsm, index_serializeArkadeContractParams as serializeArkadeContractParams, index_stringifyArtifact as stringifyArtifact, index_toASM as toASM, index_validateProgram as validateProgram, index_witnessRefToBytes as witnessRefToBytes };
4932
4944
  }
4933
4945
 
4946
+ /** Known BIP21 parameters including Arkade-specific extensions. */
4947
+ interface BIP21Params {
4948
+ address?: string;
4949
+ amount?: number;
4950
+ label?: string;
4951
+ message?: string;
4952
+ /** Optional Arkade address parameter. */
4953
+ ark?: string;
4954
+ /** Optional Silent Payment address parameter. */
4955
+ sp?: string;
4956
+ [key: string]: string | number | undefined;
4957
+ }
4958
+ /** Result returned by `BIP21.parse`. */
4959
+ interface BIP21ParseResult {
4960
+ originalString: string;
4961
+ params: BIP21Params;
4962
+ }
4963
+ declare enum BIP21Error {
4964
+ INVALID_URI = "Invalid BIP21 URI",
4965
+ INVALID_ADDRESS = "Invalid address"
4966
+ }
4967
+ declare class BIP21 {
4968
+ /**
4969
+ * Create a BIP21 URI from the provided parameters.
4970
+ *
4971
+ * @param params - BIP21 parameters to encode
4972
+ * @returns Encoded BIP21 URI
4973
+ */
4974
+ static create(params: BIP21Params): string;
4975
+ /**
4976
+ * Integer-sats amount encoded in a BIP21 URI (`amount=` is BTC), or
4977
+ * `undefined` when absent or the URI is unparseable. Shared by the payment
4978
+ * rails, which accept either a bare address or a BIP21 URI.
4979
+ *
4980
+ * @param uri - BIP21 URI (or bare address) to read the amount from
4981
+ * @returns The amount in satoshis, or `undefined`
4982
+ */
4983
+ static amountSats(uri: string): number | undefined;
4984
+ /**
4985
+ * Parse a BIP21 URI and return its decoded parameters.
4986
+ *
4987
+ * @param uri - BIP21 URI to parse
4988
+ * @returns Parsed BIP21 URI data
4989
+ * @throws Error if the URI does not start with the `bitcoin:` scheme
4990
+ */
4991
+ static parse(uri: string): BIP21ParseResult;
4992
+ }
4993
+
4994
+ type PaymentStatus = "pending" | "sent" | "settled" | "failed";
4995
+ interface RouteResult {
4996
+ railId: string;
4997
+ txid?: string;
4998
+ preimage?: string;
4999
+ swapId?: string;
5000
+ }
5001
+ /** An in-flight payment. Observe it — its outcome may also arrive out-of-band
5002
+ * (swap monitor / webhook) and surface as a tx in the wallet's history. */
5003
+ interface PaymentHandle {
5004
+ readonly id: string;
5005
+ readonly status: PaymentStatus;
5006
+ /** Progress stream; returns an unsubscribe fn. Replays the latest update.
5007
+ * A terminal `"failed"` update carries the rejection in `error` (for swap rails
5008
+ * a `SwapError` whose `isRefundable`/`pendingSwap` drive recovery). */
5009
+ subscribe(fn: (u: {
5010
+ status: PaymentStatus;
5011
+ result?: RouteResult;
5012
+ error?: unknown;
5013
+ }) => void): () => void;
5014
+ /** OPTIONAL await — resolves on a terminal result, rejects on the timeout.
5015
+ * Fire-and-forget rails may never resolve it; that is allowed. */
5016
+ settled(opts?: {
5017
+ timeoutMs?: number;
5018
+ }): Promise<RouteResult>;
5019
+ }
5020
+ /**
5021
+ * A priced route. The three amounts are **receiver-exact** and mean the same
5022
+ * thing on every rail, so `options()` can be ranked on cost and a rail swapped
5023
+ * without changing what the recipient gets:
5024
+ *
5025
+ * - `amount` — sats delivered **to the recipient**.
5026
+ * - `fee` — sats charged **on top**, by the rail and its counterparty.
5027
+ * - `total` — `amount + fee`; the sats that leave the wallet.
5028
+ *
5029
+ * Rails whose underlying primitive *deducts* its fee (the collaborative exit)
5030
+ * gross the amount up to honour this; rails that add it on top pass it through.
5031
+ *
5032
+ * `fee` is a pre-send estimate wherever the true cost is only fixed later: the
5033
+ * swap rails quote from Boltz's advertised pricing and are superseded by the
5034
+ * amount Boltz returns at swap creation, and the collaborative exit does not
5035
+ * include the per-input intent fees, which depend on the VTXO selection made at
5036
+ * settlement. Treat it as a display and ranking figure, not a guarantee.
5037
+ */
5038
+ interface RouteQuote {
5039
+ railId: string;
5040
+ /** Sats delivered to the recipient. */
5041
+ amount: number;
5042
+ /** Sats charged on top of {@link amount}; an estimate on the swap rails. */
5043
+ fee: number;
5044
+ /** `amount + fee` — what leaves the wallet. */
5045
+ total: number;
5046
+ /** Execute. Returns an observable handle, never a bare result. */
5047
+ send(): Promise<PaymentHandle>;
5048
+ meta?: Record<string, unknown>;
5049
+ }
5050
+ interface RouterPreferences {
5051
+ /** Ordered rail ids; first matching+available wins. Default ships in the factory. */
5052
+ priority?: string[];
5053
+ disabled?: string[];
5054
+ caps?: Record<string, unknown>;
5055
+ /** route() behaviour when >1 option survives ranking. Default "first". */
5056
+ tieBreak?: "first" | "require-choice";
5057
+ }
5058
+ interface RouterContext {
5059
+ wallet: Wallet;
5060
+ /** Loosely typed in core to avoid a dependency on boltz-swap; swap rails cast it. */
5061
+ swaps?: unknown;
5062
+ prefs: RouterPreferences;
5063
+ }
5064
+ /** A payment request: the raw target plus an optional explicit amount. Rails
5065
+ * self-extract their target from `raw` (bare address/invoice or a BIP21 URI);
5066
+ * `amount` supplements or overrides any amount encoded in `raw`. */
5067
+ interface PaymentRequest {
5068
+ /** Raw target: bare address/invoice, or a BIP21 URI. */
5069
+ raw: string;
5070
+ /** Explicit sats; supplements/overrides any amount encoded in `raw`. */
5071
+ amount?: number;
5072
+ }
5073
+ /** A payment rail — registered by id, mirrors the ActivityRegistry resolver shape. */
5074
+ interface PaymentRail {
5075
+ id: string;
5076
+ /** Classification only — amount-blind; takes the request for uniformity. */
5077
+ match(req: PaymentRequest, ctx: RouterContext): boolean;
5078
+ /** Availability gate — where a rail drops itself for an out-of-limits amount. */
5079
+ available?(req: PaymentRequest, ctx: RouterContext): boolean | Promise<boolean>;
5080
+ quote(req: PaymentRequest, ctx: RouterContext): Promise<RouteQuote>;
5081
+ }
5082
+ interface PaymentOption {
5083
+ railId: string;
5084
+ /** Lazy — resolves fee/amount + prepares execution only when called. The
5085
+ * amount is fixed by the request, so this is no-arg. */
5086
+ quote(): Promise<RouteQuote>;
5087
+ }
5088
+
5089
+ /**
5090
+ * Target classification for the payment rails — format only. No bech32
5091
+ * checksum, no bolt11 decode (core carries no bolt11 dependency), no network
5092
+ * match against the wallet. Rails re-validate before spending: `onchain` via
5093
+ * `Ramps.offboard` → `Address.decode`, `lightning` via `getInvoiceSatoshis`.
5094
+ */
5095
+ /** True if the string decodes as an Arkade address (canonical SDK check). */
5096
+
5097
+ /** True for a BOLT11 invoice (with or without a `lightning:` prefix). HRPs:
5098
+ * mainnet, testnet, signet, regtest, simnet. The amount rides inside the HRP
5099
+ * (`lnbc2500u1…`), so the tail stays loose. */
5100
+ declare const isLightningInvoice: (raw: string) => boolean;
5101
+ /**
5102
+ * True for an LNURL or a Lightning address (`user@host`).
5103
+ *
5104
+ * TODO(lnurl): no rail consumes this yet — LNURL / Lightning-address routing is
5105
+ * planned future work. The predicate is exported ahead of the rail so consumers
5106
+ * can classify these targets today; until the rail lands, `route()` throws
5107
+ * "no rail for" on them. Keep the export (do not flag as unused).
5108
+ */
5109
+ declare const isLnurl: (raw: string) => boolean;
5110
+ /** True for a bech32 (segwit) or base58 (legacy) Bitcoin address, any network —
5111
+ * legacy covers testnet/regtest `m`/`n`/`2` alongside mainnet `1`/`3`. */
5112
+ declare const isBtcAddress: (raw: string) => boolean;
5113
+
5114
+ /** The ark address in `raw`: bare, or the `ark=` param. */
5115
+ declare const arkTarget: (raw: string) => string | undefined;
5116
+ /** The on-chain BTC address in `raw`: bare, or the URI's address. */
5117
+ declare const btcTarget: (raw: string) => string | undefined;
5118
+ /** The bolt11 invoice in `raw` with any `lightning:` prefix stripped: bare, or
5119
+ * the `lightning=` param. */
5120
+ declare const invoiceTarget: (raw: string) => string | undefined;
5121
+
5122
+ /** Throw unless `amt` is a positive integer number of satoshis. */
5123
+ declare function assertSendableAmount(railId: string, amt: number): void;
5124
+ /**
5125
+ * Resolve a rail's send amount from an explicit value or the BIP21 `amount=`
5126
+ * param, validated as a positive integer number of satoshis. Rejecting here
5127
+ * keeps the router from surfacing a `{ amount: 0 }` quote that only fails later
5128
+ * in wallet/swap code.
5129
+ */
5130
+ declare function resolveSendAmount(railId: string, raw: string, amount?: number): number;
5131
+ /**
5132
+ * Non-throwing counterpart of {@link resolveSendAmount}, for availability
5133
+ * checks that must not reject the router: returns the positive-integer sats
5134
+ * from the explicit `amount` or the BIP21 `amount=` param, or `undefined` when
5135
+ * none is present or the value is not a positive integer. The missing-vs-invalid
5136
+ * distinction is left to `resolveSendAmount` at quote time.
5137
+ */
5138
+ declare function tryResolveSendAmount(raw: string, amount?: number): number | undefined;
5139
+
5140
+ type Update = {
5141
+ status: PaymentStatus;
5142
+ result?: RouteResult;
5143
+ error?: unknown;
5144
+ };
5145
+ /** Build an observable handle. `run` starts immediately and gets an `emit` to
5146
+ * stream progress; its resolved value is the terminal result. */
5147
+ declare function makeHandle(id: string, run: (emit: (u: Update) => void) => Promise<RouteResult>): PaymentHandle;
5148
+
5149
+ /** Thrown by `route()` when several options survive and `tieBreak` is
5150
+ * `"require-choice"` — the app must disambiguate via `options()`. */
5151
+ declare class AmbiguousRouteError extends Error {
5152
+ readonly railIds: string[];
5153
+ constructor(railIds: string[]);
5154
+ }
5155
+ /**
5156
+ * Registry-based payment router. Holds id-keyed {@link PaymentRail} entries
5157
+ * (mirroring `ActivityRegistry`): `use()` overwrites by id, `remove()` deletes.
5158
+ * It operates on a {@link PaymentRequest} (raw target + optional amount) —
5159
+ * rails self-extract their target via the shared helpers, and `available()`
5160
+ * gates on the amount. `options()` returns every matching+available rail ranked
5161
+ * by preferences; `route()` is the "take the top" convenience.
5162
+ */
5163
+ declare class PaymentRouter {
5164
+ private readonly ctx;
5165
+ private readonly rails;
5166
+ constructor(ctx: RouterContext);
5167
+ /** Register a rail (or overwrite one with the same id). */
5168
+ use(rail: PaymentRail): this;
5169
+ /** Remove a rail by id. */
5170
+ remove(id: string): this;
5171
+ /** Rails matching `req`, filtered by `disabled`/`available()`, ranked by
5172
+ * `priority` (unlisted rails keep insertion order, after listed ones). */
5173
+ options(req: PaymentRequest, prefs?: RouterPreferences): Promise<PaymentOption[]>;
5174
+ /** Top-ranked option's quote. Throws when nothing routes, or
5175
+ * {@link AmbiguousRouteError} when `tieBreak` is `"require-choice"` and
5176
+ * more than one option survives. */
5177
+ route(req: PaymentRequest, prefs?: RouterPreferences): Promise<RouteQuote>;
5178
+ }
5179
+
5180
+ /**
5181
+ * Off-chain Arkade send. Matches a bare ark address or the `ark=` param of a
5182
+ * unified BIP21 URI, and settles via `Wallet.send`.
5183
+ *
5184
+ * The only rail that is receiver-exact for free: an off-chain send delivers the
5185
+ * full amount and carries no counterparty or on-chain fee, so `fee` is 0 and
5186
+ * `total` equals `amount` (see {@link RouteQuote}).
5187
+ */
5188
+ declare function arkRail(): PaymentRail;
5189
+
5190
+ /**
5191
+ * On-chain BTC send via collaborative exit — the Wallet-only on-chain path (no
5192
+ * swap). Matches a bare BTC address or the on-chain part of a unified BIP21 URI
5193
+ * and offboards VTXOs to the address via {@link Ramps.offboard}, which owns
5194
+ * fee-aware coin selection, dust-safe change, and settlement.
5195
+ *
5196
+ * `offboard` deducts its fee from the amount it is handed, so the rail grosses
5197
+ * the amount up first: the recipient receives exactly `quote.amount`, matching
5198
+ * the receiver-exact semantics of every other rail (see {@link RouteQuote}).
5199
+ * `quote.total` is the offboard amount; the per-input intent fees `offboard`
5200
+ * shaves off the selected VTXOs are additional and depend on the selection, so
5201
+ * they are not part of the quote.
5202
+ *
5203
+ * An explicit amount is mandatory. To sweep the full balance, call
5204
+ * `Ramps.offboard(address, feeInfo)` directly — the router has no amountless path.
5205
+ */
5206
+ declare function onchainRail(): PaymentRail;
5207
+
5208
+ /**
5209
+ * Default payment router with the Wallet-only rails: `ark` (off-chain send) and
5210
+ * `onchain` (collaborative exit). Lightning and chain-swap rails live in
5211
+ * `@arkade-os/boltz-swap`, which ships a `createDefaultPaymentRouter(wallet,
5212
+ * swaps)` overload composing the full set.
5213
+ *
5214
+ * The default priority is `["ark", "lightning", "onchain"]` — the wallet's
5215
+ * Ark > Lightning > on-chain ladder. `"lightning"` is listed so it ranks
5216
+ * correctly once the boltz rail is added; it is simply absent here.
5217
+ */
5218
+ declare function createDefaultPaymentRouter(wallet: Wallet): PaymentRouter;
5219
+
4934
5220
  /**
4935
5221
  * Check if an absolute (CLTV) locktime is currently satisfied.
4936
5222
  *
@@ -5016,6 +5302,8 @@ declare class MessageBusInitializingError extends MessageBusNotInitializedError
5016
5302
  declare class ServiceWorkerTimeoutError extends Error {
5017
5303
  constructor(detail: string);
5018
5304
  }
5305
+ declare function isMessageBusNotInitializedError(error: unknown): boolean;
5306
+ declare function isMessageBusInitializingError(error: unknown): boolean;
5019
5307
 
5020
5308
  declare class ReadonlyAssetManager implements IReadonlyAssetManager {
5021
5309
  readonly indexer: IndexerProvider;
@@ -5084,4 +5372,4 @@ declare class AssetManager extends ReadonlyAssetManager implements IAssetManager
5084
5372
  burn(params: BurnParams): Promise<string>;
5085
5373
  }
5086
5374
 
5087
- export { ARKADE_MAGIC, Activity, ActivityRegistry, type AnchorBumper, ArkAddress, ArkIntent, ArkNote, ArkProvider, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, type ArkadeBatchInput, ArkadeCash, ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, Asset, AssetDetails, AssetManager, BIP322, Batch, BurnParams, CSVMultisigTapscript, ChainTx, Coin, ConditionWitness, type ConnectorTreeNode, Contract, ContractEvent, ContractRepository, ContractRepositoryImpl, ContractSyncState, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DefaultVtxo, DelegateInfo, DelegateNotConfiguredError, DelegatorNotConfiguredError, type DescriptorOptions, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, type BlockHeader as ElectrumBlockHeader, ElectrumOnchainProvider, type TransactionHistory as ElectrumTransactionHistory, type Unspent as ElectrumUnspent, type EmulatorEntry, type EmulatorInfo, EmulatorPacket, type EmulatorProvider, EncodedVtxoScript, Estimator, type ExecutorEvent, type ExitDelay, type ExitFeeWallet, type ExitMode, type ExitOptions, type ExitPackage, type ExitQuote, type ExitStep, type ExitTotals, type ExitVtxoInfo, ExplorerTransaction, ExtendedCoin, ExtendedVirtualCoin, Extension, ExtensionNotFoundError, type ExtensionPacket, FeeAmount, FeeInfo, FeeOutput, FetchError, GetVtxosFilter, HDDescriptorProvider, IAssetManager, IContractManager, IDelegateManager, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, IndexerProvider, Intent, IntentFeeConfig, IntentFilter, IntentRepository, IssuanceParams, IssuanceResult, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, type MigrationStatus, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, OffchainInput, type OffchainTx, OnchainInput, OnchainProvider, OnchainWallet, Outpoint, P2A, type ParsedArkContract, PathContext, PathSelection, PrevArkTxField, PrevoutTxField, ProviderConnectionState, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, Recipient, ReissuanceParams, RelativeTimelock, RenewVtxosOptions, type RequestEnvelope, type ResponseEnvelope, RestEmulatorProvider, SeedIdentity, type SeedIdentityOptions, SendBitcoinParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignerSession, SignerStatus, SingleKey, Status, StorageConfig, TapLeafScript, Transaction, TxTree, TxWeightEstimator, UnilateralExit, UnknownPacket, Unroll, type VSize, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletMessageHandler, WalletNotInitializedError, WalletRepository, WalletRepositoryImpl, WsElectrumChainSource, index as arkade, assembleBtcdTaprootTree, index$1 as asset, buildForfeitTx, buildOffchainTx, buildVersion, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, createAssetPacket, decodeArkContract, deserializeExitPackage, encodeArkContract, getArkPsbtFields, getMigrationStatus, getRandomId, hasBoardingTxExpired, isArkContract, isCltvSatisfied, isCsvSpendable, isRetryableProviderError, isValidArkAddress, migrateWalletRepository, openDatabase, requiresMigration, rollbackMigration, sdkVersion, selectCoinsWithAsset, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, timelockToSequence, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures };
5375
+ export { ARKADE_MAGIC, Activity, ActivityRegistry, AmbiguousRouteError, type AnchorBumper, ArkAddress, ArkIntent, ArkNote, ArkProvider, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, type ArkadeBatchInput, ArkadeCash, ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, Asset, AssetDetails, AssetManager, BIP21, BIP21Error, type BIP21Params, type BIP21ParseResult, BIP322, Batch, BurnParams, CSVMultisigTapscript, ChainTx, Coin, ConditionWitness, type ConnectorTreeNode, Contract, ContractEvent, ContractRepository, ContractRepositoryImpl, ContractSyncState, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DefaultVtxo, DelegateInfo, DelegateNotConfiguredError, DelegatorNotConfiguredError, type DescriptorOptions, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, type BlockHeader as ElectrumBlockHeader, ElectrumOnchainProvider, type TransactionHistory as ElectrumTransactionHistory, type Unspent as ElectrumUnspent, type EmulatorEntry, type EmulatorInfo, EmulatorPacket, type EmulatorProvider, EncodedVtxoScript, Estimator, type ExecutorEvent, type ExitDelay, type ExitFeeWallet, type ExitMode, type ExitOptions, type ExitPackage, type ExitQuote, type ExitStep, type ExitTotals, type ExitVtxoInfo, ExplorerTransaction, ExtendedCoin, ExtendedVirtualCoin, Extension, ExtensionNotFoundError, type ExtensionPacket, FeeAmount, FeeInfo, FeeOutput, FetchError, GetVtxosFilter, HDDescriptorProvider, IAssetManager, IContractManager, IDelegateManager, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, IndexerProvider, Intent, IntentFeeConfig, IntentFilter, IntentRepository, IssuanceParams, IssuanceResult, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, type MigrationStatus, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, OffchainInput, type OffchainTx, OnchainInput, OnchainProvider, OnchainWallet, Outpoint, P2A, type ParsedArkContract, PathContext, PathSelection, type PaymentHandle, type PaymentOption, type PaymentRail, type PaymentRequest, PaymentRouter, type PaymentStatus, PrevArkTxField, PrevoutTxField, ProviderConnectionState, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, Recipient, ReissuanceParams, RelativeTimelock, RenewVtxosOptions, type RequestEnvelope, type ResponseEnvelope, RestEmulatorProvider, type RouteQuote, type RouteResult, type RouterContext, type RouterPreferences, SeedIdentity, type SeedIdentityOptions, SendBitcoinParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignerSession, SignerStatus, SingleKey, Status, StorageConfig, TapLeafScript, Transaction, TxTree, TxWeightEstimator, UnilateralExit, UnknownPacket, Unroll, type VSize, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletMessageHandler, WalletNotInitializedError, WalletRepository, WalletRepositoryImpl, WsElectrumChainSource, arkRail, arkTarget, index as arkade, assembleBtcdTaprootTree, assertSendableAmount, index$1 as asset, btcTarget, buildForfeitTx, buildOffchainTx, buildVersion, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, createAssetPacket, createDefaultPaymentRouter, decodeArkContract, deserializeExitPackage, encodeArkContract, getArkPsbtFields, getMigrationStatus, getRandomId, hasBoardingTxExpired, invoiceTarget, isArkContract, isBtcAddress, isCltvSatisfied, isCsvSpendable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isRetryableProviderError, isValidArkAddress, makeHandle, migrateWalletRepository, onchainRail, openDatabase, requiresMigration, resolveSendAmount, rollbackMigration, sdkVersion, selectCoinsWithAsset, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, timelockToSequence, tryResolveSendAmount, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures };