@arkade-os/sdk 0.4.77 → 0.4.78
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.
- package/dist/adapters/expo.cjs +5 -5
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/{asyncStorageTaskQueue-MmJyAnu-.d.cts → asyncStorageTaskQueue-DiXxP-nQ.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-DTl0WM7E.d.ts → asyncStorageTaskQueue-YW2t31_o.d.ts} +2 -2
- package/dist/{chunk-52OA3UIC.js → chunk-7KIGEOYT.js} +8 -4
- package/dist/chunk-7KIGEOYT.js.map +1 -0
- package/dist/{chunk-HKOFYHZP.js → chunk-CTFYT24G.js} +3 -3
- package/dist/{chunk-HKOFYHZP.js.map → chunk-CTFYT24G.js.map} +1 -1
- package/dist/{chunk-4LP6XOMW.cjs → chunk-DFWLP3MD.cjs} +17 -17
- package/dist/{chunk-4LP6XOMW.cjs.map → chunk-DFWLP3MD.cjs.map} +1 -1
- package/dist/{chunk-H62OOAS4.cjs → chunk-IAM5IEVT.cjs} +17 -17
- package/dist/{chunk-H62OOAS4.cjs.map → chunk-IAM5IEVT.cjs.map} +1 -1
- package/dist/{chunk-Y4YK44IM.cjs → chunk-KEEZSFLI.cjs} +10 -10
- package/dist/{chunk-Y4YK44IM.cjs.map → chunk-KEEZSFLI.cjs.map} +1 -1
- package/dist/{chunk-MLOZHTBN.js → chunk-LKAASQTL.js} +87 -40
- package/dist/chunk-LKAASQTL.js.map +1 -0
- package/dist/{chunk-YKNTUOUG.js → chunk-OUHUC26M.js} +4 -4
- package/dist/{chunk-YKNTUOUG.js.map → chunk-OUHUC26M.js.map} +1 -1
- package/dist/{chunk-T6MGH4V4.js → chunk-P766MOPU.js} +4 -4
- package/dist/{chunk-T6MGH4V4.js.map → chunk-P766MOPU.js.map} +1 -1
- package/dist/{chunk-CJN4CUEU.cjs → chunk-PWIESIO6.cjs} +8 -3
- package/dist/chunk-PWIESIO6.cjs.map +1 -0
- package/dist/{chunk-YJEWWLOQ.cjs → chunk-VJ7M6WKB.cjs} +535 -488
- package/dist/chunk-VJ7M6WKB.cjs.map +1 -0
- package/dist/{chunk-LUWSY2QO.cjs → chunk-Y7BVR6SQ.cjs} +49 -49
- package/dist/{chunk-LUWSY2QO.cjs.map → chunk-Y7BVR6SQ.cjs.map} +1 -1
- package/dist/{chunk-ACPANSOX.js → chunk-ZOCJ7E6M.js} +3 -3
- package/dist/{chunk-ACPANSOX.js.map → chunk-ZOCJ7E6M.js.map} +1 -1
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-QPCGaD_z.d.cts → delegate-DaNNUI_B.d.cts} +1 -1
- package/dist/{delegate-CjcysR7s.d.ts → delegate-b2Wiymoj.d.ts} +1 -1
- package/dist/{hdWalletCapable--pMncWbC.d.ts → hdWalletCapable-B2XVTOvu.d.ts} +2 -2
- package/dist/{hdWalletCapable-Bp_p0WLj.d.cts → hdWalletCapable-D6PqWpuW.d.cts} +2 -2
- package/dist/{index-BMY272ns.d.cts → index-BlB97fYl.d.cts} +2 -2
- package/dist/{index-Ie_ak2zY.d.ts → index-CAS4GyN-.d.cts} +1 -0
- package/dist/{index-Ie_ak2zY.d.cts → index-CAS4GyN-.d.ts} +1 -0
- package/dist/{index-m-EM-e8D.d.ts → index-CYsKAXog.d.ts} +2 -2
- package/dist/index.cjs +304 -304
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +20 -20
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +19 -19
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-CqrlrJEt.d.ts → taskRunner-BJj7xe35.d.ts} +2 -2
- package/dist/{taskRunner-BgRowCqB.d.cts → taskRunner-HS2d2oda.d.cts} +2 -2
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +14 -14
- package/dist/wallet/expo/index.d.cts +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +5 -5
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-52OA3UIC.js.map +0 -1
- package/dist/chunk-CJN4CUEU.cjs.map +0 -1
- package/dist/chunk-MLOZHTBN.js.map +0 -1
- package/dist/chunk-YJEWWLOQ.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a5 as ReadonlyIdentity, a as Identity, as as DescriptorSigningRequest, at as Transaction, ao as SignerSession, a3 as DescriptorProvider, au as IntentFeeConfig, av as OffchainInput, aw as FeeAmount, ax as OnchainInput, ay as FeeOutput, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch, W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, w as Contract, C as ContractRepository, B as ContractFilter, I as IWallet, r as ArkProvider, am as SettlementConfig, az as ContractWatcherConfig, aA as Asset, R as Recipient, aB as FeeInfo, l as SettlementEvent, N as NormalizedExtendedVirtualCoin, k as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, d as GetSpendableVtxosFilter, aC as CreateContractParams, aD as GetContractsFilter, v as VirtualCoin, aE as GetSpendablePathsOptions, aF as GetAllSpendingPathsOptions, h as GetNewAddressesOptions, aG as IssuanceParams, aH as ReissuanceParams, aI as BurnParams, aJ as RenewVtxosOptions, c as WalletBalance, ac as ContractSyncState, ah as ContractWithVtxos, aK as WatchedScript, aL as PathSelection, i as NewAddress, aM as ContractEvent, aN as AssetDetails, aO as IssuanceResult, aP as DelegateInfo, aQ as MigrationGlobalSkipReason, aR as MigrationLegSkipReason, aS as SignerStatus, a4 as IReadonlyWallet, e as ActivityRegistry, ab as IReadonlyAssetManager, aT as StorageConfig, f as Activity, g as IContractManager, n as IAssetManager, m as SendParams, j as IDelegateManager, aU as IVtxoManager, a6 as OnchainProvider, P as Network, ae as NetworkName, aj as Coin, aV as ExplorerTransaction, af as ArkInfo, ap as SignedIntent, aq as Intent, aW as TreeNonces, aX as TreePartialSigs, T as TxNotificationEvent, aY as PendingTx, u as TapLeafScript, aZ as EncodedVtxoScript, Q as CSVMultisigTapscript, t as RelativeTimelock, V as VtxoScript, a_ as Status, ag as ArkAddress, a$ as ChainTx, s as IndexerProvider, Y as TxTree, b0 as PathContext } from './index-
|
|
2
|
-
export { b1 as ActivityIntent, b2 as ActivityResolver, b3 as ArkIntentState, b4 as ArkTapscript, b5 as AssetMetadata, b6 as BITCOIN_EMULATOR_PUBKEY, b7 as BaseWalletConfig, a0 as BatchFailedEvent, _ as BatchFinalizationEvent, $ as BatchFinalizedEvent, b8 as BatchInfo, b9 as BatchSignableIdentity, U as BatchStartedEvent, ba as CLTVMultisigTapscript, bb as CandidateDeps, bc as ChainTxType, M as ChainedTxType, bd as CommitmentTx, be as ConditionCSVMultisigTapscript, bf as ConditionMultisigTapscript, bg as ContractBalance, bh as ContractEventCallback, bi as ContractHandler, ak as ContractManager, al as ContractManagerConfig, bj as ContractState, bk as ContractVtxo, bl as ContractVtxoEvent, bm as ContractWatcher, bn as DEFAULT_VTXO_PAGE_SIZE, bo as DelegateManagerImpl, bp as DelegateOptions, a7 as DelegateProvider, bq as DelegatorManagerImpl, br as DelegatorProvider, bs as DeprecatedSignerMigrationReport, bt as DeprecatedSignerReport, bu as DigestMismatchError, bv as Discoverable, bw as DiscoveredContract, bx as DiscoveryDeps, by as ESPLORA_URL, bz as EsploraProvider, bA as EventSourceCapable, bB as EventSourceFactory, bC as EventSourceLike, bD as EventSourceUnavailableError, a9 as ExitCaptureMode, bE as ExitChainResolver, aa as ExitDataSource, bF as ExtendedContractVtxo, bG as GroupMembership, bH as HandlerError, bI as IDelegatorManager, bJ as INTENT_TERMINAL_STATES, bK as IndexerTxType, bL as IntentCoin, bM as KnownMetadata, bN as MUTINYNET_EMULATOR_PUBKEY, bO as MigrateDeprecatedSignerOptions, bP as MigrationLegReport, bQ as MigrationVtxoRef, bR as MultisigTapscript, bS as NewAddressType, bT as Nonces, bU as Output, bV as PageResponse, bW as PaginationOptions, bX as PartialSig, bY as PrevTxSource, bZ as PrevTxUnavailableError, b_ as ProviderClass, b$ as REGTEST_EMULATOR_PUBKEY, c0 as RawTxSource, a8 as ReadonlyWalletConfig, o as RestArkProvider, c1 as RestDelegateProvider, c2 as RestDelegatorProvider, p as RestIndexerProvider, c3 as ScanContractsOptions, c4 as ScanResult, c5 as ScheduledSession, c6 as SettlementEventType, c7 as SignRequest, c8 as SignerClassification, c9 as SignerSet, ca as SubscriptionEvent, cb as SubscriptionHeartbeat, q as SubscriptionResponse, cc as SweepTxNotification, cd as TapLeaves, ce as TapTreeCoder, cf as TapscriptType, ar as TimeHeight, Z as TreeNoncesEvent, a2 as TreeSignatureEvent, X as TreeSigningStartedEvent, a1 as TreeTxEvent, cg as Tx, ch as TxHistoryRecord, ci as TxKey, cj as TxNotification, ck as TxTag, cl as TxTreeNode, cm as TxType, cn as VirtualStatus, co as Vtxo, cp as VtxoChain, an as VtxoManager, cq as VtxoType, b as WalletConfig, cr as WalletMode, cs as WithPrevTx, ct as assertAllowedSighashTypes, cu as assetMintResolver, cv as attachPrevArkTxs, cw as attachPrevoutTxs, cx as boardingResolver, cy as canRecoverOnchain, cz as canSpendOffchain, cA as canSweepOnchain, cB as classifyAgainstSignerSet, cC as classifyContractSigner, cD as collabExitResolver, cE as configureEventSource, cF as createDefaultActivityRegistry, cG as createExitChainResolver, cH as decodeTapscript, cI as defaultEmulatorPubkey, cJ as getConfiguredEventSource, cK as getNetwork, cL as getRandomId, cM as getSequence, cN as hasCandidates, cO as hasTerminalSpend, cP as isBatchSignable, cQ as isContractVtxoEvent, cR as isCooperativelyMigratable, cS as isDiscoverable, cT as isEventSourceUnavailableError, cU as isExpired, cV as isPastExpiry, cW as isRecoverable, cX as isSigningIdentity, cY as isSpendable, cZ as isSubdust, c_ as isTerminalIntentState, c$ as isVirtualCoin, d0 as isVtxoExpiringSoon, d1 as isVtxoSpent, d2 as networks, d3 as resolveEmulatorPubkey, d4 as resolveEventSource, d5 as resolvePrevTxs, d6 as scriptFromTapLeafScript, d7 as signerSetFromInfo, d8 as toXOnlySignerHex, d9 as withPrevTxs } from './index-
|
|
3
|
-
import { W as Wallet, R as ReadonlyWallet, b as ReceiveRotatorFactory, c as ReceiveRotatorBootOpts, d as ReceiveRotatorBoot, P as ProviderConnectionState, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, B as BatchExpiryPolicy, e as Batch } from './hdWalletCapable-
|
|
4
|
-
export { f as AbortError, g as ArkError, h as ArkErrorName, i as ArkadeCashClaimResult, j as ArkadeCashCreateError, k as ArkadeCashUnclaimedReason, l as ArkadeCashUnclaimedVtxo, m as BoardingUtxoGroup, C as CheckpointExitDelayPolicy, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, n as DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, F as ForeignDescriptorError, I as IncomingFunds, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, o as MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, p as ProviderKind, q as ProviderUnavailableError, r as REGTEST_MIN_BATCH_EXPIRY_SECONDS, s as REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, S as SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, t as ServerInfoSource, u as ServerResponseMismatchError, v as WaitForIncomingFundsOptions, w as WalletCannotAllocateAddressError, x as assertValidBatchExpiry, y as assertValidServerUnrollScript, z as defaultBatchExpiryPolicy, E as defaultCheckpointExitDelayPolicy, G as isAddressAllocationCapable, J as isArkError, K as isHDAllocationCapable, L as isHDWalletCapable, N as maybeArkError, O as resolveBatchExpiryPolicy, Q as resolveCheckpointExitDelayPolicy, T as resolveDescriptorSigner, U as selectVirtualCoins, V as signingDescriptorIndex, X as strictSigningDescriptorIndex, Y as waitForIncomingFunds } from './hdWalletCapable-
|
|
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-
|
|
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-
|
|
7
|
-
import { D as DefaultVtxo } from './delegate-
|
|
8
|
-
export { a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { a5 as ReadonlyIdentity, a as Identity, as as DescriptorSigningRequest, at as Transaction, ao as SignerSession, a3 as DescriptorProvider, au as IntentFeeConfig, av as OffchainInput, aw as FeeAmount, ax as OnchainInput, ay as FeeOutput, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch, W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, w as Contract, C as ContractRepository, B as ContractFilter, I as IWallet, r as ArkProvider, am as SettlementConfig, az as ContractWatcherConfig, aA as Asset, R as Recipient, aB as FeeInfo, l as SettlementEvent, N as NormalizedExtendedVirtualCoin, k as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, d as GetSpendableVtxosFilter, aC as CreateContractParams, aD as GetContractsFilter, v as VirtualCoin, aE as GetSpendablePathsOptions, aF as GetAllSpendingPathsOptions, h as GetNewAddressesOptions, aG as IssuanceParams, aH as ReissuanceParams, aI as BurnParams, aJ as RenewVtxosOptions, c as WalletBalance, ac as ContractSyncState, ah as ContractWithVtxos, aK as WatchedScript, aL as PathSelection, i as NewAddress, aM as ContractEvent, aN as AssetDetails, aO as IssuanceResult, aP as DelegateInfo, aQ as MigrationGlobalSkipReason, aR as MigrationLegSkipReason, aS as SignerStatus, a4 as IReadonlyWallet, e as ActivityRegistry, ab as IReadonlyAssetManager, aT as StorageConfig, f as Activity, g as IContractManager, n as IAssetManager, m as SendParams, j as IDelegateManager, aU as IVtxoManager, a6 as OnchainProvider, P as Network, ae as NetworkName, aj as Coin, aV as ExplorerTransaction, af as ArkInfo, ap as SignedIntent, aq as Intent, aW as TreeNonces, aX as TreePartialSigs, T as TxNotificationEvent, aY as PendingTx, u as TapLeafScript, aZ as EncodedVtxoScript, Q as CSVMultisigTapscript, t as RelativeTimelock, V as VtxoScript, a_ as Status, ag as ArkAddress, a$ as ChainTx, s as IndexerProvider, Y as TxTree, b0 as PathContext } from './index-CAS4GyN-.cjs';
|
|
2
|
+
export { b1 as ActivityIntent, b2 as ActivityResolver, b3 as ArkIntentState, b4 as ArkTapscript, b5 as AssetMetadata, b6 as BITCOIN_EMULATOR_PUBKEY, b7 as BaseWalletConfig, a0 as BatchFailedEvent, _ as BatchFinalizationEvent, $ as BatchFinalizedEvent, b8 as BatchInfo, b9 as BatchSignableIdentity, U as BatchStartedEvent, ba as CLTVMultisigTapscript, bb as CandidateDeps, bc as ChainTxType, M as ChainedTxType, bd as CommitmentTx, be as ConditionCSVMultisigTapscript, bf as ConditionMultisigTapscript, bg as ContractBalance, bh as ContractEventCallback, bi as ContractHandler, ak as ContractManager, al as ContractManagerConfig, bj as ContractState, bk as ContractVtxo, bl as ContractVtxoEvent, bm as ContractWatcher, bn as DEFAULT_VTXO_PAGE_SIZE, bo as DelegateManagerImpl, bp as DelegateOptions, a7 as DelegateProvider, bq as DelegatorManagerImpl, br as DelegatorProvider, bs as DeprecatedSignerMigrationReport, bt as DeprecatedSignerReport, bu as DigestMismatchError, bv as Discoverable, bw as DiscoveredContract, bx as DiscoveryDeps, by as ESPLORA_URL, bz as EsploraProvider, bA as EventSourceCapable, bB as EventSourceFactory, bC as EventSourceLike, bD as EventSourceUnavailableError, a9 as ExitCaptureMode, bE as ExitChainResolver, aa as ExitDataSource, bF as ExtendedContractVtxo, bG as GroupMembership, bH as HandlerError, bI as IDelegatorManager, bJ as INTENT_TERMINAL_STATES, bK as IndexerTxType, bL as IntentCoin, bM as KnownMetadata, bN as MUTINYNET_EMULATOR_PUBKEY, bO as MigrateDeprecatedSignerOptions, bP as MigrationLegReport, bQ as MigrationVtxoRef, bR as MultisigTapscript, bS as NewAddressType, bT as Nonces, bU as Output, bV as PageResponse, bW as PaginationOptions, bX as PartialSig, bY as PrevTxSource, bZ as PrevTxUnavailableError, b_ as ProviderClass, b$ as REGTEST_EMULATOR_PUBKEY, c0 as RawTxSource, a8 as ReadonlyWalletConfig, o as RestArkProvider, c1 as RestDelegateProvider, c2 as RestDelegatorProvider, p as RestIndexerProvider, c3 as ScanContractsOptions, c4 as ScanResult, c5 as ScheduledSession, c6 as SettlementEventType, c7 as SignRequest, c8 as SignerClassification, c9 as SignerSet, ca as SubscriptionEvent, cb as SubscriptionHeartbeat, q as SubscriptionResponse, cc as SweepTxNotification, cd as TapLeaves, ce as TapTreeCoder, cf as TapscriptType, ar as TimeHeight, Z as TreeNoncesEvent, a2 as TreeSignatureEvent, X as TreeSigningStartedEvent, a1 as TreeTxEvent, cg as Tx, ch as TxHistoryRecord, ci as TxKey, cj as TxNotification, ck as TxTag, cl as TxTreeNode, cm as TxType, cn as VirtualStatus, co as Vtxo, cp as VtxoChain, an as VtxoManager, cq as VtxoType, b as WalletConfig, cr as WalletMode, cs as WithPrevTx, ct as assertAllowedSighashTypes, cu as assetMintResolver, cv as attachPrevArkTxs, cw as attachPrevoutTxs, cx as boardingResolver, cy as canRecoverOnchain, cz as canSpendOffchain, cA as canSweepOnchain, cB as classifyAgainstSignerSet, cC as classifyContractSigner, cD as collabExitResolver, cE as configureEventSource, cF as createDefaultActivityRegistry, cG as createExitChainResolver, cH as decodeTapscript, cI as defaultEmulatorPubkey, cJ as getConfiguredEventSource, cK as getNetwork, cL as getRandomId, cM as getSequence, cN as hasCandidates, cO as hasTerminalSpend, cP as isBatchSignable, cQ as isContractVtxoEvent, cR as isCooperativelyMigratable, cS as isDiscoverable, cT as isEventSourceUnavailableError, cU as isExpired, cV as isPastExpiry, cW as isRecoverable, cX as isSigningIdentity, cY as isSpendable, cZ as isSubdust, c_ as isTerminalIntentState, c$ as isVirtualCoin, d0 as isVtxoExpiringSoon, d1 as isVtxoSpent, d2 as networks, d3 as resolveEmulatorPubkey, d4 as resolveEventSource, d5 as resolvePrevTxs, d6 as scriptFromTapLeafScript, d7 as signerSetFromInfo, d8 as toXOnlySignerHex, d9 as withPrevTxs } from './index-CAS4GyN-.cjs';
|
|
3
|
+
import { W as Wallet, R as ReadonlyWallet, b as ReceiveRotatorFactory, c as ReceiveRotatorBootOpts, d as ReceiveRotatorBoot, P as ProviderConnectionState, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, B as BatchExpiryPolicy, e as Batch } from './hdWalletCapable-D6PqWpuW.cjs';
|
|
4
|
+
export { f as AbortError, g as ArkError, h as ArkErrorName, i as ArkadeCashClaimResult, j as ArkadeCashCreateError, k as ArkadeCashUnclaimedReason, l as ArkadeCashUnclaimedVtxo, m as BoardingUtxoGroup, C as CheckpointExitDelayPolicy, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, n as DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, F as ForeignDescriptorError, I as IncomingFunds, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, o as MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, p as ProviderKind, q as ProviderUnavailableError, r as REGTEST_MIN_BATCH_EXPIRY_SECONDS, s as REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, S as SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, t as ServerInfoSource, u as ServerResponseMismatchError, v as WaitForIncomingFundsOptions, w as WalletCannotAllocateAddressError, x as assertValidBatchExpiry, y as assertValidServerUnrollScript, z as defaultBatchExpiryPolicy, E as defaultCheckpointExitDelayPolicy, G as isAddressAllocationCapable, J as isArkError, K as isHDAllocationCapable, L as isHDWalletCapable, N as maybeArkError, O as resolveBatchExpiryPolicy, Q as resolveCheckpointExitDelayPolicy, T as resolveDescriptorSigner, U as selectVirtualCoins, V as signingDescriptorIndex, X as strictSigningDescriptorIndex, Y as waitForIncomingFunds } from './hdWalletCapable-D6PqWpuW.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-BlB97fYl.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-BlB97fYl.cjs';
|
|
7
|
+
import { D as DefaultVtxo } from './delegate-DaNNUI_B.cjs';
|
|
8
|
+
export { a as DelegateVtxo } from './delegate-DaNNUI_B.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';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a5 as ReadonlyIdentity, a as Identity, as as DescriptorSigningRequest, at as Transaction, ao as SignerSession, a3 as DescriptorProvider, au as IntentFeeConfig, av as OffchainInput, aw as FeeAmount, ax as OnchainInput, ay as FeeOutput, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch, W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, w as Contract, C as ContractRepository, B as ContractFilter, I as IWallet, r as ArkProvider, am as SettlementConfig, az as ContractWatcherConfig, aA as Asset, R as Recipient, aB as FeeInfo, l as SettlementEvent, N as NormalizedExtendedVirtualCoin, k as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, d as GetSpendableVtxosFilter, aC as CreateContractParams, aD as GetContractsFilter, v as VirtualCoin, aE as GetSpendablePathsOptions, aF as GetAllSpendingPathsOptions, h as GetNewAddressesOptions, aG as IssuanceParams, aH as ReissuanceParams, aI as BurnParams, aJ as RenewVtxosOptions, c as WalletBalance, ac as ContractSyncState, ah as ContractWithVtxos, aK as WatchedScript, aL as PathSelection, i as NewAddress, aM as ContractEvent, aN as AssetDetails, aO as IssuanceResult, aP as DelegateInfo, aQ as MigrationGlobalSkipReason, aR as MigrationLegSkipReason, aS as SignerStatus, a4 as IReadonlyWallet, e as ActivityRegistry, ab as IReadonlyAssetManager, aT as StorageConfig, f as Activity, g as IContractManager, n as IAssetManager, m as SendParams, j as IDelegateManager, aU as IVtxoManager, a6 as OnchainProvider, P as Network, ae as NetworkName, aj as Coin, aV as ExplorerTransaction, af as ArkInfo, ap as SignedIntent, aq as Intent, aW as TreeNonces, aX as TreePartialSigs, T as TxNotificationEvent, aY as PendingTx, u as TapLeafScript, aZ as EncodedVtxoScript, Q as CSVMultisigTapscript, t as RelativeTimelock, V as VtxoScript, a_ as Status, ag as ArkAddress, a$ as ChainTx, s as IndexerProvider, Y as TxTree, b0 as PathContext } from './index-
|
|
2
|
-
export { b1 as ActivityIntent, b2 as ActivityResolver, b3 as ArkIntentState, b4 as ArkTapscript, b5 as AssetMetadata, b6 as BITCOIN_EMULATOR_PUBKEY, b7 as BaseWalletConfig, a0 as BatchFailedEvent, _ as BatchFinalizationEvent, $ as BatchFinalizedEvent, b8 as BatchInfo, b9 as BatchSignableIdentity, U as BatchStartedEvent, ba as CLTVMultisigTapscript, bb as CandidateDeps, bc as ChainTxType, M as ChainedTxType, bd as CommitmentTx, be as ConditionCSVMultisigTapscript, bf as ConditionMultisigTapscript, bg as ContractBalance, bh as ContractEventCallback, bi as ContractHandler, ak as ContractManager, al as ContractManagerConfig, bj as ContractState, bk as ContractVtxo, bl as ContractVtxoEvent, bm as ContractWatcher, bn as DEFAULT_VTXO_PAGE_SIZE, bo as DelegateManagerImpl, bp as DelegateOptions, a7 as DelegateProvider, bq as DelegatorManagerImpl, br as DelegatorProvider, bs as DeprecatedSignerMigrationReport, bt as DeprecatedSignerReport, bu as DigestMismatchError, bv as Discoverable, bw as DiscoveredContract, bx as DiscoveryDeps, by as ESPLORA_URL, bz as EsploraProvider, bA as EventSourceCapable, bB as EventSourceFactory, bC as EventSourceLike, bD as EventSourceUnavailableError, a9 as ExitCaptureMode, bE as ExitChainResolver, aa as ExitDataSource, bF as ExtendedContractVtxo, bG as GroupMembership, bH as HandlerError, bI as IDelegatorManager, bJ as INTENT_TERMINAL_STATES, bK as IndexerTxType, bL as IntentCoin, bM as KnownMetadata, bN as MUTINYNET_EMULATOR_PUBKEY, bO as MigrateDeprecatedSignerOptions, bP as MigrationLegReport, bQ as MigrationVtxoRef, bR as MultisigTapscript, bS as NewAddressType, bT as Nonces, bU as Output, bV as PageResponse, bW as PaginationOptions, bX as PartialSig, bY as PrevTxSource, bZ as PrevTxUnavailableError, b_ as ProviderClass, b$ as REGTEST_EMULATOR_PUBKEY, c0 as RawTxSource, a8 as ReadonlyWalletConfig, o as RestArkProvider, c1 as RestDelegateProvider, c2 as RestDelegatorProvider, p as RestIndexerProvider, c3 as ScanContractsOptions, c4 as ScanResult, c5 as ScheduledSession, c6 as SettlementEventType, c7 as SignRequest, c8 as SignerClassification, c9 as SignerSet, ca as SubscriptionEvent, cb as SubscriptionHeartbeat, q as SubscriptionResponse, cc as SweepTxNotification, cd as TapLeaves, ce as TapTreeCoder, cf as TapscriptType, ar as TimeHeight, Z as TreeNoncesEvent, a2 as TreeSignatureEvent, X as TreeSigningStartedEvent, a1 as TreeTxEvent, cg as Tx, ch as TxHistoryRecord, ci as TxKey, cj as TxNotification, ck as TxTag, cl as TxTreeNode, cm as TxType, cn as VirtualStatus, co as Vtxo, cp as VtxoChain, an as VtxoManager, cq as VtxoType, b as WalletConfig, cr as WalletMode, cs as WithPrevTx, ct as assertAllowedSighashTypes, cu as assetMintResolver, cv as attachPrevArkTxs, cw as attachPrevoutTxs, cx as boardingResolver, cy as canRecoverOnchain, cz as canSpendOffchain, cA as canSweepOnchain, cB as classifyAgainstSignerSet, cC as classifyContractSigner, cD as collabExitResolver, cE as configureEventSource, cF as createDefaultActivityRegistry, cG as createExitChainResolver, cH as decodeTapscript, cI as defaultEmulatorPubkey, cJ as getConfiguredEventSource, cK as getNetwork, cL as getRandomId, cM as getSequence, cN as hasCandidates, cO as hasTerminalSpend, cP as isBatchSignable, cQ as isContractVtxoEvent, cR as isCooperativelyMigratable, cS as isDiscoverable, cT as isEventSourceUnavailableError, cU as isExpired, cV as isPastExpiry, cW as isRecoverable, cX as isSigningIdentity, cY as isSpendable, cZ as isSubdust, c_ as isTerminalIntentState, c$ as isVirtualCoin, d0 as isVtxoExpiringSoon, d1 as isVtxoSpent, d2 as networks, d3 as resolveEmulatorPubkey, d4 as resolveEventSource, d5 as resolvePrevTxs, d6 as scriptFromTapLeafScript, d7 as signerSetFromInfo, d8 as toXOnlySignerHex, d9 as withPrevTxs } from './index-
|
|
3
|
-
import { W as Wallet, R as ReadonlyWallet, b as ReceiveRotatorFactory, c as ReceiveRotatorBootOpts, d as ReceiveRotatorBoot, P as ProviderConnectionState, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, B as BatchExpiryPolicy, e as Batch } from './hdWalletCapable
|
|
4
|
-
export { f as AbortError, g as ArkError, h as ArkErrorName, i as ArkadeCashClaimResult, j as ArkadeCashCreateError, k as ArkadeCashUnclaimedReason, l as ArkadeCashUnclaimedVtxo, m as BoardingUtxoGroup, C as CheckpointExitDelayPolicy, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, n as DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, F as ForeignDescriptorError, I as IncomingFunds, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, o as MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, p as ProviderKind, q as ProviderUnavailableError, r as REGTEST_MIN_BATCH_EXPIRY_SECONDS, s as REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, S as SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, t as ServerInfoSource, u as ServerResponseMismatchError, v as WaitForIncomingFundsOptions, w as WalletCannotAllocateAddressError, x as assertValidBatchExpiry, y as assertValidServerUnrollScript, z as defaultBatchExpiryPolicy, E as defaultCheckpointExitDelayPolicy, G as isAddressAllocationCapable, J as isArkError, K as isHDAllocationCapable, L as isHDWalletCapable, N as maybeArkError, O as resolveBatchExpiryPolicy, Q as resolveCheckpointExitDelayPolicy, T as resolveDescriptorSigner, U as selectVirtualCoins, V as signingDescriptorIndex, X as strictSigningDescriptorIndex, Y as waitForIncomingFunds } from './hdWalletCapable
|
|
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-
|
|
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-
|
|
7
|
-
import { D as DefaultVtxo } from './delegate-
|
|
8
|
-
export { a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { a5 as ReadonlyIdentity, a as Identity, as as DescriptorSigningRequest, at as Transaction, ao as SignerSession, a3 as DescriptorProvider, au as IntentFeeConfig, av as OffchainInput, aw as FeeAmount, ax as OnchainInput, ay as FeeOutput, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch, W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, w as Contract, C as ContractRepository, B as ContractFilter, I as IWallet, r as ArkProvider, am as SettlementConfig, az as ContractWatcherConfig, aA as Asset, R as Recipient, aB as FeeInfo, l as SettlementEvent, N as NormalizedExtendedVirtualCoin, k as SettleParams, S as SendBitcoinParams, G as GetVtxosFilter, d as GetSpendableVtxosFilter, aC as CreateContractParams, aD as GetContractsFilter, v as VirtualCoin, aE as GetSpendablePathsOptions, aF as GetAllSpendingPathsOptions, h as GetNewAddressesOptions, aG as IssuanceParams, aH as ReissuanceParams, aI as BurnParams, aJ as RenewVtxosOptions, c as WalletBalance, ac as ContractSyncState, ah as ContractWithVtxos, aK as WatchedScript, aL as PathSelection, i as NewAddress, aM as ContractEvent, aN as AssetDetails, aO as IssuanceResult, aP as DelegateInfo, aQ as MigrationGlobalSkipReason, aR as MigrationLegSkipReason, aS as SignerStatus, a4 as IReadonlyWallet, e as ActivityRegistry, ab as IReadonlyAssetManager, aT as StorageConfig, f as Activity, g as IContractManager, n as IAssetManager, m as SendParams, j as IDelegateManager, aU as IVtxoManager, a6 as OnchainProvider, P as Network, ae as NetworkName, aj as Coin, aV as ExplorerTransaction, af as ArkInfo, ap as SignedIntent, aq as Intent, aW as TreeNonces, aX as TreePartialSigs, T as TxNotificationEvent, aY as PendingTx, u as TapLeafScript, aZ as EncodedVtxoScript, Q as CSVMultisigTapscript, t as RelativeTimelock, V as VtxoScript, a_ as Status, ag as ArkAddress, a$ as ChainTx, s as IndexerProvider, Y as TxTree, b0 as PathContext } from './index-CAS4GyN-.js';
|
|
2
|
+
export { b1 as ActivityIntent, b2 as ActivityResolver, b3 as ArkIntentState, b4 as ArkTapscript, b5 as AssetMetadata, b6 as BITCOIN_EMULATOR_PUBKEY, b7 as BaseWalletConfig, a0 as BatchFailedEvent, _ as BatchFinalizationEvent, $ as BatchFinalizedEvent, b8 as BatchInfo, b9 as BatchSignableIdentity, U as BatchStartedEvent, ba as CLTVMultisigTapscript, bb as CandidateDeps, bc as ChainTxType, M as ChainedTxType, bd as CommitmentTx, be as ConditionCSVMultisigTapscript, bf as ConditionMultisigTapscript, bg as ContractBalance, bh as ContractEventCallback, bi as ContractHandler, ak as ContractManager, al as ContractManagerConfig, bj as ContractState, bk as ContractVtxo, bl as ContractVtxoEvent, bm as ContractWatcher, bn as DEFAULT_VTXO_PAGE_SIZE, bo as DelegateManagerImpl, bp as DelegateOptions, a7 as DelegateProvider, bq as DelegatorManagerImpl, br as DelegatorProvider, bs as DeprecatedSignerMigrationReport, bt as DeprecatedSignerReport, bu as DigestMismatchError, bv as Discoverable, bw as DiscoveredContract, bx as DiscoveryDeps, by as ESPLORA_URL, bz as EsploraProvider, bA as EventSourceCapable, bB as EventSourceFactory, bC as EventSourceLike, bD as EventSourceUnavailableError, a9 as ExitCaptureMode, bE as ExitChainResolver, aa as ExitDataSource, bF as ExtendedContractVtxo, bG as GroupMembership, bH as HandlerError, bI as IDelegatorManager, bJ as INTENT_TERMINAL_STATES, bK as IndexerTxType, bL as IntentCoin, bM as KnownMetadata, bN as MUTINYNET_EMULATOR_PUBKEY, bO as MigrateDeprecatedSignerOptions, bP as MigrationLegReport, bQ as MigrationVtxoRef, bR as MultisigTapscript, bS as NewAddressType, bT as Nonces, bU as Output, bV as PageResponse, bW as PaginationOptions, bX as PartialSig, bY as PrevTxSource, bZ as PrevTxUnavailableError, b_ as ProviderClass, b$ as REGTEST_EMULATOR_PUBKEY, c0 as RawTxSource, a8 as ReadonlyWalletConfig, o as RestArkProvider, c1 as RestDelegateProvider, c2 as RestDelegatorProvider, p as RestIndexerProvider, c3 as ScanContractsOptions, c4 as ScanResult, c5 as ScheduledSession, c6 as SettlementEventType, c7 as SignRequest, c8 as SignerClassification, c9 as SignerSet, ca as SubscriptionEvent, cb as SubscriptionHeartbeat, q as SubscriptionResponse, cc as SweepTxNotification, cd as TapLeaves, ce as TapTreeCoder, cf as TapscriptType, ar as TimeHeight, Z as TreeNoncesEvent, a2 as TreeSignatureEvent, X as TreeSigningStartedEvent, a1 as TreeTxEvent, cg as Tx, ch as TxHistoryRecord, ci as TxKey, cj as TxNotification, ck as TxTag, cl as TxTreeNode, cm as TxType, cn as VirtualStatus, co as Vtxo, cp as VtxoChain, an as VtxoManager, cq as VtxoType, b as WalletConfig, cr as WalletMode, cs as WithPrevTx, ct as assertAllowedSighashTypes, cu as assetMintResolver, cv as attachPrevArkTxs, cw as attachPrevoutTxs, cx as boardingResolver, cy as canRecoverOnchain, cz as canSpendOffchain, cA as canSweepOnchain, cB as classifyAgainstSignerSet, cC as classifyContractSigner, cD as collabExitResolver, cE as configureEventSource, cF as createDefaultActivityRegistry, cG as createExitChainResolver, cH as decodeTapscript, cI as defaultEmulatorPubkey, cJ as getConfiguredEventSource, cK as getNetwork, cL as getRandomId, cM as getSequence, cN as hasCandidates, cO as hasTerminalSpend, cP as isBatchSignable, cQ as isContractVtxoEvent, cR as isCooperativelyMigratable, cS as isDiscoverable, cT as isEventSourceUnavailableError, cU as isExpired, cV as isPastExpiry, cW as isRecoverable, cX as isSigningIdentity, cY as isSpendable, cZ as isSubdust, c_ as isTerminalIntentState, c$ as isVirtualCoin, d0 as isVtxoExpiringSoon, d1 as isVtxoSpent, d2 as networks, d3 as resolveEmulatorPubkey, d4 as resolveEventSource, d5 as resolvePrevTxs, d6 as scriptFromTapLeafScript, d7 as signerSetFromInfo, d8 as toXOnlySignerHex, d9 as withPrevTxs } from './index-CAS4GyN-.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 './hdWalletCapable-B2XVTOvu.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 './hdWalletCapable-B2XVTOvu.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-CYsKAXog.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-CYsKAXog.js';
|
|
7
|
+
import { D as DefaultVtxo } from './delegate-b2Wiymoj.js';
|
|
8
|
+
export { a as DelegateVtxo } from './delegate-b2Wiymoj.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';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, ContractRepositoryImpl, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_SECONDS, DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, DatabaseUpgradeBlockedError, DelegateManagerImpl, DelegateNotConfiguredError, DelegatorManagerImpl, DelegatorNotConfiguredError, 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_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, 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, RestDelegatorProvider, 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, WalletRepositoryImpl, WsElectrumChainSource, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, arkade_exports as arkade, assertFinalCommitmentMatchesValidated, assertNoAssets, assertNoSelection, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, assetsOf, attachPrevArkTxs, attachPrevoutTxs, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, claimWithPreimageIdentity, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, collabExitResolver, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, decodeArkContract, defaultBatchExpiryPolicy, defaultCheckpointExitDelayPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getMigrationStatus, 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, logExcludedVtxos, makeHandle, matchServerCheckpoints, migrateWalletRepository, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, promisifyRequest, provisionClaimSecret, provisionRefundKey, registerWalletRestoreHook, requiresMigration, resolveAssetAmount, resolveBatchExpiryPolicy, resolveCheckpointExitDelayPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, rollbackMigration, selectCoinsWithAsset, selectVirtualCoins, selectionOf, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, toXOnlySignerHex, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, walletFeeSource, withPrevTxs } from './chunk-
|
|
2
|
-
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, RestIndexerProvider, asset_exports as asset } from './chunk-
|
|
3
|
-
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor, toXOnly } from './chunk-
|
|
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, getArkPsbtFields, getConfiguredEventSource, getNetwork, getSequence, hasTerminalSpend, isArkError, isEventSourceUnavailableError, isExpired, isPastExpiry, isRecoverable, isRetryableProviderError, isSpendable, isVirtualCoin, isVtxoSpent, maybeArkError, networks, resolveEmulatorPubkey, resolveEventSource, scriptFromTapLeafScript, sdkVersion, sequenceToTimelock, setArkPsbtField, timelockToSequence } from './chunk-
|
|
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, ContractRepositoryImpl, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_SECONDS, DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, DatabaseUpgradeBlockedError, DelegateManagerImpl, DelegateNotConfiguredError, DelegatorManagerImpl, DelegatorNotConfiguredError, 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_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, 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, RestDelegatorProvider, 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, WalletRepositoryImpl, WsElectrumChainSource, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, arkade_exports as arkade, assertFinalCommitmentMatchesValidated, assertNoAssets, assertNoSelection, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, assetsOf, attachPrevArkTxs, attachPrevoutTxs, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, claimWithPreimageIdentity, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, collabExitResolver, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, decodeArkContract, defaultBatchExpiryPolicy, defaultCheckpointExitDelayPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getMigrationStatus, 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, logExcludedVtxos, makeHandle, matchServerCheckpoints, migrateWalletRepository, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, promisifyRequest, provisionClaimSecret, provisionRefundKey, registerWalletRestoreHook, requiresMigration, resolveAssetAmount, resolveBatchExpiryPolicy, resolveCheckpointExitDelayPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, rollbackMigration, selectCoinsWithAsset, selectVirtualCoins, selectionOf, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, toXOnlySignerHex, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, walletFeeSource, withPrevTxs } from './chunk-LKAASQTL.js';
|
|
2
|
+
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, RestIndexerProvider, asset_exports as asset } from './chunk-CTFYT24G.js';
|
|
3
|
+
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor, toXOnly } from './chunk-ZOCJ7E6M.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, getArkPsbtFields, getConfiguredEventSource, getNetwork, getSequence, hasTerminalSpend, isArkError, isEventSourceUnavailableError, isExpired, isPastExpiry, isRecoverable, isRetryableProviderError, isSpendable, isVirtualCoin, isVtxoSpent, maybeArkError, networks, resolveEmulatorPubkey, resolveEventSource, scriptFromTapLeafScript, sdkVersion, sequenceToTimelock, setArkPsbtField, timelockToSequence } from './chunk-7KIGEOYT.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
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
var
|
|
3
|
+
var chunkVJ7M6WKB_cjs = require('../../chunk-VJ7M6WKB.cjs');
|
|
4
|
+
require('../../chunk-IAM5IEVT.cjs');
|
|
5
|
+
require('../../chunk-Y7BVR6SQ.cjs');
|
|
6
|
+
var chunkPWIESIO6_cjs = require('../../chunk-PWIESIO6.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 =
|
|
41
|
+
const s = chunkVJ7M6WKB_cjs.serializeVtxo(vtxo);
|
|
42
42
|
this.realm.create(
|
|
43
43
|
"ArkVtxo",
|
|
44
44
|
{
|
|
@@ -93,7 +93,7 @@ var RealmWalletRepository = class {
|
|
|
93
93
|
const results = this.realm.objects("ArkVtxo").filtered(query, ...chunk, false, "");
|
|
94
94
|
for (const row of results) {
|
|
95
95
|
const vtxo = vtxoObjectToDomain(row);
|
|
96
|
-
if (!options?.unspentOnly || !
|
|
96
|
+
if (!options?.unspentOnly || !chunkPWIESIO6_cjs.isVtxoSpent(vtxo)) rows.push(vtxo);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
return rows;
|
|
@@ -103,7 +103,7 @@ var RealmWalletRepository = class {
|
|
|
103
103
|
throw new Error("RealmWalletRepository requires an address");
|
|
104
104
|
}
|
|
105
105
|
for (const vtxo of vtxos) {
|
|
106
|
-
if (!
|
|
106
|
+
if (!chunkVJ7M6WKB_cjs.isVtxoForScript(vtxo, key.script)) {
|
|
107
107
|
throw new Error(
|
|
108
108
|
`VTXO ${vtxo.txid}:${vtxo.vout} script mismatch: expected ${key.script}, got ${vtxo.script}`
|
|
109
109
|
);
|
|
@@ -128,7 +128,7 @@ var RealmWalletRepository = class {
|
|
|
128
128
|
await this.ensureInit();
|
|
129
129
|
this.realm.write(() => {
|
|
130
130
|
for (const utxo of utxos) {
|
|
131
|
-
const s =
|
|
131
|
+
const s = chunkVJ7M6WKB_cjs.serializeUtxo(utxo);
|
|
132
132
|
this.realm.create(
|
|
133
133
|
"ArkUtxo",
|
|
134
134
|
{
|
|
@@ -181,7 +181,7 @@ var RealmWalletRepository = class {
|
|
|
181
181
|
amount: tx.amount,
|
|
182
182
|
settled: tx.settled,
|
|
183
183
|
createdAt: tx.createdAt,
|
|
184
|
-
assetsJson: tx.assets ? JSON.stringify(
|
|
184
|
+
assetsJson: tx.assets ? JSON.stringify(chunkVJ7M6WKB_cjs.serializeAssets(tx.assets)) : null
|
|
185
185
|
},
|
|
186
186
|
"modified"
|
|
187
187
|
);
|
|
@@ -251,9 +251,9 @@ function vtxoObjectToDomain(obj) {
|
|
|
251
251
|
// Post-migration every row has `script`, but the backfill is
|
|
252
252
|
// idempotent: derive from `address` if the legacy column is still
|
|
253
253
|
// null (e.g. the migration hasn't run yet on this handle).
|
|
254
|
-
script: obj.script ??
|
|
254
|
+
script: obj.script ?? chunkVJ7M6WKB_cjs.scriptFromArkAddress(obj.address)
|
|
255
255
|
};
|
|
256
|
-
return
|
|
256
|
+
return chunkVJ7M6WKB_cjs.deserializeVtxo(serialized);
|
|
257
257
|
}
|
|
258
258
|
function utxoObjectToDomain(obj) {
|
|
259
259
|
const serialized = {
|
|
@@ -272,7 +272,7 @@ function utxoObjectToDomain(obj) {
|
|
|
272
272
|
status: JSON.parse(obj.statusJson),
|
|
273
273
|
extraWitness: obj.extraWitnessJson ? JSON.parse(obj.extraWitnessJson) : void 0
|
|
274
274
|
};
|
|
275
|
-
return
|
|
275
|
+
return chunkVJ7M6WKB_cjs.deserializeUtxo(serialized);
|
|
276
276
|
}
|
|
277
277
|
function txObjectToDomain(obj) {
|
|
278
278
|
const tx = {
|
|
@@ -287,7 +287,7 @@ function txObjectToDomain(obj) {
|
|
|
287
287
|
createdAt: obj.createdAt
|
|
288
288
|
};
|
|
289
289
|
if (obj.assetsJson) {
|
|
290
|
-
tx.assets =
|
|
290
|
+
tx.assets = chunkVJ7M6WKB_cjs.deserializeAssets(JSON.parse(obj.assetsJson));
|
|
291
291
|
}
|
|
292
292
|
return tx;
|
|
293
293
|
}
|
|
@@ -467,7 +467,7 @@ var RealmIntentRepository = class {
|
|
|
467
467
|
const clashes = [
|
|
468
468
|
...this.realm.objects("ArkIntent").filtered("intentId == $0", intent.intentId)
|
|
469
469
|
].map(toIntent);
|
|
470
|
-
|
|
470
|
+
chunkVJ7M6WKB_cjs.assertIntentIdUnique(intent, clashes);
|
|
471
471
|
}
|
|
472
472
|
this.realm.create(
|
|
473
473
|
"ArkIntent",
|
|
@@ -496,14 +496,14 @@ var RealmIntentRepository = class {
|
|
|
496
496
|
}
|
|
497
497
|
async getIntents(filter) {
|
|
498
498
|
const all = [...this.realm.objects("ArkIntent")].map(toIntent).sort((a, b) => a.createdAt - b.createdAt || a.intentTxId.localeCompare(b.intentTxId));
|
|
499
|
-
const out = filter ? all.filter((i) =>
|
|
500
|
-
const { skip, end } =
|
|
499
|
+
const out = filter ? all.filter((i) => chunkVJ7M6WKB_cjs.intentMatchesFilter(i, filter)) : all;
|
|
500
|
+
const { skip, end } = chunkVJ7M6WKB_cjs.intentPageBounds(filter, out.length);
|
|
501
501
|
return out.slice(skip, end);
|
|
502
502
|
}
|
|
503
503
|
async getLockedVtxoOutpoints() {
|
|
504
504
|
const out = [];
|
|
505
505
|
for (const o of [...this.realm.objects("ArkIntent")].map(toIntent))
|
|
506
|
-
if (!
|
|
506
|
+
if (!chunkVJ7M6WKB_cjs.isTerminalIntentState(o.state)) out.push(...o.intentVtxos);
|
|
507
507
|
return out;
|
|
508
508
|
}
|
|
509
509
|
async [Symbol.asyncDispose]() {
|
|
@@ -545,7 +545,7 @@ var RealmVirtualTxRepository = class {
|
|
|
545
545
|
txid: t.txid,
|
|
546
546
|
psbt: t.psbt ?? prev?.psbt ?? null,
|
|
547
547
|
expiresAt: t.expiresAt ?? prev?.expiresAt ?? null,
|
|
548
|
-
type:
|
|
548
|
+
type: chunkVJ7M6WKB_cjs.mergeChainedTxType(t.type, prev?.type)
|
|
549
549
|
},
|
|
550
550
|
"modified"
|
|
551
551
|
);
|
|
@@ -779,7 +779,7 @@ function runArkRealmMigrations(oldRealm, newRealm) {
|
|
|
779
779
|
for (let i = 0; i < newVtxos.length; i++) {
|
|
780
780
|
const newVtxo = newVtxos[i];
|
|
781
781
|
if (!newVtxo.script) {
|
|
782
|
-
newVtxo.script =
|
|
782
|
+
newVtxo.script = chunkVJ7M6WKB_cjs.scriptFromArkAddress(newVtxo.address);
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
785
|
const oldHasVirtualTx = Array.isArray(oldRealm?.schema) && oldRealm.schema.some((s) => s.name === "ArkVirtualTx");
|
|
@@ -796,7 +796,7 @@ function runArkRealmMigrations(oldRealm, newRealm) {
|
|
|
796
796
|
|
|
797
797
|
Object.defineProperty(exports, "ChainedTxType", {
|
|
798
798
|
enumerable: true,
|
|
799
|
-
get: function () { return
|
|
799
|
+
get: function () { return chunkVJ7M6WKB_cjs.ChainedTxType; }
|
|
800
800
|
});
|
|
801
801
|
exports.ARK_REALM_SCHEMA_VERSION = ARK_REALM_SCHEMA_VERSION;
|
|
802
802
|
exports.ArkExperimentalRealmSchemas = ArkExperimentalRealmSchemas;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, C as ContractRepository, B as ContractFilter, w as Contract, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch } from '../../index-
|
|
2
|
-
export { M as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, C as ContractRepository, B as ContractFilter, w as Contract, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch } from '../../index-CAS4GyN-.cjs';
|
|
2
|
+
export { M as ChainedTxType } from '../../index-CAS4GyN-.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, C as ContractRepository, B as ContractFilter, w as Contract, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch } from '../../index-
|
|
2
|
-
export { M as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, C as ContractRepository, B as ContractFilter, w as Contract, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch } from '../../index-CAS4GyN-.js';
|
|
2
|
+
export { M as ChainedTxType } from '../../index-CAS4GyN-.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, assertIntentIdUnique, intentMatchesFilter, intentPageBounds, isTerminalIntentState, mergeChainedTxType } from '../../chunk-
|
|
2
|
-
export { ChainedTxType } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import { isVtxoSpent } from '../../chunk-
|
|
1
|
+
import { serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, assertIntentIdUnique, intentMatchesFilter, intentPageBounds, isTerminalIntentState, mergeChainedTxType } from '../../chunk-LKAASQTL.js';
|
|
2
|
+
export { ChainedTxType } from '../../chunk-LKAASQTL.js';
|
|
3
|
+
import '../../chunk-CTFYT24G.js';
|
|
4
|
+
import '../../chunk-ZOCJ7E6M.js';
|
|
5
|
+
import { isVtxoSpent } from '../../chunk-7KIGEOYT.js';
|
|
6
6
|
import '../../chunk-NSBPE2FW.js';
|
|
7
7
|
|
|
8
8
|
// src/repositories/realm/walletRepository.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
var
|
|
3
|
+
var chunkVJ7M6WKB_cjs = require('../../chunk-VJ7M6WKB.cjs');
|
|
4
|
+
require('../../chunk-IAM5IEVT.cjs');
|
|
5
|
+
require('../../chunk-Y7BVR6SQ.cjs');
|
|
6
|
+
var chunkPWIESIO6_cjs = require('../../chunk-PWIESIO6.cjs');
|
|
7
7
|
require('../../chunk-5BLDMQED.cjs');
|
|
8
8
|
|
|
9
9
|
// src/repositories/sqlite/transaction.ts
|
|
@@ -160,7 +160,7 @@ var SQLiteWalletRepository = class {
|
|
|
160
160
|
for (const row of nullRows) {
|
|
161
161
|
await this.db.run(
|
|
162
162
|
`UPDATE ${this.tables.vtxos} SET script = ? WHERE txid = ? AND vout = ?`,
|
|
163
|
-
[
|
|
163
|
+
[chunkVJ7M6WKB_cjs.scriptFromArkAddress(row.address), row.txid, row.vout]
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
166
|
const tempName = `${this.tables.vtxos}__migrate_tmp`;
|
|
@@ -231,7 +231,7 @@ var SQLiteWalletRepository = class {
|
|
|
231
231
|
async saveVtxos(address, vtxos) {
|
|
232
232
|
await this.ensureInit();
|
|
233
233
|
for (const vtxo of vtxos) {
|
|
234
|
-
const s =
|
|
234
|
+
const s = chunkVJ7M6WKB_cjs.serializeVtxo(vtxo);
|
|
235
235
|
await this.db.run(
|
|
236
236
|
`INSERT OR REPLACE INTO ${this.tables.vtxos}
|
|
237
237
|
(txid, vout, value, address,
|
|
@@ -294,7 +294,7 @@ var SQLiteWalletRepository = class {
|
|
|
294
294
|
);
|
|
295
295
|
const decoded = rows.map(vtxoRowToDomain);
|
|
296
296
|
result.push(
|
|
297
|
-
...options?.unspentOnly ? decoded.filter((vtxo) => !
|
|
297
|
+
...options?.unspentOnly ? decoded.filter((vtxo) => !chunkPWIESIO6_cjs.isVtxoSpent(vtxo)) : decoded
|
|
298
298
|
);
|
|
299
299
|
}
|
|
300
300
|
return result;
|
|
@@ -304,7 +304,7 @@ var SQLiteWalletRepository = class {
|
|
|
304
304
|
throw new Error("SQLiteWalletRepository requires an address");
|
|
305
305
|
}
|
|
306
306
|
for (const vtxo of vtxos) {
|
|
307
|
-
if (!
|
|
307
|
+
if (!chunkVJ7M6WKB_cjs.isVtxoForScript(vtxo, key.script)) {
|
|
308
308
|
throw new Error(
|
|
309
309
|
`VTXO ${vtxo.txid}:${vtxo.vout} script mismatch: expected ${key.script}, got ${vtxo.script}`
|
|
310
310
|
);
|
|
@@ -328,7 +328,7 @@ var SQLiteWalletRepository = class {
|
|
|
328
328
|
async saveUtxos(address, utxos) {
|
|
329
329
|
await this.ensureInit();
|
|
330
330
|
for (const utxo of utxos) {
|
|
331
|
-
const s =
|
|
331
|
+
const s = chunkVJ7M6WKB_cjs.serializeUtxo(utxo);
|
|
332
332
|
await this.db.run(
|
|
333
333
|
`INSERT OR REPLACE INTO ${this.tables.utxos}
|
|
334
334
|
(txid, vout, value, address,
|
|
@@ -384,7 +384,7 @@ var SQLiteWalletRepository = class {
|
|
|
384
384
|
tx.amount,
|
|
385
385
|
tx.settled ? 1 : 0,
|
|
386
386
|
tx.createdAt,
|
|
387
|
-
tx.assets ? JSON.stringify(
|
|
387
|
+
tx.assets ? JSON.stringify(chunkVJ7M6WKB_cjs.serializeAssets(tx.assets)) : null
|
|
388
388
|
]
|
|
389
389
|
);
|
|
390
390
|
}
|
|
@@ -458,9 +458,9 @@ function vtxoRowToDomain(row) {
|
|
|
458
458
|
// Post-migration every row has `script`, but the backfill is
|
|
459
459
|
// idempotent: derive from `address` if the legacy column is still
|
|
460
460
|
// null (e.g. the migration hasn't run yet on this handle).
|
|
461
|
-
script: row.script ??
|
|
461
|
+
script: row.script ?? chunkVJ7M6WKB_cjs.scriptFromArkAddress(row.address)
|
|
462
462
|
};
|
|
463
|
-
return
|
|
463
|
+
return chunkVJ7M6WKB_cjs.deserializeVtxo(serialized);
|
|
464
464
|
}
|
|
465
465
|
function utxoRowToDomain(row) {
|
|
466
466
|
const serialized = {
|
|
@@ -479,7 +479,7 @@ function utxoRowToDomain(row) {
|
|
|
479
479
|
status: JSON.parse(row.status_json),
|
|
480
480
|
extraWitness: row.extra_witness_json ? JSON.parse(row.extra_witness_json) : void 0
|
|
481
481
|
};
|
|
482
|
-
return
|
|
482
|
+
return chunkVJ7M6WKB_cjs.deserializeUtxo(serialized);
|
|
483
483
|
}
|
|
484
484
|
function txRowToDomain(row) {
|
|
485
485
|
const tx = {
|
|
@@ -494,7 +494,7 @@ function txRowToDomain(row) {
|
|
|
494
494
|
createdAt: row.created_at
|
|
495
495
|
};
|
|
496
496
|
if (row.assets_json) {
|
|
497
|
-
tx.assets =
|
|
497
|
+
tx.assets = chunkVJ7M6WKB_cjs.deserializeAssets(JSON.parse(row.assets_json));
|
|
498
498
|
}
|
|
499
499
|
return tx;
|
|
500
500
|
}
|
|
@@ -767,8 +767,8 @@ var SQLiteIntentRepository = class {
|
|
|
767
767
|
`SELECT * FROM ${this.t} ORDER BY created_at ASC, intent_tx_id ASC`
|
|
768
768
|
);
|
|
769
769
|
let out = rows.map(rowToIntent);
|
|
770
|
-
if (filter) out = out.filter((i) =>
|
|
771
|
-
const { skip, end } =
|
|
770
|
+
if (filter) out = out.filter((i) => chunkVJ7M6WKB_cjs.intentMatchesFilter(i, filter));
|
|
771
|
+
const { skip, end } = chunkVJ7M6WKB_cjs.intentPageBounds(filter, out.length);
|
|
772
772
|
return out.slice(skip, end);
|
|
773
773
|
}
|
|
774
774
|
async getLockedVtxoOutpoints() {
|
|
@@ -776,7 +776,7 @@ var SQLiteIntentRepository = class {
|
|
|
776
776
|
const rows = await this.db.all(`SELECT * FROM ${this.t}`);
|
|
777
777
|
const out = [];
|
|
778
778
|
for (const r of rows) {
|
|
779
|
-
if (
|
|
779
|
+
if (chunkVJ7M6WKB_cjs.isTerminalIntentState(r.state)) continue;
|
|
780
780
|
for (const o of JSON.parse(r.intent_vtxos_json)) out.push(o);
|
|
781
781
|
}
|
|
782
782
|
return out;
|
|
@@ -871,7 +871,7 @@ var SQLiteVirtualTxRepository = class {
|
|
|
871
871
|
const prev = prevByTxid.get(t.txid);
|
|
872
872
|
const psbt = t.psbt ?? prev?.psbt ?? null;
|
|
873
873
|
const expires = t.expiresAt ?? prev?.expires_at ?? null;
|
|
874
|
-
const type =
|
|
874
|
+
const type = chunkVJ7M6WKB_cjs.mergeChainedTxType(t.type, prev?.type);
|
|
875
875
|
await this.db.run(
|
|
876
876
|
`INSERT OR REPLACE INTO ${this.tTx} (txid, psbt, expires_at, type) VALUES (?, ?, ?, ?)`,
|
|
877
877
|
[t.txid, psbt, expires, type]
|
|
@@ -964,7 +964,7 @@ function sanitizeTablePrefix(p) {
|
|
|
964
964
|
|
|
965
965
|
Object.defineProperty(exports, "ChainedTxType", {
|
|
966
966
|
enumerable: true,
|
|
967
|
-
get: function () { return
|
|
967
|
+
get: function () { return chunkVJ7M6WKB_cjs.ChainedTxType; }
|
|
968
968
|
});
|
|
969
969
|
exports.SQLiteContractRepository = SQLiteContractRepository;
|
|
970
970
|
exports.SQLiteIntentRepository = SQLiteIntentRepository;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, C as ContractRepository, B as ContractFilter, w as Contract, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch } from '../../index-
|
|
2
|
-
export { M as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, C as ContractRepository, B as ContractFilter, w as Contract, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch } from '../../index-CAS4GyN-.cjs';
|
|
2
|
+
export { M as ChainedTxType } from '../../index-CAS4GyN-.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, C as ContractRepository, B as ContractFilter, w as Contract, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch } from '../../index-
|
|
2
|
-
export { M as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, x as ExtendedVirtualCoin, y as VtxoRepositoryKey, E as ExtendedCoin, A as ArkTransaction, z as WalletState, C as ContractRepository, B as ContractFilter, w as Contract, D as IntentRepository, F as ArkIntent, H as IntentFilter, O as Outpoint, J as VirtualTxRepository, K as VirtualTx, L as VtxoBranch } from '../../index-CAS4GyN-.js';
|
|
2
|
+
export { M as ChainedTxType } from '../../index-CAS4GyN-.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { scriptFromArkAddress, serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, deserializeVtxo, deserializeUtxo, deserializeAssets, intentMatchesFilter, intentPageBounds, isTerminalIntentState, mergeChainedTxType } from '../../chunk-
|
|
2
|
-
export { ChainedTxType } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import { isVtxoSpent } from '../../chunk-
|
|
1
|
+
import { scriptFromArkAddress, serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, deserializeVtxo, deserializeUtxo, deserializeAssets, intentMatchesFilter, intentPageBounds, isTerminalIntentState, mergeChainedTxType } from '../../chunk-LKAASQTL.js';
|
|
2
|
+
export { ChainedTxType } from '../../chunk-LKAASQTL.js';
|
|
3
|
+
import '../../chunk-CTFYT24G.js';
|
|
4
|
+
import '../../chunk-ZOCJ7E6M.js';
|
|
5
|
+
import { isVtxoSpent } from '../../chunk-7KIGEOYT.js';
|
|
6
6
|
import '../../chunk-NSBPE2FW.js';
|
|
7
7
|
|
|
8
8
|
// src/repositories/sqlite/transaction.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository, s as IndexerProvider, r as ArkProvider, v as VirtualCoin, w as Contract, x as ExtendedVirtualCoin } from './index-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, s as IndexerProvider, r as ArkProvider, v as VirtualCoin, w as Contract, x as ExtendedVirtualCoin } from './index-CAS4GyN-.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A task item represents a unit of work in the inbox.
|
|
@@ -111,4 +111,4 @@ interface CreateTaskDependenciesOptions {
|
|
|
111
111
|
*/
|
|
112
112
|
declare function createTaskDependencies(options: CreateTaskDependenciesOptions): TaskDependencies;
|
|
113
113
|
|
|
114
|
-
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type
|
|
114
|
+
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type TaskDependencies as a, type TaskItem as b, type TaskQueue as c, type TaskResult as d, createTaskDependencies as e, runTasks as r };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository, s as IndexerProvider, r as ArkProvider, v as VirtualCoin, w as Contract, x as ExtendedVirtualCoin } from './index-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, s as IndexerProvider, r as ArkProvider, v as VirtualCoin, w as Contract, x as ExtendedVirtualCoin } from './index-CAS4GyN-.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A task item represents a unit of work in the inbox.
|
|
@@ -111,4 +111,4 @@ interface CreateTaskDependenciesOptions {
|
|
|
111
111
|
*/
|
|
112
112
|
declare function createTaskDependencies(options: CreateTaskDependenciesOptions): TaskDependencies;
|
|
113
113
|
|
|
114
|
-
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type
|
|
114
|
+
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type TaskDependencies as a, type TaskItem as b, type TaskQueue as c, type TaskResult as d, createTaskDependencies as e, runTasks as r };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
3
|
+
var chunkDFWLP3MD_cjs = require('../../chunk-DFWLP3MD.cjs');
|
|
4
|
+
var chunkKEEZSFLI_cjs = require('../../chunk-KEEZSFLI.cjs');
|
|
5
|
+
var chunkVJ7M6WKB_cjs = require('../../chunk-VJ7M6WKB.cjs');
|
|
6
|
+
require('../../chunk-IAM5IEVT.cjs');
|
|
7
|
+
require('../../chunk-Y7BVR6SQ.cjs');
|
|
8
|
+
require('../../chunk-PWIESIO6.cjs');
|
|
9
9
|
require('../../chunk-5BLDMQED.cjs');
|
|
10
10
|
var TaskManager = require('expo-task-manager');
|
|
11
11
|
var BackgroundTask = require('expo-background-task');
|
|
@@ -36,7 +36,7 @@ function defineExpoBackgroundTask(taskName, options) {
|
|
|
36
36
|
taskQueue,
|
|
37
37
|
walletRepository,
|
|
38
38
|
contractRepository,
|
|
39
|
-
processors = [
|
|
39
|
+
processors = [chunkKEEZSFLI_cjs.contractPollProcessor]
|
|
40
40
|
} = options;
|
|
41
41
|
TaskManager__namespace.defineTask(taskName, async () => {
|
|
42
42
|
try {
|
|
@@ -44,24 +44,24 @@ function defineExpoBackgroundTask(taskName, options) {
|
|
|
44
44
|
if (!config) {
|
|
45
45
|
return BackgroundTask__namespace.BackgroundTaskResult.Success;
|
|
46
46
|
}
|
|
47
|
-
const indexerProvider = new
|
|
48
|
-
const arkProvider = new
|
|
49
|
-
const deps =
|
|
47
|
+
const indexerProvider = new chunkDFWLP3MD_cjs.ExpoIndexerProvider(config.arkServerUrl);
|
|
48
|
+
const arkProvider = new chunkDFWLP3MD_cjs.ExpoArkProvider(config.arkServerUrl);
|
|
49
|
+
const deps = chunkKEEZSFLI_cjs.createTaskDependencies({
|
|
50
50
|
walletRepository,
|
|
51
51
|
contractRepository,
|
|
52
52
|
indexerProvider,
|
|
53
53
|
arkProvider
|
|
54
54
|
});
|
|
55
|
-
await
|
|
55
|
+
await chunkKEEZSFLI_cjs.runTasks(taskQueue, processors, deps);
|
|
56
56
|
const results = await taskQueue.getResults();
|
|
57
57
|
if (results.length > 0) {
|
|
58
58
|
await taskQueue.acknowledgeResults(results.map((r) => r.id));
|
|
59
59
|
}
|
|
60
|
-
const existing = await taskQueue.getTasks(
|
|
60
|
+
const existing = await taskQueue.getTasks(chunkKEEZSFLI_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
61
61
|
if (existing.length === 0) {
|
|
62
62
|
const task = {
|
|
63
|
-
id:
|
|
64
|
-
type:
|
|
63
|
+
id: chunkVJ7M6WKB_cjs.getRandomId(),
|
|
64
|
+
type: chunkKEEZSFLI_cjs.CONTRACT_POLL_TASK_TYPE,
|
|
65
65
|
data: {},
|
|
66
66
|
createdAt: Date.now()
|
|
67
67
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository } from '../../index-
|
|
2
|
-
import {
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../index-CAS4GyN-.cjs';
|
|
2
|
+
import { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-DiXxP-nQ.cjs';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-HS2d2oda.cjs';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/transaction.js';
|
|
6
6
|
import '@scure/btc-signer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository } from '../../index-
|
|
2
|
-
import {
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../index-CAS4GyN-.js';
|
|
2
|
+
import { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-YW2t31_o.js';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-BJj7xe35.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/transaction.js';
|
|
6
6
|
import '@scure/btc-signer';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { getRandomId } from '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
1
|
+
import { ExpoIndexerProvider, ExpoArkProvider } from '../../chunk-OUHUC26M.js';
|
|
2
|
+
import { contractPollProcessor, createTaskDependencies, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-P766MOPU.js';
|
|
3
|
+
import { getRandomId } from '../../chunk-LKAASQTL.js';
|
|
4
|
+
import '../../chunk-CTFYT24G.js';
|
|
5
|
+
import '../../chunk-ZOCJ7E6M.js';
|
|
6
|
+
import '../../chunk-7KIGEOYT.js';
|
|
7
7
|
import '../../chunk-NSBPE2FW.js';
|
|
8
8
|
import * as TaskManager from 'expo-task-manager';
|
|
9
9
|
import * as BackgroundTask from 'expo-background-task';
|