@arkade-os/sdk 0.4.69 → 0.5.0-rc.1

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 (80) hide show
  1. package/README.md +35 -5
  2. package/dist/adapters/expo.cjs +5 -5
  3. package/dist/adapters/expo.d.cts +2 -2
  4. package/dist/adapters/expo.d.ts +2 -2
  5. package/dist/adapters/expo.js +3 -3
  6. package/dist/adapters/indexedDB.cjs +5 -5
  7. package/dist/adapters/indexedDB.js +4 -4
  8. package/dist/{asyncStorageTaskQueue-BgUJN-3X.d.ts → asyncStorageTaskQueue-DAs_n1xr.d.ts} +2 -2
  9. package/dist/{asyncStorageTaskQueue-Cstx6hS7.d.cts → asyncStorageTaskQueue-DqGRG66E.d.cts} +2 -2
  10. package/dist/{chunk-L5SCQYHF.js → chunk-6COJWPBO.js} +19 -9
  11. package/dist/chunk-6COJWPBO.js.map +1 -0
  12. package/dist/{chunk-XQPN5YP2.cjs → chunk-KB7OP3FG.cjs} +17 -17
  13. package/dist/{chunk-XQPN5YP2.cjs.map → chunk-KB7OP3FG.cjs.map} +1 -1
  14. package/dist/{chunk-XLWDX7QZ.js → chunk-LPK4UBNJ.js} +4 -4
  15. package/dist/{chunk-XLWDX7QZ.js.map → chunk-LPK4UBNJ.js.map} +1 -1
  16. package/dist/{chunk-MNMPGEK2.js → chunk-MEJSBJVH.js} +4 -4
  17. package/dist/{chunk-MNMPGEK2.js.map → chunk-MEJSBJVH.js.map} +1 -1
  18. package/dist/{chunk-HQ4DMGA4.cjs → chunk-MXY23OPP.cjs} +10 -10
  19. package/dist/{chunk-HQ4DMGA4.cjs.map → chunk-MXY23OPP.cjs.map} +1 -1
  20. package/dist/{chunk-WIFL5QYZ.cjs → chunk-Q5WQ4Y2I.cjs} +53 -54
  21. package/dist/chunk-Q5WQ4Y2I.cjs.map +1 -0
  22. package/dist/{chunk-5MLC2HU3.cjs → chunk-RZ2NGS6A.cjs} +19 -7
  23. package/dist/chunk-RZ2NGS6A.cjs.map +1 -0
  24. package/dist/{chunk-YG7T6LI3.js → chunk-SG4XYCS7.js} +3 -3
  25. package/dist/{chunk-YG7T6LI3.js.map → chunk-SG4XYCS7.js.map} +1 -1
  26. package/dist/{chunk-TA7XLEP2.js → chunk-VTE3NYVD.js} +298 -41
  27. package/dist/chunk-VTE3NYVD.js.map +1 -0
  28. package/dist/{chunk-GVHUHTRH.cjs → chunk-WQIWUTYS.cjs} +17 -17
  29. package/dist/{chunk-GVHUHTRH.cjs.map → chunk-WQIWUTYS.cjs.map} +1 -1
  30. package/dist/{chunk-EBYCTLET.cjs → chunk-YEUXBECG.cjs} +727 -469
  31. package/dist/chunk-YEUXBECG.cjs.map +1 -0
  32. package/dist/{chunk-2PPL3O7Z.js → chunk-ZPSUBAWQ.js} +7 -8
  33. package/dist/chunk-ZPSUBAWQ.js.map +1 -0
  34. package/dist/contracts/handlers/index.cjs +9 -9
  35. package/dist/contracts/handlers/index.d.cts +3 -3
  36. package/dist/contracts/handlers/index.d.ts +3 -3
  37. package/dist/contracts/handlers/index.js +2 -2
  38. package/dist/{delegate-BPdzTbwN.d.ts → delegate-B9Bmrns7.d.ts} +1 -1
  39. package/dist/{delegate-DrwIar11.d.cts → delegate-CZzIduW4.d.cts} +1 -1
  40. package/dist/{hdWalletCapable-D4WH35z0.d.cts → hdWalletCapable-BIl3yLVM.d.cts} +103 -28
  41. package/dist/{hdWalletCapable-DyxCiNVE.d.ts → hdWalletCapable-Cr5nGpK5.d.ts} +103 -28
  42. package/dist/{index-TZJvbIaA.d.ts → index-Ci5MmNnK.d.cts} +7 -7
  43. package/dist/{index-BqhpAqqj.d.cts → index-DQ1Hb2w_.d.ts} +7 -7
  44. package/dist/{index-dWRqYSdS.d.ts → index-DnNIOqHS.d.cts} +168 -19
  45. package/dist/{index-dWRqYSdS.d.cts → index-DnNIOqHS.d.ts} +168 -19
  46. package/dist/index.cjs +307 -291
  47. package/dist/index.d.cts +121 -29
  48. package/dist/index.d.ts +121 -29
  49. package/dist/index.js +4 -4
  50. package/dist/repositories/realm/index.cjs +19 -19
  51. package/dist/repositories/realm/index.d.cts +2 -2
  52. package/dist/repositories/realm/index.d.ts +2 -2
  53. package/dist/repositories/realm/index.js +5 -5
  54. package/dist/repositories/sqlite/index.cjs +18 -18
  55. package/dist/repositories/sqlite/index.d.cts +2 -2
  56. package/dist/repositories/sqlite/index.d.ts +2 -2
  57. package/dist/repositories/sqlite/index.js +5 -5
  58. package/dist/{taskRunner-CzYKyJ9c.d.cts → taskRunner-BDb5Ee2J.d.cts} +2 -2
  59. package/dist/{taskRunner-D2fnbqYw.d.ts → taskRunner-F7wNJcF3.d.ts} +2 -2
  60. package/dist/wallet/expo/background.cjs +14 -14
  61. package/dist/wallet/expo/background.d.cts +3 -3
  62. package/dist/wallet/expo/background.d.ts +3 -3
  63. package/dist/wallet/expo/background.js +6 -6
  64. package/dist/wallet/expo/index.cjs +23 -14
  65. package/dist/wallet/expo/index.cjs.map +1 -1
  66. package/dist/wallet/expo/index.d.cts +7 -4
  67. package/dist/wallet/expo/index.d.ts +7 -4
  68. package/dist/wallet/expo/index.js +14 -5
  69. package/dist/wallet/expo/index.js.map +1 -1
  70. package/dist/worker/expo/index.cjs +9 -9
  71. package/dist/worker/expo/index.d.cts +4 -4
  72. package/dist/worker/expo/index.d.ts +4 -4
  73. package/dist/worker/expo/index.js +5 -5
  74. package/package.json +3 -2
  75. package/dist/chunk-2PPL3O7Z.js.map +0 -1
  76. package/dist/chunk-5MLC2HU3.cjs.map +0 -1
  77. package/dist/chunk-EBYCTLET.cjs.map +0 -1
  78. package/dist/chunk-L5SCQYHF.js.map +0 -1
  79. package/dist/chunk-TA7XLEP2.js.map +0 -1
  80. package/dist/chunk-WIFL5QYZ.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { a4 as ReadonlyIdentity, a as Identity, ar as DescriptorSigningRequest, as as Transaction, an as SignerSession, a2 as DescriptorProvider, at as IntentFeeConfig, au as OffchainInput, av as FeeAmount, aw as OnchainInput, ax as FeeOutput, B as IntentRepository, D as ArkIntent, F as IntentFilter, O as Outpoint, H as VirtualTxRepository, J as VirtualTx, K as VtxoBranch, W as WalletRepository, w as ExtendedVirtualCoin, x as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, y as WalletState, v as Contract, C as ContractRepository, z as ContractFilter, I as IWallet, q as ArkProvider, al as SettlementConfig, ay as ContractWatcherConfig, az as Asset, R as Recipient, aA as FeeInfo, k as SettlementEvent, j as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, aB as CreateContractParams, aC as GetContractsFilter, u as VirtualCoin, aD as GetSpendablePathsOptions, aE as GetAllSpendingPathsOptions, g as GetNewAddressesOptions, aF as IssuanceParams, aG as ReissuanceParams, aH as BurnParams, aI as RenewVtxosOptions, c as WalletBalance, ab as ContractSyncState, ag as ContractWithVtxos, aJ as PathSelection, h as NewAddress, aK as ContractEvent, aL as AssetDetails, aM as IssuanceResult, aN as DelegateInfo, aO as MigrationGlobalSkipReason, aP as MigrationLegSkipReason, aQ as SignerStatus, a3 as IReadonlyWallet, d as ActivityRegistry, aa as IReadonlyAssetManager, aR as StorageConfig, e as Activity, N as NormalizedExtendedVirtualCoin, f as IContractManager, m as IAssetManager, l as SendParams, i as IDelegateManager, aS as IVtxoManager, a5 as OnchainProvider, M as Network, ad as NetworkName, ai as Coin, aT as ExplorerTransaction, ae as ArkInfo, ao as SignedIntent, ap as Intent, aU as TreeNonces, aV as TreePartialSigs, T as TxNotificationEvent, aW as PendingTx, t as TapLeafScript, aX as EncodedVtxoScript, P as CSVMultisigTapscript, s as RelativeTimelock, V as VtxoScript, aY as Status, af as ArkAddress, aZ as ChainTx, r as IndexerProvider, X as TxTree, a_ as PathContext } from './index-dWRqYSdS.cjs';
2
- export { a$ as ActivityIntent, b0 as ActivityResolver, b1 as ArkIntentState, b2 as ArkTapscript, b3 as AssetMetadata, b4 as BITCOIN_EMULATOR_PUBKEY, b5 as BaseWalletConfig, $ as BatchFailedEvent, Z as BatchFinalizationEvent, _ as BatchFinalizedEvent, b6 as BatchInfo, b7 as BatchSignableIdentity, Q as BatchStartedEvent, b8 as CLTVMultisigTapscript, b9 as CandidateDeps, ba as ChainTxType, L as ChainedTxType, bb as CommitmentTx, bc as ConditionCSVMultisigTapscript, bd as ConditionMultisigTapscript, be as ContractBalance, bf as ContractEventCallback, bg as ContractHandler, aj as ContractManager, ak as ContractManagerConfig, bh as ContractState, bi as ContractVtxo, bj as ContractWatcher, bk as DEFAULT_VTXO_PAGE_SIZE, bl as DelegateManagerImpl, bm as DelegateOptions, a6 as DelegateProvider, bn as DelegatorManagerImpl, bo as DelegatorProvider, bp as DeprecatedSignerMigrationReport, bq as DeprecatedSignerReport, br as DigestMismatchError, bs as Discoverable, bt as DiscoveredContract, bu as DiscoveryDeps, bv as ESPLORA_URL, bw as EsploraProvider, bx as EventSourceCapable, by as EventSourceFactory, bz as EventSourceLike, bA as EventSourceUnavailableError, a8 as ExitCaptureMode, bB as ExitChainResolver, a9 as ExitDataSource, bC as ExtendedContractVtxo, bD as GroupMembership, bE as HandlerError, bF as IDelegatorManager, bG as INTENT_TERMINAL_STATES, bH as IndexerTxType, bI as IntentCoin, bJ as KnownMetadata, bK as MUTINYNET_EMULATOR_PUBKEY, bL as MigrateDeprecatedSignerOptions, bM as MigrationLegReport, bN as MigrationVtxoRef, bO as MultisigTapscript, bP as NewAddressType, bQ as Nonces, bR as Output, bS as PageResponse, bT as PaginationOptions, bU as PartialSig, bV as PrevTxSource, bW as PrevTxUnavailableError, bX as ProviderClass, bY as REGTEST_EMULATOR_PUBKEY, bZ as RawTxSource, a7 as ReadonlyWalletConfig, n as RestArkProvider, b_ as RestDelegateProvider, b$ as RestDelegatorProvider, o as RestIndexerProvider, c0 as ScanContractsOptions, c1 as ScanResult, c2 as ScheduledSession, c3 as SettlementEventType, c4 as SignRequest, c5 as SignerClassification, c6 as SignerSet, c7 as SubscriptionEvent, c8 as SubscriptionHeartbeat, p as SubscriptionResponse, c9 as SweepTxNotification, ca as TapLeaves, cb as TapTreeCoder, cc as TapscriptType, aq as TimeHeight, Y as TreeNoncesEvent, a1 as TreeSignatureEvent, U as TreeSigningStartedEvent, a0 as TreeTxEvent, cd as Tx, ce as TxHistoryRecord, cf as TxKey, cg as TxNotification, ch as TxTag, ci as TxTreeNode, cj as TxType, ck as VirtualStatus, cl as Vtxo, cm as VtxoChain, am as VtxoManager, cn as VtxoType, b as WalletConfig, co as WalletMode, cp as WithPrevTx, cq as assertAllowedSighashTypes, cr as assetMintResolver, cs as attachPrevArkTxs, ct as attachPrevoutTxs, cu as boardingResolver, cv as canRecoverOnchain, cw as canSpendOffchain, cx as canSweepOnchain, cy as classifyAgainstSignerSet, cz as classifyContractSigner, cA as collabExitResolver, cB as configureEventSource, cC as createDefaultActivityRegistry, cD as createExitChainResolver, cE as decodeTapscript, cF as defaultEmulatorPubkey, cG as getConfiguredEventSource, cH as getNetwork, cI as getRandomId, cJ as getSequence, cK as hasCandidates, cL as hasTerminalSpend, cM as isBatchSignable, cN as isCooperativelyMigratable, cO as isDiscoverable, cP as isEventSourceUnavailableError, cQ as isExpired, cR as isPastExpiry, cS as isRecoverable, cT as isSigningIdentity, cU as isSpendable, cV as isSubdust, cW as isTerminalIntentState, cX as isVirtualCoin, cY as isVtxoExpiringSoon, cZ as networks, c_ as resolveEmulatorPubkey, c$ as resolveEventSource, d0 as resolvePrevTxs, d1 as scriptFromTapLeafScript, d2 as signerSetFromInfo, d3 as toXOnlySignerHex, d4 as withPrevTxs } from './index-dWRqYSdS.cjs';
3
- import { W as Wallet, R as ReadonlyWallet, b as ReceiveRotatorFactory, c as ReceiveRotatorBootOpts, d as ReceiveRotatorBoot, P as ProviderConnectionState, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, B as BatchExpiryPolicy, e as Batch } from './hdWalletCapable-D4WH35z0.cjs';
4
- export { f as AbortError, g as ArkError, h as ArkErrorName, i as ArkadeCashClaimResult, j as ArkadeCashCreateError, k as ArkadeCashUnclaimedReason, l as ArkadeCashUnclaimedVtxo, m as BoardingUtxoGroup, C as CheckpointExitDelayPolicy, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, n as DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, F as ForeignDescriptorError, I as IncomingFunds, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, o as MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, p as ProviderKind, q as ProviderUnavailableError, r as REGTEST_MIN_BATCH_EXPIRY_SECONDS, s as REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, S as SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, t as ServerInfoSource, u as ServerResponseMismatchError, v as WaitForIncomingFundsOptions, w as WalletCannotAllocateAddressError, x as assertValidBatchExpiry, y as assertValidServerUnrollScript, z as defaultBatchExpiryPolicy, E as defaultCheckpointExitDelayPolicy, G as isAddressAllocationCapable, J as isArkError, K as isHDAllocationCapable, L as isHDWalletCapable, N as maybeArkError, O as resolveBatchExpiryPolicy, Q as resolveCheckpointExitDelayPolicy, T as resolveDescriptorSigner, U as selectVirtualCoins, V as signingDescriptorIndex, X as strictSigningDescriptorIndex, Y as waitForIncomingFunds } from './hdWalletCapable-D4WH35z0.cjs';
5
- 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-BqhpAqqj.cjs';
6
- 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 VHTLCV2ContractHandler, E as VHTLCV2ContractParams, F as contractHandlers } from './index-BqhpAqqj.cjs';
7
- import { D as DefaultVtxo } from './delegate-DrwIar11.cjs';
8
- export { a as DelegateVtxo } from './delegate-DrwIar11.cjs';
1
+ import { a8 as ReadonlyIdentity, a as Identity, au as DescriptorSigningRequest, av as Transaction, aq as SignerSession, a6 as DescriptorProvider, aw as IntentFeeConfig, ax as OffchainInput, ay as FeeAmount, az as OnchainInput, aA as FeeOutput, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch, W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, z as Contract, C as ContractRepository, H as ContractFilter, I as IWallet, u as ArkProvider, ao as SettlementConfig, aB as ContractWatcherConfig, aC as Asset, R as Recipient, aD as FeeInfo, o as SettlementEvent, n as SettleParams, S as SendBitcoinParams, G as GetArkadeInfoOptions, aE as GetVtxosOptions, aF as PaginationOptions, f as GetVtxosFilter, aG as CreateContractParams, aH as GetContractsFilter, y as VirtualCoin, aI as GetSpendablePathsOptions, aJ as GetAllSpendingPathsOptions, k as GetNewAddressesOptions, aK as IssuanceParams, aL as ReissuanceParams, aM as BurnParams, aN as RenewVtxosOptions, A as ArkadeInfo, aO as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, af as ContractSyncState, aj as ContractWithVtxos, aP as PathSelection, l as NewAddress, aQ as ContractEvent, aR as AssetDetails, aS as IssuanceResult, aT as DelegateInfo, aU as MigrationGlobalSkipReason, aV as MigrationLegSkipReason, aW as SignerStatus, a7 as IReadonlyWallet, h as ActivityRegistry, ae as IReadonlyAssetManager, aX as StorageConfig, i as Activity, N as NormalizedExtendedVirtualCoin, j as IContractManager, q as IAssetManager, p as SendParams, m as IDelegateManager, aY as IVtxoManager, a9 as OnchainProvider, X as Network, ah as NetworkName, al as Coin, aZ as ExplorerTransaction, a_ as ArkInfo, ar as SignedIntent, as as Intent, a$ as TreeNonces, b0 as TreePartialSigs, T as TxNotificationEvent, b1 as PendingTx, x as TapLeafScript, b2 as EncodedVtxoScript, Y as CSVMultisigTapscript, w as RelativeTimelock, V as VtxoScript, b3 as Status, ai as ArkAddress, b4 as ChainTx, v as IndexerProvider, $ as TxTree, b5 as PathContext } from './index-DnNIOqHS.cjs';
2
+ export { d2 as ActivityIntent, d4 as ActivityResolver, cX as ArkIntentState, ct as ArkTapscript, cB as AssetMetadata, bK as BITCOIN_EMULATOR_PUBKEY, c4 as BaseWalletConfig, a3 as BatchFailedEvent, a1 as BatchFinalizationEvent, a2 as BatchFinalizedEvent, ch as BatchInfo, c2 as BatchSignableIdentity, Z as BatchStartedEvent, bu as CLTVMultisigTapscript, cQ as CandidateDeps, bo as ChainTxType, U as ChainedTxType, ci as CommitmentTx, bs as ConditionCSVMultisigTapscript, bt as ConditionMultisigTapscript, cK as ContractBalance, cJ as ContractEventCallback, cL as ContractHandler, am as ContractManager, an as ContractManagerConfig, cI as ContractState, cH as ContractVtxo, b$ as ContractWatcher, bk as DEFAULT_VTXO_PAGE_SIZE, bd as DelegateManagerImpl, cW as DelegateOptions, aa as DelegateProvider, be as DelegatorManagerImpl, cV as DelegatorProvider, cv as DeprecatedSignerMigrationReport, cw as DeprecatedSignerReport, bj as DigestMismatchError, cN as Discoverable, cP as DiscoveredContract, cO as DiscoveryDeps, bh as ESPLORA_URL, bi as EsploraProvider, db as EventSourceCapable, dc as EventSourceFactory, dd as EventSourceLike, d6 as EventSourceUnavailableError, ac as ExitCaptureMode, cG as ExitChainResolver, ad as ExitDataSource, cM as ExtendedContractVtxo, d3 as GroupMembership, cT as HandlerError, cU as IDelegatorManager, bO as INTENT_TERMINAL_STATES, bn as IndexerTxType, ce as IntentCoin, cC as KnownMetadata, bL as MUTINYNET_EMULATOR_PUBKEY, cu as MigrateDeprecatedSignerOptions, cy as MigrationLegReport, cx as MigrationVtxoRef, br as MultisigTapscript, c5 as NewAddressType, cD as Nonces, cn as Output, cg as PageResponse, cE as PartialSig, cb as PrevTxSource, bA as PrevTxUnavailableError, c7 as ProviderClass, bM as REGTEST_EMULATOR_PUBKEY, cc as RawTxSource, ab as ReadonlyWalletConfig, ag as RecipientArkadeAddressContext, r as RestArkProvider, bf as RestDelegateProvider, bg as RestDelegatorProvider, s as RestIndexerProvider, cS as ScanContractsOptions, cR as ScanResult, cq as ScheduledSession, bp as SettlementEventType, c3 as SignRequest, cz as SignerClassification, cA as SignerSet, cs as SubscriptionEvent, cr as SubscriptionHeartbeat, t as SubscriptionResponse, cp as SweepTxNotification, cf as TapLeaves, bv as TapTreeCoder, ca as TapscriptType, at as TimeHeight, a0 as TreeNoncesEvent, a5 as TreeSignatureEvent, _ as TreeSigningStartedEvent, a4 as TreeTxEvent, cm as Tx, cj as TxHistoryRecord, c9 as TxKey, co as TxNotification, d5 as TxTag, cF as TxTreeNode, bm as TxType, c8 as VirtualStatus, ck as Vtxo, cl as VtxoChain, ap as VtxoManager, de as VtxoType, b as WalletConfig, c6 as WalletMode, cd as WithPrevTx, bB as assertAllowedSighashTypes, bD as assertRecipientArkadeAddress, d0 as assetMintResolver, bx as attachPrevArkTxs, by as attachPrevoutTxs, cY as boardingResolver, bV as canRecoverOnchain, bW as canSpendOffchain, bX as canSweepOnchain, b9 as classifyAgainstSignerSet, b8 as classifyContractSigner, c$ as collabExitResolver, d7 as configureEventSource, d1 as createDefaultActivityRegistry, bP as createExitChainResolver, bq as decodeTapscript, bI as defaultEmulatorPubkey, cZ as getAllNormalizedVtxos, d8 as getConfiguredEventSource, bF as getNetwork, c_ as getNormalizedVtxos, bE as getRandomId, bU as getSequence, c1 as hasCandidates, bY as hasTerminalSpend, b6 as isBatchSignable, bb as isCooperativelyMigratable, c0 as isDiscoverable, d9 as isEventSourceUnavailableError, bT as isExpired, bZ as isPastExpiry, bQ as isRecoverable, b7 as isSigningIdentity, bR as isSpendable, bS as isSubdust, bN as isTerminalIntentState, b_ as isVirtualCoin, bC as isVtxoExpiringSoon, bG as networkFromArkadeInfo, bH as networks, bJ as resolveEmulatorPubkey, da as resolveEventSource, bw as resolvePrevTxs, bl as scriptFromTapLeafScript, ba as signerSetFromInfo, bc as toXOnlySignerHex, bz as withPrevTxs } from './index-DnNIOqHS.cjs';
3
+ import { W as Wallet, R as ReadonlyWallet, b as ReceiveRotatorFactory, c as ReceiveRotatorBootOpts, d as ReceiveRotatorBoot, P as ProviderConnectionState, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, B as BatchExpiryPolicy, e as Batch } from './hdWalletCapable-BIl3yLVM.cjs';
4
+ export { k as AbortError, o as ArkError, p as ArkErrorName, T as ArkadeCashClaimResult, n as ArkadeCashCreateError, U as ArkadeCashUnclaimedReason, V as ArkadeCashUnclaimedVtxo, Q as BoardingUtxoGroup, N as CheckpointExitDelayPolicy, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, I as DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, F as ForeignDescriptorError, O as IncomingFunds, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, K as MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, X as ProviderKind, u as ProviderUnavailableError, z as REGTEST_MIN_BATCH_EXPIRY_SECONDS, J as REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, L as SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, Y as ServerInfoSource, S as ServerResponseMismatchError, l as WaitForIncomingFundsOptions, h as WalletCannotAllocateAddressError, v as assertValidBatchExpiry, C as assertValidServerUnrollScript, x as defaultBatchExpiryPolicy, E as defaultCheckpointExitDelayPolicy, g as isAddressAllocationCapable, q as isArkError, f as isHDAllocationCapable, i as isHDWalletCapable, t as maybeArkError, y as resolveBatchExpiryPolicy, G as resolveCheckpointExitDelayPolicy, r as resolveDescriptorSigner, m as selectVirtualCoins, s as signingDescriptorIndex, j as strictSigningDescriptorIndex, w as waitForIncomingFunds } from './hdWalletCapable-BIl3yLVM.cjs';
5
+ 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-Ci5MmNnK.cjs';
6
+ export { u as ArkadeContractHandler, B as BoardingContractHandler, F as BoardingContractParams, D as DefaultContractHandler, x as DefaultContractParams, o as DelegateContractHandler, y as DelegateContractParams, V as VHTLC, q as VHTLCContractHandler, z as VHTLCContractParams, t as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, n as contractHandlers } from './index-Ci5MmNnK.cjs';
7
+ import { D as DefaultVtxo } from './delegate-CZzIduW4.cjs';
8
+ export { a as DelegateVtxo } from './delegate-CZzIduW4.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';
@@ -1255,6 +1255,16 @@ type ResponseEnvelope = {
1255
1255
  tag: string;
1256
1256
  id?: string;
1257
1257
  error?: Error;
1258
+ /**
1259
+ * `error.name`, carried beside the error as an ordinary string. The
1260
+ * structured-clone algorithm serializes an Error's `name` only from the
1261
+ * built-in whitelist (Error, TypeError, RangeError, …) — a custom name
1262
+ * like `ProviderUnavailableError` reaches the page as `"Error"`. A plain
1263
+ * property survives verbatim, so the page restores it before rejecting.
1264
+ * Absent from workers built before it existed; the page then sees the
1265
+ * clone-normalized name, exactly as it always did.
1266
+ */
1267
+ errorName?: string;
1258
1268
  broadcast?: boolean;
1259
1269
  };
1260
1270
  interface MessageHandler<REQ extends RequestEnvelope = RequestEnvelope, RES extends ResponseEnvelope = ResponseEnvelope> {
@@ -2502,6 +2512,58 @@ type ResponseGetBoardingAddress = ResponseEnvelope & {
2502
2512
  address: string;
2503
2513
  };
2504
2514
  };
2515
+ type RequestGetArkadeInfo = RequestEnvelope & {
2516
+ type: "GET_ARKADE_INFO";
2517
+ payload?: GetArkadeInfoOptions;
2518
+ };
2519
+ type ResponseGetArkadeInfo = ResponseEnvelope & {
2520
+ type: "ARKADE_INFO";
2521
+ payload: {
2522
+ info: ArkadeInfo;
2523
+ };
2524
+ };
2525
+ type RequestIndexerGetVtxos = RequestEnvelope & {
2526
+ type: "INDEXER_GET_VTXOS";
2527
+ payload: {
2528
+ opts: GetVtxosOptions;
2529
+ };
2530
+ };
2531
+ type ResponseIndexerGetVtxos = ResponseEnvelope & {
2532
+ type: "INDEXER_VTXOS";
2533
+ payload: NormalizedVtxoPage;
2534
+ };
2535
+ type RequestIndexerGetVirtualTxs = RequestEnvelope & {
2536
+ type: "INDEXER_GET_VIRTUAL_TXS";
2537
+ payload: {
2538
+ txids: string[];
2539
+ opts?: PaginationOptions;
2540
+ };
2541
+ };
2542
+ type ResponseIndexerGetVirtualTxs = ResponseEnvelope & {
2543
+ type: "INDEXER_VIRTUAL_TXS";
2544
+ payload: Awaited<ReturnType<ArkadeReader["getVirtualTxs"]>>;
2545
+ };
2546
+ type RequestSubmitTx = RequestEnvelope & {
2547
+ type: "SUBMIT_TX";
2548
+ payload: {
2549
+ signedArkTx: string;
2550
+ checkpointTxs: string[];
2551
+ };
2552
+ };
2553
+ type ResponseSubmitTx = ResponseEnvelope & {
2554
+ type: "SUBMIT_TX_SUCCESS";
2555
+ payload: Awaited<ReturnType<ArkadeBroadcaster["submitTx"]>>;
2556
+ };
2557
+ type RequestFinalizeTx = RequestEnvelope & {
2558
+ type: "FINALIZE_TX";
2559
+ payload: {
2560
+ arkTxid: string;
2561
+ finalCheckpointTxs: string[];
2562
+ };
2563
+ };
2564
+ type ResponseFinalizeTx = ResponseEnvelope & {
2565
+ type: "FINALIZE_TX_SUCCESS";
2566
+ };
2505
2567
  type RequestGetBalance = RequestEnvelope & {
2506
2568
  type: "GET_BALANCE";
2507
2569
  };
@@ -3042,8 +3104,8 @@ type RequestRestoreWallet = RequestEnvelope & {
3042
3104
  type ResponseRestoreWallet = ResponseEnvelope & {
3043
3105
  type: "RESTORE_WALLET_SUCCESS";
3044
3106
  };
3045
- type WalletUpdaterRequest = RequestInitWallet | RequestSettle | RequestSendBitcoin | RequestGetAddress | RequestGetBoardingAddress | RequestGetBalance | RequestGetVtxos | RequestGetSpendableVtxos | RequestGetBoardingUtxos | RequestGetTransactionHistory | RequestGetStatus | RequestGetContractSyncState | RequestClear | RequestReloadWallet | RequestSignTransaction | RequestCreateContract | RequestGetContracts | RequestGetContractsWithVtxos | RequestAnnotateVtxos | RequestUpdateContract | RequestDeleteContract | RequestGetSpendablePaths | RequestGetAllSpendingPaths | RequestIsContractManagerWatching | RequestRefreshVtxos | RequestRefreshOutpoints | RequestGetCurrentSigningDescriptor | RequestGetNextSigningDescriptor | RequestGetNewAddresses | RequestGetUsedSigningDescriptors | RequestAdvanceSigningDescriptorWatermark | RequestSend | RequestGetAssetDetails | RequestIssue | RequestReissue | RequestBurn | RequestDelegate | RequestGetDelegateInfo | RequestRecoverVtxos | RequestGetRecoverableBalance | RequestGetExpiringVtxos | RequestRenewVtxos | RequestGetExpiredBoardingUtxos | RequestSweepExpiredBoardingUtxos | RequestMigrateDeprecatedSignerVtxos | RequestGetDeprecatedSignerStatus | RequestRestoreWallet;
3046
- type WalletUpdaterResponse = ResponseEnvelope & (ResponseInitWallet | ResponseSettle | ResponseSettleEvent | ResponseSendBitcoin | ResponseGetAddress | ResponseGetBoardingAddress | ResponseGetBalance | ResponseGetVtxos | ResponseGetSpendableVtxos | ResponseGetBoardingUtxos | ResponseGetTransactionHistory | ResponseGetStatus | ResponseGetContractSyncState | ResponseClear | ResponseReloadWallet | ResponseUtxoUpdate | ResponseVtxoUpdate | ResponseSignTransaction | ResponseCreateContract | ResponseGetContracts | ResponseGetContractsWithVtxos | ResponseAnnotateVtxos | ResponseUpdateContract | ResponseDeleteContract | ResponseGetSpendablePaths | ResponseGetAllSpendingPaths | ResponseIsContractManagerWatching | ResponseRefreshVtxos | ResponseRefreshOutpoints | ResponseGetCurrentSigningDescriptor | ResponseGetNextSigningDescriptor | ResponseGetNewAddresses | ResponseGetUsedSigningDescriptors | ResponseAdvanceSigningDescriptorWatermark | ResponseContractEvent | ResponseSend | ResponseGetAssetDetails | ResponseIssue | ResponseReissue | ResponseBurn | ResponseDelegate | ResponseGetDelegateInfo | ResponseRecoverVtxos | ResponseRecoverVtxosEvent | ResponseGetRecoverableBalance | ResponseGetExpiringVtxos | ResponseRenewVtxos | ResponseRenewVtxosEvent | ResponseGetExpiredBoardingUtxos | ResponseSweepExpiredBoardingUtxos | ResponseMigrateDeprecatedSignerVtxos | ResponseMigrateDeprecatedSignerVtxosEvent | ResponseGetDeprecatedSignerStatus | ResponseRestoreWallet);
3107
+ type WalletUpdaterRequest = RequestInitWallet | RequestSettle | RequestSendBitcoin | RequestGetAddress | RequestGetBoardingAddress | RequestGetArkadeInfo | RequestIndexerGetVtxos | RequestIndexerGetVirtualTxs | RequestSubmitTx | RequestFinalizeTx | RequestGetBalance | RequestGetVtxos | RequestGetSpendableVtxos | RequestGetBoardingUtxos | RequestGetTransactionHistory | RequestGetStatus | RequestGetContractSyncState | RequestClear | RequestReloadWallet | RequestSignTransaction | RequestCreateContract | RequestGetContracts | RequestGetContractsWithVtxos | RequestAnnotateVtxos | RequestUpdateContract | RequestDeleteContract | RequestGetSpendablePaths | RequestGetAllSpendingPaths | RequestIsContractManagerWatching | RequestRefreshVtxos | RequestRefreshOutpoints | RequestGetCurrentSigningDescriptor | RequestGetNextSigningDescriptor | RequestGetNewAddresses | RequestGetUsedSigningDescriptors | RequestAdvanceSigningDescriptorWatermark | RequestSend | RequestGetAssetDetails | RequestIssue | RequestReissue | RequestBurn | RequestDelegate | RequestGetDelegateInfo | RequestRecoverVtxos | RequestGetRecoverableBalance | RequestGetExpiringVtxos | RequestRenewVtxos | RequestGetExpiredBoardingUtxos | RequestSweepExpiredBoardingUtxos | RequestMigrateDeprecatedSignerVtxos | RequestGetDeprecatedSignerStatus | RequestRestoreWallet;
3108
+ type WalletUpdaterResponse = ResponseEnvelope & (ResponseInitWallet | ResponseSettle | ResponseSettleEvent | ResponseSendBitcoin | ResponseGetAddress | ResponseGetBoardingAddress | ResponseGetArkadeInfo | ResponseIndexerGetVtxos | ResponseIndexerGetVirtualTxs | ResponseSubmitTx | ResponseFinalizeTx | ResponseGetBalance | ResponseGetVtxos | ResponseGetSpendableVtxos | ResponseGetBoardingUtxos | ResponseGetTransactionHistory | ResponseGetStatus | ResponseGetContractSyncState | ResponseClear | ResponseReloadWallet | ResponseUtxoUpdate | ResponseVtxoUpdate | ResponseSignTransaction | ResponseCreateContract | ResponseGetContracts | ResponseGetContractsWithVtxos | ResponseAnnotateVtxos | ResponseUpdateContract | ResponseDeleteContract | ResponseGetSpendablePaths | ResponseGetAllSpendingPaths | ResponseIsContractManagerWatching | ResponseRefreshVtxos | ResponseRefreshOutpoints | ResponseGetCurrentSigningDescriptor | ResponseGetNextSigningDescriptor | ResponseGetNewAddresses | ResponseGetUsedSigningDescriptors | ResponseAdvanceSigningDescriptorWatermark | ResponseContractEvent | ResponseSend | ResponseGetAssetDetails | ResponseIssue | ResponseReissue | ResponseBurn | ResponseDelegate | ResponseGetDelegateInfo | ResponseRecoverVtxos | ResponseRecoverVtxosEvent | ResponseGetRecoverableBalance | ResponseGetExpiringVtxos | ResponseRenewVtxos | ResponseRenewVtxosEvent | ResponseGetExpiredBoardingUtxos | ResponseSweepExpiredBoardingUtxos | ResponseMigrateDeprecatedSignerVtxos | ResponseMigrateDeprecatedSignerVtxosEvent | ResponseGetDeprecatedSignerStatus | ResponseRestoreWallet);
3047
3109
  declare class WalletMessageHandler implements MessageHandler<WalletUpdaterRequest, WalletUpdaterResponse> {
3048
3110
  readonly messageTag: string;
3049
3111
  private wallet;
@@ -3383,6 +3445,18 @@ declare class ServiceWorkerReadonlyWallet implements IReadonlyWallet {
3383
3445
  clear(): Promise<void>;
3384
3446
  getAddress(): Promise<string>;
3385
3447
  getBoardingAddress(): Promise<string>;
3448
+ /**
3449
+ * Delegated to the worker, which holds the wallet that owns the connection.
3450
+ * The payload crosses raw — see {@link ResponseGetArkadeInfo} for why.
3451
+ */
3452
+ getArkadeInfo(opts?: GetArkadeInfoOptions): Promise<ArkadeInfo>;
3453
+ /**
3454
+ * An {@link ArkadeReader} that speaks to the worker rather than to the
3455
+ * server. The page holds no provider, so a caller that built its own from a
3456
+ * URL would open a second connection outside the worker's rate gate and
3457
+ * caches — this proxy is what keeps chain reads in one place.
3458
+ */
3459
+ getArkadeReader(): Promise<ArkadeReader>;
3386
3460
  getBalance(): Promise<WalletBalance>;
3387
3461
  getBoardingUtxos(): Promise<ExtendedCoin[]>;
3388
3462
  /**
@@ -3489,6 +3563,13 @@ declare class ServiceWorkerWallet extends ServiceWorkerReadonlyWallet implements
3489
3563
  * that has no business touching it.
3490
3564
  */
3491
3565
  signerForDescriptor(descriptor: string): Promise<Identity>;
3566
+ /**
3567
+ * An {@link ArkadeBroadcaster} proxied to the worker, which holds the
3568
+ * provider. Only `ServiceWorkerWallet` offers one: a readonly worker
3569
+ * refuses `SUBMIT_TX`/`FINALIZE_TX` outright, so exposing it on the
3570
+ * readonly class would promise something the boundary rejects.
3571
+ */
3572
+ getArkadeBroadcaster(): Promise<ArkadeBroadcaster>;
3492
3573
  sendBitcoin(params: SendBitcoinParams): Promise<string>;
3493
3574
  settle(params?: SettleParams, callback?: (event: SettlementEvent) => void): Promise<string>;
3494
3575
  /**
@@ -5734,10 +5815,29 @@ interface ArkadeSpendResult {
5734
5815
  }
5735
5816
  /** The callable spending paths of a contract. */
5736
5817
  type CallableFunctions = Record<string, (...args: ArkadeArgValue[]) => ArkadeTransactionBuilder>;
5818
+ /**
5819
+ * What {@link Arkade} needs from the Arkade server.
5820
+ *
5821
+ * Only `getInfo` is required — see {@link ArkadeConnectOptions.arkade} for why.
5822
+ * Named so a caller building a derivation-only client has a type to import
5823
+ * rather than reaching into the options bag.
5824
+ */
5825
+ type ArkadeServerProvider = Pick<ArkProvider, "getInfo"> & Partial<ArkadeBroadcaster>;
5737
5826
  /** Options for {@link Arkade.connect}. */
5738
5827
  interface ArkadeConnectOptions {
5739
- /** The Ark/Arkade server provider. */
5740
- arkade: Pick<ArkProvider, "getInfo" | "submitTx" | "finalizeTx">;
5828
+ /**
5829
+ * The Arkade server provider.
5830
+ *
5831
+ * Only `getInfo` is required: it is what resolves the server key and
5832
+ * checkpoint closure, and it is all a client needs to derive, register and
5833
+ * inspect contracts. `submitTx`/`finalizeTx` are needed solely to
5834
+ * broadcast, so a client built without them throws at `.send()` — the same
5835
+ * deferred, explicit failure an absent `indexer` gives `getUtxos()` and an
5836
+ * absent `emulator` gives a covenant spend. That lets a caller that already
5837
+ * holds the server info (`wallet.getArkadeInfo()`) connect without a
5838
+ * provider of its own, and without a second `/v1/info` round-trip.
5839
+ */
5840
+ arkade: ArkadeServerProvider;
5741
5841
  /**
5742
5842
  * The co-signing (introspector/emulator) service. Optional: only required for
5743
5843
  * contracts whose functions have an `arkadeScript` (covenant paths). Pure
@@ -5782,7 +5882,7 @@ interface ArkadeConnectOptions {
5782
5882
  * so spinning up contracts is synchronous.
5783
5883
  */
5784
5884
  declare class Arkade {
5785
- readonly arkProvider: Pick<ArkProvider, "getInfo" | "submitTx" | "finalizeTx">;
5885
+ readonly arkProvider: ArkadeServerProvider;
5786
5886
  /** The co-signing service, or undefined for emulator-less (pure tapscript) usage. */
5787
5887
  readonly emulator: EmulatorProvider | undefined;
5788
5888
  readonly network: Network;
@@ -5974,6 +6074,7 @@ declare const index_ArkadeScript: typeof ArkadeScript;
5974
6074
  type index_ArkadeScriptOP = ArkadeScriptOP;
5975
6075
  type index_ArkadeScriptType = ArkadeScriptType;
5976
6076
  declare const index_ArkadeSegment: typeof ArkadeSegment;
6077
+ type index_ArkadeServerProvider = ArkadeServerProvider;
5977
6078
  type index_ArkadeSpendResult = ArkadeSpendResult;
5978
6079
  type index_ArkadeTransactionBuilder = ArkadeTransactionBuilder;
5979
6080
  declare const index_ArkadeTransactionBuilder: typeof ArkadeTransactionBuilder;
@@ -6014,7 +6115,7 @@ declare const index_toASM: typeof toASM;
6014
6115
  declare const index_validateProgram: typeof validateProgram;
6015
6116
  declare const index_witnessRefToBytes: typeof witnessRefToBytes;
6016
6117
  declare namespace index {
6017
- 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 };
6118
+ 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_ArkadeServerProvider as ArkadeServerProvider, 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 };
6018
6119
  }
6019
6120
 
6020
6121
  /** Known BIP21 parameters including Arkade-specific extensions. */
@@ -6106,16 +6207,15 @@ interface PaymentHandle {
6106
6207
  * never chooses, and flags that instead: see `claimFeeDeductedFromPayout`.
6107
6208
  *
6108
6209
  * `fee` is a pre-send estimate wherever the true cost is only fixed later: the
6109
- * swap rails quote from Boltz's advertised pricing and are superseded by the
6110
- * amount Boltz returns at swap creation, and the collaborative exit does not
6111
- * include the per-input intent fees, which depend on the VTXO selection made at
6112
- * settlement. Treat it as a display and ranking figure, not a guarantee.
6210
+ * collaborative exit does not include the per-input intent fees, which depend
6211
+ * on the VTXO selection made at settlement. Treat it as a display and ranking
6212
+ * figure, not a guarantee.
6113
6213
  */
6114
6214
  interface RouteQuote {
6115
6215
  railId: string;
6116
6216
  /** Sats delivered to the recipient. */
6117
6217
  amount: number;
6118
- /** Sats charged on top of {@link amount}; an estimate on the swap rails. */
6218
+ /** Sats charged on top of {@link amount}; an estimate where the cost is fixed later. */
6119
6219
  fee: number;
6120
6220
  /** `amount + fee` — what leaves the wallet. */
6121
6221
  total: number;
@@ -6133,8 +6233,6 @@ interface RouterPreferences {
6133
6233
  }
6134
6234
  interface RouterContext {
6135
6235
  wallet: Wallet;
6136
- /** Loosely typed in core to avoid a dependency on boltz-swap; swap rails cast it. */
6137
- swaps?: unknown;
6138
6236
  prefs: RouterPreferences;
6139
6237
  }
6140
6238
  /** A payment request: the raw target plus an optional explicit amount. Rails
@@ -6283,13 +6381,7 @@ declare function onchainRail(): PaymentRail;
6283
6381
 
6284
6382
  /**
6285
6383
  * Default payment router with the Wallet-only rails: `ark` (off-chain send) and
6286
- * `onchain` (collaborative exit). Lightning and chain-swap rails live in
6287
- * `@arkade-os/boltz-swap`, which ships a `createDefaultPaymentRouter(wallet,
6288
- * swaps)` overload composing the full set.
6289
- *
6290
- * The default priority is `["ark", "lightning", "onchain"]` — the wallet's
6291
- * Ark > Lightning > on-chain ladder. `"lightning"` is listed so it ranks
6292
- * correctly once the boltz rail is added; it is simply absent here.
6384
+ * `onchain` (collaborative exit), ranked in that order.
6293
6385
  */
6294
6386
  declare function createDefaultPaymentRouter(wallet: Wallet): PaymentRouter;
6295
6387
 
@@ -6568,4 +6660,4 @@ declare class AssetManager extends ReadonlyAssetManager implements IAssetManager
6568
6660
  burn(params: BurnParams): Promise<string>;
6569
6661
  }
6570
6662
 
6571
- export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkAddress, ArkInfo, 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, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, BatchExpiryPolicy, BurnParams, CSVMultisigTapscript, CachingArkProvider, ChainTx, Coin, ConditionWitness, ConnectionDisposedError, type ConnectorTreeNode, Contract, ContractEvent, ContractRepository, ContractRepositoryImpl, ContractSyncState, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DatabaseUpgradeBlockedError, DefaultVtxo, DelegateInfo, DelegateNotConfiguredError, DelegatorNotConfiguredError, DescriptorIdentity, type DescriptorIdentityOptions, type DescriptorOptions, type DescriptorSigner, DescriptorSigningProviderMissingError, type DeterministicSigner, 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 ExcludableVtxo, type ExecutorEvent, type ExecutorOptions, 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, GetNewAddressesOptions, GetVtxosFilter, HDAllocationCapable, HDDescriptorProvider, type HDDeterministicSignCapable, HDWalletCapable, 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, type ManagedConnection, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, type MigrationStatus, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, NewAddress, OffchainInput, type OffchainTx, type OnExitObserved, OnchainInput, OnchainProvider, OnchainWallet, Outpoint, P2A, type ParsedArkContract, PathContext, PathSelection, type PaymentHandle, type PaymentOption, type PaymentRail, type PaymentRequest, PaymentRouter, type PaymentStatus, PrevArkTxField, PrevoutTxField, ProviderConnectionState, type ProvisionedClaimSecret, type ProvisionedKey, 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, SendParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignedIntent, SignerSession, SignerStatus, SingleKey, Status, StorageConfig, TapLeafScript, Transaction, TreeNonces, TreePartialSigs, TxNotificationEvent, TxTree, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, type VSize, type VerifyServerSignatures, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, type VtxoExclusion, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WalletRepository, WalletRepositoryImpl, WsElectrumChainSource, adoptContractDescriptor, arkRail, arkTarget, index as arkade, assembleBtcdTaprootTree, assertFinalCommitmentMatchesValidated, assertSendableAmount, assertSubmittedArkTxid, index$1 as asset, awaitTransaction, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, buildVersion, claimWithPreimageIdentity, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultPaymentRouter, createManagedConnection, decodeArkContract, deleteByIndex, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, deserializeExitPackage, encodeArkContract, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getArkPsbtFields, getMigrationStatus, hasBoardingTxExpired, identityDescriptor, invoiceTarget, isArkContract, isBtcAddress, isCltvSatisfied, isContractGenericallySpendable, isCsvSpendable, isDeterministicSigner, isHDDeterministicSignCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isRetryableProviderError, isValidArkAddress, logExcludedVtxos, makeHandle, matchServerCheckpoints, migrateWalletRepository, normalizeToDescriptor, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, parseHDDescriptor, promisifyRequest, provisionClaimSecret, provisionRefundKey, requiresMigration, resolveSendAmount, rollbackMigration, sdkVersion, selectCoinsWithAsset, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, signAndSubmitOffchainTx, timelockToSequence, toXOnly, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures };
6663
+ export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkAddress, ArkInfo, ArkIntent, ArkNote, ArkProvider, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, type ArkadeBatchInput, ArkadeBroadcaster, ArkadeCash, ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, ArkadeInfo, ArkadeReader, Asset, AssetDetails, AssetManager, BIP21, BIP21Error, type BIP21Params, type BIP21ParseResult, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, BatchExpiryPolicy, BurnParams, CSVMultisigTapscript, CachingArkProvider, ChainTx, Coin, ConditionWitness, ConnectionDisposedError, type ConnectorTreeNode, Contract, ContractEvent, ContractRepository, ContractRepositoryImpl, ContractSyncState, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DatabaseUpgradeBlockedError, DefaultVtxo, DelegateInfo, DelegateNotConfiguredError, DelegatorNotConfiguredError, DescriptorIdentity, type DescriptorIdentityOptions, type DescriptorOptions, type DescriptorSigner, DescriptorSigningProviderMissingError, type DeterministicSigner, 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 ExcludableVtxo, type ExecutorEvent, type ExecutorOptions, 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, GetArkadeInfoOptions, GetNewAddressesOptions, GetVtxosFilter, GetVtxosOptions, HDAllocationCapable, HDDescriptorProvider, type HDDeterministicSignCapable, HDWalletCapable, 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, type ManagedConnection, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, type MigrationStatus, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, NewAddress, NormalizedVtxoPage, OffchainInput, type OffchainTx, type OnExitObserved, OnchainInput, OnchainProvider, OnchainWallet, Outpoint, P2A, PaginationOptions, type ParsedArkContract, PathContext, PathSelection, type PaymentHandle, type PaymentOption, type PaymentRail, type PaymentRequest, PaymentRouter, type PaymentStatus, PrevArkTxField, PrevoutTxField, ProviderConnectionState, type ProvisionedClaimSecret, type ProvisionedKey, 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, SendParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignedIntent, SignerSession, SignerStatus, SingleKey, Status, StorageConfig, TapLeafScript, Transaction, TreeNonces, TreePartialSigs, TxNotificationEvent, TxTree, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, type VSize, type VerifyServerSignatures, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, type VtxoExclusion, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WalletRepository, WalletRepositoryImpl, WsElectrumChainSource, adoptContractDescriptor, arkRail, arkTarget, index as arkade, assembleBtcdTaprootTree, assertFinalCommitmentMatchesValidated, assertSendableAmount, assertSubmittedArkTxid, index$1 as asset, awaitTransaction, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, buildVersion, claimWithPreimageIdentity, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultPaymentRouter, createManagedConnection, decodeArkContract, deleteByIndex, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, deserializeExitPackage, encodeArkContract, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getArkPsbtFields, getMigrationStatus, hasBoardingTxExpired, identityDescriptor, invoiceTarget, isArkContract, isBtcAddress, isCltvSatisfied, isContractGenericallySpendable, isCsvSpendable, isDeterministicSigner, isHDDeterministicSignCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isRetryableProviderError, isValidArkAddress, logExcludedVtxos, makeHandle, matchServerCheckpoints, migrateWalletRepository, normalizeToDescriptor, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, parseHDDescriptor, promisifyRequest, provisionClaimSecret, provisionRefundKey, requiresMigration, resolveSendAmount, rollbackMigration, sdkVersion, selectCoinsWithAsset, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, signAndSubmitOffchainTx, timelockToSequence, toXOnly, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures };