@arkade-os/sdk 0.5.0-rc.12 → 0.5.0-rc.13

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 (76) hide show
  1. package/README.md +1 -1
  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/{asyncStorageTaskQueue-ZJ0uB_km.d.cts → asyncStorageTaskQueue-0EeSeCAt.d.cts} +1 -1
  7. package/dist/{asyncStorageTaskQueue-DDVTySuO.d.ts → asyncStorageTaskQueue-DV94jhwq.d.ts} +1 -1
  8. package/dist/{chunk-KBXBS4WO.js → chunk-3JLYJ5KZ.js} +3 -3
  9. package/dist/{chunk-KBXBS4WO.js.map → chunk-3JLYJ5KZ.js.map} +1 -1
  10. package/dist/{chunk-C7ARQI5U.js → chunk-4EU2Q6YT.js} +4 -4
  11. package/dist/{chunk-C7ARQI5U.js.map → chunk-4EU2Q6YT.js.map} +1 -1
  12. package/dist/{chunk-6ZBLIJ3N.cjs → chunk-7BACS4XK.cjs} +10 -10
  13. package/dist/{chunk-6ZBLIJ3N.cjs.map → chunk-7BACS4XK.cjs.map} +1 -1
  14. package/dist/{chunk-VKM6VUOZ.cjs → chunk-7NK6XFC3.cjs} +3 -3
  15. package/dist/{chunk-VKM6VUOZ.cjs.map → chunk-7NK6XFC3.cjs.map} +1 -1
  16. package/dist/{chunk-XDT24LBQ.cjs → chunk-BFQX2KS3.cjs} +18 -18
  17. package/dist/{chunk-XDT24LBQ.cjs.map → chunk-BFQX2KS3.cjs.map} +1 -1
  18. package/dist/{chunk-QD3N3ZS7.js → chunk-D7JLTHSZ.js} +4 -4
  19. package/dist/{chunk-QD3N3ZS7.js.map → chunk-D7JLTHSZ.js.map} +1 -1
  20. package/dist/{chunk-2G3XR3E7.js → chunk-EJYWGTZ7.js} +3 -3
  21. package/dist/{chunk-2G3XR3E7.js.map → chunk-EJYWGTZ7.js.map} +1 -1
  22. package/dist/{chunk-73NPW5LY.cjs → chunk-FDQQOF3F.cjs} +47 -47
  23. package/dist/{chunk-73NPW5LY.cjs.map → chunk-FDQQOF3F.cjs.map} +1 -1
  24. package/dist/{chunk-HQTM6HLJ.cjs → chunk-I4YBVHAK.cjs} +457 -456
  25. package/dist/chunk-I4YBVHAK.cjs.map +1 -0
  26. package/dist/{chunk-F5P5V3XR.js → chunk-IV2252XM.js} +11 -10
  27. package/dist/chunk-IV2252XM.js.map +1 -0
  28. package/dist/{chunk-6UKMLPWP.js → chunk-JOUPIZ32.js} +3 -3
  29. package/dist/{chunk-6UKMLPWP.js.map → chunk-JOUPIZ32.js.map} +1 -1
  30. package/dist/{chunk-LG4B4CFA.cjs → chunk-RDQSVIXD.cjs} +15 -15
  31. package/dist/{chunk-LG4B4CFA.cjs.map → chunk-RDQSVIXD.cjs.map} +1 -1
  32. package/dist/contracts/handlers/index.cjs +9 -9
  33. package/dist/contracts/handlers/index.d.cts +3 -3
  34. package/dist/contracts/handlers/index.d.ts +3 -3
  35. package/dist/contracts/handlers/index.js +2 -2
  36. package/dist/{delegate--_TwHqAa.d.cts → delegate-BgpUJW5B.d.cts} +1 -1
  37. package/dist/{delegate-DbYSf9lY.d.ts → delegate-BuagcGnG.d.ts} +1 -1
  38. package/dist/{index-D-zl1tea.d.cts → index-CKmB14Yu.d.cts} +7 -2
  39. package/dist/{index-D-zl1tea.d.ts → index-CKmB14Yu.d.ts} +7 -2
  40. package/dist/{index--rMssbOo.d.cts → index-D0BuYwhF.d.cts} +2 -2
  41. package/dist/{index-BwYXDgZM.d.ts → index-DbzyrqK7.d.ts} +2 -2
  42. package/dist/index.cjs +305 -305
  43. package/dist/index.d.cts +12 -12
  44. package/dist/index.d.ts +12 -12
  45. package/dist/index.js +4 -4
  46. package/dist/repositories/realm/index.cjs +36 -36
  47. package/dist/repositories/realm/index.cjs.map +1 -1
  48. package/dist/repositories/realm/index.d.cts +4 -4
  49. package/dist/repositories/realm/index.d.ts +4 -4
  50. package/dist/repositories/realm/index.js +7 -7
  51. package/dist/repositories/realm/index.js.map +1 -1
  52. package/dist/repositories/sqlite/index.cjs +34 -34
  53. package/dist/repositories/sqlite/index.cjs.map +1 -1
  54. package/dist/repositories/sqlite/index.d.cts +4 -4
  55. package/dist/repositories/sqlite/index.d.ts +4 -4
  56. package/dist/repositories/sqlite/index.js +7 -7
  57. package/dist/repositories/sqlite/index.js.map +1 -1
  58. package/dist/{taskRunner-ChQpqvfy.d.ts → taskRunner-BX-pB0sv.d.ts} +1 -1
  59. package/dist/{taskRunner-DjzP-n_3.d.cts → taskRunner-DJrFFyus.d.cts} +1 -1
  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 +14 -14
  65. package/dist/wallet/expo/index.d.cts +4 -4
  66. package/dist/wallet/expo/index.d.ts +4 -4
  67. package/dist/wallet/expo/index.js +5 -5
  68. package/dist/{wallet-DfYA1QzQ.d.cts → wallet-BsL2G3Qb.d.cts} +2 -2
  69. package/dist/{wallet-BwCcOWEI.d.ts → wallet-DXNiCmq8.d.ts} +2 -2
  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 +1 -1
  75. package/dist/chunk-F5P5V3XR.js.map +0 -1
  76. package/dist/chunk-HQTM6HLJ.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { af as ReadonlyIdentity, a as Identity, aB as DescriptorSigningRequest, aC as Transaction, ax as SignerSession, a2 as DescriptorProvider, aD as IntentFeeConfig, aE as OffchainInput, aF as FeeAmount, aG as OnchainInput, aH as FeeOutput, X as IntentRepository, Y as ArkIntent, Z as IntentPageFilter, P as PageRequest, D as PageResult, O as Outpoint, _ as VirtualTxRepository, $ as VirtualTx, a0 as VtxoBranch, W as WalletRepository, B as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, h as ArkTransaction, Q as WalletState, z as Contract, C as ContractRepository, U as ContractFilter, I as IWallet, u as ArkProvider, av as SettlementConfig, aI as ContractWatcherConfig, aJ as Asset, R as Recipient, aK as FeeInfo, o as SettlementEvent, N as NormalizedExtendedVirtualCoin, S as SettleParams, G as GetArkadeInfoOptions, aL as GetVtxosOptions, aM as PaginationOptions, f as GetVtxosFilter, g as GetSpendableVtxosFilter, aN as CreateContractParams, aO as GetContractsFilter, y as VirtualCoin, aP as GetSpendablePathsOptions, aQ as GetAllSpendingPathsOptions, l as GetNewAddressesOptions, aR as IssuanceParams, aS as ReissuanceParams, aT as BurnParams, aU as RenewVtxosOptions, A as ArkadeInfo, aV as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, am as ContractSyncState, aq as ContractWithVtxos, aW as WatchedScript, aX as PathSelection, m as NewAddress, aY as ContractEvent, aZ as AssetDetails, a_ as IssuanceResult, a$ as DelegateInfo, b0 as MigrationGlobalSkipReason, b1 as MigrationLegSkipReason, b2 as SignerStatus, ae as IReadonlyWallet, i as ActivityRegistry, al as IReadonlyAssetManager, b3 as StorageConfig, j as Activity, k as IContractManager, q as IAssetManager, p as SendParams, n as IDelegateManager, b4 as IVtxoManager, ag as OnchainProvider, a3 as Network, ao as NetworkName, as as Coin, b5 as SendBitcoinParams, b6 as ExplorerTransaction, ay as SignedIntent, az as Intent, b7 as TreeNonces, b8 as TreePartialSigs, T as TxNotificationEvent, b9 as PendingTx, x as TapLeafScript, ba as EncodedVtxoScript, a4 as CSVMultisigTapscript, w as RelativeTimelock, V as VtxoScript, bb as Status, ap as ArkAddress, bc as ChainTx, v as IndexerProvider, a7 as TxTree, bd as PathContext } from './index-D-zl1tea.cjs';
2
- export { be as ActivityIntent, bf as ActivityResolver, bg as ArkIntentState, bh as ArkTapscript, bi as AssetMetadata, bj as BITCOIN_EMULATOR_PUBKEY, bk as BaseWalletConfig, ab as BatchFailedEvent, a9 as BatchFinalizationEvent, aa as BatchFinalizedEvent, bl as BatchInfo, bm as BatchSignableIdentity, a5 as BatchStartedEvent, bn as CLTVMultisigTapscript, bo as CandidateDeps, bp as ChainTxType, a1 as ChainedTxType, bq as CommitmentTx, br as ConditionCSVMultisigTapscript, bs as ConditionMultisigTapscript, bt as ContractBalance, bu as ContractEventCallback, bv as ContractHandler, at as ContractManager, au as ContractManagerConfig, bw as ContractState, bx as ContractVtxo, by as ContractVtxoEvent, bz as ContractWatcher, bA as DEFAULT_VTXO_PAGE_SIZE, bB as DelegateManagerImpl, bC as DelegateOptions, ah as DelegateProvider, bD as DeprecatedSignerMigrationReport, bE as DeprecatedSignerReport, bF as DigestMismatchError, bG as Discoverable, bH as DiscoveredContract, bI as DiscoveryDeps, bJ as ESPLORA_URL, bK as EsploraProvider, bL as EventSourceCapable, bM as EventSourceFactory, bN as EventSourceLike, bO as EventSourceUnavailableError, aj as ExitCaptureMode, bP as ExitChainResolver, ak as ExitDataSource, bQ as ExtendedContractVtxo, bR as GroupMembership, bS as HandlerError, bT as INTENT_TERMINAL_STATES, bU as IndexerTxType, bV as IntentCoin, bW as IntentFilter, bX as KnownMetadata, bY as MAX_PAGE_SIZE, bZ as MUTINYNET_EMULATOR_PUBKEY, b_ as MigrateDeprecatedSignerOptions, b$ as MigrationLegReport, c0 as MigrationVtxoRef, c1 as MultisigTapscript, c2 as NewAddressType, c3 as Nonces, c4 as Output, c5 as PageResponse, c6 as PartialSig, c7 as PrevTxSource, c8 as PrevTxUnavailableError, c9 as ProviderClass, ca as REGTEST_EMULATOR_PUBKEY, cb as RawTxSource, ai as ReadonlyWalletConfig, an as RecipientArkadeAddressContext, r as RestArkProvider, cc as RestDelegateProvider, s as RestIndexerProvider, cd as ScanContractsOptions, ce as ScanResult, cf as ScheduledSession, cg as SettlementEventType, ch as SignRequest, ci as SignerClassification, cj as SignerSet, ck as SubscriptionEvent, cl as SubscriptionHeartbeat, t as SubscriptionResponse, cm as SweepTxNotification, cn as TapLeaves, co as TapTreeCoder, cp as TapscriptType, aA as TimeHeight, a8 as TreeNoncesEvent, ad as TreeSignatureEvent, a6 as TreeSigningStartedEvent, ac as TreeTxEvent, cq as Tx, cr as TxHistoryRecord, cs as TxKey, ct as TxNotification, cu as TxTag, cv as TxTreeNode, cw as TxType, cx as Vtxo, cy as VtxoChain, aw as VtxoManager, cz as VtxoType, b as WalletConfig, cA as WalletMode, cB as WithPrevTx, cC as assertAllowedSighashTypes, cD as assertPageRequest, cE as assertRecipientArkadeAddress, cF as assetMintResolver, cG as attachPrevArkTxs, cH as attachPrevoutTxs, cI as boardingResolver, cJ as canRecoverOnchain, cK as canSpendOffchain, cL as canSweepOnchain, cM as classifyAgainstSignerSet, cN as classifyContractSigner, cO as collabExitResolver, cP as collectContracts, cQ as collectIntents, cR as collectPages, cS as collectScriptVtxos, cT as collectTransactionHistory, cU as collectUtxos, cV as collectVtxos, cW as configureEventSource, cX as createDefaultActivityRegistry, cY as createExitChainResolver, cZ as decodeTapscript, c_ as defaultEmulatorPubkey, c$ as getAllNormalizedVtxos, d0 as getConfiguredEventSource, d1 as getNetwork, d2 as getNormalizedVtxos, d3 as getRandomId, d4 as getSequence, d5 as hasCandidates, d6 as isBatchSignable, d7 as isContractVtxoEvent, d8 as isCooperativelyMigratable, d9 as isDiscoverable, da as isEventSourceUnavailableError, db as isPastExpiry, dc as isSigningIdentity, dd as isSubdust, de as isTerminalIntentState, df as isVirtualCoin, dg as isVtxoExpiringSoon, dh as isVtxoSpent, di as iteratePages, dj as networkFromArkadeInfo, dk as networks, dl as pageResult, dm as resolveEmulatorPubkey, dn as resolveEventSource, dp as resolvePrevTxs, dq as scriptFromTapLeafScript, dr as signerSetFromInfo, ds as toXOnlySignerHex, dt as withPrevTxs } from './index-D-zl1tea.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 './wallet-DfYA1QzQ.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 './wallet-DfYA1QzQ.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, l as TweakedSigner, W as WitnessRef, m as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, n as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index--rMssbOo.cjs';
6
- export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, V as VHTLC, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from './index--rMssbOo.cjs';
7
- import { D as DefaultVtxo } from './delegate--_TwHqAa.cjs';
8
- export { a as DelegateVtxo } from './delegate--_TwHqAa.cjs';
1
+ import { af as ReadonlyIdentity, a as Identity, aB as DescriptorSigningRequest, aC as Transaction, ax as SignerSession, a2 as DescriptorProvider, aD as IntentFeeConfig, aE as OffchainInput, aF as FeeAmount, aG as OnchainInput, aH as FeeOutput, X as IntentRepository, Y as ArkIntent, Z as IntentPageFilter, P as PageRequest, D as PageResult, O as Outpoint, _ as VirtualTxRepository, $ as VirtualTx, a0 as VtxoBranch, W as WalletRepository, B as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, h as ArkTransaction, Q as WalletState, z as Contract, C as ContractRepository, U as ContractFilter, I as IWallet, u as ArkProvider, av as SettlementConfig, aI as ContractWatcherConfig, aJ as Asset, R as Recipient, aK as FeeInfo, o as SettlementEvent, N as NormalizedExtendedVirtualCoin, S as SettleParams, G as GetArkadeInfoOptions, aL as GetVtxosOptions, aM as PaginationOptions, f as GetVtxosFilter, g as GetSpendableVtxosFilter, aN as CreateContractParams, aO as GetContractsFilter, y as VirtualCoin, aP as GetSpendablePathsOptions, aQ as GetAllSpendingPathsOptions, l as GetNewAddressesOptions, aR as IssuanceParams, aS as ReissuanceParams, aT as BurnParams, aU as RenewVtxosOptions, A as ArkadeInfo, aV as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, am as ContractSyncState, aq as ContractWithVtxos, aW as WatchedScript, aX as PathSelection, m as NewAddress, aY as ContractEvent, aZ as AssetDetails, a_ as IssuanceResult, a$ as DelegateInfo, b0 as MigrationGlobalSkipReason, b1 as MigrationLegSkipReason, b2 as SignerStatus, ae as IReadonlyWallet, i as ActivityRegistry, al as IReadonlyAssetManager, b3 as StorageConfig, j as Activity, k as IContractManager, q as IAssetManager, p as SendParams, n as IDelegateManager, b4 as IVtxoManager, ag as OnchainProvider, a3 as Network, ao as NetworkName, as as Coin, b5 as SendBitcoinParams, b6 as ExplorerTransaction, ay as SignedIntent, az as Intent, b7 as TreeNonces, b8 as TreePartialSigs, T as TxNotificationEvent, b9 as PendingTx, x as TapLeafScript, ba as EncodedVtxoScript, a4 as CSVMultisigTapscript, w as RelativeTimelock, V as VtxoScript, bb as Status, ap as ArkAddress, bc as ChainTx, v as IndexerProvider, a7 as TxTree, bd as PathContext } from './index-CKmB14Yu.cjs';
2
+ export { be as ActivityIntent, bf as ActivityResolver, bg as ArkIntentState, bh as ArkTapscript, bi as AssetMetadata, bj as BITCOIN_EMULATOR_PUBKEY, bk as BaseWalletConfig, ab as BatchFailedEvent, a9 as BatchFinalizationEvent, aa as BatchFinalizedEvent, bl as BatchInfo, bm as BatchSignableIdentity, a5 as BatchStartedEvent, bn as CLTVMultisigTapscript, bo as CandidateDeps, bp as ChainTxType, a1 as ChainedTxType, bq as CommitmentTx, br as ConditionCSVMultisigTapscript, bs as ConditionMultisigTapscript, bt as ContractBalance, bu as ContractEventCallback, bv as ContractHandler, at as ContractManager, au as ContractManagerConfig, bw as ContractState, bx as ContractVtxo, by as ContractVtxoEvent, bz as ContractWatcher, bA as DEFAULT_VTXO_PAGE_SIZE, bB as DelegateManagerImpl, bC as DelegateOptions, ah as DelegateProvider, bD as DeprecatedSignerMigrationReport, bE as DeprecatedSignerReport, bF as DigestMismatchError, bG as Discoverable, bH as DiscoveredContract, bI as DiscoveryDeps, bJ as ESPLORA_URL, bK as EsploraProvider, bL as EventSourceCapable, bM as EventSourceFactory, bN as EventSourceLike, bO as EventSourceUnavailableError, aj as ExitCaptureMode, bP as ExitChainResolver, ak as ExitDataSource, bQ as ExtendedContractVtxo, bR as GroupMembership, bS as HandlerError, bT as INTENT_TERMINAL_STATES, bU as IndexerTxType, bV as IntentCoin, bW as IntentFilter, bX as KnownMetadata, bY as MAX_PAGE_SIZE, bZ as MUTINYNET_EMULATOR_PUBKEY, b_ as MigrateDeprecatedSignerOptions, b$ as MigrationLegReport, c0 as MigrationVtxoRef, c1 as MultisigTapscript, c2 as NewAddressType, c3 as Nonces, c4 as Output, c5 as PageResponse, c6 as PartialSig, c7 as PrevTxSource, c8 as PrevTxUnavailableError, c9 as ProviderClass, ca as REGTEST_EMULATOR_PUBKEY, cb as RawTxSource, ai as ReadonlyWalletConfig, an as RecipientArkadeAddressContext, r as RestArkProvider, cc as RestDelegateProvider, s as RestIndexerProvider, cd as ScanContractsOptions, ce as ScanResult, cf as ScheduledSession, cg as SettlementEventType, ch as SignRequest, ci as SignerClassification, cj as SignerSet, ck as SubscriptionEvent, cl as SubscriptionHeartbeat, t as SubscriptionResponse, cm as SweepTxNotification, cn as TapLeaves, co as TapTreeCoder, cp as TapscriptType, aA as TimeHeight, a8 as TreeNoncesEvent, ad as TreeSignatureEvent, a6 as TreeSigningStartedEvent, ac as TreeTxEvent, cq as Tx, cr as TxHistoryRecord, cs as TxKey, ct as TxNotification, cu as TxTag, cv as TxTreeNode, cw as TxType, cx as Vtxo, cy as VtxoChain, aw as VtxoManager, cz as VtxoType, b as WalletConfig, cA as WalletMode, cB as WithPrevTx, cC as assertAllowedSighashTypes, cD as assertPageRequest, cE as assertRecipientArkadeAddress, cF as assetMintResolver, cG as attachPrevArkTxs, cH as attachPrevoutTxs, cI as boardingResolver, cJ as canRecoverOnchain, cK as canSpendOffchain, cL as canSweepOnchain, cM as classifyAgainstSignerSet, cN as classifyContractSigner, cO as collabExitResolver, cP as collectContracts, cQ as collectIntents, cR as collectPages, cS as collectScriptVtxos, cT as collectTransactionHistory, cU as collectUtxos, cV as collectVtxos, cW as configureEventSource, cX as createDefaultActivityRegistry, cY as createExitChainResolver, cZ as decodeTapscript, c_ as defaultEmulatorPubkey, c$ as getAllNormalizedVtxos, d0 as getConfiguredEventSource, d1 as getNetwork, d2 as getNormalizedVtxos, d3 as getRandomId, d4 as getSequence, d5 as hasCandidates, d6 as isBatchSignable, d7 as isContractVtxoEvent, d8 as isCooperativelyMigratable, d9 as isDiscoverable, da as isEventSourceUnavailableError, db as isPastExpiry, dc as isSigningIdentity, dd as isSubdust, de as isTerminalIntentState, df as isVirtualCoin, dg as isVtxoExpiringSoon, dh as isVtxoSpent, di as iteratePages, dj as networkFromArkadeInfo, dk as networks, dl as pageResult, dm as resolveEmulatorPubkey, dn as resolveEventSource, dp as resolvePrevTxs, dq as scriptFromTapLeafScript, dr as signerSetFromInfo, ds as toXOnlySignerHex, dt as withPrevTxs } from './index-CKmB14Yu.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 './wallet-BsL2G3Qb.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 './wallet-BsL2G3Qb.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, l as TweakedSigner, W as WitnessRef, m as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, n as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-D0BuYwhF.cjs';
6
+ export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, V as VHTLC, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from './index-D0BuYwhF.cjs';
7
+ import { D as DefaultVtxo } from './delegate-BgpUJW5B.cjs';
8
+ export { a as DelegateVtxo } from './delegate-BgpUJW5B.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';
@@ -554,7 +554,7 @@ declare class IndexedDBIntentRepository implements IntentRepository {
554
554
  * Data is ephemeral and scoped to the instance.
555
555
  */
556
556
  declare class InMemoryWalletRepository implements WalletRepository {
557
- readonly version: 1;
557
+ readonly version: 2;
558
558
  private readonly vtxosByAddress;
559
559
  private readonly utxosByAddress;
560
560
  private readonly txsByAddress;
@@ -714,7 +714,7 @@ declare function isArkContract(str: string): boolean;
714
714
  * Data is ephemeral and scoped to the instance.
715
715
  */
716
716
  declare class InMemoryContractRepository implements ContractRepository {
717
- readonly version: 2;
717
+ readonly version: 3;
718
718
  private readonly contractsByScript;
719
719
  clear(): Promise<void>;
720
720
  getContractsPage(filter: ContractFilter | undefined, page: PageRequest): Promise<PageResult<Contract>>;
@@ -729,7 +729,7 @@ declare class InMemoryContractRepository implements ContractRepository {
729
729
  * Data is stored as JSON strings in key/value stores.
730
730
  */
731
731
  declare class IndexedDBContractRepository implements ContractRepository {
732
- readonly version: 2;
732
+ readonly version: 3;
733
733
  private readonly connection;
734
734
  constructor(dbName?: string);
735
735
  clear(): Promise<void>;
@@ -745,7 +745,7 @@ declare class IndexedDBContractRepository implements ContractRepository {
745
745
  * IndexedDB-based implementation of WalletRepository.
746
746
  */
747
747
  declare class IndexedDBWalletRepository implements WalletRepository {
748
- readonly version: 1;
748
+ readonly version: 2;
749
749
  private readonly connection;
750
750
  constructor(dbName?: string);
751
751
  clear(): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { af as ReadonlyIdentity, a as Identity, aB as DescriptorSigningRequest, aC as Transaction, ax as SignerSession, a2 as DescriptorProvider, aD as IntentFeeConfig, aE as OffchainInput, aF as FeeAmount, aG as OnchainInput, aH as FeeOutput, X as IntentRepository, Y as ArkIntent, Z as IntentPageFilter, P as PageRequest, D as PageResult, O as Outpoint, _ as VirtualTxRepository, $ as VirtualTx, a0 as VtxoBranch, W as WalletRepository, B as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, h as ArkTransaction, Q as WalletState, z as Contract, C as ContractRepository, U as ContractFilter, I as IWallet, u as ArkProvider, av as SettlementConfig, aI as ContractWatcherConfig, aJ as Asset, R as Recipient, aK as FeeInfo, o as SettlementEvent, N as NormalizedExtendedVirtualCoin, S as SettleParams, G as GetArkadeInfoOptions, aL as GetVtxosOptions, aM as PaginationOptions, f as GetVtxosFilter, g as GetSpendableVtxosFilter, aN as CreateContractParams, aO as GetContractsFilter, y as VirtualCoin, aP as GetSpendablePathsOptions, aQ as GetAllSpendingPathsOptions, l as GetNewAddressesOptions, aR as IssuanceParams, aS as ReissuanceParams, aT as BurnParams, aU as RenewVtxosOptions, A as ArkadeInfo, aV as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, am as ContractSyncState, aq as ContractWithVtxos, aW as WatchedScript, aX as PathSelection, m as NewAddress, aY as ContractEvent, aZ as AssetDetails, a_ as IssuanceResult, a$ as DelegateInfo, b0 as MigrationGlobalSkipReason, b1 as MigrationLegSkipReason, b2 as SignerStatus, ae as IReadonlyWallet, i as ActivityRegistry, al as IReadonlyAssetManager, b3 as StorageConfig, j as Activity, k as IContractManager, q as IAssetManager, p as SendParams, n as IDelegateManager, b4 as IVtxoManager, ag as OnchainProvider, a3 as Network, ao as NetworkName, as as Coin, b5 as SendBitcoinParams, b6 as ExplorerTransaction, ay as SignedIntent, az as Intent, b7 as TreeNonces, b8 as TreePartialSigs, T as TxNotificationEvent, b9 as PendingTx, x as TapLeafScript, ba as EncodedVtxoScript, a4 as CSVMultisigTapscript, w as RelativeTimelock, V as VtxoScript, bb as Status, ap as ArkAddress, bc as ChainTx, v as IndexerProvider, a7 as TxTree, bd as PathContext } from './index-D-zl1tea.js';
2
- export { be as ActivityIntent, bf as ActivityResolver, bg as ArkIntentState, bh as ArkTapscript, bi as AssetMetadata, bj as BITCOIN_EMULATOR_PUBKEY, bk as BaseWalletConfig, ab as BatchFailedEvent, a9 as BatchFinalizationEvent, aa as BatchFinalizedEvent, bl as BatchInfo, bm as BatchSignableIdentity, a5 as BatchStartedEvent, bn as CLTVMultisigTapscript, bo as CandidateDeps, bp as ChainTxType, a1 as ChainedTxType, bq as CommitmentTx, br as ConditionCSVMultisigTapscript, bs as ConditionMultisigTapscript, bt as ContractBalance, bu as ContractEventCallback, bv as ContractHandler, at as ContractManager, au as ContractManagerConfig, bw as ContractState, bx as ContractVtxo, by as ContractVtxoEvent, bz as ContractWatcher, bA as DEFAULT_VTXO_PAGE_SIZE, bB as DelegateManagerImpl, bC as DelegateOptions, ah as DelegateProvider, bD as DeprecatedSignerMigrationReport, bE as DeprecatedSignerReport, bF as DigestMismatchError, bG as Discoverable, bH as DiscoveredContract, bI as DiscoveryDeps, bJ as ESPLORA_URL, bK as EsploraProvider, bL as EventSourceCapable, bM as EventSourceFactory, bN as EventSourceLike, bO as EventSourceUnavailableError, aj as ExitCaptureMode, bP as ExitChainResolver, ak as ExitDataSource, bQ as ExtendedContractVtxo, bR as GroupMembership, bS as HandlerError, bT as INTENT_TERMINAL_STATES, bU as IndexerTxType, bV as IntentCoin, bW as IntentFilter, bX as KnownMetadata, bY as MAX_PAGE_SIZE, bZ as MUTINYNET_EMULATOR_PUBKEY, b_ as MigrateDeprecatedSignerOptions, b$ as MigrationLegReport, c0 as MigrationVtxoRef, c1 as MultisigTapscript, c2 as NewAddressType, c3 as Nonces, c4 as Output, c5 as PageResponse, c6 as PartialSig, c7 as PrevTxSource, c8 as PrevTxUnavailableError, c9 as ProviderClass, ca as REGTEST_EMULATOR_PUBKEY, cb as RawTxSource, ai as ReadonlyWalletConfig, an as RecipientArkadeAddressContext, r as RestArkProvider, cc as RestDelegateProvider, s as RestIndexerProvider, cd as ScanContractsOptions, ce as ScanResult, cf as ScheduledSession, cg as SettlementEventType, ch as SignRequest, ci as SignerClassification, cj as SignerSet, ck as SubscriptionEvent, cl as SubscriptionHeartbeat, t as SubscriptionResponse, cm as SweepTxNotification, cn as TapLeaves, co as TapTreeCoder, cp as TapscriptType, aA as TimeHeight, a8 as TreeNoncesEvent, ad as TreeSignatureEvent, a6 as TreeSigningStartedEvent, ac as TreeTxEvent, cq as Tx, cr as TxHistoryRecord, cs as TxKey, ct as TxNotification, cu as TxTag, cv as TxTreeNode, cw as TxType, cx as Vtxo, cy as VtxoChain, aw as VtxoManager, cz as VtxoType, b as WalletConfig, cA as WalletMode, cB as WithPrevTx, cC as assertAllowedSighashTypes, cD as assertPageRequest, cE as assertRecipientArkadeAddress, cF as assetMintResolver, cG as attachPrevArkTxs, cH as attachPrevoutTxs, cI as boardingResolver, cJ as canRecoverOnchain, cK as canSpendOffchain, cL as canSweepOnchain, cM as classifyAgainstSignerSet, cN as classifyContractSigner, cO as collabExitResolver, cP as collectContracts, cQ as collectIntents, cR as collectPages, cS as collectScriptVtxos, cT as collectTransactionHistory, cU as collectUtxos, cV as collectVtxos, cW as configureEventSource, cX as createDefaultActivityRegistry, cY as createExitChainResolver, cZ as decodeTapscript, c_ as defaultEmulatorPubkey, c$ as getAllNormalizedVtxos, d0 as getConfiguredEventSource, d1 as getNetwork, d2 as getNormalizedVtxos, d3 as getRandomId, d4 as getSequence, d5 as hasCandidates, d6 as isBatchSignable, d7 as isContractVtxoEvent, d8 as isCooperativelyMigratable, d9 as isDiscoverable, da as isEventSourceUnavailableError, db as isPastExpiry, dc as isSigningIdentity, dd as isSubdust, de as isTerminalIntentState, df as isVirtualCoin, dg as isVtxoExpiringSoon, dh as isVtxoSpent, di as iteratePages, dj as networkFromArkadeInfo, dk as networks, dl as pageResult, dm as resolveEmulatorPubkey, dn as resolveEventSource, dp as resolvePrevTxs, dq as scriptFromTapLeafScript, dr as signerSetFromInfo, ds as toXOnlySignerHex, dt as withPrevTxs } from './index-D-zl1tea.js';
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 './wallet-BwCcOWEI.js';
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 './wallet-BwCcOWEI.js';
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, l as TweakedSigner, W as WitnessRef, m as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, n as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-BwYXDgZM.js';
6
- export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, V as VHTLC, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from './index-BwYXDgZM.js';
7
- import { D as DefaultVtxo } from './delegate-DbYSf9lY.js';
8
- export { a as DelegateVtxo } from './delegate-DbYSf9lY.js';
1
+ import { af as ReadonlyIdentity, a as Identity, aB as DescriptorSigningRequest, aC as Transaction, ax as SignerSession, a2 as DescriptorProvider, aD as IntentFeeConfig, aE as OffchainInput, aF as FeeAmount, aG as OnchainInput, aH as FeeOutput, X as IntentRepository, Y as ArkIntent, Z as IntentPageFilter, P as PageRequest, D as PageResult, O as Outpoint, _ as VirtualTxRepository, $ as VirtualTx, a0 as VtxoBranch, W as WalletRepository, B as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, h as ArkTransaction, Q as WalletState, z as Contract, C as ContractRepository, U as ContractFilter, I as IWallet, u as ArkProvider, av as SettlementConfig, aI as ContractWatcherConfig, aJ as Asset, R as Recipient, aK as FeeInfo, o as SettlementEvent, N as NormalizedExtendedVirtualCoin, S as SettleParams, G as GetArkadeInfoOptions, aL as GetVtxosOptions, aM as PaginationOptions, f as GetVtxosFilter, g as GetSpendableVtxosFilter, aN as CreateContractParams, aO as GetContractsFilter, y as VirtualCoin, aP as GetSpendablePathsOptions, aQ as GetAllSpendingPathsOptions, l as GetNewAddressesOptions, aR as IssuanceParams, aS as ReissuanceParams, aT as BurnParams, aU as RenewVtxosOptions, A as ArkadeInfo, aV as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, am as ContractSyncState, aq as ContractWithVtxos, aW as WatchedScript, aX as PathSelection, m as NewAddress, aY as ContractEvent, aZ as AssetDetails, a_ as IssuanceResult, a$ as DelegateInfo, b0 as MigrationGlobalSkipReason, b1 as MigrationLegSkipReason, b2 as SignerStatus, ae as IReadonlyWallet, i as ActivityRegistry, al as IReadonlyAssetManager, b3 as StorageConfig, j as Activity, k as IContractManager, q as IAssetManager, p as SendParams, n as IDelegateManager, b4 as IVtxoManager, ag as OnchainProvider, a3 as Network, ao as NetworkName, as as Coin, b5 as SendBitcoinParams, b6 as ExplorerTransaction, ay as SignedIntent, az as Intent, b7 as TreeNonces, b8 as TreePartialSigs, T as TxNotificationEvent, b9 as PendingTx, x as TapLeafScript, ba as EncodedVtxoScript, a4 as CSVMultisigTapscript, w as RelativeTimelock, V as VtxoScript, bb as Status, ap as ArkAddress, bc as ChainTx, v as IndexerProvider, a7 as TxTree, bd as PathContext } from './index-CKmB14Yu.js';
2
+ export { be as ActivityIntent, bf as ActivityResolver, bg as ArkIntentState, bh as ArkTapscript, bi as AssetMetadata, bj as BITCOIN_EMULATOR_PUBKEY, bk as BaseWalletConfig, ab as BatchFailedEvent, a9 as BatchFinalizationEvent, aa as BatchFinalizedEvent, bl as BatchInfo, bm as BatchSignableIdentity, a5 as BatchStartedEvent, bn as CLTVMultisigTapscript, bo as CandidateDeps, bp as ChainTxType, a1 as ChainedTxType, bq as CommitmentTx, br as ConditionCSVMultisigTapscript, bs as ConditionMultisigTapscript, bt as ContractBalance, bu as ContractEventCallback, bv as ContractHandler, at as ContractManager, au as ContractManagerConfig, bw as ContractState, bx as ContractVtxo, by as ContractVtxoEvent, bz as ContractWatcher, bA as DEFAULT_VTXO_PAGE_SIZE, bB as DelegateManagerImpl, bC as DelegateOptions, ah as DelegateProvider, bD as DeprecatedSignerMigrationReport, bE as DeprecatedSignerReport, bF as DigestMismatchError, bG as Discoverable, bH as DiscoveredContract, bI as DiscoveryDeps, bJ as ESPLORA_URL, bK as EsploraProvider, bL as EventSourceCapable, bM as EventSourceFactory, bN as EventSourceLike, bO as EventSourceUnavailableError, aj as ExitCaptureMode, bP as ExitChainResolver, ak as ExitDataSource, bQ as ExtendedContractVtxo, bR as GroupMembership, bS as HandlerError, bT as INTENT_TERMINAL_STATES, bU as IndexerTxType, bV as IntentCoin, bW as IntentFilter, bX as KnownMetadata, bY as MAX_PAGE_SIZE, bZ as MUTINYNET_EMULATOR_PUBKEY, b_ as MigrateDeprecatedSignerOptions, b$ as MigrationLegReport, c0 as MigrationVtxoRef, c1 as MultisigTapscript, c2 as NewAddressType, c3 as Nonces, c4 as Output, c5 as PageResponse, c6 as PartialSig, c7 as PrevTxSource, c8 as PrevTxUnavailableError, c9 as ProviderClass, ca as REGTEST_EMULATOR_PUBKEY, cb as RawTxSource, ai as ReadonlyWalletConfig, an as RecipientArkadeAddressContext, r as RestArkProvider, cc as RestDelegateProvider, s as RestIndexerProvider, cd as ScanContractsOptions, ce as ScanResult, cf as ScheduledSession, cg as SettlementEventType, ch as SignRequest, ci as SignerClassification, cj as SignerSet, ck as SubscriptionEvent, cl as SubscriptionHeartbeat, t as SubscriptionResponse, cm as SweepTxNotification, cn as TapLeaves, co as TapTreeCoder, cp as TapscriptType, aA as TimeHeight, a8 as TreeNoncesEvent, ad as TreeSignatureEvent, a6 as TreeSigningStartedEvent, ac as TreeTxEvent, cq as Tx, cr as TxHistoryRecord, cs as TxKey, ct as TxNotification, cu as TxTag, cv as TxTreeNode, cw as TxType, cx as Vtxo, cy as VtxoChain, aw as VtxoManager, cz as VtxoType, b as WalletConfig, cA as WalletMode, cB as WithPrevTx, cC as assertAllowedSighashTypes, cD as assertPageRequest, cE as assertRecipientArkadeAddress, cF as assetMintResolver, cG as attachPrevArkTxs, cH as attachPrevoutTxs, cI as boardingResolver, cJ as canRecoverOnchain, cK as canSpendOffchain, cL as canSweepOnchain, cM as classifyAgainstSignerSet, cN as classifyContractSigner, cO as collabExitResolver, cP as collectContracts, cQ as collectIntents, cR as collectPages, cS as collectScriptVtxos, cT as collectTransactionHistory, cU as collectUtxos, cV as collectVtxos, cW as configureEventSource, cX as createDefaultActivityRegistry, cY as createExitChainResolver, cZ as decodeTapscript, c_ as defaultEmulatorPubkey, c$ as getAllNormalizedVtxos, d0 as getConfiguredEventSource, d1 as getNetwork, d2 as getNormalizedVtxos, d3 as getRandomId, d4 as getSequence, d5 as hasCandidates, d6 as isBatchSignable, d7 as isContractVtxoEvent, d8 as isCooperativelyMigratable, d9 as isDiscoverable, da as isEventSourceUnavailableError, db as isPastExpiry, dc as isSigningIdentity, dd as isSubdust, de as isTerminalIntentState, df as isVirtualCoin, dg as isVtxoExpiringSoon, dh as isVtxoSpent, di as iteratePages, dj as networkFromArkadeInfo, dk as networks, dl as pageResult, dm as resolveEmulatorPubkey, dn as resolveEventSource, dp as resolvePrevTxs, dq as scriptFromTapLeafScript, dr as signerSetFromInfo, ds as toXOnlySignerHex, dt as withPrevTxs } from './index-CKmB14Yu.js';
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 './wallet-DXNiCmq8.js';
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 './wallet-DXNiCmq8.js';
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, l as TweakedSigner, W as WitnessRef, m as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, n as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-DbzyrqK7.js';
6
+ export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, V as VHTLC, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from './index-DbzyrqK7.js';
7
+ import { D as DefaultVtxo } from './delegate-BuagcGnG.js';
8
+ export { a as DelegateVtxo } from './delegate-BuagcGnG.js';
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';
@@ -554,7 +554,7 @@ declare class IndexedDBIntentRepository implements IntentRepository {
554
554
  * Data is ephemeral and scoped to the instance.
555
555
  */
556
556
  declare class InMemoryWalletRepository implements WalletRepository {
557
- readonly version: 1;
557
+ readonly version: 2;
558
558
  private readonly vtxosByAddress;
559
559
  private readonly utxosByAddress;
560
560
  private readonly txsByAddress;
@@ -714,7 +714,7 @@ declare function isArkContract(str: string): boolean;
714
714
  * Data is ephemeral and scoped to the instance.
715
715
  */
716
716
  declare class InMemoryContractRepository implements ContractRepository {
717
- readonly version: 2;
717
+ readonly version: 3;
718
718
  private readonly contractsByScript;
719
719
  clear(): Promise<void>;
720
720
  getContractsPage(filter: ContractFilter | undefined, page: PageRequest): Promise<PageResult<Contract>>;
@@ -729,7 +729,7 @@ declare class InMemoryContractRepository implements ContractRepository {
729
729
  * Data is stored as JSON strings in key/value stores.
730
730
  */
731
731
  declare class IndexedDBContractRepository implements ContractRepository {
732
- readonly version: 2;
732
+ readonly version: 3;
733
733
  private readonly connection;
734
734
  constructor(dbName?: string);
735
735
  clear(): Promise<void>;
@@ -745,7 +745,7 @@ declare class IndexedDBContractRepository implements ContractRepository {
745
745
  * IndexedDB-based implementation of WalletRepository.
746
746
  */
747
747
  declare class IndexedDBWalletRepository implements WalletRepository {
748
- readonly version: 1;
748
+ readonly version: 2;
749
749
  private readonly connection;
750
750
  constructor(dbName?: string);
751
751
  clear(): Promise<void>;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, AbortError, ActivityRegistry, AmbiguousRouteError, ArkNote, ArkadeCash, ArkadeCashCreateError, AssetManager, BIP21, BIP21Error, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, CachingArkProvider, ChainedTxType, ConnectionDisposedError, ContractManager, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_SECONDS, DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, DatabaseUpgradeBlockedError, DelegateManagerImpl, DelegateNotConfiguredError, DescriptorIdentity, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EmulatorPacket, EsploraProvider, Estimator, Extension, ExtensionNotFoundError, ForeignDescriptorError, HDDescriptorProvider, INTENT_TERMINAL_STATES, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, MAX_PAGE_SIZE, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainWallet, OversizedChangeError, P2A, PaymentRouter, PrevTxUnavailableError, REGTEST_MIN_BATCH_EXPIRY_SECONDS, REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestEmulatorProvider, SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, SeedIdentity, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, TxTree, TxType, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, VtxoManager, Wallet, WalletCannotAllocateAddressError, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WsElectrumChainSource, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, arkade_exports as arkade, assertFinalCommitmentMatchesValidated, assertNoAssets, assertNoSelection, assertPageRequest, assertRecipientArkadeAddress, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, assetsOf, attachPrevArkTxs, attachPrevoutTxs, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, claimWithPreimageIdentity, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, collabExitResolver, collectContracts, collectIntents, collectPages, collectScriptVtxos, collectTransactionHistory, collectUtxos, collectVtxos, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, decodeArkContract, defaultBatchExpiryPolicy, defaultCheckpointExitDelayPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getRandomId, hasBoardingTxExpired, hasCandidates, invoiceTarget, isAddressAllocationCapable, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isContractVtxoEvent, isCooperativelyMigratable, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, iteratePages, logExcludedVtxos, makeHandle, matchServerCheckpoints, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, pageResult, promisifyRequest, provisionClaimSecret, provisionRefundKey, registerWalletRestoreHook, resolveAssetAmount, resolveBatchExpiryPolicy, resolveCheckpointExitDelayPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, selectCoinsWithAsset, selectVirtualCoins, selectionOf, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, toXOnlySignerHex, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, walletFeeSource, withPrevTxs } from './chunk-F5P5V3XR.js';
2
- export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, RestIndexerProvider, asset_exports as asset } from './chunk-KBXBS4WO.js';
3
- export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor, toXOnly } from './chunk-6UKMLPWP.js';
4
- export { ArkAddress, ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, BITCOIN_EMULATOR_PUBKEY, CLTVMultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, ConditionWitness, CosignerPublicKey, DigestMismatchError, EventSourceUnavailableError, FetchError, Intent, MUTINYNET_EMULATOR_PUBKEY, MultisigTapscript, PrevArkTxField, PrevoutTxField, ProviderUnavailableError, READ_TIMEOUT_MS, REGTEST_EMULATOR_PUBKEY, RestArkProvider, ServerResponseMismatchError, SettlementEventType, TapTreeCoder, Transaction, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, assembleBtcdTaprootTree, assertAllowedSighashTypes, buildVersion, canRecoverOnchain, canSpendOffchain, canSweepOnchain, configureEventSource, decodeTapscript, defaultEmulatorPubkey, getAllNormalizedVtxos, getArkPsbtFields, getConfiguredEventSource, getNetwork, getNormalizedVtxos, getSequence, isArkError, isEventSourceUnavailableError, isPastExpiry, isRetryableProviderError, isVirtualCoin, isVtxoSpent, maybeArkError, networkFromArkadeInfo, networks, resolveEmulatorPubkey, resolveEventSource, scriptFromTapLeafScript, sdkVersion, sequenceToTimelock, setArkPsbtField, timelockToSequence } from './chunk-2G3XR3E7.js';
1
+ export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, AbortError, ActivityRegistry, AmbiguousRouteError, ArkNote, ArkadeCash, ArkadeCashCreateError, AssetManager, BIP21, BIP21Error, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, CachingArkProvider, ChainedTxType, ConnectionDisposedError, ContractManager, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_SECONDS, DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, DatabaseUpgradeBlockedError, DelegateManagerImpl, DelegateNotConfiguredError, DescriptorIdentity, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EmulatorPacket, EsploraProvider, Estimator, Extension, ExtensionNotFoundError, ForeignDescriptorError, HDDescriptorProvider, INTENT_TERMINAL_STATES, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, MAX_PAGE_SIZE, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainWallet, OversizedChangeError, P2A, PaymentRouter, PrevTxUnavailableError, REGTEST_MIN_BATCH_EXPIRY_SECONDS, REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestEmulatorProvider, SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, SeedIdentity, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, TxTree, TxType, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, VtxoManager, Wallet, WalletCannotAllocateAddressError, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WsElectrumChainSource, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, arkade_exports as arkade, assertFinalCommitmentMatchesValidated, assertNoAssets, assertNoSelection, assertPageRequest, assertRecipientArkadeAddress, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, assetsOf, attachPrevArkTxs, attachPrevoutTxs, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, claimWithPreimageIdentity, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, collabExitResolver, collectContracts, collectIntents, collectPages, collectScriptVtxos, collectTransactionHistory, collectUtxos, collectVtxos, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, decodeArkContract, defaultBatchExpiryPolicy, defaultCheckpointExitDelayPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getRandomId, hasBoardingTxExpired, hasCandidates, invoiceTarget, isAddressAllocationCapable, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isContractVtxoEvent, isCooperativelyMigratable, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, iteratePages, logExcludedVtxos, makeHandle, matchServerCheckpoints, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, pageResult, promisifyRequest, provisionClaimSecret, provisionRefundKey, registerWalletRestoreHook, resolveAssetAmount, resolveBatchExpiryPolicy, resolveCheckpointExitDelayPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, selectCoinsWithAsset, selectVirtualCoins, selectionOf, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, toXOnlySignerHex, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, walletFeeSource, withPrevTxs } from './chunk-IV2252XM.js';
2
+ export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, RestIndexerProvider, asset_exports as asset } from './chunk-3JLYJ5KZ.js';
3
+ export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor, toXOnly } from './chunk-JOUPIZ32.js';
4
+ export { ArkAddress, ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, BITCOIN_EMULATOR_PUBKEY, CLTVMultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, ConditionWitness, CosignerPublicKey, DigestMismatchError, EventSourceUnavailableError, FetchError, Intent, MUTINYNET_EMULATOR_PUBKEY, MultisigTapscript, PrevArkTxField, PrevoutTxField, ProviderUnavailableError, READ_TIMEOUT_MS, REGTEST_EMULATOR_PUBKEY, RestArkProvider, ServerResponseMismatchError, SettlementEventType, TapTreeCoder, Transaction, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, assembleBtcdTaprootTree, assertAllowedSighashTypes, buildVersion, canRecoverOnchain, canSpendOffchain, canSweepOnchain, configureEventSource, decodeTapscript, defaultEmulatorPubkey, getAllNormalizedVtxos, getArkPsbtFields, getConfiguredEventSource, getNetwork, getNormalizedVtxos, getSequence, isArkError, isEventSourceUnavailableError, isPastExpiry, isRetryableProviderError, isVirtualCoin, isVtxoSpent, maybeArkError, networkFromArkadeInfo, networks, resolveEmulatorPubkey, resolveEventSource, scriptFromTapLeafScript, sdkVersion, sequenceToTimelock, setArkPsbtField, timelockToSequence } from './chunk-EJYWGTZ7.js';
5
5
  //# sourceMappingURL=index.js.map
6
6
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkHQTM6HLJ_cjs = require('../../chunk-HQTM6HLJ.cjs');
4
- require('../../chunk-XDT24LBQ.cjs');
5
- require('../../chunk-73NPW5LY.cjs');
6
- var chunkVKM6VUOZ_cjs = require('../../chunk-VKM6VUOZ.cjs');
3
+ var chunkI4YBVHAK_cjs = require('../../chunk-I4YBVHAK.cjs');
4
+ require('../../chunk-BFQX2KS3.cjs');
5
+ require('../../chunk-FDQQOF3F.cjs');
6
+ var chunk7NK6XFC3_cjs = require('../../chunk-7NK6XFC3.cjs');
7
7
 
8
8
  // src/repositories/realm/walletRepository.ts
9
9
  var RealmWalletRepository = class {
@@ -11,7 +11,7 @@ var RealmWalletRepository = class {
11
11
  this.realm = realm;
12
12
  }
13
13
  realm;
14
- version = 1;
14
+ version = 2;
15
15
  // ── Lifecycle ──────────────────────────────────────────────────────
16
16
  async ensureInit() {
17
17
  }
@@ -35,7 +35,7 @@ var RealmWalletRepository = class {
35
35
  await this.ensureInit();
36
36
  this.realm.write(() => {
37
37
  for (const vtxo of vtxos) {
38
- const s = chunkHQTM6HLJ_cjs.serializeVtxo(vtxo);
38
+ const s = chunkI4YBVHAK_cjs.serializeVtxo(vtxo);
39
39
  this.realm.create(
40
40
  "ArkVtxo",
41
41
  {
@@ -50,7 +50,7 @@ var RealmWalletRepository = class {
50
50
  intentCb: s.intentTapLeafScript.cb,
51
51
  intentS: s.intentTapLeafScript.s,
52
52
  statusJson: JSON.stringify(s.status),
53
- createdAt: chunkHQTM6HLJ_cjs.createdAtToIso(s.createdAt),
53
+ createdAt: chunkI4YBVHAK_cjs.createdAtToIso(s.createdAt),
54
54
  isUnrolled: s.isUnrolled ?? false,
55
55
  isSpent: s.isSpent === void 0 ? null : s.isSpent,
56
56
  isSwept: s.isSwept === void 0 ? null : s.isSwept,
@@ -74,7 +74,7 @@ var RealmWalletRepository = class {
74
74
  return this.deleteWhere("ArkVtxo", "address", address);
75
75
  }
76
76
  async getVtxosForScriptPage(script, page, options) {
77
- chunkHQTM6HLJ_cjs.assertPageRequest(page);
77
+ chunkI4YBVHAK_cjs.assertPageRequest(page);
78
78
  await this.ensureInit();
79
79
  let results = this.realm.objects("ArkVtxo").filtered("script == $0", script);
80
80
  if (options?.unspentOnly) {
@@ -101,15 +101,15 @@ var RealmWalletRepository = class {
101
101
  rows.push({ address: row.address, vtxo: vtxoObjectToDomain(row) });
102
102
  if (rows.length > page.limit) break;
103
103
  }
104
- const result = chunkHQTM6HLJ_cjs.pageResult(rows, page.limit, (row) => ({
104
+ const result = chunkI4YBVHAK_cjs.pageResult(rows, page.limit, (row) => ({
105
105
  address: row.address,
106
106
  txid: row.vtxo.txid,
107
107
  vout: row.vtxo.vout
108
108
  }));
109
- return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !chunkVKM6VUOZ_cjs.isVtxoSpent(row.vtxo)) } : result;
109
+ return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !chunk7NK6XFC3_cjs.isVtxoSpent(row.vtxo)) } : result;
110
110
  }
111
111
  async saveVtxosForScript(key, vtxos) {
112
- return this.saveVtxos(chunkHQTM6HLJ_cjs.checkSaveVtxosForScript("RealmWalletRepository", key, vtxos), vtxos);
112
+ return this.saveVtxos(chunkI4YBVHAK_cjs.checkSaveVtxosForScript("RealmWalletRepository", key, vtxos), vtxos);
113
113
  }
114
114
  async deleteVtxosForScript(script) {
115
115
  return this.deleteWhere("ArkVtxo", "script", script);
@@ -119,7 +119,7 @@ var RealmWalletRepository = class {
119
119
  return this.pageByAddress("ArkUtxo", address, page, utxoObjectToDomain);
120
120
  }
121
121
  async pageByAddress(schema, address, page, deserialize) {
122
- chunkHQTM6HLJ_cjs.assertPageRequest(page);
122
+ chunkI4YBVHAK_cjs.assertPageRequest(page);
123
123
  await this.ensureInit();
124
124
  let results = this.realm.objects(schema).filtered("address == $0", address);
125
125
  if (page.after) {
@@ -137,14 +137,14 @@ var RealmWalletRepository = class {
137
137
  rows.push({ key: { txid: row.txid, vout: row.vout }, item: deserialize(row) });
138
138
  if (rows.length > page.limit) break;
139
139
  }
140
- const result = chunkHQTM6HLJ_cjs.pageResult(rows, page.limit, (row) => row.key);
140
+ const result = chunkI4YBVHAK_cjs.pageResult(rows, page.limit, (row) => row.key);
141
141
  return { items: result.items.map((row) => row.item), nextCursor: result.nextCursor };
142
142
  }
143
143
  async saveUtxos(address, utxos) {
144
144
  await this.ensureInit();
145
145
  this.realm.write(() => {
146
146
  for (const utxo of utxos) {
147
- const s = chunkHQTM6HLJ_cjs.serializeUtxo(utxo);
147
+ const s = chunkI4YBVHAK_cjs.serializeUtxo(utxo);
148
148
  this.realm.create(
149
149
  "ArkUtxo",
150
150
  {
@@ -171,8 +171,8 @@ var RealmWalletRepository = class {
171
171
  }
172
172
  // ── Transaction history ────────────────────────────────────────────
173
173
  async getTransactionHistoryPage(filter, page) {
174
- chunkHQTM6HLJ_cjs.assertPageRequest(page);
175
- chunkHQTM6HLJ_cjs.assertHistoryPageFilter(filter);
174
+ chunkI4YBVHAK_cjs.assertPageRequest(page);
175
+ chunkI4YBVHAK_cjs.assertHistoryPageFilter(filter);
176
176
  let results = this.realm.objects("ArkTransaction").filtered("address == $0", filter.address);
177
177
  results = results.filtered(
178
178
  "createdAt >= $0",
@@ -186,12 +186,12 @@ var RealmWalletRepository = class {
186
186
  ["arkTxid", false]
187
187
  ])) {
188
188
  const tx = txObjectToDomain(row);
189
- if (page.after !== void 0 && chunkHQTM6HLJ_cjs.compareHistoryCursors({ createdAt: tx.createdAt, key: tx.key }, page.after) <= 0)
189
+ if (page.after !== void 0 && chunkI4YBVHAK_cjs.compareHistoryCursors({ createdAt: tx.createdAt, key: tx.key }, page.after) <= 0)
190
190
  continue;
191
191
  rows.push(tx);
192
192
  if (rows.length > page.limit) break;
193
193
  }
194
- return chunkHQTM6HLJ_cjs.pageResult(rows, page.limit, (tx) => ({ createdAt: tx.createdAt, key: tx.key }));
194
+ return chunkI4YBVHAK_cjs.pageResult(rows, page.limit, (tx) => ({ createdAt: tx.createdAt, key: tx.key }));
195
195
  }
196
196
  async saveTransactions(address, txs) {
197
197
  await this.ensureInit();
@@ -209,7 +209,7 @@ var RealmWalletRepository = class {
209
209
  amount: tx.amount,
210
210
  settled: tx.settled,
211
211
  createdAt: tx.createdAt,
212
- assetsJson: tx.assets ? JSON.stringify(chunkHQTM6HLJ_cjs.serializeAssets(tx.assets)) : null
212
+ assetsJson: tx.assets ? JSON.stringify(chunkI4YBVHAK_cjs.serializeAssets(tx.assets)) : null
213
213
  },
214
214
  "modified"
215
215
  );
@@ -286,9 +286,9 @@ function vtxoObjectToDomain(obj) {
286
286
  // Post-migration every row has `script`, but the backfill is
287
287
  // idempotent: derive from `address` if the legacy column is still
288
288
  // null (e.g. the migration hasn't run yet on this handle).
289
- script: obj.script ?? chunkHQTM6HLJ_cjs.scriptFromArkAddress(obj.address)
289
+ script: obj.script ?? chunkI4YBVHAK_cjs.scriptFromArkAddress(obj.address)
290
290
  };
291
- return chunkHQTM6HLJ_cjs.deserializeVtxo(serialized);
291
+ return chunkI4YBVHAK_cjs.deserializeVtxo(serialized);
292
292
  }
293
293
  function utxoObjectToDomain(obj) {
294
294
  const serialized = {
@@ -307,7 +307,7 @@ function utxoObjectToDomain(obj) {
307
307
  status: JSON.parse(obj.statusJson),
308
308
  extraWitness: obj.extraWitnessJson ? JSON.parse(obj.extraWitnessJson) : void 0
309
309
  };
310
- return chunkHQTM6HLJ_cjs.deserializeUtxo(serialized);
310
+ return chunkI4YBVHAK_cjs.deserializeUtxo(serialized);
311
311
  }
312
312
  function txObjectToDomain(obj) {
313
313
  const tx = {
@@ -322,7 +322,7 @@ function txObjectToDomain(obj) {
322
322
  createdAt: obj.createdAt
323
323
  };
324
324
  if (obj.assetsJson) {
325
- tx.assets = chunkHQTM6HLJ_cjs.deserializeAssets(JSON.parse(obj.assetsJson));
325
+ tx.assets = chunkI4YBVHAK_cjs.deserializeAssets(JSON.parse(obj.assetsJson));
326
326
  }
327
327
  return tx;
328
328
  }
@@ -333,7 +333,7 @@ var RealmContractRepository = class {
333
333
  this.realm = realm;
334
334
  }
335
335
  realm;
336
- version = 2;
336
+ version = 3;
337
337
  // ── Lifecycle ──────────────────────────────────────────────────────
338
338
  async ensureInit() {
339
339
  }
@@ -348,8 +348,8 @@ var RealmContractRepository = class {
348
348
  }
349
349
  // ── Contract management ────────────────────────────────────────────
350
350
  async getContractsPage(filter, page) {
351
- chunkHQTM6HLJ_cjs.assertPageRequest(page);
352
- if (chunkHQTM6HLJ_cjs.contractFilterMatchesNothing(filter)) return { items: [] };
351
+ chunkI4YBVHAK_cjs.assertPageRequest(page);
352
+ if (chunkI4YBVHAK_cjs.contractFilterMatchesNothing(filter)) return { items: [] };
353
353
  let results = this.realm.objects("ArkContract");
354
354
  const parts = [];
355
355
  const args = [];
@@ -370,7 +370,7 @@ var RealmContractRepository = class {
370
370
  rows.push(contractObjectToDomain(row));
371
371
  if (rows.length > page.limit) break;
372
372
  }
373
- return chunkHQTM6HLJ_cjs.pageResult(rows, page.limit, (contract) => contract.script);
373
+ return chunkI4YBVHAK_cjs.pageResult(rows, page.limit, (contract) => contract.script);
374
374
  }
375
375
  async saveContract(contract) {
376
376
  await this.ensureInit();
@@ -491,7 +491,7 @@ var RealmIntentRepository = class {
491
491
  const clashes = [
492
492
  ...this.realm.objects("ArkIntent").filtered("intentId == $0", intent.intentId)
493
493
  ].map(toIntent);
494
- chunkHQTM6HLJ_cjs.assertIntentIdUnique(intent, clashes);
494
+ chunkI4YBVHAK_cjs.assertIntentIdUnique(intent, clashes);
495
495
  }
496
496
  this.realm.create(
497
497
  "ArkIntent",
@@ -519,22 +519,22 @@ var RealmIntentRepository = class {
519
519
  });
520
520
  }
521
521
  async getIntentsPage(filter, page) {
522
- chunkHQTM6HLJ_cjs.assertPageRequest(page);
522
+ chunkI4YBVHAK_cjs.assertPageRequest(page);
523
523
  let results = this.realm.objects("ArkIntent");
524
524
  if (page.after !== void 0) results = results.filtered("intentTxId > $0", page.after);
525
525
  const rows = [];
526
526
  for (const row of results.sorted("intentTxId")) {
527
527
  const intent = toIntent(row);
528
- if (filter && !chunkHQTM6HLJ_cjs.intentMatchesFilter(intent, filter)) continue;
528
+ if (filter && !chunkI4YBVHAK_cjs.intentMatchesFilter(intent, filter)) continue;
529
529
  rows.push(intent);
530
530
  if (rows.length > page.limit) break;
531
531
  }
532
- return chunkHQTM6HLJ_cjs.pageResult(rows, page.limit, (intent) => intent.intentTxId);
532
+ return chunkI4YBVHAK_cjs.pageResult(rows, page.limit, (intent) => intent.intentTxId);
533
533
  }
534
534
  async getLockedVtxoOutpoints() {
535
535
  const out = [];
536
536
  for (const o of [...this.realm.objects("ArkIntent")].map(toIntent))
537
- if (!chunkHQTM6HLJ_cjs.isTerminalIntentState(o.state)) out.push(...o.intentVtxos);
537
+ if (!chunkI4YBVHAK_cjs.isTerminalIntentState(o.state)) out.push(...o.intentVtxos);
538
538
  return out;
539
539
  }
540
540
  async [Symbol.asyncDispose]() {
@@ -576,7 +576,7 @@ var RealmVirtualTxRepository = class {
576
576
  txid: t.txid,
577
577
  psbt: t.psbt ?? prev?.psbt ?? null,
578
578
  expiresAt: t.expiresAt ?? prev?.expiresAt ?? null,
579
- type: chunkHQTM6HLJ_cjs.mergeChainedTxType(t.type, prev?.type)
579
+ type: chunkI4YBVHAK_cjs.mergeChainedTxType(t.type, prev?.type)
580
580
  },
581
581
  "modified"
582
582
  );
@@ -821,9 +821,9 @@ function runArkRealmMigrations(oldRealm, newRealm) {
821
821
  for (let i = 0; i < newVtxos.length; i++) {
822
822
  const newVtxo = newVtxos[i];
823
823
  if (!newVtxo.script) {
824
- newVtxo.script = chunkHQTM6HLJ_cjs.scriptFromArkAddress(newVtxo.address);
824
+ newVtxo.script = chunkI4YBVHAK_cjs.scriptFromArkAddress(newVtxo.address);
825
825
  }
826
- const facts = chunkHQTM6HLJ_cjs.legacyVtxoFacts(legacyByPk.get(newVtxo.pk));
826
+ const facts = chunkI4YBVHAK_cjs.legacyVtxoFacts(legacyByPk.get(newVtxo.pk));
827
827
  if (facts) {
828
828
  if (newVtxo.isSpent == null) newVtxo.isSpent = facts.isSpent;
829
829
  if (newVtxo.isSwept == null) newVtxo.isSwept = facts.isSwept;
@@ -853,7 +853,7 @@ function runArkRealmMigrations(oldRealm, newRealm) {
853
853
 
854
854
  Object.defineProperty(exports, "ChainedTxType", {
855
855
  enumerable: true,
856
- get: function () { return chunkHQTM6HLJ_cjs.ChainedTxType; }
856
+ get: function () { return chunkI4YBVHAK_cjs.ChainedTxType; }
857
857
  });
858
858
  exports.ARK_REALM_SCHEMA_VERSION = ARK_REALM_SCHEMA_VERSION;
859
859
  exports.ArkExperimentalRealmSchemas = ArkExperimentalRealmSchemas;