@arkade-os/sdk 0.4.48-rc.0 → 0.4.48

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 (85) hide show
  1. package/dist/adapters/expo.cjs +5 -5
  2. package/dist/adapters/expo.d.cts +2 -2
  3. package/dist/adapters/expo.d.ts +2 -2
  4. package/dist/adapters/expo.js +3 -3
  5. package/dist/adapters/indexedDB.cjs +5 -5
  6. package/dist/adapters/indexedDB.js +4 -4
  7. package/dist/{ark-CoJgwTi_.d.cts → ark-CjE0KkGp.d.cts} +405 -250
  8. package/dist/{ark-CoJgwTi_.d.ts → ark-CjE0KkGp.d.ts} +405 -250
  9. package/dist/{asyncStorageTaskQueue-CwknfM_j.d.cts → asyncStorageTaskQueue-CeLZhZFU.d.cts} +1 -1
  10. package/dist/{asyncStorageTaskQueue-D2Zl7yAB.d.ts → asyncStorageTaskQueue-D9SOPMPC.d.ts} +1 -1
  11. package/dist/{chunk-XN3554FT.js → chunk-4VVTRPH3.js} +4 -4
  12. package/dist/chunk-4VVTRPH3.js.map +1 -0
  13. package/dist/{chunk-RQSA7ADZ.cjs → chunk-5XMVTK5S.cjs} +37 -37
  14. package/dist/chunk-5XMVTK5S.cjs.map +1 -0
  15. package/dist/{chunk-L5ND2FJJ.cjs → chunk-7TXSPRN5.cjs} +161 -2
  16. package/dist/chunk-7TXSPRN5.cjs.map +1 -0
  17. package/dist/{chunk-GM6JRQP5.js → chunk-BHHLRZCS.js} +169 -42
  18. package/dist/chunk-BHHLRZCS.js.map +1 -0
  19. package/dist/{chunk-CFQO5MCM.cjs → chunk-EB3ALGTM.cjs} +178 -50
  20. package/dist/chunk-EB3ALGTM.cjs.map +1 -0
  21. package/dist/{chunk-3HUZAIKI.cjs → chunk-ENDNQPZA.cjs} +17 -44
  22. package/dist/chunk-ENDNQPZA.cjs.map +1 -0
  23. package/dist/{chunk-RJMFTTRJ.cjs → chunk-ENZ4YPR2.cjs} +614 -592
  24. package/dist/chunk-ENZ4YPR2.cjs.map +1 -0
  25. package/dist/{chunk-4AIHKC65.js → chunk-G6J6AEMH.js} +5 -4
  26. package/dist/chunk-G6J6AEMH.js.map +1 -0
  27. package/dist/{chunk-SV4PCGKM.js → chunk-NYR5H6GR.js} +348 -323
  28. package/dist/chunk-NYR5H6GR.js.map +1 -0
  29. package/dist/{chunk-EA3IWZ4W.cjs → chunk-SYDANBJI.cjs} +9 -8
  30. package/dist/chunk-SYDANBJI.cjs.map +1 -0
  31. package/dist/{chunk-ZRY2KSK5.js → chunk-XFMGIFBL.js} +4 -31
  32. package/dist/chunk-XFMGIFBL.js.map +1 -0
  33. package/dist/{chunk-C7TXXTMS.js → chunk-ZDDBTFVO.js} +146 -3
  34. package/dist/chunk-ZDDBTFVO.js.map +1 -0
  35. package/dist/contracts/handlers/index.cjs +8 -8
  36. package/dist/contracts/handlers/index.d.cts +3 -3
  37. package/dist/contracts/handlers/index.d.ts +3 -3
  38. package/dist/contracts/handlers/index.js +2 -2
  39. package/dist/{delegate-Dl87_zMA.d.cts → delegate-D3dY-2vS.d.cts} +1 -1
  40. package/dist/{delegate-CuaDqqQi.d.ts → delegate-DhGZk1r2.d.ts} +1 -1
  41. package/dist/{index-BC_G0VTh.d.cts → index-D6RQROds.d.cts} +2 -2
  42. package/dist/{index-CKwpZEpw.d.ts → index-DK4_iWYy.d.ts} +2 -2
  43. package/dist/index.cjs +208 -188
  44. package/dist/index.d.cts +35 -18
  45. package/dist/index.d.ts +35 -18
  46. package/dist/index.js +4 -4
  47. package/dist/repositories/realm/index.cjs +19 -19
  48. package/dist/repositories/realm/index.d.cts +2 -2
  49. package/dist/repositories/realm/index.d.ts +2 -2
  50. package/dist/repositories/realm/index.js +5 -5
  51. package/dist/repositories/sqlite/index.cjs +18 -18
  52. package/dist/repositories/sqlite/index.d.cts +2 -2
  53. package/dist/repositories/sqlite/index.d.ts +2 -2
  54. package/dist/repositories/sqlite/index.js +5 -5
  55. package/dist/{taskRunner-Df8YQpn1.d.ts → taskRunner-B-2MHCYG.d.ts} +1 -1
  56. package/dist/{taskRunner-RYihSj9E.d.cts → taskRunner-Brnak0Rc.d.cts} +1 -1
  57. package/dist/wallet/expo/background.cjs +14 -14
  58. package/dist/wallet/expo/background.d.cts +3 -3
  59. package/dist/wallet/expo/background.d.ts +3 -3
  60. package/dist/wallet/expo/background.js +6 -6
  61. package/dist/wallet/expo/index.cjs +14 -14
  62. package/dist/wallet/expo/index.cjs.map +1 -1
  63. package/dist/wallet/expo/index.d.cts +5 -5
  64. package/dist/wallet/expo/index.d.ts +5 -5
  65. package/dist/wallet/expo/index.js +5 -5
  66. package/dist/wallet/expo/index.js.map +1 -1
  67. package/dist/{wallet-B6s7_5bJ.d.cts → wallet-B5bwixQa.d.ts} +31 -31
  68. package/dist/{wallet-C61huH8i.d.ts → wallet-DiOrtYic.d.cts} +31 -31
  69. package/dist/worker/expo/index.cjs +9 -9
  70. package/dist/worker/expo/index.d.cts +4 -4
  71. package/dist/worker/expo/index.d.ts +4 -4
  72. package/dist/worker/expo/index.js +5 -5
  73. package/package.json +3 -2
  74. package/dist/chunk-3HUZAIKI.cjs.map +0 -1
  75. package/dist/chunk-4AIHKC65.js.map +0 -1
  76. package/dist/chunk-C7TXXTMS.js.map +0 -1
  77. package/dist/chunk-CFQO5MCM.cjs.map +0 -1
  78. package/dist/chunk-EA3IWZ4W.cjs.map +0 -1
  79. package/dist/chunk-GM6JRQP5.js.map +0 -1
  80. package/dist/chunk-L5ND2FJJ.cjs.map +0 -1
  81. package/dist/chunk-RJMFTTRJ.cjs.map +0 -1
  82. package/dist/chunk-RQSA7ADZ.cjs.map +0 -1
  83. package/dist/chunk-SV4PCGKM.js.map +0 -1
  84. package/dist/chunk-XN3554FT.js.map +0 -1
  85. package/dist/chunk-ZRY2KSK5.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { _ as ReadonlyIdentity, a as Identity, ai as DescriptorSigningRequest, aj as Transaction, af as SignerSession, x as IntentRepository, y as ArkIntent, z as IntentFilter, O as Outpoint, B as VirtualTxRepository, D as VirtualTx, F as VtxoBranch, W as WalletRepository, E as ExtendedVirtualCoin, u as VtxoRepositoryKey, d as ExtendedCoin, A as ArkTransaction, v as WalletState, t as Contract, C as ContractRepository, w as ContractFilter, ak as IntentFeeConfig, al as OffchainInput, am as FeeAmount, an as OnchainInput, ao as FeeOutput, o as ArkProvider, ad as SettlementConfig, ap as ContractWatcherConfig, aq as Asset, R as Recipient, I as IWallet, ar as FeeInfo, j as SettlementEvent, Y as DescriptorProvider, i as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, as as CreateContractParams, at as GetContractsFilter, s as VirtualCoin, au as GetSpendablePathsOptions, av as GetAllSpendingPathsOptions, aw as IssuanceParams, ax as ReissuanceParams, ay as BurnParams, az as RenewVtxosOptions, c as WalletBalance, a6 as ContractSyncState, aA as ContractWithVtxos, aB as PathSelection, aC as ContractEvent, aD as AssetDetails, aE as IssuanceResult, aF as DelegateInfo, aG as MigrationGlobalSkipReason, aH as MigrationLegSkipReason, aI as SignerStatus, Z as IReadonlyWallet, e as ActivityRegistry, a5 as IReadonlyAssetManager, aJ as StorageConfig, f as Activity, g as IContractManager, k as IAssetManager, h as IDelegateManager, aK as IVtxoManager, a0 as OnchainProvider, $ as Network, a7 as NetworkName, aa as Coin, aL as ExplorerTransaction, r as TapLeafScript, aM as EncodedVtxoScript, ac as CSVMultisigTapscript, q as RelativeTimelock, V as VtxoScript, aN as Status, a9 as ArkAddress, ah as Intent, aO as ChainTx, p as IndexerProvider, L as TxTree, aP as PathContext } from './ark-CoJgwTi_.cjs';
2
- export { aQ as ActivityIntent, aR as ActivityResolver, a8 as ArkInfo, aS as ArkIntentState, aT as ArkTapscript, aU as AssetMetadata, aV as BaseWalletConfig, Q as BatchFailedEvent, N as BatchFinalizationEvent, P as BatchFinalizedEvent, aW as BatchInfo, aX as BatchSignableIdentity, J as BatchStartedEvent, aY as CLTVMultisigTapscript, aZ as ChainTxType, H as ChainedTxType, a_ as CommitmentTx, a$ as ConditionCSVMultisigTapscript, b0 as ConditionMultisigTapscript, b1 as ContractBalance, b2 as ContractEventCallback, b3 as ContractHandler, ab as ContractManager, b4 as ContractManagerConfig, b5 as ContractState, b6 as ContractVtxo, b7 as ContractWatcher, b8 as DelegateManagerImpl, b9 as DelegateOptions, a1 as DelegateProvider, ba as DelegatorManagerImpl, bb as DelegatorProvider, bc as DeprecatedSignerMigrationReport, bd as DeprecatedSignerReport, be as DigestMismatchError, bf as Discoverable, bg as DiscoveredContract, bh as DiscoveryDeps, bi as ESPLORA_URL, bj as EsploraProvider, a3 as ExitCaptureMode, bk as ExitChainResolver, a4 as ExitDataSource, bl as ExtendedContractVtxo, bm as GroupMembership, bn as HandlerError, bo as IDelegatorManager, bp as INTENT_TERMINAL_STATES, bq as IndexerTxType, br as KnownMetadata, bs as MigrateDeprecatedSignerOptions, bt as MigrationLegReport, bu as MigrationVtxoRef, bv as MultisigTapscript, bw as Nonces, bx as Output, by as PageResponse, bz as PaginationOptions, bA as PartialSig, bB as ProviderClass, a2 as ReadonlyWalletConfig, l as RestArkProvider, bC as RestDelegateProvider, bD as RestDelegatorProvider, m as RestIndexerProvider, bE as ScanContractsOptions, bF as ScanResult, bG as ScheduledSession, bH as SettlementEventType, bI as SignRequest, ag as SignedIntent, bJ as SignerClassification, bK as SignerSet, bL as SubscriptionEvent, bM as SubscriptionHeartbeat, n as SubscriptionResponse, bN as TapLeaves, bO as TapTreeCoder, bP as TapscriptType, bQ as TreeNonces, M as TreeNoncesEvent, bR as TreePartialSigs, X as TreeSignatureEvent, K as TreeSigningStartedEvent, U as TreeTxEvent, bS as Tx, bT as TxHistoryRecord, bU as TxKey, T as TxNotification, bV as TxTreeNode, bW as TxType, bX as VirtualStatus, bY as Vtxo, bZ as VtxoChain, ae as VtxoManager, b_ as VtxoType, b as WalletConfig, b$ as WalletMode, c0 as boardingResolver, c1 as classifyAgainstSignerSet, c2 as classifyContractSigner, c3 as createDefaultActivityRegistry, c4 as createExitChainResolver, c5 as decodeTapscript, c6 as getNetwork, c7 as getSequence, c8 as isBatchSignable, c9 as isCooperativelyMigratable, ca as isDiscoverable, cb as isExpired, cc as isRecoverable, cd as isSpendable, ce as isSubdust, cf as isTerminalIntentState, cg as isVtxoExpiringSoon, ch as networks, ci as signerSetFromInfo, cj as toXOnlySignerHex } from './ark-CoJgwTi_.cjs';
3
- import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-BC_G0VTh.cjs';
4
- export { n as ArkadeContractHandler, B as BoardingContractHandler, o as BoardingContractParams, D as DefaultContractHandler, q as DefaultContractParams, t as DelegateContractHandler, u as DelegateContractParams, V as VHTLC, x as VHTLCContractHandler, y as VHTLCContractParams, z as contractHandlers } from './index-BC_G0VTh.cjs';
5
- import { D as DefaultVtxo } from './delegate-Dl87_zMA.cjs';
6
- export { a as DelegateVtxo } from './delegate-Dl87_zMA.cjs';
7
- import { W as Wallet, R as ReadonlyWallet, a as ReceiveRotatorFactory, b as ReceiveRotatorBootOpts, c as ReceiveRotatorBoot, P as ProviderConnectionState, B as Batch } from './wallet-B6s7_5bJ.cjs';
8
- export { A as ArkCashClaimResult, d as ArkCashCreateError, e as ArkCashUnclaimedReason, f as ArkCashUnclaimedVtxo, g as ArkError, h as ArkErrorName, i as BoardingUtxoGroup, I as IncomingFunds, j as ProviderKind, k as ProviderUnavailableError, S as ServerInfoSource, l as isArkError, m as maybeArkError, s as selectVirtualCoins, w as waitForIncomingFunds } from './wallet-B6s7_5bJ.cjs';
1
+ import { $ as ReadonlyIdentity, a as Identity, ak as DescriptorSigningRequest, al as Transaction, ag as SignerSession, x as IntentRepository, y as ArkIntent, z as IntentFilter, O as Outpoint, B as VirtualTxRepository, D as VirtualTx, F as VtxoBranch, W as WalletRepository, t as ExtendedVirtualCoin, u as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, v as WalletState, s as Contract, C as ContractRepository, w as ContractFilter, am as IntentFeeConfig, an as OffchainInput, ao as FeeAmount, ap as OnchainInput, aq as FeeOutput, n as ArkProvider, ae as SettlementConfig, ar as ContractWatcherConfig, as as Asset, R as Recipient, I as IWallet, at as FeeInfo, i as SettlementEvent, Z as DescriptorProvider, h as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, au as CreateContractParams, av as GetContractsFilter, r as VirtualCoin, aw as GetSpendablePathsOptions, ax as GetAllSpendingPathsOptions, ay as IssuanceParams, az as ReissuanceParams, aA as BurnParams, aB as RenewVtxosOptions, c as WalletBalance, a7 as ContractSyncState, aC as ContractWithVtxos, aD as PathSelection, aE as ContractEvent, aF as AssetDetails, aG as IssuanceResult, aH as DelegateInfo, aI as MigrationGlobalSkipReason, aJ as MigrationLegSkipReason, aK as SignerStatus, _ as IReadonlyWallet, d as ActivityRegistry, a6 as IReadonlyAssetManager, aL as StorageConfig, e as Activity, N as NormalizedExtendedVirtualCoin, f as IContractManager, j as IAssetManager, g as IDelegateManager, aM as IVtxoManager, a1 as OnchainProvider, a0 as Network, a8 as NetworkName, ab as Coin, aN as ExplorerTransaction, q as TapLeafScript, aO as EncodedVtxoScript, ad as CSVMultisigTapscript, p as RelativeTimelock, V as VtxoScript, aP as Status, aa as ArkAddress, ai as Intent, aQ as ChainTx, o as IndexerProvider, L as TxTree, aR as PathContext } from './ark-CjE0KkGp.cjs';
2
+ export { aS as ActivityIntent, aT as ActivityResolver, a9 as ArkInfo, aU as ArkIntentState, aV as ArkTapscript, aW as AssetMetadata, aX as BaseWalletConfig, U as BatchFailedEvent, P as BatchFinalizationEvent, Q as BatchFinalizedEvent, aY as BatchInfo, aZ as BatchSignableIdentity, J as BatchStartedEvent, a_ as CLTVMultisigTapscript, a$ as ChainTxType, H as ChainedTxType, b0 as CommitmentTx, b1 as ConditionCSVMultisigTapscript, b2 as ConditionMultisigTapscript, b3 as ContractBalance, b4 as ContractEventCallback, b5 as ContractHandler, ac as ContractManager, b6 as ContractManagerConfig, b7 as ContractState, b8 as ContractVtxo, b9 as ContractWatcher, ba as DelegateManagerImpl, bb as DelegateOptions, a2 as DelegateProvider, bc as DelegatorManagerImpl, bd as DelegatorProvider, be as DeprecatedSignerMigrationReport, bf as DeprecatedSignerReport, bg as DigestMismatchError, bh as Discoverable, bi as DiscoveredContract, bj as DiscoveryDeps, bk as ESPLORA_URL, bl as EsploraProvider, a4 as ExitCaptureMode, bm as ExitChainResolver, a5 as ExitDataSource, bn as ExtendedContractVtxo, bo as GroupMembership, bp as HandlerError, bq as IDelegatorManager, br as INTENT_TERMINAL_STATES, bs as IndexerTxType, bt as KnownMetadata, bu as MigrateDeprecatedSignerOptions, bv as MigrationLegReport, bw as MigrationVtxoRef, bx as MultisigTapscript, by as Nonces, bz as Output, bA as PageResponse, bB as PaginationOptions, bC as PartialSig, bD as ProviderClass, a3 as ReadonlyWalletConfig, k as RestArkProvider, bE as RestDelegateProvider, bF as RestDelegatorProvider, l as RestIndexerProvider, bG as ScanContractsOptions, bH as ScanResult, bI as ScheduledSession, bJ as SettlementEventType, bK as SignRequest, ah as SignedIntent, bL as SignerClassification, bM as SignerSet, bN as SubscriptionEvent, bO as SubscriptionHeartbeat, m as SubscriptionResponse, bP as TapLeaves, bQ as TapTreeCoder, bR as TapscriptType, aj as TimeHeight, bS as TreeNonces, M as TreeNoncesEvent, bT as TreePartialSigs, Y as TreeSignatureEvent, K as TreeSigningStartedEvent, X as TreeTxEvent, bU as Tx, bV as TxHistoryRecord, bW as TxKey, T as TxNotification, bX as TxTreeNode, bY as TxType, bZ as VirtualStatus, b_ as Vtxo, b$ as VtxoChain, af as VtxoManager, c0 as VtxoType, b as WalletConfig, c1 as WalletMode, c2 as boardingResolver, c3 as canRecoverOnchain, c4 as canSpendOffchain, c5 as classifyAgainstSignerSet, c6 as classifyContractSigner, c7 as createDefaultActivityRegistry, c8 as createExitChainResolver, c9 as decodeTapscript, ca as getNetwork, cb as getSequence, cc as hasTerminalSpend, cd as isBatchSignable, ce as isCooperativelyMigratable, cf as isDiscoverable, cg as isExpired, ch as isPastExpiry, ci as isRecoverable, cj as isSpendable, ck as isSubdust, cl as isTerminalIntentState, cm as isVirtualCoin, cn as isVtxoExpiringSoon, co as networks, cp as signerSetFromInfo, cq as toXOnlySignerHex } from './ark-CjE0KkGp.cjs';
3
+ import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-D6RQROds.cjs';
4
+ export { n as ArkadeContractHandler, B as BoardingContractHandler, o as BoardingContractParams, D as DefaultContractHandler, q as DefaultContractParams, t as DelegateContractHandler, u as DelegateContractParams, V as VHTLC, x as VHTLCContractHandler, y as VHTLCContractParams, z as contractHandlers } from './index-D6RQROds.cjs';
5
+ import { D as DefaultVtxo } from './delegate-D3dY-2vS.cjs';
6
+ export { a as DelegateVtxo } from './delegate-D3dY-2vS.cjs';
7
+ import { W as Wallet, R as ReadonlyWallet, a as ReceiveRotatorFactory, b as ReceiveRotatorBootOpts, c as ReceiveRotatorBoot, P as ProviderConnectionState, B as Batch } from './wallet-DiOrtYic.cjs';
8
+ export { A as ArkError, d as ArkErrorName, e as ArkadeCashClaimResult, f as ArkadeCashCreateError, g as ArkadeCashUnclaimedReason, h as ArkadeCashUnclaimedVtxo, i as BoardingUtxoGroup, I as IncomingFunds, j as ProviderKind, k as ProviderUnavailableError, S as ServerInfoSource, l as isArkError, m as maybeArkError, s as selectVirtualCoins, w as waitForIncomingFunds } from './wallet-DiOrtYic.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';
@@ -2713,7 +2713,7 @@ declare class ServiceWorkerReadonlyWallet implements IReadonlyWallet {
2713
2713
  getProviderConnectionState(): Promise<ProviderConnectionState>;
2714
2714
  getActivityHistory(): Promise<Activity[]>;
2715
2715
  getTransactionHistory(): Promise<ArkTransaction[]>;
2716
- getVtxos(filter?: GetVtxosFilter): Promise<ExtendedVirtualCoin[]>;
2716
+ getVtxos(filter?: GetVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
2717
2717
  /**
2718
2718
  * Trigger a wallet reload inside the service worker.
2719
2719
  *
@@ -3509,17 +3509,17 @@ declare class ArkNote implements ExtendedCoin {
3509
3509
  }
3510
3510
 
3511
3511
  /**
3512
- * ArkCash is a bearer instrument for the Ark protocol.
3512
+ * ArkadeCash is a bearer instrument for the Ark protocol.
3513
3513
  * It encodes a private key and contract parameters as a bech32m string,
3514
3514
  * enabling wallet-to-wallet transfers without address exchange.
3515
3515
  *
3516
- * Format: arkcash1... (bech32m encoded)
3516
+ * Format: arkadecash1... (bech32m encoded)
3517
3517
  * Payload: version (1 byte) + private key (32 bytes) + server pubkey (32 bytes) + csv timelock sequence (4 bytes)
3518
3518
  */
3519
- declare class ArkCash {
3519
+ declare class ArkadeCash {
3520
3520
  readonly csvTimelock: RelativeTimelock;
3521
3521
  readonly hrp: string;
3522
- static readonly DefaultHRP = "arkcash";
3522
+ static readonly DefaultHRP = "arkadecash";
3523
3523
  static readonly Version = 0;
3524
3524
  static readonly PayloadLength: number;
3525
3525
  private readonly _privateKey;
@@ -3532,8 +3532,8 @@ declare class ArkCash {
3532
3532
  get serverPubKey(): Uint8Array;
3533
3533
  /** The note's public key. Returns a fresh copy; mutating it is a no-op. */
3534
3534
  get publicKey(): Uint8Array;
3535
- static generate(serverPubKey: Uint8Array, csvTimelock: RelativeTimelock, hrp?: string): ArkCash;
3536
- static fromString(encoded: string): ArkCash;
3535
+ static generate(serverPubKey: Uint8Array, csvTimelock: RelativeTimelock, hrp?: string): ArkadeCash;
3536
+ static fromString(encoded: string): ArkadeCash;
3537
3537
  toString(): string;
3538
3538
  get identity(): SingleKey;
3539
3539
  get vtxoScript(): DefaultVtxo.Script;
@@ -3620,10 +3620,25 @@ declare class RestEmulatorProvider implements EmulatorProvider {
3620
3620
  * @module arkade/batch
3621
3621
  */
3622
3622
 
3623
+ /** An onchain boarding input to an arkade batch. */
3623
3624
  type ArkadeExtendedCoin = ExtendedCoin & {
3624
3625
  arkadeScriptBytes: Uint8Array;
3625
3626
  };
3626
- declare function createArkadeBatchHandler(intentId: string, inputs: ArkadeExtendedCoin[], signer: Identity, signedProof: string, message: Intent.RegisterMessage, session: SignerSession, arkProvider: ArkProvider, emulator: EmulatorProvider, network: Network,
3627
+ /** A virtual output input to an arkade batch. */
3628
+ type ArkadeExtendedVirtualCoin = ExtendedVirtualCoin & {
3629
+ arkadeScriptBytes: Uint8Array;
3630
+ };
3631
+ /**
3632
+ * An input to {@link createArkadeBatchHandler}, boarding or virtual.
3633
+ *
3634
+ * @remarks
3635
+ * Spelled as a union so the discriminant {@link isVtxoCoin} reads — `script`, required on
3636
+ * `VirtualCoin` and absent from `ExtendedCoin` — is visible in the type. `ArkadeExtendedCoin[]`
3637
+ * alone would let a caller hand over a virtual output with no `script`, which the handler would
3638
+ * silently treat as boarding and settle without a forfeit.
3639
+ */
3640
+ type ArkadeBatchInput = ArkadeExtendedCoin | ArkadeExtendedVirtualCoin;
3641
+ declare function createArkadeBatchHandler(intentId: string, inputs: ArkadeBatchInput[], signer: Identity, signedProof: string, message: Intent.RegisterMessage, session: SignerSession, arkProvider: ArkProvider, emulator: EmulatorProvider, network: Network,
3627
3642
  /**
3628
3643
  * Expected recipients of the settlement, validated against the virtual
3629
3644
  * output tree before co-signing it (mirrors `Wallet.createBatchHandler`).
@@ -4843,11 +4858,13 @@ type index_Arkade = Arkade;
4843
4858
  declare const index_Arkade: typeof Arkade;
4844
4859
  declare const index_ArkadeArgType: typeof ArkadeArgType;
4845
4860
  declare const index_ArkadeArgValue: typeof ArkadeArgValue;
4861
+ type index_ArkadeBatchInput = ArkadeBatchInput;
4846
4862
  type index_ArkadeConnectOptions = ArkadeConnectOptions;
4847
4863
  type index_ArkadeContract<P extends Program = Program> = ArkadeContract<P>;
4848
4864
  declare const index_ArkadeContract: typeof ArkadeContract;
4849
4865
  declare const index_ArkadeContractParams: typeof ArkadeContractParams;
4850
4866
  type index_ArkadeExtendedCoin = ArkadeExtendedCoin;
4867
+ type index_ArkadeExtendedVirtualCoin = ArkadeExtendedVirtualCoin;
4851
4868
  declare const index_ArkadeFunction: typeof ArkadeFunction;
4852
4869
  declare const index_ArkadeParamValue: typeof ArkadeParamValue;
4853
4870
  declare const index_ArkadeProgramScript: typeof ArkadeProgramScript;
@@ -4895,7 +4912,7 @@ declare const index_toASM: typeof toASM;
4895
4912
  declare const index_validateProgram: typeof validateProgram;
4896
4913
  declare const index_witnessRefToBytes: typeof witnessRefToBytes;
4897
4914
  declare namespace index {
4898
- 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_ArkadeConnectOptions as ArkadeConnectOptions, index_ArkadeContract as ArkadeContract, index_ArkadeContractParams as ArkadeContractParams, type index_ArkadeExtendedCoin as ArkadeExtendedCoin, 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 };
4915
+ 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 };
4899
4916
  }
4900
4917
 
4901
4918
  /**
@@ -5051,4 +5068,4 @@ declare class AssetManager extends ReadonlyAssetManager implements IAssetManager
5051
5068
  burn(params: BurnParams): Promise<string>;
5052
5069
  }
5053
5070
 
5054
- export { ARKADE_MAGIC, Activity, ActivityRegistry, type AnchorBumper, ArkAddress, ArkCash, ArkIntent, ArkNote, ArkProvider, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, ArkadeContractParams, type ArkadeExtendedCoin, Asset, AssetDetails, AssetManager, BIP322, Batch, BurnParams, CSVMultisigTapscript, ChainTx, Coin, ConditionWitness, type ConnectorTreeNode, Contract, ContractEvent, ContractRepository, ContractRepositoryImpl, ContractSyncState, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DefaultVtxo, DelegateInfo, DelegateNotConfiguredError, DelegatorNotConfiguredError, type DescriptorOptions, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, type BlockHeader as ElectrumBlockHeader, ElectrumOnchainProvider, type TransactionHistory as ElectrumTransactionHistory, type Unspent as ElectrumUnspent, type EmulatorEntry, type EmulatorInfo, EmulatorPacket, type EmulatorProvider, EncodedVtxoScript, Estimator, type ExecutorEvent, type ExitDelay, type ExitFeeWallet, type ExitMode, type ExitOptions, type ExitPackage, type ExitQuote, type ExitStep, type ExitTotals, type ExitVtxoInfo, ExplorerTransaction, ExtendedCoin, ExtendedVirtualCoin, Extension, ExtensionNotFoundError, type ExtensionPacket, FeeAmount, FeeInfo, FeeOutput, FetchError, GetVtxosFilter, HDDescriptorProvider, IAssetManager, IContractManager, IDelegateManager, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, IndexerProvider, Intent, IntentFeeConfig, IntentFilter, IntentRepository, IssuanceParams, IssuanceResult, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, type MigrationStatus, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, OffchainInput, type OffchainTx, OnchainInput, OnchainProvider, OnchainWallet, Outpoint, P2A, type ParsedArkContract, PathContext, PathSelection, PrevArkTxField, PrevoutTxField, ProviderConnectionState, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, Recipient, ReissuanceParams, RelativeTimelock, RenewVtxosOptions, type RequestEnvelope, type ResponseEnvelope, RestEmulatorProvider, SeedIdentity, type SeedIdentityOptions, SendBitcoinParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignerSession, SignerStatus, SingleKey, Status, StorageConfig, TapLeafScript, Transaction, TxTree, TxWeightEstimator, UnilateralExit, UnknownPacket, Unroll, type VSize, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletMessageHandler, WalletNotInitializedError, WalletRepository, WalletRepositoryImpl, WsElectrumChainSource, index as arkade, assembleBtcdTaprootTree, index$1 as asset, buildForfeitTx, buildOffchainTx, buildVersion, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, createAssetPacket, decodeArkContract, deserializeExitPackage, encodeArkContract, getArkPsbtFields, getMigrationStatus, getRandomId, hasBoardingTxExpired, isArkContract, isCltvSatisfied, isCsvSpendable, isRetryableProviderError, isValidArkAddress, migrateWalletRepository, openDatabase, requiresMigration, rollbackMigration, sdkVersion, selectCoinsWithAsset, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, timelockToSequence, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures };
5071
+ export { ARKADE_MAGIC, Activity, ActivityRegistry, type AnchorBumper, ArkAddress, ArkIntent, ArkNote, ArkProvider, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, type ArkadeBatchInput, ArkadeCash, ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, Asset, AssetDetails, AssetManager, BIP322, Batch, BurnParams, CSVMultisigTapscript, ChainTx, Coin, ConditionWitness, type ConnectorTreeNode, Contract, ContractEvent, ContractRepository, ContractRepositoryImpl, ContractSyncState, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DefaultVtxo, DelegateInfo, DelegateNotConfiguredError, DelegatorNotConfiguredError, type DescriptorOptions, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, type BlockHeader as ElectrumBlockHeader, ElectrumOnchainProvider, type TransactionHistory as ElectrumTransactionHistory, type Unspent as ElectrumUnspent, type EmulatorEntry, type EmulatorInfo, EmulatorPacket, type EmulatorProvider, EncodedVtxoScript, Estimator, type ExecutorEvent, type ExitDelay, type ExitFeeWallet, type ExitMode, type ExitOptions, type ExitPackage, type ExitQuote, type ExitStep, type ExitTotals, type ExitVtxoInfo, ExplorerTransaction, ExtendedCoin, ExtendedVirtualCoin, Extension, ExtensionNotFoundError, type ExtensionPacket, FeeAmount, FeeInfo, FeeOutput, FetchError, GetVtxosFilter, HDDescriptorProvider, IAssetManager, IContractManager, IDelegateManager, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, IndexerProvider, Intent, IntentFeeConfig, IntentFilter, IntentRepository, IssuanceParams, IssuanceResult, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, type MigrationStatus, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, OffchainInput, type OffchainTx, OnchainInput, OnchainProvider, OnchainWallet, Outpoint, P2A, type ParsedArkContract, PathContext, PathSelection, PrevArkTxField, PrevoutTxField, ProviderConnectionState, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, Recipient, ReissuanceParams, RelativeTimelock, RenewVtxosOptions, type RequestEnvelope, type ResponseEnvelope, RestEmulatorProvider, SeedIdentity, type SeedIdentityOptions, SendBitcoinParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignerSession, SignerStatus, SingleKey, Status, StorageConfig, TapLeafScript, Transaction, TxTree, TxWeightEstimator, UnilateralExit, UnknownPacket, Unroll, type VSize, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletMessageHandler, WalletNotInitializedError, WalletRepository, WalletRepositoryImpl, WsElectrumChainSource, index as arkade, assembleBtcdTaprootTree, index$1 as asset, buildForfeitTx, buildOffchainTx, buildVersion, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, createAssetPacket, decodeArkContract, deserializeExitPackage, encodeArkContract, getArkPsbtFields, getMigrationStatus, getRandomId, hasBoardingTxExpired, isArkContract, isCltvSatisfied, isCsvSpendable, isRetryableProviderError, isValidArkAddress, migrateWalletRepository, openDatabase, requiresMigration, rollbackMigration, sdkVersion, selectCoinsWithAsset, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, timelockToSequence, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { _ as ReadonlyIdentity, a as Identity, ai as DescriptorSigningRequest, aj as Transaction, af as SignerSession, x as IntentRepository, y as ArkIntent, z as IntentFilter, O as Outpoint, B as VirtualTxRepository, D as VirtualTx, F as VtxoBranch, W as WalletRepository, E as ExtendedVirtualCoin, u as VtxoRepositoryKey, d as ExtendedCoin, A as ArkTransaction, v as WalletState, t as Contract, C as ContractRepository, w as ContractFilter, ak as IntentFeeConfig, al as OffchainInput, am as FeeAmount, an as OnchainInput, ao as FeeOutput, o as ArkProvider, ad as SettlementConfig, ap as ContractWatcherConfig, aq as Asset, R as Recipient, I as IWallet, ar as FeeInfo, j as SettlementEvent, Y as DescriptorProvider, i as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, as as CreateContractParams, at as GetContractsFilter, s as VirtualCoin, au as GetSpendablePathsOptions, av as GetAllSpendingPathsOptions, aw as IssuanceParams, ax as ReissuanceParams, ay as BurnParams, az as RenewVtxosOptions, c as WalletBalance, a6 as ContractSyncState, aA as ContractWithVtxos, aB as PathSelection, aC as ContractEvent, aD as AssetDetails, aE as IssuanceResult, aF as DelegateInfo, aG as MigrationGlobalSkipReason, aH as MigrationLegSkipReason, aI as SignerStatus, Z as IReadonlyWallet, e as ActivityRegistry, a5 as IReadonlyAssetManager, aJ as StorageConfig, f as Activity, g as IContractManager, k as IAssetManager, h as IDelegateManager, aK as IVtxoManager, a0 as OnchainProvider, $ as Network, a7 as NetworkName, aa as Coin, aL as ExplorerTransaction, r as TapLeafScript, aM as EncodedVtxoScript, ac as CSVMultisigTapscript, q as RelativeTimelock, V as VtxoScript, aN as Status, a9 as ArkAddress, ah as Intent, aO as ChainTx, p as IndexerProvider, L as TxTree, aP as PathContext } from './ark-CoJgwTi_.js';
2
- export { aQ as ActivityIntent, aR as ActivityResolver, a8 as ArkInfo, aS as ArkIntentState, aT as ArkTapscript, aU as AssetMetadata, aV as BaseWalletConfig, Q as BatchFailedEvent, N as BatchFinalizationEvent, P as BatchFinalizedEvent, aW as BatchInfo, aX as BatchSignableIdentity, J as BatchStartedEvent, aY as CLTVMultisigTapscript, aZ as ChainTxType, H as ChainedTxType, a_ as CommitmentTx, a$ as ConditionCSVMultisigTapscript, b0 as ConditionMultisigTapscript, b1 as ContractBalance, b2 as ContractEventCallback, b3 as ContractHandler, ab as ContractManager, b4 as ContractManagerConfig, b5 as ContractState, b6 as ContractVtxo, b7 as ContractWatcher, b8 as DelegateManagerImpl, b9 as DelegateOptions, a1 as DelegateProvider, ba as DelegatorManagerImpl, bb as DelegatorProvider, bc as DeprecatedSignerMigrationReport, bd as DeprecatedSignerReport, be as DigestMismatchError, bf as Discoverable, bg as DiscoveredContract, bh as DiscoveryDeps, bi as ESPLORA_URL, bj as EsploraProvider, a3 as ExitCaptureMode, bk as ExitChainResolver, a4 as ExitDataSource, bl as ExtendedContractVtxo, bm as GroupMembership, bn as HandlerError, bo as IDelegatorManager, bp as INTENT_TERMINAL_STATES, bq as IndexerTxType, br as KnownMetadata, bs as MigrateDeprecatedSignerOptions, bt as MigrationLegReport, bu as MigrationVtxoRef, bv as MultisigTapscript, bw as Nonces, bx as Output, by as PageResponse, bz as PaginationOptions, bA as PartialSig, bB as ProviderClass, a2 as ReadonlyWalletConfig, l as RestArkProvider, bC as RestDelegateProvider, bD as RestDelegatorProvider, m as RestIndexerProvider, bE as ScanContractsOptions, bF as ScanResult, bG as ScheduledSession, bH as SettlementEventType, bI as SignRequest, ag as SignedIntent, bJ as SignerClassification, bK as SignerSet, bL as SubscriptionEvent, bM as SubscriptionHeartbeat, n as SubscriptionResponse, bN as TapLeaves, bO as TapTreeCoder, bP as TapscriptType, bQ as TreeNonces, M as TreeNoncesEvent, bR as TreePartialSigs, X as TreeSignatureEvent, K as TreeSigningStartedEvent, U as TreeTxEvent, bS as Tx, bT as TxHistoryRecord, bU as TxKey, T as TxNotification, bV as TxTreeNode, bW as TxType, bX as VirtualStatus, bY as Vtxo, bZ as VtxoChain, ae as VtxoManager, b_ as VtxoType, b as WalletConfig, b$ as WalletMode, c0 as boardingResolver, c1 as classifyAgainstSignerSet, c2 as classifyContractSigner, c3 as createDefaultActivityRegistry, c4 as createExitChainResolver, c5 as decodeTapscript, c6 as getNetwork, c7 as getSequence, c8 as isBatchSignable, c9 as isCooperativelyMigratable, ca as isDiscoverable, cb as isExpired, cc as isRecoverable, cd as isSpendable, ce as isSubdust, cf as isTerminalIntentState, cg as isVtxoExpiringSoon, ch as networks, ci as signerSetFromInfo, cj as toXOnlySignerHex } from './ark-CoJgwTi_.js';
3
- import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-CKwpZEpw.js';
4
- export { n as ArkadeContractHandler, B as BoardingContractHandler, o as BoardingContractParams, D as DefaultContractHandler, q as DefaultContractParams, t as DelegateContractHandler, u as DelegateContractParams, V as VHTLC, x as VHTLCContractHandler, y as VHTLCContractParams, z as contractHandlers } from './index-CKwpZEpw.js';
5
- import { D as DefaultVtxo } from './delegate-CuaDqqQi.js';
6
- export { a as DelegateVtxo } from './delegate-CuaDqqQi.js';
7
- import { W as Wallet, R as ReadonlyWallet, a as ReceiveRotatorFactory, b as ReceiveRotatorBootOpts, c as ReceiveRotatorBoot, P as ProviderConnectionState, B as Batch } from './wallet-C61huH8i.js';
8
- export { A as ArkCashClaimResult, d as ArkCashCreateError, e as ArkCashUnclaimedReason, f as ArkCashUnclaimedVtxo, g as ArkError, h as ArkErrorName, i as BoardingUtxoGroup, I as IncomingFunds, j as ProviderKind, k as ProviderUnavailableError, S as ServerInfoSource, l as isArkError, m as maybeArkError, s as selectVirtualCoins, w as waitForIncomingFunds } from './wallet-C61huH8i.js';
1
+ import { $ as ReadonlyIdentity, a as Identity, ak as DescriptorSigningRequest, al as Transaction, ag as SignerSession, x as IntentRepository, y as ArkIntent, z as IntentFilter, O as Outpoint, B as VirtualTxRepository, D as VirtualTx, F as VtxoBranch, W as WalletRepository, t as ExtendedVirtualCoin, u as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, v as WalletState, s as Contract, C as ContractRepository, w as ContractFilter, am as IntentFeeConfig, an as OffchainInput, ao as FeeAmount, ap as OnchainInput, aq as FeeOutput, n as ArkProvider, ae as SettlementConfig, ar as ContractWatcherConfig, as as Asset, R as Recipient, I as IWallet, at as FeeInfo, i as SettlementEvent, Z as DescriptorProvider, h as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, au as CreateContractParams, av as GetContractsFilter, r as VirtualCoin, aw as GetSpendablePathsOptions, ax as GetAllSpendingPathsOptions, ay as IssuanceParams, az as ReissuanceParams, aA as BurnParams, aB as RenewVtxosOptions, c as WalletBalance, a7 as ContractSyncState, aC as ContractWithVtxos, aD as PathSelection, aE as ContractEvent, aF as AssetDetails, aG as IssuanceResult, aH as DelegateInfo, aI as MigrationGlobalSkipReason, aJ as MigrationLegSkipReason, aK as SignerStatus, _ as IReadonlyWallet, d as ActivityRegistry, a6 as IReadonlyAssetManager, aL as StorageConfig, e as Activity, N as NormalizedExtendedVirtualCoin, f as IContractManager, j as IAssetManager, g as IDelegateManager, aM as IVtxoManager, a1 as OnchainProvider, a0 as Network, a8 as NetworkName, ab as Coin, aN as ExplorerTransaction, q as TapLeafScript, aO as EncodedVtxoScript, ad as CSVMultisigTapscript, p as RelativeTimelock, V as VtxoScript, aP as Status, aa as ArkAddress, ai as Intent, aQ as ChainTx, o as IndexerProvider, L as TxTree, aR as PathContext } from './ark-CjE0KkGp.js';
2
+ export { aS as ActivityIntent, aT as ActivityResolver, a9 as ArkInfo, aU as ArkIntentState, aV as ArkTapscript, aW as AssetMetadata, aX as BaseWalletConfig, U as BatchFailedEvent, P as BatchFinalizationEvent, Q as BatchFinalizedEvent, aY as BatchInfo, aZ as BatchSignableIdentity, J as BatchStartedEvent, a_ as CLTVMultisigTapscript, a$ as ChainTxType, H as ChainedTxType, b0 as CommitmentTx, b1 as ConditionCSVMultisigTapscript, b2 as ConditionMultisigTapscript, b3 as ContractBalance, b4 as ContractEventCallback, b5 as ContractHandler, ac as ContractManager, b6 as ContractManagerConfig, b7 as ContractState, b8 as ContractVtxo, b9 as ContractWatcher, ba as DelegateManagerImpl, bb as DelegateOptions, a2 as DelegateProvider, bc as DelegatorManagerImpl, bd as DelegatorProvider, be as DeprecatedSignerMigrationReport, bf as DeprecatedSignerReport, bg as DigestMismatchError, bh as Discoverable, bi as DiscoveredContract, bj as DiscoveryDeps, bk as ESPLORA_URL, bl as EsploraProvider, a4 as ExitCaptureMode, bm as ExitChainResolver, a5 as ExitDataSource, bn as ExtendedContractVtxo, bo as GroupMembership, bp as HandlerError, bq as IDelegatorManager, br as INTENT_TERMINAL_STATES, bs as IndexerTxType, bt as KnownMetadata, bu as MigrateDeprecatedSignerOptions, bv as MigrationLegReport, bw as MigrationVtxoRef, bx as MultisigTapscript, by as Nonces, bz as Output, bA as PageResponse, bB as PaginationOptions, bC as PartialSig, bD as ProviderClass, a3 as ReadonlyWalletConfig, k as RestArkProvider, bE as RestDelegateProvider, bF as RestDelegatorProvider, l as RestIndexerProvider, bG as ScanContractsOptions, bH as ScanResult, bI as ScheduledSession, bJ as SettlementEventType, bK as SignRequest, ah as SignedIntent, bL as SignerClassification, bM as SignerSet, bN as SubscriptionEvent, bO as SubscriptionHeartbeat, m as SubscriptionResponse, bP as TapLeaves, bQ as TapTreeCoder, bR as TapscriptType, aj as TimeHeight, bS as TreeNonces, M as TreeNoncesEvent, bT as TreePartialSigs, Y as TreeSignatureEvent, K as TreeSigningStartedEvent, X as TreeTxEvent, bU as Tx, bV as TxHistoryRecord, bW as TxKey, T as TxNotification, bX as TxTreeNode, bY as TxType, bZ as VirtualStatus, b_ as Vtxo, b$ as VtxoChain, af as VtxoManager, c0 as VtxoType, b as WalletConfig, c1 as WalletMode, c2 as boardingResolver, c3 as canRecoverOnchain, c4 as canSpendOffchain, c5 as classifyAgainstSignerSet, c6 as classifyContractSigner, c7 as createDefaultActivityRegistry, c8 as createExitChainResolver, c9 as decodeTapscript, ca as getNetwork, cb as getSequence, cc as hasTerminalSpend, cd as isBatchSignable, ce as isCooperativelyMigratable, cf as isDiscoverable, cg as isExpired, ch as isPastExpiry, ci as isRecoverable, cj as isSpendable, ck as isSubdust, cl as isTerminalIntentState, cm as isVirtualCoin, cn as isVtxoExpiringSoon, co as networks, cp as signerSetFromInfo, cq as toXOnlySignerHex } from './ark-CjE0KkGp.js';
3
+ import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-DK4_iWYy.js';
4
+ export { n as ArkadeContractHandler, B as BoardingContractHandler, o as BoardingContractParams, D as DefaultContractHandler, q as DefaultContractParams, t as DelegateContractHandler, u as DelegateContractParams, V as VHTLC, x as VHTLCContractHandler, y as VHTLCContractParams, z as contractHandlers } from './index-DK4_iWYy.js';
5
+ import { D as DefaultVtxo } from './delegate-DhGZk1r2.js';
6
+ export { a as DelegateVtxo } from './delegate-DhGZk1r2.js';
7
+ import { W as Wallet, R as ReadonlyWallet, a as ReceiveRotatorFactory, b as ReceiveRotatorBootOpts, c as ReceiveRotatorBoot, P as ProviderConnectionState, B as Batch } from './wallet-B5bwixQa.js';
8
+ export { A as ArkError, d as ArkErrorName, e as ArkadeCashClaimResult, f as ArkadeCashCreateError, g as ArkadeCashUnclaimedReason, h as ArkadeCashUnclaimedVtxo, i as BoardingUtxoGroup, I as IncomingFunds, j as ProviderKind, k as ProviderUnavailableError, S as ServerInfoSource, l as isArkError, m as maybeArkError, s as selectVirtualCoins, w as waitForIncomingFunds } from './wallet-B5bwixQa.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';
@@ -2713,7 +2713,7 @@ declare class ServiceWorkerReadonlyWallet implements IReadonlyWallet {
2713
2713
  getProviderConnectionState(): Promise<ProviderConnectionState>;
2714
2714
  getActivityHistory(): Promise<Activity[]>;
2715
2715
  getTransactionHistory(): Promise<ArkTransaction[]>;
2716
- getVtxos(filter?: GetVtxosFilter): Promise<ExtendedVirtualCoin[]>;
2716
+ getVtxos(filter?: GetVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
2717
2717
  /**
2718
2718
  * Trigger a wallet reload inside the service worker.
2719
2719
  *
@@ -3509,17 +3509,17 @@ declare class ArkNote implements ExtendedCoin {
3509
3509
  }
3510
3510
 
3511
3511
  /**
3512
- * ArkCash is a bearer instrument for the Ark protocol.
3512
+ * ArkadeCash is a bearer instrument for the Ark protocol.
3513
3513
  * It encodes a private key and contract parameters as a bech32m string,
3514
3514
  * enabling wallet-to-wallet transfers without address exchange.
3515
3515
  *
3516
- * Format: arkcash1... (bech32m encoded)
3516
+ * Format: arkadecash1... (bech32m encoded)
3517
3517
  * Payload: version (1 byte) + private key (32 bytes) + server pubkey (32 bytes) + csv timelock sequence (4 bytes)
3518
3518
  */
3519
- declare class ArkCash {
3519
+ declare class ArkadeCash {
3520
3520
  readonly csvTimelock: RelativeTimelock;
3521
3521
  readonly hrp: string;
3522
- static readonly DefaultHRP = "arkcash";
3522
+ static readonly DefaultHRP = "arkadecash";
3523
3523
  static readonly Version = 0;
3524
3524
  static readonly PayloadLength: number;
3525
3525
  private readonly _privateKey;
@@ -3532,8 +3532,8 @@ declare class ArkCash {
3532
3532
  get serverPubKey(): Uint8Array;
3533
3533
  /** The note's public key. Returns a fresh copy; mutating it is a no-op. */
3534
3534
  get publicKey(): Uint8Array;
3535
- static generate(serverPubKey: Uint8Array, csvTimelock: RelativeTimelock, hrp?: string): ArkCash;
3536
- static fromString(encoded: string): ArkCash;
3535
+ static generate(serverPubKey: Uint8Array, csvTimelock: RelativeTimelock, hrp?: string): ArkadeCash;
3536
+ static fromString(encoded: string): ArkadeCash;
3537
3537
  toString(): string;
3538
3538
  get identity(): SingleKey;
3539
3539
  get vtxoScript(): DefaultVtxo.Script;
@@ -3620,10 +3620,25 @@ declare class RestEmulatorProvider implements EmulatorProvider {
3620
3620
  * @module arkade/batch
3621
3621
  */
3622
3622
 
3623
+ /** An onchain boarding input to an arkade batch. */
3623
3624
  type ArkadeExtendedCoin = ExtendedCoin & {
3624
3625
  arkadeScriptBytes: Uint8Array;
3625
3626
  };
3626
- declare function createArkadeBatchHandler(intentId: string, inputs: ArkadeExtendedCoin[], signer: Identity, signedProof: string, message: Intent.RegisterMessage, session: SignerSession, arkProvider: ArkProvider, emulator: EmulatorProvider, network: Network,
3627
+ /** A virtual output input to an arkade batch. */
3628
+ type ArkadeExtendedVirtualCoin = ExtendedVirtualCoin & {
3629
+ arkadeScriptBytes: Uint8Array;
3630
+ };
3631
+ /**
3632
+ * An input to {@link createArkadeBatchHandler}, boarding or virtual.
3633
+ *
3634
+ * @remarks
3635
+ * Spelled as a union so the discriminant {@link isVtxoCoin} reads — `script`, required on
3636
+ * `VirtualCoin` and absent from `ExtendedCoin` — is visible in the type. `ArkadeExtendedCoin[]`
3637
+ * alone would let a caller hand over a virtual output with no `script`, which the handler would
3638
+ * silently treat as boarding and settle without a forfeit.
3639
+ */
3640
+ type ArkadeBatchInput = ArkadeExtendedCoin | ArkadeExtendedVirtualCoin;
3641
+ declare function createArkadeBatchHandler(intentId: string, inputs: ArkadeBatchInput[], signer: Identity, signedProof: string, message: Intent.RegisterMessage, session: SignerSession, arkProvider: ArkProvider, emulator: EmulatorProvider, network: Network,
3627
3642
  /**
3628
3643
  * Expected recipients of the settlement, validated against the virtual
3629
3644
  * output tree before co-signing it (mirrors `Wallet.createBatchHandler`).
@@ -4843,11 +4858,13 @@ type index_Arkade = Arkade;
4843
4858
  declare const index_Arkade: typeof Arkade;
4844
4859
  declare const index_ArkadeArgType: typeof ArkadeArgType;
4845
4860
  declare const index_ArkadeArgValue: typeof ArkadeArgValue;
4861
+ type index_ArkadeBatchInput = ArkadeBatchInput;
4846
4862
  type index_ArkadeConnectOptions = ArkadeConnectOptions;
4847
4863
  type index_ArkadeContract<P extends Program = Program> = ArkadeContract<P>;
4848
4864
  declare const index_ArkadeContract: typeof ArkadeContract;
4849
4865
  declare const index_ArkadeContractParams: typeof ArkadeContractParams;
4850
4866
  type index_ArkadeExtendedCoin = ArkadeExtendedCoin;
4867
+ type index_ArkadeExtendedVirtualCoin = ArkadeExtendedVirtualCoin;
4851
4868
  declare const index_ArkadeFunction: typeof ArkadeFunction;
4852
4869
  declare const index_ArkadeParamValue: typeof ArkadeParamValue;
4853
4870
  declare const index_ArkadeProgramScript: typeof ArkadeProgramScript;
@@ -4895,7 +4912,7 @@ declare const index_toASM: typeof toASM;
4895
4912
  declare const index_validateProgram: typeof validateProgram;
4896
4913
  declare const index_witnessRefToBytes: typeof witnessRefToBytes;
4897
4914
  declare namespace index {
4898
- 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_ArkadeConnectOptions as ArkadeConnectOptions, index_ArkadeContract as ArkadeContract, index_ArkadeContractParams as ArkadeContractParams, type index_ArkadeExtendedCoin as ArkadeExtendedCoin, 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 };
4915
+ 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 };
4899
4916
  }
4900
4917
 
4901
4918
  /**
@@ -5051,4 +5068,4 @@ declare class AssetManager extends ReadonlyAssetManager implements IAssetManager
5051
5068
  burn(params: BurnParams): Promise<string>;
5052
5069
  }
5053
5070
 
5054
- export { ARKADE_MAGIC, Activity, ActivityRegistry, type AnchorBumper, ArkAddress, ArkCash, ArkIntent, ArkNote, ArkProvider, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, ArkadeContractParams, type ArkadeExtendedCoin, Asset, AssetDetails, AssetManager, BIP322, Batch, BurnParams, CSVMultisigTapscript, ChainTx, Coin, ConditionWitness, type ConnectorTreeNode, Contract, ContractEvent, ContractRepository, ContractRepositoryImpl, ContractSyncState, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DefaultVtxo, DelegateInfo, DelegateNotConfiguredError, DelegatorNotConfiguredError, type DescriptorOptions, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, type BlockHeader as ElectrumBlockHeader, ElectrumOnchainProvider, type TransactionHistory as ElectrumTransactionHistory, type Unspent as ElectrumUnspent, type EmulatorEntry, type EmulatorInfo, EmulatorPacket, type EmulatorProvider, EncodedVtxoScript, Estimator, type ExecutorEvent, type ExitDelay, type ExitFeeWallet, type ExitMode, type ExitOptions, type ExitPackage, type ExitQuote, type ExitStep, type ExitTotals, type ExitVtxoInfo, ExplorerTransaction, ExtendedCoin, ExtendedVirtualCoin, Extension, ExtensionNotFoundError, type ExtensionPacket, FeeAmount, FeeInfo, FeeOutput, FetchError, GetVtxosFilter, HDDescriptorProvider, IAssetManager, IContractManager, IDelegateManager, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, IndexerProvider, Intent, IntentFeeConfig, IntentFilter, IntentRepository, IssuanceParams, IssuanceResult, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, type MigrationStatus, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, OffchainInput, type OffchainTx, OnchainInput, OnchainProvider, OnchainWallet, Outpoint, P2A, type ParsedArkContract, PathContext, PathSelection, PrevArkTxField, PrevoutTxField, ProviderConnectionState, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, Recipient, ReissuanceParams, RelativeTimelock, RenewVtxosOptions, type RequestEnvelope, type ResponseEnvelope, RestEmulatorProvider, SeedIdentity, type SeedIdentityOptions, SendBitcoinParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignerSession, SignerStatus, SingleKey, Status, StorageConfig, TapLeafScript, Transaction, TxTree, TxWeightEstimator, UnilateralExit, UnknownPacket, Unroll, type VSize, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletMessageHandler, WalletNotInitializedError, WalletRepository, WalletRepositoryImpl, WsElectrumChainSource, index as arkade, assembleBtcdTaprootTree, index$1 as asset, buildForfeitTx, buildOffchainTx, buildVersion, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, createAssetPacket, decodeArkContract, deserializeExitPackage, encodeArkContract, getArkPsbtFields, getMigrationStatus, getRandomId, hasBoardingTxExpired, isArkContract, isCltvSatisfied, isCsvSpendable, isRetryableProviderError, isValidArkAddress, migrateWalletRepository, openDatabase, requiresMigration, rollbackMigration, sdkVersion, selectCoinsWithAsset, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, timelockToSequence, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures };
5071
+ export { ARKADE_MAGIC, Activity, ActivityRegistry, type AnchorBumper, ArkAddress, ArkIntent, ArkNote, ArkProvider, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, type ArkadeBatchInput, ArkadeCash, ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, Asset, AssetDetails, AssetManager, BIP322, Batch, BurnParams, CSVMultisigTapscript, ChainTx, Coin, ConditionWitness, type ConnectorTreeNode, Contract, ContractEvent, ContractRepository, ContractRepositoryImpl, ContractSyncState, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DefaultVtxo, DelegateInfo, DelegateNotConfiguredError, DelegatorNotConfiguredError, type DescriptorOptions, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, type BlockHeader as ElectrumBlockHeader, ElectrumOnchainProvider, type TransactionHistory as ElectrumTransactionHistory, type Unspent as ElectrumUnspent, type EmulatorEntry, type EmulatorInfo, EmulatorPacket, type EmulatorProvider, EncodedVtxoScript, Estimator, type ExecutorEvent, type ExitDelay, type ExitFeeWallet, type ExitMode, type ExitOptions, type ExitPackage, type ExitQuote, type ExitStep, type ExitTotals, type ExitVtxoInfo, ExplorerTransaction, ExtendedCoin, ExtendedVirtualCoin, Extension, ExtensionNotFoundError, type ExtensionPacket, FeeAmount, FeeInfo, FeeOutput, FetchError, GetVtxosFilter, HDDescriptorProvider, IAssetManager, IContractManager, IDelegateManager, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, IndexerProvider, Intent, IntentFeeConfig, IntentFilter, IntentRepository, IssuanceParams, IssuanceResult, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, type MigrationStatus, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, OffchainInput, type OffchainTx, OnchainInput, OnchainProvider, OnchainWallet, Outpoint, P2A, type ParsedArkContract, PathContext, PathSelection, PrevArkTxField, PrevoutTxField, ProviderConnectionState, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, Recipient, ReissuanceParams, RelativeTimelock, RenewVtxosOptions, type RequestEnvelope, type ResponseEnvelope, RestEmulatorProvider, SeedIdentity, type SeedIdentityOptions, SendBitcoinParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignerSession, SignerStatus, SingleKey, Status, StorageConfig, TapLeafScript, Transaction, TxTree, TxWeightEstimator, UnilateralExit, UnknownPacket, Unroll, type VSize, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletMessageHandler, WalletNotInitializedError, WalletRepository, WalletRepositoryImpl, WsElectrumChainSource, index as arkade, assembleBtcdTaprootTree, index$1 as asset, buildForfeitTx, buildOffchainTx, buildVersion, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, createAssetPacket, decodeArkContract, deserializeExitPackage, encodeArkContract, getArkPsbtFields, getMigrationStatus, getRandomId, hasBoardingTxExpired, isArkContract, isCltvSatisfied, isCsvSpendable, isRetryableProviderError, isValidArkAddress, migrateWalletRepository, openDatabase, requiresMigration, rollbackMigration, sdkVersion, selectCoinsWithAsset, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, timelockToSequence, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export { ARKADE_MAGIC, ActivityRegistry, ArkCash, ArkCashCreateError, ArkNote, AssetManager, BIP322, Batch, ChainedTxType, ContractManager, ContractRepositoryImpl, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DelegateManagerImpl, DelegateNotConfiguredError, DelegatorManagerImpl, DelegatorNotConfiguredError, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EmulatorPacket, EsploraProvider, Estimator, Extension, ExtensionNotFoundError, HDDescriptorProvider, INTENT_TERMINAL_STATES, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainWallet, P2A, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestDelegatorProvider, RestEmulatorProvider, SeedIdentity, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, TxTree, TxType, TxWeightEstimator, UnilateralExit, UnknownPacket, Unroll, VtxoManager, Wallet, WalletMessageHandler, WalletNotInitializedError, WalletRepositoryImpl, WsElectrumChainSource, arkade_exports as arkade, boardingResolver, buildForfeitTx, buildOffchainTx, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, createAssetPacket, createDefaultActivityRegistry, createExitChainResolver, decodeArkContract, deserializeExitPackage, encodeArkContract, getMigrationStatus, getRandomId, hasBoardingTxExpired, isArkContract, isBatchSignable, isCooperativelyMigratable, isDiscoverable, isExpired, isRecoverable, isRetryableProviderError, isSpendable, isSubdust, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, migrateWalletRepository, openDatabase, requiresMigration, rollbackMigration, selectCoinsWithAsset, selectVirtualCoins, serializeExitPackage, setupServiceWorker, signerSetFromInfo, toXOnlySignerHex, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds } from './chunk-SV4PCGKM.js';
2
- export { ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ChainTxType, ConditionWitness, CosignerPublicKey, DigestMismatchError, FetchError, IndexerTxType, Intent, PrevArkTxField, PrevoutTxField, ProviderUnavailableError, RestArkProvider, RestIndexerProvider, SettlementEventType, Transaction, VtxoTaprootTree, VtxoTreeExpiry, asset_exports as asset, buildVersion, getArkPsbtFields, isArkError, maybeArkError, sdkVersion, setArkPsbtField } from './chunk-GM6JRQP5.js';
3
- export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, contractHandlers, isCltvSatisfied, isCsvSpendable } from './chunk-XN3554FT.js';
4
- export { ArkAddress, CLTVMultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, MultisigTapscript, TapTreeCoder, VtxoScript, assembleBtcdTaprootTree, decodeTapscript, getNetwork, getSequence, networks, sequenceToTimelock, timelockToSequence } from './chunk-C7TXXTMS.js';
1
+ export { ARKADE_MAGIC, ActivityRegistry, ArkNote, ArkadeCash, ArkadeCashCreateError, AssetManager, BIP322, Batch, ChainedTxType, ContractManager, ContractRepositoryImpl, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DelegateManagerImpl, DelegateNotConfiguredError, DelegatorManagerImpl, DelegatorNotConfiguredError, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EmulatorPacket, EsploraProvider, Estimator, Extension, ExtensionNotFoundError, HDDescriptorProvider, INTENT_TERMINAL_STATES, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainWallet, P2A, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestDelegatorProvider, RestEmulatorProvider, SeedIdentity, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, TxTree, TxType, TxWeightEstimator, UnilateralExit, UnknownPacket, Unroll, VtxoManager, Wallet, WalletMessageHandler, WalletNotInitializedError, WalletRepositoryImpl, WsElectrumChainSource, arkade_exports as arkade, boardingResolver, buildForfeitTx, buildOffchainTx, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, createAssetPacket, createDefaultActivityRegistry, createExitChainResolver, decodeArkContract, deserializeExitPackage, encodeArkContract, getMigrationStatus, getRandomId, hasBoardingTxExpired, isArkContract, isBatchSignable, isCooperativelyMigratable, isDiscoverable, isRetryableProviderError, isSubdust, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, migrateWalletRepository, openDatabase, requiresMigration, rollbackMigration, selectCoinsWithAsset, selectVirtualCoins, serializeExitPackage, setupServiceWorker, signerSetFromInfo, toXOnlySignerHex, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds } from './chunk-NYR5H6GR.js';
2
+ export { ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ChainTxType, ConditionWitness, CosignerPublicKey, DigestMismatchError, FetchError, IndexerTxType, Intent, PrevArkTxField, PrevoutTxField, ProviderUnavailableError, RestArkProvider, RestIndexerProvider, SettlementEventType, Transaction, VtxoTaprootTree, VtxoTreeExpiry, asset_exports as asset, buildVersion, getArkPsbtFields, isArkError, maybeArkError, sdkVersion, setArkPsbtField } from './chunk-BHHLRZCS.js';
3
+ export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, contractHandlers, isCltvSatisfied, isCsvSpendable } from './chunk-4VVTRPH3.js';
4
+ export { ArkAddress, CLTVMultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, MultisigTapscript, TapTreeCoder, VtxoScript, assembleBtcdTaprootTree, canRecoverOnchain, canSpendOffchain, decodeTapscript, getNetwork, getSequence, hasTerminalSpend, isExpired, isPastExpiry, isRecoverable, isSpendable, isVirtualCoin, networks, sequenceToTimelock, timelockToSequence } from './chunk-ZDDBTFVO.js';
5
5
  import './chunk-NSBPE2FW.js';
6
6
  //# sourceMappingURL=index.js.map
7
7
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkRJMFTTRJ_cjs = require('../../chunk-RJMFTTRJ.cjs');
4
- require('../../chunk-CFQO5MCM.cjs');
5
- require('../../chunk-RQSA7ADZ.cjs');
6
- require('../../chunk-L5ND2FJJ.cjs');
3
+ var chunkENZ4YPR2_cjs = require('../../chunk-ENZ4YPR2.cjs');
4
+ require('../../chunk-EB3ALGTM.cjs');
5
+ require('../../chunk-5XMVTK5S.cjs');
6
+ require('../../chunk-7TXSPRN5.cjs');
7
7
  require('../../chunk-5BLDMQED.cjs');
8
8
 
9
9
  // src/repositories/realm/walletRepository.ts
@@ -38,7 +38,7 @@ var RealmWalletRepository = class {
38
38
  await this.ensureInit();
39
39
  this.realm.write(() => {
40
40
  for (const vtxo of vtxos) {
41
- const s = chunkRJMFTTRJ_cjs.serializeVtxo(vtxo);
41
+ const s = chunkENZ4YPR2_cjs.serializeVtxo(vtxo);
42
42
  this.realm.create(
43
43
  "ArkVtxo",
44
44
  {
@@ -86,7 +86,7 @@ var RealmWalletRepository = class {
86
86
  throw new Error("RealmWalletRepository requires an address");
87
87
  }
88
88
  for (const vtxo of vtxos) {
89
- if (!chunkRJMFTTRJ_cjs.isVtxoForScript(vtxo, key.script)) {
89
+ if (!chunkENZ4YPR2_cjs.isVtxoForScript(vtxo, key.script)) {
90
90
  throw new Error(
91
91
  `VTXO ${vtxo.txid}:${vtxo.vout} script mismatch: expected ${key.script}, got ${vtxo.script}`
92
92
  );
@@ -111,7 +111,7 @@ var RealmWalletRepository = class {
111
111
  await this.ensureInit();
112
112
  this.realm.write(() => {
113
113
  for (const utxo of utxos) {
114
- const s = chunkRJMFTTRJ_cjs.serializeUtxo(utxo);
114
+ const s = chunkENZ4YPR2_cjs.serializeUtxo(utxo);
115
115
  this.realm.create(
116
116
  "ArkUtxo",
117
117
  {
@@ -164,7 +164,7 @@ var RealmWalletRepository = class {
164
164
  amount: tx.amount,
165
165
  settled: tx.settled,
166
166
  createdAt: tx.createdAt,
167
- assetsJson: tx.assets ? JSON.stringify(chunkRJMFTTRJ_cjs.serializeAssets(tx.assets)) : null
167
+ assetsJson: tx.assets ? JSON.stringify(chunkENZ4YPR2_cjs.serializeAssets(tx.assets)) : null
168
168
  },
169
169
  "modified"
170
170
  );
@@ -234,9 +234,9 @@ function vtxoObjectToDomain(obj) {
234
234
  // Post-migration every row has `script`, but the backfill is
235
235
  // idempotent: derive from `address` if the legacy column is still
236
236
  // null (e.g. the migration hasn't run yet on this handle).
237
- script: obj.script ?? chunkRJMFTTRJ_cjs.scriptFromArkAddress(obj.address)
237
+ script: obj.script ?? chunkENZ4YPR2_cjs.scriptFromArkAddress(obj.address)
238
238
  };
239
- return chunkRJMFTTRJ_cjs.deserializeVtxo(serialized);
239
+ return chunkENZ4YPR2_cjs.deserializeVtxo(serialized);
240
240
  }
241
241
  function utxoObjectToDomain(obj) {
242
242
  const serialized = {
@@ -255,7 +255,7 @@ function utxoObjectToDomain(obj) {
255
255
  status: JSON.parse(obj.statusJson),
256
256
  extraWitness: obj.extraWitnessJson ? JSON.parse(obj.extraWitnessJson) : void 0
257
257
  };
258
- return chunkRJMFTTRJ_cjs.deserializeUtxo(serialized);
258
+ return chunkENZ4YPR2_cjs.deserializeUtxo(serialized);
259
259
  }
260
260
  function txObjectToDomain(obj) {
261
261
  const tx = {
@@ -270,7 +270,7 @@ function txObjectToDomain(obj) {
270
270
  createdAt: obj.createdAt
271
271
  };
272
272
  if (obj.assetsJson) {
273
- tx.assets = chunkRJMFTTRJ_cjs.deserializeAssets(JSON.parse(obj.assetsJson));
273
+ tx.assets = chunkENZ4YPR2_cjs.deserializeAssets(JSON.parse(obj.assetsJson));
274
274
  }
275
275
  return tx;
276
276
  }
@@ -431,7 +431,7 @@ var RealmIntentRepository = class {
431
431
  const clashes = [
432
432
  ...this.realm.objects("ArkIntent").filtered("intentId == $0", intent.intentId)
433
433
  ].map(toIntent);
434
- chunkRJMFTTRJ_cjs.assertIntentIdUnique(intent, clashes);
434
+ chunkENZ4YPR2_cjs.assertIntentIdUnique(intent, clashes);
435
435
  }
436
436
  this.realm.create(
437
437
  "ArkIntent",
@@ -460,14 +460,14 @@ var RealmIntentRepository = class {
460
460
  }
461
461
  async getIntents(filter) {
462
462
  const all = [...this.realm.objects("ArkIntent")].map(toIntent).sort((a, b) => a.createdAt - b.createdAt || a.intentTxId.localeCompare(b.intentTxId));
463
- const out = filter ? all.filter((i) => chunkRJMFTTRJ_cjs.intentMatchesFilter(i, filter)) : all;
464
- const { skip, end } = chunkRJMFTTRJ_cjs.intentPageBounds(filter, out.length);
463
+ const out = filter ? all.filter((i) => chunkENZ4YPR2_cjs.intentMatchesFilter(i, filter)) : all;
464
+ const { skip, end } = chunkENZ4YPR2_cjs.intentPageBounds(filter, out.length);
465
465
  return out.slice(skip, end);
466
466
  }
467
467
  async getLockedVtxoOutpoints() {
468
468
  const out = [];
469
469
  for (const o of [...this.realm.objects("ArkIntent")].map(toIntent))
470
- if (!chunkRJMFTTRJ_cjs.isTerminalIntentState(o.state)) out.push(...o.intentVtxos);
470
+ if (!chunkENZ4YPR2_cjs.isTerminalIntentState(o.state)) out.push(...o.intentVtxos);
471
471
  return out;
472
472
  }
473
473
  async [Symbol.asyncDispose]() {
@@ -509,7 +509,7 @@ var RealmVirtualTxRepository = class {
509
509
  txid: t.txid,
510
510
  psbt: t.psbt ?? prev?.psbt ?? null,
511
511
  expiresAt: t.expiresAt ?? prev?.expiresAt ?? null,
512
- type: chunkRJMFTTRJ_cjs.mergeChainedTxType(t.type, prev?.type)
512
+ type: chunkENZ4YPR2_cjs.mergeChainedTxType(t.type, prev?.type)
513
513
  },
514
514
  "modified"
515
515
  );
@@ -742,7 +742,7 @@ function runArkRealmMigrations(oldRealm, newRealm) {
742
742
  for (let i = 0; i < newVtxos.length; i++) {
743
743
  const newVtxo = newVtxos[i];
744
744
  if (!newVtxo.script) {
745
- newVtxo.script = chunkRJMFTTRJ_cjs.scriptFromArkAddress(newVtxo.address);
745
+ newVtxo.script = chunkENZ4YPR2_cjs.scriptFromArkAddress(newVtxo.address);
746
746
  }
747
747
  }
748
748
  const oldHasVirtualTx = Array.isArray(oldRealm?.schema) && oldRealm.schema.some((s) => s.name === "ArkVirtualTx");
@@ -759,7 +759,7 @@ function runArkRealmMigrations(oldRealm, newRealm) {
759
759
 
760
760
  Object.defineProperty(exports, "ChainedTxType", {
761
761
  enumerable: true,
762
- get: function () { return chunkRJMFTTRJ_cjs.ChainedTxType; }
762
+ get: function () { return chunkENZ4YPR2_cjs.ChainedTxType; }
763
763
  });
764
764
  exports.ARK_REALM_SCHEMA_VERSION = ARK_REALM_SCHEMA_VERSION;
765
765
  exports.ArkExperimentalRealmSchemas = ArkExperimentalRealmSchemas;
@@ -1,5 +1,5 @@
1
- import { W as WalletRepository, E as ExtendedVirtualCoin, u as VtxoRepositoryKey, d as ExtendedCoin, A as ArkTransaction, v as WalletState, C as ContractRepository, w as ContractFilter, t as Contract, x as IntentRepository, y as ArkIntent, z as IntentFilter, O as Outpoint, B as VirtualTxRepository, D as VirtualTx, F as VtxoBranch } from '../../ark-CoJgwTi_.cjs';
2
- export { H as ChainedTxType } from '../../ark-CoJgwTi_.cjs';
1
+ import { W as WalletRepository, t as ExtendedVirtualCoin, u as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, v as WalletState, C as ContractRepository, w as ContractFilter, s as Contract, x as IntentRepository, y as ArkIntent, z as IntentFilter, O as Outpoint, B as VirtualTxRepository, D as VirtualTx, F as VtxoBranch } from '../../ark-CjE0KkGp.cjs';
2
+ export { H as ChainedTxType } from '../../ark-CjE0KkGp.cjs';
3
3
  import '@scure/btc-signer/transaction.js';
4
4
  import '@scure/btc-signer/utils.js';
5
5
  import '@scure/btc-signer/psbt.js';
@@ -1,5 +1,5 @@
1
- import { W as WalletRepository, E as ExtendedVirtualCoin, u as VtxoRepositoryKey, d as ExtendedCoin, A as ArkTransaction, v as WalletState, C as ContractRepository, w as ContractFilter, t as Contract, x as IntentRepository, y as ArkIntent, z as IntentFilter, O as Outpoint, B as VirtualTxRepository, D as VirtualTx, F as VtxoBranch } from '../../ark-CoJgwTi_.js';
2
- export { H as ChainedTxType } from '../../ark-CoJgwTi_.js';
1
+ import { W as WalletRepository, t as ExtendedVirtualCoin, u as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, v as WalletState, C as ContractRepository, w as ContractFilter, s as Contract, x as IntentRepository, y as ArkIntent, z as IntentFilter, O as Outpoint, B as VirtualTxRepository, D as VirtualTx, F as VtxoBranch } from '../../ark-CjE0KkGp.js';
2
+ export { H as ChainedTxType } from '../../ark-CjE0KkGp.js';
3
3
  import '@scure/btc-signer/transaction.js';
4
4
  import '@scure/btc-signer/utils.js';
5
5
  import '@scure/btc-signer/psbt.js';
@@ -1,8 +1,8 @@
1
- import { serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, assertIntentIdUnique, intentMatchesFilter, intentPageBounds, isTerminalIntentState, mergeChainedTxType } from '../../chunk-SV4PCGKM.js';
2
- export { ChainedTxType } from '../../chunk-SV4PCGKM.js';
3
- import '../../chunk-GM6JRQP5.js';
4
- import '../../chunk-XN3554FT.js';
5
- import '../../chunk-C7TXXTMS.js';
1
+ import { serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, assertIntentIdUnique, intentMatchesFilter, intentPageBounds, isTerminalIntentState, mergeChainedTxType } from '../../chunk-NYR5H6GR.js';
2
+ export { ChainedTxType } from '../../chunk-NYR5H6GR.js';
3
+ import '../../chunk-BHHLRZCS.js';
4
+ import '../../chunk-4VVTRPH3.js';
5
+ import '../../chunk-ZDDBTFVO.js';
6
6
  import '../../chunk-NSBPE2FW.js';
7
7
 
8
8
  // src/repositories/realm/walletRepository.ts