@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
|
@@ -270,8 +270,8 @@ declare function isEventSourceUnavailableError(error: unknown): error is Error;
|
|
|
270
270
|
* Set the `EventSource` every provider uses by default. Call once at startup,
|
|
271
271
|
* before opening a wallet; pass `undefined` to go back to the global.
|
|
272
272
|
*
|
|
273
|
-
* This exists because
|
|
274
|
-
*
|
|
273
|
+
* This exists because a single process may want one EventSource implementation shared
|
|
274
|
+
* by every Rest provider it constructs.
|
|
275
275
|
*
|
|
276
276
|
* @example
|
|
277
277
|
* ```typescript
|
|
@@ -981,8 +981,6 @@ interface ArkadeInfo {
|
|
|
981
981
|
vtxoMaxAmount: bigint;
|
|
982
982
|
vtxoMinAmount: bigint;
|
|
983
983
|
}
|
|
984
|
-
/** @deprecated alias for @see ArkadeInfo */
|
|
985
|
-
type ArkInfo = ArkadeInfo;
|
|
986
984
|
/** Signed intent payload sent to the Arkade server. */
|
|
987
985
|
interface SignedIntent<T extends Intent.Message> {
|
|
988
986
|
/** Base64-encoded signed proof transaction. */
|
|
@@ -2032,39 +2030,6 @@ declare function canSweepOnchain(vtxo: VirtualCoin): boolean;
|
|
|
2032
2030
|
* `TypeError` on a primitive rather than returning false.
|
|
2033
2031
|
*/
|
|
2034
2032
|
declare function isVirtualCoin<T>(input: T): input is T & VirtualCoin;
|
|
2035
|
-
/**
|
|
2036
|
-
* Return whether a virtual output is still spendable.
|
|
2037
|
-
*
|
|
2038
|
-
* @param vtxo - virtual output to inspect
|
|
2039
|
-
* @returns `true` when the virtual output has not been consumed
|
|
2040
|
-
*
|
|
2041
|
-
* @deprecated Ambiguous: `true` for swept, expired or unrolled virtual outputs, none of which can
|
|
2042
|
-
* in fact be spent offchain. Use {@link canSpendOffchain}.
|
|
2043
|
-
*/
|
|
2044
|
-
declare function isSpendable(vtxo: VirtualCoin): boolean;
|
|
2045
|
-
/**
|
|
2046
|
-
* Return whether a virtual output is recoverable.
|
|
2047
|
-
*
|
|
2048
|
-
* @param vtxo - virtual output to inspect
|
|
2049
|
-
* @returns `true` when the virtual output is swept but not yet consumed
|
|
2050
|
-
*
|
|
2051
|
-
* @deprecated Swept-only: ignores virtual outputs that are past expiry but not yet swept, which are
|
|
2052
|
-
* equally recoverable, and claims unrolled ones, which are not recoverable at all. Use
|
|
2053
|
-
* {@link canRecoverOnchain}.
|
|
2054
|
-
*/
|
|
2055
|
-
declare function isRecoverable(vtxo: VirtualCoin): boolean;
|
|
2056
|
-
/**
|
|
2057
|
-
* Return whether a virtual output should be treated as expired.
|
|
2058
|
-
*
|
|
2059
|
-
* @param vtxo - virtual output to inspect
|
|
2060
|
-
* @returns `true` when the virtual output is swept or its wall-clock batch expiry has passed
|
|
2061
|
-
*
|
|
2062
|
-
* @deprecated Conflates swept with expired, and cannot evaluate height-based expiry — being
|
|
2063
|
-
* synchronous, it has no source for the current chain tip, so it ignores `expiresAtHeight` exactly
|
|
2064
|
-
* as it always has. For the recovery decision use {@link canRecoverOnchain}; to reproduce this
|
|
2065
|
-
* truth condition use `v.isSwept || isPastExpiry(v, now)`.
|
|
2066
|
-
*/
|
|
2067
|
-
declare function isExpired(vtxo: VirtualCoin): boolean;
|
|
2068
2033
|
|
|
2069
2034
|
/**
|
|
2070
2035
|
* Machine-readable classification of a contract's server signer relative to a
|
|
@@ -2185,30 +2150,6 @@ declare function selectPendingRecoveryOutpoints(contractsWithVtxos: ReadonlyArra
|
|
|
2185
2150
|
};
|
|
2186
2151
|
vtxos: ReadonlyArray<VirtualCoin>;
|
|
2187
2152
|
}>, signerSet: SignerSet, nowSeconds?: number): Set<string>;
|
|
2188
|
-
/**
|
|
2189
|
-
* Configuration options for automatic virtual output renewal
|
|
2190
|
-
*
|
|
2191
|
-
* @see DEFAULT_RENEWAL_CONFIG
|
|
2192
|
-
* @deprecated Leave `renewalConfig` undefined and use `settlementConfig` instead.
|
|
2193
|
-
* @see SettlementConfig
|
|
2194
|
-
*/
|
|
2195
|
-
interface RenewalConfig {
|
|
2196
|
-
/**
|
|
2197
|
-
* Enable automatic renewal monitoring
|
|
2198
|
-
*
|
|
2199
|
-
* @defaultValue `false`
|
|
2200
|
-
* @deprecated Explicitly set `settlementConfig` to `false` to disable VTXO renewal.
|
|
2201
|
-
*/
|
|
2202
|
-
enabled?: boolean;
|
|
2203
|
-
/**
|
|
2204
|
-
* Threshold in milliseconds to use as threshold for renewal
|
|
2205
|
-
* E.g., 86_400_000 means renew when 24 hours until expiry remains
|
|
2206
|
-
*
|
|
2207
|
-
* @defaultValue `259_200_000` (3 days).
|
|
2208
|
-
* @deprecated Use `SettlementConfig.vtxoThreshold` (in seconds) instead.
|
|
2209
|
-
*/
|
|
2210
|
-
thresholdMs?: number;
|
|
2211
|
-
}
|
|
2212
2153
|
/**
|
|
2213
2154
|
* Configuration for automatic settlement and renewal.
|
|
2214
2155
|
*
|
|
@@ -2567,8 +2508,6 @@ interface IVtxoManager {
|
|
|
2567
2508
|
}
|
|
2568
2509
|
declare class VtxoManager implements AsyncDisposable, IVtxoManager {
|
|
2569
2510
|
readonly wallet: IWallet;
|
|
2570
|
-
/** @deprecated Use settlementConfig instead */
|
|
2571
|
-
readonly renewalConfig?: RenewalConfig | undefined;
|
|
2572
2511
|
readonly settlementConfig: SettlementConfig | false;
|
|
2573
2512
|
private readonly contractEventsSubscriptionReady;
|
|
2574
2513
|
private disposePromise?;
|
|
@@ -2595,9 +2534,7 @@ declare class VtxoManager implements AsyncDisposable, IVtxoManager {
|
|
|
2595
2534
|
private consecutiveMigrationFailures;
|
|
2596
2535
|
private static readonly MIGRATION_COOLDOWN_MS;
|
|
2597
2536
|
private static readonly MIGRATION_MAX_BACKOFF_MS;
|
|
2598
|
-
constructor(wallet: IWallet,
|
|
2599
|
-
/** @deprecated Use settlementConfig instead */
|
|
2600
|
-
renewalConfig?: RenewalConfig | undefined, settlementConfig?: SettlementConfig | false);
|
|
2537
|
+
constructor(wallet: IWallet, settlementConfig?: SettlementConfig | false);
|
|
2601
2538
|
/**
|
|
2602
2539
|
* Outpoints recovery must not name yet, with the reason each was refused.
|
|
2603
2540
|
* Empty when the manager offers no opinion — an embedder's may not implement
|
|
@@ -3383,10 +3320,8 @@ interface DelegateInfo {
|
|
|
3383
3320
|
pubkey: string;
|
|
3384
3321
|
/** Delegate fee amount or expression returned by the delegate. */
|
|
3385
3322
|
fee: string;
|
|
3386
|
-
/** Address for delegate fee collection.
|
|
3323
|
+
/** Address for delegate fee collection. */
|
|
3387
3324
|
delegateAddress: string;
|
|
3388
|
-
/** @deprecated alias for @see DelegateInfo.delegateAddress */
|
|
3389
|
-
delegatorAddress?: string;
|
|
3390
3325
|
}
|
|
3391
3326
|
/**
|
|
3392
3327
|
* Optional delegate behavior flags.
|
|
@@ -3420,8 +3355,6 @@ interface DelegateProvider {
|
|
|
3420
3355
|
*/
|
|
3421
3356
|
getDelegateInfo(): Promise<DelegateInfo>;
|
|
3422
3357
|
}
|
|
3423
|
-
/** @deprecated alias for @see DelegateProvider */
|
|
3424
|
-
type DelegatorProvider = DelegateProvider;
|
|
3425
3358
|
/**
|
|
3426
3359
|
* REST-based delegate provider implementation.
|
|
3427
3360
|
* @example
|
|
@@ -3456,9 +3389,6 @@ declare class RestDelegateProvider implements DelegateProvider {
|
|
|
3456
3389
|
*/
|
|
3457
3390
|
getDelegateInfo(): Promise<DelegateInfo>;
|
|
3458
3391
|
}
|
|
3459
|
-
/** @deprecated alias for @see RestDelegateProvider */
|
|
3460
|
-
declare const RestDelegatorProvider: typeof RestDelegateProvider;
|
|
3461
|
-
type RestDelegatorProvider = RestDelegateProvider;
|
|
3462
3392
|
|
|
3463
3393
|
interface IDelegateManager {
|
|
3464
3394
|
/**
|
|
@@ -3483,8 +3413,6 @@ interface IDelegateManager {
|
|
|
3483
3413
|
/** Fetch delegate metadata such as pubkey, fee, and delegate address. */
|
|
3484
3414
|
getDelegateInfo(): Promise<DelegateInfo>;
|
|
3485
3415
|
}
|
|
3486
|
-
/** @deprecated alias for @see IDelegateManager */
|
|
3487
|
-
type IDelegatorManager = IDelegateManager;
|
|
3488
3416
|
declare class DelegateManagerImpl implements IDelegateManager {
|
|
3489
3417
|
readonly delegateProvider: DelegateProvider;
|
|
3490
3418
|
readonly arkInfoProvider: Pick<ArkProvider, "getInfo">;
|
|
@@ -3500,9 +3428,6 @@ declare class DelegateManagerImpl implements IDelegateManager {
|
|
|
3500
3428
|
}[];
|
|
3501
3429
|
}>;
|
|
3502
3430
|
}
|
|
3503
|
-
/** @deprecated alias for @see DelegateManagerImpl */
|
|
3504
|
-
declare const DelegatorManagerImpl: typeof DelegateManagerImpl;
|
|
3505
|
-
type DelegatorManagerImpl = DelegateManagerImpl;
|
|
3506
3431
|
|
|
3507
3432
|
/**
|
|
3508
3433
|
* Tapscript fields derived purely from a contract's params. They are identical
|
|
@@ -3582,14 +3507,11 @@ type RefreshVtxosOptions = {
|
|
|
3582
3507
|
* A single `Discoverable` handler's discovery failure, captured during a
|
|
3583
3508
|
* {@link IContractManager.scanContracts} run instead of aborting the loop.
|
|
3584
3509
|
*
|
|
3585
|
-
* TODO(next major): rename `index` → `fromIndex` so the pair reads
|
|
3586
|
-
* `fromIndex`/`toIndex`. It stays `index` here only to keep this exported
|
|
3587
|
-
* shape backward-compatible.
|
|
3588
3510
|
*/
|
|
3589
3511
|
interface HandlerError {
|
|
3590
3512
|
handler: string;
|
|
3591
3513
|
/** The failed index, or the first index of a failed `discoverRange` window. */
|
|
3592
|
-
|
|
3514
|
+
fromIndex: number;
|
|
3593
3515
|
/** Inclusive end of a failed `discoverRange` window; absent for a single index. */
|
|
3594
3516
|
toIndex?: number;
|
|
3595
3517
|
error: unknown;
|
|
@@ -3598,8 +3520,6 @@ interface HandlerError {
|
|
|
3598
3520
|
* Outcome of a {@link IContractManager.scanContracts} run.
|
|
3599
3521
|
*/
|
|
3600
3522
|
interface ScanResult {
|
|
3601
|
-
/** @deprecated Alias of {@link ScanResult.highestConfirmedUsedIndex}. */
|
|
3602
|
-
lastIndexUsed: number;
|
|
3603
3523
|
/**
|
|
3604
3524
|
* Highest HD index at which any handler confirmed a contract (`-1` if none),
|
|
3605
3525
|
* including hits past {@link ScanResult.truncatedAt}. Safe to record
|
|
@@ -3739,7 +3659,7 @@ interface IContractManager extends Disposable {
|
|
|
3739
3659
|
* its own `IContractManager`. An implementation that omits it simply offers
|
|
3740
3660
|
* no opinion, which is the same answer every non-VHTLC contract gives.
|
|
3741
3661
|
*/
|
|
3742
|
-
assertSpendableNow?(vtxos: readonly AssertSpendableInput[],
|
|
3662
|
+
assertSpendableNow?(vtxos: readonly AssertSpendableInput[], walletDescriptor?: () => Promise<string | undefined>): Promise<void>;
|
|
3743
3663
|
/**
|
|
3744
3664
|
* Which of `vtxos` their owning handler refuses right now, keyed by outpoint
|
|
3745
3665
|
* (`txid:vout`) and valued with the handler's own explanation.
|
|
@@ -3751,7 +3671,7 @@ interface IContractManager extends Disposable {
|
|
|
3751
3671
|
*
|
|
3752
3672
|
* Optional for the same reason {@link assertSpendableNow} is.
|
|
3753
3673
|
*/
|
|
3754
|
-
unspendableNowReasons?(vtxos: readonly AssertSpendableInput[],
|
|
3674
|
+
unspendableNowReasons?(vtxos: readonly AssertSpendableInput[], walletDescriptor?: () => Promise<string | undefined>): Promise<Map<string, string>>;
|
|
3755
3675
|
/**
|
|
3756
3676
|
* Update mutable contract fields.
|
|
3757
3677
|
*
|
|
@@ -3890,8 +3810,8 @@ type GetSpendablePathsOptions = {
|
|
|
3890
3810
|
vtxo: VirtualCoin;
|
|
3891
3811
|
/** Whether collaborative spending is available (default: true) */
|
|
3892
3812
|
collaborative?: boolean;
|
|
3893
|
-
/** Wallet
|
|
3894
|
-
|
|
3813
|
+
/** Wallet descriptor to determine role */
|
|
3814
|
+
walletDescriptor?: string;
|
|
3895
3815
|
};
|
|
3896
3816
|
/**
|
|
3897
3817
|
* Options for getting all possible spending paths.
|
|
@@ -3901,8 +3821,8 @@ type GetAllSpendingPathsOptions = {
|
|
|
3901
3821
|
contractScript: string;
|
|
3902
3822
|
/** Whether collaborative spending is available (default: true) */
|
|
3903
3823
|
collaborative?: boolean;
|
|
3904
|
-
/** Wallet
|
|
3905
|
-
|
|
3824
|
+
/** Wallet descriptor to determine role */
|
|
3825
|
+
walletDescriptor?: string;
|
|
3906
3826
|
};
|
|
3907
3827
|
/**
|
|
3908
3828
|
* Configuration for the ContractManager.
|
|
@@ -3991,11 +3911,6 @@ interface LookAheadConfig {
|
|
|
3991
3911
|
* `rotateServerSigner` fans the new signer set.
|
|
3992
3912
|
*/
|
|
3993
3913
|
candidateDeps(): CandidateDeps;
|
|
3994
|
-
/**
|
|
3995
|
-
* Fired after a speculative entry at `index` is promoted to a real row.
|
|
3996
|
-
* @deprecated Use `advanceWatermark`; kept for external LookAheadConfig users.
|
|
3997
|
-
*/
|
|
3998
|
-
onPromoted?(index: number): Promise<void>;
|
|
3999
3914
|
}
|
|
4000
3915
|
/**
|
|
4001
3916
|
* Parameters for creating a new contract.
|
|
@@ -4299,9 +4214,9 @@ declare class ContractManager implements IContractManager {
|
|
|
4299
4214
|
script: string;
|
|
4300
4215
|
}[]): Promise<void>;
|
|
4301
4216
|
/** @inheritdoc */
|
|
4302
|
-
assertSpendableNow(vtxos: readonly AssertSpendableInput[],
|
|
4217
|
+
assertSpendableNow(vtxos: readonly AssertSpendableInput[], walletDescriptor?: () => Promise<string | undefined>): Promise<void>;
|
|
4303
4218
|
/** @inheritdoc */
|
|
4304
|
-
unspendableNowReasons(vtxos: readonly AssertSpendableInput[],
|
|
4219
|
+
unspendableNowReasons(vtxos: readonly AssertSpendableInput[], walletDescriptor?: () => Promise<string | undefined>): Promise<Map<string, string>>;
|
|
4305
4220
|
private buildContractsDbFilter;
|
|
4306
4221
|
/**
|
|
4307
4222
|
* Update a contract.
|
|
@@ -4629,16 +4544,10 @@ interface PathContext {
|
|
|
4629
4544
|
* Used by handlers to determine wallet's role in multi-party contracts.
|
|
4630
4545
|
*/
|
|
4631
4546
|
walletDescriptor?: string;
|
|
4632
|
-
/**
|
|
4633
|
-
* Wallet's public key (x-only, 32 bytes hex).
|
|
4634
|
-
* @deprecated Use walletDescriptor instead.
|
|
4635
|
-
*/
|
|
4636
|
-
walletPubKey?: string;
|
|
4637
4547
|
/**
|
|
4638
4548
|
* Explicit role override for multi-party contracts such as VHTLC.
|
|
4639
4549
|
* If not provided, the handler may derive the role by matching
|
|
4640
|
-
* {@link walletDescriptor}
|
|
4641
|
-
* fallback — against the contract's sender/receiver params.
|
|
4550
|
+
* {@link walletDescriptor} against the contract's sender/receiver params.
|
|
4642
4551
|
*/
|
|
4643
4552
|
role?: string;
|
|
4644
4553
|
/**
|
|
@@ -4726,7 +4635,7 @@ interface ContractHandler<P = Record<string, unknown>, S extends VtxoScript = Vt
|
|
|
4726
4635
|
/**
|
|
4727
4636
|
* Whether this contract's VTXOs may be picked by *generic* wallet spending —
|
|
4728
4637
|
* send, settle, renewal, asset operations, offboard, `available` balance.
|
|
4729
|
-
* Explicit-input APIs (`settle({ inputs })`, `
|
|
4638
|
+
* Explicit-input APIs (`settle({ inputs })`, `send({ selectedVtxos })`,
|
|
4730
4639
|
* …) stay open regardless: naming an outpoint is the intent this gate protects.
|
|
4731
4640
|
*
|
|
4732
4641
|
* Pure, synchronous and offline — it runs inside the service worker, so no
|
|
@@ -5295,46 +5204,15 @@ interface NewAddress {
|
|
|
5295
5204
|
/**
|
|
5296
5205
|
* Base configuration options shared by all wallet types.
|
|
5297
5206
|
*
|
|
5298
|
-
*
|
|
5299
|
-
*
|
|
5300
|
-
*
|
|
5301
|
-
* derived service URLs such as `indexerUrl` and `esploraUrl`.
|
|
5302
|
-
*
|
|
5303
|
-
* Provider-based configuration supplies concrete provider instances directly,
|
|
5304
|
-
* including the ArkProvider, IndexerProvider, OnchainProvider, and DelegateProvider.
|
|
5305
|
-
*
|
|
5306
|
-
* The wallet will use provided URLs to create default providers if custom provider
|
|
5307
|
-
* instances are not supplied. If optional parameters are not provided, the wallet
|
|
5308
|
-
* will fetch configuration from the Arkade server.
|
|
5309
|
-
*
|
|
5310
|
-
* @remarks
|
|
5311
|
-
* URL-based and provider-based configuration can be mixed, but provider instances
|
|
5312
|
-
* always take precedence over URLs for the corresponding service.
|
|
5207
|
+
* Provider instances are the supported way to connect a wallet to Arkade,
|
|
5208
|
+
* indexer, onchain, and delegation services. If a provider is omitted, the
|
|
5209
|
+
* wallet constructs the default implementation for that service.
|
|
5313
5210
|
*
|
|
5314
5211
|
* @see WalletConfig
|
|
5315
5212
|
* @see ReadonlyWalletConfig
|
|
5316
5213
|
* @see StorageConfig
|
|
5317
5214
|
*/
|
|
5318
5215
|
interface BaseWalletConfig {
|
|
5319
|
-
/**
|
|
5320
|
-
* Base URL of the Arkade server.
|
|
5321
|
-
*
|
|
5322
|
-
* @deprecated Pass an explicit `arkProvider` instance instead. URL-based
|
|
5323
|
-
* configuration will be removed in a future major version.
|
|
5324
|
-
*/
|
|
5325
|
-
arkServerUrl?: string;
|
|
5326
|
-
/**
|
|
5327
|
-
* Optional override for the indexer URL.
|
|
5328
|
-
*
|
|
5329
|
-
* @deprecated Pass an explicit `indexerProvider` instance instead.
|
|
5330
|
-
*/
|
|
5331
|
-
indexerUrl?: string;
|
|
5332
|
-
/**
|
|
5333
|
-
* Optional override for the Esplora API URL.
|
|
5334
|
-
*
|
|
5335
|
-
* @deprecated Pass an explicit `onchainProvider` instance instead.
|
|
5336
|
-
*/
|
|
5337
|
-
esploraUrl?: string;
|
|
5338
5216
|
/** Optional Arkade server public key used to construct and validate Arkade addresses. */
|
|
5339
5217
|
arkServerPublicKey?: string;
|
|
5340
5218
|
/** Relative timelock applied to boarding scripts. */
|
|
@@ -5369,8 +5247,6 @@ interface BaseWalletConfig {
|
|
|
5369
5247
|
onchainProvider?: OnchainProvider;
|
|
5370
5248
|
/** Optional delegation service instance. */
|
|
5371
5249
|
delegateProvider?: DelegateProvider;
|
|
5372
|
-
/** @deprecated alias for @see BaseWalletConfig.delegateProvider */
|
|
5373
|
-
delegatorProvider?: DelegateProvider;
|
|
5374
5250
|
}
|
|
5375
5251
|
/**
|
|
5376
5252
|
* Configuration options for readonly wallet initialization.
|
|
@@ -5439,16 +5315,6 @@ interface ReadonlyWalletConfig extends BaseWalletConfig {
|
|
|
5439
5315
|
interface WalletConfig extends ReadonlyWalletConfig {
|
|
5440
5316
|
/** Signing identity used to authorize transactions. */
|
|
5441
5317
|
identity: Identity;
|
|
5442
|
-
/**
|
|
5443
|
-
* Legacy renewal configuration.
|
|
5444
|
-
*
|
|
5445
|
-
* @remarks
|
|
5446
|
-
* This field is still accepted for backwards compatibility, but `settlementConfig`
|
|
5447
|
-
* is the source of truth for new code.
|
|
5448
|
-
*
|
|
5449
|
-
* @deprecated Use `settlementConfig` instead.
|
|
5450
|
-
*/
|
|
5451
|
-
renewalConfig?: RenewalConfig;
|
|
5452
5318
|
/**
|
|
5453
5319
|
* Configuration for automatic settlement and renewal.
|
|
5454
5320
|
* `false` = explicitly disabled, `undefined` or `{}` = enabled with defaults.
|
|
@@ -5645,9 +5511,6 @@ interface WalletBalance {
|
|
|
5645
5511
|
* Parameters accepted by `OnchainWallet.send`.
|
|
5646
5512
|
*
|
|
5647
5513
|
* @remarks
|
|
5648
|
-
* This shape was also used by the deprecated `Wallet.sendBitcoin` method.
|
|
5649
|
-
* New wallet sends should use `Recipient` via `IWallet.send`.
|
|
5650
|
-
*
|
|
5651
5514
|
* @see Recipient
|
|
5652
5515
|
*/
|
|
5653
5516
|
interface SendBitcoinParams {
|
|
@@ -5658,12 +5521,7 @@ interface SendBitcoinParams {
|
|
|
5658
5521
|
/** Optional fee rate override in sats/vB. */
|
|
5659
5522
|
feeRate?: number;
|
|
5660
5523
|
/**
|
|
5661
|
-
* Optional
|
|
5662
|
-
* @deprecated Does not appear to have ever been used.
|
|
5663
|
-
*/
|
|
5664
|
-
memo?: string;
|
|
5665
|
-
/**
|
|
5666
|
-
* Optional explicit virtual output selection used by `Wallet.sendBitcoin`.
|
|
5524
|
+
* Optional explicit virtual output selection.
|
|
5667
5525
|
* Ungated, like `settle({ inputs })`: whatever is named here is spent, even
|
|
5668
5526
|
* if generic selection would skip it.
|
|
5669
5527
|
*
|
|
@@ -5871,45 +5729,6 @@ interface Status {
|
|
|
5871
5729
|
/** Block time where the output was confirmed, when known. */
|
|
5872
5730
|
block_time?: number;
|
|
5873
5731
|
}
|
|
5874
|
-
/**
|
|
5875
|
-
* Virtual output status.
|
|
5876
|
-
*
|
|
5877
|
-
* @deprecated Use the canonical facts on {@link VirtualCoin} — `isSwept`, `isPreconfirmed`,
|
|
5878
|
-
* `isSpent`, `expiresAt`, `expiresAtHeight`, `commitmentTxIds`, `spentBy`, `settledBy` — and the
|
|
5879
|
-
* capability predicates {@link canSpendOffchain}, {@link canRecoverOnchain},
|
|
5880
|
-
* {@link hasTerminalSpend}, {@link isPastExpiry}. `state` collapses independent facts into one
|
|
5881
|
-
* lossy label; this object is retained only as a backward-compatible projection.
|
|
5882
|
-
*/
|
|
5883
|
-
interface VirtualStatus {
|
|
5884
|
-
/**
|
|
5885
|
-
* Extended output status.
|
|
5886
|
-
*
|
|
5887
|
-
* - `preconfirmed`: not yet finalized in a batch
|
|
5888
|
-
* - `settled`: finalized in a batch
|
|
5889
|
-
* - `swept`: expired/swept and recoverable in a new batch
|
|
5890
|
-
* - `spent`: destroyed by a later transaction
|
|
5891
|
-
*
|
|
5892
|
-
* @deprecated Lossy: the states are not orthogonal and collapse with precedence
|
|
5893
|
-
* `spent` > `swept` > `preconfirmed` > `settled`, so a spent VTXO that was also swept reports
|
|
5894
|
-
* only `spent`. Read `isSpent`/`isSwept`/`isPreconfirmed` instead, or a capability predicate.
|
|
5895
|
-
*/
|
|
5896
|
-
state: "preconfirmed" | "settled" | "swept" | "spent";
|
|
5897
|
-
/**
|
|
5898
|
-
* Which batch commitment transaction(s) this virtual output depends on.
|
|
5899
|
-
*
|
|
5900
|
-
* @deprecated Use {@link VirtualCoin.commitmentTxIds}.
|
|
5901
|
-
*/
|
|
5902
|
-
commitmentTxIds?: string[];
|
|
5903
|
-
/**
|
|
5904
|
-
* The earliest point at which this virtual output stops being safely preconfirmed,
|
|
5905
|
-
* in milliseconds.
|
|
5906
|
-
*
|
|
5907
|
-
* @deprecated Unit-ambiguous: the server returns a single scalar that is either unix seconds or
|
|
5908
|
-
* a block height, and both land here multiplied by 1000. Use {@link VirtualCoin.expiresAt} and
|
|
5909
|
-
* {@link VirtualCoin.expiresAtHeight}, which disambiguate the two.
|
|
5910
|
-
*/
|
|
5911
|
-
batchExpiry?: number;
|
|
5912
|
-
}
|
|
5913
5732
|
/** Onchain output location data. */
|
|
5914
5733
|
interface Outpoint {
|
|
5915
5734
|
/** Transaction ID where the output was created */
|
|
@@ -5983,12 +5802,6 @@ interface VirtualCoin extends Coin {
|
|
|
5983
5802
|
* deployments). Evaluating it needs a chain tip — see {@link isPastExpiry}.
|
|
5984
5803
|
*/
|
|
5985
5804
|
expiresAtHeight?: number;
|
|
5986
|
-
/**
|
|
5987
|
-
* Virtual output status.
|
|
5988
|
-
*
|
|
5989
|
-
* @deprecated See {@link VirtualStatus}.
|
|
5990
|
-
*/
|
|
5991
|
-
virtualStatus: VirtualStatus;
|
|
5992
5805
|
/** Assets carried by this virtual output, if any. */
|
|
5993
5806
|
assets?: Asset[];
|
|
5994
5807
|
}
|
|
@@ -6083,7 +5896,7 @@ type ExtendedVirtualCoin = TapLeaves & EncodedVtxoScript & VirtualCoin & {
|
|
|
6083
5896
|
* @param dust - dust threshold in satoshis
|
|
6084
5897
|
* @returns `true` when the virtual output value is below `dust`
|
|
6085
5898
|
*
|
|
6086
|
-
* @see
|
|
5899
|
+
* @see canRecoverOnchain
|
|
6087
5900
|
*/
|
|
6088
5901
|
declare function isSubdust(vtxo: {
|
|
6089
5902
|
value: number;
|
|
@@ -6236,16 +6049,6 @@ interface IWallet extends IReadonlyWallet {
|
|
|
6236
6049
|
* than at the push that discovers there is no signer.
|
|
6237
6050
|
*/
|
|
6238
6051
|
identity: Identity;
|
|
6239
|
-
/**
|
|
6240
|
-
* Send bitcoin to a single Arkade address.
|
|
6241
|
-
*
|
|
6242
|
-
* @param params - Destination, amount, fee rate override, etc
|
|
6243
|
-
* @returns Arkade transaction id
|
|
6244
|
-
* @deprecated Use `send`
|
|
6245
|
-
* @see send
|
|
6246
|
-
* @see Recipient
|
|
6247
|
-
*/
|
|
6248
|
-
sendBitcoin(params: SendBitcoinParams): Promise<string>;
|
|
6249
6052
|
/**
|
|
6250
6053
|
* Settle boarding inputs and/or preconfirmed virtual outputs into settled virtual outputs.
|
|
6251
6054
|
*
|
|
@@ -6279,8 +6082,6 @@ interface IWallet extends IReadonlyWallet {
|
|
|
6279
6082
|
assetManager: IAssetManager;
|
|
6280
6083
|
/** @returns Delegation manager, when configured. */
|
|
6281
6084
|
getDelegateManager(): Promise<IDelegateManager | undefined>;
|
|
6282
|
-
/** @deprecated alias for @see IWallet.getDelegateManager */
|
|
6283
|
-
getDelegatorManager(): Promise<IDelegateManager | undefined>;
|
|
6284
6085
|
}
|
|
6285
6086
|
/**
|
|
6286
6087
|
* Readonly wallet interface for Bitcoin transactions with Arkade protocol support.
|
|
@@ -6376,4 +6177,4 @@ interface IReadonlyWallet {
|
|
|
6376
6177
|
clear(): Promise<void>;
|
|
6377
6178
|
}
|
|
6378
6179
|
|
|
6379
|
-
export {
|
|
6180
|
+
export { type TreeNoncesEvent as $, type ArkadeInfo as A, type VtxoRepositoryKey as B, type ContractRepository as C, type WalletState as D, type ExtendedCoin as E, type ContractFilter as F, type GetArkadeInfoOptions as G, type IntentRepository as H, type IWallet as I, type ArkIntent as J, type IntentFilter as K, type VirtualTxRepository as L, type VirtualTx as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, type VtxoBranch as P, ChainedTxType as Q, type Recipient as R, type SettleParams as S, type TxNotificationEvent as T, type Network as U, VtxoScript as V, type WalletRepository as W, CSVMultisigTapscript as X, type BatchStartedEvent as Y, type TreeSigningStartedEvent as Z, TxTree as _, type Identity as a, type TreePartialSigs as a$, type BatchFinalizationEvent as a0, type BatchFinalizedEvent as a1, type BatchFailedEvent as a2, type TreeTxEvent as a3, type TreeSignatureEvent as a4, type DescriptorProvider as a5, type IReadonlyWallet as a6, type ReadonlyIdentity as a7, type OnchainProvider as a8, type DelegateProvider as a9, type ContractWatcherConfig as aA, type Asset as aB, type FeeInfo as aC, type GetVtxosOptions as aD, type PaginationOptions as aE, type CreateContractParams as aF, type GetContractsFilter as aG, type GetSpendablePathsOptions as aH, type GetAllSpendingPathsOptions as aI, type IssuanceParams as aJ, type ReissuanceParams as aK, type BurnParams as aL, type RenewVtxosOptions as aM, type NormalizedVtxoPage as aN, type PathSelection as aO, type ContractEvent as aP, type AssetDetails as aQ, type IssuanceResult as aR, type DelegateInfo as aS, type MigrationGlobalSkipReason as aT, type MigrationLegSkipReason as aU, type SignerStatus as aV, type StorageConfig as aW, type IVtxoManager as aX, type SendBitcoinParams as aY, type ExplorerTransaction as aZ, type TreeNonces as a_, type ReadonlyWalletConfig as aa, type ExitCaptureMode as ab, type ExitDataSource as ac, type IReadonlyAssetManager as ad, type ContractSyncState as ae, type RecipientArkadeAddressContext as af, type NetworkName as ag, ArkAddress as ah, type ContractWithVtxos as ai, selectPendingRecoveryOutpoints as aj, type Coin as ak, ContractManager as al, type ContractManagerConfig as am, type SettlementConfig as an, VtxoManager as ao, type SignerSession as ap, type SignedIntent as aq, Intent as ar, type TimeHeight as as, type DescriptorSigningRequest as at, Transaction as au, type IntentFeeConfig as av, type OffchainInput as aw, FeeAmount as ax, type OnchainInput as ay, type FeeOutput as az, type WalletConfig as b, type NewAddressType as b$, type PendingTx as b0, type EncodedVtxoScript as b1, type Status as b2, type ChainTx as b3, type PathContext as b4, isBatchSignable as b5, isSigningIdentity as b6, classifyContractSigner as b7, classifyAgainstSignerSet as b8, signerSetFromInfo as b9, assertRecipientArkadeAddress as bA, getRandomId as bB, getNetwork as bC, networkFromArkadeInfo as bD, networks as bE, defaultEmulatorPubkey as bF, resolveEmulatorPubkey as bG, BITCOIN_EMULATOR_PUBKEY as bH, MUTINYNET_EMULATOR_PUBKEY as bI, REGTEST_EMULATOR_PUBKEY as bJ, isTerminalIntentState as bK, INTENT_TERMINAL_STATES as bL, createExitChainResolver as bM, isSubdust as bN, getSequence as bO, canRecoverOnchain as bP, canSpendOffchain as bQ, canSweepOnchain as bR, hasTerminalSpend as bS, isPastExpiry as bT, isVirtualCoin as bU, ContractWatcher as bV, isDiscoverable as bW, hasCandidates as bX, type BatchSignableIdentity as bY, type SignRequest as bZ, type BaseWalletConfig as b_, isCooperativelyMigratable as ba, toXOnlySignerHex as bb, DelegateManagerImpl as bc, RestDelegateProvider as bd, ESPLORA_URL as be, EsploraProvider as bf, DigestMismatchError as bg, DEFAULT_VTXO_PAGE_SIZE as bh, scriptFromTapLeafScript as bi, TxType as bj, IndexerTxType as bk, ChainTxType as bl, SettlementEventType as bm, decodeTapscript as bn, MultisigTapscript as bo, ConditionCSVMultisigTapscript as bp, ConditionMultisigTapscript as bq, CLTVMultisigTapscript as br, TapTreeCoder as bs, resolvePrevTxs as bt, attachPrevArkTxs as bu, attachPrevoutTxs as bv, withPrevTxs as bw, PrevTxUnavailableError as bx, assertAllowedSighashTypes as by, isVtxoExpiringSoon as bz, type ArkadeReader as c, getConfiguredEventSource as c$, type WalletMode as c0, type ProviderClass as c1, type TxKey as c2, TapscriptType as c3, type PrevTxSource as c4, type RawTxSource as c5, type WithPrevTx as c6, type IntentCoin as c7, type TapLeaves as c8, type PageResponse as c9, type ContractVtxo as cA, type ContractState as cB, type ContractEventCallback as cC, type ContractBalance as cD, type ContractHandler as cE, type ExtendedContractVtxo as cF, type Discoverable as cG, type DiscoveryDeps as cH, type DiscoveredContract as cI, type CandidateDeps as cJ, type ScanResult as cK, type ScanContractsOptions as cL, type HandlerError as cM, type DelegateOptions as cN, type ArkIntentState as cO, boardingResolver as cP, getAllNormalizedVtxos as cQ, getNormalizedVtxos as cR, collabExitResolver as cS, assetMintResolver as cT, createDefaultActivityRegistry as cU, type ActivityIntent as cV, type GroupMembership as cW, type ActivityResolver as cX, type TxTag as cY, EventSourceUnavailableError as cZ, configureEventSource as c_, type BatchInfo as ca, type CommitmentTx as cb, type TxHistoryRecord as cc, type Vtxo as cd, type VtxoChain as ce, type Tx as cf, type Output as cg, type TxNotification as ch, type SweepTxNotification as ci, type ScheduledSession as cj, type SubscriptionHeartbeat as ck, type SubscriptionEvent as cl, type ArkTapscript as cm, type MigrateDeprecatedSignerOptions as cn, type DeprecatedSignerMigrationReport as co, type DeprecatedSignerReport as cp, type MigrationVtxoRef as cq, type MigrationLegReport as cr, type SignerClassification as cs, type SignerSet as ct, type AssetMetadata as cu, type KnownMetadata as cv, type Nonces as cw, PartialSig as cx, type TxTreeNode as cy, type ExitChainResolver as cz, type ArkadeBroadcaster as d, isEventSourceUnavailableError as d0, resolveEventSource as d1, type EventSourceCapable as d2, type EventSourceFactory as d3, type EventSourceLike as d4, type VtxoType as d5, type TapscriptDeriving as d6, type WalletBalance as e, type GetVtxosFilter as f, type ArkTransaction as g, ActivityRegistry as h, type Activity as i, type IContractManager as j, type GetNewAddressesOptions as k, type NewAddress as l, type IDelegateManager as m, type SettlementEvent as n, type SendParams as o, type IAssetManager as p, RestArkProvider as q, RestIndexerProvider as r, type SubscriptionResponse as s, type ArkProvider as t, type IndexerProvider as u, type RelativeTimelock as v, type TapLeafScript as w, type VirtualCoin as x, type Contract as y, type ExtendedVirtualCoin as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { cE as ContractHandler, v as RelativeTimelock, cG as Discoverable, V as VtxoScript, w as TapLeafScript, d6 as TapscriptDeriving } from './index-Czz9HSqE.js';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-Dv-us16c.js';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -847,4 +847,4 @@ declare function deserializeArkadeContractParams(params: Record<string, string>)
|
|
|
847
847
|
*/
|
|
848
848
|
declare const ArkadeContractHandler: ContractHandler<ArkadeContractParams, ArkadeProgramScript> & TapscriptDeriving<ArkadeProgramScript>;
|
|
849
849
|
|
|
850
|
-
export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, type VHTLCV2ContractParams as E,
|
|
850
|
+
export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, type VHTLCV2ContractParams as E, type BoardingContractParams as F, 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, deserializeArkadeContractParams as l, stringifyArtifact as m, contractHandlers as n, DelegateContractHandler as o, parseArtifact as p, VHTLCContractHandler as q, resolveAsm as r, serializeArkadeContractParams as s, VHTLCV2ContractHandler as t, ArkadeContractHandler as u, validateProgram as v, witnessRefToBytes as w, type DefaultContractParams as x, type DelegateContractParams as y, type VHTLCContractParams as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
1
|
+
import { cE as ContractHandler, v as RelativeTimelock, cG as Discoverable, V as VtxoScript, w as TapLeafScript, d6 as TapscriptDeriving } from './index-Czz9HSqE.cjs';
|
|
2
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-CpQIgTs7.cjs';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -847,4 +847,4 @@ declare function deserializeArkadeContractParams(params: Record<string, string>)
|
|
|
847
847
|
*/
|
|
848
848
|
declare const ArkadeContractHandler: ContractHandler<ArkadeContractParams, ArkadeProgramScript> & TapscriptDeriving<ArkadeProgramScript>;
|
|
849
849
|
|
|
850
|
-
export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, type VHTLCV2ContractParams as E,
|
|
850
|
+
export { type ArkadeParamValue as A, BoardingContractHandler as B, type CompiledProgramFunction as C, DefaultContractHandler as D, type VHTLCV2ContractParams as E, type BoardingContractParams as F, 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, deserializeArkadeContractParams as l, stringifyArtifact as m, contractHandlers as n, DelegateContractHandler as o, parseArtifact as p, VHTLCContractHandler as q, resolveAsm as r, serializeArkadeContractParams as s, VHTLCV2ContractHandler as t, ArkadeContractHandler as u, validateProgram as v, witnessRefToBytes as w, type DefaultContractParams as x, type DelegateContractParams as y, type VHTLCContractParams as z };
|