@arkade-os/sdk 0.5.0-rc.2 → 0.5.0-rc.3
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/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{asyncStorageTaskQueue-C5rBYlru.d.ts → asyncStorageTaskQueue-DAs_n1xr.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-BuDvgWh6.d.cts → asyncStorageTaskQueue-DqGRG66E.d.cts} +2 -2
- package/dist/{chunk-HLCGYOIH.cjs → chunk-43XGA362.cjs} +17 -17
- package/dist/{chunk-HLCGYOIH.cjs.map → chunk-43XGA362.cjs.map} +1 -1
- package/dist/{chunk-3R476TDV.js → chunk-7W6FHWYN.js} +3 -3
- package/dist/{chunk-3R476TDV.js.map → chunk-7W6FHWYN.js.map} +1 -1
- package/dist/{chunk-D25O4EGY.cjs → chunk-BCT7DT2J.cjs} +10 -10
- package/dist/{chunk-D25O4EGY.cjs.map → chunk-BCT7DT2J.cjs.map} +1 -1
- package/dist/{chunk-4PKLULWT.js → chunk-ERUAQGYF.js} +3 -3
- package/dist/{chunk-4PKLULWT.js.map → chunk-ERUAQGYF.js.map} +1 -1
- package/dist/{chunk-GMZZQXV5.cjs → chunk-FSF2PGTR.cjs} +439 -439
- package/dist/{chunk-GMZZQXV5.cjs.map → chunk-FSF2PGTR.cjs.map} +1 -1
- package/dist/{chunk-ZOTXDOS5.js → chunk-G4UPMCKW.js} +4 -4
- package/dist/{chunk-ZOTXDOS5.js.map → chunk-G4UPMCKW.js.map} +1 -1
- package/dist/{chunk-ISO4TI5J.js → chunk-HSG2GQTM.js} +4 -4
- package/dist/{chunk-ISO4TI5J.js.map → chunk-HSG2GQTM.js.map} +1 -1
- package/dist/{chunk-NVZJSKZS.cjs → chunk-L4HZK4KK.cjs} +17 -17
- package/dist/{chunk-NVZJSKZS.cjs.map → chunk-L4HZK4KK.cjs.map} +1 -1
- package/dist/{chunk-6DNR46C7.js → chunk-ROD5H7RX.js} +4 -4
- package/dist/{chunk-6DNR46C7.js.map → chunk-ROD5H7RX.js.map} +1 -1
- package/dist/{chunk-43FKNLX4.cjs → chunk-UCSTNXB4.cjs} +49 -49
- package/dist/{chunk-43FKNLX4.cjs.map → chunk-UCSTNXB4.cjs.map} +1 -1
- package/dist/{chunk-JZWLXNHV.cjs → chunk-UJTYUYY4.cjs} +3 -3
- package/dist/{chunk-JZWLXNHV.cjs.map → chunk-UJTYUYY4.cjs.map} +1 -1
- package/dist/{chunk-ZRNQV6HV.js → chunk-VQCDDGRW.js} +5 -5
- package/dist/{chunk-ZRNQV6HV.js.map → chunk-VQCDDGRW.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-BAX5QftB.d.ts → delegate-B9Bmrns7.d.ts} +1 -1
- package/dist/{delegate-1yp1HyP7.d.cts → delegate-CZzIduW4.d.cts} +1 -1
- package/dist/{hdWalletCapable-eJgaT-ec.d.cts → hdWalletCapable-BIl3yLVM.d.cts} +3 -3
- package/dist/{hdWalletCapable-CmEU0NP1.d.ts → hdWalletCapable-Cr5nGpK5.d.ts} +3 -3
- package/dist/{index-W_oMcOmG.d.cts → index-Ci5MmNnK.d.cts} +3 -3
- package/dist/{index-Bem5vKzX.d.ts → index-DQ1Hb2w_.d.ts} +3 -3
- package/dist/{index-DUxufw76.d.cts → index-DnNIOqHS.d.cts} +1 -1
- package/dist/{index-DUxufw76.d.ts → index-DnNIOqHS.d.ts} +1 -1
- package/dist/index.cjs +300 -300
- 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 +19 -19
- 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 +18 -18
- 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-Dr3NStc0.d.cts → taskRunner-BDb5Ee2J.d.cts} +2 -2
- package/dist/{taskRunner-D_iPiZIi.d.ts → taskRunner-F7wNJcF3.d.ts} +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/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a8 as ReadonlyIdentity, a as Identity, au as DescriptorSigningRequest, av as Transaction, aq as SignerSession, a6 as DescriptorProvider, aw as IntentFeeConfig, ax as OffchainInput, ay as FeeAmount, az as OnchainInput, aA as FeeOutput, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch, W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, z as Contract, C as ContractRepository, H as ContractFilter, I as IWallet, u as ArkProvider, ao as SettlementConfig, aB as ContractWatcherConfig, aC as Asset, R as Recipient, aD as FeeInfo, o as SettlementEvent, n as SettleParams, S as SendBitcoinParams, G as GetArkadeInfoOptions, aE as GetVtxosOptions, aF as PaginationOptions, f as GetVtxosFilter, aG as CreateContractParams, aH as GetContractsFilter, y as VirtualCoin, aI as GetSpendablePathsOptions, aJ as GetAllSpendingPathsOptions, k as GetNewAddressesOptions, aK as IssuanceParams, aL as ReissuanceParams, aM as BurnParams, aN as RenewVtxosOptions, A as ArkadeInfo, aO as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, af as ContractSyncState, aj as ContractWithVtxos, aP as PathSelection, l as NewAddress, aQ as ContractEvent, aR as AssetDetails, aS as IssuanceResult, aT as DelegateInfo, aU as MigrationGlobalSkipReason, aV as MigrationLegSkipReason, aW as SignerStatus, a7 as IReadonlyWallet, h as ActivityRegistry, ae as IReadonlyAssetManager, aX as StorageConfig, i as Activity, N as NormalizedExtendedVirtualCoin, j as IContractManager, q as IAssetManager, p as SendParams, m as IDelegateManager, aY as IVtxoManager, a9 as OnchainProvider, X as Network, ah as NetworkName, al as Coin, aZ as ExplorerTransaction, a_ as ArkInfo, ar as SignedIntent, as as Intent, a$ as TreeNonces, b0 as TreePartialSigs, T as TxNotificationEvent, b1 as PendingTx, x as TapLeafScript, b2 as EncodedVtxoScript, Y as CSVMultisigTapscript, w as RelativeTimelock, V as VtxoScript, b3 as Status, ai as ArkAddress, b4 as ChainTx, v as IndexerProvider, $ as TxTree, b5 as PathContext } from './index-
|
|
2
|
-
export {
|
|
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 {
|
|
5
|
-
import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-
|
|
6
|
-
export {
|
|
7
|
-
import { D as DefaultVtxo } from './delegate-
|
|
8
|
-
export { a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { a8 as ReadonlyIdentity, a as Identity, au as DescriptorSigningRequest, av as Transaction, aq as SignerSession, a6 as DescriptorProvider, aw as IntentFeeConfig, ax as OffchainInput, ay as FeeAmount, az as OnchainInput, aA as FeeOutput, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch, W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, z as Contract, C as ContractRepository, H as ContractFilter, I as IWallet, u as ArkProvider, ao as SettlementConfig, aB as ContractWatcherConfig, aC as Asset, R as Recipient, aD as FeeInfo, o as SettlementEvent, n as SettleParams, S as SendBitcoinParams, G as GetArkadeInfoOptions, aE as GetVtxosOptions, aF as PaginationOptions, f as GetVtxosFilter, aG as CreateContractParams, aH as GetContractsFilter, y as VirtualCoin, aI as GetSpendablePathsOptions, aJ as GetAllSpendingPathsOptions, k as GetNewAddressesOptions, aK as IssuanceParams, aL as ReissuanceParams, aM as BurnParams, aN as RenewVtxosOptions, A as ArkadeInfo, aO as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, af as ContractSyncState, aj as ContractWithVtxos, aP as PathSelection, l as NewAddress, aQ as ContractEvent, aR as AssetDetails, aS as IssuanceResult, aT as DelegateInfo, aU as MigrationGlobalSkipReason, aV as MigrationLegSkipReason, aW as SignerStatus, a7 as IReadonlyWallet, h as ActivityRegistry, ae as IReadonlyAssetManager, aX as StorageConfig, i as Activity, N as NormalizedExtendedVirtualCoin, j as IContractManager, q as IAssetManager, p as SendParams, m as IDelegateManager, aY as IVtxoManager, a9 as OnchainProvider, X as Network, ah as NetworkName, al as Coin, aZ as ExplorerTransaction, a_ as ArkInfo, ar as SignedIntent, as as Intent, a$ as TreeNonces, b0 as TreePartialSigs, T as TxNotificationEvent, b1 as PendingTx, x as TapLeafScript, b2 as EncodedVtxoScript, Y as CSVMultisigTapscript, w as RelativeTimelock, V as VtxoScript, b3 as Status, ai as ArkAddress, b4 as ChainTx, v as IndexerProvider, $ as TxTree, b5 as PathContext } from './index-DnNIOqHS.cjs';
|
|
2
|
+
export { d2 as ActivityIntent, d4 as ActivityResolver, cX as ArkIntentState, ct as ArkTapscript, cB as AssetMetadata, bK as BITCOIN_EMULATOR_PUBKEY, c4 as BaseWalletConfig, a3 as BatchFailedEvent, a1 as BatchFinalizationEvent, a2 as BatchFinalizedEvent, ch as BatchInfo, c2 as BatchSignableIdentity, Z as BatchStartedEvent, bu as CLTVMultisigTapscript, cQ as CandidateDeps, bo as ChainTxType, U as ChainedTxType, ci as CommitmentTx, bs as ConditionCSVMultisigTapscript, bt as ConditionMultisigTapscript, cK as ContractBalance, cJ as ContractEventCallback, cL as ContractHandler, am as ContractManager, an as ContractManagerConfig, cI as ContractState, cH as ContractVtxo, b$ as ContractWatcher, bk as DEFAULT_VTXO_PAGE_SIZE, bd as DelegateManagerImpl, cW as DelegateOptions, aa as DelegateProvider, be as DelegatorManagerImpl, cV as DelegatorProvider, cv as DeprecatedSignerMigrationReport, cw as DeprecatedSignerReport, bj as DigestMismatchError, cN as Discoverable, cP as DiscoveredContract, cO as DiscoveryDeps, bh as ESPLORA_URL, bi as EsploraProvider, db as EventSourceCapable, dc as EventSourceFactory, dd as EventSourceLike, d6 as EventSourceUnavailableError, ac as ExitCaptureMode, cG as ExitChainResolver, ad as ExitDataSource, cM as ExtendedContractVtxo, d3 as GroupMembership, cT as HandlerError, cU as IDelegatorManager, bO as INTENT_TERMINAL_STATES, bn as IndexerTxType, ce as IntentCoin, cC as KnownMetadata, bL as MUTINYNET_EMULATOR_PUBKEY, cu as MigrateDeprecatedSignerOptions, cy as MigrationLegReport, cx as MigrationVtxoRef, br as MultisigTapscript, c5 as NewAddressType, cD as Nonces, cn as Output, cg as PageResponse, cE as PartialSig, cb as PrevTxSource, bA as PrevTxUnavailableError, c7 as ProviderClass, bM as REGTEST_EMULATOR_PUBKEY, cc as RawTxSource, ab as ReadonlyWalletConfig, ag as RecipientArkadeAddressContext, r as RestArkProvider, bf as RestDelegateProvider, bg as RestDelegatorProvider, s as RestIndexerProvider, cS as ScanContractsOptions, cR as ScanResult, cq as ScheduledSession, bp as SettlementEventType, c3 as SignRequest, cz as SignerClassification, cA as SignerSet, cs as SubscriptionEvent, cr as SubscriptionHeartbeat, t as SubscriptionResponse, cp as SweepTxNotification, cf as TapLeaves, bv as TapTreeCoder, ca as TapscriptType, at as TimeHeight, a0 as TreeNoncesEvent, a5 as TreeSignatureEvent, _ as TreeSigningStartedEvent, a4 as TreeTxEvent, cm as Tx, cj as TxHistoryRecord, c9 as TxKey, co as TxNotification, d5 as TxTag, cF as TxTreeNode, bm as TxType, c8 as VirtualStatus, ck as Vtxo, cl as VtxoChain, ap as VtxoManager, de as VtxoType, b as WalletConfig, c6 as WalletMode, cd as WithPrevTx, bB as assertAllowedSighashTypes, bD as assertRecipientArkadeAddress, d0 as assetMintResolver, bx as attachPrevArkTxs, by as attachPrevoutTxs, cY as boardingResolver, bV as canRecoverOnchain, bW as canSpendOffchain, bX as canSweepOnchain, b9 as classifyAgainstSignerSet, b8 as classifyContractSigner, c$ as collabExitResolver, d7 as configureEventSource, d1 as createDefaultActivityRegistry, bP as createExitChainResolver, bq as decodeTapscript, bI as defaultEmulatorPubkey, cZ as getAllNormalizedVtxos, d8 as getConfiguredEventSource, bF as getNetwork, c_ as getNormalizedVtxos, bE as getRandomId, bU as getSequence, c1 as hasCandidates, bY as hasTerminalSpend, b6 as isBatchSignable, bb as isCooperativelyMigratable, c0 as isDiscoverable, d9 as isEventSourceUnavailableError, bT as isExpired, bZ as isPastExpiry, bQ as isRecoverable, b7 as isSigningIdentity, bR as isSpendable, bS as isSubdust, bN as isTerminalIntentState, b_ as isVirtualCoin, bC as isVtxoExpiringSoon, bG as networkFromArkadeInfo, bH as networks, bJ as resolveEmulatorPubkey, da as resolveEventSource, bw as resolvePrevTxs, bl as scriptFromTapLeafScript, ba as signerSetFromInfo, bc as toXOnlySignerHex, bz as withPrevTxs } from './index-DnNIOqHS.cjs';
|
|
3
|
+
import { W as Wallet, R as ReadonlyWallet, b as ReceiveRotatorFactory, c as ReceiveRotatorBootOpts, d as ReceiveRotatorBoot, P as ProviderConnectionState, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, B as BatchExpiryPolicy, e as Batch } from './hdWalletCapable-BIl3yLVM.cjs';
|
|
4
|
+
export { k as AbortError, o as ArkError, p as ArkErrorName, T as ArkadeCashClaimResult, n as ArkadeCashCreateError, U as ArkadeCashUnclaimedReason, V as ArkadeCashUnclaimedVtxo, Q as BoardingUtxoGroup, N as CheckpointExitDelayPolicy, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, I as DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, F as ForeignDescriptorError, O as IncomingFunds, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, K as MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, X as ProviderKind, u as ProviderUnavailableError, z as REGTEST_MIN_BATCH_EXPIRY_SECONDS, J as REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, L as SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, Y as ServerInfoSource, S as ServerResponseMismatchError, l as WaitForIncomingFundsOptions, h as WalletCannotAllocateAddressError, v as assertValidBatchExpiry, C as assertValidServerUnrollScript, x as defaultBatchExpiryPolicy, E as defaultCheckpointExitDelayPolicy, g as isAddressAllocationCapable, q as isArkError, f as isHDAllocationCapable, i as isHDWalletCapable, t as maybeArkError, y as resolveBatchExpiryPolicy, G as resolveCheckpointExitDelayPolicy, r as resolveDescriptorSigner, m as selectVirtualCoins, s as signingDescriptorIndex, j as strictSigningDescriptorIndex, w as waitForIncomingFunds } from './hdWalletCapable-BIl3yLVM.cjs';
|
|
5
|
+
import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-Ci5MmNnK.cjs';
|
|
6
|
+
export { u as ArkadeContractHandler, B as BoardingContractHandler, F as BoardingContractParams, D as DefaultContractHandler, x as DefaultContractParams, o as DelegateContractHandler, y as DelegateContractParams, V as VHTLC, q as VHTLCContractHandler, z as VHTLCContractParams, t as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, n as contractHandlers } from './index-Ci5MmNnK.cjs';
|
|
7
|
+
import { D as DefaultVtxo } from './delegate-CZzIduW4.cjs';
|
|
8
|
+
export { a as DelegateVtxo } from './delegate-CZzIduW4.cjs';
|
|
9
9
|
import { Bytes, BTC_NETWORK } from '@scure/btc-signer/utils.js';
|
|
10
10
|
import { P2TR } from '@scure/btc-signer/payment.js';
|
|
11
11
|
import { Transaction as Transaction$1, OP, Script, ScriptType } from '@scure/btc-signer';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a8 as ReadonlyIdentity, a as Identity, au as DescriptorSigningRequest, av as Transaction, aq as SignerSession, a6 as DescriptorProvider, aw as IntentFeeConfig, ax as OffchainInput, ay as FeeAmount, az as OnchainInput, aA as FeeOutput, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch, W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, z as Contract, C as ContractRepository, H as ContractFilter, I as IWallet, u as ArkProvider, ao as SettlementConfig, aB as ContractWatcherConfig, aC as Asset, R as Recipient, aD as FeeInfo, o as SettlementEvent, n as SettleParams, S as SendBitcoinParams, G as GetArkadeInfoOptions, aE as GetVtxosOptions, aF as PaginationOptions, f as GetVtxosFilter, aG as CreateContractParams, aH as GetContractsFilter, y as VirtualCoin, aI as GetSpendablePathsOptions, aJ as GetAllSpendingPathsOptions, k as GetNewAddressesOptions, aK as IssuanceParams, aL as ReissuanceParams, aM as BurnParams, aN as RenewVtxosOptions, A as ArkadeInfo, aO as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, af as ContractSyncState, aj as ContractWithVtxos, aP as PathSelection, l as NewAddress, aQ as ContractEvent, aR as AssetDetails, aS as IssuanceResult, aT as DelegateInfo, aU as MigrationGlobalSkipReason, aV as MigrationLegSkipReason, aW as SignerStatus, a7 as IReadonlyWallet, h as ActivityRegistry, ae as IReadonlyAssetManager, aX as StorageConfig, i as Activity, N as NormalizedExtendedVirtualCoin, j as IContractManager, q as IAssetManager, p as SendParams, m as IDelegateManager, aY as IVtxoManager, a9 as OnchainProvider, X as Network, ah as NetworkName, al as Coin, aZ as ExplorerTransaction, a_ as ArkInfo, ar as SignedIntent, as as Intent, a$ as TreeNonces, b0 as TreePartialSigs, T as TxNotificationEvent, b1 as PendingTx, x as TapLeafScript, b2 as EncodedVtxoScript, Y as CSVMultisigTapscript, w as RelativeTimelock, V as VtxoScript, b3 as Status, ai as ArkAddress, b4 as ChainTx, v as IndexerProvider, $ as TxTree, b5 as PathContext } from './index-
|
|
2
|
-
export {
|
|
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 {
|
|
5
|
-
import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-
|
|
6
|
-
export {
|
|
7
|
-
import { D as DefaultVtxo } from './delegate-
|
|
8
|
-
export { a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { a8 as ReadonlyIdentity, a as Identity, au as DescriptorSigningRequest, av as Transaction, aq as SignerSession, a6 as DescriptorProvider, aw as IntentFeeConfig, ax as OffchainInput, ay as FeeAmount, az as OnchainInput, aA as FeeOutput, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch, W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, z as Contract, C as ContractRepository, H as ContractFilter, I as IWallet, u as ArkProvider, ao as SettlementConfig, aB as ContractWatcherConfig, aC as Asset, R as Recipient, aD as FeeInfo, o as SettlementEvent, n as SettleParams, S as SendBitcoinParams, G as GetArkadeInfoOptions, aE as GetVtxosOptions, aF as PaginationOptions, f as GetVtxosFilter, aG as CreateContractParams, aH as GetContractsFilter, y as VirtualCoin, aI as GetSpendablePathsOptions, aJ as GetAllSpendingPathsOptions, k as GetNewAddressesOptions, aK as IssuanceParams, aL as ReissuanceParams, aM as BurnParams, aN as RenewVtxosOptions, A as ArkadeInfo, aO as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, af as ContractSyncState, aj as ContractWithVtxos, aP as PathSelection, l as NewAddress, aQ as ContractEvent, aR as AssetDetails, aS as IssuanceResult, aT as DelegateInfo, aU as MigrationGlobalSkipReason, aV as MigrationLegSkipReason, aW as SignerStatus, a7 as IReadonlyWallet, h as ActivityRegistry, ae as IReadonlyAssetManager, aX as StorageConfig, i as Activity, N as NormalizedExtendedVirtualCoin, j as IContractManager, q as IAssetManager, p as SendParams, m as IDelegateManager, aY as IVtxoManager, a9 as OnchainProvider, X as Network, ah as NetworkName, al as Coin, aZ as ExplorerTransaction, a_ as ArkInfo, ar as SignedIntent, as as Intent, a$ as TreeNonces, b0 as TreePartialSigs, T as TxNotificationEvent, b1 as PendingTx, x as TapLeafScript, b2 as EncodedVtxoScript, Y as CSVMultisigTapscript, w as RelativeTimelock, V as VtxoScript, b3 as Status, ai as ArkAddress, b4 as ChainTx, v as IndexerProvider, $ as TxTree, b5 as PathContext } from './index-DnNIOqHS.js';
|
|
2
|
+
export { d2 as ActivityIntent, d4 as ActivityResolver, cX as ArkIntentState, ct as ArkTapscript, cB as AssetMetadata, bK as BITCOIN_EMULATOR_PUBKEY, c4 as BaseWalletConfig, a3 as BatchFailedEvent, a1 as BatchFinalizationEvent, a2 as BatchFinalizedEvent, ch as BatchInfo, c2 as BatchSignableIdentity, Z as BatchStartedEvent, bu as CLTVMultisigTapscript, cQ as CandidateDeps, bo as ChainTxType, U as ChainedTxType, ci as CommitmentTx, bs as ConditionCSVMultisigTapscript, bt as ConditionMultisigTapscript, cK as ContractBalance, cJ as ContractEventCallback, cL as ContractHandler, am as ContractManager, an as ContractManagerConfig, cI as ContractState, cH as ContractVtxo, b$ as ContractWatcher, bk as DEFAULT_VTXO_PAGE_SIZE, bd as DelegateManagerImpl, cW as DelegateOptions, aa as DelegateProvider, be as DelegatorManagerImpl, cV as DelegatorProvider, cv as DeprecatedSignerMigrationReport, cw as DeprecatedSignerReport, bj as DigestMismatchError, cN as Discoverable, cP as DiscoveredContract, cO as DiscoveryDeps, bh as ESPLORA_URL, bi as EsploraProvider, db as EventSourceCapable, dc as EventSourceFactory, dd as EventSourceLike, d6 as EventSourceUnavailableError, ac as ExitCaptureMode, cG as ExitChainResolver, ad as ExitDataSource, cM as ExtendedContractVtxo, d3 as GroupMembership, cT as HandlerError, cU as IDelegatorManager, bO as INTENT_TERMINAL_STATES, bn as IndexerTxType, ce as IntentCoin, cC as KnownMetadata, bL as MUTINYNET_EMULATOR_PUBKEY, cu as MigrateDeprecatedSignerOptions, cy as MigrationLegReport, cx as MigrationVtxoRef, br as MultisigTapscript, c5 as NewAddressType, cD as Nonces, cn as Output, cg as PageResponse, cE as PartialSig, cb as PrevTxSource, bA as PrevTxUnavailableError, c7 as ProviderClass, bM as REGTEST_EMULATOR_PUBKEY, cc as RawTxSource, ab as ReadonlyWalletConfig, ag as RecipientArkadeAddressContext, r as RestArkProvider, bf as RestDelegateProvider, bg as RestDelegatorProvider, s as RestIndexerProvider, cS as ScanContractsOptions, cR as ScanResult, cq as ScheduledSession, bp as SettlementEventType, c3 as SignRequest, cz as SignerClassification, cA as SignerSet, cs as SubscriptionEvent, cr as SubscriptionHeartbeat, t as SubscriptionResponse, cp as SweepTxNotification, cf as TapLeaves, bv as TapTreeCoder, ca as TapscriptType, at as TimeHeight, a0 as TreeNoncesEvent, a5 as TreeSignatureEvent, _ as TreeSigningStartedEvent, a4 as TreeTxEvent, cm as Tx, cj as TxHistoryRecord, c9 as TxKey, co as TxNotification, d5 as TxTag, cF as TxTreeNode, bm as TxType, c8 as VirtualStatus, ck as Vtxo, cl as VtxoChain, ap as VtxoManager, de as VtxoType, b as WalletConfig, c6 as WalletMode, cd as WithPrevTx, bB as assertAllowedSighashTypes, bD as assertRecipientArkadeAddress, d0 as assetMintResolver, bx as attachPrevArkTxs, by as attachPrevoutTxs, cY as boardingResolver, bV as canRecoverOnchain, bW as canSpendOffchain, bX as canSweepOnchain, b9 as classifyAgainstSignerSet, b8 as classifyContractSigner, c$ as collabExitResolver, d7 as configureEventSource, d1 as createDefaultActivityRegistry, bP as createExitChainResolver, bq as decodeTapscript, bI as defaultEmulatorPubkey, cZ as getAllNormalizedVtxos, d8 as getConfiguredEventSource, bF as getNetwork, c_ as getNormalizedVtxos, bE as getRandomId, bU as getSequence, c1 as hasCandidates, bY as hasTerminalSpend, b6 as isBatchSignable, bb as isCooperativelyMigratable, c0 as isDiscoverable, d9 as isEventSourceUnavailableError, bT as isExpired, bZ as isPastExpiry, bQ as isRecoverable, b7 as isSigningIdentity, bR as isSpendable, bS as isSubdust, bN as isTerminalIntentState, b_ as isVirtualCoin, bC as isVtxoExpiringSoon, bG as networkFromArkadeInfo, bH as networks, bJ as resolveEmulatorPubkey, da as resolveEventSource, bw as resolvePrevTxs, bl as scriptFromTapLeafScript, ba as signerSetFromInfo, bc as toXOnlySignerHex, bz as withPrevTxs } from './index-DnNIOqHS.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-Cr5nGpK5.js';
|
|
4
|
+
export { k as AbortError, o as ArkError, p as ArkErrorName, T as ArkadeCashClaimResult, n as ArkadeCashCreateError, U as ArkadeCashUnclaimedReason, V as ArkadeCashUnclaimedVtxo, Q as BoardingUtxoGroup, N as CheckpointExitDelayPolicy, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, I as DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, F as ForeignDescriptorError, O as IncomingFunds, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, K as MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, X as ProviderKind, u as ProviderUnavailableError, z as REGTEST_MIN_BATCH_EXPIRY_SECONDS, J as REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, L as SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, Y as ServerInfoSource, S as ServerResponseMismatchError, l as WaitForIncomingFundsOptions, h as WalletCannotAllocateAddressError, v as assertValidBatchExpiry, C as assertValidServerUnrollScript, x as defaultBatchExpiryPolicy, E as defaultCheckpointExitDelayPolicy, g as isAddressAllocationCapable, q as isArkError, f as isHDAllocationCapable, i as isHDWalletCapable, t as maybeArkError, y as resolveBatchExpiryPolicy, G as resolveCheckpointExitDelayPolicy, r as resolveDescriptorSigner, m as selectVirtualCoins, s as signingDescriptorIndex, j as strictSigningDescriptorIndex, w as waitForIncomingFunds } from './hdWalletCapable-Cr5nGpK5.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, 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-DQ1Hb2w_.js';
|
|
6
|
+
export { u as ArkadeContractHandler, B as BoardingContractHandler, F as BoardingContractParams, D as DefaultContractHandler, x as DefaultContractParams, o as DelegateContractHandler, y as DelegateContractParams, V as VHTLC, q as VHTLCContractHandler, z as VHTLCContractParams, t as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, n as contractHandlers } from './index-DQ1Hb2w_.js';
|
|
7
|
+
import { D as DefaultVtxo } from './delegate-B9Bmrns7.js';
|
|
8
|
+
export { a as DelegateVtxo } from './delegate-B9Bmrns7.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, 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, assertRecipientArkadeAddress, 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, 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, requiresMigration, resolveAssetAmount, resolveBatchExpiryPolicy, resolveCheckpointExitDelayPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, rollbackMigration, selectCoinsWithAsset, selectVirtualCoins, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, toXOnlySignerHex, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, 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, REGTEST_EMULATOR_PUBKEY, RestArkProvider, ServerResponseMismatchError, SettlementEventType, TapTreeCoder, Transaction, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, assembleBtcdTaprootTree, assertAllowedSighashTypes, buildVersion, canRecoverOnchain, canSpendOffchain, canSweepOnchain, configureEventSource, decodeTapscript, defaultEmulatorPubkey, getAllNormalizedVtxos, getArkPsbtFields, getConfiguredEventSource, getNetwork, getNormalizedVtxos, getSequence, hasTerminalSpend, isArkError, isEventSourceUnavailableError, isExpired, isPastExpiry, isRecoverable, isRetryableProviderError, isSpendable, isVirtualCoin, maybeArkError, networkFromArkadeInfo, 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, 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, assertRecipientArkadeAddress, 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, 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, requiresMigration, resolveAssetAmount, resolveBatchExpiryPolicy, resolveCheckpointExitDelayPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, rollbackMigration, selectCoinsWithAsset, selectVirtualCoins, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, toXOnlySignerHex, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, withPrevTxs } from './chunk-VQCDDGRW.js';
|
|
2
|
+
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, RestIndexerProvider, asset_exports as asset } from './chunk-ERUAQGYF.js';
|
|
3
|
+
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor, toXOnly } from './chunk-7W6FHWYN.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, REGTEST_EMULATOR_PUBKEY, RestArkProvider, ServerResponseMismatchError, SettlementEventType, TapTreeCoder, Transaction, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, assembleBtcdTaprootTree, assertAllowedSighashTypes, buildVersion, canRecoverOnchain, canSpendOffchain, canSweepOnchain, configureEventSource, decodeTapscript, defaultEmulatorPubkey, getAllNormalizedVtxos, getArkPsbtFields, getConfiguredEventSource, getNetwork, getNormalizedVtxos, getSequence, hasTerminalSpend, isArkError, isEventSourceUnavailableError, isExpired, isPastExpiry, isRecoverable, isRetryableProviderError, isSpendable, isVirtualCoin, maybeArkError, networkFromArkadeInfo, networks, resolveEmulatorPubkey, resolveEventSource, scriptFromTapLeafScript, sdkVersion, sequenceToTimelock, setArkPsbtField, timelockToSequence } from './chunk-HSG2GQTM.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
|
-
require('../../chunk-
|
|
3
|
+
var chunkFSF2PGTR_cjs = require('../../chunk-FSF2PGTR.cjs');
|
|
4
|
+
require('../../chunk-L4HZK4KK.cjs');
|
|
5
|
+
require('../../chunk-UCSTNXB4.cjs');
|
|
6
|
+
require('../../chunk-UJTYUYY4.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 = chunkFSF2PGTR_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 (!
|
|
89
|
+
if (!chunkFSF2PGTR_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 =
|
|
114
|
+
const s = chunkFSF2PGTR_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(
|
|
167
|
+
assetsJson: tx.assets ? JSON.stringify(chunkFSF2PGTR_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 ??
|
|
237
|
+
script: obj.script ?? chunkFSF2PGTR_cjs.scriptFromArkAddress(obj.address)
|
|
238
238
|
};
|
|
239
|
-
return
|
|
239
|
+
return chunkFSF2PGTR_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
|
|
258
|
+
return chunkFSF2PGTR_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 =
|
|
273
|
+
tx.assets = chunkFSF2PGTR_cjs.deserializeAssets(JSON.parse(obj.assetsJson));
|
|
274
274
|
}
|
|
275
275
|
return tx;
|
|
276
276
|
}
|
|
@@ -450,7 +450,7 @@ var RealmIntentRepository = class {
|
|
|
450
450
|
const clashes = [
|
|
451
451
|
...this.realm.objects("ArkIntent").filtered("intentId == $0", intent.intentId)
|
|
452
452
|
].map(toIntent);
|
|
453
|
-
|
|
453
|
+
chunkFSF2PGTR_cjs.assertIntentIdUnique(intent, clashes);
|
|
454
454
|
}
|
|
455
455
|
this.realm.create(
|
|
456
456
|
"ArkIntent",
|
|
@@ -479,14 +479,14 @@ var RealmIntentRepository = class {
|
|
|
479
479
|
}
|
|
480
480
|
async getIntents(filter) {
|
|
481
481
|
const all = [...this.realm.objects("ArkIntent")].map(toIntent).sort((a, b) => a.createdAt - b.createdAt || a.intentTxId.localeCompare(b.intentTxId));
|
|
482
|
-
const out = filter ? all.filter((i) =>
|
|
483
|
-
const { skip, end } =
|
|
482
|
+
const out = filter ? all.filter((i) => chunkFSF2PGTR_cjs.intentMatchesFilter(i, filter)) : all;
|
|
483
|
+
const { skip, end } = chunkFSF2PGTR_cjs.intentPageBounds(filter, out.length);
|
|
484
484
|
return out.slice(skip, end);
|
|
485
485
|
}
|
|
486
486
|
async getLockedVtxoOutpoints() {
|
|
487
487
|
const out = [];
|
|
488
488
|
for (const o of [...this.realm.objects("ArkIntent")].map(toIntent))
|
|
489
|
-
if (!
|
|
489
|
+
if (!chunkFSF2PGTR_cjs.isTerminalIntentState(o.state)) out.push(...o.intentVtxos);
|
|
490
490
|
return out;
|
|
491
491
|
}
|
|
492
492
|
async [Symbol.asyncDispose]() {
|
|
@@ -528,7 +528,7 @@ var RealmVirtualTxRepository = class {
|
|
|
528
528
|
txid: t.txid,
|
|
529
529
|
psbt: t.psbt ?? prev?.psbt ?? null,
|
|
530
530
|
expiresAt: t.expiresAt ?? prev?.expiresAt ?? null,
|
|
531
|
-
type:
|
|
531
|
+
type: chunkFSF2PGTR_cjs.mergeChainedTxType(t.type, prev?.type)
|
|
532
532
|
},
|
|
533
533
|
"modified"
|
|
534
534
|
);
|
|
@@ -762,7 +762,7 @@ function runArkRealmMigrations(oldRealm, newRealm) {
|
|
|
762
762
|
for (let i = 0; i < newVtxos.length; i++) {
|
|
763
763
|
const newVtxo = newVtxos[i];
|
|
764
764
|
if (!newVtxo.script) {
|
|
765
|
-
newVtxo.script =
|
|
765
|
+
newVtxo.script = chunkFSF2PGTR_cjs.scriptFromArkAddress(newVtxo.address);
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
const oldHasVirtualTx = Array.isArray(oldRealm?.schema) && oldRealm.schema.some((s) => s.name === "ArkVirtualTx");
|
|
@@ -779,7 +779,7 @@ function runArkRealmMigrations(oldRealm, newRealm) {
|
|
|
779
779
|
|
|
780
780
|
Object.defineProperty(exports, "ChainedTxType", {
|
|
781
781
|
enumerable: true,
|
|
782
|
-
get: function () { return
|
|
782
|
+
get: function () { return chunkFSF2PGTR_cjs.ChainedTxType; }
|
|
783
783
|
});
|
|
784
784
|
exports.ARK_REALM_SCHEMA_VERSION = ARK_REALM_SCHEMA_VERSION;
|
|
785
785
|
exports.ArkExperimentalRealmSchemas = ArkExperimentalRealmSchemas;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, C as ContractRepository, H as ContractFilter, z as Contract, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch } from '../../index-
|
|
2
|
-
export { U as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, C as ContractRepository, H as ContractFilter, z as Contract, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch } from '../../index-DnNIOqHS.cjs';
|
|
2
|
+
export { U as ChainedTxType } from '../../index-DnNIOqHS.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, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, C as ContractRepository, H as ContractFilter, z as Contract, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch } from '../../index-
|
|
2
|
-
export { U as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, C as ContractRepository, H as ContractFilter, z as Contract, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch } from '../../index-DnNIOqHS.js';
|
|
2
|
+
export { U as ChainedTxType } from '../../index-DnNIOqHS.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 '../../chunk-
|
|
1
|
+
import { serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, assertIntentIdUnique, intentMatchesFilter, intentPageBounds, isTerminalIntentState, mergeChainedTxType } from '../../chunk-VQCDDGRW.js';
|
|
2
|
+
export { ChainedTxType } from '../../chunk-VQCDDGRW.js';
|
|
3
|
+
import '../../chunk-ERUAQGYF.js';
|
|
4
|
+
import '../../chunk-7W6FHWYN.js';
|
|
5
|
+
import '../../chunk-HSG2GQTM.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
|
-
require('../../chunk-
|
|
3
|
+
var chunkFSF2PGTR_cjs = require('../../chunk-FSF2PGTR.cjs');
|
|
4
|
+
require('../../chunk-L4HZK4KK.cjs');
|
|
5
|
+
require('../../chunk-UCSTNXB4.cjs');
|
|
6
|
+
require('../../chunk-UJTYUYY4.cjs');
|
|
7
7
|
require('../../chunk-5BLDMQED.cjs');
|
|
8
8
|
|
|
9
9
|
// src/repositories/sqlite/transaction.ts
|
|
@@ -154,7 +154,7 @@ var SQLiteWalletRepository = class {
|
|
|
154
154
|
for (const row of nullRows) {
|
|
155
155
|
await this.db.run(
|
|
156
156
|
`UPDATE ${this.tables.vtxos} SET script = ? WHERE txid = ? AND vout = ?`,
|
|
157
|
-
[
|
|
157
|
+
[chunkFSF2PGTR_cjs.scriptFromArkAddress(row.address), row.txid, row.vout]
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
160
|
const tempName = `${this.tables.vtxos}__migrate_tmp`;
|
|
@@ -225,7 +225,7 @@ var SQLiteWalletRepository = class {
|
|
|
225
225
|
async saveVtxos(address, vtxos) {
|
|
226
226
|
await this.ensureInit();
|
|
227
227
|
for (const vtxo of vtxos) {
|
|
228
|
-
const s =
|
|
228
|
+
const s = chunkFSF2PGTR_cjs.serializeVtxo(vtxo);
|
|
229
229
|
await this.db.run(
|
|
230
230
|
`INSERT OR REPLACE INTO ${this.tables.vtxos}
|
|
231
231
|
(txid, vout, value, address,
|
|
@@ -280,7 +280,7 @@ var SQLiteWalletRepository = class {
|
|
|
280
280
|
throw new Error("SQLiteWalletRepository requires an address");
|
|
281
281
|
}
|
|
282
282
|
for (const vtxo of vtxos) {
|
|
283
|
-
if (!
|
|
283
|
+
if (!chunkFSF2PGTR_cjs.isVtxoForScript(vtxo, key.script)) {
|
|
284
284
|
throw new Error(
|
|
285
285
|
`VTXO ${vtxo.txid}:${vtxo.vout} script mismatch: expected ${key.script}, got ${vtxo.script}`
|
|
286
286
|
);
|
|
@@ -304,7 +304,7 @@ var SQLiteWalletRepository = class {
|
|
|
304
304
|
async saveUtxos(address, utxos) {
|
|
305
305
|
await this.ensureInit();
|
|
306
306
|
for (const utxo of utxos) {
|
|
307
|
-
const s =
|
|
307
|
+
const s = chunkFSF2PGTR_cjs.serializeUtxo(utxo);
|
|
308
308
|
await this.db.run(
|
|
309
309
|
`INSERT OR REPLACE INTO ${this.tables.utxos}
|
|
310
310
|
(txid, vout, value, address,
|
|
@@ -360,7 +360,7 @@ var SQLiteWalletRepository = class {
|
|
|
360
360
|
tx.amount,
|
|
361
361
|
tx.settled ? 1 : 0,
|
|
362
362
|
tx.createdAt,
|
|
363
|
-
tx.assets ? JSON.stringify(
|
|
363
|
+
tx.assets ? JSON.stringify(chunkFSF2PGTR_cjs.serializeAssets(tx.assets)) : null
|
|
364
364
|
]
|
|
365
365
|
);
|
|
366
366
|
}
|
|
@@ -434,9 +434,9 @@ function vtxoRowToDomain(row) {
|
|
|
434
434
|
// Post-migration every row has `script`, but the backfill is
|
|
435
435
|
// idempotent: derive from `address` if the legacy column is still
|
|
436
436
|
// null (e.g. the migration hasn't run yet on this handle).
|
|
437
|
-
script: row.script ??
|
|
437
|
+
script: row.script ?? chunkFSF2PGTR_cjs.scriptFromArkAddress(row.address)
|
|
438
438
|
};
|
|
439
|
-
return
|
|
439
|
+
return chunkFSF2PGTR_cjs.deserializeVtxo(serialized);
|
|
440
440
|
}
|
|
441
441
|
function utxoRowToDomain(row) {
|
|
442
442
|
const serialized = {
|
|
@@ -455,7 +455,7 @@ function utxoRowToDomain(row) {
|
|
|
455
455
|
status: JSON.parse(row.status_json),
|
|
456
456
|
extraWitness: row.extra_witness_json ? JSON.parse(row.extra_witness_json) : void 0
|
|
457
457
|
};
|
|
458
|
-
return
|
|
458
|
+
return chunkFSF2PGTR_cjs.deserializeUtxo(serialized);
|
|
459
459
|
}
|
|
460
460
|
function txRowToDomain(row) {
|
|
461
461
|
const tx = {
|
|
@@ -470,7 +470,7 @@ function txRowToDomain(row) {
|
|
|
470
470
|
createdAt: row.created_at
|
|
471
471
|
};
|
|
472
472
|
if (row.assets_json) {
|
|
473
|
-
tx.assets =
|
|
473
|
+
tx.assets = chunkFSF2PGTR_cjs.deserializeAssets(JSON.parse(row.assets_json));
|
|
474
474
|
}
|
|
475
475
|
return tx;
|
|
476
476
|
}
|
|
@@ -743,8 +743,8 @@ var SQLiteIntentRepository = class {
|
|
|
743
743
|
`SELECT * FROM ${this.t} ORDER BY created_at ASC, intent_tx_id ASC`
|
|
744
744
|
);
|
|
745
745
|
let out = rows.map(rowToIntent);
|
|
746
|
-
if (filter) out = out.filter((i) =>
|
|
747
|
-
const { skip, end } =
|
|
746
|
+
if (filter) out = out.filter((i) => chunkFSF2PGTR_cjs.intentMatchesFilter(i, filter));
|
|
747
|
+
const { skip, end } = chunkFSF2PGTR_cjs.intentPageBounds(filter, out.length);
|
|
748
748
|
return out.slice(skip, end);
|
|
749
749
|
}
|
|
750
750
|
async getLockedVtxoOutpoints() {
|
|
@@ -752,7 +752,7 @@ var SQLiteIntentRepository = class {
|
|
|
752
752
|
const rows = await this.db.all(`SELECT * FROM ${this.t}`);
|
|
753
753
|
const out = [];
|
|
754
754
|
for (const r of rows) {
|
|
755
|
-
if (
|
|
755
|
+
if (chunkFSF2PGTR_cjs.isTerminalIntentState(r.state)) continue;
|
|
756
756
|
for (const o of JSON.parse(r.intent_vtxos_json)) out.push(o);
|
|
757
757
|
}
|
|
758
758
|
return out;
|
|
@@ -847,7 +847,7 @@ var SQLiteVirtualTxRepository = class {
|
|
|
847
847
|
const prev = prevByTxid.get(t.txid);
|
|
848
848
|
const psbt = t.psbt ?? prev?.psbt ?? null;
|
|
849
849
|
const expires = t.expiresAt ?? prev?.expires_at ?? null;
|
|
850
|
-
const type =
|
|
850
|
+
const type = chunkFSF2PGTR_cjs.mergeChainedTxType(t.type, prev?.type);
|
|
851
851
|
await this.db.run(
|
|
852
852
|
`INSERT OR REPLACE INTO ${this.tTx} (txid, psbt, expires_at, type) VALUES (?, ?, ?, ?)`,
|
|
853
853
|
[t.txid, psbt, expires, type]
|
|
@@ -940,7 +940,7 @@ function sanitizeTablePrefix(p) {
|
|
|
940
940
|
|
|
941
941
|
Object.defineProperty(exports, "ChainedTxType", {
|
|
942
942
|
enumerable: true,
|
|
943
|
-
get: function () { return
|
|
943
|
+
get: function () { return chunkFSF2PGTR_cjs.ChainedTxType; }
|
|
944
944
|
});
|
|
945
945
|
exports.SQLiteContractRepository = SQLiteContractRepository;
|
|
946
946
|
exports.SQLiteIntentRepository = SQLiteIntentRepository;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, C as ContractRepository, H as ContractFilter, z as Contract, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch } from '../../index-
|
|
2
|
-
export { U as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, C as ContractRepository, H as ContractFilter, z as Contract, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch } from '../../index-DnNIOqHS.cjs';
|
|
2
|
+
export { U as ChainedTxType } from '../../index-DnNIOqHS.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, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, C as ContractRepository, H as ContractFilter, z as Contract, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch } from '../../index-
|
|
2
|
-
export { U as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, B as ExtendedVirtualCoin, D as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, F as WalletState, C as ContractRepository, H as ContractFilter, z as Contract, J as IntentRepository, K as ArkIntent, L as IntentFilter, O as Outpoint, M as VirtualTxRepository, P as VirtualTx, Q as VtxoBranch } from '../../index-DnNIOqHS.js';
|
|
2
|
+
export { U as ChainedTxType } from '../../index-DnNIOqHS.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 '../../chunk-
|
|
1
|
+
import { scriptFromArkAddress, serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, deserializeVtxo, deserializeUtxo, deserializeAssets, intentMatchesFilter, intentPageBounds, isTerminalIntentState, mergeChainedTxType } from '../../chunk-VQCDDGRW.js';
|
|
2
|
+
export { ChainedTxType } from '../../chunk-VQCDDGRW.js';
|
|
3
|
+
import '../../chunk-ERUAQGYF.js';
|
|
4
|
+
import '../../chunk-7W6FHWYN.js';
|
|
5
|
+
import '../../chunk-HSG2GQTM.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, v as IndexerProvider, u as ArkProvider, y as VirtualCoin, z as Contract, B as ExtendedVirtualCoin } from './index-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, v as IndexerProvider, u as ArkProvider, y as VirtualCoin, z as Contract, B as ExtendedVirtualCoin } from './index-DnNIOqHS.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 TaskItem as a, type TaskResult as b, type TaskQueue as c, type TaskDependencies as d, createTaskDependencies as e, runTasks as r };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository, v as IndexerProvider, u as ArkProvider, y as VirtualCoin, z as Contract, B as ExtendedVirtualCoin } from './index-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, v as IndexerProvider, u as ArkProvider, y as VirtualCoin, z as Contract, B as ExtendedVirtualCoin } from './index-DnNIOqHS.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 TaskItem as a, type TaskResult as b, type TaskQueue as c, type TaskDependencies 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 chunkBCT7DT2J_cjs = require('../../chunk-BCT7DT2J.cjs');
|
|
4
|
+
var chunk43XGA362_cjs = require('../../chunk-43XGA362.cjs');
|
|
5
|
+
var chunkFSF2PGTR_cjs = require('../../chunk-FSF2PGTR.cjs');
|
|
6
|
+
require('../../chunk-L4HZK4KK.cjs');
|
|
7
|
+
require('../../chunk-UCSTNXB4.cjs');
|
|
8
|
+
require('../../chunk-UJTYUYY4.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 = [chunkBCT7DT2J_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 chunk43XGA362_cjs.ExpoIndexerProvider(config.arkServerUrl);
|
|
48
|
+
const arkProvider = new chunk43XGA362_cjs.ExpoArkProvider(config.arkServerUrl);
|
|
49
|
+
const deps = chunkBCT7DT2J_cjs.createTaskDependencies({
|
|
50
50
|
walletRepository,
|
|
51
51
|
contractRepository,
|
|
52
52
|
indexerProvider,
|
|
53
53
|
arkProvider
|
|
54
54
|
});
|
|
55
|
-
await
|
|
55
|
+
await chunkBCT7DT2J_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(chunkBCT7DT2J_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
61
61
|
if (existing.length === 0) {
|
|
62
62
|
const task = {
|
|
63
|
-
id:
|
|
64
|
-
type:
|
|
63
|
+
id: chunkFSF2PGTR_cjs.getRandomId(),
|
|
64
|
+
type: chunkBCT7DT2J_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-DnNIOqHS.cjs';
|
|
2
|
+
import { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-DqGRG66E.cjs';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-BDb5Ee2J.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-DnNIOqHS.js';
|
|
2
|
+
import { a as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-DAs_n1xr.js';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-F7wNJcF3.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/transaction.js';
|
|
6
6
|
import '@scure/btc-signer';
|