@arkade-os/sdk 0.5.2 → 0.5.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 +36 -34
- package/dist/adapters/expo.cjs +9 -5
- package/dist/adapters/expo.d.cts +11 -7
- package/dist/adapters/expo.d.ts +11 -7
- package/dist/adapters/expo.js +3 -3
- package/dist/{asyncStorageTaskQueue-DIn7bTqN.d.ts → asyncStorageTaskQueue-DHMIxY04.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-BtEc3Qca.d.cts → asyncStorageTaskQueue-DTBa8EH7.d.cts} +2 -2
- package/dist/{chunk-LWRMSC4M.js → chunk-6CUP6ZIF.js} +4 -4
- package/dist/{chunk-LWRMSC4M.js.map → chunk-6CUP6ZIF.js.map} +1 -1
- package/dist/{chunk-HKG26NUT.js → chunk-AG4TFD6F.js} +140 -59
- package/dist/chunk-AG4TFD6F.js.map +1 -0
- package/dist/{chunk-PVFQFQBY.cjs → chunk-B6VNKGIH.cjs} +10 -10
- package/dist/chunk-B6VNKGIH.cjs.map +1 -0
- package/dist/{chunk-U5XG7SWA.js → chunk-BTRCN4JJ.js} +22 -19
- package/dist/chunk-BTRCN4JJ.js.map +1 -0
- package/dist/{chunk-TAIWH3HG.cjs → chunk-DNITZVNG.cjs} +28 -47
- package/dist/chunk-DNITZVNG.cjs.map +1 -0
- package/dist/{chunk-OM6FJ76H.cjs → chunk-E6OOJEHL.cjs} +49 -49
- package/dist/{chunk-OM6FJ76H.cjs.map → chunk-E6OOJEHL.cjs.map} +1 -1
- package/dist/{chunk-2OCYL6BJ.cjs → chunk-F3FAE7VJ.cjs} +850 -652
- package/dist/chunk-F3FAE7VJ.cjs.map +1 -0
- package/dist/{chunk-GGKR4O5X.cjs → chunk-GHUUT54D.cjs} +143 -58
- package/dist/chunk-GHUUT54D.cjs.map +1 -0
- package/dist/{chunk-MOBDJ7U2.js → chunk-MWVAWFX6.js} +4 -4
- package/dist/chunk-MWVAWFX6.js.map +1 -0
- package/dist/{chunk-2QRUQXLS.js → chunk-TUOLZBNC.js} +19 -39
- package/dist/chunk-TUOLZBNC.js.map +1 -0
- package/dist/{chunk-64R7CRKN.cjs → chunk-WXNSISXK.cjs} +37 -34
- package/dist/chunk-WXNSISXK.cjs.map +1 -0
- package/dist/{chunk-AJWXVQYG.js → chunk-ZJHLLDBP.js} +372 -177
- package/dist/chunk-ZJHLLDBP.js.map +1 -0
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-CaL8EN4Q.d.cts → delegate-f4_t864Z.d.cts} +1 -1
- package/dist/{delegate-Jd4zs88Q.d.ts → delegate-xrSBNybC.d.ts} +1 -1
- package/dist/{index-D-xqVzf8.d.ts → index-BJDz15ms.d.ts} +5 -5
- package/dist/{index-BwdGzNSn.d.cts → index-BjiVGtp8.d.cts} +5 -5
- package/dist/{index-DdKxfC29.d.cts → index-DRwe0UDN.d.cts} +194 -114
- package/dist/{index-DdKxfC29.d.ts → index-DRwe0UDN.d.ts} +194 -114
- package/dist/index.cjs +333 -313
- package/dist/index.d.cts +80 -45
- package/dist/index.d.ts +80 -45
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +65 -36
- package/dist/repositories/realm/index.cjs.map +1 -1
- package/dist/repositories/realm/index.d.cts +7 -3
- package/dist/repositories/realm/index.d.ts +7 -3
- package/dist/repositories/realm/index.js +35 -6
- package/dist/repositories/realm/index.js.map +1 -1
- package/dist/repositories/sqlite/index.cjs +176 -110
- package/dist/repositories/sqlite/index.cjs.map +1 -1
- package/dist/repositories/sqlite/index.d.cts +23 -13
- package/dist/repositories/sqlite/index.d.ts +23 -13
- package/dist/repositories/sqlite/index.js +148 -83
- package/dist/repositories/sqlite/index.js.map +1 -1
- package/dist/{taskRunner-ZyGGjtIq.d.ts → taskRunner-BPPU-YHG.d.cts} +4 -4
- package/dist/{taskRunner-67YSEpsz.d.cts → taskRunner-CDlNeth0.d.ts} +4 -4
- package/dist/wallet/expo/background.cjs +14 -14
- 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 +7 -7
- package/dist/wallet/expo/background.js.map +1 -1
- package/dist/wallet/expo/index.cjs +18 -15
- package/dist/wallet/expo/index.cjs.map +1 -1
- package/dist/wallet/expo/index.d.cts +7 -6
- package/dist/wallet/expo/index.d.ts +7 -6
- package/dist/wallet/expo/index.js +9 -6
- package/dist/wallet/expo/index.js.map +1 -1
- package/dist/{wallet-bFS7VybL.d.ts → wallet-Oc3Wd5gv.d.ts} +27 -19
- package/dist/{wallet-B8LW7cV1.d.cts → wallet-jVBDQl6R.d.cts} +27 -19
- 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-2OCYL6BJ.cjs.map +0 -1
- package/dist/chunk-2QRUQXLS.js.map +0 -1
- package/dist/chunk-64R7CRKN.cjs.map +0 -1
- package/dist/chunk-AJWXVQYG.js.map +0 -1
- package/dist/chunk-GGKR4O5X.cjs.map +0 -1
- package/dist/chunk-HKG26NUT.js.map +0 -1
- package/dist/chunk-MOBDJ7U2.js.map +0 -1
- package/dist/chunk-PVFQFQBY.cjs.map +0 -1
- package/dist/chunk-TAIWH3HG.cjs.map +0 -1
- package/dist/chunk-U5XG7SWA.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 './wallet-
|
|
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, 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, N as resolveDescriptorSigner, O as selectVirtualCoins, Q as signingDescriptorIndex, T as strictSigningDescriptorIndex, U as waitForIncomingFunds } from './wallet-
|
|
5
|
-
import { P as Program, A as
|
|
6
|
-
export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, V as VHTLC, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from './index-
|
|
7
|
-
import { D as DefaultVtxo } from './delegate-
|
|
8
|
-
export { a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { aj as ReadonlyIdentity, a as Identity, a6 as DescriptorSigningRequest, a7 as Transaction, aE as SignerSession, a5 as DescriptorProvider, aK as IntentFeeConfig, aL as OffchainInput, aM as FeeAmount, aN as OnchainInput, aO as FeeOutput, _ as IntentRepository, $ as ArkIntent, a0 as IntentPageFilter, P as PageRequest, H as PageResult, F as Outpoint, a1 as VirtualTxRepository, a2 as VirtualTx, a3 as VtxoBranch, W as WalletRepository, X as AtomicWalletState, D as ExtendedVirtualCoin, J as ScriptVtxoCursor, K as ScriptVtxoPageOptions, L as StoredVtxo, M as VtxoRepositoryKey, E as ExtendedCoin, Q as TransactionHistoryPageFilter, U as TransactionHistoryPageCursor, h as ArkTransaction, Y as WalletState, B as Contract, C as ContractRepository, Z as ContractFilter, I as IWallet, O as OperatorProvider, at as NetworkName, ak as OnchainProvider, aC as SettlementConfig, aP as ContractWatcherConfig, aQ as Asset, R as Recipient, aR as FeeInfo, o as SettlementEvent, N as NormalizedExtendedVirtualCoin, S as SettleParams, G as GetArkadeInfoOptions, aS as GetVtxosOptions, aT as PaginationOptions, f as GetVtxosFilter, g as GetSpendableVtxosFilter, aU as CreateContractParams, aV as GetContractsFilter, z as VirtualCoin, aW as GetSpendablePathsOptions, aX as GetAllSpendingPathsOptions, l as GetNewAddressesOptions, aY as InputExpiryFloor, aZ as IssuanceParams, a_ as ReissuanceParams, a$ as BurnParams, b0 as RenewVtxosOptions, A as ArkadeInfo, b1 as NormalizedVtxoPage, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, aq as ContractSyncState, aw as ContractWithVtxos, b2 as WatchedScript, b3 as PathSelection, m as NewAddress, b4 as ContractEvent, b5 as AssetDetails, b6 as IssuanceResult, b7 as DelegateInfo, b8 as MigrationGlobalSkipReason, b9 as MigrationLegSkipReason, ba as SignerStatus, ai as IReadonlyWallet, i as ActivityRegistry, ap as IReadonlyAssetManager, bb as StorageConfig, j as Activity, k as IContractManager, q as IAssetManager, p as SendParams, n as IDelegateManager, bc as IVtxoManager, a8 as Network, ay as Coin, bd as SendBitcoinParams, be as ExplorerTransaction, aF as SignedIntent, aG as Intent, bf as TreeNonces, bg as TreePartialSigs, T as TxNotificationEvent, aH as SignedProof, aI as Proof, bh as PendingTx, y as TapLeafScript, bi as EncodedVtxoScript, aB as CSVMultisigTapscript, x as RelativeTimelock, bj as EmulatorProvider, V as VtxoScript, bk as Status, av as ArkAddress, bl as ChainTx, w as IndexerProvider, ab as TxTree, bm as ArkadeService, bn as ContractVtxoEvent, bo as ExtendedContractVtxo, bp as ResolvedArkadeService, bq as resolveArkadeService, br as PathContext } from './index-DRwe0UDN.js';
|
|
2
|
+
export { bs as ActivityIntent, bt as ActivityResolver, bu as ArkIntentState, v as ArkProvider, bv as ArkTapscript, bw as AssetMetadata, bx as BITCOIN_EMULATOR_PUBKEY, by as BaseWalletConfig, af as BatchFailedEvent, ad as BatchFinalizationEvent, ae as BatchFinalizedEvent, bz as BatchInfo, bA as BatchSignableIdentity, a9 as BatchStartedEvent, bB as CLTVMultisigTapscript, bC as CandidateDeps, bD as ChainTxType, a4 as ChainedTxType, bE as CommitmentTx, bF as ConditionCSVMultisigTapscript, bG as ConditionMultisigTapscript, bH as ConnectorTreeNode, bI as ContractBalance, bJ as ContractEventCallback, bK as ContractHandler, az as ContractManager, aA as ContractManagerConfig, bL as ContractState, bM as ContractVtxo, bN as ContractWatcher, bO as ContractWatcherEventCallback, bP as DEFAULT_ARKADE_EMULATOR_URL, bQ as DEFAULT_VTXO_PAGE_SIZE, bR as DelegateManagerImpl, bS as DelegateOptions, al as DelegateProvider, bT as DeprecatedSignerMigrationReport, bU as DeprecatedSignerReport, bV as DigestMismatchError, bW as Discoverable, bX as DiscoveredContract, bY as DiscoveryDeps, bZ as ESPLORA_URL, b_ as EmulatorInfo, as as EsploraProvider, b$ as EventSourceCapable, c0 as EventSourceFactory, c1 as EventSourceLike, c2 as EventSourceUnavailableError, an as ExitCaptureMode, c3 as ExitChainResolver, ao as ExitDataSource, c4 as GroupMembership, c5 as HandlerError, c6 as INTENT_TERMINAL_STATES, c7 as IndexerTxType, c8 as IntentCoin, c9 as IntentFilter, ca as KnownMetadata, cb as MAX_PAGE_SIZE, cc as MUTINYNET_EMULATOR_PUBKEY, cd as MigrateDeprecatedSignerOptions, ce as MigrationLegReport, cf as MigrationVtxoRef, cg as MultisigTapscript, ch as NewAddressType, ci as Nonces, au as OperatorInfo, cj as Output, ck as PageResponse, cl as PartialSig, cm as PrevTxSource, cn as PrevTxUnavailableError, co as ProofInput, cp as ProviderClass, cq as REGTEST_EMULATOR_PUBKEY, cr as RawTxSource, am as ReadonlyWalletConfig, ar as RecipientArkadeAddressContext, cs as RenewalSplit, ct as RenewalSplitContext, cu as RestArkProvider, cv as RestDelegateProvider, cw as RestEmulatorProvider, s as RestIndexerProvider, r as RestOperatorProvider, cx as ScanContractsOptions, cy as ScanResult, cz as ScheduledSession, cA as SettlementEventType, cB as SignRequest, cC as SignerClassification, cD as SignerSet, t as SubscriptionEvent, cE as SubscriptionFilter, u as SubscriptionHeartbeat, cF as SubscriptionResponse, cG as SweepTxNotification, cH as TapLeaves, cI as TapTreeCoder, cJ as TapscriptType, aJ as TimeHeight, ac as TreeNoncesEvent, ah as TreeSignatureEvent, cK as TreeSignerSession, aa as TreeSigningStartedEvent, ag as TreeTxEvent, cL as Tx, cM as TxHistoryRecord, cN as TxKey, cO as TxNotification, cP as TxTag, cQ as TxTreeNode, cR as TxType, cS as Vtxo, cT as VtxoChain, aD as VtxoManager, cU as VtxoType, b as WalletConfig, cV as WalletMode, cW as WithPrevTx, cX as assertAllowedSighashTypes, cY as assertPageRequest, cZ as assertRecipientArkadeAddress, c_ as assetMintResolver, c$ as attachPrevArkTxs, d0 as attachPrevoutTxs, d1 as boardingResolver, d2 as canRecoverOnchain, d3 as canSpendOffchain, d4 as canSweepOnchain, d5 as classifyAgainstSignerSet, d6 as classifyContractSigner, d7 as collabExitResolver, d8 as collectContracts, d9 as collectIntents, da as collectPages, db as collectScriptVtxos, dc as collectTransactionHistory, dd as collectUtxos, de as collectVtxos, df as configureEventSource, dg as createDefaultActivityRegistry, dh as createExitChainResolver, di as decodeTapscript, dj as defaultEmulatorPubkey, dk as getAllNormalizedVtxos, dl as getConfiguredEventSource, dm as getNetwork, dn as getNormalizedVtxos, dp as getRandomId, dq as getSequence, dr as hasCandidates, ds as isBatchSignable, dt as isContractVtxoEvent, du as isCooperativelyMigratable, dv as isDiscoverable, dw as isEventSourceUnavailableError, dx as isPastExpiry, dy as isSigningIdentity, dz as isSubdust, dA as isTerminalIntentState, dB as isVirtualCoin, dC as isVtxoExpiringSoon, dD as isVtxoSpent, dE as iteratePages, dF as networkFromArkadeInfo, dG as networkFromOperatorInfo, dH as networks, dI as pageResult, dJ as resolveEmulatorPubkey, dK as resolveEventSource, dL as resolvePrevTxs, dM as scriptFromTapLeafScript, dN as signerSetFromInfo, dO as toOffchainInputFeeParams, dP as toXOnlySignerHex, dQ as withPrevTxs } from './index-DRwe0UDN.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 './wallet-Oc3Wd5gv.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, 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, N as resolveDescriptorSigner, O as selectVirtualCoins, Q as signingDescriptorIndex, T as strictSigningDescriptorIndex, U as waitForIncomingFunds } from './wallet-Oc3Wd5gv.js';
|
|
5
|
+
import { P as Program, A as ArkadeArgValue, a as ArkadeProgramScript, b as ProgramKeys, c as ArkadeParamValue, d as ArkadeFunction, I as InputDef, e as ArkadeValueType, C as CompiledProgramFunction, f as ArkadeArgType, g as ArkadeContractParams, h as ArkadeSegment, i as AsmToken, j as InputRef, S as SUPPORTED_PROGRAM_VERSION, k as SignerRef, T as TapscriptSegment, l as TweakedSigner, U as UnsupportedProgramVersionError, W as WitnessRef, m as deserializeArkadeContractParams, p as parseArtifact, r as resolveAsm, s as serializeArkadeContractParams, n as stringifyArtifact, v as validateProgram, w as witnessRefToBytes } from './index-BJDz15ms.js';
|
|
6
|
+
export { o as ArkadeContractHandler, B as BoardingContractHandler, q as BoardingContractParams, D as DefaultContractHandler, t as DefaultContractParams, u as DelegateContractHandler, x as DelegateContractParams, V as VHTLC, y as VHTLCContractHandler, z as VHTLCContractParams, E as VHTLCV2ContractHandler, F as VHTLCV2ContractParams, G as contractHandlers } from './index-BJDz15ms.js';
|
|
7
|
+
import { D as DefaultVtxo } from './delegate-xrSBNybC.js';
|
|
8
|
+
export { a as DelegateVtxo } from './delegate-xrSBNybC.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';
|
|
@@ -497,6 +497,7 @@ declare class IndexedDBIntentRepository implements IntentRepository {
|
|
|
497
497
|
/**
|
|
498
498
|
* In-memory implementation of WalletRepository.
|
|
499
499
|
* Data is ephemeral and scoped to the instance.
|
|
500
|
+
* Atomic updates require structuredClone and cloneable state; they provide no durability.
|
|
500
501
|
*/
|
|
501
502
|
declare class InMemoryWalletRepository implements WalletRepository {
|
|
502
503
|
readonly version: 2;
|
|
@@ -504,6 +505,8 @@ declare class InMemoryWalletRepository implements WalletRepository {
|
|
|
504
505
|
private readonly utxosByAddress;
|
|
505
506
|
private readonly txsByAddress;
|
|
506
507
|
private walletState;
|
|
508
|
+
readonly atomicWalletState?: AtomicWalletState;
|
|
509
|
+
constructor();
|
|
507
510
|
getVtxosPage(address: string, page: PageRequest<Outpoint>): Promise<PageResult<ExtendedVirtualCoin, Outpoint>>;
|
|
508
511
|
saveVtxos(address: string, vtxos: ExtendedVirtualCoin[]): Promise<void>;
|
|
509
512
|
deleteVtxos(address: string): Promise<void>;
|
|
@@ -968,7 +971,7 @@ type ResponseEnvelope = {
|
|
|
968
971
|
broadcast?: boolean;
|
|
969
972
|
};
|
|
970
973
|
type MessageBusServices = {
|
|
971
|
-
arkProvider:
|
|
974
|
+
arkProvider: OperatorProvider;
|
|
972
975
|
wallet?: Wallet;
|
|
973
976
|
readonlyWallet: ReadonlyWallet;
|
|
974
977
|
};
|
|
@@ -1066,6 +1069,8 @@ type Initialize = {
|
|
|
1066
1069
|
watcherConfig?: Partial<Omit<ContractWatcherConfig, "indexerProvider">>;
|
|
1067
1070
|
/** @see WalletConfig.lookAheadWindow */
|
|
1068
1071
|
lookAheadWindow?: number;
|
|
1072
|
+
/** @see WalletConfig.oneShotSubmit */
|
|
1073
|
+
oneShotSubmit?: boolean;
|
|
1069
1074
|
/** @see WalletConfig.minBatchExpirySeconds */
|
|
1070
1075
|
minBatchExpirySeconds?: bigint;
|
|
1071
1076
|
/**
|
|
@@ -1228,7 +1233,9 @@ declare function assembleBtcdTaprootTree(scripts: Bytes[]): TaprootTreeNode;
|
|
|
1228
1233
|
declare enum AssetInputType {
|
|
1229
1234
|
Unspecified = 0,
|
|
1230
1235
|
Local = 1,
|
|
1231
|
-
|
|
1236
|
+
/** @deprecated Use {@link AssetInputType.Proof}. */
|
|
1237
|
+
Intent = 2,
|
|
1238
|
+
Proof = 2
|
|
1232
1239
|
}
|
|
1233
1240
|
declare enum AssetRefType {
|
|
1234
1241
|
Unspecified = 0,
|
|
@@ -1399,17 +1406,17 @@ type AssetInputLocal = {
|
|
|
1399
1406
|
vin: number;
|
|
1400
1407
|
amount: bigint;
|
|
1401
1408
|
};
|
|
1402
|
-
type
|
|
1403
|
-
type: AssetInputType.
|
|
1409
|
+
type AssetInputProof = Pick<AssetInputLocal, "vin" | "amount"> & {
|
|
1410
|
+
type: AssetInputType.Proof;
|
|
1404
1411
|
txid: Uint8Array;
|
|
1405
1412
|
};
|
|
1406
1413
|
/**
|
|
1407
1414
|
* AssetInput represents an input of an asset group.
|
|
1408
1415
|
* a local input references a real transaction input and specify the amount in satoshis.
|
|
1409
|
-
*
|
|
1416
|
+
* a proof input references an external proof transaction. It is created by the operator to handle batch leaf transaction.
|
|
1410
1417
|
*/
|
|
1411
1418
|
declare class AssetInput {
|
|
1412
|
-
readonly input: AssetInputLocal |
|
|
1419
|
+
readonly input: AssetInputLocal | AssetInputProof;
|
|
1413
1420
|
private constructor();
|
|
1414
1421
|
/** Gets the transaction input index for an asset input, e.g. 0 */
|
|
1415
1422
|
get vin(): number;
|
|
@@ -1417,8 +1424,10 @@ declare class AssetInput {
|
|
|
1417
1424
|
get amount(): bigint;
|
|
1418
1425
|
/** Create a local asset input that points at a transaction input index. */
|
|
1419
1426
|
static create(vin: number, amount: bigint | number): AssetInput;
|
|
1420
|
-
/** Create
|
|
1421
|
-
static
|
|
1427
|
+
/** Create a proof-backed asset input referencing an external proof transaction. */
|
|
1428
|
+
static createProof(txid: string, vin: number, amount: bigint | number): AssetInput;
|
|
1429
|
+
/** @deprecated Use {@link createProof}. */
|
|
1430
|
+
static createIntent: typeof AssetInput.createProof;
|
|
1422
1431
|
/** Decode an asset input from its hex string form. */
|
|
1423
1432
|
static fromString(s: string): AssetInput;
|
|
1424
1433
|
/** Decode an asset input from its serialized bytes. */
|
|
@@ -1628,7 +1637,7 @@ declare class AssetGroup {
|
|
|
1628
1637
|
*
|
|
1629
1638
|
* @returns `true` when the group has an asset id and outputs exceed local inputs
|
|
1630
1639
|
* @remarks
|
|
1631
|
-
* Only local inputs contribute to the comparison;
|
|
1640
|
+
* Only local inputs contribute to the comparison; proof-backed inputs contribute `0` here.
|
|
1632
1641
|
*/
|
|
1633
1642
|
isReissuance(): boolean;
|
|
1634
1643
|
/**
|
|
@@ -1645,13 +1654,13 @@ declare class AssetGroup {
|
|
|
1645
1654
|
*/
|
|
1646
1655
|
validate(): void;
|
|
1647
1656
|
/**
|
|
1648
|
-
* Convert the group into its batch-leaf representation for the given
|
|
1657
|
+
* Convert the group into its batch-leaf representation for the given proof txid.
|
|
1649
1658
|
*
|
|
1650
|
-
* @param
|
|
1659
|
+
* @param proofTxid - Proof transaction id used to build the leaf input reference
|
|
1651
1660
|
* @returns Batch-leaf asset group
|
|
1652
|
-
* @see AssetInput.
|
|
1661
|
+
* @see AssetInput.createProof
|
|
1653
1662
|
*/
|
|
1654
|
-
toBatchLeafAssetGroup(
|
|
1663
|
+
toBatchLeafAssetGroup(proofTxid: Uint8Array): AssetGroup;
|
|
1655
1664
|
/**
|
|
1656
1665
|
* Encode the asset group to a hex string.
|
|
1657
1666
|
*
|
|
@@ -1720,8 +1729,8 @@ declare class Packet implements ExtensionPacket {
|
|
|
1720
1729
|
* type returns the TLV packet type tag. Implements ExtensionPacket interface.
|
|
1721
1730
|
*/
|
|
1722
1731
|
type(): number;
|
|
1723
|
-
/** Convert the packet into the batch-leaf form for a specific
|
|
1724
|
-
leafTxPacket(
|
|
1732
|
+
/** Convert the packet into the batch-leaf form for a specific proof transaction id. */
|
|
1733
|
+
leafTxPacket(proofTxid: Uint8Array): Packet;
|
|
1725
1734
|
/**
|
|
1726
1735
|
* serialize encodes the packet as raw bytes (varint group count + group data).
|
|
1727
1736
|
* Does NOT include OP_RETURN, Arkade magic bytes (`ARK`), or TLV type/length; those are
|
|
@@ -3002,6 +3011,8 @@ interface ServiceWorkerWalletOptions {
|
|
|
3002
3011
|
* @see WalletConfig.lookAheadWindow
|
|
3003
3012
|
*/
|
|
3004
3013
|
lookAheadWindow?: number;
|
|
3014
|
+
/** @see WalletConfig.oneShotSubmit */
|
|
3015
|
+
oneShotSubmit?: boolean;
|
|
3005
3016
|
/**
|
|
3006
3017
|
* Batch expiry floor forwarded to the worker wallet. Lowering it below its
|
|
3007
3018
|
* per-network default relaxes a fund-safety bound; intended for local
|
|
@@ -3052,6 +3063,7 @@ type MessageBusInitConfig = {
|
|
|
3052
3063
|
walletMode?: ServiceWorkerWalletMode;
|
|
3053
3064
|
watcherConfig?: Partial<Omit<ContractWatcherConfig, "indexerProvider">>;
|
|
3054
3065
|
lookAheadWindow?: number;
|
|
3066
|
+
oneShotSubmit?: boolean;
|
|
3055
3067
|
minBatchExpirySeconds?: bigint;
|
|
3056
3068
|
messageTimeouts?: Record<string, number>;
|
|
3057
3069
|
};
|
|
@@ -3175,6 +3187,7 @@ declare class ServiceWorkerReadonlyWallet implements IReadonlyWallet {
|
|
|
3175
3187
|
}
|
|
3176
3188
|
declare class ServiceWorkerWallet extends ServiceWorkerReadonlyWallet implements IWallet, HDWalletCapable, HDAllocationCapable, AddressAllocationCapable {
|
|
3177
3189
|
readonly serviceWorker: ServiceWorker;
|
|
3190
|
+
readonly oneShotSubmit?: boolean | undefined;
|
|
3178
3191
|
readonly walletRepository: WalletRepository;
|
|
3179
3192
|
readonly contractRepository: ContractRepository;
|
|
3180
3193
|
readonly identity: Identity;
|
|
@@ -3184,7 +3197,7 @@ declare class ServiceWorkerWallet extends ServiceWorkerReadonlyWallet implements
|
|
|
3184
3197
|
private _concurrentSpending;
|
|
3185
3198
|
/** @see WalletConfig.concurrentSpending */
|
|
3186
3199
|
get concurrentSpending(): boolean;
|
|
3187
|
-
protected constructor(serviceWorker: ServiceWorker, identity: Identity, walletRepository: WalletRepository, contractRepository: ContractRepository, messageTag: string, hasDelegate: boolean);
|
|
3200
|
+
protected constructor(serviceWorker: ServiceWorker, identity: Identity, walletRepository: WalletRepository, contractRepository: ContractRepository, messageTag: string, hasDelegate: boolean, oneShotSubmit?: boolean | undefined);
|
|
3188
3201
|
get assetManager(): IAssetManager;
|
|
3189
3202
|
static create(options: ServiceWorkerWalletCreateOptions): Promise<ServiceWorkerWallet>;
|
|
3190
3203
|
/**
|
|
@@ -3742,12 +3755,12 @@ declare class ElectrumOnchainProvider implements OnchainProvider {
|
|
|
3742
3755
|
}
|
|
3743
3756
|
|
|
3744
3757
|
/**
|
|
3745
|
-
* Decorates an {@link
|
|
3758
|
+
* Decorates an {@link OperatorProvider}, caching {@link OperatorProvider.getInfo} for
|
|
3746
3759
|
* `ttlMs` (default 60s). Other provider methods pass through.
|
|
3747
3760
|
* Expired-cache refresh failures propagate; persisted wallet boot fallback
|
|
3748
3761
|
* lives in `arkInfoSnapshot`.
|
|
3749
3762
|
*/
|
|
3750
|
-
declare class
|
|
3763
|
+
declare class CachingOperatorProvider implements OperatorProvider {
|
|
3751
3764
|
private readonly inner;
|
|
3752
3765
|
private readonly ttlMs;
|
|
3753
3766
|
private cached?;
|
|
@@ -3756,7 +3769,7 @@ declare class CachingArkProvider implements ArkProvider {
|
|
|
3756
3769
|
/** Bumped on every event-driven cache write; see {@link getInfo}. */
|
|
3757
3770
|
private generation;
|
|
3758
3771
|
private readonly unsubscribe;
|
|
3759
|
-
constructor(inner:
|
|
3772
|
+
constructor(inner: OperatorProvider, ttlMs?: number);
|
|
3760
3773
|
/** Releases the inner provider's server-info subscription. */
|
|
3761
3774
|
dispose(): void;
|
|
3762
3775
|
get serverUrl(): string | undefined;
|
|
@@ -3775,9 +3788,13 @@ declare class CachingArkProvider implements ArkProvider {
|
|
|
3775
3788
|
submitSignedForfeitTxs(signedForfeitTxs: string[], signedCommitmentTx?: string): Promise<void>;
|
|
3776
3789
|
getEventStream(signal: AbortSignal, topics: string[]): AsyncIterableIterator<SettlementEvent>;
|
|
3777
3790
|
getTransactionsStream(signal: AbortSignal): AsyncIterableIterator<TxNotificationEvent>;
|
|
3778
|
-
getPendingTxs(intent:
|
|
3791
|
+
getPendingTxs(intent: SignedProof<Proof.GetPendingTxMessage>): Promise<PendingTx[]>;
|
|
3779
3792
|
onServerInfoChanged(listener: (info: ArkadeInfo) => void): () => void;
|
|
3780
3793
|
}
|
|
3794
|
+
/** @deprecated Use {@link CachingOperatorProvider}. */
|
|
3795
|
+
declare const CachingArkProvider: typeof CachingOperatorProvider;
|
|
3796
|
+
/** @deprecated Use {@link CachingOperatorProvider}. */
|
|
3797
|
+
type CachingArkProvider = CachingOperatorProvider;
|
|
3781
3798
|
|
|
3782
3799
|
type ArkTxInput = {
|
|
3783
3800
|
tapLeafScript: TapLeafScript;
|
|
@@ -3834,8 +3851,8 @@ declare function combineTapscriptSigs(signedTx: Transaction, originalTx: Transac
|
|
|
3834
3851
|
*/
|
|
3835
3852
|
declare function isValidArkAddress(address: string): boolean;
|
|
3836
3853
|
/**
|
|
3837
|
-
* Minimal
|
|
3838
|
-
* transaction. Both {@link
|
|
3854
|
+
* Minimal operator provider surface required to submit and finalize an offchain
|
|
3855
|
+
* transaction. Both {@link OperatorProvider} implementations satisfy it
|
|
3839
3856
|
* structurally, so declaring it here keeps this module free of a provider
|
|
3840
3857
|
* import (and of the dependency cycle that would create).
|
|
3841
3858
|
*/
|
|
@@ -3894,6 +3911,8 @@ declare function assertSubmittedArkTxid(response: {
|
|
|
3894
3911
|
* server at `submitTx`, before any of this runs. What it buys is a loud,
|
|
3895
3912
|
* immediate failure instead of a caller reporting success, watching nothing
|
|
3896
3913
|
* confirm, and learning the truth when the counterparty's refund lands.
|
|
3914
|
+
* Under one-shot submit the server has already finalized when it runs, so it
|
|
3915
|
+
* reports a bad response rather than preventing one.
|
|
3897
3916
|
*/
|
|
3898
3917
|
interface VerifyServerSignatures {
|
|
3899
3918
|
/** The Ark server's key; x-only or compressed, both accepted. */
|
|
@@ -3907,7 +3926,7 @@ interface VerifyServerSignatures {
|
|
|
3907
3926
|
* is controlled by a single key — the "thin signer" path.
|
|
3908
3927
|
*
|
|
3909
3928
|
* Needs no wallet, repository, or contract state: just an identity that can
|
|
3910
|
-
* sign, an
|
|
3929
|
+
* sign, an operator provider, the inputs (already carrying their spend leaf and tap
|
|
3911
3930
|
* tree), the outputs, and the server unroll script. Used by the ArkadeCash sweep
|
|
3912
3931
|
* to move bearer coins to the receiver's address without spinning up a full
|
|
3913
3932
|
* background-managed wallet on shared repositories.
|
|
@@ -3924,6 +3943,7 @@ declare function signAndSubmitOffchainTx(params: {
|
|
|
3924
3943
|
serverUnrollScript: CSVMultisigTapscript.Type;
|
|
3925
3944
|
/** Forwarded to {@link submitOffchainTx}; omitted, nothing is checked. */
|
|
3926
3945
|
verifyServerSignatures?: VerifyServerSignatures;
|
|
3946
|
+
oneShot?: boolean;
|
|
3927
3947
|
}): Promise<string>;
|
|
3928
3948
|
/**
|
|
3929
3949
|
* Sign the caller's inputs of a pre-built offchain tx and submit it through the emulator, which
|
|
@@ -4019,7 +4039,7 @@ declare const VtxoTaprootTree: ArkPsbtFieldCoder<Uint8Array>;
|
|
|
4019
4039
|
declare const ConditionWitness: ArkPsbtFieldCoder<Uint8Array[]>;
|
|
4020
4040
|
/**
|
|
4021
4041
|
* PrevArkTxField carries the serialized raw bitcoin tx of the previous Ark tx
|
|
4022
|
-
* spent by an input. Used by OP_INSPECTINPUTSCRIPTPUBKEY on
|
|
4042
|
+
* spent by an input. Used by OP_INSPECTINPUTSCRIPTPUBKEY on proofs and
|
|
4023
4043
|
* other contexts where the prevout pkScript must be looked up off-chain.
|
|
4024
4044
|
*
|
|
4025
4045
|
* Key: [0xde] || "prevarktx". Value: serialized wire.MsgTx (NOT a PSBT).
|
|
@@ -4063,7 +4083,7 @@ declare const VtxoTreeExpiry: ArkPsbtFieldCoder<{
|
|
|
4063
4083
|
* Supports P2TR (Taproot) signing and verification, P2WPKH verification,
|
|
4064
4084
|
* and legacy P2PKH verification (Bitcoin Core signmessage format).
|
|
4065
4085
|
*
|
|
4066
|
-
* Reuses the same toSpend/toSign transaction construction as
|
|
4086
|
+
* Reuses the same toSpend/toSign transaction construction as Proofs,
|
|
4067
4087
|
* but with the standard BIP-322 tagged hash ("BIP0322-signed-message")
|
|
4068
4088
|
* instead of the Arkade-specific tag.
|
|
4069
4089
|
*
|
|
@@ -4255,7 +4275,7 @@ type ArkadeExtendedVirtualCoin = ExtendedVirtualCoin & {
|
|
|
4255
4275
|
* silently treat as boarding and settle without a forfeit.
|
|
4256
4276
|
*/
|
|
4257
4277
|
type ArkadeBatchInput = ArkadeExtendedCoin | ArkadeExtendedVirtualCoin;
|
|
4258
|
-
declare function createArkadeBatchHandler(intentId: string, inputs: ArkadeBatchInput[], signer: Identity, signedProof: string, message:
|
|
4278
|
+
declare function createArkadeBatchHandler(intentId: string, inputs: ArkadeBatchInput[], signer: Identity, signedProof: string, message: Proof.RegisterMessage, session: SignerSession, arkProvider: OperatorProvider, emulator: EmulatorProvider, network: Network,
|
|
4259
4279
|
/**
|
|
4260
4280
|
* Expected recipients of the settlement, validated against the virtual
|
|
4261
4281
|
* output tree before co-signing it, and — when tree signing did not run —
|
|
@@ -4774,7 +4794,7 @@ declare const UnilateralExit: {
|
|
|
4774
4794
|
*
|
|
4775
4795
|
* Retryable:
|
|
4776
4796
|
* - {@link ProviderUnavailableError} — already-classified 5xx/429/unavailable
|
|
4777
|
-
* (see e.g. {@link https |
|
|
4797
|
+
* (see e.g. {@link https | RestOperatorProvider.getInfo}'s non-2xx branch);
|
|
4778
4798
|
* - {@link FetchError} — transport-level `fetch` rejection (DNS failure,
|
|
4779
4799
|
* connection refused, TLS/CORS), which also carries undici timeouts as its
|
|
4780
4800
|
* `cause`;
|
|
@@ -5437,16 +5457,24 @@ declare function programFromArtifact(artifact: ContractArtifact): Program;
|
|
|
5437
5457
|
* @module arkade/contract
|
|
5438
5458
|
*/
|
|
5439
5459
|
|
|
5460
|
+
/**
|
|
5461
|
+
* A scalar or whole struct/array value, flattened to dotted names (`owners.0.key`).
|
|
5462
|
+
* Struct fields are checked at runtime so interface types need no index signature.
|
|
5463
|
+
*/
|
|
5464
|
+
type ArkadeNestedValue = ArkadeArgValue | object;
|
|
5440
5465
|
/** The argument tuple of a function, derived from its declared `inputs`. */
|
|
5441
5466
|
type ArgsTuple<I extends readonly InputDef[]> = {
|
|
5442
5467
|
[K in keyof I]: ArkadeValueType[I[K]["type"]];
|
|
5443
5468
|
};
|
|
5444
|
-
/**
|
|
5469
|
+
/**
|
|
5470
|
+
* The call signature arguments for one function (nullary when `inputs` is absent). Dotted input
|
|
5471
|
+
* names group into one struct or array argument at runtime; dotted or widened names stay loose.
|
|
5472
|
+
*/
|
|
5445
5473
|
type FnArgs<F extends ArkadeFunction> = F extends {
|
|
5446
5474
|
inputs: infer I extends readonly InputDef[];
|
|
5447
|
-
} ? ArgsTuple<I> : [];
|
|
5475
|
+
} ? string extends I[number]["name"] ? ArkadeNestedValue[] : Extract<I[number]["name"], `${string}.${string}`> extends never ? ArgsTuple<I> : ArkadeNestedValue[] : [];
|
|
5448
5476
|
/** A contract's functions returning `R`: typed per function for a literal program, else loose. */
|
|
5449
|
-
type FunctionMap<P extends Program, R> = string extends keyof P["functions"] ? Record<string, (...args:
|
|
5477
|
+
type FunctionMap<P extends Program, R> = string extends keyof P["functions"] ? Record<string, (...args: ArkadeNestedValue[]) => R> : {
|
|
5450
5478
|
[K in keyof P["functions"]]: (...args: FnArgs<P["functions"][K]>) => R;
|
|
5451
5479
|
};
|
|
5452
5480
|
/**
|
|
@@ -5530,9 +5558,9 @@ interface ArkadeSpendResult {
|
|
|
5530
5558
|
signedCheckpointTxs: string[];
|
|
5531
5559
|
}
|
|
5532
5560
|
/** The callable spending paths of a contract. */
|
|
5533
|
-
type CallableFunctions = Record<string, (...args:
|
|
5561
|
+
type CallableFunctions = Record<string, (...args: ArkadeNestedValue[]) => ArkadeTransactionBuilder>;
|
|
5534
5562
|
/** What {@link Arkade} needs from the Arkade server; see {@link ArkadeConnectOptions.arkade}. */
|
|
5535
|
-
type ArkadeServerProvider = Pick<
|
|
5563
|
+
type ArkadeServerProvider = Pick<OperatorProvider, "getInfo"> & Partial<ArkadeBroadcaster>;
|
|
5536
5564
|
/** Fields shared by both forms of {@link ArkadeConnectOptions}. */
|
|
5537
5565
|
interface ArkadeConnectCommonOptions {
|
|
5538
5566
|
/** Signer for paths that require a user signature; optional for watch-only. */
|
|
@@ -5558,6 +5586,9 @@ interface ArkadeConnectCommonOptions {
|
|
|
5558
5586
|
* instead of the indexer. Never disposed by {@link Arkade.dispose}.
|
|
5559
5587
|
*/
|
|
5560
5588
|
contractManager?: IContractManager;
|
|
5589
|
+
/** For pure-tapscript spends; a client built for a wallet passes `wallet.oneShotSubmit`.
|
|
5590
|
+
* @see WalletConfig.oneShotSubmit */
|
|
5591
|
+
oneShotSubmit?: boolean;
|
|
5561
5592
|
}
|
|
5562
5593
|
/**
|
|
5563
5594
|
* The one-liner form: name the deployment, and `connect` resolves the providers (and, for
|
|
@@ -5645,6 +5676,7 @@ declare class Arkade {
|
|
|
5645
5676
|
readonly userKey?: Uint8Array;
|
|
5646
5677
|
/** The contract manager, when contract persistence is wired up (passed in or owned). */
|
|
5647
5678
|
readonly contractManager?: IContractManager;
|
|
5679
|
+
readonly oneShotSubmit?: boolean;
|
|
5648
5680
|
/** Whether {@link connect} built {@link contractManager}, so {@link dispose} must stop it. */
|
|
5649
5681
|
private readonly ownsContractManager;
|
|
5650
5682
|
/** {@link ArkadeContract.on} handles by contract script (hex). */
|
|
@@ -5683,8 +5715,9 @@ declare class Arkade {
|
|
|
5683
5715
|
*
|
|
5684
5716
|
* Declared `server`/`user` params default to the client's keys. Compiler
|
|
5685
5717
|
* artifacts reserve the server key and exit delay to the connected server.
|
|
5718
|
+
* Struct and array params are passed whole by name (see {@link ArkadeNestedValue}).
|
|
5686
5719
|
*/
|
|
5687
|
-
contract<const P extends Program>(program: P, args?: Record<string,
|
|
5720
|
+
contract<const P extends Program>(program: P, args?: Record<string, ArkadeNestedValue>): ArkadeContract<P>;
|
|
5688
5721
|
/**
|
|
5689
5722
|
* Start a spend with no function of its own: each `.from(coins, contract.unlock.<name>(...))`
|
|
5690
5723
|
* names the function its coins are spent through.
|
|
@@ -5695,7 +5728,6 @@ declare class Arkade {
|
|
|
5695
5728
|
declare class ArkadeContract<P extends Program = Program> {
|
|
5696
5729
|
readonly client: Arkade;
|
|
5697
5730
|
readonly program: P;
|
|
5698
|
-
readonly args: Record<string, ArkadeParamValue>;
|
|
5699
5731
|
/** The compiled taproot tree of spending-path leaves. */
|
|
5700
5732
|
readonly vtxoScript: ArkadeProgramScript;
|
|
5701
5733
|
/** Encoded taproot tree (shared spend context for every path). */
|
|
@@ -5704,7 +5736,9 @@ declare class ArkadeContract<P extends Program = Program> {
|
|
|
5704
5736
|
readonly keys: ProgramKeys;
|
|
5705
5737
|
/** Spending paths in declaration order. */
|
|
5706
5738
|
private readonly compiled;
|
|
5707
|
-
|
|
5739
|
+
/** Constructor bindings by flattened name (`owners.0.key`), as persisted. */
|
|
5740
|
+
readonly args: Record<string, ArkadeParamValue>;
|
|
5741
|
+
constructor(client: Arkade, program: P, args?: Record<string, ArkadeNestedValue>, keys?: ProgramKeys);
|
|
5708
5742
|
/**
|
|
5709
5743
|
* Rebuild a callable contract from a persisted `"arkade"` row. Compiles with the stored keys,
|
|
5710
5744
|
* not the client's current ones, so script and address survive a server signer rotation.
|
|
@@ -5872,6 +5906,7 @@ type index_ArkadeContractSubscription = ArkadeContractSubscription;
|
|
|
5872
5906
|
type index_ArkadeExtendedCoin = ArkadeExtendedCoin;
|
|
5873
5907
|
type index_ArkadeExtendedVirtualCoin = ArkadeExtendedVirtualCoin;
|
|
5874
5908
|
declare const index_ArkadeFunction: typeof ArkadeFunction;
|
|
5909
|
+
type index_ArkadeNestedValue = ArkadeNestedValue;
|
|
5875
5910
|
declare const index_ArkadeParamValue: typeof ArkadeParamValue;
|
|
5876
5911
|
declare const index_ArkadeProgramScript: typeof ArkadeProgramScript;
|
|
5877
5912
|
declare const index_ArkadeScript: typeof ArkadeScript;
|
|
@@ -5929,7 +5964,7 @@ declare const index_toASM: typeof toASM;
|
|
|
5929
5964
|
declare const index_validateProgram: typeof validateProgram;
|
|
5930
5965
|
declare const index_witnessRefToBytes: typeof witnessRefToBytes;
|
|
5931
5966
|
declare namespace index {
|
|
5932
|
-
export { index_ARKADE_OP as ARKADE_OP, index_ARKADE_OPCODES as ARKADE_OPCODES, index_ARKADE_OPCODE_NAMES as ARKADE_OPCODE_NAMES, index_ARKADE_OPCODE_VALUES as ARKADE_OPCODE_VALUES, index_ARKADE_OPS as ARKADE_OPS, index_Arkade as Arkade, index_ArkadeArgType as ArkadeArgType, index_ArkadeArgValue as ArkadeArgValue, type index_ArkadeBatchInput as ArkadeBatchInput, type index_ArkadeConnectOptions as ArkadeConnectOptions, type index_ArkadeConnectProviderOptions as ArkadeConnectProviderOptions, type index_ArkadeConnectServiceOptions as ArkadeConnectServiceOptions, index_ArkadeContract as ArkadeContract, type index_ArkadeContractEvent as ArkadeContractEvent, type index_ArkadeContractEventType as ArkadeContractEventType, index_ArkadeContractParams as ArkadeContractParams, type index_ArkadeContractSubscription as ArkadeContractSubscription, type index_ArkadeExtendedCoin as ArkadeExtendedCoin, type index_ArkadeExtendedVirtualCoin as ArkadeExtendedVirtualCoin, index_ArkadeFunction as ArkadeFunction, index_ArkadeParamValue as ArkadeParamValue, index_ArkadeProgramScript as ArkadeProgramScript, index_ArkadeScript as ArkadeScript, type index_ArkadeScriptOP as ArkadeScriptOP, type index_ArkadeScriptType as ArkadeScriptType, index_ArkadeSegment as ArkadeSegment, type index_ArkadeServerProvider as ArkadeServerProvider, index_ArkadeService as ArkadeService, type index_ArkadeSpendResult as ArkadeSpendResult, index_ArkadeTransactionBuilder as ArkadeTransactionBuilder, type index_ArkadeUnlocker as ArkadeUnlocker, index_AsmToken as AsmToken, type index_AssetSpec as AssetSpec, bignum as BigNum, type index_CallableFunctions as CallableFunctions, index_CompiledProgramFunction as CompiledProgramFunction, type index_ContractArtifact as ContractArtifact, type index_ContractFunctions as ContractFunctions, type index_ContractUnlockers as ContractUnlockers, index_InputDef as InputDef, index_InputRef as InputRef, index_OP as OP, index_OPCODE_NAMES as OPCODE_NAMES, index_OPCODE_VALUES as OPCODE_VALUES, index_Program as Program, index_ProgramKeys as ProgramKeys, index_ResolvedArkadeService as ResolvedArkadeService, index_SUPPORTED_PROGRAM_VERSION as SUPPORTED_PROGRAM_VERSION, index_Script as Script, index_ScriptType as ScriptType, index_SignerRef as SignerRef, index_TapscriptSegment as TapscriptSegment, index_TweakedSigner as TweakedSigner, index_UnsupportedProgramVersionError as UnsupportedProgramVersionError, type index_Utxo as Utxo, index_WitnessRef as WitnessRef, index_arkadeScriptHash as arkadeScriptHash, index_arkadeWitnessHash as arkadeWitnessHash, index_asmToBytes as asmToBytes, index_bytesToASM as bytesToASM, index_computeArkadeScriptPublicKey as computeArkadeScriptPublicKey, index_createArkadeBatchHandler as createArkadeBatchHandler, index_deserializeArkadeContractParams as deserializeArkadeContractParams, index_fromASM as fromASM, index_getOpcodeName as getOpcodeName, index_getOpcodeValue as getOpcodeValue, index_isContractArtifact as isContractArtifact, index_parseArtifact as parseArtifact, index_programFromArtifact as programFromArtifact, index_resolveArkadeService as resolveArkadeService, index_resolveAsm as resolveAsm, index_serializeArkadeContractParams as serializeArkadeContractParams, index_stringifyArtifact as stringifyArtifact, index_toASM as toASM, index_validateProgram as validateProgram, index_witnessRefToBytes as witnessRefToBytes };
|
|
5967
|
+
export { index_ARKADE_OP as ARKADE_OP, index_ARKADE_OPCODES as ARKADE_OPCODES, index_ARKADE_OPCODE_NAMES as ARKADE_OPCODE_NAMES, index_ARKADE_OPCODE_VALUES as ARKADE_OPCODE_VALUES, index_ARKADE_OPS as ARKADE_OPS, index_Arkade as Arkade, index_ArkadeArgType as ArkadeArgType, index_ArkadeArgValue as ArkadeArgValue, type index_ArkadeBatchInput as ArkadeBatchInput, type index_ArkadeConnectOptions as ArkadeConnectOptions, type index_ArkadeConnectProviderOptions as ArkadeConnectProviderOptions, type index_ArkadeConnectServiceOptions as ArkadeConnectServiceOptions, index_ArkadeContract as ArkadeContract, type index_ArkadeContractEvent as ArkadeContractEvent, type index_ArkadeContractEventType as ArkadeContractEventType, index_ArkadeContractParams as ArkadeContractParams, type index_ArkadeContractSubscription as ArkadeContractSubscription, type index_ArkadeExtendedCoin as ArkadeExtendedCoin, type index_ArkadeExtendedVirtualCoin as ArkadeExtendedVirtualCoin, index_ArkadeFunction as ArkadeFunction, type index_ArkadeNestedValue as ArkadeNestedValue, index_ArkadeParamValue as ArkadeParamValue, index_ArkadeProgramScript as ArkadeProgramScript, index_ArkadeScript as ArkadeScript, type index_ArkadeScriptOP as ArkadeScriptOP, type index_ArkadeScriptType as ArkadeScriptType, index_ArkadeSegment as ArkadeSegment, type index_ArkadeServerProvider as ArkadeServerProvider, index_ArkadeService as ArkadeService, type index_ArkadeSpendResult as ArkadeSpendResult, index_ArkadeTransactionBuilder as ArkadeTransactionBuilder, type index_ArkadeUnlocker as ArkadeUnlocker, index_AsmToken as AsmToken, type index_AssetSpec as AssetSpec, bignum as BigNum, type index_CallableFunctions as CallableFunctions, index_CompiledProgramFunction as CompiledProgramFunction, type index_ContractArtifact as ContractArtifact, type index_ContractFunctions as ContractFunctions, type index_ContractUnlockers as ContractUnlockers, index_InputDef as InputDef, index_InputRef as InputRef, index_OP as OP, index_OPCODE_NAMES as OPCODE_NAMES, index_OPCODE_VALUES as OPCODE_VALUES, index_Program as Program, index_ProgramKeys as ProgramKeys, index_ResolvedArkadeService as ResolvedArkadeService, index_SUPPORTED_PROGRAM_VERSION as SUPPORTED_PROGRAM_VERSION, index_Script as Script, index_ScriptType as ScriptType, index_SignerRef as SignerRef, index_TapscriptSegment as TapscriptSegment, index_TweakedSigner as TweakedSigner, index_UnsupportedProgramVersionError as UnsupportedProgramVersionError, type index_Utxo as Utxo, index_WitnessRef as WitnessRef, index_arkadeScriptHash as arkadeScriptHash, index_arkadeWitnessHash as arkadeWitnessHash, index_asmToBytes as asmToBytes, index_bytesToASM as bytesToASM, index_computeArkadeScriptPublicKey as computeArkadeScriptPublicKey, index_createArkadeBatchHandler as createArkadeBatchHandler, index_deserializeArkadeContractParams as deserializeArkadeContractParams, index_fromASM as fromASM, index_getOpcodeName as getOpcodeName, index_getOpcodeValue as getOpcodeValue, index_isContractArtifact as isContractArtifact, index_parseArtifact as parseArtifact, index_programFromArtifact as programFromArtifact, index_resolveArkadeService as resolveArkadeService, index_resolveAsm as resolveAsm, index_serializeArkadeContractParams as serializeArkadeContractParams, index_stringifyArtifact as stringifyArtifact, index_toASM as toASM, index_validateProgram as validateProgram, index_witnessRefToBytes as witnessRefToBytes };
|
|
5933
5968
|
}
|
|
5934
5969
|
|
|
5935
5970
|
/** Known BIP21 parameters including Arkade-specific extensions. */
|
|
@@ -6527,4 +6562,4 @@ declare class AssetManager extends ReadonlyAssetManager implements IAssetManager
|
|
|
6527
6562
|
private burnWith;
|
|
6528
6563
|
}
|
|
6529
6564
|
|
|
6530
|
-
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkAddress, ArkIntent, ArkNote,
|
|
6565
|
+
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, Activity, ActivityRegistry, AddressAllocationCapable, AmbiguousRouteError, type AnchorBumper, ArkAddress, ArkIntent, ArkNote, type ArkPsbtFieldCoder, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ArkTransaction, type ArkTxInput, Arkade, type ArkadeBatchInput, ArkadeBroadcaster, ArkadeCash, ArkadeContractParams, type ArkadeExtendedCoin, type ArkadeExtendedVirtualCoin, ArkadeInfo, ArkadeReader, ArkadeService, Asset, AssetDetails, AssetManager, AtomicWalletState, BIP21, BIP21Error, type BIP21Params, type BIP21ParseResult, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, BatchExpiryPolicy, BurnParams, CSVMultisigTapscript, CachingArkProvider, CachingOperatorProvider, ChainTx, Coin, ConditionWitness, ConnectionDisposedError, Contract, ContractEvent, ContractFilter, ContractRepository, ContractSyncState, ContractVtxoEvent, ContractWatcherConfig, ContractWithVtxos, CosignerPublicKey, CreateContractParams, DEFAULT_MESSAGE_TIMEOUTS, 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, GetArkadeInfoOptions, GetNewAddressesOptions, GetSpendableVtxosFilter, GetVtxosFilter, GetVtxosOptions, HDAllocationCapable, HDDescriptorProvider, type HDDeterministicSignCapable, HDWalletCapable, IAssetManager, IContractManager, IDelegateManager, IReadonlyAssetManager, IReadonlyWallet, IVtxoManager, IWallet, Identity, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexerProvider, InputExpiryFloor, Intent, IntentFeeConfig, IntentPageFilter, 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, NormalizedExtendedVirtualCoin, NormalizedVtxoPage, OffchainInput, type OffchainTx, type OnExitObserved, OnchainInput, OnchainProvider, OnchainWallet, OperatorProvider, Outpoint, OversizedChangeError, P2A, PageRequest, PageResult, PaginationOptions, type ParsedArkContract, PathContext, PathSelection, type PaymentHandle, type PaymentOption, type PaymentRail, type PaymentRequest, PaymentRouter, type PaymentStatus, PrevArkTxField, PrevoutTxField, 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, SendParams, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, type ServiceWorkerWalletMode, SettleParams, SettlementConfig, SettlementEvent, SignedIntent, 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, 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, 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, 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,6 +1,6 @@
|
|
|
1
|
-
export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, AbortError, ActivityRegistry, AmbiguousRouteError, ArkNote, Arkade, ArkadeCash, ArkadeCashCreateError, ArkadeCashOperatorMismatchError, AssetManager, BIP21, BIP21Error, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, CachingArkProvider, ChainedTxType, ConnectionDisposedError, ContractManager, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_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, KeyringDescriptorProvider, MAX_PAGE_SIZE, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainWallet, OversizedChangeError, P2A, PaymentRouter, PrevTxUnavailableError, REGTEST_MIN_BATCH_EXPIRY_SECONDS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestEmulatorProvider, SeedIdentity, SendDeadlineExceededError, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, StaticDescriptorProvider, 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, collectContracts, collectIntents, collectPages, collectScriptVtxos, collectTransactionHistory, collectUtxos, collectVtxos, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, decodeArkContract, defaultBatchExpiryPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getRandomId, hasBoardingTxExpired, hasCandidates, invoiceTarget, isAddressAllocationCapable, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isContractVtxoEvent, isCooperativelyMigratable, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, iteratePages, logExcludedVtxos, makeHandle, matchServerCheckpoints, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, pageResult, 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-
|
|
2
|
-
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, RestIndexerProvider, asset_exports as asset } from './chunk-
|
|
3
|
-
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, UnsupportedProgramVersionError, 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, DEFAULT_ARKADE_EMULATOR_URL, DigestMismatchError, EventSourceUnavailableError, FetchError, Intent, MUTINYNET_EMULATOR_PUBKEY, MultisigTapscript, PrevArkTxField, PrevoutTxField, ProviderUnavailableError, READ_TIMEOUT_MS, REGTEST_EMULATOR_PUBKEY, RestArkProvider, ServerResponseMismatchError, SettlementEventType, TapTreeCoder, Transaction, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, assembleBtcdTaprootTree, assertAllowedSighashTypes, assertNonNegativeMs, assertTimerMs, buildVersion, canRecoverOnchain, canSpendOffchain, canSweepOnchain, configureEventSource, decodeTapscript, defaultEmulatorPubkey, getAllNormalizedVtxos, getArkPsbtFields, getConfiguredEventSource, getNetwork, getNormalizedVtxos, getSequence, isArkError, isEventSourceUnavailableError, isPastExpiry, isRetryableProviderError, isVirtualCoin, isVtxoSpent, maybeArkError, networkFromArkadeInfo, networks, resolveEmulatorPubkey, resolveEventSource, scriptFromTapLeafScript, sdkVersion, sequenceToTimelock, setArkPsbtField, timelockToSequence, toOffchainInputFeeParams } 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, BIP21, BIP21Error, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, CachingArkProvider, CachingOperatorProvider, ChainedTxType, ConnectionDisposedError, ContractManager, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_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, KeyringDescriptorProvider, MAX_PAGE_SIZE, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainWallet, OversizedChangeError, P2A, PaymentRouter, PrevTxUnavailableError, 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, collectContracts, collectIntents, collectPages, collectScriptVtxos, collectTransactionHistory, collectUtxos, collectVtxos, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, decodeArkContract, defaultBatchExpiryPolicy, deleteByIndex, deserializeExitPackage, encodeArkContract, exitObserverFor, gateExclusion, gatedContracts, getAllByIndexValues, getRandomId, hasBoardingTxExpired, hasCandidates, invoiceTarget, isAddressAllocationCapable, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isContractVtxoEvent, isCooperativelyMigratable, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, iteratePages, logExcludedVtxos, makeHandle, matchServerCheckpoints, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, pageResult, 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-ZJHLLDBP.js';
|
|
2
|
+
export { ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, RestIndexerProvider, asset_exports as asset } from './chunk-BTRCN4JJ.js';
|
|
3
|
+
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, UnsupportedProgramVersionError, VHTLC, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers, deriveDescriptorLeafCompressedPubKey, deriveDescriptorLeafPubKey, identityDescriptor, isCltvSatisfied, isCsvSpendable, normalizeToDescriptor, parseHDDescriptor, toXOnly } from './chunk-6CUP6ZIF.js';
|
|
4
|
+
export { ArkAddress, ArkError, ArkErrorName, ArkPsbtFieldKey, ArkPsbtFieldKeyType, BITCOIN_EMULATOR_PUBKEY, CLTVMultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, ConditionWitness, CosignerPublicKey, DEFAULT_ARKADE_EMULATOR_URL, DigestMismatchError, EventSourceUnavailableError, FetchError, Intent, MUTINYNET_EMULATOR_PUBKEY, MultisigTapscript, PrevArkTxField, PrevoutTxField, Proof, ProviderUnavailableError, READ_TIMEOUT_MS, REGTEST_EMULATOR_PUBKEY, RestArkProvider, RestOperatorProvider, ServerResponseMismatchError, SettlementEventType, TapTreeCoder, Transaction, VtxoScript, VtxoTaprootTree, VtxoTreeExpiry, assembleBtcdTaprootTree, assertAllowedSighashTypes, assertNonNegativeMs, assertTimerMs, buildVersion, canRecoverOnchain, canSpendOffchain, canSweepOnchain, configureEventSource, decodeTapscript, defaultEmulatorPubkey, getAllNormalizedVtxos, getArkPsbtFields, getConfiguredEventSource, getNetwork, getNormalizedVtxos, getSequence, isArkError, isEventSourceUnavailableError, isPastExpiry, isRetryableProviderError, isVirtualCoin, isVtxoSpent, maybeArkError, networkFromArkadeInfo, networkFromOperatorInfo, networks, resolveEmulatorPubkey, resolveEventSource, scriptFromTapLeafScript, sdkVersion, sequenceToTimelock, setArkPsbtField, timelockToSequence, toOffchainInputFeeParams } from './chunk-AG4TFD6F.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|