@arkade-os/sdk 0.5.0-rc.2 → 0.5.0-rc.4
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 +12 -67
- package/dist/adapters/expo.cjs +5 -6
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -4
- package/dist/{asyncStorageTaskQueue-C5rBYlru.d.ts → asyncStorageTaskQueue-BCiOgs5x.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-BuDvgWh6.d.cts → asyncStorageTaskQueue-CTIwKrt5.d.cts} +2 -2
- package/dist/{chunk-3R476TDV.js → chunk-4EZOMPAO.js} +14 -38
- package/dist/chunk-4EZOMPAO.js.map +1 -0
- package/dist/{chunk-D25O4EGY.cjs → chunk-5NLJUXXQ.cjs} +10 -10
- package/dist/{chunk-D25O4EGY.cjs.map → chunk-5NLJUXXQ.cjs.map} +1 -1
- package/dist/{chunk-JZWLXNHV.cjs → chunk-C5Y2R63Z.cjs} +25 -71
- package/dist/chunk-C5Y2R63Z.cjs.map +1 -0
- package/dist/{chunk-6DNR46C7.js → chunk-CIBGIZUW.js} +4 -4
- package/dist/{chunk-6DNR46C7.js.map → chunk-CIBGIZUW.js.map} +1 -1
- package/dist/{chunk-43FKNLX4.cjs → chunk-F7HJO5GT.cjs} +61 -85
- package/dist/chunk-F7HJO5GT.cjs.map +1 -0
- package/dist/{chunk-ISO4TI5J.js → chunk-GLZNJFAT.js} +25 -67
- package/dist/chunk-GLZNJFAT.js.map +1 -0
- package/dist/{chunk-HLCGYOIH.cjs → chunk-GPJSGLWM.cjs} +17 -17
- package/dist/{chunk-HLCGYOIH.cjs.map → chunk-GPJSGLWM.cjs.map} +1 -1
- package/dist/{chunk-ZOTXDOS5.js → chunk-MOWSLXGO.js} +4 -4
- package/dist/{chunk-ZOTXDOS5.js.map → chunk-MOWSLXGO.js.map} +1 -1
- package/dist/{chunk-ZRNQV6HV.js → chunk-PYTAH2NY.js} +167 -703
- package/dist/chunk-PYTAH2NY.js.map +1 -0
- package/dist/{chunk-NVZJSKZS.cjs → chunk-SYRQJS5N.cjs} +18 -19
- package/dist/chunk-SYRQJS5N.cjs.map +1 -0
- package/dist/{chunk-4PKLULWT.js → chunk-XHASFSDU.js} +3 -4
- package/dist/chunk-XHASFSDU.js.map +1 -0
- package/dist/{chunk-GMZZQXV5.cjs → chunk-ZHLYFRYY.cjs} +583 -1128
- package/dist/chunk-ZHLYFRYY.cjs.map +1 -0
- package/dist/contracts/handlers/index.cjs +9 -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 -3
- package/dist/{delegate-1yp1HyP7.d.cts → delegate-CpQIgTs7.d.cts} +1 -1
- package/dist/{delegate-BAX5QftB.d.ts → delegate-Dv-us16c.d.ts} +1 -1
- package/dist/{hdWalletCapable-CmEU0NP1.d.ts → hdWalletCapable-BC4Fmmht.d.ts} +7 -25
- package/dist/{hdWalletCapable-eJgaT-ec.d.cts → hdWalletCapable-DotEa5rZ.d.cts} +7 -25
- package/dist/{index-DUxufw76.d.ts → index-Czz9HSqE.d.cts} +21 -220
- package/dist/{index-DUxufw76.d.cts → index-Czz9HSqE.d.ts} +21 -220
- package/dist/{index-Bem5vKzX.d.ts → index-DUkvXxpt.d.ts} +3 -3
- package/dist/{index-W_oMcOmG.d.cts → index-DdJt5fRc.d.cts} +3 -3
- package/dist/index.cjs +291 -340
- package/dist/index.d.cts +58 -223
- package/dist/index.d.ts +58 -223
- package/dist/index.js +4 -5
- package/dist/repositories/realm/index.cjs +57 -24
- package/dist/repositories/realm/index.cjs.map +1 -1
- package/dist/repositories/realm/index.d.cts +12 -4
- package/dist/repositories/realm/index.d.ts +12 -4
- package/dist/repositories/realm/index.js +43 -10
- package/dist/repositories/realm/index.js.map +1 -1
- package/dist/repositories/sqlite/index.cjs +103 -33
- package/dist/repositories/sqlite/index.cjs.map +1 -1
- package/dist/repositories/sqlite/index.d.cts +12 -2
- package/dist/repositories/sqlite/index.d.ts +12 -2
- package/dist/repositories/sqlite/index.js +90 -20
- package/dist/repositories/sqlite/index.js.map +1 -1
- package/dist/{taskRunner-Dr3NStc0.d.cts → taskRunner-7E_Rx8bD.d.cts} +2 -2
- package/dist/{taskRunner-D_iPiZIi.d.ts → taskRunner-DUId1UJ8.d.ts} +2 -2
- package/dist/wallet/expo/background.cjs +14 -15
- package/dist/wallet/expo/background.cjs.map +1 -1
- 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 -7
- package/dist/wallet/expo/background.js.map +1 -1
- package/dist/wallet/expo/index.cjs +15 -23
- package/dist/wallet/expo/index.cjs.map +1 -1
- package/dist/wallet/expo/index.d.cts +4 -7
- package/dist/wallet/expo/index.d.ts +4 -7
- package/dist/wallet/expo/index.js +7 -15
- package/dist/wallet/expo/index.js.map +1 -1
- package/dist/worker/expo/index.cjs +9 -10
- package/dist/worker/expo/index.cjs.map +1 -1
- 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 -6
- package/dist/worker/expo/index.js.map +1 -1
- package/package.json +4 -42
- package/dist/adapters/asyncStorage.cjs +0 -48
- package/dist/adapters/asyncStorage.cjs.map +0 -1
- package/dist/adapters/asyncStorage.d.cts +0 -16
- package/dist/adapters/asyncStorage.d.ts +0 -16
- package/dist/adapters/asyncStorage.js +0 -46
- package/dist/adapters/asyncStorage.js.map +0 -1
- package/dist/adapters/fileSystem.cjs +0 -116
- package/dist/adapters/fileSystem.cjs.map +0 -1
- package/dist/adapters/fileSystem.d.cts +0 -17
- package/dist/adapters/fileSystem.d.ts +0 -17
- package/dist/adapters/fileSystem.js +0 -93
- package/dist/adapters/fileSystem.js.map +0 -1
- package/dist/adapters/indexedDB.cjs +0 -103
- package/dist/adapters/indexedDB.cjs.map +0 -1
- package/dist/adapters/indexedDB.d.cts +0 -18
- package/dist/adapters/indexedDB.d.ts +0 -18
- package/dist/adapters/indexedDB.js +0 -101
- package/dist/adapters/indexedDB.js.map +0 -1
- package/dist/adapters/localStorage.cjs +0 -50
- package/dist/adapters/localStorage.cjs.map +0 -1
- package/dist/adapters/localStorage.d.cts +0 -14
- package/dist/adapters/localStorage.d.ts +0 -14
- package/dist/adapters/localStorage.js +0 -48
- package/dist/adapters/localStorage.js.map +0 -1
- package/dist/chunk-3R476TDV.js.map +0 -1
- package/dist/chunk-43FKNLX4.cjs.map +0 -1
- package/dist/chunk-4PKLULWT.js.map +0 -1
- package/dist/chunk-5BLDMQED.cjs +0 -18
- package/dist/chunk-5BLDMQED.cjs.map +0 -1
- package/dist/chunk-GMZZQXV5.cjs.map +0 -1
- package/dist/chunk-ISO4TI5J.js.map +0 -1
- package/dist/chunk-JZWLXNHV.cjs.map +0 -1
- package/dist/chunk-NSBPE2FW.js +0 -15
- package/dist/chunk-NSBPE2FW.js.map +0 -1
- package/dist/chunk-NVZJSKZS.cjs.map +0 -1
- package/dist/chunk-ZRNQV6HV.js.map +0 -1
- package/dist/index-C0IanN1m.d.cts +0 -11
- package/dist/index-C0IanN1m.d.ts +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { W as Wallet, R as ReadonlyWallet, b as ReceiveRotatorFactory, c as ReceiveRotatorBootOpts, d as ReceiveRotatorBoot, P as ProviderConnectionState, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, B as BatchExpiryPolicy, e as Batch } from './hdWalletCapable-
|
|
4
|
-
export {
|
|
5
|
-
import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-
|
|
6
|
-
export {
|
|
7
|
-
import { D as DefaultVtxo } from './delegate-
|
|
8
|
-
export { a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { a7 as ReadonlyIdentity, a as Identity, at as DescriptorSigningRequest, au as Transaction, ap as SignerSession, a5 as DescriptorProvider, av as IntentFeeConfig, aw as OffchainInput, ax as FeeAmount, ay as OnchainInput, az as FeeOutput, H as IntentRepository, J as ArkIntent, K as IntentFilter, O as Outpoint, L as VirtualTxRepository, M as VirtualTx, P as VtxoBranch, W as WalletRepository, z as ExtendedVirtualCoin, B as VtxoRepositoryKey, E as ExtendedCoin, g as ArkTransaction, D as WalletState, y as Contract, C as ContractRepository, F as ContractFilter, I as IWallet, t as ArkProvider, an as SettlementConfig, aA as ContractWatcherConfig, aB as Asset, R as Recipient, aC as FeeInfo, n as SettlementEvent, S as SettleParams, G as GetArkadeInfoOptions, aD as GetVtxosOptions, aE as PaginationOptions, f as GetVtxosFilter, aF as CreateContractParams, aG as GetContractsFilter, x as VirtualCoin, aH as GetSpendablePathsOptions, aI as GetAllSpendingPathsOptions, k as GetNewAddressesOptions, aJ as IssuanceParams, aK as ReissuanceParams, aL as BurnParams, aM as RenewVtxosOptions, A as ArkadeInfo, aN as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, ae as ContractSyncState, ai as ContractWithVtxos, aO as PathSelection, l as NewAddress, aP as ContractEvent, aQ as AssetDetails, aR as IssuanceResult, aS as DelegateInfo, aT as MigrationGlobalSkipReason, aU as MigrationLegSkipReason, aV as SignerStatus, a6 as IReadonlyWallet, h as ActivityRegistry, ad as IReadonlyAssetManager, aW as StorageConfig, i as Activity, N as NormalizedExtendedVirtualCoin, j as IContractManager, p as IAssetManager, o as SendParams, m as IDelegateManager, aX as IVtxoManager, a8 as OnchainProvider, U as Network, ag as NetworkName, ak as Coin, aY as SendBitcoinParams, aZ as ExplorerTransaction, aq as SignedIntent, ar as Intent, a_ as TreeNonces, a$ as TreePartialSigs, T as TxNotificationEvent, b0 as PendingTx, w as TapLeafScript, b1 as EncodedVtxoScript, X as CSVMultisigTapscript, v as RelativeTimelock, V as VtxoScript, b2 as Status, ah as ArkAddress, b3 as ChainTx, u as IndexerProvider, _ as TxTree, b4 as PathContext } from './index-Czz9HSqE.js';
|
|
2
|
+
export { cV as ActivityIntent, cX as ActivityResolver, cO as ArkIntentState, cm as ArkTapscript, cu as AssetMetadata, bH as BITCOIN_EMULATOR_PUBKEY, b_ as BaseWalletConfig, a2 as BatchFailedEvent, a0 as BatchFinalizationEvent, a1 as BatchFinalizedEvent, ca as BatchInfo, bY as BatchSignableIdentity, Y as BatchStartedEvent, br as CLTVMultisigTapscript, cJ as CandidateDeps, bl as ChainTxType, Q as ChainedTxType, cb as CommitmentTx, bp as ConditionCSVMultisigTapscript, bq as ConditionMultisigTapscript, cD as ContractBalance, cC as ContractEventCallback, cE as ContractHandler, al as ContractManager, am as ContractManagerConfig, cB as ContractState, cA as ContractVtxo, bV as ContractWatcher, bh as DEFAULT_VTXO_PAGE_SIZE, bc as DelegateManagerImpl, cN as DelegateOptions, a9 as DelegateProvider, co as DeprecatedSignerMigrationReport, cp as DeprecatedSignerReport, bg as DigestMismatchError, cG as Discoverable, cI as DiscoveredContract, cH as DiscoveryDeps, be as ESPLORA_URL, bf as EsploraProvider, d2 as EventSourceCapable, d3 as EventSourceFactory, d4 as EventSourceLike, cZ as EventSourceUnavailableError, ab as ExitCaptureMode, cz as ExitChainResolver, ac as ExitDataSource, cF as ExtendedContractVtxo, cW as GroupMembership, cM as HandlerError, bL as INTENT_TERMINAL_STATES, bk as IndexerTxType, c7 as IntentCoin, cv as KnownMetadata, bI as MUTINYNET_EMULATOR_PUBKEY, cn as MigrateDeprecatedSignerOptions, cr as MigrationLegReport, cq as MigrationVtxoRef, bo as MultisigTapscript, b$ as NewAddressType, cw as Nonces, cg as Output, c9 as PageResponse, cx as PartialSig, c4 as PrevTxSource, bx as PrevTxUnavailableError, c1 as ProviderClass, bJ as REGTEST_EMULATOR_PUBKEY, c5 as RawTxSource, aa as ReadonlyWalletConfig, af as RecipientArkadeAddressContext, q as RestArkProvider, bd as RestDelegateProvider, r as RestIndexerProvider, cL as ScanContractsOptions, cK as ScanResult, cj as ScheduledSession, bm as SettlementEventType, bZ as SignRequest, cs as SignerClassification, ct as SignerSet, cl as SubscriptionEvent, ck as SubscriptionHeartbeat, s as SubscriptionResponse, ci as SweepTxNotification, c8 as TapLeaves, bs as TapTreeCoder, c3 as TapscriptType, as as TimeHeight, $ as TreeNoncesEvent, a4 as TreeSignatureEvent, Z as TreeSigningStartedEvent, a3 as TreeTxEvent, cf as Tx, cc as TxHistoryRecord, c2 as TxKey, ch as TxNotification, cY as TxTag, cy as TxTreeNode, bj as TxType, cd as Vtxo, ce as VtxoChain, ao as VtxoManager, d5 as VtxoType, b as WalletConfig, c0 as WalletMode, c6 as WithPrevTx, by as assertAllowedSighashTypes, bA as assertRecipientArkadeAddress, cT as assetMintResolver, bu as attachPrevArkTxs, bv as attachPrevoutTxs, cP as boardingResolver, bP as canRecoverOnchain, bQ as canSpendOffchain, bR as canSweepOnchain, b8 as classifyAgainstSignerSet, b7 as classifyContractSigner, cS as collabExitResolver, c_ as configureEventSource, cU as createDefaultActivityRegistry, bM as createExitChainResolver, bn as decodeTapscript, bF as defaultEmulatorPubkey, cQ as getAllNormalizedVtxos, c$ as getConfiguredEventSource, bC as getNetwork, cR as getNormalizedVtxos, bB as getRandomId, bO as getSequence, bX as hasCandidates, bS as hasTerminalSpend, b5 as isBatchSignable, ba as isCooperativelyMigratable, bW as isDiscoverable, d0 as isEventSourceUnavailableError, bT as isPastExpiry, b6 as isSigningIdentity, bN as isSubdust, bK as isTerminalIntentState, bU as isVirtualCoin, bz as isVtxoExpiringSoon, bD as networkFromArkadeInfo, bE as networks, bG as resolveEmulatorPubkey, d1 as resolveEventSource, bt as resolvePrevTxs, bi as scriptFromTapLeafScript, b9 as signerSetFromInfo, bb as toXOnlySignerHex, bw as withPrevTxs } from './index-Czz9HSqE.js';
|
|
3
|
+
import { W as Wallet, R as ReadonlyWallet, b as ReceiveRotatorFactory, c as ReceiveRotatorBootOpts, d as ReceiveRotatorBoot, P as ProviderConnectionState, H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, B as BatchExpiryPolicy, e as Batch } from './hdWalletCapable-BC4Fmmht.js';
|
|
4
|
+
export { k as AbortError, o as ArkError, p as ArkErrorName, T as ArkadeCashClaimResult, n as ArkadeCashCreateError, U as ArkadeCashUnclaimedReason, V as ArkadeCashUnclaimedVtxo, Q as BoardingUtxoGroup, N as CheckpointExitDelayPolicy, D as DEFAULT_MIN_BATCH_EXPIRY_SECONDS, I as DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, F as ForeignDescriptorError, O as IncomingFunds, M as MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, K as MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, X as ProviderKind, u as ProviderUnavailableError, z as REGTEST_MIN_BATCH_EXPIRY_SECONDS, J as REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, L as SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, Y as ServerInfoSource, S as ServerResponseMismatchError, l as WaitForIncomingFundsOptions, h as WalletCannotAllocateAddressError, v as assertValidBatchExpiry, C as assertValidServerUnrollScript, x as defaultBatchExpiryPolicy, E as defaultCheckpointExitDelayPolicy, g as isAddressAllocationCapable, q as isArkError, f as isHDAllocationCapable, i as isHDWalletCapable, t as maybeArkError, y as resolveBatchExpiryPolicy, G as resolveCheckpointExitDelayPolicy, r as resolveDescriptorSigner, m as selectVirtualCoins, s as signingDescriptorIndex, j as strictSigningDescriptorIndex, w as waitForIncomingFunds } from './hdWalletCapable-BC4Fmmht.js';
|
|
5
|
+
import { P as Program, A as ArkadeParamValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeArgValue, C as CompiledProgramFunction, d as ArkadeFunction, I as InputRef, e as InputDef, f as ArkadeValueType, g as ArkadeArgType, h as ArkadeContractParams, i as ArkadeSegment, j as AsmToken, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, W as WitnessRef, l as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, m as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-DUkvXxpt.js';
|
|
6
|
+
export { u as ArkadeContractHandler, B as BoardingContractHandler, F as BoardingContractParams, D as DefaultContractHandler, x as DefaultContractParams, o as DelegateContractHandler, y as DelegateContractParams, V as VHTLC, q as VHTLCContractHandler, z as VHTLCContractParams, t as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, n as contractHandlers } from './index-DUkvXxpt.js';
|
|
7
|
+
import { D as DefaultVtxo } from './delegate-Dv-us16c.js';
|
|
8
|
+
export { a as DelegateVtxo } from './delegate-Dv-us16c.js';
|
|
9
9
|
import { Bytes, BTC_NETWORK } from '@scure/btc-signer/utils.js';
|
|
10
10
|
import { P2TR } from '@scure/btc-signer/payment.js';
|
|
11
11
|
import { Transaction as Transaction$1, OP, Script, ScriptType } from '@scure/btc-signer';
|
|
12
12
|
import { ElectrumWS } from 'ws-electrumx-client';
|
|
13
13
|
import { TransactionOutput, TransactionInputUpdate } from '@scure/btc-signer/psbt.js';
|
|
14
14
|
import { Transaction as Transaction$2 } from '@scure/btc-signer/transaction.js';
|
|
15
|
-
import { S as StorageAdapter } from './index-C0IanN1m.js';
|
|
16
15
|
import * as P from 'micro-packed';
|
|
17
16
|
|
|
18
17
|
/**
|
|
@@ -55,18 +54,6 @@ type SerializedReadonlyIdentity = {
|
|
|
55
54
|
descriptor: string;
|
|
56
55
|
};
|
|
57
56
|
type SerializedIdentity = SerializedSigningIdentity | SerializedReadonlyIdentity;
|
|
58
|
-
/**
|
|
59
|
-
* Legacy untagged shape emitted by page builds prior to the tagged
|
|
60
|
-
* SerializedIdentity envelope. Retained so newer workers can still accept
|
|
61
|
-
* older pages during a rolling upgrade. Slated for removal in the next major.
|
|
62
|
-
*
|
|
63
|
-
* @deprecated Use {@link SerializedIdentity}.
|
|
64
|
-
*/
|
|
65
|
-
type LegacySerializedIdentity = {
|
|
66
|
-
privateKey: string;
|
|
67
|
-
} | {
|
|
68
|
-
publicKey: string;
|
|
69
|
-
};
|
|
70
57
|
|
|
71
58
|
/**
|
|
72
59
|
* Read-side HD capability marker. Exposes the wildcard-suffixed account
|
|
@@ -86,14 +73,8 @@ interface ReadonlyHDCapableIdentity extends ReadonlyIdentity {
|
|
|
86
73
|
* concrete descriptor by replacing the `*` with a derivation index.
|
|
87
74
|
*/
|
|
88
75
|
readonly descriptor: string;
|
|
89
|
-
/**
|
|
90
|
-
|
|
91
|
-
*
|
|
92
|
-
* @deprecated Prefer `DescriptorProvider.isOurs()` via
|
|
93
|
-
* `HDDescriptorProvider` for rotating HD wallets or
|
|
94
|
-
* `StaticDescriptorProvider` for legacy single-key wallets.
|
|
95
|
-
*/
|
|
96
|
-
isOurs(descriptor: string): boolean;
|
|
76
|
+
/** True iff `descriptor` derives from this identity's xpub/seed. */
|
|
77
|
+
ownsDescriptor(descriptor: string): boolean;
|
|
97
78
|
}
|
|
98
79
|
/**
|
|
99
80
|
* Capability marker for identities that can be rotated through an HD
|
|
@@ -110,22 +91,10 @@ interface ReadonlyHDCapableIdentity extends ReadonlyIdentity {
|
|
|
110
91
|
* explicitly-non-rotating use cases.
|
|
111
92
|
*/
|
|
112
93
|
interface HDCapableIdentity extends ReadonlyHDCapableIdentity, Identity {
|
|
113
|
-
/**
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
* `HDDescriptorProvider` or `StaticDescriptorProvider`. Identities keep
|
|
118
|
-
* this method only as backing implementation for descriptor providers.
|
|
119
|
-
*/
|
|
120
|
-
signWithDescriptor(requests: DescriptorSigningRequest[]): Promise<Transaction[]>;
|
|
121
|
-
/**
|
|
122
|
-
* Signs a message using the key derived from `descriptor`.
|
|
123
|
-
*
|
|
124
|
-
* @deprecated Prefer `DescriptorProvider.signMessageWithDescriptor()` via
|
|
125
|
-
* `HDDescriptorProvider` or `StaticDescriptorProvider`. Identities keep
|
|
126
|
-
* this method only as backing implementation for descriptor providers.
|
|
127
|
-
*/
|
|
128
|
-
signMessageWithDescriptor(descriptor: string, message: Uint8Array, signatureType?: "schnorr" | "ecdsa"): Promise<Uint8Array>;
|
|
94
|
+
/** Signs each request with the key derived from its descriptor. */
|
|
95
|
+
signDescriptorTransactions(requests: DescriptorSigningRequest[]): Promise<Transaction[]>;
|
|
96
|
+
/** Signs a message using the key derived from `descriptor`. */
|
|
97
|
+
signDescriptorMessage(descriptor: string, message: Uint8Array, signatureType?: "schnorr" | "ecdsa"): Promise<Uint8Array>;
|
|
129
98
|
}
|
|
130
99
|
|
|
131
100
|
/** Used for default BIP86 derivation with network selection. */
|
|
@@ -249,33 +218,15 @@ declare class SeedIdentity implements HDCapableIdentity {
|
|
|
249
218
|
* derive descriptors at any index without seed access).
|
|
250
219
|
*/
|
|
251
220
|
toReadonly(): Promise<ReadonlyDescriptorIdentity>;
|
|
252
|
-
/**
|
|
253
|
-
|
|
254
|
-
* HD descriptors match by account xpub; bare `tr(pubkey)` descriptors
|
|
255
|
-
* match by raw pubkey. See {@link descriptorIsOurs}.
|
|
256
|
-
*
|
|
257
|
-
* @deprecated Prefer `DescriptorProvider.isOurs()` via
|
|
258
|
-
* `HDDescriptorProvider` for rotating HD wallets or
|
|
259
|
-
* `StaticDescriptorProvider` for legacy single-key wallets.
|
|
260
|
-
*/
|
|
261
|
-
isOurs(descriptor: string): boolean;
|
|
221
|
+
/** Returns true when `descriptor` is derived from this identity's seed. */
|
|
222
|
+
ownsDescriptor(descriptor: string): boolean;
|
|
262
223
|
/**
|
|
263
224
|
* Signs each request with the key derived from its descriptor.
|
|
264
|
-
* Each descriptor must share this identity's seed ({@link
|
|
265
|
-
*
|
|
266
|
-
* @deprecated Prefer `DescriptorProvider.signWithDescriptor()` via
|
|
267
|
-
* `HDDescriptorProvider` or `StaticDescriptorProvider`. Identities keep
|
|
268
|
-
* this method only as backing implementation for descriptor providers.
|
|
225
|
+
* Each descriptor must share this identity's seed ({@link ownsDescriptor}).
|
|
269
226
|
*/
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
|
|
273
|
-
*
|
|
274
|
-
* @deprecated Prefer `DescriptorProvider.signMessageWithDescriptor()` via
|
|
275
|
-
* `HDDescriptorProvider` or `StaticDescriptorProvider`. Identities keep
|
|
276
|
-
* this method only as backing implementation for descriptor providers.
|
|
277
|
-
*/
|
|
278
|
-
signMessageWithDescriptor(descriptor: string, message: Uint8Array, signatureType?: "schnorr" | "ecdsa"): Promise<Uint8Array>;
|
|
227
|
+
signDescriptorTransactions(requests: DescriptorSigningRequest[]): Promise<Transaction[]>;
|
|
228
|
+
/** Signs a message with the key derived from `descriptor`. */
|
|
229
|
+
signDescriptorMessage(descriptor: string, message: Uint8Array, signatureType?: "schnorr" | "ecdsa"): Promise<Uint8Array>;
|
|
279
230
|
/**
|
|
280
231
|
* BIP-340 sign `messageHash` with the key derived from `descriptor`,
|
|
281
232
|
* aux_rand = 0. Backs {@link DescriptorIdentity.signSchnorrDeterministic},
|
|
@@ -361,17 +312,8 @@ declare class ReadonlyDescriptorIdentity implements ReadonlyHDCapableIdentity {
|
|
|
361
312
|
static fromDescriptor(descriptor: string): ReadonlyDescriptorIdentity;
|
|
362
313
|
xOnlyPublicKey(): Promise<Uint8Array>;
|
|
363
314
|
compressedPublicKey(): Promise<Uint8Array>;
|
|
364
|
-
/**
|
|
365
|
-
|
|
366
|
-
* HD descriptors match by account xpub; bare `tr(pubkey)` descriptors
|
|
367
|
-
* fall back to comparing against the index-0 x-only pubkey. See
|
|
368
|
-
* {@link descriptorIsOurs}.
|
|
369
|
-
*
|
|
370
|
-
* @deprecated Prefer `DescriptorProvider.isOurs()` via
|
|
371
|
-
* `HDDescriptorProvider` for rotating HD wallets or
|
|
372
|
-
* `StaticDescriptorProvider` for legacy single-key wallets.
|
|
373
|
-
*/
|
|
374
|
-
isOurs(descriptor: string): boolean;
|
|
315
|
+
/** Returns true when `descriptor` derives from this identity's xpub. */
|
|
316
|
+
ownsDescriptor(descriptor: string): boolean;
|
|
375
317
|
}
|
|
376
318
|
|
|
377
319
|
/**
|
|
@@ -958,69 +900,6 @@ declare class IndexedDBWalletRepository implements WalletRepository {
|
|
|
958
900
|
private getDB;
|
|
959
901
|
}
|
|
960
902
|
|
|
961
|
-
declare const MIGRATION_KEY: (repoType: "wallet" | "contract") => string;
|
|
962
|
-
type MigrationStatus = "pending" | "in-progress" | "done" | "not-needed";
|
|
963
|
-
declare function getMigrationStatus(repoType: "wallet" | "contract", storageAdapter: StorageAdapter): Promise<MigrationStatus>;
|
|
964
|
-
declare function requiresMigration(repoType: "wallet" | "contract", storageAdapter: StorageAdapter): Promise<boolean>;
|
|
965
|
-
declare function rollbackMigration(repoType: "wallet" | "contract", storageAdapter: StorageAdapter): Promise<void>;
|
|
966
|
-
/**
|
|
967
|
-
* Migrate wallet data from the legacy storage adapter to the new one.
|
|
968
|
-
* It accepts both onchain and offchain addresses, make sure to pass both.
|
|
969
|
-
*
|
|
970
|
-
* @param storageAdapter
|
|
971
|
-
* @param fresh
|
|
972
|
-
* @param addresses
|
|
973
|
-
*/
|
|
974
|
-
declare function migrateWalletRepository(storageAdapter: StorageAdapter, fresh: WalletRepository, addresses: {
|
|
975
|
-
onchain: string[];
|
|
976
|
-
offchain: string[];
|
|
977
|
-
}): Promise<void>;
|
|
978
|
-
|
|
979
|
-
/**
|
|
980
|
-
* @deprecated This is only to be used in migration from storage V1
|
|
981
|
-
*/
|
|
982
|
-
declare class WalletRepositoryImpl implements WalletRepository {
|
|
983
|
-
readonly version: 1;
|
|
984
|
-
private storage;
|
|
985
|
-
constructor(storage: StorageAdapter);
|
|
986
|
-
getVtxos(address: string): Promise<ExtendedVirtualCoin[]>;
|
|
987
|
-
saveVtxos(address: string, vtxos: ExtendedVirtualCoin[]): Promise<void>;
|
|
988
|
-
clearVtxos(address: string): Promise<void>;
|
|
989
|
-
deleteVtxos(address: string): Promise<void>;
|
|
990
|
-
getUtxos(address: string): Promise<ExtendedCoin[]>;
|
|
991
|
-
saveUtxos(address: string, utxos: ExtendedCoin[]): Promise<void>;
|
|
992
|
-
clearUtxos(address: string): Promise<void>;
|
|
993
|
-
deleteUtxos(address: string): Promise<void>;
|
|
994
|
-
getTransactionHistory(address: string): Promise<ArkTransaction[]>;
|
|
995
|
-
saveTransactions(address: string, txs: ArkTransaction[]): Promise<void>;
|
|
996
|
-
clearTransactions(address: string): Promise<void>;
|
|
997
|
-
deleteTransactions(address: string): Promise<void>;
|
|
998
|
-
getWalletState(): Promise<WalletState | null>;
|
|
999
|
-
saveWalletState(state: WalletState): Promise<void>;
|
|
1000
|
-
clear(): Promise<void>;
|
|
1001
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
/**
|
|
1005
|
-
* @deprecated This is only to be used in migration from storage V1
|
|
1006
|
-
*/
|
|
1007
|
-
declare class ContractRepositoryImpl implements ContractRepository {
|
|
1008
|
-
private storage;
|
|
1009
|
-
constructor(storage: StorageAdapter);
|
|
1010
|
-
get version(): 2;
|
|
1011
|
-
getContractData<T>(contractId: string, key: string): Promise<T | null>;
|
|
1012
|
-
setContractData<T>(contractId: string, key: string, data: T): Promise<void>;
|
|
1013
|
-
deleteContractData(contractId: string, key: string): Promise<void>;
|
|
1014
|
-
getContractCollection<T>(contractType: string): Promise<ReadonlyArray<T>>;
|
|
1015
|
-
saveToContractCollection<T, K extends keyof T>(contractType: string, item: T, idField: K): Promise<void>;
|
|
1016
|
-
removeFromContractCollection<T, K extends keyof T>(contractType: string, id: T[K], idField: K): Promise<void>;
|
|
1017
|
-
getContracts(_?: ContractFilter): Promise<Contract[]>;
|
|
1018
|
-
saveContract(_: Contract): Promise<void>;
|
|
1019
|
-
deleteContract(_: string): Promise<void>;
|
|
1020
|
-
clear(): Promise<void>;
|
|
1021
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
903
|
/**
|
|
1025
904
|
* Domain separator for the preimage derivation.
|
|
1026
905
|
*
|
|
@@ -1349,16 +1228,12 @@ type Initialize = {
|
|
|
1349
1228
|
type: "INITIALIZE_MESSAGE_BUS";
|
|
1350
1229
|
id: string;
|
|
1351
1230
|
config: {
|
|
1352
|
-
wallet: SerializedIdentity
|
|
1231
|
+
wallet: SerializedIdentity;
|
|
1353
1232
|
arkServer: {
|
|
1354
1233
|
url: string;
|
|
1355
1234
|
publicKey?: string;
|
|
1356
1235
|
};
|
|
1357
1236
|
delegateUrl?: string;
|
|
1358
|
-
/** @deprecated alias for @see Initialize.config.delegateUrl */
|
|
1359
|
-
delegatorUrl?: string;
|
|
1360
|
-
indexerUrl?: string;
|
|
1361
|
-
esploraUrl?: string;
|
|
1362
1237
|
settlementConfig?: SettlementConfig | false;
|
|
1363
1238
|
walletMode?: "auto" | "static" | "hd";
|
|
1364
1239
|
watcherConfig?: Partial<Omit<ContractWatcherConfig, "indexerProvider">>;
|
|
@@ -2446,25 +2321,9 @@ declare class ReadonlyWalletError extends Error {
|
|
|
2446
2321
|
declare class DelegateNotConfiguredError extends Error {
|
|
2447
2322
|
constructor();
|
|
2448
2323
|
}
|
|
2449
|
-
/** @deprecated alias for DelegateNotConfiguredError */
|
|
2450
|
-
declare const DelegatorNotConfiguredError: typeof DelegateNotConfiguredError;
|
|
2451
|
-
type DelegatorNotConfiguredError = DelegateNotConfiguredError;
|
|
2452
2324
|
type RequestInitWallet = RequestEnvelope & {
|
|
2453
2325
|
type: "INIT_WALLET";
|
|
2454
2326
|
payload: {
|
|
2455
|
-
/**
|
|
2456
|
-
* Legacy per-request key material. Ignored by the current handler —
|
|
2457
|
-
* identity hydration happens during INITIALIZE_MESSAGE_BUS. Retained
|
|
2458
|
-
* for wire compatibility with older workers that may still read it.
|
|
2459
|
-
* Slated for removal in the next major.
|
|
2460
|
-
*
|
|
2461
|
-
* @deprecated Identity is now carried by INITIALIZE_MESSAGE_BUS.
|
|
2462
|
-
*/
|
|
2463
|
-
key?: {
|
|
2464
|
-
privateKey: string;
|
|
2465
|
-
} | {
|
|
2466
|
-
publicKey: string;
|
|
2467
|
-
} | {};
|
|
2468
2327
|
arkServerUrl: string;
|
|
2469
2328
|
arkServerPublicKey?: string;
|
|
2470
2329
|
};
|
|
@@ -2484,16 +2343,6 @@ type ResponseSettle = ResponseEnvelope & {
|
|
|
2484
2343
|
txid: string;
|
|
2485
2344
|
};
|
|
2486
2345
|
};
|
|
2487
|
-
type RequestSendBitcoin = RequestEnvelope & {
|
|
2488
|
-
type: "SEND_BITCOIN";
|
|
2489
|
-
payload: SendBitcoinParams;
|
|
2490
|
-
};
|
|
2491
|
-
type ResponseSendBitcoin = ResponseEnvelope & {
|
|
2492
|
-
type: "SEND_BITCOIN_SUCCESS";
|
|
2493
|
-
payload: {
|
|
2494
|
-
txid: string;
|
|
2495
|
-
};
|
|
2496
|
-
};
|
|
2497
2346
|
type RequestGetAddress = RequestEnvelope & {
|
|
2498
2347
|
type: "GET_ADDRESS";
|
|
2499
2348
|
};
|
|
@@ -3104,8 +2953,8 @@ type RequestRestoreWallet = RequestEnvelope & {
|
|
|
3104
2953
|
type ResponseRestoreWallet = ResponseEnvelope & {
|
|
3105
2954
|
type: "RESTORE_WALLET_SUCCESS";
|
|
3106
2955
|
};
|
|
3107
|
-
type WalletUpdaterRequest = RequestInitWallet | RequestSettle |
|
|
3108
|
-
type WalletUpdaterResponse = ResponseEnvelope & (ResponseInitWallet | ResponseSettle | ResponseSettleEvent |
|
|
2956
|
+
type WalletUpdaterRequest = RequestInitWallet | RequestSettle | RequestGetAddress | RequestGetBoardingAddress | RequestGetArkadeInfo | RequestIndexerGetVtxos | RequestIndexerGetVirtualTxs | RequestSubmitTx | RequestFinalizeTx | RequestGetBalance | RequestGetVtxos | RequestGetSpendableVtxos | RequestGetBoardingUtxos | RequestGetTransactionHistory | RequestGetStatus | RequestGetContractSyncState | RequestClear | RequestReloadWallet | RequestSignTransaction | RequestCreateContract | RequestGetContracts | RequestGetContractsWithVtxos | RequestAnnotateVtxos | RequestUpdateContract | RequestDeleteContract | RequestGetSpendablePaths | RequestGetAllSpendingPaths | RequestIsContractManagerWatching | RequestRefreshVtxos | RequestRefreshOutpoints | RequestGetCurrentSigningDescriptor | RequestGetNextSigningDescriptor | RequestGetNewAddresses | RequestGetUsedSigningDescriptors | RequestAdvanceSigningDescriptorWatermark | RequestSend | RequestGetAssetDetails | RequestIssue | RequestReissue | RequestBurn | RequestDelegate | RequestGetDelegateInfo | RequestRecoverVtxos | RequestGetRecoverableBalance | RequestGetExpiringVtxos | RequestRenewVtxos | RequestGetExpiredBoardingUtxos | RequestSweepExpiredBoardingUtxos | RequestMigrateDeprecatedSignerVtxos | RequestGetDeprecatedSignerStatus | RequestRestoreWallet;
|
|
2957
|
+
type WalletUpdaterResponse = ResponseEnvelope & (ResponseInitWallet | ResponseSettle | ResponseSettleEvent | ResponseGetAddress | ResponseGetBoardingAddress | ResponseGetArkadeInfo | ResponseIndexerGetVtxos | ResponseIndexerGetVirtualTxs | ResponseSubmitTx | ResponseFinalizeTx | ResponseGetBalance | ResponseGetVtxos | ResponseGetSpendableVtxos | ResponseGetBoardingUtxos | ResponseGetTransactionHistory | ResponseGetStatus | ResponseGetContractSyncState | ResponseClear | ResponseReloadWallet | ResponseUtxoUpdate | ResponseVtxoUpdate | ResponseSignTransaction | ResponseCreateContract | ResponseGetContracts | ResponseGetContractsWithVtxos | ResponseAnnotateVtxos | ResponseUpdateContract | ResponseDeleteContract | ResponseGetSpendablePaths | ResponseGetAllSpendingPaths | ResponseIsContractManagerWatching | ResponseRefreshVtxos | ResponseRefreshOutpoints | ResponseGetCurrentSigningDescriptor | ResponseGetNextSigningDescriptor | ResponseGetNewAddresses | ResponseGetUsedSigningDescriptors | ResponseAdvanceSigningDescriptorWatermark | ResponseContractEvent | ResponseSend | ResponseGetAssetDetails | ResponseIssue | ResponseReissue | ResponseBurn | ResponseDelegate | ResponseGetDelegateInfo | ResponseRecoverVtxos | ResponseRecoverVtxosEvent | ResponseGetRecoverableBalance | ResponseGetExpiringVtxos | ResponseRenewVtxos | ResponseRenewVtxosEvent | ResponseGetExpiredBoardingUtxos | ResponseSweepExpiredBoardingUtxos | ResponseMigrateDeprecatedSignerVtxos | ResponseMigrateDeprecatedSignerVtxosEvent | ResponseGetDeprecatedSignerStatus | ResponseRestoreWallet);
|
|
3109
2958
|
declare class WalletMessageHandler implements MessageHandler<WalletUpdaterRequest, WalletUpdaterResponse> {
|
|
3110
2959
|
readonly messageTag: string;
|
|
3111
2960
|
private wallet;
|
|
@@ -3169,7 +3018,6 @@ declare class WalletMessageHandler implements MessageHandler<WalletUpdaterReques
|
|
|
3169
3018
|
*/
|
|
3170
3019
|
private reloadWallet;
|
|
3171
3020
|
private handleSettle;
|
|
3172
|
-
private handleSendBitcoin;
|
|
3173
3021
|
private handleSignTransaction;
|
|
3174
3022
|
private handleDelegate;
|
|
3175
3023
|
/**
|
|
@@ -3222,7 +3070,7 @@ declare const DEFAULT_MESSAGE_TIMEOUTS: Readonly<Record<RequestType, number>>;
|
|
|
3222
3070
|
* // SIMPLE: Recommended approach
|
|
3223
3071
|
* const wallet = await ServiceWorkerWallet.setup({
|
|
3224
3072
|
* serviceWorkerPath: '/service-worker.js',
|
|
3225
|
-
*
|
|
3073
|
+
* arkServer: { url: 'https://arkade.computer' },
|
|
3226
3074
|
* identity: MnemonicIdentity.fromMnemonic('abandon abandon...')
|
|
3227
3075
|
* });
|
|
3228
3076
|
*
|
|
@@ -3230,7 +3078,7 @@ declare const DEFAULT_MESSAGE_TIMEOUTS: Readonly<Record<RequestType, number>>;
|
|
|
3230
3078
|
* const serviceWorker = await setupServiceWorker("/service-worker.js");
|
|
3231
3079
|
* const wallet = await ServiceWorkerWallet.create({
|
|
3232
3080
|
* serviceWorker,
|
|
3233
|
-
*
|
|
3081
|
+
* arkServer: { url: 'https://arkade.computer' },
|
|
3234
3082
|
* identity: MnemonicIdentity.fromMnemonic('abandon abandon...')
|
|
3235
3083
|
* });
|
|
3236
3084
|
*
|
|
@@ -3240,27 +3088,11 @@ declare const DEFAULT_MESSAGE_TIMEOUTS: Readonly<Record<RequestType, number>>;
|
|
|
3240
3088
|
* ```
|
|
3241
3089
|
*/
|
|
3242
3090
|
interface ServiceWorkerWalletOptions {
|
|
3243
|
-
/**
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
* @deprecated Provide an explicit provider via the worker config instead.
|
|
3249
|
-
* URL-based configuration will be removed in a future major version.
|
|
3250
|
-
*/
|
|
3251
|
-
arkServerUrl?: string;
|
|
3252
|
-
/**
|
|
3253
|
-
* Optional override for the indexer URL.
|
|
3254
|
-
*
|
|
3255
|
-
* @deprecated Provide an explicit provider via the worker config instead.
|
|
3256
|
-
*/
|
|
3257
|
-
indexerUrl?: string;
|
|
3258
|
-
/**
|
|
3259
|
-
* Optional override for the Esplora API URL.
|
|
3260
|
-
*
|
|
3261
|
-
* @deprecated Provide an explicit provider via the worker config instead.
|
|
3262
|
-
*/
|
|
3263
|
-
esploraUrl?: string;
|
|
3091
|
+
/** Arkade server endpoint and optional public key. */
|
|
3092
|
+
arkServer?: {
|
|
3093
|
+
url: string;
|
|
3094
|
+
publicKey?: string;
|
|
3095
|
+
};
|
|
3264
3096
|
/**
|
|
3265
3097
|
* Repository-backed storage configuration overrides.
|
|
3266
3098
|
* Defaults to IndexedDB if unset.
|
|
@@ -3270,8 +3102,6 @@ interface ServiceWorkerWalletOptions {
|
|
|
3270
3102
|
identity: ReadonlyIdentity | Identity;
|
|
3271
3103
|
/** Optional delegation service URL. */
|
|
3272
3104
|
delegateUrl?: string;
|
|
3273
|
-
/** @deprecated alias for @see ServiceWorkerWalletOptions.delegateUrl */
|
|
3274
|
-
delegatorUrl?: string;
|
|
3275
3105
|
/**
|
|
3276
3106
|
* Override the default tag used for messages sent to and received from the service worker.
|
|
3277
3107
|
* @see DEFAULT_MESSAGE_TAG
|
|
@@ -3339,16 +3169,12 @@ type ServiceWorkerWalletSetupOptions = ServiceWorkerWalletOptions & {
|
|
|
3339
3169
|
serviceWorkerActivationTimeoutMs?: number;
|
|
3340
3170
|
};
|
|
3341
3171
|
type MessageBusInitConfig = {
|
|
3342
|
-
wallet: SerializedIdentity
|
|
3172
|
+
wallet: SerializedIdentity;
|
|
3343
3173
|
arkServer: {
|
|
3344
3174
|
url: string;
|
|
3345
3175
|
publicKey?: string;
|
|
3346
3176
|
};
|
|
3347
3177
|
delegateUrl?: string;
|
|
3348
|
-
/** @deprecated alias for @see MessageBusInitConfig.delegateUrl */
|
|
3349
|
-
delegatorUrl?: string;
|
|
3350
|
-
indexerUrl?: string;
|
|
3351
|
-
esploraUrl?: string;
|
|
3352
3178
|
timeoutMs?: number;
|
|
3353
3179
|
settlementConfig?: SettlementConfig | false;
|
|
3354
3180
|
walletMode?: ServiceWorkerWalletMode;
|
|
@@ -3370,13 +3196,11 @@ declare class ServiceWorkerReadonlyWallet implements IReadonlyWallet {
|
|
|
3370
3196
|
protected initWalletPayload: RequestInitWallet["payload"] | null;
|
|
3371
3197
|
protected messageBusTimeoutMs?: number;
|
|
3372
3198
|
protected messageTimeouts: Record<RequestType, number>;
|
|
3373
|
-
protected
|
|
3374
|
-
|
|
3199
|
+
protected arkServer?: {
|
|
3200
|
+
url: string;
|
|
3201
|
+
publicKey?: string;
|
|
3202
|
+
};
|
|
3375
3203
|
protected delegateUrl?: string;
|
|
3376
|
-
/** @deprecated alias for @see ServiceWorkerReadonlyWallet.delegateUrl */
|
|
3377
|
-
protected delegatorUrl?: string;
|
|
3378
|
-
protected indexerUrl?: string;
|
|
3379
|
-
protected esploraUrl?: string;
|
|
3380
3204
|
protected watcherConfig?: Partial<Omit<ContractWatcherConfig, "indexerProvider">>;
|
|
3381
3205
|
protected settlementConfig?: SettlementConfig | false;
|
|
3382
3206
|
private reinitPromise;
|
|
@@ -3403,7 +3227,7 @@ declare class ServiceWorkerReadonlyWallet implements IReadonlyWallet {
|
|
|
3403
3227
|
* ```typescript
|
|
3404
3228
|
* const wallet = await ServiceWorkerReadonlyWallet.setup({
|
|
3405
3229
|
* serviceWorkerPath: '/service-worker.js',
|
|
3406
|
-
*
|
|
3230
|
+
* arkServer: { url: 'https://arkade.computer' },
|
|
3407
3231
|
* identity: ReadonlySingleKey.fromPublicKey('your_public_key_hex')
|
|
3408
3232
|
* });
|
|
3409
3233
|
* ```
|
|
@@ -3514,7 +3338,7 @@ declare class ServiceWorkerWallet extends ServiceWorkerReadonlyWallet implements
|
|
|
3514
3338
|
* ```typescript
|
|
3515
3339
|
* const wallet = await ServiceWorkerWallet.setup({
|
|
3516
3340
|
* serviceWorkerPath: '/service-worker.js',
|
|
3517
|
-
*
|
|
3341
|
+
* arkServer: { url: 'https://arkade.computer' },
|
|
3518
3342
|
* identity: MnemonicIdentity.fromMnemonic('abandon abandon...')
|
|
3519
3343
|
* });
|
|
3520
3344
|
* ```
|
|
@@ -3570,7 +3394,6 @@ declare class ServiceWorkerWallet extends ServiceWorkerReadonlyWallet implements
|
|
|
3570
3394
|
* readonly class would promise something the boundary rejects.
|
|
3571
3395
|
*/
|
|
3572
3396
|
getArkadeBroadcaster(): Promise<ArkadeBroadcaster>;
|
|
3573
|
-
sendBitcoin(params: SendBitcoinParams): Promise<string>;
|
|
3574
3397
|
settle(params?: SettleParams, callback?: (event: SettlementEvent) => void): Promise<string>;
|
|
3575
3398
|
/**
|
|
3576
3399
|
* Explicitly recover this wallet's contracts and balance on a fresh repo.
|
|
@@ -3588,8 +3411,6 @@ declare class ServiceWorkerWallet extends ServiceWorkerReadonlyWallet implements
|
|
|
3588
3411
|
}): Promise<void>;
|
|
3589
3412
|
send(...args: [SendParams] | [Recipient, ...Recipient[]]): Promise<string>;
|
|
3590
3413
|
getDelegateManager(): Promise<IDelegateManager | undefined>;
|
|
3591
|
-
/** @deprecated alias for @see ServiceWorkerWallet.getDelegateManager */
|
|
3592
|
-
getDelegatorManager(): Promise<IDelegateManager | undefined>;
|
|
3593
3414
|
getVtxoManager(): Promise<IVtxoManager>;
|
|
3594
3415
|
}
|
|
3595
3416
|
|
|
@@ -4074,7 +3895,7 @@ declare class CachingArkProvider implements ArkProvider {
|
|
|
4074
3895
|
/** Releases the inner provider's server-info subscription. */
|
|
4075
3896
|
dispose(): void;
|
|
4076
3897
|
get serverUrl(): string | undefined;
|
|
4077
|
-
getInfo(): Promise<
|
|
3898
|
+
getInfo(): Promise<ArkadeInfo>;
|
|
4078
3899
|
submitTx(signedArkTx: string, checkpointTxs: string[]): Promise<{
|
|
4079
3900
|
arkTxid: string;
|
|
4080
3901
|
finalArkTx: string;
|
|
@@ -4090,7 +3911,7 @@ declare class CachingArkProvider implements ArkProvider {
|
|
|
4090
3911
|
getEventStream(signal: AbortSignal, topics: string[]): AsyncIterableIterator<SettlementEvent>;
|
|
4091
3912
|
getTransactionsStream(signal: AbortSignal): AsyncIterableIterator<TxNotificationEvent>;
|
|
4092
3913
|
getPendingTxs(intent: SignedIntent<Intent.GetPendingTxMessage>): Promise<PendingTx[]>;
|
|
4093
|
-
onServerInfoChanged(listener: (info:
|
|
3914
|
+
onServerInfoChanged(listener: (info: ArkadeInfo) => void): () => void;
|
|
4094
3915
|
}
|
|
4095
3916
|
|
|
4096
3917
|
type ArkTxInput = {
|
|
@@ -6251,7 +6072,11 @@ interface RouterPreferences {
|
|
|
6251
6072
|
tieBreak?: "first" | "require-choice";
|
|
6252
6073
|
}
|
|
6253
6074
|
interface RouterContext {
|
|
6254
|
-
|
|
6075
|
+
/** A rail needing more than this takes it as a constructor dep, rather than
|
|
6076
|
+
* narrowing the context every other rail shares. */
|
|
6077
|
+
wallet: IWallet;
|
|
6078
|
+
/** Loosely typed in core to avoid a dependency on boltz-swap; swap rails cast it. */
|
|
6079
|
+
swaps?: unknown;
|
|
6255
6080
|
prefs: RouterPreferences;
|
|
6256
6081
|
}
|
|
6257
6082
|
/** Mirrors {@link Recipient}: an Arkade address is the same string for BTC and
|
|
@@ -6406,6 +6231,10 @@ declare const ASSET_CARRIER_SATS = 330;
|
|
|
6406
6231
|
*/
|
|
6407
6232
|
declare function arkAssetRail(): PaymentRail;
|
|
6408
6233
|
|
|
6234
|
+
/** The canonical fee source for {@link onchainRail}: the operator's schedule, as
|
|
6235
|
+
* the wallet already reads it. Keeps the one `arkProvider` reach in one place,
|
|
6236
|
+
* so an app registering the rail itself need not know where fees live. */
|
|
6237
|
+
declare const walletFeeSource: (wallet: Wallet) => () => Promise<FeeInfo>;
|
|
6409
6238
|
/**
|
|
6410
6239
|
* On-chain BTC send via collaborative exit — the Wallet-only on-chain path (no
|
|
6411
6240
|
* swap). Matches a bare BTC address or the on-chain part of a unified BIP21 URI
|
|
@@ -6421,8 +6250,14 @@ declare function arkAssetRail(): PaymentRail;
|
|
|
6421
6250
|
*
|
|
6422
6251
|
* An explicit amount is mandatory. To sweep the full balance, call
|
|
6423
6252
|
* `Ramps.offboard(address, feeInfo)` directly — the router has no amountless path.
|
|
6253
|
+
*
|
|
6254
|
+
* @param deps.feeInfo - Source of the operator's fee schedule. Required: a rail
|
|
6255
|
+
* that cannot price an offboard must not be constructible — a silently dropped
|
|
6256
|
+
* rail on the money path is worse than a wiring error at startup.
|
|
6424
6257
|
*/
|
|
6425
|
-
declare function onchainRail(
|
|
6258
|
+
declare function onchainRail(deps: {
|
|
6259
|
+
feeInfo: () => Promise<FeeInfo>;
|
|
6260
|
+
}): PaymentRail;
|
|
6426
6261
|
|
|
6427
6262
|
/**
|
|
6428
6263
|
* Default payment router with the Wallet-only rails: `ark` (off-chain BTC send),
|
|
@@ -6710,4 +6545,4 @@ declare class AssetManager extends ReadonlyAssetManager implements IAssetManager
|
|
|
6710
6545
|
burn(params: BurnParams): Promise<string>;
|
|
6711
6546
|
}
|
|
6712
6547
|
|
|
6713
|
-
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkAddress,
|
|
6548
|
+
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkAddress, ArkIntent, ArkNote, ArkProvider, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, type ArkadeBatchInput, ArkadeBroadcaster, ArkadeCash, ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, ArkadeInfo, ArkadeReader, Asset, AssetDetails, AssetManager, BIP21, BIP21Error, type BIP21Params, type BIP21ParseResult, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, BatchExpiryPolicy, BurnParams, CSVMultisigTapscript, CachingArkProvider, ChainTx, Coin, ConditionWitness, ConnectionDisposedError, type ConnectorTreeNode, Contract, ContractEvent, ContractRepository, ContractSyncState, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, DatabaseUpgradeBlockedError, DefaultVtxo, DelegateInfo, DelegateNotConfiguredError, DescriptorIdentity, type DescriptorIdentityOptions, type DescriptorOptions, type DescriptorSigner, DescriptorSigningProviderMissingError, type DeterministicSigner, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, type BlockHeader as ElectrumBlockHeader, ElectrumOnchainProvider, type TransactionHistory as ElectrumTransactionHistory, type Unspent as ElectrumUnspent, type EmulatorEntry, type EmulatorInfo, EmulatorPacket, type EmulatorProvider, EncodedVtxoScript, Estimator, type 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, ExtendedVirtualCoin, Extension, ExtensionNotFoundError, type ExtensionPacket, FeeAmount, FeeInfo, FeeOutput, FetchError, GetArkadeInfoOptions, GetNewAddressesOptions, GetVtxosFilter, GetVtxosOptions, HDAllocationCapable, HDDescriptorProvider, type HDDeterministicSignCapable, HDWalletCapable, IAssetManager, IContractManager, IDelegateManager, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, IndexerProvider, Intent, IntentFeeConfig, IntentFilter, IntentRepository, IssuanceParams, IssuanceResult, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, type ManagedConnection, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, type MessageHandler, type MessageTimeouts, MigrationGlobalSkipReason, MigrationLegSkipReason, MissingSigningDescriptorError, MnemonicIdentity, type MnemonicOptions, Network, NetworkName, type NetworkOptions, NewAddress, NormalizedVtxoPage, OffchainInput, type OffchainTx, type OnExitObserved, OnchainInput, OnchainProvider, OnchainWallet, Outpoint, P2A, PaginationOptions, type ParsedArkContract, PathContext, PathSelection, type PaymentHandle, type PaymentOption, type PaymentRail, type PaymentRequest, PaymentRouter, type PaymentStatus, PrevArkTxField, PrevoutTxField, ProviderConnectionState, type ProvisionedClaimSecret, type ProvisionedKey, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlyIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, Recipient, ReissuanceParams, RelativeTimelock, RenewVtxosOptions, type RequestEnvelope, type ResponseEnvelope, RestEmulatorProvider, type RouteQuote, type RouteResult, type RouterContext, type RouterPreferences, SeedIdentity, type SeedIdentityOptions, SendBitcoinParams, SendParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignedIntent, SignerSession, SignerStatus, SingleKey, Status, StorageConfig, TapLeafScript, Transaction, TreeNonces, TreePartialSigs, TxNotificationEvent, TxTree, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, type VSize, type VerifyServerSignatures, VirtualCoin, VirtualTx, VirtualTxRepository, VtxoBranch, type VtxoExclusion, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, Wallet, WalletBalance, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WalletRepository, WsElectrumChainSource, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, index as arkade, assembleBtcdTaprootTree, assertFinalCommitmentMatchesValidated, assertNoAssets, assertSendableAmount, assertSubmittedArkTxid, index$1 as asset, assetsOf, awaitTransaction, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, buildVersion, claimWithPreimageIdentity, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultPaymentRouter, createManagedConnection, decodeArkContract, deleteByIndex, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, deserializeExitPackage, encodeArkContract, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getArkPsbtFields, hasBoardingTxExpired, identityDescriptor, invoiceTarget, isArkContract, isBtcAddress, isCltvSatisfied, isContractGenericallySpendable, isCsvSpendable, isDeterministicSigner, isHDDeterministicSignCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isRetryableProviderError, isValidArkAddress, logExcludedVtxos, makeHandle, matchServerCheckpoints, normalizeToDescriptor, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, parseHDDescriptor, promisifyRequest, provisionClaimSecret, provisionRefundKey, resolveAssetAmount, resolveSendAmount, sdkVersion, selectCoinsWithAsset, sequenceToTimelock, serializeExitPackage, setArkPsbtField, setupServiceWorker, signAndSubmitOffchainTx, timelockToSequence, toXOnly, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, walletFeeSource };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, AbortError, ActivityRegistry, AmbiguousRouteError, ArkNote, ArkadeCash, ArkadeCashCreateError, AssetManager, BIP21, BIP21Error, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, CachingArkProvider, ChainedTxType, ConnectionDisposedError, ContractManager,
|
|
2
|
-
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, RestIndexerProvider, asset_exports as asset } from './chunk-
|
|
3
|
-
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor, toXOnly } from './chunk-
|
|
4
|
-
export { ArkAddress, ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, BITCOIN_EMULATOR_PUBKEY, CLTVMultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, ConditionWitness, CosignerPublicKey, DigestMismatchError, EventSourceUnavailableError, FetchError, Intent, MUTINYNET_EMULATOR_PUBKEY, MultisigTapscript, PrevArkTxField, PrevoutTxField, ProviderUnavailableError, REGTEST_EMULATOR_PUBKEY, RestArkProvider, ServerResponseMismatchError, SettlementEventType, TapTreeCoder, Transaction, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, assembleBtcdTaprootTree, assertAllowedSighashTypes, buildVersion, canRecoverOnchain, canSpendOffchain, canSweepOnchain, configureEventSource, decodeTapscript, defaultEmulatorPubkey, getAllNormalizedVtxos, getArkPsbtFields, getConfiguredEventSource, getNetwork, getNormalizedVtxos, getSequence, hasTerminalSpend, isArkError, isEventSourceUnavailableError,
|
|
5
|
-
import './chunk-NSBPE2FW.js';
|
|
1
|
+
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, AbortError, ActivityRegistry, AmbiguousRouteError, ArkNote, ArkadeCash, ArkadeCashCreateError, AssetManager, BIP21, BIP21Error, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, CachingArkProvider, ChainedTxType, ConnectionDisposedError, ContractManager, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_SECONDS, DEFAULT_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, 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, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MUTINYNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainWallet, P2A, PaymentRouter, PrevTxUnavailableError, REGTEST_MIN_BATCH_EXPIRY_SECONDS, REGTEST_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestEmulatorProvider, SIGNET_MIN_CHECKPOINT_EXIT_DELAY_SECONDS, SeedIdentity, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, TxTree, TxType, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, VtxoManager, Wallet, WalletCannotAllocateAddressError, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WsElectrumChainSource, adoptContractDescriptor, arkAssetRail, arkRail, arkTarget, arkade_exports as arkade, assertFinalCommitmentMatchesValidated, assertNoAssets, assertRecipientArkadeAddress, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, assetsOf, attachPrevArkTxs, attachPrevoutTxs, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, claimWithPreimageIdentity, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, collabExitResolver, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, decodeArkContract, defaultBatchExpiryPolicy, defaultCheckpointExitDelayPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getRandomId, hasBoardingTxExpired, hasCandidates, invoiceTarget, isAddressAllocationCapable, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isCooperativelyMigratable, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, logExcludedVtxos, makeHandle, matchServerCheckpoints, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, promisifyRequest, provisionClaimSecret, provisionRefundKey, resolveAssetAmount, resolveBatchExpiryPolicy, resolveCheckpointExitDelayPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, selectCoinsWithAsset, selectVirtualCoins, serializeExitPackage, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, toXOnlySignerHex, tryResolveSendAmount, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, walletFeeSource, withPrevTxs } from './chunk-PYTAH2NY.js';
|
|
2
|
+
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, RestIndexerProvider, asset_exports as asset } from './chunk-XHASFSDU.js';
|
|
3
|
+
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor, toXOnly } from './chunk-4EZOMPAO.js';
|
|
4
|
+
export { ArkAddress, ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, BITCOIN_EMULATOR_PUBKEY, CLTVMultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, ConditionWitness, CosignerPublicKey, DigestMismatchError, EventSourceUnavailableError, FetchError, Intent, MUTINYNET_EMULATOR_PUBKEY, MultisigTapscript, PrevArkTxField, PrevoutTxField, ProviderUnavailableError, REGTEST_EMULATOR_PUBKEY, RestArkProvider, ServerResponseMismatchError, SettlementEventType, TapTreeCoder, Transaction, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, assembleBtcdTaprootTree, assertAllowedSighashTypes, buildVersion, canRecoverOnchain, canSpendOffchain, canSweepOnchain, configureEventSource, decodeTapscript, defaultEmulatorPubkey, getAllNormalizedVtxos, getArkPsbtFields, getConfiguredEventSource, getNetwork, getNormalizedVtxos, getSequence, hasTerminalSpend, isArkError, isEventSourceUnavailableError, isPastExpiry, isRetryableProviderError, isVirtualCoin, maybeArkError, networkFromArkadeInfo, networks, resolveEmulatorPubkey, resolveEventSource, scriptFromTapLeafScript, sdkVersion, sequenceToTimelock, setArkPsbtField, timelockToSequence } from './chunk-GLZNJFAT.js';
|
|
6
5
|
//# sourceMappingURL=index.js.map
|
|
7
6
|
//# sourceMappingURL=index.js.map
|