@arkade-os/sdk 0.5.13 → 0.5.14
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/README.md +6 -0
- package/dist/adapters/expo.cjs +6 -6
- 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-Y4BlVm41.d.cts → asyncStorageTaskQueue-DzO5SBcm.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-Dhbe00Ya.d.ts → asyncStorageTaskQueue-p7zeFhA3.d.ts} +2 -2
- package/dist/{chunk-QSERJPTT.js → chunk-4HZQSKWG.js} +3 -3
- package/dist/{chunk-QSERJPTT.js.map → chunk-4HZQSKWG.js.map} +1 -1
- package/dist/{chunk-HS7TKVOZ.cjs → chunk-6J4GABF7.cjs} +8 -4
- package/dist/chunk-6J4GABF7.cjs.map +1 -0
- package/dist/{chunk-BA36SQY2.js → chunk-72EC3ASW.js} +3 -3
- package/dist/{chunk-BA36SQY2.js.map → chunk-72EC3ASW.js.map} +1 -1
- package/dist/{chunk-WFJPLXOE.cjs → chunk-7LPT6AYH.cjs} +18 -18
- package/dist/{chunk-WFJPLXOE.cjs.map → chunk-7LPT6AYH.cjs.map} +1 -1
- package/dist/{chunk-BP4NA7HK.js → chunk-AZHBGWVC.js} +4 -4
- package/dist/{chunk-BP4NA7HK.js.map → chunk-AZHBGWVC.js.map} +1 -1
- package/dist/{chunk-6XVTGWQK.cjs → chunk-EVVLVFY7.cjs} +17 -17
- package/dist/{chunk-6XVTGWQK.cjs.map → chunk-EVVLVFY7.cjs.map} +1 -1
- package/dist/{chunk-Y3AWLHQP.js → chunk-HWWSLCQN.js} +394 -58
- package/dist/chunk-HWWSLCQN.js.map +1 -0
- package/dist/{chunk-LHLRG2BE.js → chunk-J2JZZTOE.js} +8 -5
- package/dist/chunk-J2JZZTOE.js.map +1 -0
- package/dist/{chunk-D4QH6L54.js → chunk-LCGRZ24T.js} +4 -4
- package/dist/{chunk-D4QH6L54.js.map → chunk-LCGRZ24T.js.map} +1 -1
- package/dist/{chunk-6WPP4UGN.cjs → chunk-LQH7DACV.cjs} +871 -535
- package/dist/chunk-LQH7DACV.cjs.map +1 -0
- package/dist/{chunk-TYSUFG2K.cjs → chunk-MEIE2AEU.cjs} +11 -11
- package/dist/{chunk-TYSUFG2K.cjs.map → chunk-MEIE2AEU.cjs.map} +1 -1
- package/dist/{chunk-TD4PKK2I.cjs → chunk-XZHTYYW5.cjs} +8 -8
- package/dist/{chunk-TD4PKK2I.cjs.map → chunk-XZHTYYW5.cjs.map} +1 -1
- package/dist/compiler.d.cts +1 -1
- package/dist/compiler.d.ts +1 -1
- package/dist/contracts/handlers/index.cjs +10 -10
- 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/{index-BapVvuoI.d.ts → index-CaOBA9Ev.d.ts} +2 -2
- package/dist/{index-BQwrHcOh.d.cts → index-Cy57QdcL.d.cts} +67 -2
- package/dist/{index-DuXylQrN.d.ts → index-Db5qzYRi.d.ts} +67 -2
- package/dist/{index-BaTItxPx.d.cts → index-Lq_u0hqj.d.cts} +2 -2
- package/dist/index.cjs +325 -325
- package/dist/index.d.cts +126 -57
- package/dist/index.d.ts +126 -57
- package/dist/index.js +4 -4
- package/dist/{program-DPzf5qsk.d.cts → program-ZWUAWy_9.d.cts} +1 -1
- package/dist/{program-38A2Twvj.d.ts → program-zdDO4cMt.d.ts} +1 -1
- package/dist/repositories/realm/index.cjs +37 -37
- 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 +35 -35
- 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-D2itCXf6.d.cts → taskRunner-DhZ-KQBW.d.cts} +2 -2
- package/dist/{taskRunner-BxOmg-O6.d.ts → taskRunner-amPuilMW.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 +15 -15
- package/dist/wallet/expo/index.d.cts +2 -2
- package/dist/wallet/expo/index.d.ts +2 -2
- 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-6WPP4UGN.cjs.map +0 -1
- package/dist/chunk-HS7TKVOZ.cjs.map +0 -1
- package/dist/chunk-LHLRG2BE.js.map +0 -1
- package/dist/chunk-Y3AWLHQP.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { b as Identity, a8 as DescriptorProvider, a9 as Transaction, aa as SignerSession, ab as ReadonlyIdentity, ac as DescriptorSigningRequest, ad as IntentFeeConfig, ae as OffchainInput, af as FeeAmount, ag as OnchainInput, ah as FeeOutput, ai as VtxoReservationRepository, aj as StoredVtxoReservation, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, J as PageRequest, L as PageResult,
|
|
2
|
-
export { bk as AbortError, bl as ActivityIntent, bm as ActivityResolver, bn as ArkError, bo as ArkErrorName, bp as ArkIntent, bq as ArkIntentState, y as ArkProvider, br as ArkadeCash, bs as ArkadeCashAction, bt as ArkadeCashCreateError, bu as ArkadeCashOperatorMismatchError, bv as ArkadeCashUnclaimedReason, bw as ArkadeCashUnclaimedVtxo, bx as ArkadeCashVtxoRef, by as AssetMetadata, bz as BATCH_REGISTRATION_TERMINAL_STATES, bA as BITCOIN_EMULATOR_PUBKEY, bB as BaseWalletConfig, bC as BatchFailedEvent, bD as BatchFinalizationEvent, bE as BatchFinalizedEvent, bF as BatchInfo, bG as BatchRegistrationFilter, bH as BatchRegistrationState, bI as BatchSignableIdentity, bJ as BatchStartedEvent, bK as BoardingUtxoGroup, bL as CandidateDeps, bM as ChainTxType, a7 as ChainedTxType, bN as CommitmentTx, bO as ConnectorTreeNode, bP as ContractBalance, bQ as ContractEventCallback, bR as ContractHandler, bS as ContractManager, bT as ContractManagerConfig, bU as ContractScope, bV as ContractState, bW as ContractVtxo, bX as ContractWatcher, bY as ContractWatcherEventCallback, bZ as DEFAULT_ARKADE_EMULATOR_URL, b_ as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, b$ as DEFAULT_VTXO_PAGE_SIZE, c0 as DELEGATION_EXPIRES_KEY, c1 as DELEGATION_LOCAL_STATUS, c2 as DELEGATION_REGISTERED_KEY, c3 as DELEGATION_STATUS_KEY, c4 as DefaultVtxo, c5 as DelegateManagerImpl, c6 as DelegateOptions, c7 as DelegateProvider, c8 as DelegateVtxo, c9 as DelegatedOutput, ca as DelegatedWallet, cb as DelegationOptions, cc as DelegationParams, cd as DeprecatedSignerMigrationReport, ce as DeprecatedSignerReport, cf as DigestMismatchError, cg as Discoverable, ch as DiscoveredContract, ci as DiscoveryDeps, cj as ESPLORA_URL, ck as EmulatorInfo, cl as EsploraProvider, cm as EventSourceCapable, cn as EventSourceFactory, co as EventSourceLike, cp as EventSourceUnavailableError, cq as
|
|
1
|
+
import { b as Identity, a8 as DescriptorProvider, a9 as Transaction, aa as SignerSession, ab as ReadonlyIdentity, ac as DescriptorSigningRequest, ad as IntentFeeConfig, ae as OffchainInput, af as FeeAmount, ag as OnchainInput, ah as FeeOutput, ai as VtxoReservationRepository, aj as StoredVtxoReservation, K as Outpoint, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, J as PageRequest, L as PageResult, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch, W as WalletRepository, _ as AtomicWalletState, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, $ as WalletState, D as Contract, ak as ArkadeCashTx, z as IndexerProvider, al as ArkadeInfo, am as OnchainProvider, an as ArkadeCashRecord, ao as ArkadeCashClaimResult, l as Activity, C as ContractRepository, a0 as ContractFilter, I as IWallet, S as SettleParams, G as GetOperatorInfoOptions, ap as GetVtxosOptions, aq as PaginationOptions, h as GetVtxosFilter, i as GetSpendableVtxosFilter, ar as CreateContractParams, as as GetContractsFilter, V as VirtualCoin, at as GetSpendablePathsOptions, au as GetAllSpendingPathsOptions, n as GetNewAddressesOptions, R as Recipient, av as InputExpiryFloor, aw as IssuanceParams, ax as ReissuanceParams, ay as BurnParams, az as RenewVtxosOptions, s as SendOnchainParams, q as SettlementEvent, O as OperatorInfo, aA as NormalizedVtxoPage, e as ArkadeReader, f as ArkadeBroadcaster, g as WalletBalance, P as ProviderConnectionState, aB as ContractSyncState, aC as ContractWithVtxos, aD as WatchedScript, aE as PathSelection, o as NewAddress, aF as ContractEvent, aG as AssetDetails, aH as IssuanceResult, aI as DelegateInfo, aJ as MigrationGlobalSkipReason, aK as MigrationLegSkipReason, aL as SignerStatus, aM as NetworkName, B as OperatorProvider, c as Wallet, aN as ReadonlyWallet, aO as SettlementConfig, aP as ContractWatcherConfig, aQ as Asset, aR as FeeInfo, N as NormalizedExtendedVirtualCoin, aS as ReceiveRotatorFactory, aT as ReceiveRotatorBootOpts, aU as ReceiveRotatorBoot, aV as IReadonlyWallet, k as ActivityRegistry, aW as IReadonlyAssetManager, aX as StorageConfig, m as IContractManager, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, t as IAssetManager, aY as VtxoReservation, r as SendParams, p as IDelegateManager, aZ as IExecutorManager, a_ as IVtxoManager, a$ as Network, b0 as Coin, b1 as SendBitcoinParams, b2 as ExplorerTransaction, b3 as SignedProof, b4 as Proof, b5 as TreeNonces, b6 as TreePartialSigs, T as TxNotificationEvent, b7 as PendingTx, b8 as EmulatorProvider, b9 as Status, ba as BatchExpiryPolicy, bb as Batch, bc as ChainTx, bd as TxTree, be as ArkadeService$1, bf as ContractVtxoEvent, bg as ExtendedContractVtxo, bh as ResolvedArkadeService$1, bi as resolveArkadeService, bj as PathContext } from './index-Db5qzYRi.js';
|
|
2
|
+
export { bk as AbortError, bl as ActivityIntent, bm as ActivityResolver, bn as ArkError, bo as ArkErrorName, bp as ArkIntent, bq as ArkIntentState, y as ArkProvider, br as ArkadeCash, bs as ArkadeCashAction, bt as ArkadeCashCreateError, bu as ArkadeCashOperatorMismatchError, bv as ArkadeCashUnclaimedReason, bw as ArkadeCashUnclaimedVtxo, bx as ArkadeCashVtxoRef, by as AssetMetadata, bz as BATCH_REGISTRATION_TERMINAL_STATES, bA as BITCOIN_EMULATOR_PUBKEY, bB as BaseWalletConfig, bC as BatchFailedEvent, bD as BatchFinalizationEvent, bE as BatchFinalizedEvent, bF as BatchInfo, bG as BatchRegistrationFilter, bH as BatchRegistrationState, bI as BatchSignableIdentity, bJ as BatchStartedEvent, bK as BoardingUtxoGroup, bL as CandidateDeps, bM as ChainTxType, a7 as ChainedTxType, bN as CommitmentTx, bO as ConnectorTreeNode, bP as ContractBalance, bQ as ContractEventCallback, bR as ContractHandler, bS as ContractManager, bT as ContractManagerConfig, bU as ContractScope, bV as ContractState, bW as ContractVtxo, bX as ContractWatcher, bY as ContractWatcherEventCallback, bZ as DEFAULT_ARKADE_EMULATOR_URL, b_ as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, b$ as DEFAULT_VTXO_PAGE_SIZE, c0 as DELEGATION_EXPIRES_KEY, c1 as DELEGATION_LOCAL_STATUS, c2 as DELEGATION_REGISTERED_KEY, c3 as DELEGATION_STATUS_KEY, c4 as DefaultVtxo, c5 as DelegateManagerImpl, c6 as DelegateOptions, c7 as DelegateProvider, c8 as DelegateVtxo, c9 as DelegatedOutput, ca as DelegatedWallet, cb as DelegationOptions, cc as DelegationParams, cd as DeprecatedSignerMigrationReport, ce as DeprecatedSignerReport, cf as DigestMismatchError, cg as Discoverable, ch as DiscoveredContract, ci as DiscoveryDeps, cj as ESPLORA_URL, ck as EmulatorInfo, cl as EsploraProvider, cm as EventSourceCapable, cn as EventSourceFactory, co as EventSourceLike, cp as EventSourceUnavailableError, cq as ExecutorArtifact, cr as ExecutorContractHandler, cs as ExecutorContractKeys, ct as ExecutorContractParams, cu as ExecutorDefault, cv as ExecutorDelegation, cw as ExecutorDelegationDetails, cx as ExecutorInfo, cy as ExecutorManagerImpl, cz as ExecutorProvider, cA as ExecutorRequestError, cB as ExecutorTemplate, cC as ExecutorTemplateDetails, cD as ExecutorTemplateParam, cE as ExecutorWatchMetadata, cF as ExecutorWatchRegistration, cG as ExitCaptureMode, cH as ExitChainResolver, cI as ExitDataSource, cJ as ForeignDescriptorError, cK as GetArkadeInfoOptions, cL as GetUtxosOptions, cM as GroupMembership, cN as HandlerError, cO as HttpResponseError, cP as INTENT_TERMINAL_STATES, cQ as IncomingFunds, cR as IndexedDBWalletRepository, cS as IndexerTxType, cT as IndexerUtxo, cU as IndexerUtxosUnsupportedError, cV as Intent, cW as IntentCoin, cX as IntentFilter, cY as IntentPageFilter, cZ as IntentRepository, c_ as KeyringDescriptorProvider, c$ as KnownMetadata, d0 as MAX_PAGE_SIZE, d1 as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, d2 as MUTINYNET_EMULATOR_PUBKEY, d3 as MigrateDeprecatedSignerOptions, d4 as MigrationLegReport, d5 as MigrationVtxoRef, d6 as NewAddressType, d7 as Nonces, d8 as NotifiesIncomingFunds, d9 as OnchainCosignAmbiguousError, da as OnchainCosignRejectedError, db as OnchainCosignUnsupportedError, dc as Output, dd as PageResponse, de as PartialSig, df as PrevTxSource, dg as PrevTxUnavailableError, dh as ProofInput, di as ProviderClass, dj as ProviderKind, dk as ProviderUnavailableError, dl as REGTEST_EMULATOR_PUBKEY, dm as REGTEST_MIN_BATCH_EXPIRY_SECONDS, dn as RawTxSource, dp as ReadonlySingleKey, dq as ReadonlyWalletConfig, dr as RecipientArkadeAddressContext, ds as RegistrationOptions, dt as RenewalSplit, du as RenewalSplitContext, dv as RestArkProvider, dw as RestDelegateProvider, dx as RestEmulatorProvider, dy as RestExecutorProvider, v as RestIndexerProvider, u as RestOperatorProvider, dz as ScanContractsOptions, dA as ScanResult, dB as ScheduledSession, dC as ServerInfoSource, dD as ServerResponseMismatchError, dE as SettlementEventType, dF as SignRequest, dG as SignedIntent, dH as SignerClassification, dI as SignerSet, dJ as SingleKey, w as SubscriptionEvent, dK as SubscriptionFilter, x as SubscriptionHeartbeat, dL as SubscriptionResponse, dM as SweepTxNotification, dN as TapLeaves, dO as TimeHeight, dP as TreeNoncesEvent, dQ as TreeSignatureEvent, dR as TreeSignerSession, dS as TreeSigningStartedEvent, dT as TreeTxEvent, dU as Tx, dV as TxHistoryRecord, dW as TxKey, dX as TxNotification, dY as TxTag, dZ as TxTreeNode, d_ as TxType, d$ as Vtxo, e0 as VtxoChain, e1 as VtxoManager, e2 as VtxoReservedError, e3 as VtxoType, e4 as WaitForIncomingFundsOptions, e5 as WalletCannotAllocateAddressError, d as WalletConfig, e6 as WalletMode, e7 as WithPrevTx, e8 as addArkadeCashRecord, e9 as arkadeCashId, ea as arkadeCashResolver, eb as assertAllowedSighashTypes, ec as assertPageRequest, ed as assertRecipientArkadeAddress, ee as assertValidBatchExpiry, ef as assetMintResolver, eg as attachPrevArkTxs, eh as attachPrevoutTxs, ei as boardingResolver, ej as canRecoverOnchain, ek as canSpendOffchain, el as canSweepOnchain, em as classifyAgainstSignerSet, en as classifyContractSigner, eo as collabExitResolver, ep as collectBatchRegistrations, eq as collectContracts, er as collectIntents, es as collectPages, et as collectScriptVtxos, eu as collectTransactionHistory, ev as collectUtxos, ew as collectVtxos, ex as configureEventSource, ey as createArkadeCashTracker, ez as createDefaultActivityRegistry, eA as createExitChainResolver, eB as defaultBatchExpiryPolicy, eC as defaultEmulatorPubkey, eD as getAllNormalizedVtxos, eE as getConfiguredEventSource, eF as getNetwork, eG as getNormalizedVtxos, eH as getRandomId, eI as hasCandidates, eJ as isAddressAllocationCapable, eK as isArkError, eL as isBatchSignable, eM as isContractVtxoEvent, eN as isCooperativelyMigratable, eO as isDiscoverable, eP as isEventSourceUnavailableError, eQ as isHDAllocationCapable, eR as isHDWalletCapable, eS as isPastExpiry, eT as isSigningIdentity, eU as isSubdust, eV as isTerminalBatchRegistrationState, eW as isTerminalIntentState, eX as isVirtualCoin, eY as isVtxoExpiringSoon, eZ as isVtxoSpent, e_ as iteratePages, e$ as maybeArkError, f0 as mergeArkadeCashRecord, f1 as networkFromArkadeInfo, f2 as networkFromOperatorInfo, f3 as networks, f4 as pageResult, f5 as resolveBatchExpiryPolicy, f6 as resolveDescriptorSigner, f7 as resolveEmulatorPubkey, f8 as resolveEventSource, f9 as resolvePrevTxs, fa as selectVirtualCoins, fb as signerSetFromInfo, fc as signingDescriptorIndex, fd as strictSigningDescriptorIndex, fe as toOffchainInputFeeParams, ff as toXOnlySignerHex, fg as waitForIncomingFunds, fh as watchExecutorContracts, fi as withPrevTxs } from './index-Db5qzYRi.js';
|
|
3
3
|
import { T as TapLeafScript, E as EncodedVtxoScript, C as CSVMultisigTapscript, V as VtxoScript, R as RelativeTimelock } from './base-C-Y5t_0F.js';
|
|
4
4
|
export { A as ArkAddress, a as ArkTapscript, b as CLTVMultisigTapscript, c as ConditionCSVMultisigTapscript, d as ConditionMultisigTapscript, M as MultisigTapscript, e as TapTreeCoder, f as TapscriptType, g as decodeTapscript, h as getSequence, s as scriptFromTapLeafScript } from './base-C-Y5t_0F.js';
|
|
5
|
-
export { A as ArkadeContractHandler, B as BoardingContractHandler, a as BoardingContractParams, D as DefaultContractHandler, b as DefaultContractParams, c as DelegateContractHandler, d as DelegateContractParams, V as VHTLC, e as VHTLCContractHandler, f as VHTLCContractParams, g as VHTLCV2ContractHandler, h as VHTLCV2ContractParams, i as contractHandlers } from './index-
|
|
5
|
+
export { A as ArkadeContractHandler, B as BoardingContractHandler, a as BoardingContractParams, D as DefaultContractHandler, b as DefaultContractParams, c as DelegateContractHandler, d as DelegateContractParams, V as VHTLC, e as VHTLCContractHandler, f as VHTLCContractParams, g as VHTLCV2ContractHandler, h as VHTLCV2ContractParams, i as contractHandlers } from './index-CaOBA9Ev.js';
|
|
6
6
|
import { Bytes, BTC_NETWORK } from '@scure/btc-signer/utils.js';
|
|
7
|
-
import { Transaction as Transaction$1, OP, Script
|
|
7
|
+
import { Transaction as Transaction$1, ScriptType as ScriptType$1, OP, Script } from '@scure/btc-signer';
|
|
8
8
|
import { P2TR } from '@scure/btc-signer/payment.js';
|
|
9
|
-
import { ElectrumWS } from 'ws-electrumx-client';
|
|
10
9
|
import { TransactionOutput, TransactionInputUpdate } from '@scure/btc-signer/psbt.js';
|
|
10
|
+
import { S as SourceRange$1, P as Program$1, A as ArkadeArgValue$1, a as ArkadeProgramScript, b as ProgramKeys$1, c as ArkadeParamValue$1, d as ArkadeFunction$1, I as InputDef$1, e as ArkadeValueType, C as CompiledProgramFunction$1, f as ArkadeArgType$1, g as ArkadeContractParams$1, h as ArkadeSegment$1, i as AsmToken$1, j as InputRef$1, k as SignerRef$1, T as TapscriptSegment$1, l as TweakedSigner$1, W as WitnessRef$1, m as SUPPORTED_PROGRAM_VERSION, U as UnsupportedProgramVersionError, n as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, o as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './program-zdDO4cMt.js';
|
|
11
11
|
import * as P from 'micro-packed';
|
|
12
|
-
import { S as SourceRange, P as Program, A as ArkadeArgValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeParamValue, d as ArkadeFunction, I as InputDef, e as ArkadeValueType, C as CompiledProgramFunction, f as ArkadeArgType, g as ArkadeContractParams, h as ArkadeSegment, i as AsmToken, j as InputRef, k as SUPPORTED_PROGRAM_VERSION, l as SignerRef, T as TapscriptSegment, m as TweakedSigner, U as UnsupportedProgramVersionError, W as WitnessRef, n as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, o as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './program-38A2Twvj.js';
|
|
13
12
|
import '@scure/btc-signer/transaction.js';
|
|
14
13
|
|
|
15
14
|
/** Validate an optional millisecond duration; zero retains its caller-defined meaning. */
|
|
@@ -319,12 +318,13 @@ declare class Estimator {
|
|
|
319
318
|
}
|
|
320
319
|
|
|
321
320
|
declare class IndexedDBVtxoReservationRepository implements VtxoReservationRepository, AsyncDisposable {
|
|
322
|
-
readonly version:
|
|
321
|
+
readonly version: 2;
|
|
323
322
|
private readonly connection;
|
|
324
323
|
constructor(dbName: string);
|
|
325
324
|
getReservations(): Promise<StoredVtxoReservation[]>;
|
|
326
325
|
saveReservation(reservation: StoredVtxoReservation): Promise<void>;
|
|
327
326
|
deleteReservation(id: string): Promise<void>;
|
|
327
|
+
deleteReservationIfMatches(id: string, expected: readonly Outpoint[]): Promise<boolean>;
|
|
328
328
|
[Symbol.asyncDispose](): Promise<void>;
|
|
329
329
|
}
|
|
330
330
|
|
|
@@ -481,7 +481,7 @@ interface ContractDebugInfo {
|
|
|
481
481
|
/** The {@link ContractArtifact.fingerprint} of the build that wrote it. */
|
|
482
482
|
artifactFingerprint?: string;
|
|
483
483
|
functions: Record<string, {
|
|
484
|
-
sourceMap: SourceRange[];
|
|
484
|
+
sourceMap: SourceRange$1[];
|
|
485
485
|
}>;
|
|
486
486
|
}
|
|
487
487
|
/** `true` when `value` is an arkadec artifact rather than a Program. */
|
|
@@ -490,7 +490,7 @@ declare function isContractArtifact(value: unknown): value is ContractArtifact;
|
|
|
490
490
|
* Adds `server`, and one param per child-output placeholder for the caller to bind to that output key.
|
|
491
491
|
* With the build's `debug` file, each covenant segment also carries its `sourceMap`.
|
|
492
492
|
*/
|
|
493
|
-
declare function programFromArtifact(artifact: ContractArtifact, debug?: ContractDebugInfo): Program;
|
|
493
|
+
declare function programFromArtifact(artifact: ContractArtifact, debug?: ContractDebugInfo): Program$1;
|
|
494
494
|
|
|
495
495
|
/**
|
|
496
496
|
* Whether generic wallet spending may select this contract's VTXOs. Default closed: a type whose
|
|
@@ -1329,6 +1329,12 @@ type ResponseGetContractSyncState = ResponseEnvelope & {
|
|
|
1329
1329
|
type RequestClear = RequestEnvelope & {
|
|
1330
1330
|
type: "CLEAR";
|
|
1331
1331
|
};
|
|
1332
|
+
type RequestDispose = RequestEnvelope & {
|
|
1333
|
+
type: "DISPOSE";
|
|
1334
|
+
};
|
|
1335
|
+
type ResponseDispose = ResponseEnvelope & {
|
|
1336
|
+
type: "DISPOSE_SUCCESS";
|
|
1337
|
+
};
|
|
1332
1338
|
type ResponseClear = ResponseEnvelope & {
|
|
1333
1339
|
type: "CLEAR_SUCCESS";
|
|
1334
1340
|
payload: {
|
|
@@ -1944,7 +1950,7 @@ type RequestRestoreWallet = RequestEnvelope & {
|
|
|
1944
1950
|
type ResponseRestoreWallet = ResponseEnvelope & {
|
|
1945
1951
|
type: "RESTORE_WALLET_SUCCESS";
|
|
1946
1952
|
};
|
|
1947
|
-
type WalletRequest = RequestInitWallet | RequestSettle | RequestGetAddress | RequestGetBoardingAddress | RequestGetOperatorInfo | RequestIndexerGetVtxos | RequestIndexerGetVirtualTxs | RequestSubmitTx | RequestFinalizeTx | RequestGetBalance | RequestGetVtxos | RequestGetSpendableVtxos | RequestGetBoardingUtxos | RequestGetTransactionHistory | RequestGetStatus | RequestGetContractSyncState | RequestClear | RequestReloadWallet | RequestSignTransaction | RequestCreateContract | RequestGetContracts | RequestGetContractsWithVtxos | RequestGetStoredContractsWithVtxos | RequestWatchScript | RequestUnwatchScript | RequestGetWatchedScripts | RequestAnnotateVtxos | RequestUpdateContract | RequestDeleteContract | RequestGetSpendablePaths | RequestGetAllSpendingPaths | RequestGetUnsupportedContracts | RequestIsContractManagerWatching | RequestRefreshVtxos | RequestRefreshOutpoints | RequestGetCurrentSigningDescriptor | RequestGetNextSigningDescriptor | RequestGetNewAddresses | RequestGetUsedSigningDescriptors | RequestAdvanceSigningDescriptorWatermark | RequestSend | RequestReserveVtxos | RequestReleaseVtxos | RequestSendWithDeadline | RequestSendWithInputExpiryFloor | RequestGetAssetDetails | RequestIssue | RequestReissue | RequestBurn | RequestDelegate | RequestGetDelegateInfo | RequestRecoverVtxos | RequestGetRecoverableBalance | RequestGetExpiringVtxos | RequestRenewVtxos | RequestGetExpiredBoardingUtxos | RequestSweepExpiredBoardingUtxos | RequestCosignOnchainTx | RequestSendOnchain | RequestMigrateDeprecatedSignerVtxos | RequestGetDeprecatedSignerStatus | RequestRestoreWallet | RequestArkadeCash;
|
|
1953
|
+
type WalletRequest = RequestInitWallet | RequestSettle | RequestGetAddress | RequestGetBoardingAddress | RequestGetOperatorInfo | RequestIndexerGetVtxos | RequestIndexerGetVirtualTxs | RequestSubmitTx | RequestFinalizeTx | RequestGetBalance | RequestGetVtxos | RequestGetSpendableVtxos | RequestGetBoardingUtxos | RequestGetTransactionHistory | RequestGetStatus | RequestGetContractSyncState | RequestClear | RequestDispose | RequestReloadWallet | RequestSignTransaction | RequestCreateContract | RequestGetContracts | RequestGetContractsWithVtxos | RequestGetStoredContractsWithVtxos | RequestWatchScript | RequestUnwatchScript | RequestGetWatchedScripts | RequestAnnotateVtxos | RequestUpdateContract | RequestDeleteContract | RequestGetSpendablePaths | RequestGetAllSpendingPaths | RequestGetUnsupportedContracts | RequestIsContractManagerWatching | RequestRefreshVtxos | RequestRefreshOutpoints | RequestGetCurrentSigningDescriptor | RequestGetNextSigningDescriptor | RequestGetNewAddresses | RequestGetUsedSigningDescriptors | RequestAdvanceSigningDescriptorWatermark | RequestSend | RequestReserveVtxos | RequestReleaseVtxos | RequestSendWithDeadline | RequestSendWithInputExpiryFloor | RequestGetAssetDetails | RequestIssue | RequestReissue | RequestBurn | RequestDelegate | RequestGetDelegateInfo | RequestRecoverVtxos | RequestGetRecoverableBalance | RequestGetExpiringVtxos | RequestRenewVtxos | RequestGetExpiredBoardingUtxos | RequestSweepExpiredBoardingUtxos | RequestCosignOnchainTx | RequestSendOnchain | RequestMigrateDeprecatedSignerVtxos | RequestGetDeprecatedSignerStatus | RequestRestoreWallet | RequestArkadeCash;
|
|
1948
1954
|
type ScopedWalletRequest = RequestEnvelope & {
|
|
1949
1955
|
type: "SCOPED_WALLET_REQUEST_V1";
|
|
1950
1956
|
payload: {
|
|
@@ -1955,7 +1961,7 @@ type ScopedWalletRequest = RequestEnvelope & {
|
|
|
1955
1961
|
type WalletUpdaterRequest = WalletRequest | ScopedWalletRequest;
|
|
1956
1962
|
type WalletUpdaterResponse = ResponseEnvelope & {
|
|
1957
1963
|
walletRequestBinding?: WalletRequestBinding;
|
|
1958
|
-
} & (ResponseInitWallet | ResponseSettle | ResponseSettleEvent | ResponseGetAddress | ResponseGetBoardingAddress | ResponseGetOperatorInfo | ResponseIndexerGetVtxos | ResponseIndexerGetVirtualTxs | ResponseSubmitTx | ResponseFinalizeTx | ResponseGetBalance | ResponseGetVtxos | ResponseGetSpendableVtxos | ResponseGetBoardingUtxos | ResponseGetTransactionHistory | ResponseGetStatus | ResponseGetContractSyncState | ResponseClear | ResponseReloadWallet | ResponseUtxoUpdate | ResponseVtxoUpdate | ResponseSignTransaction | ResponseCreateContract | ResponseGetContracts | ResponseGetContractsWithVtxos | ResponseGetStoredContractsWithVtxos | ResponseWatchScript | ResponseUnwatchScript | ResponseGetWatchedScripts | ResponseAnnotateVtxos | ResponseUpdateContract | ResponseContractWatchStateSet | ResponseDeleteContract | ResponseGetSpendablePaths | ResponseGetAllSpendingPaths | ResponseGetUnsupportedContracts | ResponseIsContractManagerWatching | ResponseRefreshVtxos | ResponseRefreshOutpoints | ResponseGetCurrentSigningDescriptor | ResponseGetNextSigningDescriptor | ResponseGetNewAddresses | ResponseGetUsedSigningDescriptors | ResponseAdvanceSigningDescriptorWatermark | ResponseContractEvent | ResponseSend | ResponseReserveVtxos | ResponseReleaseVtxos | ResponseSendDeadlineExceeded | ResponseGetAssetDetails | ResponseIssue | ResponseReissue | ResponseBurn | ResponseDelegate | ResponseGetDelegateInfo | ResponseRecoverVtxos | ResponseRecoverVtxosEvent | ResponseGetRecoverableBalance | ResponseGetExpiringVtxos | ResponseRenewVtxos | ResponseRenewVtxosEvent | ResponseGetExpiredBoardingUtxos | ResponseSweepExpiredBoardingUtxos | ResponseCosignOnchainTx | ResponseSendOnchain | ResponseMigrateDeprecatedSignerVtxos | ResponseMigrateDeprecatedSignerVtxosEvent | ResponseGetDeprecatedSignerStatus | ResponseRestoreWallet | ResponseArkadeCash);
|
|
1964
|
+
} & (ResponseInitWallet | ResponseSettle | ResponseSettleEvent | ResponseGetAddress | ResponseGetBoardingAddress | ResponseGetOperatorInfo | ResponseIndexerGetVtxos | ResponseIndexerGetVirtualTxs | ResponseSubmitTx | ResponseFinalizeTx | ResponseGetBalance | ResponseGetVtxos | ResponseGetSpendableVtxos | ResponseGetBoardingUtxos | ResponseGetTransactionHistory | ResponseGetStatus | ResponseGetContractSyncState | ResponseClear | ResponseDispose | ResponseReloadWallet | ResponseUtxoUpdate | ResponseVtxoUpdate | ResponseSignTransaction | ResponseCreateContract | ResponseGetContracts | ResponseGetContractsWithVtxos | ResponseGetStoredContractsWithVtxos | ResponseWatchScript | ResponseUnwatchScript | ResponseGetWatchedScripts | ResponseAnnotateVtxos | ResponseUpdateContract | ResponseContractWatchStateSet | ResponseDeleteContract | ResponseGetSpendablePaths | ResponseGetAllSpendingPaths | ResponseGetUnsupportedContracts | ResponseIsContractManagerWatching | ResponseRefreshVtxos | ResponseRefreshOutpoints | ResponseGetCurrentSigningDescriptor | ResponseGetNextSigningDescriptor | ResponseGetNewAddresses | ResponseGetUsedSigningDescriptors | ResponseAdvanceSigningDescriptorWatermark | ResponseContractEvent | ResponseSend | ResponseReserveVtxos | ResponseReleaseVtxos | ResponseSendDeadlineExceeded | ResponseGetAssetDetails | ResponseIssue | ResponseReissue | ResponseBurn | ResponseDelegate | ResponseGetDelegateInfo | ResponseRecoverVtxos | ResponseRecoverVtxosEvent | ResponseGetRecoverableBalance | ResponseGetExpiringVtxos | ResponseRenewVtxos | ResponseRenewVtxosEvent | ResponseGetExpiredBoardingUtxos | ResponseSweepExpiredBoardingUtxos | ResponseCosignOnchainTx | ResponseSendOnchain | ResponseMigrateDeprecatedSignerVtxos | ResponseMigrateDeprecatedSignerVtxosEvent | ResponseGetDeprecatedSignerStatus | ResponseRestoreWallet | ResponseArkadeCash);
|
|
1959
1965
|
declare class WalletMessageHandler implements MessageHandler<WalletUpdaterRequest, WalletUpdaterResponse> {
|
|
1960
1966
|
readonly messageTag: string;
|
|
1961
1967
|
private wallet;
|
|
@@ -1971,6 +1977,7 @@ declare class WalletMessageHandler implements MessageHandler<WalletUpdaterReques
|
|
|
1971
1977
|
private incomingFundsSubscription;
|
|
1972
1978
|
private incomingFundsRegistrations;
|
|
1973
1979
|
private contractEventsSubscription;
|
|
1980
|
+
private retryPendingTxs?;
|
|
1974
1981
|
private onNextTick;
|
|
1975
1982
|
private channel;
|
|
1976
1983
|
private incomingFundsEpoch;
|
|
@@ -2027,6 +2034,7 @@ declare class WalletMessageHandler implements MessageHandler<WalletUpdaterReques
|
|
|
2027
2034
|
private handleGetBalance;
|
|
2028
2035
|
private getBoardingUtxosForBalance;
|
|
2029
2036
|
private onWalletInitialized;
|
|
2037
|
+
private schedulePendingTxRecovery;
|
|
2030
2038
|
private registerIncomingFunds;
|
|
2031
2039
|
/**
|
|
2032
2040
|
* Refresh boarding inputs and transaction history. The virtual outputs come
|
|
@@ -2154,6 +2162,11 @@ interface MessageHandler<REQ extends RequestEnvelope = RequestEnvelope, RES exte
|
|
|
2154
2162
|
walletRepository: WalletRepository;
|
|
2155
2163
|
}, channel?: {
|
|
2156
2164
|
broadcast(response: RES): void;
|
|
2165
|
+
/**
|
|
2166
|
+
* Stop every handler and leave the bus uninitialized, as in a
|
|
2167
|
+
* fresh worker; a no-op once this generation has ended.
|
|
2168
|
+
*/
|
|
2169
|
+
release?(): Promise<void>;
|
|
2157
2170
|
}): Promise<void>;
|
|
2158
2171
|
/** Called once when the SW is shutting down */
|
|
2159
2172
|
stop(): Promise<void>;
|
|
@@ -2263,8 +2276,8 @@ declare class MessageBus {
|
|
|
2263
2276
|
*/
|
|
2264
2277
|
private initChain;
|
|
2265
2278
|
/**
|
|
2266
|
-
* Number of inits accepted but not yet settled (queued or
|
|
2267
|
-
* bus refuses ordinary wallet messages while this is > 0.
|
|
2279
|
+
* Number of inits and releases accepted but not yet settled (queued or
|
|
2280
|
+
* running). The bus refuses ordinary wallet messages while this is > 0.
|
|
2268
2281
|
*/
|
|
2269
2282
|
private pendingInitCount;
|
|
2270
2283
|
private readonly buildServicesFn;
|
|
@@ -2304,6 +2317,11 @@ declare class MessageBus {
|
|
|
2304
2317
|
* Returns this init's own result.
|
|
2305
2318
|
*/
|
|
2306
2319
|
private waitForInit;
|
|
2320
|
+
/**
|
|
2321
|
+
* Back to a fresh worker's state. On the init chain, so a later init
|
|
2322
|
+
* builds only after these handlers stop.
|
|
2323
|
+
*/
|
|
2324
|
+
private release;
|
|
2307
2325
|
/**
|
|
2308
2326
|
* The bus serves ordinary wallet messages only when it is initialized AND
|
|
2309
2327
|
* no init is in flight.
|
|
@@ -3119,6 +3137,12 @@ declare class Ramps {
|
|
|
3119
3137
|
*
|
|
3120
3138
|
* Returns the onchain txid instead when onchain coins alone cover `amount`
|
|
3121
3139
|
* and were spent via arkd cosigning.
|
|
3140
|
+
*
|
|
3141
|
+
* Rethrows a cosign that failed after the client signed (`OnchainCosignRejectedError`,
|
|
3142
|
+
* `OnchainCosignAmbiguousError`): the operator may still hold that signed tx and complete it,
|
|
3143
|
+
* so paying from other coins can pay twice. No batch here can conflict with it, as arkd
|
|
3144
|
+
* refuses an intent mixing onchain inputs and outputs. See "Onchain cosigning" in the README for
|
|
3145
|
+
* the caller's options.
|
|
3122
3146
|
*/
|
|
3123
3147
|
offboardExact(params: {
|
|
3124
3148
|
destinationAddress: string;
|
|
@@ -3378,6 +3402,8 @@ declare class ServiceWorkerReadonlyWallet implements IReadonlyWallet {
|
|
|
3378
3402
|
protected messageBusTimeoutMs?: number;
|
|
3379
3403
|
protected messageTimeouts: Record<RequestType, number>;
|
|
3380
3404
|
private reinitPromise;
|
|
3405
|
+
private disposed;
|
|
3406
|
+
private disposePromise?;
|
|
3381
3407
|
private pingPromise;
|
|
3382
3408
|
private inflightRequests;
|
|
3383
3409
|
get assetManager(): IReadonlyAssetManager;
|
|
@@ -3430,6 +3456,13 @@ declare class ServiceWorkerReadonlyWallet implements IReadonlyWallet {
|
|
|
3430
3456
|
* by the worker via GET_STATUS.
|
|
3431
3457
|
*/
|
|
3432
3458
|
protected assertWorkerIdentityMatches(): Promise<void>;
|
|
3459
|
+
private assertNotDisposed;
|
|
3460
|
+
/**
|
|
3461
|
+
* Revoke this worker wallet and proxy without deleting persisted data or
|
|
3462
|
+
* holds; call again after a failure to retry.
|
|
3463
|
+
*/
|
|
3464
|
+
dispose(): Promise<void>;
|
|
3465
|
+
private disposeWorker;
|
|
3433
3466
|
/** This tells the service worker to wipe all locally persisted wallet data. */
|
|
3434
3467
|
clear(): Promise<void>;
|
|
3435
3468
|
getAddress(): Promise<string>;
|
|
@@ -3735,6 +3768,17 @@ type SetupServiceWorkerOptions = {
|
|
|
3735
3768
|
*/
|
|
3736
3769
|
declare function setupServiceWorker(pathOrOptions: string | SetupServiceWorkerOptions): Promise<ServiceWorker>;
|
|
3737
3770
|
|
|
3771
|
+
/**
|
|
3772
|
+
* The Electrum client methods the providers call. `ElectrumWS` from
|
|
3773
|
+
* `ws-electrumx-client` satisfies it; naming the class would make the SDK's
|
|
3774
|
+
* declarations depend on its `ws` types, which pull in `@types/node`.
|
|
3775
|
+
*/
|
|
3776
|
+
interface ElectrumSocket {
|
|
3777
|
+
request<T = unknown>(method: string, ...params: (boolean | string | number | (string | number)[])[]): Promise<T>;
|
|
3778
|
+
subscribe(method: string, callback: (...payload: unknown[]) => unknown, ...params: (string | number)[]): Promise<void>;
|
|
3779
|
+
unsubscribe(method: string, ...params: (string | number)[]): Promise<unknown>;
|
|
3780
|
+
close(reason: string): Promise<boolean>;
|
|
3781
|
+
}
|
|
3738
3782
|
/**
|
|
3739
3783
|
* Default WebSocket Electrum endpoints. Mainnet, mutinynet, and signet
|
|
3740
3784
|
* point at Ark Labs–operated Fulcrum 2.1 deployments (which support
|
|
@@ -3834,7 +3878,7 @@ declare class WsElectrumChainSource {
|
|
|
3834
3878
|
private network;
|
|
3835
3879
|
private cachedTip;
|
|
3836
3880
|
private headersSubscribePromise;
|
|
3837
|
-
constructor(ws:
|
|
3881
|
+
constructor(ws: ElectrumSocket, network: Network);
|
|
3838
3882
|
/**
|
|
3839
3883
|
* Send N requests in parallel and aggregate the results, replacement
|
|
3840
3884
|
* for `ws.batchRequest`. The library's batchRequest is implemented as
|
|
@@ -3976,7 +4020,7 @@ declare class ElectrumOnchainProvider implements OnchainProvider {
|
|
|
3976
4020
|
private chain;
|
|
3977
4021
|
private mtpCache?;
|
|
3978
4022
|
private mtpInflight?;
|
|
3979
|
-
constructor(ws:
|
|
4023
|
+
constructor(ws: ElectrumSocket, network: Network);
|
|
3980
4024
|
getCoins(address: string): Promise<Coin[]>;
|
|
3981
4025
|
getFeeRate(): Promise<number | undefined>;
|
|
3982
4026
|
/**
|
|
@@ -5741,9 +5785,9 @@ declare namespace bignum {
|
|
|
5741
5785
|
* A scalar or whole struct/array value, flattened to dotted names (`owners.0.key`).
|
|
5742
5786
|
* Struct fields are checked at runtime so interface types need no index signature.
|
|
5743
5787
|
*/
|
|
5744
|
-
type ArkadeNestedValue = ArkadeArgValue | object;
|
|
5788
|
+
type ArkadeNestedValue = ArkadeArgValue$1 | object;
|
|
5745
5789
|
/** The argument tuple of a function, derived from its declared `inputs`. */
|
|
5746
|
-
type ArgsTuple<I extends readonly InputDef[]> = {
|
|
5790
|
+
type ArgsTuple<I extends readonly InputDef$1[]> = {
|
|
5747
5791
|
[K in keyof I]: ArkadeValueType[I[K]["type"]];
|
|
5748
5792
|
};
|
|
5749
5793
|
/**
|
|
@@ -5752,28 +5796,28 @@ type ArgsTuple<I extends readonly InputDef[]> = {
|
|
|
5752
5796
|
* stay loose.
|
|
5753
5797
|
*/
|
|
5754
5798
|
type SegmentArgs<S> = S extends {
|
|
5755
|
-
inputs: infer I extends readonly InputDef[];
|
|
5799
|
+
inputs: infer I extends readonly InputDef$1[];
|
|
5756
5800
|
} ? string extends I[number]["name"] ? ArkadeNestedValue[] : Extract<I[number]["name"], `${string}.${string}`> extends never ? ArgsTuple<I> : ArkadeNestedValue[] : [];
|
|
5757
5801
|
type WitnessSegment = "tapscript" | "arkadeScript";
|
|
5758
5802
|
/** A function's call argument: one key for each segment that declares non-empty `inputs`. */
|
|
5759
|
-
type CallArgs<F extends ArkadeFunction> = {
|
|
5803
|
+
type CallArgs<F extends ArkadeFunction$1> = {
|
|
5760
5804
|
[K in WitnessSegment as SegmentArgs<F[K]> extends readonly [] ? never : K]: SegmentArgs<F[K]>;
|
|
5761
5805
|
};
|
|
5762
5806
|
/** The call argument of a function of a widened {@link Program}. */
|
|
5763
5807
|
type LooseCallArgs = Partial<Record<WitnessSegment, readonly ArkadeNestedValue[]>>;
|
|
5764
5808
|
/** The call signature arguments for one function: nullary when no segment declares inputs. */
|
|
5765
|
-
type FnArgs<F extends ArkadeFunction> = keyof CallArgs<F> extends never ? [] : [args: CallArgs<F>];
|
|
5809
|
+
type FnArgs<F extends ArkadeFunction$1> = keyof CallArgs<F> extends never ? [] : [args: CallArgs<F>];
|
|
5766
5810
|
/** A contract's functions returning `R`: typed per function for a literal program, else loose. */
|
|
5767
|
-
type FunctionMap<P extends Program, R> = string extends keyof P["functions"] ? Record<string, (args?: LooseCallArgs) => R> : {
|
|
5811
|
+
type FunctionMap<P extends Program$1, R> = string extends keyof P["functions"] ? Record<string, (args?: LooseCallArgs) => R> : {
|
|
5768
5812
|
[K in keyof P["functions"]]: (...args: FnArgs<P["functions"][K]>) => R;
|
|
5769
5813
|
};
|
|
5770
5814
|
/**
|
|
5771
5815
|
* The statically-typed `functions` map of a contract: precisely typed per function for a literal
|
|
5772
5816
|
* program, the loose {@link CallableFunctions} for the widened {@link Program}.
|
|
5773
5817
|
*/
|
|
5774
|
-
type ContractFunctions<P extends Program> = FunctionMap<P, ArkadeTransactionBuilder>;
|
|
5818
|
+
type ContractFunctions<P extends Program$1> = FunctionMap<P, ArkadeTransactionBuilder>;
|
|
5775
5819
|
/** The statically-typed `unlock` map of a contract, typed like {@link ContractFunctions}. */
|
|
5776
|
-
type ContractUnlockers<P extends Program> = FunctionMap<P, ArkadeUnlocker>;
|
|
5820
|
+
type ContractUnlockers<P extends Program$1> = FunctionMap<P, ArkadeUnlocker>;
|
|
5777
5821
|
/** A spendable coin (VTXO) — outpoint + value. */
|
|
5778
5822
|
interface Utxo {
|
|
5779
5823
|
txid: string;
|
|
@@ -5814,9 +5858,9 @@ interface Utxo {
|
|
|
5814
5858
|
*/
|
|
5815
5859
|
interface ArkadeUnlocker {
|
|
5816
5860
|
readonly contract: ArkadeContract<any>;
|
|
5817
|
-
readonly fn: CompiledProgramFunction;
|
|
5861
|
+
readonly fn: CompiledProgramFunction$1;
|
|
5818
5862
|
/** Bound call inputs, by the segment whose witness names them. */
|
|
5819
|
-
readonly args: Readonly<Record<WitnessSegment, Record<string, ArkadeArgValue>>>;
|
|
5863
|
+
readonly args: Readonly<Record<WitnessSegment, Record<string, ArkadeArgValue$1>>>;
|
|
5820
5864
|
}
|
|
5821
5865
|
/**
|
|
5822
5866
|
* An asset-group transfer attached to a spend: which inputs supply the asset and
|
|
@@ -5888,7 +5932,7 @@ interface ArkadeConnectCommonOptions {
|
|
|
5888
5932
|
* `{ network: "bitcoin" }`, the emulator).
|
|
5889
5933
|
*/
|
|
5890
5934
|
interface ArkadeConnectServiceOptions extends ArkadeConnectCommonOptions {
|
|
5891
|
-
service: ArkadeService;
|
|
5935
|
+
service: ArkadeService$1;
|
|
5892
5936
|
/**
|
|
5893
5937
|
* Persist contracts here. The client builds and owns a contract manager over it (with an
|
|
5894
5938
|
* in-memory VTXO store), enabling {@link ArkadeContract.register} and
|
|
@@ -6011,7 +6055,7 @@ declare class Arkade {
|
|
|
6011
6055
|
* artifacts reserve the operator key and exit delay to the connected operator.
|
|
6012
6056
|
* Struct and array params are passed whole by name (see {@link ArkadeNestedValue}).
|
|
6013
6057
|
*/
|
|
6014
|
-
contract<const P extends Program>(program: P, args?: Record<string, ArkadeNestedValue>): ArkadeContract<P>;
|
|
6058
|
+
contract<const P extends Program$1>(program: P, args?: Record<string, ArkadeNestedValue>): ArkadeContract<P>;
|
|
6015
6059
|
/**
|
|
6016
6060
|
* Start a spend with no function of its own: each `.from(coins, contract.unlock.<name>(...))`
|
|
6017
6061
|
* names the function its coins are spent through.
|
|
@@ -6019,7 +6063,7 @@ declare class Arkade {
|
|
|
6019
6063
|
transaction(): ArkadeTransactionBuilder;
|
|
6020
6064
|
}
|
|
6021
6065
|
/** A resolved, instantiated Arkade contract. */
|
|
6022
|
-
declare class ArkadeContract<P extends Program = Program> {
|
|
6066
|
+
declare class ArkadeContract<P extends Program$1 = Program$1> {
|
|
6023
6067
|
readonly client: Arkade;
|
|
6024
6068
|
readonly program: P;
|
|
6025
6069
|
/** The compiled taproot tree of spending-path leaves. */
|
|
@@ -6027,12 +6071,12 @@ declare class ArkadeContract<P extends Program = Program> {
|
|
|
6027
6071
|
/** Encoded taproot tree (shared spend context for every path). */
|
|
6028
6072
|
readonly tapTree: Uint8Array;
|
|
6029
6073
|
/** The signer keys the program was compiled against. */
|
|
6030
|
-
readonly keys: ProgramKeys;
|
|
6074
|
+
readonly keys: ProgramKeys$1;
|
|
6031
6075
|
/** Spending paths in declaration order. */
|
|
6032
6076
|
private readonly compiled;
|
|
6033
6077
|
/** Constructor bindings by flattened name (`owners.0.key`), as persisted. */
|
|
6034
|
-
readonly args: Record<string, ArkadeParamValue>;
|
|
6035
|
-
constructor(client: Arkade, program: P, args?: Record<string, ArkadeNestedValue>, keys?: ProgramKeys);
|
|
6078
|
+
readonly args: Record<string, ArkadeParamValue$1>;
|
|
6079
|
+
constructor(client: Arkade, program: P, args?: Record<string, ArkadeNestedValue>, keys?: ProgramKeys$1);
|
|
6036
6080
|
/**
|
|
6037
6081
|
* Rebuild a callable contract from a persisted `"arkade"` row. Compiles with the stored keys,
|
|
6038
6082
|
* not the client's current ones, so script and address survive a rotation of the operator's signer.
|
|
@@ -6218,6 +6262,27 @@ declare function renewProgramContractOutputs(client: Arkade, targets: ProgramCon
|
|
|
6218
6262
|
* @module arkade
|
|
6219
6263
|
*/
|
|
6220
6264
|
|
|
6265
|
+
type ScriptType = ScriptType$1;
|
|
6266
|
+
type ArkadeArgType = ArkadeArgType$1;
|
|
6267
|
+
type ArkadeArgValue = ArkadeArgValue$1;
|
|
6268
|
+
type ArkadeContractParams = ArkadeContractParams$1;
|
|
6269
|
+
type ArkadeFunction = ArkadeFunction$1;
|
|
6270
|
+
type ArkadeParamValue = ArkadeParamValue$1;
|
|
6271
|
+
type ArkadeSegment = ArkadeSegment$1;
|
|
6272
|
+
type AsmToken = AsmToken$1;
|
|
6273
|
+
type CompiledProgramFunction = CompiledProgramFunction$1;
|
|
6274
|
+
type InputDef = InputDef$1;
|
|
6275
|
+
type InputRef = InputRef$1;
|
|
6276
|
+
type Program = Program$1;
|
|
6277
|
+
type ProgramKeys = ProgramKeys$1;
|
|
6278
|
+
type SignerRef = SignerRef$1;
|
|
6279
|
+
type SourceRange = SourceRange$1;
|
|
6280
|
+
type TapscriptSegment = TapscriptSegment$1;
|
|
6281
|
+
type TweakedSigner = TweakedSigner$1;
|
|
6282
|
+
type WitnessRef = WitnessRef$1;
|
|
6283
|
+
type ArkadeService = ArkadeService$1;
|
|
6284
|
+
type ResolvedArkadeService = ResolvedArkadeService$1;
|
|
6285
|
+
|
|
6221
6286
|
declare const index_ARKADE_OP: typeof ARKADE_OP;
|
|
6222
6287
|
declare const index_ARKADE_OPCODES: typeof ARKADE_OPCODES;
|
|
6223
6288
|
declare const index_ARKADE_OPCODE_NAMES: typeof ARKADE_OPCODE_NAMES;
|
|
@@ -6225,61 +6290,61 @@ declare const index_ARKADE_OPCODE_VALUES: typeof ARKADE_OPCODE_VALUES;
|
|
|
6225
6290
|
declare const index_ARKADE_OPS: typeof ARKADE_OPS;
|
|
6226
6291
|
type index_Arkade = Arkade;
|
|
6227
6292
|
declare const index_Arkade: typeof Arkade;
|
|
6228
|
-
|
|
6229
|
-
|
|
6293
|
+
type index_ArkadeArgType = ArkadeArgType;
|
|
6294
|
+
type index_ArkadeArgValue = ArkadeArgValue;
|
|
6230
6295
|
type index_ArkadeBatchInput = ArkadeBatchInput;
|
|
6231
6296
|
type index_ArkadeConnectOptions = ArkadeConnectOptions;
|
|
6232
6297
|
type index_ArkadeConnectProviderOptions = ArkadeConnectProviderOptions;
|
|
6233
6298
|
type index_ArkadeConnectServiceOptions = ArkadeConnectServiceOptions;
|
|
6234
|
-
type index_ArkadeContract<P extends Program = Program> = ArkadeContract<P>;
|
|
6299
|
+
type index_ArkadeContract<P extends Program$1 = Program$1> = ArkadeContract<P>;
|
|
6235
6300
|
declare const index_ArkadeContract: typeof ArkadeContract;
|
|
6236
6301
|
type index_ArkadeContractEvent<T extends ArkadeContractEventType = ArkadeContractEventType> = ArkadeContractEvent<T>;
|
|
6237
6302
|
type index_ArkadeContractEventType = ArkadeContractEventType;
|
|
6238
|
-
|
|
6303
|
+
type index_ArkadeContractParams = ArkadeContractParams;
|
|
6239
6304
|
type index_ArkadeContractSubscription = ArkadeContractSubscription;
|
|
6240
6305
|
type index_ArkadeExtendedCoin = ArkadeExtendedCoin;
|
|
6241
6306
|
type index_ArkadeExtendedVirtualCoin = ArkadeExtendedVirtualCoin;
|
|
6242
|
-
|
|
6307
|
+
type index_ArkadeFunction = ArkadeFunction;
|
|
6243
6308
|
type index_ArkadeNestedValue = ArkadeNestedValue;
|
|
6244
|
-
|
|
6309
|
+
type index_ArkadeParamValue = ArkadeParamValue;
|
|
6245
6310
|
declare const index_ArkadeProgramScript: typeof ArkadeProgramScript;
|
|
6246
6311
|
declare const index_ArkadeScript: typeof ArkadeScript;
|
|
6247
6312
|
type index_ArkadeScriptOP = ArkadeScriptOP;
|
|
6248
6313
|
type index_ArkadeScriptType = ArkadeScriptType;
|
|
6249
|
-
|
|
6314
|
+
type index_ArkadeSegment = ArkadeSegment;
|
|
6250
6315
|
type index_ArkadeServerProvider = ArkadeServerProvider;
|
|
6251
|
-
|
|
6316
|
+
type index_ArkadeService = ArkadeService;
|
|
6252
6317
|
type index_ArkadeSpendResult = ArkadeSpendResult;
|
|
6253
6318
|
type index_ArkadeTransactionBuilder = ArkadeTransactionBuilder;
|
|
6254
6319
|
declare const index_ArkadeTransactionBuilder: typeof ArkadeTransactionBuilder;
|
|
6255
6320
|
type index_ArkadeUnlocker = ArkadeUnlocker;
|
|
6256
|
-
|
|
6321
|
+
type index_AsmToken = AsmToken;
|
|
6257
6322
|
type index_AssetSpec = AssetSpec;
|
|
6258
6323
|
type index_CallableFunctions = CallableFunctions;
|
|
6259
|
-
|
|
6324
|
+
type index_CompiledProgramFunction = CompiledProgramFunction;
|
|
6260
6325
|
type index_ContractArtifact = ContractArtifact;
|
|
6261
6326
|
type index_ContractDebugInfo = ContractDebugInfo;
|
|
6262
|
-
type index_ContractFunctions<P extends Program> = ContractFunctions<P>;
|
|
6263
|
-
type index_ContractUnlockers<P extends Program> = ContractUnlockers<P>;
|
|
6264
|
-
|
|
6265
|
-
|
|
6327
|
+
type index_ContractFunctions<P extends Program$1> = ContractFunctions<P>;
|
|
6328
|
+
type index_ContractUnlockers<P extends Program$1> = ContractUnlockers<P>;
|
|
6329
|
+
type index_InputDef = InputDef;
|
|
6330
|
+
type index_InputRef = InputRef;
|
|
6266
6331
|
declare const index_OP: typeof OP;
|
|
6267
6332
|
declare const index_OPCODE_NAMES: typeof OPCODE_NAMES;
|
|
6268
6333
|
declare const index_OPCODE_VALUES: typeof OPCODE_VALUES;
|
|
6269
|
-
|
|
6334
|
+
type index_Program = Program;
|
|
6270
6335
|
type index_ProgramContractRenewTarget = ProgramContractRenewTarget;
|
|
6271
|
-
|
|
6272
|
-
|
|
6336
|
+
type index_ProgramKeys = ProgramKeys;
|
|
6337
|
+
type index_ResolvedArkadeService = ResolvedArkadeService;
|
|
6273
6338
|
declare const index_SUPPORTED_PROGRAM_VERSION: typeof SUPPORTED_PROGRAM_VERSION;
|
|
6274
6339
|
declare const index_Script: typeof Script;
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6340
|
+
type index_ScriptType = ScriptType;
|
|
6341
|
+
type index_SignerRef = SignerRef;
|
|
6342
|
+
type index_SourceRange = SourceRange;
|
|
6343
|
+
type index_TapscriptSegment = TapscriptSegment;
|
|
6344
|
+
type index_TweakedSigner = TweakedSigner;
|
|
6280
6345
|
declare const index_UnsupportedProgramVersionError: typeof UnsupportedProgramVersionError;
|
|
6281
6346
|
type index_Utxo = Utxo;
|
|
6282
|
-
|
|
6347
|
+
type index_WitnessRef = WitnessRef;
|
|
6283
6348
|
declare const index_arkadeScriptHash: typeof arkadeScriptHash;
|
|
6284
6349
|
declare const index_arkadeWitnessHash: typeof arkadeWitnessHash;
|
|
6285
6350
|
declare const index_asmToBytes: typeof asmToBytes;
|
|
@@ -6302,7 +6367,7 @@ declare const index_toASM: typeof toASM;
|
|
|
6302
6367
|
declare const index_validateProgram: typeof validateProgram;
|
|
6303
6368
|
declare const index_witnessRefToBytes: typeof witnessRefToBytes;
|
|
6304
6369
|
declare namespace index {
|
|
6305
|
-
export { index_ARKADE_OP as ARKADE_OP, index_ARKADE_OPCODES as ARKADE_OPCODES, index_ARKADE_OPCODE_NAMES as ARKADE_OPCODE_NAMES, index_ARKADE_OPCODE_VALUES as ARKADE_OPCODE_VALUES, index_ARKADE_OPS as ARKADE_OPS, index_Arkade as Arkade, index_ArkadeArgType as ArkadeArgType, index_ArkadeArgValue as ArkadeArgValue, type index_ArkadeBatchInput as ArkadeBatchInput, type index_ArkadeConnectOptions as ArkadeConnectOptions, type index_ArkadeConnectProviderOptions as ArkadeConnectProviderOptions, type index_ArkadeConnectServiceOptions as ArkadeConnectServiceOptions, index_ArkadeContract as ArkadeContract, type index_ArkadeContractEvent as ArkadeContractEvent, type index_ArkadeContractEventType as ArkadeContractEventType, index_ArkadeContractParams as ArkadeContractParams, type index_ArkadeContractSubscription as ArkadeContractSubscription, type index_ArkadeExtendedCoin as ArkadeExtendedCoin, type index_ArkadeExtendedVirtualCoin as ArkadeExtendedVirtualCoin, index_ArkadeFunction as ArkadeFunction, type index_ArkadeNestedValue as ArkadeNestedValue, index_ArkadeParamValue as ArkadeParamValue, index_ArkadeProgramScript as ArkadeProgramScript, index_ArkadeScript as ArkadeScript, type index_ArkadeScriptOP as ArkadeScriptOP, type index_ArkadeScriptType as ArkadeScriptType, index_ArkadeSegment as ArkadeSegment, type index_ArkadeServerProvider as ArkadeServerProvider, index_ArkadeService as ArkadeService, type index_ArkadeSpendResult as ArkadeSpendResult, index_ArkadeTransactionBuilder as ArkadeTransactionBuilder, type index_ArkadeUnlocker as ArkadeUnlocker, index_AsmToken as AsmToken, type index_AssetSpec as AssetSpec, bignum as BigNum, type index_CallableFunctions as CallableFunctions, index_CompiledProgramFunction as CompiledProgramFunction, type index_ContractArtifact as ContractArtifact, type index_ContractDebugInfo as ContractDebugInfo, type index_ContractFunctions as ContractFunctions, type index_ContractUnlockers as ContractUnlockers, index_InputDef as InputDef, index_InputRef as InputRef, index_OP as OP, index_OPCODE_NAMES as OPCODE_NAMES, index_OPCODE_VALUES as OPCODE_VALUES, index_Program as Program, type index_ProgramContractRenewTarget as ProgramContractRenewTarget, index_ProgramKeys as ProgramKeys, index_ResolvedArkadeService as ResolvedArkadeService, index_SUPPORTED_PROGRAM_VERSION as SUPPORTED_PROGRAM_VERSION, index_Script as Script, index_ScriptType as ScriptType, index_SignerRef as SignerRef, index_SourceRange as SourceRange, index_TapscriptSegment as TapscriptSegment, index_TweakedSigner as TweakedSigner, index_UnsupportedProgramVersionError as UnsupportedProgramVersionError, type index_Utxo as Utxo, index_WitnessRef as WitnessRef, index_arkadeScriptHash as arkadeScriptHash, index_arkadeWitnessHash as arkadeWitnessHash, index_asmToBytes as asmToBytes, index_bytesToASM as bytesToASM, index_computeArkadeScriptPublicKey as computeArkadeScriptPublicKey, index_createArkadeBatchHandler as createArkadeBatchHandler, index_deserializeArkadeContractParams as deserializeArkadeContractParams, index_fromASM as fromASM, index_getOpcodeName as getOpcodeName, index_getOpcodeValue as getOpcodeValue, index_isContractArtifact as isContractArtifact, index_parseArtifact as parseArtifact, index_programFromArtifact as programFromArtifact, index_renewProgramContractOutputs as renewProgramContractOutputs, index_resolveArkadeService as resolveArkadeService, index_resolveAsm as resolveAsm, index_serializeArkadeContractParams as serializeArkadeContractParams, index_stringifyArtifact as stringifyArtifact, index_toASM as toASM, index_validateProgram as validateProgram, index_witnessRefToBytes as witnessRefToBytes };
|
|
6370
|
+
export { index_ARKADE_OP as ARKADE_OP, index_ARKADE_OPCODES as ARKADE_OPCODES, index_ARKADE_OPCODE_NAMES as ARKADE_OPCODE_NAMES, index_ARKADE_OPCODE_VALUES as ARKADE_OPCODE_VALUES, index_ARKADE_OPS as ARKADE_OPS, index_Arkade as Arkade, type index_ArkadeArgType as ArkadeArgType, type index_ArkadeArgValue as ArkadeArgValue, type index_ArkadeBatchInput as ArkadeBatchInput, type index_ArkadeConnectOptions as ArkadeConnectOptions, type index_ArkadeConnectProviderOptions as ArkadeConnectProviderOptions, type index_ArkadeConnectServiceOptions as ArkadeConnectServiceOptions, index_ArkadeContract as ArkadeContract, type index_ArkadeContractEvent as ArkadeContractEvent, type index_ArkadeContractEventType as ArkadeContractEventType, type index_ArkadeContractParams as ArkadeContractParams, type index_ArkadeContractSubscription as ArkadeContractSubscription, type index_ArkadeExtendedCoin as ArkadeExtendedCoin, type index_ArkadeExtendedVirtualCoin as ArkadeExtendedVirtualCoin, type index_ArkadeFunction as ArkadeFunction, type index_ArkadeNestedValue as ArkadeNestedValue, type index_ArkadeParamValue as ArkadeParamValue, index_ArkadeProgramScript as ArkadeProgramScript, index_ArkadeScript as ArkadeScript, type index_ArkadeScriptOP as ArkadeScriptOP, type index_ArkadeScriptType as ArkadeScriptType, type index_ArkadeSegment as ArkadeSegment, type index_ArkadeServerProvider as ArkadeServerProvider, type index_ArkadeService as ArkadeService, type index_ArkadeSpendResult as ArkadeSpendResult, index_ArkadeTransactionBuilder as ArkadeTransactionBuilder, type index_ArkadeUnlocker as ArkadeUnlocker, type index_AsmToken as AsmToken, type index_AssetSpec as AssetSpec, bignum as BigNum, type index_CallableFunctions as CallableFunctions, type index_CompiledProgramFunction as CompiledProgramFunction, type index_ContractArtifact as ContractArtifact, type index_ContractDebugInfo as ContractDebugInfo, type index_ContractFunctions as ContractFunctions, type index_ContractUnlockers as ContractUnlockers, type index_InputDef as InputDef, type index_InputRef as InputRef, index_OP as OP, index_OPCODE_NAMES as OPCODE_NAMES, index_OPCODE_VALUES as OPCODE_VALUES, type index_Program as Program, type index_ProgramContractRenewTarget as ProgramContractRenewTarget, type index_ProgramKeys as ProgramKeys, type index_ResolvedArkadeService as ResolvedArkadeService, index_SUPPORTED_PROGRAM_VERSION as SUPPORTED_PROGRAM_VERSION, index_Script as Script, type index_ScriptType as ScriptType, type index_SignerRef as SignerRef, type index_SourceRange as SourceRange, type index_TapscriptSegment as TapscriptSegment, type index_TweakedSigner as TweakedSigner, index_UnsupportedProgramVersionError as UnsupportedProgramVersionError, type index_Utxo as Utxo, type index_WitnessRef as WitnessRef, index_arkadeScriptHash as arkadeScriptHash, index_arkadeWitnessHash as arkadeWitnessHash, index_asmToBytes as asmToBytes, index_bytesToASM as bytesToASM, index_computeArkadeScriptPublicKey as computeArkadeScriptPublicKey, index_createArkadeBatchHandler as createArkadeBatchHandler, index_deserializeArkadeContractParams as deserializeArkadeContractParams, index_fromASM as fromASM, index_getOpcodeName as getOpcodeName, index_getOpcodeValue as getOpcodeValue, index_isContractArtifact as isContractArtifact, index_parseArtifact as parseArtifact, index_programFromArtifact as programFromArtifact, index_renewProgramContractOutputs as renewProgramContractOutputs, index_resolveArkadeService as resolveArkadeService, index_resolveAsm as resolveAsm, index_serializeArkadeContractParams as serializeArkadeContractParams, index_stringifyArtifact as stringifyArtifact, index_toASM as toASM, index_validateProgram as validateProgram, index_witnessRefToBytes as witnessRefToBytes };
|
|
6306
6371
|
}
|
|
6307
6372
|
|
|
6308
6373
|
/** Known BIP21 parameters including Arkade-specific extensions. */
|
|
@@ -6663,7 +6728,11 @@ declare class OnchainCosignPreflightError extends Error {
|
|
|
6663
6728
|
cause?: unknown;
|
|
6664
6729
|
});
|
|
6665
6730
|
}
|
|
6666
|
-
/**
|
|
6731
|
+
/**
|
|
6732
|
+
* True only when the coins were definitely not spent, so paying another way is safe, as
|
|
6733
|
+
* `sendOnchain` and `cosignOnchainTx` callers may. `Ramps.offboardExact` still rethrows every
|
|
6734
|
+
* `OnchainCosignRejectedError` after signing (see README "Onchain cosigning").
|
|
6735
|
+
*/
|
|
6667
6736
|
declare function isCosignFallback(e: unknown): boolean;
|
|
6668
6737
|
|
|
6669
6738
|
/**
|
|
@@ -6910,4 +6979,4 @@ declare class AssetManager extends ReadonlyAssetManager implements IAssetManager
|
|
|
6910
6979
|
private burnWith;
|
|
6911
6980
|
}
|
|
6912
6981
|
|
|
6913
|
-
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkNote, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, Arkade, type ArkadeBatchInput, ArkadeBroadcaster, ArkadeCashClaimResult, ArkadeCashRecord, type ArkadeCashRequest, type ArkadeCashResponse, type ArkadeCashStatus, type ArkadeCashStatusReport, ArkadeCashTx, ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, ArkadeInfo, ArkadeReader, ArkadeService, Asset, AssetDetails, AssetManager, AtomicWalletState, BIP21, BIP21Error, type BIP21Params, type BIP21ParseResult, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, BatchExpiryPolicy, BatchRegistration, BatchRegistrationPageFilter, BatchRegistrationRepository, type BoardingExpiry, BurnParams, CSVMultisigTapscript, CachingArkProvider, CachingOperatorProvider, ChainTx, Coin, ConditionWitness, ConnectionDisposedError, Contract, ContractEvent, ContractFilter, ContractRepository, ContractSyncState, ContractVtxoEvent, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_PASSKEY_LABEL, DatabaseUpgradeBlockedError, DelegateInfo, DelegateNotConfiguredError, DescriptorIdentity, type DescriptorIdentityOptions, type DescriptorOptions, DescriptorProvider, type DescriptorSigner, DescriptorSigningProviderMissingError, DescriptorSigningRequest, type DeterministicSigner, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, type BlockHeader as ElectrumBlockHeader, ElectrumOnchainProvider, type TransactionHistory as ElectrumTransactionHistory, type Unspent as ElectrumUnspent, type EmulatorEntry, EmulatorPacket, EmulatorProvider, EncodedVtxoScript, Estimator, type ExcludableVtxo, type ExecutorEvent, type ExecutorOptions, type ExitDelay, type ExitFeeWallet, type ExitMode, type ExitOptions, type ExitPackage, type ExitQuote, type ExitStep, type ExitTotals, type ExitVtxoInfo, ExplorerTransaction, ExtendedCoin, ExtendedContractVtxo, ExtendedVirtualCoin, Extension, ExtensionNotFoundError, type ExtensionPacket, FeeAmount, FeeInfo, FeeOutput, FetchError, GetNewAddressesOptions, GetOperatorInfoOptions, GetSpendableVtxosFilter, GetVtxosFilter, GetVtxosOptions, HDAllocationCapable, HDDescriptorProvider, type HDDeterministicSignCapable, HDWalletCapable, IAssetManager, IContractManager, IDelegateManager, IExecutorManager, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryBatchRegistrationRepository, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBBatchRegistrationRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBVtxoReservationRepository, IndexerProvider, InputExpiryFloor, IntentFeeConfig, IssuanceParams, IssuanceResult, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, type ManagedConnection, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, NewAddress, NormalizedExtendedVirtualCoin, NormalizedVtxoPage, OffchainInput, type OffchainTx, type OnExitObserved, OnchainCosignPreflightError, OnchainInput, OnchainProvider, OnchainWallet, OperatorInfo, OperatorProvider, Outpoint, OversizedChangeError, P2A, PageRequest, PageResult, PaginationOptions, type ParsedArkContract, PasskeyCancelled, type PasskeyMnemonic, type PasskeySource, PasskeyUnconfirmed, PathContext, PathSelection, type PaymentHandle, type PaymentOption, type PaymentRail, type PaymentRequest, PaymentRouter, type PaymentStatus, PrevArkTxField, PrevoutTxField, PrfUnavailable, type PrfUnavailableReason, Proof, ProviderConnectionState, type ProvisionedClaimSecret, type ProvisionedKey, READ_TIMEOUT_MS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlyWallet, ReadonlyWalletError, Recipient, ReissuanceParams, RelativeTimelock, RenewVtxosOptions, type RequestEnvelope, type ResponseEnvelope, type RouteQuote, type RouteResult, type RouterContext, type RouterPreferences, ScriptVtxoCursor, ScriptVtxoPageOptions, SeedIdentity, type SeedIdentityOptions, SendBitcoinParams, SendDeadlineExceededError, SendOnchainParams, SendParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignedProof, SignerSession, SignerStatus, StaticDescriptorProvider, Status, StorageConfig, StoredVtxo, StoredVtxoReservation, TapLeafScript, Transaction, TransactionHistoryPageCursor, TransactionHistoryPageFilter, TreeNonces, TreePartialSigs, TxNotificationEvent, TxTree, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, UnsupportedProgramVersionError, type VSize, type VerifyServerSignatures, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, type VtxoExclusion, VtxoReservation, VtxoReservationRepository, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WalletRepository, type WalletRestoreHook, type WalletUpdate, WatchedScript, type WebAuthnClient, WsElectrumChainSource, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, index as arkade, assembleBtcdTaprootTree, assertFinalCommitmentMatchesValidated, assertNoAssets, assertNoSelection, assertNonNegativeMs, assertSendDeadline, assertSendableAmount, assertSubmittedArkTxid, assertTimerMs, assertValidServerUnrollScript, index$1 as asset, assetsOf, awaitTransaction, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, buildVersion, captureSendDeadline, claimWithPreimageIdentity, classifyBoardingExpiry, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultPaymentRouter, createManagedConnection, createPrfPasskey, decodeArkContract, decodeBoardingExit, deleteByIndex, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, deserializeExitPackage, encodeArkContract, evaluatePrf, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getArkPsbtFields, hasBoardingTxExpired, identityDescriptor, invoiceTarget, isArkContract, isBtcAddress, isCltvSatisfied, isContractGenericallySpendable, isCosignFallback, isCsvSpendable, isDeterministicSigner, isHDDeterministicSignCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isRetryableProviderError, isValidArkAddress, logExcludedVtxos, makeHandle, matchServerCheckpoints, mnemonicFromPrf, normalizeToDescriptor, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, parseHDDescriptor, prfSupport, promisifyRequest, provisionClaimSecret, provisionRefundKey, readArkadeCash, registerWalletRestoreHook, resolveAssetAmount, resolveSendAmount, sdkVersion, selectCoinsWithAsset, selectionOf, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, signAndSubmitOffchainTx, submitViaEmulator, timelockToSequence, toXOnly, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, walletFeeSource };
|
|
6982
|
+
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkNote, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, Arkade, type ArkadeBatchInput, ArkadeBroadcaster, ArkadeCashClaimResult, ArkadeCashRecord, type ArkadeCashRequest, type ArkadeCashResponse, type ArkadeCashStatus, type ArkadeCashStatusReport, ArkadeCashTx, ArkadeContractParams$1 as ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, ArkadeInfo, ArkadeReader, ArkadeService$1 as ArkadeService, Asset, AssetDetails, AssetManager, AtomicWalletState, BIP21, BIP21Error, type BIP21Params, type BIP21ParseResult, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, BatchExpiryPolicy, BatchRegistration, BatchRegistrationPageFilter, BatchRegistrationRepository, type BoardingExpiry, BurnParams, CSVMultisigTapscript, CachingArkProvider, CachingOperatorProvider, ChainTx, Coin, ConditionWitness, ConnectionDisposedError, Contract, ContractEvent, ContractFilter, ContractRepository, ContractSyncState, ContractVtxoEvent, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_PASSKEY_LABEL, DatabaseUpgradeBlockedError, DelegateInfo, DelegateNotConfiguredError, DescriptorIdentity, type DescriptorIdentityOptions, type DescriptorOptions, DescriptorProvider, type DescriptorSigner, DescriptorSigningProviderMissingError, DescriptorSigningRequest, type DeterministicSigner, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, type BlockHeader as ElectrumBlockHeader, ElectrumOnchainProvider, type ElectrumSocket, type TransactionHistory as ElectrumTransactionHistory, type Unspent as ElectrumUnspent, type EmulatorEntry, EmulatorPacket, EmulatorProvider, EncodedVtxoScript, Estimator, type ExcludableVtxo, type ExecutorEvent, type ExecutorOptions, type ExitDelay, type ExitFeeWallet, type ExitMode, type ExitOptions, type ExitPackage, type ExitQuote, type ExitStep, type ExitTotals, type ExitVtxoInfo, ExplorerTransaction, ExtendedCoin, ExtendedContractVtxo, ExtendedVirtualCoin, Extension, ExtensionNotFoundError, type ExtensionPacket, FeeAmount, FeeInfo, FeeOutput, FetchError, GetNewAddressesOptions, GetOperatorInfoOptions, GetSpendableVtxosFilter, GetVtxosFilter, GetVtxosOptions, HDAllocationCapable, HDDescriptorProvider, type HDDeterministicSignCapable, HDWalletCapable, IAssetManager, IContractManager, IDelegateManager, IExecutorManager, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryBatchRegistrationRepository, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBBatchRegistrationRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBVtxoReservationRepository, IndexerProvider, InputExpiryFloor, IntentFeeConfig, IssuanceParams, IssuanceResult, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, type ManagedConnection, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, NewAddress, NormalizedExtendedVirtualCoin, NormalizedVtxoPage, OffchainInput, type OffchainTx, type OnExitObserved, OnchainCosignPreflightError, OnchainInput, OnchainProvider, OnchainWallet, OperatorInfo, OperatorProvider, Outpoint, OversizedChangeError, P2A, PageRequest, PageResult, PaginationOptions, type ParsedArkContract, PasskeyCancelled, type PasskeyMnemonic, type PasskeySource, PasskeyUnconfirmed, PathContext, PathSelection, type PaymentHandle, type PaymentOption, type PaymentRail, type PaymentRequest, PaymentRouter, type PaymentStatus, PrevArkTxField, PrevoutTxField, PrfUnavailable, type PrfUnavailableReason, Proof, ProviderConnectionState, type ProvisionedClaimSecret, type ProvisionedKey, READ_TIMEOUT_MS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlyWallet, ReadonlyWalletError, Recipient, ReissuanceParams, RelativeTimelock, RenewVtxosOptions, type RequestEnvelope, type ResponseEnvelope, type RouteQuote, type RouteResult, type RouterContext, type RouterPreferences, ScriptVtxoCursor, ScriptVtxoPageOptions, SeedIdentity, type SeedIdentityOptions, SendBitcoinParams, SendDeadlineExceededError, SendOnchainParams, SendParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignedProof, SignerSession, SignerStatus, StaticDescriptorProvider, Status, StorageConfig, StoredVtxo, StoredVtxoReservation, TapLeafScript, Transaction, TransactionHistoryPageCursor, TransactionHistoryPageFilter, TreeNonces, TreePartialSigs, TxNotificationEvent, TxTree, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, UnsupportedProgramVersionError, type VSize, type VerifyServerSignatures, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, type VtxoExclusion, VtxoReservation, VtxoReservationRepository, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WalletRepository, type WalletRestoreHook, type WalletUpdate, WatchedScript, type WebAuthnClient, WsElectrumChainSource, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, index as arkade, assembleBtcdTaprootTree, assertFinalCommitmentMatchesValidated, assertNoAssets, assertNoSelection, assertNonNegativeMs, assertSendDeadline, assertSendableAmount, assertSubmittedArkTxid, assertTimerMs, assertValidServerUnrollScript, index$1 as asset, assetsOf, awaitTransaction, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, buildVersion, captureSendDeadline, claimWithPreimageIdentity, classifyBoardingExpiry, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultPaymentRouter, createManagedConnection, createPrfPasskey, decodeArkContract, decodeBoardingExit, deleteByIndex, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, deserializeExitPackage, encodeArkContract, evaluatePrf, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getArkPsbtFields, hasBoardingTxExpired, identityDescriptor, invoiceTarget, isArkContract, isBtcAddress, isCltvSatisfied, isContractGenericallySpendable, isCosignFallback, isCsvSpendable, isDeterministicSigner, isHDDeterministicSignCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isRetryableProviderError, isValidArkAddress, logExcludedVtxos, makeHandle, matchServerCheckpoints, mnemonicFromPrf, normalizeToDescriptor, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, parseHDDescriptor, prfSupport, promisifyRequest, provisionClaimSecret, provisionRefundKey, readArkadeCash, registerWalletRestoreHook, resolveAssetAmount, resolveSendAmount, sdkVersion, selectCoinsWithAsset, selectionOf, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, signAndSubmitOffchainTx, submitViaEmulator, timelockToSequence, toXOnly, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, walletFeeSource };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, AbortError, ActivityRegistry, AmbiguousRouteError, ArkNote, Arkade, ArkadeCash, ArkadeCashCreateError, ArkadeCashOperatorMismatchError, AssetManager, BATCH_REGISTRATION_TERMINAL_STATES, BIP21, BIP21Error, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, CachingArkProvider, CachingOperatorProvider, ChainedTxType, ConnectionDisposedError, ContractManager, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_SECONDS, DEFAULT_PASSKEY_LABEL, DELEGATION_EXPIRES_KEY, DELEGATION_LOCAL_STATUS, DELEGATION_REGISTERED_KEY, DELEGATION_STATUS_KEY, DatabaseUpgradeBlockedError, DelegateManagerImpl, DelegateNotConfiguredError, DescriptorIdentity, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EmulatorPacket, EsploraProvider, Estimator, ExecutorManagerImpl, ExecutorRequestError, Extension, ExtensionNotFoundError, ForeignDescriptorError, HDDescriptorProvider, INTENT_TERMINAL_STATES, InMemoryBatchRegistrationRepository, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBBatchRegistrationRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBVtxoReservationRepository, IndexedDBWalletRepository, KeyringDescriptorProvider, MAX_PAGE_SIZE, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainCosignPreflightError, OnchainWallet, OversizedChangeError, P2A, PasskeyCancelled, PasskeyUnconfirmed, PaymentRouter, PrevTxUnavailableError, PrfUnavailable, REGTEST_MIN_BATCH_EXPIRY_SECONDS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestEmulatorProvider, RestExecutorProvider, SeedIdentity, SendDeadlineExceededError, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, StaticDescriptorProvider, TreeSignerSession, TxTree, TxType, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, VtxoManager, VtxoReservedError, Wallet, WalletCannotAllocateAddressError, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WsElectrumChainSource, addArkadeCashRecord, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, arkade_exports as arkade, arkadeCashId, arkadeCashResolver, assertFinalCommitmentMatchesValidated, assertNoAssets, assertNoSelection, assertPageRequest, assertRecipientArkadeAddress, assertSendDeadline, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, assetsOf, attachPrevArkTxs, attachPrevoutTxs, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, captureSendDeadline, claimWithPreimageIdentity, classifyBoardingExpiry, closeDatabase, collabExitResolver, collectBatchRegistrations, collectContracts, collectIntents, collectPages, collectScriptVtxos, collectTransactionHistory, collectUtxos, collectVtxos, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createArkadeCashTracker, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, createPrfPasskey, decodeArkContract, decodeBoardingExit, defaultBatchExpiryPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, evaluatePrf, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getRandomId, hasBoardingTxExpired, hasCandidates, invoiceTarget, isAddressAllocationCapable, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isContractVtxoEvent, isCosignFallback, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalBatchRegistrationState, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, iteratePages, logExcludedVtxos, makeHandle, matchServerCheckpoints, mergeArkadeCashRecord, mnemonicFromPrf, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, pageResult, prfSupport, promisifyRequest, provisionClaimSecret, provisionRefundKey, readArkadeCash, registerWalletRestoreHook, resolveAssetAmount, resolveBatchExpiryPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, selectCoinsWithAsset, selectVirtualCoins, selectionOf, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signingDescriptorIndex, strictSigningDescriptorIndex, submitViaEmulator, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, walletFeeSource, watchExecutorContracts, withPrevTxs } from './chunk-
|
|
2
|
-
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, IndexerUtxosUnsupportedError, RestIndexerProvider, asset_exports as asset } from './chunk-
|
|
3
|
-
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, ExecutorContractHandler, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor } from './chunk-
|
|
1
|
+
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, AbortError, ActivityRegistry, AmbiguousRouteError, ArkNote, Arkade, ArkadeCash, ArkadeCashCreateError, ArkadeCashOperatorMismatchError, AssetManager, BATCH_REGISTRATION_TERMINAL_STATES, BIP21, BIP21Error, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, CachingArkProvider, CachingOperatorProvider, ChainedTxType, ConnectionDisposedError, ContractManager, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_SECONDS, DEFAULT_PASSKEY_LABEL, DELEGATION_EXPIRES_KEY, DELEGATION_LOCAL_STATUS, DELEGATION_REGISTERED_KEY, DELEGATION_STATUS_KEY, DatabaseUpgradeBlockedError, DelegateManagerImpl, DelegateNotConfiguredError, DescriptorIdentity, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EmulatorPacket, EsploraProvider, Estimator, ExecutorManagerImpl, ExecutorRequestError, Extension, ExtensionNotFoundError, ForeignDescriptorError, HDDescriptorProvider, INTENT_TERMINAL_STATES, InMemoryBatchRegistrationRepository, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBBatchRegistrationRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBVtxoReservationRepository, IndexedDBWalletRepository, KeyringDescriptorProvider, MAX_PAGE_SIZE, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainCosignPreflightError, OnchainWallet, OversizedChangeError, P2A, PasskeyCancelled, PasskeyUnconfirmed, PaymentRouter, PrevTxUnavailableError, PrfUnavailable, REGTEST_MIN_BATCH_EXPIRY_SECONDS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestEmulatorProvider, RestExecutorProvider, SeedIdentity, SendDeadlineExceededError, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, StaticDescriptorProvider, TreeSignerSession, TxTree, TxType, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, VtxoManager, VtxoReservedError, Wallet, WalletCannotAllocateAddressError, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WsElectrumChainSource, addArkadeCashRecord, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, arkade_exports as arkade, arkadeCashId, arkadeCashResolver, assertFinalCommitmentMatchesValidated, assertNoAssets, assertNoSelection, assertPageRequest, assertRecipientArkadeAddress, assertSendDeadline, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, assetsOf, attachPrevArkTxs, attachPrevoutTxs, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, captureSendDeadline, claimWithPreimageIdentity, classifyBoardingExpiry, closeDatabase, collabExitResolver, collectBatchRegistrations, collectContracts, collectIntents, collectPages, collectScriptVtxos, collectTransactionHistory, collectUtxos, collectVtxos, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createArkadeCashTracker, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, createPrfPasskey, decodeArkContract, decodeBoardingExit, defaultBatchExpiryPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, evaluatePrf, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getRandomId, hasBoardingTxExpired, hasCandidates, invoiceTarget, isAddressAllocationCapable, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isContractVtxoEvent, isCosignFallback, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalBatchRegistrationState, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, iteratePages, logExcludedVtxos, makeHandle, matchServerCheckpoints, mergeArkadeCashRecord, mnemonicFromPrf, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, pageResult, prfSupport, promisifyRequest, provisionClaimSecret, provisionRefundKey, readArkadeCash, registerWalletRestoreHook, resolveAssetAmount, resolveBatchExpiryPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, selectCoinsWithAsset, selectVirtualCoins, selectionOf, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signingDescriptorIndex, strictSigningDescriptorIndex, submitViaEmulator, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, walletFeeSource, watchExecutorContracts, withPrevTxs } from './chunk-HWWSLCQN.js';
|
|
2
|
+
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, IndexerUtxosUnsupportedError, RestIndexerProvider, asset_exports as asset } from './chunk-72EC3ASW.js';
|
|
3
|
+
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, ExecutorContractHandler, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor } from './chunk-4HZQSKWG.js';
|
|
4
4
|
export { UnsupportedProgramVersionError } from './chunk-X57WKONW.js';
|
|
5
|
-
export { ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ConditionWitness, CosignerPublicKey, DigestMismatchError, EventSourceUnavailableError, FetchError, HttpResponseError, Intent, OnchainCosignAmbiguousError, OnchainCosignRejectedError, OnchainCosignUnsupportedError, PrevArkTxField, PrevoutTxField, Proof, ProviderUnavailableError, READ_TIMEOUT_MS, RestArkProvider, RestOperatorProvider, ServerResponseMismatchError, SettlementEventType, Transaction, VtxoTaprootTree, VtxoTreeExpiry, assertAllowedSighashTypes, assertNonNegativeMs, assertTimerMs, buildVersion, canRecoverOnchain, canSpendOffchain, canSweepOnchain, configureEventSource, getAllNormalizedVtxos, getArkPsbtFields, getConfiguredEventSource, getNormalizedVtxos, isArkError, isEventSourceUnavailableError, isPastExpiry, isRetryableProviderError, isVirtualCoin, isVtxoSpent, maybeArkError, resolveEventSource, sdkVersion, setArkPsbtField, toOffchainInputFeeParams } from './chunk-
|
|
5
|
+
export { ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ConditionWitness, CosignerPublicKey, DigestMismatchError, EventSourceUnavailableError, FetchError, HttpResponseError, Intent, OnchainCosignAmbiguousError, OnchainCosignRejectedError, OnchainCosignUnsupportedError, PrevArkTxField, PrevoutTxField, Proof, ProviderUnavailableError, READ_TIMEOUT_MS, RestArkProvider, RestOperatorProvider, ServerResponseMismatchError, SettlementEventType, Transaction, VtxoTaprootTree, VtxoTreeExpiry, assertAllowedSighashTypes, assertNonNegativeMs, assertTimerMs, buildVersion, canRecoverOnchain, canSpendOffchain, canSweepOnchain, configureEventSource, getAllNormalizedVtxos, getArkPsbtFields, getConfiguredEventSource, getNormalizedVtxos, isArkError, isEventSourceUnavailableError, isPastExpiry, isRetryableProviderError, isVirtualCoin, isVtxoSpent, maybeArkError, resolveEventSource, sdkVersion, setArkPsbtField, toOffchainInputFeeParams } from './chunk-J2JZZTOE.js';
|
|
6
6
|
export { ArkAddress, BITCOIN_EMULATOR_PUBKEY, CLTVMultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, DEFAULT_ARKADE_EMULATOR_URL, MUTINYNET_EMULATOR_PUBKEY, MultisigTapscript, REGTEST_EMULATOR_PUBKEY, TapTreeCoder, VtxoScript, assembleBtcdTaprootTree, classifyAgainstSignerSet, classifyContractSigner, decodeTapscript, defaultEmulatorPubkey, getNetwork, getSequence, isCooperativelyMigratable, networkFromArkadeInfo, networkFromOperatorInfo, networks, resolveEmulatorPubkey, scriptFromTapLeafScript, sequenceToTimelock, signerSetFromInfo, timelockToSequence, toXOnly, toXOnlySignerHex } from './chunk-GB67AGXG.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -285,4 +285,4 @@ declare function serializeArkadeContractParams(typed: ArkadeContractParams): Rec
|
|
|
285
285
|
/** Parse the string map persisted in `Contract.params` back into typed params. */
|
|
286
286
|
declare function deserializeArkadeContractParams(params: Record<string, string>): ArkadeContractParams;
|
|
287
287
|
|
|
288
|
-
export { type ArkadeArgValue as A, type CompiledProgramFunction as C, type InputDef as I, type Program as P, type SourceRange as S, type TapscriptSegment as T, UnsupportedProgramVersionError as U, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeParamValue as c, type ArkadeFunction as d, type ArkadeValueType as e, type ArkadeArgType as f, type ArkadeContractParams as g, type ArkadeSegment as h, type AsmToken as i, type InputRef as j,
|
|
288
|
+
export { type ArkadeArgValue as A, type CompiledProgramFunction as C, type InputDef as I, type Program as P, type SourceRange as S, type TapscriptSegment as T, UnsupportedProgramVersionError as U, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeParamValue as c, type ArkadeFunction as d, type ArkadeValueType as e, type ArkadeArgType as f, type ArkadeContractParams as g, type ArkadeSegment as h, type AsmToken as i, type InputRef as j, type SignerRef as k, type TweakedSigner as l, SUPPORTED_PROGRAM_VERSION as m, deserializeArkadeContractParams as n, stringifyArtifact as o, parseArtifact as p, resolveAsm as r, serializeArkadeContractParams as s, validateProgram as v, witnessRefToBytes as w };
|
|
@@ -285,4 +285,4 @@ declare function serializeArkadeContractParams(typed: ArkadeContractParams): Rec
|
|
|
285
285
|
/** Parse the string map persisted in `Contract.params` back into typed params. */
|
|
286
286
|
declare function deserializeArkadeContractParams(params: Record<string, string>): ArkadeContractParams;
|
|
287
287
|
|
|
288
|
-
export { type ArkadeArgValue as A, type CompiledProgramFunction as C, type InputDef as I, type Program as P, type SourceRange as S, type TapscriptSegment as T, UnsupportedProgramVersionError as U, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeParamValue as c, type ArkadeFunction as d, type ArkadeValueType as e, type ArkadeArgType as f, type ArkadeContractParams as g, type ArkadeSegment as h, type AsmToken as i, type InputRef as j,
|
|
288
|
+
export { type ArkadeArgValue as A, type CompiledProgramFunction as C, type InputDef as I, type Program as P, type SourceRange as S, type TapscriptSegment as T, UnsupportedProgramVersionError as U, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeParamValue as c, type ArkadeFunction as d, type ArkadeValueType as e, type ArkadeArgType as f, type ArkadeContractParams as g, type ArkadeSegment as h, type AsmToken as i, type InputRef as j, type SignerRef as k, type TweakedSigner as l, SUPPORTED_PROGRAM_VERSION as m, deserializeArkadeContractParams as n, stringifyArtifact as o, parseArtifact as p, resolveAsm as r, serializeArkadeContractParams as s, validateProgram as v, witnessRefToBytes as w };
|