@arkade-os/sdk 0.5.5 → 0.5.6
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 +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-BbH-THYJ.d.cts → asyncStorageTaskQueue-Bh2n0msM.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-BlvkJyTa.d.ts → asyncStorageTaskQueue-CpkstKZ5.d.ts} +2 -2
- package/dist/{chunk-BCA6D255.js → chunk-47Z4LEIW.js} +3 -3
- package/dist/{chunk-BCA6D255.js.map → chunk-47Z4LEIW.js.map} +1 -1
- package/dist/{chunk-HQQ4NRXI.cjs → chunk-4X67IB2V.cjs} +15 -15
- package/dist/{chunk-HQQ4NRXI.cjs.map → chunk-4X67IB2V.cjs.map} +1 -1
- package/dist/{chunk-7GIKLFHC.js → chunk-C7NY6WSA.js} +3 -3
- package/dist/{chunk-7GIKLFHC.js.map → chunk-C7NY6WSA.js.map} +1 -1
- package/dist/{chunk-CE46RS6L.js → chunk-DJYX73W2.js} +4 -4
- package/dist/{chunk-CE46RS6L.js.map → chunk-DJYX73W2.js.map} +1 -1
- package/dist/{chunk-XWUCNMPN.cjs → chunk-HKEPJBTY.cjs} +16 -16
- package/dist/{chunk-XWUCNMPN.cjs.map → chunk-HKEPJBTY.cjs.map} +1 -1
- package/dist/{chunk-KCL5AVML.cjs → chunk-LZAINCGU.cjs} +3 -3
- package/dist/{chunk-KCL5AVML.cjs.map → chunk-LZAINCGU.cjs.map} +1 -1
- package/dist/{chunk-AMH7Q3DF.cjs → chunk-NDQ4LB4X.cjs} +8 -8
- package/dist/{chunk-AMH7Q3DF.cjs.map → chunk-NDQ4LB4X.cjs.map} +1 -1
- package/dist/{chunk-4I53THL6.js → chunk-QTMK34TP.js} +3 -3
- package/dist/{chunk-4I53THL6.js.map → chunk-QTMK34TP.js.map} +1 -1
- package/dist/{chunk-FVVXCDNE.js → chunk-VWW2ZBPI.js} +4 -4
- package/dist/{chunk-FVVXCDNE.js.map → chunk-VWW2ZBPI.js.map} +1 -1
- package/dist/{chunk-T254PXSN.cjs → chunk-Y3CDDPWI.cjs} +454 -443
- package/dist/chunk-Y3CDDPWI.cjs.map +1 -0
- package/dist/{chunk-OO2KEK64.js → chunk-YKT4NAQG.js} +45 -34
- package/dist/chunk-YKT4NAQG.js.map +1 -0
- package/dist/{chunk-5SYUEVJH.cjs → chunk-YS76JSGP.cjs} +10 -10
- package/dist/{chunk-5SYUEVJH.cjs.map → chunk-YS76JSGP.cjs.map} +1 -1
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.d.cts +2 -2
- package/dist/contracts/handlers/index.d.ts +2 -2
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{index-Bx-iArDs.d.ts → index-2wKMrT0a.d.ts} +1 -1
- package/dist/{index-BWwVnJhU.d.cts → index-46g577Ka.d.cts} +1 -1
- package/dist/{index-DCml4QJn.d.ts → index-C66rjxz2.d.ts} +25 -25
- package/dist/{index-DkyzIzKL.d.cts → index-Dqk07NwJ.d.cts} +25 -25
- package/dist/index.cjs +311 -311
- package/dist/index.d.cts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.js +4 -4
- package/dist/{keyringDescriptorProvider-CS4w4PWd.d.ts → keyringDescriptorProvider-DiBM4GmB.d.ts} +9 -9
- package/dist/{keyringDescriptorProvider-CmHXrIXd.d.cts → keyringDescriptorProvider-DnaLUC7v.d.cts} +9 -9
- package/dist/repositories/realm/index.cjs +37 -37
- package/dist/repositories/realm/index.cjs.map +1 -1
- package/dist/repositories/realm/index.d.cts +6 -6
- package/dist/repositories/realm/index.d.ts +6 -6
- package/dist/repositories/realm/index.js +6 -6
- package/dist/repositories/realm/index.js.map +1 -1
- package/dist/repositories/sqlite/index.cjs +35 -35
- package/dist/repositories/sqlite/index.cjs.map +1 -1
- package/dist/repositories/sqlite/index.d.cts +6 -6
- package/dist/repositories/sqlite/index.d.ts +6 -6
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/repositories/sqlite/index.js.map +1 -1
- package/dist/{taskRunner-DgMLSk_O.d.ts → taskRunner-BM6IAKlS.d.ts} +2 -2
- package/dist/{taskRunner-buh6aFpG.d.cts → taskRunner-BmDIZiSl.d.cts} +2 -2
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +15 -15
- package/dist/wallet/expo/index.cjs.map +1 -1
- package/dist/wallet/expo/index.d.cts +6 -6
- package/dist/wallet/expo/index.d.ts +6 -6
- package/dist/wallet/expo/index.js +5 -5
- package/dist/wallet/expo/index.js.map +1 -1
- 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-OO2KEK64.js.map +0 -1
- package/dist/chunk-T254PXSN.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as Identity,
|
|
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 './keyringDescriptorProvider-
|
|
4
|
-
export { f as AbortError, g as ArkError, h as ArkErrorName, i as ArkadeCashClaimResult, j as ArkadeCashCreateError, k as ArkadeCashOperatorMismatchError, l as ArkadeCashUnclaimedReason, m as ArkadeCashUnclaimedVtxo, n as ArkadeCashVtxoRef, o as BoardingUtxoGroup, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, F as ForeignDescriptorError, I as IncomingFunds, p as IndexedDBWalletRepository, K as KeyringDescriptorProvider, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, N as NotifiesIncomingFunds, q as ProviderKind, r as ProviderUnavailableError, s as REGTEST_MIN_BATCH_EXPIRY_SECONDS, S as ServerInfoSource, t as ServerResponseMismatchError, V as VtxoReservation, u as VtxoReservedError, v as WaitForIncomingFundsOptions, w as WalletCannotAllocateAddressError, x as assertValidBatchExpiry, y as defaultBatchExpiryPolicy, z as isAddressAllocationCapable, C as isArkError, E as isHDAllocationCapable, G as isHDWalletCapable, J as maybeArkError, L as resolveBatchExpiryPolicy, O as resolveDescriptorSigner, Q as selectVirtualCoins, T as signingDescriptorIndex, U as strictSigningDescriptorIndex, X as waitForIncomingFunds } from './keyringDescriptorProvider-
|
|
1
|
+
import { a as Identity, ay as Transaction, ax as SignerSession, af as ReadonlyIdentity, ad as DescriptorProvider, aE as DescriptorSigningRequest, aF as IntentFeeConfig, aG as OffchainInput, aH as FeeAmount, aI as OnchainInput, aJ as FeeOutput, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, P as PageRequest, D as PageResult, B as Outpoint, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch, W as WalletRepository, Q as AtomicWalletState, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, U as WalletState, y as Contract, C as ContractRepository, X as ContractFilter, I as IWallet, x as OperatorProvider, ap as NetworkName, ag as OnchainProvider, av as SettlementConfig, aK as ContractWatcherConfig, aL as Asset, R as Recipient, aM as FeeInfo, n as SettlementEvent, N as NormalizedExtendedVirtualCoin, S as SettleParams, G as GetOperatorInfoOptions, aN as GetVtxosOptions, aO as PaginationOptions, e as GetVtxosFilter, f as GetSpendableVtxosFilter, aP as CreateContractParams, aQ as GetContractsFilter, V as VirtualCoin, aR as GetSpendablePathsOptions, aS as GetAllSpendingPathsOptions, k as GetNewAddressesOptions, aT as InputExpiryFloor, aU as IssuanceParams, aV as ReissuanceParams, aW as BurnParams, aX as RenewVtxosOptions, p as SendOnchainParams, O as OperatorInfo, aY as NormalizedVtxoPage, A as ArkadeReader, c as ArkadeBroadcaster, d as WalletBalance, am as ContractSyncState, aq as ContractWithVtxos, aZ as WatchedScript, a_ as PathSelection, l as NewAddress, a$ as ContractEvent, b0 as AssetDetails, b1 as IssuanceResult, b2 as DelegateInfo, b3 as MigrationGlobalSkipReason, b4 as MigrationLegSkipReason, b5 as SignerStatus, ae as IReadonlyWallet, h as ActivityRegistry, al as IReadonlyAssetManager, b6 as StorageConfig, i as Activity, j as IContractManager, q as IAssetManager, o as SendParams, m as IDelegateManager, b7 as IVtxoManager, a3 as Network, as as Coin, b8 as SendBitcoinParams, b9 as ExplorerTransaction, aB as SignedProof, aC as Proof, ba as TreeNonces, bb as TreePartialSigs, T as TxNotificationEvent, bc as PendingTx, bd as EmulatorProvider, be as Status, bf as ChainTx, w as IndexerProvider, a6 as TxTree, bg as ArkadeService, bh as ContractVtxoEvent, bi as ExtendedContractVtxo, bj as ResolvedArkadeService, bk as resolveArkadeService, bl as PathContext } from './index-Dqk07NwJ.cjs';
|
|
2
|
+
export { bm as ActivityIntent, bn as ActivityResolver, bo as ArkIntent, bp as ArkIntentState, v as ArkProvider, bq as ArkadeInfo, br as AssetMetadata, bs as BATCH_REGISTRATION_TERMINAL_STATES, bt as BITCOIN_EMULATOR_PUBKEY, bu as BaseWalletConfig, aa as BatchFailedEvent, a8 as BatchFinalizationEvent, a9 as BatchFinalizedEvent, bv as BatchInfo, bw as BatchRegistrationFilter, bx as BatchRegistrationState, by as BatchSignableIdentity, a4 as BatchStartedEvent, bz as CandidateDeps, bA as ChainTxType, a2 as ChainedTxType, bB as CommitmentTx, bC as ConnectorTreeNode, bD as ContractBalance, bE as ContractEventCallback, bF as ContractHandler, at as ContractManager, au as ContractManagerConfig, bG as ContractScope, bH as ContractState, bI as ContractVtxo, bJ as ContractWatcher, bK as ContractWatcherEventCallback, bL as DEFAULT_ARKADE_EMULATOR_URL, bM as DEFAULT_VTXO_PAGE_SIZE, bN as DelegateManagerImpl, bO as DelegateOptions, ah as DelegateProvider, bP as DeprecatedSignerMigrationReport, bQ as DeprecatedSignerReport, bR as DigestMismatchError, bS as Discoverable, bT as DiscoveredContract, bU as DiscoveryDeps, bV as ESPLORA_URL, bW as EmulatorInfo, ao as EsploraProvider, bX as EventSourceCapable, bY as EventSourceFactory, bZ as EventSourceLike, b_ as EventSourceUnavailableError, aj as ExitCaptureMode, b$ as ExitChainResolver, ak as ExitDataSource, c0 as GetArkadeInfoOptions, c1 as GetUtxosOptions, c2 as GroupMembership, c3 as HandlerError, c4 as INTENT_TERMINAL_STATES, c5 as IndexerTxType, c6 as IndexerUtxo, c7 as IndexerUtxosUnsupportedError, aA as Intent, c8 as IntentCoin, c9 as IntentFilter, ca as IntentPageFilter, cb as IntentRepository, cc as KnownMetadata, cd as MAX_PAGE_SIZE, ce as MUTINYNET_EMULATOR_PUBKEY, cf as MigrateDeprecatedSignerOptions, cg as MigrationLegReport, ch as MigrationVtxoRef, ci as NewAddressType, cj as Nonces, ck as OnchainCosignAmbiguousError, cl as OnchainCosignRejectedError, cm as OnchainCosignUnsupportedError, cn as Output, co as PageResponse, cp as PartialSig, cq as PrevTxSource, cr as PrevTxUnavailableError, cs as ProofInput, ct as ProviderClass, cu as REGTEST_EMULATOR_PUBKEY, cv as RawTxSource, ai as ReadonlyWalletConfig, an as RecipientArkadeAddressContext, cw as RenewalSplit, cx as RenewalSplitContext, cy as RestArkProvider, cz as RestDelegateProvider, cA as RestEmulatorProvider, s as RestIndexerProvider, r as RestOperatorProvider, cB as ScanContractsOptions, cC as ScanResult, cD as ScheduledSession, cE as SettlementEventType, cF as SignRequest, az as SignedIntent, cG as SignerClassification, cH as SignerSet, t as SubscriptionEvent, cI as SubscriptionFilter, u as SubscriptionHeartbeat, cJ as SubscriptionResponse, cK as SweepTxNotification, cL as TapLeaves, aD as TimeHeight, a7 as TreeNoncesEvent, ac as TreeSignatureEvent, cM as TreeSignerSession, a5 as TreeSigningStartedEvent, ab as TreeTxEvent, cN as Tx, cO as TxHistoryRecord, cP as TxKey, cQ as TxNotification, cR as TxTag, cS as TxTreeNode, cT as TxType, cU as Vtxo, cV as VtxoChain, aw as VtxoManager, cW as VtxoType, b as WalletConfig, cX as WalletMode, cY as WithPrevTx, cZ as assertAllowedSighashTypes, c_ as assertPageRequest, c$ as assertRecipientArkadeAddress, d0 as assetMintResolver, d1 as attachPrevArkTxs, d2 as attachPrevoutTxs, d3 as boardingResolver, d4 as canRecoverOnchain, d5 as canSpendOffchain, d6 as canSweepOnchain, d7 as classifyAgainstSignerSet, d8 as classifyContractSigner, d9 as collabExitResolver, da as collectBatchRegistrations, db as collectContracts, dc as collectIntents, dd as collectPages, de as collectScriptVtxos, df as collectTransactionHistory, dg as collectUtxos, dh as collectVtxos, di as configureEventSource, dj as createDefaultActivityRegistry, dk as createExitChainResolver, dl as defaultEmulatorPubkey, dm as getAllNormalizedVtxos, dn as getConfiguredEventSource, dp as getNetwork, dq as getNormalizedVtxos, dr as getRandomId, ds as hasCandidates, dt as isBatchSignable, du as isContractVtxoEvent, dv as isCooperativelyMigratable, dw as isDiscoverable, dx as isEventSourceUnavailableError, dy as isPastExpiry, dz as isSigningIdentity, dA as isSubdust, dB as isTerminalBatchRegistrationState, dC as isTerminalIntentState, dD as isVirtualCoin, dE as isVtxoExpiringSoon, dF as isVtxoSpent, dG as iteratePages, dH as networkFromArkadeInfo, dI as networkFromOperatorInfo, dJ as networks, dK as pageResult, dL as resolveEmulatorPubkey, dM as resolveEventSource, dN as resolvePrevTxs, dO as signerSetFromInfo, dP as toOffchainInputFeeParams, dQ as toXOnlySignerHex, dR as withPrevTxs } from './index-Dqk07NwJ.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 './keyringDescriptorProvider-DnaLUC7v.cjs';
|
|
4
|
+
export { f as AbortError, g as ArkError, h as ArkErrorName, i as ArkadeCashClaimResult, j as ArkadeCashCreateError, k as ArkadeCashOperatorMismatchError, l as ArkadeCashUnclaimedReason, m as ArkadeCashUnclaimedVtxo, n as ArkadeCashVtxoRef, o as BoardingUtxoGroup, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, F as ForeignDescriptorError, I as IncomingFunds, p as IndexedDBWalletRepository, K as KeyringDescriptorProvider, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, N as NotifiesIncomingFunds, q as ProviderKind, r as ProviderUnavailableError, s as REGTEST_MIN_BATCH_EXPIRY_SECONDS, S as ServerInfoSource, t as ServerResponseMismatchError, V as VtxoReservation, u as VtxoReservedError, v as WaitForIncomingFundsOptions, w as WalletCannotAllocateAddressError, x as assertValidBatchExpiry, y as defaultBatchExpiryPolicy, z as isAddressAllocationCapable, C as isArkError, E as isHDAllocationCapable, G as isHDWalletCapable, J as maybeArkError, L as resolveBatchExpiryPolicy, O as resolveDescriptorSigner, Q as selectVirtualCoins, T as signingDescriptorIndex, U as strictSigningDescriptorIndex, X as waitForIncomingFunds } from './keyringDescriptorProvider-DnaLUC7v.cjs';
|
|
5
5
|
import { T as TapLeafScript, E as EncodedVtxoScript, C as CSVMultisigTapscript, R as RelativeTimelock, V as VtxoScript, A as ArkAddress } from './base-C-Y5t_0F.cjs';
|
|
6
6
|
export { 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.cjs';
|
|
7
|
-
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-
|
|
7
|
+
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-46g577Ka.cjs';
|
|
8
8
|
import { D as DefaultVtxo } from './delegate-gGkUnYpi.cjs';
|
|
9
9
|
export { a as DelegateVtxo } from './delegate-gGkUnYpi.cjs';
|
|
10
10
|
import { Bytes, BTC_NETWORK } from '@scure/btc-signer/utils.js';
|
|
@@ -388,13 +388,13 @@ declare class InMemoryBatchRegistrationRepository implements BatchRegistrationRe
|
|
|
388
388
|
readonly version: 1;
|
|
389
389
|
private byId;
|
|
390
390
|
clear(): Promise<void>;
|
|
391
|
-
saveBatchRegistration(intent:
|
|
392
|
-
getBatchRegistrationsPage(filter:
|
|
391
|
+
saveBatchRegistration(intent: BatchRegistration): Promise<void>;
|
|
392
|
+
getBatchRegistrationsPage(filter: BatchRegistrationPageFilter | undefined, page: PageRequest): Promise<PageResult<BatchRegistration>>;
|
|
393
393
|
getLockedVtxoOutpoints(): Promise<Outpoint[]>;
|
|
394
394
|
/** @deprecated Use {@link saveBatchRegistration}. */
|
|
395
|
-
saveIntent(intent:
|
|
395
|
+
saveIntent(intent: BatchRegistration): Promise<void>;
|
|
396
396
|
/** @deprecated Use {@link getBatchRegistrationsPage}. */
|
|
397
|
-
getIntentsPage(filter:
|
|
397
|
+
getIntentsPage(filter: BatchRegistrationPageFilter | undefined, page: PageRequest): Promise<PageResult<BatchRegistration, string>>;
|
|
398
398
|
[Symbol.asyncDispose](): Promise<void>;
|
|
399
399
|
}
|
|
400
400
|
/** @deprecated Use {@link InMemoryBatchRegistrationRepository}. */
|
|
@@ -445,13 +445,13 @@ declare class IndexedDBBatchRegistrationRepository implements BatchRegistrationR
|
|
|
445
445
|
constructor(dbName?: string);
|
|
446
446
|
private getDB;
|
|
447
447
|
clear(): Promise<void>;
|
|
448
|
-
saveBatchRegistration(intent:
|
|
449
|
-
getBatchRegistrationsPage(filter:
|
|
448
|
+
saveBatchRegistration(intent: BatchRegistration): Promise<void>;
|
|
449
|
+
getBatchRegistrationsPage(filter: BatchRegistrationPageFilter | undefined, page: PageRequest): Promise<PageResult<BatchRegistration>>;
|
|
450
450
|
getLockedVtxoOutpoints(): Promise<Outpoint[]>;
|
|
451
451
|
/** @deprecated Use {@link saveBatchRegistration}. */
|
|
452
|
-
saveIntent(intent:
|
|
452
|
+
saveIntent(intent: BatchRegistration): Promise<void>;
|
|
453
453
|
/** @deprecated Use {@link getBatchRegistrationsPage}. */
|
|
454
|
-
getIntentsPage(filter:
|
|
454
|
+
getIntentsPage(filter: BatchRegistrationPageFilter | undefined, page: PageRequest): Promise<PageResult<BatchRegistration, string>>;
|
|
455
455
|
[Symbol.asyncDispose](): Promise<void>;
|
|
456
456
|
}
|
|
457
457
|
/** @deprecated Use {@link IndexedDBBatchRegistrationRepository}. */
|
|
@@ -1189,7 +1189,7 @@ type Options = {
|
|
|
1189
1189
|
*
|
|
1190
1190
|
* Ignored when `buildServices` is supplied — that override owns `storage`.
|
|
1191
1191
|
*/
|
|
1192
|
-
intentRepository?:
|
|
1192
|
+
intentRepository?: BatchRegistrationRepository;
|
|
1193
1193
|
/** The worker wallet's onchain provider, per network: an instance cannot cross `postMessage`.
|
|
1194
1194
|
* Called on every init and never closed, so return one instance per network. Defaults to
|
|
1195
1195
|
* Esplora; ignored when `buildServices` is supplied. */
|
|
@@ -2250,7 +2250,7 @@ type RequestGetOperatorInfo = RequestEnvelope & {
|
|
|
2250
2250
|
type ResponseGetOperatorInfo = ResponseEnvelope & {
|
|
2251
2251
|
type: "OPERATOR_INFO";
|
|
2252
2252
|
payload: {
|
|
2253
|
-
info:
|
|
2253
|
+
info: OperatorInfo;
|
|
2254
2254
|
};
|
|
2255
2255
|
};
|
|
2256
2256
|
type RequestIndexerGetVtxos = RequestEnvelope & {
|
|
@@ -3308,9 +3308,9 @@ declare class ServiceWorkerReadonlyWallet implements IReadonlyWallet {
|
|
|
3308
3308
|
* Delegated to the worker, which holds the wallet that owns the connection.
|
|
3309
3309
|
* The payload crosses raw — see {@link ResponseGetOperatorInfo} for why.
|
|
3310
3310
|
*/
|
|
3311
|
-
getOperatorInfo(opts?: GetOperatorInfoOptions): Promise<
|
|
3311
|
+
getOperatorInfo(opts?: GetOperatorInfoOptions): Promise<OperatorInfo>;
|
|
3312
3312
|
/** @deprecated Use {@link getOperatorInfo}. */
|
|
3313
|
-
getArkadeInfo(opts?: GetOperatorInfoOptions): Promise<
|
|
3313
|
+
getArkadeInfo(opts?: GetOperatorInfoOptions): Promise<OperatorInfo>;
|
|
3314
3314
|
/**
|
|
3315
3315
|
* An {@link ArkadeReader} that speaks to the worker rather than to the
|
|
3316
3316
|
* operator. The page holds no provider, so a caller that built its own from a
|
|
@@ -3954,15 +3954,15 @@ declare class CachingOperatorProvider implements OperatorProvider {
|
|
|
3954
3954
|
/** Releases the inner provider's server-info subscription. */
|
|
3955
3955
|
dispose(): void;
|
|
3956
3956
|
get serverUrl(): string | undefined;
|
|
3957
|
-
getInfo(): Promise<
|
|
3957
|
+
getInfo(): Promise<OperatorInfo>;
|
|
3958
3958
|
submitTx(signedArkTx: string, checkpointTxs: string[]): Promise<{
|
|
3959
3959
|
arkTxid: string;
|
|
3960
3960
|
finalArkTx: string;
|
|
3961
3961
|
signedCheckpointTxs: string[];
|
|
3962
3962
|
}>;
|
|
3963
3963
|
finalizeTx(arkTxid: string, finalCheckpointTxs: string[]): Promise<void>;
|
|
3964
|
-
registerIntent(intent:
|
|
3965
|
-
deleteIntent(intent:
|
|
3964
|
+
registerIntent(intent: SignedProof<Proof.RegisterMessage>): Promise<string>;
|
|
3965
|
+
deleteIntent(intent: SignedProof<Proof.DeleteMessage>): Promise<void>;
|
|
3966
3966
|
confirmRegistration(intentId: string): Promise<void>;
|
|
3967
3967
|
submitTreeNonces(batchId: string, pubkey: string, nonces: TreeNonces): Promise<void>;
|
|
3968
3968
|
submitTreeSignatures(batchId: string, pubkey: string, signatures: TreePartialSigs): Promise<void>;
|
|
@@ -3970,7 +3970,7 @@ declare class CachingOperatorProvider implements OperatorProvider {
|
|
|
3970
3970
|
getEventStream(signal: AbortSignal, topics: string[]): AsyncIterableIterator<SettlementEvent>;
|
|
3971
3971
|
getTransactionsStream(signal: AbortSignal): AsyncIterableIterator<TxNotificationEvent>;
|
|
3972
3972
|
getPendingTxs(intent: SignedProof<Proof.GetPendingTxMessage>): Promise<PendingTx[]>;
|
|
3973
|
-
onServerInfoChanged(listener: (info:
|
|
3973
|
+
onServerInfoChanged(listener: (info: OperatorInfo) => void): () => void;
|
|
3974
3974
|
}
|
|
3975
3975
|
/** @deprecated Use {@link CachingOperatorProvider}. */
|
|
3976
3976
|
declare const CachingArkProvider: typeof CachingOperatorProvider;
|
|
@@ -5703,7 +5703,7 @@ interface ArkadeSpendResult {
|
|
|
5703
5703
|
}
|
|
5704
5704
|
/** The callable spending paths of a contract. */
|
|
5705
5705
|
type CallableFunctions = Record<string, (...args: ArkadeNestedValue[]) => ArkadeTransactionBuilder>;
|
|
5706
|
-
/** What {@link Arkade} needs from the
|
|
5706
|
+
/** What {@link Arkade} needs from the operator; see {@link ArkadeConnectOptions.arkade}. */
|
|
5707
5707
|
type ArkadeServerProvider = Pick<OperatorProvider, "getInfo"> & Partial<ArkadeBroadcaster & Pick<OperatorProvider, "cosignOnchainTx">>;
|
|
5708
5708
|
/** Fields shared by both forms of {@link ArkadeConnectOptions}. */
|
|
5709
5709
|
interface ArkadeConnectCommonOptions {
|
|
@@ -6817,4 +6817,4 @@ declare class AssetManager extends ReadonlyAssetManager implements IAssetManager
|
|
|
6817
6817
|
private burnWith;
|
|
6818
6818
|
}
|
|
6819
6819
|
|
|
6820
|
-
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkAddress,
|
|
6820
|
+
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkAddress, ArkNote, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, Arkade, type ArkadeBatchInput, ArkadeBroadcaster, ArkadeCash, ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, ArkadeReader, ArkadeService, Asset, AssetDetails, AssetManager, AtomicWalletState, BIP21, BIP21Error, type BIP21Params, type BIP21ParseResult, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, BatchExpiryPolicy, BatchRegistration, BatchRegistrationPageFilter, BatchRegistrationRepository, 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, DefaultVtxo, 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, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryBatchRegistrationRepository, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBBatchRegistrationRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, 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, Proof, ProviderConnectionState, type ProvisionedClaimSecret, type ProvisionedKey, READ_TIMEOUT_MS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlySingleKey, 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, SingleKey, StaticDescriptorProvider, Status, StorageConfig, StoredVtxo, TapLeafScript, Transaction, TransactionHistoryPageCursor, TransactionHistoryPageFilter, TreeNonces, TreePartialSigs, TxNotificationEvent, TxTree, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, UnsupportedProgramVersionError, type VSize, type VerifyServerSignatures, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, type VtxoExclusion, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WalletRepository, type WalletRestoreHook, 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, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultPaymentRouter, createManagedConnection, createPrfPasskey, decodeArkContract, 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, registerWalletRestoreHook, resolveAssetAmount, resolveSendAmount, sdkVersion, selectCoinsWithAsset, selectionOf, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, signAndSubmitOffchainTx, submitViaEmulator, timelockToSequence, toXOnly, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, walletFeeSource };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as Identity,
|
|
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 './keyringDescriptorProvider-
|
|
4
|
-
export { f as AbortError, g as ArkError, h as ArkErrorName, i as ArkadeCashClaimResult, j as ArkadeCashCreateError, k as ArkadeCashOperatorMismatchError, l as ArkadeCashUnclaimedReason, m as ArkadeCashUnclaimedVtxo, n as ArkadeCashVtxoRef, o as BoardingUtxoGroup, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, F as ForeignDescriptorError, I as IncomingFunds, p as IndexedDBWalletRepository, K as KeyringDescriptorProvider, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, N as NotifiesIncomingFunds, q as ProviderKind, r as ProviderUnavailableError, s as REGTEST_MIN_BATCH_EXPIRY_SECONDS, S as ServerInfoSource, t as ServerResponseMismatchError, V as VtxoReservation, u as VtxoReservedError, v as WaitForIncomingFundsOptions, w as WalletCannotAllocateAddressError, x as assertValidBatchExpiry, y as defaultBatchExpiryPolicy, z as isAddressAllocationCapable, C as isArkError, E as isHDAllocationCapable, G as isHDWalletCapable, J as maybeArkError, L as resolveBatchExpiryPolicy, O as resolveDescriptorSigner, Q as selectVirtualCoins, T as signingDescriptorIndex, U as strictSigningDescriptorIndex, X as waitForIncomingFunds } from './keyringDescriptorProvider-
|
|
1
|
+
import { a as Identity, ay as Transaction, ax as SignerSession, af as ReadonlyIdentity, ad as DescriptorProvider, aE as DescriptorSigningRequest, aF as IntentFeeConfig, aG as OffchainInput, aH as FeeAmount, aI as OnchainInput, aJ as FeeOutput, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, P as PageRequest, D as PageResult, B as Outpoint, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch, W as WalletRepository, Q as AtomicWalletState, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, U as WalletState, y as Contract, C as ContractRepository, X as ContractFilter, I as IWallet, x as OperatorProvider, ap as NetworkName, ag as OnchainProvider, av as SettlementConfig, aK as ContractWatcherConfig, aL as Asset, R as Recipient, aM as FeeInfo, n as SettlementEvent, N as NormalizedExtendedVirtualCoin, S as SettleParams, G as GetOperatorInfoOptions, aN as GetVtxosOptions, aO as PaginationOptions, e as GetVtxosFilter, f as GetSpendableVtxosFilter, aP as CreateContractParams, aQ as GetContractsFilter, V as VirtualCoin, aR as GetSpendablePathsOptions, aS as GetAllSpendingPathsOptions, k as GetNewAddressesOptions, aT as InputExpiryFloor, aU as IssuanceParams, aV as ReissuanceParams, aW as BurnParams, aX as RenewVtxosOptions, p as SendOnchainParams, O as OperatorInfo, aY as NormalizedVtxoPage, A as ArkadeReader, c as ArkadeBroadcaster, d as WalletBalance, am as ContractSyncState, aq as ContractWithVtxos, aZ as WatchedScript, a_ as PathSelection, l as NewAddress, a$ as ContractEvent, b0 as AssetDetails, b1 as IssuanceResult, b2 as DelegateInfo, b3 as MigrationGlobalSkipReason, b4 as MigrationLegSkipReason, b5 as SignerStatus, ae as IReadonlyWallet, h as ActivityRegistry, al as IReadonlyAssetManager, b6 as StorageConfig, i as Activity, j as IContractManager, q as IAssetManager, o as SendParams, m as IDelegateManager, b7 as IVtxoManager, a3 as Network, as as Coin, b8 as SendBitcoinParams, b9 as ExplorerTransaction, aB as SignedProof, aC as Proof, ba as TreeNonces, bb as TreePartialSigs, T as TxNotificationEvent, bc as PendingTx, bd as EmulatorProvider, be as Status, bf as ChainTx, w as IndexerProvider, a6 as TxTree, bg as ArkadeService, bh as ContractVtxoEvent, bi as ExtendedContractVtxo, bj as ResolvedArkadeService, bk as resolveArkadeService, bl as PathContext } from './index-C66rjxz2.js';
|
|
2
|
+
export { bm as ActivityIntent, bn as ActivityResolver, bo as ArkIntent, bp as ArkIntentState, v as ArkProvider, bq as ArkadeInfo, br as AssetMetadata, bs as BATCH_REGISTRATION_TERMINAL_STATES, bt as BITCOIN_EMULATOR_PUBKEY, bu as BaseWalletConfig, aa as BatchFailedEvent, a8 as BatchFinalizationEvent, a9 as BatchFinalizedEvent, bv as BatchInfo, bw as BatchRegistrationFilter, bx as BatchRegistrationState, by as BatchSignableIdentity, a4 as BatchStartedEvent, bz as CandidateDeps, bA as ChainTxType, a2 as ChainedTxType, bB as CommitmentTx, bC as ConnectorTreeNode, bD as ContractBalance, bE as ContractEventCallback, bF as ContractHandler, at as ContractManager, au as ContractManagerConfig, bG as ContractScope, bH as ContractState, bI as ContractVtxo, bJ as ContractWatcher, bK as ContractWatcherEventCallback, bL as DEFAULT_ARKADE_EMULATOR_URL, bM as DEFAULT_VTXO_PAGE_SIZE, bN as DelegateManagerImpl, bO as DelegateOptions, ah as DelegateProvider, bP as DeprecatedSignerMigrationReport, bQ as DeprecatedSignerReport, bR as DigestMismatchError, bS as Discoverable, bT as DiscoveredContract, bU as DiscoveryDeps, bV as ESPLORA_URL, bW as EmulatorInfo, ao as EsploraProvider, bX as EventSourceCapable, bY as EventSourceFactory, bZ as EventSourceLike, b_ as EventSourceUnavailableError, aj as ExitCaptureMode, b$ as ExitChainResolver, ak as ExitDataSource, c0 as GetArkadeInfoOptions, c1 as GetUtxosOptions, c2 as GroupMembership, c3 as HandlerError, c4 as INTENT_TERMINAL_STATES, c5 as IndexerTxType, c6 as IndexerUtxo, c7 as IndexerUtxosUnsupportedError, aA as Intent, c8 as IntentCoin, c9 as IntentFilter, ca as IntentPageFilter, cb as IntentRepository, cc as KnownMetadata, cd as MAX_PAGE_SIZE, ce as MUTINYNET_EMULATOR_PUBKEY, cf as MigrateDeprecatedSignerOptions, cg as MigrationLegReport, ch as MigrationVtxoRef, ci as NewAddressType, cj as Nonces, ck as OnchainCosignAmbiguousError, cl as OnchainCosignRejectedError, cm as OnchainCosignUnsupportedError, cn as Output, co as PageResponse, cp as PartialSig, cq as PrevTxSource, cr as PrevTxUnavailableError, cs as ProofInput, ct as ProviderClass, cu as REGTEST_EMULATOR_PUBKEY, cv as RawTxSource, ai as ReadonlyWalletConfig, an as RecipientArkadeAddressContext, cw as RenewalSplit, cx as RenewalSplitContext, cy as RestArkProvider, cz as RestDelegateProvider, cA as RestEmulatorProvider, s as RestIndexerProvider, r as RestOperatorProvider, cB as ScanContractsOptions, cC as ScanResult, cD as ScheduledSession, cE as SettlementEventType, cF as SignRequest, az as SignedIntent, cG as SignerClassification, cH as SignerSet, t as SubscriptionEvent, cI as SubscriptionFilter, u as SubscriptionHeartbeat, cJ as SubscriptionResponse, cK as SweepTxNotification, cL as TapLeaves, aD as TimeHeight, a7 as TreeNoncesEvent, ac as TreeSignatureEvent, cM as TreeSignerSession, a5 as TreeSigningStartedEvent, ab as TreeTxEvent, cN as Tx, cO as TxHistoryRecord, cP as TxKey, cQ as TxNotification, cR as TxTag, cS as TxTreeNode, cT as TxType, cU as Vtxo, cV as VtxoChain, aw as VtxoManager, cW as VtxoType, b as WalletConfig, cX as WalletMode, cY as WithPrevTx, cZ as assertAllowedSighashTypes, c_ as assertPageRequest, c$ as assertRecipientArkadeAddress, d0 as assetMintResolver, d1 as attachPrevArkTxs, d2 as attachPrevoutTxs, d3 as boardingResolver, d4 as canRecoverOnchain, d5 as canSpendOffchain, d6 as canSweepOnchain, d7 as classifyAgainstSignerSet, d8 as classifyContractSigner, d9 as collabExitResolver, da as collectBatchRegistrations, db as collectContracts, dc as collectIntents, dd as collectPages, de as collectScriptVtxos, df as collectTransactionHistory, dg as collectUtxos, dh as collectVtxos, di as configureEventSource, dj as createDefaultActivityRegistry, dk as createExitChainResolver, dl as defaultEmulatorPubkey, dm as getAllNormalizedVtxos, dn as getConfiguredEventSource, dp as getNetwork, dq as getNormalizedVtxos, dr as getRandomId, ds as hasCandidates, dt as isBatchSignable, du as isContractVtxoEvent, dv as isCooperativelyMigratable, dw as isDiscoverable, dx as isEventSourceUnavailableError, dy as isPastExpiry, dz as isSigningIdentity, dA as isSubdust, dB as isTerminalBatchRegistrationState, dC as isTerminalIntentState, dD as isVirtualCoin, dE as isVtxoExpiringSoon, dF as isVtxoSpent, dG as iteratePages, dH as networkFromArkadeInfo, dI as networkFromOperatorInfo, dJ as networks, dK as pageResult, dL as resolveEmulatorPubkey, dM as resolveEventSource, dN as resolvePrevTxs, dO as signerSetFromInfo, dP as toOffchainInputFeeParams, dQ as toXOnlySignerHex, dR as withPrevTxs } from './index-C66rjxz2.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 './keyringDescriptorProvider-DiBM4GmB.js';
|
|
4
|
+
export { f as AbortError, g as ArkError, h as ArkErrorName, i as ArkadeCashClaimResult, j as ArkadeCashCreateError, k as ArkadeCashOperatorMismatchError, l as ArkadeCashUnclaimedReason, m as ArkadeCashUnclaimedVtxo, n as ArkadeCashVtxoRef, o as BoardingUtxoGroup, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, F as ForeignDescriptorError, I as IncomingFunds, p as IndexedDBWalletRepository, K as KeyringDescriptorProvider, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, N as NotifiesIncomingFunds, q as ProviderKind, r as ProviderUnavailableError, s as REGTEST_MIN_BATCH_EXPIRY_SECONDS, S as ServerInfoSource, t as ServerResponseMismatchError, V as VtxoReservation, u as VtxoReservedError, v as WaitForIncomingFundsOptions, w as WalletCannotAllocateAddressError, x as assertValidBatchExpiry, y as defaultBatchExpiryPolicy, z as isAddressAllocationCapable, C as isArkError, E as isHDAllocationCapable, G as isHDWalletCapable, J as maybeArkError, L as resolveBatchExpiryPolicy, O as resolveDescriptorSigner, Q as selectVirtualCoins, T as signingDescriptorIndex, U as strictSigningDescriptorIndex, X as waitForIncomingFunds } from './keyringDescriptorProvider-DiBM4GmB.js';
|
|
5
5
|
import { T as TapLeafScript, E as EncodedVtxoScript, C as CSVMultisigTapscript, R as RelativeTimelock, V as VtxoScript, A as ArkAddress } from './base-C-Y5t_0F.js';
|
|
6
6
|
export { 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';
|
|
7
|
-
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-
|
|
7
|
+
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-2wKMrT0a.js';
|
|
8
8
|
import { D as DefaultVtxo } from './delegate-iyDum4fw.js';
|
|
9
9
|
export { a as DelegateVtxo } from './delegate-iyDum4fw.js';
|
|
10
10
|
import { Bytes, BTC_NETWORK } from '@scure/btc-signer/utils.js';
|
|
@@ -388,13 +388,13 @@ declare class InMemoryBatchRegistrationRepository implements BatchRegistrationRe
|
|
|
388
388
|
readonly version: 1;
|
|
389
389
|
private byId;
|
|
390
390
|
clear(): Promise<void>;
|
|
391
|
-
saveBatchRegistration(intent:
|
|
392
|
-
getBatchRegistrationsPage(filter:
|
|
391
|
+
saveBatchRegistration(intent: BatchRegistration): Promise<void>;
|
|
392
|
+
getBatchRegistrationsPage(filter: BatchRegistrationPageFilter | undefined, page: PageRequest): Promise<PageResult<BatchRegistration>>;
|
|
393
393
|
getLockedVtxoOutpoints(): Promise<Outpoint[]>;
|
|
394
394
|
/** @deprecated Use {@link saveBatchRegistration}. */
|
|
395
|
-
saveIntent(intent:
|
|
395
|
+
saveIntent(intent: BatchRegistration): Promise<void>;
|
|
396
396
|
/** @deprecated Use {@link getBatchRegistrationsPage}. */
|
|
397
|
-
getIntentsPage(filter:
|
|
397
|
+
getIntentsPage(filter: BatchRegistrationPageFilter | undefined, page: PageRequest): Promise<PageResult<BatchRegistration, string>>;
|
|
398
398
|
[Symbol.asyncDispose](): Promise<void>;
|
|
399
399
|
}
|
|
400
400
|
/** @deprecated Use {@link InMemoryBatchRegistrationRepository}. */
|
|
@@ -445,13 +445,13 @@ declare class IndexedDBBatchRegistrationRepository implements BatchRegistrationR
|
|
|
445
445
|
constructor(dbName?: string);
|
|
446
446
|
private getDB;
|
|
447
447
|
clear(): Promise<void>;
|
|
448
|
-
saveBatchRegistration(intent:
|
|
449
|
-
getBatchRegistrationsPage(filter:
|
|
448
|
+
saveBatchRegistration(intent: BatchRegistration): Promise<void>;
|
|
449
|
+
getBatchRegistrationsPage(filter: BatchRegistrationPageFilter | undefined, page: PageRequest): Promise<PageResult<BatchRegistration>>;
|
|
450
450
|
getLockedVtxoOutpoints(): Promise<Outpoint[]>;
|
|
451
451
|
/** @deprecated Use {@link saveBatchRegistration}. */
|
|
452
|
-
saveIntent(intent:
|
|
452
|
+
saveIntent(intent: BatchRegistration): Promise<void>;
|
|
453
453
|
/** @deprecated Use {@link getBatchRegistrationsPage}. */
|
|
454
|
-
getIntentsPage(filter:
|
|
454
|
+
getIntentsPage(filter: BatchRegistrationPageFilter | undefined, page: PageRequest): Promise<PageResult<BatchRegistration, string>>;
|
|
455
455
|
[Symbol.asyncDispose](): Promise<void>;
|
|
456
456
|
}
|
|
457
457
|
/** @deprecated Use {@link IndexedDBBatchRegistrationRepository}. */
|
|
@@ -1189,7 +1189,7 @@ type Options = {
|
|
|
1189
1189
|
*
|
|
1190
1190
|
* Ignored when `buildServices` is supplied — that override owns `storage`.
|
|
1191
1191
|
*/
|
|
1192
|
-
intentRepository?:
|
|
1192
|
+
intentRepository?: BatchRegistrationRepository;
|
|
1193
1193
|
/** The worker wallet's onchain provider, per network: an instance cannot cross `postMessage`.
|
|
1194
1194
|
* Called on every init and never closed, so return one instance per network. Defaults to
|
|
1195
1195
|
* Esplora; ignored when `buildServices` is supplied. */
|
|
@@ -2250,7 +2250,7 @@ type RequestGetOperatorInfo = RequestEnvelope & {
|
|
|
2250
2250
|
type ResponseGetOperatorInfo = ResponseEnvelope & {
|
|
2251
2251
|
type: "OPERATOR_INFO";
|
|
2252
2252
|
payload: {
|
|
2253
|
-
info:
|
|
2253
|
+
info: OperatorInfo;
|
|
2254
2254
|
};
|
|
2255
2255
|
};
|
|
2256
2256
|
type RequestIndexerGetVtxos = RequestEnvelope & {
|
|
@@ -3308,9 +3308,9 @@ declare class ServiceWorkerReadonlyWallet implements IReadonlyWallet {
|
|
|
3308
3308
|
* Delegated to the worker, which holds the wallet that owns the connection.
|
|
3309
3309
|
* The payload crosses raw — see {@link ResponseGetOperatorInfo} for why.
|
|
3310
3310
|
*/
|
|
3311
|
-
getOperatorInfo(opts?: GetOperatorInfoOptions): Promise<
|
|
3311
|
+
getOperatorInfo(opts?: GetOperatorInfoOptions): Promise<OperatorInfo>;
|
|
3312
3312
|
/** @deprecated Use {@link getOperatorInfo}. */
|
|
3313
|
-
getArkadeInfo(opts?: GetOperatorInfoOptions): Promise<
|
|
3313
|
+
getArkadeInfo(opts?: GetOperatorInfoOptions): Promise<OperatorInfo>;
|
|
3314
3314
|
/**
|
|
3315
3315
|
* An {@link ArkadeReader} that speaks to the worker rather than to the
|
|
3316
3316
|
* operator. The page holds no provider, so a caller that built its own from a
|
|
@@ -3954,15 +3954,15 @@ declare class CachingOperatorProvider implements OperatorProvider {
|
|
|
3954
3954
|
/** Releases the inner provider's server-info subscription. */
|
|
3955
3955
|
dispose(): void;
|
|
3956
3956
|
get serverUrl(): string | undefined;
|
|
3957
|
-
getInfo(): Promise<
|
|
3957
|
+
getInfo(): Promise<OperatorInfo>;
|
|
3958
3958
|
submitTx(signedArkTx: string, checkpointTxs: string[]): Promise<{
|
|
3959
3959
|
arkTxid: string;
|
|
3960
3960
|
finalArkTx: string;
|
|
3961
3961
|
signedCheckpointTxs: string[];
|
|
3962
3962
|
}>;
|
|
3963
3963
|
finalizeTx(arkTxid: string, finalCheckpointTxs: string[]): Promise<void>;
|
|
3964
|
-
registerIntent(intent:
|
|
3965
|
-
deleteIntent(intent:
|
|
3964
|
+
registerIntent(intent: SignedProof<Proof.RegisterMessage>): Promise<string>;
|
|
3965
|
+
deleteIntent(intent: SignedProof<Proof.DeleteMessage>): Promise<void>;
|
|
3966
3966
|
confirmRegistration(intentId: string): Promise<void>;
|
|
3967
3967
|
submitTreeNonces(batchId: string, pubkey: string, nonces: TreeNonces): Promise<void>;
|
|
3968
3968
|
submitTreeSignatures(batchId: string, pubkey: string, signatures: TreePartialSigs): Promise<void>;
|
|
@@ -3970,7 +3970,7 @@ declare class CachingOperatorProvider implements OperatorProvider {
|
|
|
3970
3970
|
getEventStream(signal: AbortSignal, topics: string[]): AsyncIterableIterator<SettlementEvent>;
|
|
3971
3971
|
getTransactionsStream(signal: AbortSignal): AsyncIterableIterator<TxNotificationEvent>;
|
|
3972
3972
|
getPendingTxs(intent: SignedProof<Proof.GetPendingTxMessage>): Promise<PendingTx[]>;
|
|
3973
|
-
onServerInfoChanged(listener: (info:
|
|
3973
|
+
onServerInfoChanged(listener: (info: OperatorInfo) => void): () => void;
|
|
3974
3974
|
}
|
|
3975
3975
|
/** @deprecated Use {@link CachingOperatorProvider}. */
|
|
3976
3976
|
declare const CachingArkProvider: typeof CachingOperatorProvider;
|
|
@@ -5703,7 +5703,7 @@ interface ArkadeSpendResult {
|
|
|
5703
5703
|
}
|
|
5704
5704
|
/** The callable spending paths of a contract. */
|
|
5705
5705
|
type CallableFunctions = Record<string, (...args: ArkadeNestedValue[]) => ArkadeTransactionBuilder>;
|
|
5706
|
-
/** What {@link Arkade} needs from the
|
|
5706
|
+
/** What {@link Arkade} needs from the operator; see {@link ArkadeConnectOptions.arkade}. */
|
|
5707
5707
|
type ArkadeServerProvider = Pick<OperatorProvider, "getInfo"> & Partial<ArkadeBroadcaster & Pick<OperatorProvider, "cosignOnchainTx">>;
|
|
5708
5708
|
/** Fields shared by both forms of {@link ArkadeConnectOptions}. */
|
|
5709
5709
|
interface ArkadeConnectCommonOptions {
|
|
@@ -6817,4 +6817,4 @@ declare class AssetManager extends ReadonlyAssetManager implements IAssetManager
|
|
|
6817
6817
|
private burnWith;
|
|
6818
6818
|
}
|
|
6819
6819
|
|
|
6820
|
-
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkAddress,
|
|
6820
|
+
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkAddress, ArkNote, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, Arkade, type ArkadeBatchInput, ArkadeBroadcaster, ArkadeCash, ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, ArkadeReader, ArkadeService, Asset, AssetDetails, AssetManager, AtomicWalletState, BIP21, BIP21Error, type BIP21Params, type BIP21ParseResult, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, BatchExpiryPolicy, BatchRegistration, BatchRegistrationPageFilter, BatchRegistrationRepository, 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, DefaultVtxo, 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, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryBatchRegistrationRepository, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBBatchRegistrationRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, 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, Proof, ProviderConnectionState, type ProvisionedClaimSecret, type ProvisionedKey, READ_TIMEOUT_MS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlySingleKey, 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, SingleKey, StaticDescriptorProvider, Status, StorageConfig, StoredVtxo, TapLeafScript, Transaction, TransactionHistoryPageCursor, TransactionHistoryPageFilter, TreeNonces, TreePartialSigs, TxNotificationEvent, TxTree, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, UnsupportedProgramVersionError, type VSize, type VerifyServerSignatures, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, type VtxoExclusion, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WalletRepository, type WalletRestoreHook, 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, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultPaymentRouter, createManagedConnection, createPrfPasskey, decodeArkContract, 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, 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,9 +1,9 @@
|
|
|
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, DatabaseUpgradeBlockedError, DelegateManagerImpl, DelegateNotConfiguredError, DescriptorIdentity, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EmulatorPacket, EsploraProvider, Estimator, Extension, ExtensionNotFoundError, ForeignDescriptorError, HDDescriptorProvider, INTENT_TERMINAL_STATES, InMemoryBatchRegistrationRepository, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBBatchRegistrationRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, 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, SeedIdentity, SendDeadlineExceededError, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, StaticDescriptorProvider, TreeSignerSession, TxTree, TxType, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, VtxoManager, VtxoReservedError, Wallet, WalletCannotAllocateAddressError, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WsElectrumChainSource, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, arkade_exports as arkade, assertFinalCommitmentMatchesValidated, assertNoAssets, assertNoSelection, assertPageRequest, assertRecipientArkadeAddress, assertSendDeadline, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, assetsOf, attachPrevArkTxs, attachPrevoutTxs, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, captureSendDeadline, claimWithPreimageIdentity, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, collabExitResolver, collectBatchRegistrations, collectContracts, collectIntents, collectPages, collectScriptVtxos, collectTransactionHistory, collectUtxos, collectVtxos, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, createPrfPasskey, decodeArkContract, defaultBatchExpiryPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, evaluatePrf, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getRandomId, hasBoardingTxExpired, hasCandidates, invoiceTarget, isAddressAllocationCapable, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isContractVtxoEvent, isCooperativelyMigratable, isCosignFallback, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalBatchRegistrationState, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, iteratePages, logExcludedVtxos, makeHandle, matchServerCheckpoints, mnemonicFromPrf, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, pageResult, prfSupport, promisifyRequest, provisionClaimSecret, provisionRefundKey, registerWalletRestoreHook, resolveAssetAmount, resolveBatchExpiryPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, selectCoinsWithAsset, selectVirtualCoins, selectionOf, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, submitViaEmulator, toXOnlySignerHex, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, walletFeeSource, withPrevTxs } 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, DatabaseUpgradeBlockedError, DelegateManagerImpl, DelegateNotConfiguredError, DescriptorIdentity, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EmulatorPacket, EsploraProvider, Estimator, Extension, ExtensionNotFoundError, ForeignDescriptorError, HDDescriptorProvider, INTENT_TERMINAL_STATES, InMemoryBatchRegistrationRepository, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBBatchRegistrationRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, 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, SeedIdentity, SendDeadlineExceededError, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, StaticDescriptorProvider, TreeSignerSession, TxTree, TxType, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, VtxoManager, VtxoReservedError, Wallet, WalletCannotAllocateAddressError, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WsElectrumChainSource, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, arkade_exports as arkade, assertFinalCommitmentMatchesValidated, assertNoAssets, assertNoSelection, assertPageRequest, assertRecipientArkadeAddress, assertSendDeadline, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, assetsOf, attachPrevArkTxs, attachPrevoutTxs, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, captureSendDeadline, claimWithPreimageIdentity, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, collabExitResolver, collectBatchRegistrations, collectContracts, collectIntents, collectPages, collectScriptVtxos, collectTransactionHistory, collectUtxos, collectVtxos, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, createPrfPasskey, decodeArkContract, defaultBatchExpiryPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, evaluatePrf, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getRandomId, hasBoardingTxExpired, hasCandidates, invoiceTarget, isAddressAllocationCapable, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isContractVtxoEvent, isCooperativelyMigratable, isCosignFallback, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalBatchRegistrationState, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, iteratePages, logExcludedVtxos, makeHandle, matchServerCheckpoints, mnemonicFromPrf, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, pageResult, prfSupport, promisifyRequest, provisionClaimSecret, provisionRefundKey, registerWalletRestoreHook, resolveAssetAmount, resolveBatchExpiryPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, selectCoinsWithAsset, selectVirtualCoins, selectionOf, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, submitViaEmulator, toXOnlySignerHex, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, walletFeeSource, withPrevTxs } from './chunk-YKT4NAQG.js';
|
|
2
2
|
import './chunk-V3ZLL5VY.js';
|
|
3
|
-
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, IndexerUtxosUnsupportedError, RestIndexerProvider, asset_exports as asset } from './chunk-
|
|
4
|
-
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor } from './chunk-
|
|
3
|
+
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, IndexerUtxosUnsupportedError, RestIndexerProvider, asset_exports as asset } from './chunk-C7NY6WSA.js';
|
|
4
|
+
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor } from './chunk-47Z4LEIW.js';
|
|
5
5
|
export { UnsupportedProgramVersionError, toXOnly } from './chunk-DNFTHG73.js';
|
|
6
|
-
export { ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ConditionWitness, CosignerPublicKey, DigestMismatchError, EventSourceUnavailableError, FetchError, 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-
|
|
6
|
+
export { ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ConditionWitness, CosignerPublicKey, DigestMismatchError, EventSourceUnavailableError, FetchError, 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-QTMK34TP.js';
|
|
7
7
|
export { ArkAddress, BITCOIN_EMULATOR_PUBKEY, CLTVMultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, DEFAULT_ARKADE_EMULATOR_URL, MUTINYNET_EMULATOR_PUBKEY, MultisigTapscript, REGTEST_EMULATOR_PUBKEY, TapTreeCoder, VtxoScript, assembleBtcdTaprootTree, decodeTapscript, defaultEmulatorPubkey, getNetwork, getSequence, networkFromArkadeInfo, networkFromOperatorInfo, networks, resolveEmulatorPubkey, scriptFromTapLeafScript, sequenceToTimelock, timelockToSequence } from './chunk-FDJ734CH.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/{keyringDescriptorProvider-CS4w4PWd.d.ts → keyringDescriptorProvider-DiBM4GmB.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { R as RelativeTimelock, A as ArkAddress, C as CSVMultisigTapscript } from './base-C-Y5t_0F.js';
|
|
3
|
-
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
1
|
+
import { a3 as Network, a4 as BatchStartedEvent, a5 as TreeSigningStartedEvent, a6 as TxTree, a7 as TreeNoncesEvent, a8 as BatchFinalizationEvent, a9 as BatchFinalizedEvent, aa as BatchFailedEvent, ab as TreeTxEvent, ac as TreeSignatureEvent, n as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, ad as DescriptorProvider, j as IContractManager, k as GetNewAddressesOptions, l as NewAddress, a as Identity, ae as IReadonlyWallet, af as ReadonlyIdentity, ag as OnchainProvider, x as OperatorProvider, w as IndexerProvider, ah as DelegateProvider, ai as ReadonlyWalletConfig, Y as BatchRegistrationRepository, $ as VirtualTxRepository, aj as ExitCaptureMode, ak as ExitDataSource, h as ActivityRegistry, al as IReadonlyAssetManager, am as ContractSyncState, an as RecipientArkadeAddressContext, G as GetOperatorInfoOptions, O as OperatorInfo, A as ArkadeReader, ao as EsploraProvider, ap as NetworkName, d as WalletBalance, e as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, f as GetSpendableVtxosFilter, aq as ContractWithVtxos, ar as selectPendingRecoveryOutpoints, g as ArkTransaction, i as Activity, E as ExtendedCoin, as as Coin, z as ExtendedVirtualCoin, at as ContractManager, au as ContractManagerConfig, I as IWallet, B as Outpoint, av as SettlementConfig, c as ArkadeBroadcaster, q as IAssetManager, aw as VtxoManager, m as IDelegateManager, S as SettleParams, R as Recipient, ax as SignerSession, ay as Transaction, p as SendOnchainParams, az as SignedIntent, aA as Intent, aB as SignedProof, aC as Proof, o as SendParams, aD as TimeHeight, P as PageRequest, D as PageResult, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, Q as AtomicWalletState, U as WalletState, aE as DescriptorSigningRequest } from './index-C66rjxz2.js';
|
|
4
2
|
import { TransactionOutput } from '@scure/btc-signer/psbt.js';
|
|
3
|
+
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
|
+
import { R as RelativeTimelock, A as ArkAddress, C as CSVMultisigTapscript } from './base-C-Y5t_0F.js';
|
|
5
5
|
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-iyDum4fw.js';
|
|
6
6
|
|
|
7
7
|
/** Wall-clock floor for `batchExpiry` outside regtest. */
|
|
@@ -120,7 +120,7 @@ declare class ServerResponseMismatchError extends Error {
|
|
|
120
120
|
*/
|
|
121
121
|
declare function maybeArkError(error: any): ArkError | undefined;
|
|
122
122
|
|
|
123
|
-
/** Where the {@link
|
|
123
|
+
/** Where the {@link OperatorInfo} used to construct a wallet came from. */
|
|
124
124
|
type ServerInfoSource = "live" | "cache";
|
|
125
125
|
|
|
126
126
|
/**
|
|
@@ -681,7 +681,7 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
681
681
|
protected vtxoSyncOverlapMs?: number;
|
|
682
682
|
protected copySyncOverlapTo(wallet: ReadonlyWallet): void;
|
|
683
683
|
/** Opt-in intent-lifecycle repository; `undefined` ⇒ intent persistence is a no-op. */
|
|
684
|
-
intentRepository?:
|
|
684
|
+
intentRepository?: BatchRegistrationRepository;
|
|
685
685
|
/**
|
|
686
686
|
* **Experimental / inert.** Opt-in virtual-tx repository, exposed so callers can pass it to
|
|
687
687
|
* {@link Unroll.Session.create} as a best-effort raw-tx cache. Normal sync never writes it.
|
|
@@ -784,11 +784,11 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
784
784
|
* before binding the answer into a covenant to fail closed instead of getting the snapshot.
|
|
785
785
|
*
|
|
786
786
|
* @returns The operator's info
|
|
787
|
-
* @see
|
|
787
|
+
* @see OperatorInfo
|
|
788
788
|
*/
|
|
789
|
-
getOperatorInfo(opts?: GetOperatorInfoOptions): Promise<
|
|
789
|
+
getOperatorInfo(opts?: GetOperatorInfoOptions): Promise<OperatorInfo>;
|
|
790
790
|
/** @deprecated Use {@link getOperatorInfo}. */
|
|
791
|
-
getArkadeInfo(opts?: GetOperatorInfoOptions): Promise<
|
|
791
|
+
getArkadeInfo(opts?: GetOperatorInfoOptions): Promise<OperatorInfo>;
|
|
792
792
|
/**
|
|
793
793
|
* Chain reads against this wallet's operator for scripts it does not own, bound to the wallet's
|
|
794
794
|
* own (possibly Expo/injected) `indexerProvider`. `getVtxos` normalizes via
|
|
@@ -1207,7 +1207,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1207
1207
|
get serverUnrollScript(): CSVMultisigTapscript.Type;
|
|
1208
1208
|
/**
|
|
1209
1209
|
* @internal Sole write path for `serverUnrollScript`; called by
|
|
1210
|
-
* {@link Wallet._doRotateServerSigner} with the rotating `
|
|
1210
|
+
* {@link Wallet._doRotateServerSigner} with the rotating `OperatorInfo`'s checkpoint script.
|
|
1211
1211
|
*/
|
|
1212
1212
|
setServerUnrollScriptForRotation(script: CSVMultisigTapscript.Type): void;
|
|
1213
1213
|
/**
|
package/dist/{keyringDescriptorProvider-CmHXrIXd.d.cts → keyringDescriptorProvider-DnaLUC7v.d.cts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { R as RelativeTimelock, A as ArkAddress, C as CSVMultisigTapscript } from './base-C-Y5t_0F.cjs';
|
|
3
|
-
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
1
|
+
import { a3 as Network, a4 as BatchStartedEvent, a5 as TreeSigningStartedEvent, a6 as TxTree, a7 as TreeNoncesEvent, a8 as BatchFinalizationEvent, a9 as BatchFinalizedEvent, aa as BatchFailedEvent, ab as TreeTxEvent, ac as TreeSignatureEvent, n as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, ad as DescriptorProvider, j as IContractManager, k as GetNewAddressesOptions, l as NewAddress, a as Identity, ae as IReadonlyWallet, af as ReadonlyIdentity, ag as OnchainProvider, x as OperatorProvider, w as IndexerProvider, ah as DelegateProvider, ai as ReadonlyWalletConfig, Y as BatchRegistrationRepository, $ as VirtualTxRepository, aj as ExitCaptureMode, ak as ExitDataSource, h as ActivityRegistry, al as IReadonlyAssetManager, am as ContractSyncState, an as RecipientArkadeAddressContext, G as GetOperatorInfoOptions, O as OperatorInfo, A as ArkadeReader, ao as EsploraProvider, ap as NetworkName, d as WalletBalance, e as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, f as GetSpendableVtxosFilter, aq as ContractWithVtxos, ar as selectPendingRecoveryOutpoints, g as ArkTransaction, i as Activity, E as ExtendedCoin, as as Coin, z as ExtendedVirtualCoin, at as ContractManager, au as ContractManagerConfig, I as IWallet, B as Outpoint, av as SettlementConfig, c as ArkadeBroadcaster, q as IAssetManager, aw as VtxoManager, m as IDelegateManager, S as SettleParams, R as Recipient, ax as SignerSession, ay as Transaction, p as SendOnchainParams, az as SignedIntent, aA as Intent, aB as SignedProof, aC as Proof, o as SendParams, aD as TimeHeight, P as PageRequest, D as PageResult, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, Q as AtomicWalletState, U as WalletState, aE as DescriptorSigningRequest } from './index-Dqk07NwJ.cjs';
|
|
4
2
|
import { TransactionOutput } from '@scure/btc-signer/psbt.js';
|
|
3
|
+
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
|
+
import { R as RelativeTimelock, A as ArkAddress, C as CSVMultisigTapscript } from './base-C-Y5t_0F.cjs';
|
|
5
5
|
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-gGkUnYpi.cjs';
|
|
6
6
|
|
|
7
7
|
/** Wall-clock floor for `batchExpiry` outside regtest. */
|
|
@@ -120,7 +120,7 @@ declare class ServerResponseMismatchError extends Error {
|
|
|
120
120
|
*/
|
|
121
121
|
declare function maybeArkError(error: any): ArkError | undefined;
|
|
122
122
|
|
|
123
|
-
/** Where the {@link
|
|
123
|
+
/** Where the {@link OperatorInfo} used to construct a wallet came from. */
|
|
124
124
|
type ServerInfoSource = "live" | "cache";
|
|
125
125
|
|
|
126
126
|
/**
|
|
@@ -681,7 +681,7 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
681
681
|
protected vtxoSyncOverlapMs?: number;
|
|
682
682
|
protected copySyncOverlapTo(wallet: ReadonlyWallet): void;
|
|
683
683
|
/** Opt-in intent-lifecycle repository; `undefined` ⇒ intent persistence is a no-op. */
|
|
684
|
-
intentRepository?:
|
|
684
|
+
intentRepository?: BatchRegistrationRepository;
|
|
685
685
|
/**
|
|
686
686
|
* **Experimental / inert.** Opt-in virtual-tx repository, exposed so callers can pass it to
|
|
687
687
|
* {@link Unroll.Session.create} as a best-effort raw-tx cache. Normal sync never writes it.
|
|
@@ -784,11 +784,11 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
784
784
|
* before binding the answer into a covenant to fail closed instead of getting the snapshot.
|
|
785
785
|
*
|
|
786
786
|
* @returns The operator's info
|
|
787
|
-
* @see
|
|
787
|
+
* @see OperatorInfo
|
|
788
788
|
*/
|
|
789
|
-
getOperatorInfo(opts?: GetOperatorInfoOptions): Promise<
|
|
789
|
+
getOperatorInfo(opts?: GetOperatorInfoOptions): Promise<OperatorInfo>;
|
|
790
790
|
/** @deprecated Use {@link getOperatorInfo}. */
|
|
791
|
-
getArkadeInfo(opts?: GetOperatorInfoOptions): Promise<
|
|
791
|
+
getArkadeInfo(opts?: GetOperatorInfoOptions): Promise<OperatorInfo>;
|
|
792
792
|
/**
|
|
793
793
|
* Chain reads against this wallet's operator for scripts it does not own, bound to the wallet's
|
|
794
794
|
* own (possibly Expo/injected) `indexerProvider`. `getVtxos` normalizes via
|
|
@@ -1207,7 +1207,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1207
1207
|
get serverUnrollScript(): CSVMultisigTapscript.Type;
|
|
1208
1208
|
/**
|
|
1209
1209
|
* @internal Sole write path for `serverUnrollScript`; called by
|
|
1210
|
-
* {@link Wallet._doRotateServerSigner} with the rotating `
|
|
1210
|
+
* {@link Wallet._doRotateServerSigner} with the rotating `OperatorInfo`'s checkpoint script.
|
|
1211
1211
|
*/
|
|
1212
1212
|
setServerUnrollScriptForRotation(script: CSVMultisigTapscript.Type): void;
|
|
1213
1213
|
/**
|