@arkade-os/sdk 0.4.76 → 0.4.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/expo.cjs +5 -5
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/adapters/indexedDB.cjs +3 -5
- package/dist/adapters/indexedDB.cjs.map +1 -1
- package/dist/adapters/indexedDB.d.cts +1 -1
- package/dist/adapters/indexedDB.d.ts +1 -1
- package/dist/adapters/indexedDB.js +3 -5
- package/dist/adapters/indexedDB.js.map +1 -1
- package/dist/{asyncStorageTaskQueue-DrKbfleJ.d.ts → asyncStorageTaskQueue-DTl0WM7E.d.ts} +1 -1
- package/dist/{asyncStorageTaskQueue-D7BU-BdP.d.cts → asyncStorageTaskQueue-MmJyAnu-.d.cts} +1 -1
- package/dist/{chunk-2KFXM3N5.cjs → chunk-4LP6XOMW.cjs} +17 -17
- package/dist/{chunk-2KFXM3N5.cjs.map → chunk-4LP6XOMW.cjs.map} +1 -1
- package/dist/{chunk-F6YOCYWU.js → chunk-52OA3UIC.js} +25 -12
- package/dist/chunk-52OA3UIC.js.map +1 -0
- package/dist/{chunk-7UJLIZQU.js → chunk-ACPANSOX.js} +43 -11
- package/dist/chunk-ACPANSOX.js.map +1 -0
- package/dist/{chunk-P53OHGXY.cjs → chunk-CJN4CUEU.cjs} +25 -11
- package/dist/chunk-CJN4CUEU.cjs.map +1 -0
- package/dist/{chunk-T327OEMV.cjs → chunk-H62OOAS4.cjs} +17 -17
- package/dist/{chunk-T327OEMV.cjs.map → chunk-H62OOAS4.cjs.map} +1 -1
- package/dist/{chunk-54W6QBXL.js → chunk-HKOFYHZP.js} +3 -3
- package/dist/{chunk-54W6QBXL.js.map → chunk-HKOFYHZP.js.map} +1 -1
- package/dist/{chunk-CQNX4BTA.cjs → chunk-LUWSY2QO.cjs} +89 -57
- package/dist/chunk-LUWSY2QO.cjs.map +1 -0
- package/dist/{chunk-WMHELOHH.js → chunk-MLOZHTBN.js} +523 -104
- package/dist/chunk-MLOZHTBN.js.map +1 -0
- package/dist/{chunk-O2BIWLZC.js → chunk-T6MGH4V4.js} +4 -4
- package/dist/{chunk-O2BIWLZC.js.map → chunk-T6MGH4V4.js.map} +1 -1
- package/dist/{chunk-LQM6RHNT.cjs → chunk-Y4YK44IM.cjs} +10 -10
- package/dist/{chunk-LQM6RHNT.cjs.map → chunk-Y4YK44IM.cjs.map} +1 -1
- package/dist/{chunk-LHSVPDFJ.cjs → chunk-YJEWWLOQ.cjs} +959 -541
- package/dist/chunk-YJEWWLOQ.cjs.map +1 -0
- package/dist/{chunk-MUBPGYUE.js → chunk-YKNTUOUG.js} +4 -4
- package/dist/{chunk-MUBPGYUE.js.map → chunk-YKNTUOUG.js.map} +1 -1
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-BAYpqkEx.d.ts → delegate-CjcysR7s.d.ts} +1 -1
- package/dist/{delegate-CR7msIXK.d.cts → delegate-QPCGaD_z.d.cts} +1 -1
- package/dist/{hdWalletCapable-BSF29IjK.d.ts → hdWalletCapable--pMncWbC.d.ts} +6 -4
- package/dist/{hdWalletCapable-BbZxCUeZ.d.cts → hdWalletCapable-Bp_p0WLj.d.cts} +6 -4
- package/dist/{index-4NF3srcg.d.cts → index-BMY272ns.d.cts} +26 -8
- package/dist/{index-B_RYn9rg.d.cts → index-Ie_ak2zY.d.cts} +35 -9
- package/dist/{index-B_RYn9rg.d.ts → index-Ie_ak2zY.d.ts} +35 -9
- package/dist/{index-Dj2yOhQ2.d.ts → index-m-EM-e8D.d.ts} +26 -8
- package/dist/index.cjs +307 -303
- package/dist/index.d.cts +75 -13
- package/dist/index.d.ts +75 -13
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +36 -19
- package/dist/repositories/realm/index.cjs.map +1 -1
- package/dist/repositories/realm/index.d.cts +6 -3
- package/dist/repositories/realm/index.d.ts +6 -3
- package/dist/repositories/realm/index.js +22 -5
- package/dist/repositories/realm/index.js.map +1 -1
- package/dist/repositories/sqlite/index.cjs +42 -18
- package/dist/repositories/sqlite/index.cjs.map +1 -1
- package/dist/repositories/sqlite/index.d.cts +5 -2
- package/dist/repositories/sqlite/index.d.ts +5 -2
- package/dist/repositories/sqlite/index.js +29 -5
- package/dist/repositories/sqlite/index.js.map +1 -1
- package/dist/{taskRunner-DGxde-YU.d.cts → taskRunner-BgRowCqB.d.cts} +1 -1
- package/dist/{taskRunner-TzGUhxP-.d.ts → taskRunner-CqrlrJEt.d.ts} +1 -1
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +14 -14
- package/dist/wallet/expo/index.cjs.map +1 -1
- package/dist/wallet/expo/index.d.cts +5 -5
- package/dist/wallet/expo/index.d.ts +5 -5
- package/dist/wallet/expo/index.js +5 -5
- package/dist/wallet/expo/index.js.map +1 -1
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-7UJLIZQU.js.map +0 -1
- package/dist/chunk-CQNX4BTA.cjs.map +0 -1
- package/dist/chunk-F6YOCYWU.js.map +0 -1
- package/dist/chunk-LHSVPDFJ.cjs.map +0 -1
- package/dist/chunk-P53OHGXY.cjs.map +0 -1
- package/dist/chunk-WMHELOHH.js.map +0 -1
|
@@ -1948,7 +1948,9 @@ type NormalizedExtendedVirtualCoin = ExtendedVirtualCoin & NormalizedVirtualCoin
|
|
|
1948
1948
|
* it was consumed. Mirrors NArk's `ArkVtxo.IsSpent()`. The location axis is {@link canSweepOnchain},
|
|
1949
1949
|
* which the two capability predicates below subtract instead.
|
|
1950
1950
|
*/
|
|
1951
|
-
declare function
|
|
1951
|
+
declare function isVtxoSpent(vtxo: VirtualCoin): boolean;
|
|
1952
|
+
/** @deprecated Use {@link isVtxoSpent}. */
|
|
1953
|
+
declare const hasTerminalSpend: typeof isVtxoSpent;
|
|
1952
1954
|
/**
|
|
1953
1955
|
* Whether a virtual output's batch expiry has passed. Pure expiry — swept is a separate fact, ORed
|
|
1954
1956
|
* in explicitly by {@link canSpendOffchain} / {@link canRecoverOnchain}.
|
|
@@ -3005,6 +3007,10 @@ interface WalletRepository extends AsyncDisposable {
|
|
|
3005
3007
|
* @optional SDK backends implement this; custom backends fall back to Tier 1.
|
|
3006
3008
|
*/
|
|
3007
3009
|
getVtxosForScript?(script: string): Promise<ExtendedVirtualCoin[]>;
|
|
3010
|
+
/** Fetch a script set without one read per contract; `unspentOnly` omits spent rows. */
|
|
3011
|
+
getVtxosForScripts?(scripts: string[], options?: {
|
|
3012
|
+
unspentOnly?: boolean;
|
|
3013
|
+
}): Promise<ExtendedVirtualCoin[]>;
|
|
3008
3014
|
/**
|
|
3009
3015
|
* Save virtual outputs for a script.
|
|
3010
3016
|
* @optional SDK backends implement this; custom backends fall back to Tier 1.
|
|
@@ -3644,8 +3650,14 @@ interface IContractManager extends Disposable {
|
|
|
3644
3650
|
* List contracts and their current virtual outputs.
|
|
3645
3651
|
*
|
|
3646
3652
|
* If no filter is provided, returns all contracts with their virtual outputs.
|
|
3653
|
+
* `unspentOnly` omits spent VTXOs from the repository result; it
|
|
3654
|
+
* does not narrow the provider sync or change the full-history default.
|
|
3647
3655
|
*/
|
|
3648
|
-
getContractsWithVtxos(filter?: GetContractsFilter
|
|
3656
|
+
getContractsWithVtxos(filter?: GetContractsFilter, pageSize?: number, options?: {
|
|
3657
|
+
maxSyncAgeMs?: number;
|
|
3658
|
+
unspentOnly?: boolean;
|
|
3659
|
+
requireSynced?: boolean;
|
|
3660
|
+
}): Promise<ContractWithVtxos[]>;
|
|
3649
3661
|
/**
|
|
3650
3662
|
* Latest provider-sync health (online vs. degraded to repository data).
|
|
3651
3663
|
* See {@link ContractSyncState}.
|
|
@@ -4317,7 +4329,11 @@ declare class ContractManager implements IContractManager {
|
|
|
4317
4329
|
* ```
|
|
4318
4330
|
*/
|
|
4319
4331
|
getContracts(filter?: GetContractsFilter): Promise<Contract[]>;
|
|
4320
|
-
getContractsWithVtxos(filter?: GetContractsFilter, pageSize?: number
|
|
4332
|
+
getContractsWithVtxos(filter?: GetContractsFilter, pageSize?: number, options?: {
|
|
4333
|
+
maxSyncAgeMs?: number;
|
|
4334
|
+
unspentOnly?: boolean;
|
|
4335
|
+
requireSynced?: boolean;
|
|
4336
|
+
}): Promise<ContractWithVtxos[]>;
|
|
4321
4337
|
annotateVtxos(vtxos: VirtualCoin[], tapscripts?: ContractTapscriptCache): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
4322
4338
|
/** @inheritdoc */
|
|
4323
4339
|
assertAnnotatable(vtxos: readonly {
|
|
@@ -5971,7 +5987,7 @@ interface Status {
|
|
|
5971
5987
|
* @deprecated Use the canonical facts on {@link VirtualCoin} — `isSwept`, `isPreconfirmed`,
|
|
5972
5988
|
* `isSpent`, `expiresAt`, `expiresAtHeight`, `commitmentTxIds`, `spentBy`, `settledBy` — and the
|
|
5973
5989
|
* capability predicates {@link canSpendOffchain}, {@link canRecoverOnchain},
|
|
5974
|
-
* {@link
|
|
5990
|
+
* {@link isVtxoSpent}, {@link isPastExpiry}. `state` collapses independent facts into one
|
|
5975
5991
|
* lossy label; this object is retained only as a backward-compatible projection.
|
|
5976
5992
|
*/
|
|
5977
5993
|
interface VirtualStatus {
|
|
@@ -6031,7 +6047,7 @@ interface Coin extends Outpoint {
|
|
|
6031
6047
|
* {@link IndexerProvider} and {@link WalletRepository} implementations may hand back coins without
|
|
6032
6048
|
* them. The SDK normalizes every incoming coin, so coins it returns always carry the facts that are
|
|
6033
6049
|
* determinable; do not read these fields off a coin the SDK has not returned to you — use
|
|
6034
|
-
* {@link canSpendOffchain} / {@link canRecoverOnchain} / {@link
|
|
6050
|
+
* {@link canSpendOffchain} / {@link canRecoverOnchain} / {@link isVtxoSpent} /
|
|
6035
6051
|
* {@link isPastExpiry}, which normalize defensively.
|
|
6036
6052
|
*
|
|
6037
6053
|
* @see Coin
|
|
@@ -6211,6 +6227,16 @@ type GetVtxosFilter = {
|
|
|
6211
6227
|
*/
|
|
6212
6228
|
withUnrolled?: boolean;
|
|
6213
6229
|
};
|
|
6230
|
+
type GetSpendableVtxosFilter = GetVtxosFilter & {
|
|
6231
|
+
/** Exclude contracts retained for history from this spendable read. */
|
|
6232
|
+
watchedOnly?: boolean;
|
|
6233
|
+
/** Query only contracts whose handler permits generic spending. */
|
|
6234
|
+
genericallySpendableOnly?: boolean;
|
|
6235
|
+
/** Maximum age of a successful sync reused by this read, in milliseconds. Default: 0. */
|
|
6236
|
+
maxSyncAgeMs?: number;
|
|
6237
|
+
/** Reject repository fallback when the selected contracts could not be synced. */
|
|
6238
|
+
requireSynced?: boolean;
|
|
6239
|
+
};
|
|
6214
6240
|
/**
|
|
6215
6241
|
* Readonly asset manager interface for asset operations that do not require wallet identity.
|
|
6216
6242
|
*
|
|
@@ -6362,10 +6388,10 @@ interface IReadonlyWallet {
|
|
|
6362
6388
|
* Both exclusion sets are derived from one contract snapshot, so they cannot
|
|
6363
6389
|
* disagree about which VTXOs exist.
|
|
6364
6390
|
*
|
|
6365
|
-
* @param filter - Same flags
|
|
6366
|
-
* @see
|
|
6391
|
+
* @param filter - Same coin flags and defaults as {@link getVtxos}, with opt-in contract scopes
|
|
6392
|
+
* @see GetSpendableVtxosFilter
|
|
6367
6393
|
*/
|
|
6368
|
-
getSpendableVtxos(filter?:
|
|
6394
|
+
getSpendableVtxos(filter?: GetSpendableVtxosFilter): Promise<NormalizedExtendedVirtualCoin[]>;
|
|
6369
6395
|
/** @returns Onchain boarding inputs tracked by the wallet. */
|
|
6370
6396
|
getBoardingUtxos(): Promise<ExtendedCoin[]>;
|
|
6371
6397
|
/** @returns Wallet transaction history derived from boarding and Arkade activity. */
|
|
@@ -6390,4 +6416,4 @@ interface IReadonlyWallet {
|
|
|
6390
6416
|
clear(): Promise<void>;
|
|
6391
6417
|
}
|
|
6392
6418
|
|
|
6393
|
-
export { type
|
|
6419
|
+
export { type BatchFinalizedEvent as $, type ArkTransaction as A, type ContractFilter as B, type ContractRepository as C, type IntentRepository as D, type ExtendedCoin as E, type ArkIntent as F, type GetVtxosFilter as G, type IntentFilter as H, type IWallet as I, type VirtualTxRepository as J, type VirtualTx as K, type VtxoBranch as L, ChainedTxType as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, type Network as P, CSVMultisigTapscript as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotificationEvent as T, type BatchStartedEvent as U, VtxoScript as V, type WalletRepository as W, type TreeSigningStartedEvent as X, TxTree as Y, type TreeNoncesEvent as Z, type BatchFinalizationEvent as _, type Identity as a, type ChainTx as a$, type BatchFailedEvent as a0, type TreeTxEvent as a1, type TreeSignatureEvent as a2, type DescriptorProvider as a3, type IReadonlyWallet as a4, type ReadonlyIdentity as a5, type OnchainProvider as a6, type DelegateProvider as a7, type ReadonlyWalletConfig as a8, type ExitCaptureMode as a9, type Asset as aA, type FeeInfo as aB, type CreateContractParams as aC, type GetContractsFilter as aD, type GetSpendablePathsOptions as aE, type GetAllSpendingPathsOptions as aF, type IssuanceParams as aG, type ReissuanceParams as aH, type BurnParams as aI, type RenewVtxosOptions as aJ, type WatchedScript as aK, type PathSelection as aL, type ContractEvent as aM, type AssetDetails as aN, type IssuanceResult as aO, type DelegateInfo as aP, type MigrationGlobalSkipReason as aQ, type MigrationLegSkipReason as aR, type SignerStatus as aS, type StorageConfig as aT, type IVtxoManager as aU, type ExplorerTransaction as aV, type TreeNonces as aW, type TreePartialSigs as aX, type PendingTx as aY, type EncodedVtxoScript as aZ, type Status as a_, type ExitDataSource as aa, type IReadonlyAssetManager as ab, type ContractSyncState as ac, type RecipientAddressContext as ad, type NetworkName as ae, type ArkInfo as af, ArkAddress as ag, type ContractWithVtxos as ah, selectPendingRecoveryOutpoints as ai, type Coin as aj, ContractManager as ak, type ContractManagerConfig as al, type SettlementConfig as am, VtxoManager as an, type SignerSession as ao, type SignedIntent as ap, Intent as aq, type TimeHeight as ar, type DescriptorSigningRequest as as, Transaction as at, type IntentFeeConfig as au, type OffchainInput as av, FeeAmount as aw, type OnchainInput as ax, type FeeOutput as ay, type ContractWatcherConfig as az, type WalletConfig as b, REGTEST_EMULATOR_PUBKEY as b$, type PathContext as b0, type ActivityIntent as b1, type ActivityResolver as b2, type ArkIntentState as b3, type ArkTapscript as b4, type AssetMetadata as b5, BITCOIN_EMULATOR_PUBKEY as b6, type BaseWalletConfig as b7, type BatchInfo as b8, type BatchSignableIdentity as b9, type EventSourceCapable as bA, type EventSourceFactory as bB, type EventSourceLike as bC, EventSourceUnavailableError as bD, type ExitChainResolver as bE, type ExtendedContractVtxo as bF, type GroupMembership as bG, type HandlerError as bH, type IDelegatorManager as bI, INTENT_TERMINAL_STATES as bJ, IndexerTxType as bK, type IntentCoin as bL, type KnownMetadata as bM, MUTINYNET_EMULATOR_PUBKEY as bN, type MigrateDeprecatedSignerOptions as bO, type MigrationLegReport as bP, type MigrationVtxoRef as bQ, MultisigTapscript as bR, type NewAddressType as bS, type Nonces as bT, type Output as bU, type PageResponse as bV, type PaginationOptions as bW, PartialSig as bX, type PrevTxSource as bY, PrevTxUnavailableError as bZ, type ProviderClass as b_, CLTVMultisigTapscript as ba, type CandidateDeps as bb, ChainTxType as bc, type CommitmentTx as bd, ConditionCSVMultisigTapscript as be, ConditionMultisigTapscript as bf, type ContractBalance as bg, type ContractEventCallback as bh, type ContractHandler as bi, type ContractState as bj, type ContractVtxo as bk, type ContractVtxoEvent as bl, ContractWatcher as bm, DEFAULT_VTXO_PAGE_SIZE as bn, DelegateManagerImpl as bo, type DelegateOptions as bp, DelegatorManagerImpl as bq, type DelegatorProvider as br, type DeprecatedSignerMigrationReport as bs, type DeprecatedSignerReport as bt, DigestMismatchError as bu, type Discoverable as bv, type DiscoveredContract as bw, type DiscoveryDeps as bx, ESPLORA_URL as by, EsploraProvider as bz, type WalletBalance as c, isVirtualCoin as c$, type RawTxSource as c0, RestDelegateProvider as c1, RestDelegatorProvider as c2, type ScanContractsOptions as c3, type ScanResult as c4, type ScheduledSession as c5, SettlementEventType as c6, type SignRequest as c7, type SignerClassification as c8, type SignerSet as c9, canSweepOnchain as cA, classifyAgainstSignerSet as cB, classifyContractSigner as cC, collabExitResolver as cD, configureEventSource as cE, createDefaultActivityRegistry as cF, createExitChainResolver as cG, decodeTapscript as cH, defaultEmulatorPubkey as cI, getConfiguredEventSource as cJ, getNetwork as cK, getRandomId as cL, getSequence as cM, hasCandidates as cN, hasTerminalSpend as cO, isBatchSignable as cP, isContractVtxoEvent as cQ, isCooperativelyMigratable as cR, isDiscoverable as cS, isEventSourceUnavailableError as cT, isExpired as cU, isPastExpiry as cV, isRecoverable as cW, isSigningIdentity as cX, isSpendable as cY, isSubdust as cZ, isTerminalIntentState as c_, type SubscriptionEvent as ca, type SubscriptionHeartbeat as cb, type SweepTxNotification as cc, type TapLeaves as cd, TapTreeCoder as ce, TapscriptType as cf, type Tx as cg, type TxHistoryRecord as ch, type TxKey as ci, type TxNotification as cj, type TxTag as ck, type TxTreeNode as cl, TxType as cm, type VirtualStatus as cn, type Vtxo as co, type VtxoChain as cp, type VtxoType as cq, type WalletMode as cr, type WithPrevTx as cs, assertAllowedSighashTypes as ct, assetMintResolver as cu, attachPrevArkTxs as cv, attachPrevoutTxs as cw, boardingResolver as cx, canRecoverOnchain as cy, canSpendOffchain as cz, type GetSpendableVtxosFilter as d, isVtxoExpiringSoon as d0, isVtxoSpent as d1, networks as d2, resolveEmulatorPubkey as d3, resolveEventSource as d4, resolvePrevTxs as d5, scriptFromTapLeafScript as d6, signerSetFromInfo as d7, toXOnlySignerHex as d8, withPrevTxs as d9, type TapscriptDeriving as da, ActivityRegistry as e, type Activity as f, type IContractManager as g, type GetNewAddressesOptions as h, type NewAddress as i, type IDelegateManager as j, type SettleParams as k, type SettlementEvent as l, type SendParams as m, type IAssetManager as n, RestArkProvider as o, RestIndexerProvider as p, type SubscriptionResponse as q, type ArkProvider as r, type IndexerProvider as s, type RelativeTimelock as t, type TapLeafScript as u, type VirtualCoin as v, type Contract as w, type ExtendedVirtualCoin as x, type VtxoRepositoryKey as y, type WalletState as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { bi as ContractHandler, t as RelativeTimelock, bv as Discoverable, V as VtxoScript, u as TapLeafScript, da as TapscriptDeriving } from './index-Ie_ak2zY.js';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-CjcysR7s.js';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -654,14 +654,28 @@ interface InputDef {
|
|
|
654
654
|
* {@link ArkadeArgValue}).
|
|
655
655
|
*/
|
|
656
656
|
type InputRef = string | InputDef;
|
|
657
|
-
/**
|
|
658
|
-
|
|
657
|
+
/** Constructor pubkey `$param` tweaked by `fn`'s covenant. */
|
|
658
|
+
interface TweakedSigner {
|
|
659
|
+
tweak: string;
|
|
660
|
+
fn: string;
|
|
661
|
+
}
|
|
662
|
+
/** A `"$param"` reference, literal x-only bytes, or a {@link TweakedSigner}. */
|
|
663
|
+
type SignerRef = string | Uint8Array | TweakedSigner;
|
|
659
664
|
/** A witness-stack item: a function-input name, a `"$param"`, a literal number/bigint (minimal script-num), or raw bytes. */
|
|
660
665
|
type WitnessRef = string | number | bigint | Uint8Array;
|
|
661
666
|
/** Bitcoin Script segment of a spending path — enforced on-chain. */
|
|
662
667
|
interface TapscriptSegment {
|
|
663
|
-
/**
|
|
668
|
+
/**
|
|
669
|
+
* Required signers. A path with `arkadeScript` also appends the emulator
|
|
670
|
+
* co-signer, unless `emulator` is `null`.
|
|
671
|
+
*/
|
|
664
672
|
signers: SignerRef[];
|
|
673
|
+
/**
|
|
674
|
+
* Covenant named by `<EMULATOR_KEY:fn>`. `null` when this leaf belongs to a
|
|
675
|
+
* covenant but signs with a constructor-key tweak instead. Omitted on
|
|
676
|
+
* hand-written programs, which still append the co-signer.
|
|
677
|
+
*/
|
|
678
|
+
emulator?: string | null;
|
|
665
679
|
/**
|
|
666
680
|
* Optional standard-opcode condition (e.g. a hashlock), encoded into a
|
|
667
681
|
* ConditionMultisig leaf — or ConditionCSVMultisig when combined with `csv`.
|
|
@@ -798,15 +812,19 @@ declare class ArkadeProgramScript extends VtxoScript {
|
|
|
798
812
|
functionByName(name: string): CompiledProgramFunction | undefined;
|
|
799
813
|
}
|
|
800
814
|
/**
|
|
801
|
-
* Convert a
|
|
815
|
+
* Convert a Program JSON artifact into a {@link Program}. Byte values are
|
|
802
816
|
* encoded as `0x`-prefixed hex strings in `asm`/`witness`/`signers`; opcode names,
|
|
803
817
|
* `$param` placeholders and numbers pass through unchanged.
|
|
818
|
+
*
|
|
819
|
+
* This is *not* the JSON `arkadec` writes. That artifact lists spend groups in
|
|
820
|
+
* an array and uses `<param>` placeholders and raw leaf assembly; pass it to
|
|
821
|
+
* {@link programFromArtifact} instead.
|
|
804
822
|
*/
|
|
805
823
|
declare function parseArtifact(artifact: {
|
|
806
824
|
version?: number;
|
|
807
825
|
name?: string;
|
|
808
826
|
params?: readonly InputRef[];
|
|
809
|
-
functions:
|
|
827
|
+
functions: unknown;
|
|
810
828
|
}): Program;
|
|
811
829
|
/**
|
|
812
830
|
* Serialize a {@link Program} to compiler-artifact JSON — the inverse of
|
|
@@ -847,4 +865,4 @@ declare function deserializeArkadeContractParams(params: Record<string, string>)
|
|
|
847
865
|
*/
|
|
848
866
|
declare const ArkadeContractHandler: ContractHandler<ArkadeContractParams, ArkadeProgramScript> & TapscriptDeriving<ArkadeProgramScript>;
|
|
849
867
|
|
|
850
|
-
export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, type VHTLCV2ContractParams as
|
|
868
|
+
export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, VHTLCV2ContractHandler as E, type VHTLCV2ContractParams as F, contractHandlers as G, type InputRef as I, type Program as P, SUPPORTED_PROGRAM_VERSION as S, type TapscriptSegment as T, VHTLC as V, type WitnessRef as W, ArkadeProgramScript as a, type ProgramKeys as b, type ArkadeArgValue as c, type ArkadeFunction as d, type InputDef as e, type ArkadeValueType as f, type ArkadeArgType as g, type ArkadeContractParams as h, type ArkadeSegment as i, type AsmToken as j, type SignerRef as k, type TweakedSigner as l, deserializeArkadeContractParams as m, stringifyArtifact as n, ArkadeContractHandler as o, parseArtifact as p, type BoardingContractParams as q, resolveAsm as r, serializeArkadeContractParams as s, type DefaultContractParams as t, DelegateContractHandler as u, validateProgram as v, witnessRefToBytes as w, type DelegateContractParams as x, VHTLCContractHandler as y, type VHTLCContractParams as z };
|