@arkade-os/sdk 0.5.13 → 0.5.15
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 +55 -1
- package/dist/adapters/expo.cjs +6 -6
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/artifact-DA5YHM2k.d.cts +87 -0
- package/dist/artifact-DacurepK.d.ts +87 -0
- package/dist/{asyncStorageTaskQueue-Dhbe00Ya.d.ts → asyncStorageTaskQueue-B3umqlkb.d.ts} +1 -1
- package/dist/{asyncStorageTaskQueue-Y4BlVm41.d.cts → asyncStorageTaskQueue-Dq6AJHNv.d.cts} +1 -1
- package/dist/{chunk-TYSUFG2K.cjs → chunk-35GRSVCZ.cjs} +11 -11
- package/dist/{chunk-TYSUFG2K.cjs.map → chunk-35GRSVCZ.cjs.map} +1 -1
- package/dist/{chunk-X57WKONW.js → chunk-43APGKWL.js} +130 -22
- package/dist/chunk-43APGKWL.js.map +1 -0
- package/dist/{chunk-6WPP4UGN.cjs → chunk-CMFRCBZW.cjs} +1245 -658
- package/dist/chunk-CMFRCBZW.cjs.map +1 -0
- package/dist/{chunk-HS7TKVOZ.cjs → chunk-FKHUXSYW.cjs} +8 -4
- package/dist/chunk-FKHUXSYW.cjs.map +1 -0
- package/dist/{chunk-BP4NA7HK.js → chunk-HVUZKXB2.js} +4 -4
- package/dist/{chunk-BP4NA7HK.js.map → chunk-HVUZKXB2.js.map} +1 -1
- package/dist/{chunk-6XVTGWQK.cjs → chunk-INQAIZUO.cjs} +17 -17
- package/dist/{chunk-6XVTGWQK.cjs.map → chunk-INQAIZUO.cjs.map} +1 -1
- package/dist/{chunk-WFJPLXOE.cjs → chunk-JSYS2KX3.cjs} +18 -18
- package/dist/{chunk-WFJPLXOE.cjs.map → chunk-JSYS2KX3.cjs.map} +1 -1
- package/dist/{chunk-QSERJPTT.js → chunk-R37I633T.js} +22 -17
- package/dist/chunk-R37I633T.js.map +1 -0
- package/dist/{chunk-ACIQZLWL.cjs → chunk-UNLH3NNG.cjs} +129 -20
- package/dist/chunk-UNLH3NNG.cjs.map +1 -0
- package/dist/{chunk-TD4PKK2I.cjs → chunk-VIQF74QJ.cjs} +38 -33
- package/dist/chunk-VIQF74QJ.cjs.map +1 -0
- package/dist/{chunk-D4QH6L54.js → chunk-XPZ7TMXH.js} +4 -4
- package/dist/{chunk-D4QH6L54.js.map → chunk-XPZ7TMXH.js.map} +1 -1
- package/dist/{chunk-BA36SQY2.js → chunk-YYSHQPCG.js} +3 -3
- package/dist/{chunk-BA36SQY2.js.map → chunk-YYSHQPCG.js.map} +1 -1
- package/dist/{chunk-LHLRG2BE.js → chunk-Z4LG3CZ4.js} +8 -5
- package/dist/chunk-Z4LG3CZ4.js.map +1 -0
- package/dist/{chunk-Y3AWLHQP.js → chunk-ZECZ2MKX.js} +730 -143
- package/dist/chunk-ZECZ2MKX.js.map +1 -0
- package/dist/compiler.cjs +5 -5
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +10 -10
- package/dist/compiler.d.ts +10 -10
- package/dist/compiler.js +5 -5
- package/dist/compiler.js.map +1 -1
- package/dist/contracts/handlers/index.cjs +11 -11
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +3 -3
- package/dist/{index-BQwrHcOh.d.cts → index-Bi22mLsh.d.cts} +212 -43
- package/dist/{index-BapVvuoI.d.ts → index-CiLMmCHX.d.ts} +2 -2
- package/dist/{index-DuXylQrN.d.ts → index-DOdoDqvM.d.ts} +212 -43
- package/dist/{index-BaTItxPx.d.cts → index-DnKugm-h.d.cts} +2 -2
- package/dist/index.cjs +327 -327
- package/dist/index.d.cts +149 -114
- package/dist/index.d.ts +149 -114
- package/dist/index.js +5 -5
- package/dist/{program-DPzf5qsk.d.cts → program-ZWUAWy_9.d.cts} +1 -1
- package/dist/{program-38A2Twvj.d.ts → program-zdDO4cMt.d.ts} +1 -1
- package/dist/repositories/realm/index.cjs +38 -38
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +6 -6
- package/dist/repositories/sqlite/index.cjs +36 -36
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +6 -6
- package/dist/{taskRunner-BxOmg-O6.d.ts → taskRunner-CoE4Xx9K.d.ts} +1 -1
- package/dist/{taskRunner-D2itCXf6.d.cts → taskRunner-DFG0BN_R.d.cts} +1 -1
- package/dist/wallet/expo/background.cjs +15 -15
- 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/index.cjs +19 -16
- package/dist/wallet/expo/index.cjs.map +1 -1
- package/dist/wallet/expo/index.d.cts +3 -2
- package/dist/wallet/expo/index.d.ts +3 -2
- package/dist/wallet/expo/index.js +9 -6
- package/dist/wallet/expo/index.js.map +1 -1
- package/dist/worker/expo/index.cjs +10 -10
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +6 -6
- package/package.json +3 -3
- package/dist/chunk-6WPP4UGN.cjs.map +0 -1
- package/dist/chunk-ACIQZLWL.cjs.map +0 -1
- package/dist/chunk-HS7TKVOZ.cjs.map +0 -1
- package/dist/chunk-LHLRG2BE.js.map +0 -1
- package/dist/chunk-QSERJPTT.js.map +0 -1
- package/dist/chunk-TD4PKK2I.cjs.map +0 -1
- package/dist/chunk-X57WKONW.js.map +0 -1
- package/dist/chunk-Y3AWLHQP.js.map +0 -1
|
@@ -2834,10 +2834,12 @@ interface StoredVtxoReservation {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
/** Single-writer holds; only the owning application can establish when release is safe. */
|
|
2836
2836
|
interface VtxoReservationRepository {
|
|
2837
|
-
readonly version:
|
|
2837
|
+
readonly version: 2;
|
|
2838
2838
|
getReservations(): Promise<StoredVtxoReservation[]>;
|
|
2839
2839
|
saveReservation(reservation: StoredVtxoReservation): Promise<void>;
|
|
2840
2840
|
deleteReservation(id: string): Promise<void>;
|
|
2841
|
+
/** Compare and delete atomically; resolve true only after the matching delete commits. */
|
|
2842
|
+
deleteReservationIfMatches(id: string, expected: readonly Outpoint[]): Promise<boolean>;
|
|
2841
2843
|
}
|
|
2842
2844
|
|
|
2843
2845
|
/**
|
|
@@ -2934,8 +2936,8 @@ declare namespace DelegateVtxo {
|
|
|
2934
2936
|
|
|
2935
2937
|
/** The Executor's keys a delegated contract derives from, compressed hex. */
|
|
2936
2938
|
interface ExecutorContractKeys {
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
+
batchCosignerPubkey: string;
|
|
2940
|
+
operatorPubkey: string;
|
|
2939
2941
|
emulatorPubkey: string;
|
|
2940
2942
|
}
|
|
2941
2943
|
/** The parameters of a delegation under the default templates. */
|
|
@@ -2969,8 +2971,8 @@ interface ExecutorContractParams {
|
|
|
2969
2971
|
maxFee: number;
|
|
2970
2972
|
/** boarding only */
|
|
2971
2973
|
boardingExitDelay?: number;
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
+
batchCosignerPubKey: Uint8Array;
|
|
2975
|
+
operatorPubKey: Uint8Array;
|
|
2974
2976
|
emulatorPubKey: Uint8Array;
|
|
2975
2977
|
}
|
|
2976
2978
|
/**
|
|
@@ -3443,7 +3445,11 @@ declare namespace Batch {
|
|
|
3443
3445
|
function join(eventIterator: AsyncIterableIterator<SettlementEvent>, handler: Handler, options?: JoinOptions): Promise<string>;
|
|
3444
3446
|
}
|
|
3445
3447
|
|
|
3446
|
-
/**
|
|
3448
|
+
/**
|
|
3449
|
+
* Delegate identity and fee information returned by `getDelegateInfo`.
|
|
3450
|
+
*
|
|
3451
|
+
* @deprecated The legacy delegator is retired. Use `ExecutorProvider`.
|
|
3452
|
+
*/
|
|
3447
3453
|
interface DelegateInfo {
|
|
3448
3454
|
/** Delegate public key. */
|
|
3449
3455
|
pubkey: string;
|
|
@@ -3452,7 +3458,11 @@ interface DelegateInfo {
|
|
|
3452
3458
|
/** Address for delegate fee collection. */
|
|
3453
3459
|
delegateAddress: string;
|
|
3454
3460
|
}
|
|
3455
|
-
/**
|
|
3461
|
+
/**
|
|
3462
|
+
* Optional delegate behavior flags.
|
|
3463
|
+
*
|
|
3464
|
+
* @deprecated The legacy delegator is retired. Use `ExecutorProvider`.
|
|
3465
|
+
*/
|
|
3456
3466
|
interface DelegateOptions {
|
|
3457
3467
|
/**
|
|
3458
3468
|
* Tell the delegate not to replace an existing delegation (signed register intent + its
|
|
@@ -3462,7 +3472,11 @@ interface DelegateOptions {
|
|
|
3462
3472
|
*/
|
|
3463
3473
|
rejectReplace?: boolean;
|
|
3464
3474
|
}
|
|
3465
|
-
/**
|
|
3475
|
+
/**
|
|
3476
|
+
* Provider interface for a remote delegation service.
|
|
3477
|
+
*
|
|
3478
|
+
* @deprecated The legacy delegator is retired. Use `ExecutorProvider`.
|
|
3479
|
+
*/
|
|
3466
3480
|
interface DelegateProvider {
|
|
3467
3481
|
/**
|
|
3468
3482
|
* Request delegation for a signed register intent and its forfeit transactions.
|
|
@@ -3475,6 +3489,9 @@ interface DelegateProvider {
|
|
|
3475
3489
|
}
|
|
3476
3490
|
/**
|
|
3477
3491
|
* REST-based delegate provider implementation.
|
|
3492
|
+
*
|
|
3493
|
+
* @deprecated The legacy delegator is retired. Use `RestExecutorProvider`.
|
|
3494
|
+
*
|
|
3478
3495
|
* @example
|
|
3479
3496
|
* ```typescript
|
|
3480
3497
|
* const provider = new RestDelegateProvider('https://delegate.example.com');
|
|
@@ -3503,11 +3520,31 @@ declare class RestDelegateProvider implements DelegateProvider {
|
|
|
3503
3520
|
interface ExecutorInfo extends ExecutorContractKeys {
|
|
3504
3521
|
version: string;
|
|
3505
3522
|
network: string;
|
|
3523
|
+
/** Seals template secrets for this Executor; absent when it has no sealing key. */
|
|
3524
|
+
sealingPubkey?: string;
|
|
3506
3525
|
}
|
|
3507
3526
|
interface ExecutorTemplate {
|
|
3508
3527
|
id: string;
|
|
3509
3528
|
status: string;
|
|
3510
3529
|
}
|
|
3530
|
+
interface ExecutorTemplateParam {
|
|
3531
|
+
name: string;
|
|
3532
|
+
type: string;
|
|
3533
|
+
}
|
|
3534
|
+
/** A template with its document, as `getTemplate` and `registerTemplate` return it. */
|
|
3535
|
+
interface ExecutorTemplateDetails extends ExecutorTemplate {
|
|
3536
|
+
document: string;
|
|
3537
|
+
artifactIds: string[];
|
|
3538
|
+
params: ExecutorTemplateParam[];
|
|
3539
|
+
/** proof, virtual or onchain. */
|
|
3540
|
+
type: string;
|
|
3541
|
+
createdAt?: number;
|
|
3542
|
+
}
|
|
3543
|
+
interface ExecutorArtifact {
|
|
3544
|
+
id: string;
|
|
3545
|
+
document: string;
|
|
3546
|
+
createdAt?: number;
|
|
3547
|
+
}
|
|
3511
3548
|
interface ExecutorDelegationInput {
|
|
3512
3549
|
name: string;
|
|
3513
3550
|
onchain: boolean;
|
|
@@ -3555,6 +3592,23 @@ interface ExecutorProvider {
|
|
|
3555
3592
|
getDelegation(address: string, options?: {
|
|
3556
3593
|
signal?: AbortSignal;
|
|
3557
3594
|
}): Promise<ExecutorDelegationDetails>;
|
|
3595
|
+
/**
|
|
3596
|
+
* `document` is the JSON text, or an object to send as its JSON. Executor v0.0.5 takes uploads
|
|
3597
|
+
* on its admin port; its public port answers 403 unless run with `EXECUTOR_PUBLIC_REGISTRY=true`.
|
|
3598
|
+
*/
|
|
3599
|
+
registerArtifact?(document: string | object, options?: {
|
|
3600
|
+
signal?: AbortSignal;
|
|
3601
|
+
}): Promise<ExecutorArtifact>;
|
|
3602
|
+
getArtifact?(id: string, options?: {
|
|
3603
|
+
signal?: AbortSignal;
|
|
3604
|
+
}): Promise<ExecutorArtifact>;
|
|
3605
|
+
/** Needs the template's artifacts registered first; `document` and 403 as in `registerArtifact`. */
|
|
3606
|
+
registerTemplate?(document: string | object, options?: {
|
|
3607
|
+
signal?: AbortSignal;
|
|
3608
|
+
}): Promise<ExecutorTemplateDetails>;
|
|
3609
|
+
getTemplate?(id: string, options?: {
|
|
3610
|
+
signal?: AbortSignal;
|
|
3611
|
+
}): Promise<ExecutorTemplateDetails>;
|
|
3558
3612
|
}
|
|
3559
3613
|
/** REST provider for the Executor, the service that renews and boards a wallet's coins. */
|
|
3560
3614
|
declare class RestExecutorProvider implements ExecutorProvider {
|
|
@@ -3570,6 +3624,20 @@ declare class RestExecutorProvider implements ExecutorProvider {
|
|
|
3570
3624
|
getDelegation(address: string, options?: {
|
|
3571
3625
|
signal?: AbortSignal;
|
|
3572
3626
|
}): Promise<ExecutorDelegationDetails>;
|
|
3627
|
+
registerArtifact(document: string | object, options?: {
|
|
3628
|
+
signal?: AbortSignal;
|
|
3629
|
+
}): Promise<ExecutorArtifact>;
|
|
3630
|
+
getArtifact(id: string, options?: {
|
|
3631
|
+
signal?: AbortSignal;
|
|
3632
|
+
}): Promise<ExecutorArtifact>;
|
|
3633
|
+
registerTemplate(document: string | object, options?: {
|
|
3634
|
+
signal?: AbortSignal;
|
|
3635
|
+
}): Promise<ExecutorTemplateDetails>;
|
|
3636
|
+
getTemplate(id: string, options?: {
|
|
3637
|
+
signal?: AbortSignal;
|
|
3638
|
+
}): Promise<ExecutorTemplateDetails>;
|
|
3639
|
+
private postJson;
|
|
3640
|
+
private getJson;
|
|
3573
3641
|
}
|
|
3574
3642
|
|
|
3575
3643
|
interface IDelegateManager {
|
|
@@ -3659,8 +3727,19 @@ interface RegistrationOptions {
|
|
|
3659
3727
|
*/
|
|
3660
3728
|
emulatorPubkey?: string;
|
|
3661
3729
|
}
|
|
3662
|
-
/**
|
|
3663
|
-
|
|
3730
|
+
/**
|
|
3731
|
+
* What the manager needs of a wallet: its key, its operator and its contracts. Its hrp and
|
|
3732
|
+
* operator key come from `getOwnAddress()`: `getAddress()` reads the rows a registration is about
|
|
3733
|
+
* to write. A wallet without it answers from `getAddress()`.
|
|
3734
|
+
*/
|
|
3735
|
+
type DelegatedWallet = Pick<IWallet, "identity" | "getAddress" | "getOwnAddress" | "getContractManager" | "getOperatorInfo"> & {
|
|
3736
|
+
/** The displayed receive tapscript, whose key a refresh keeps alive. */
|
|
3737
|
+
readonly offchainTapscript?: {
|
|
3738
|
+
readonly options: {
|
|
3739
|
+
readonly pubKey: Uint8Array;
|
|
3740
|
+
};
|
|
3741
|
+
};
|
|
3742
|
+
};
|
|
3664
3743
|
interface DelegatedContractWatch {
|
|
3665
3744
|
contract: Contract;
|
|
3666
3745
|
owner: string;
|
|
@@ -3681,7 +3760,7 @@ interface DelegatedContractWatch {
|
|
|
3681
3760
|
* live delegation, the others stay local companions of it (watched, never delegated to). Without
|
|
3682
3761
|
* it (a restore) the rows carry no status.
|
|
3683
3762
|
*/
|
|
3684
|
-
declare function watchExecutorContracts(wallet: Pick<
|
|
3763
|
+
declare function watchExecutorContracts(wallet: Pick<DelegatedWallet, "identity" | "getAddress" | "getOwnAddress" | "getContractManager">, keys: ExecutorContractKeys, params: DelegationParams, registered?: ExecutorWatchMetadata, descriptor?: string): Promise<Contract[]>;
|
|
3685
3764
|
/**
|
|
3686
3765
|
* Registers Executor watches. Renewal keeps renewal-contract coins alive while the wallet is
|
|
3687
3766
|
* offline; boarding moves onchain deposits into the corresponding renewal contract.
|
|
@@ -3728,13 +3807,27 @@ interface IExecutorManager {
|
|
|
3728
3807
|
* is thrown, and the error names the keys that failed, so a retry covers the rest.
|
|
3729
3808
|
* `expiresAt` applies to every watch registered.
|
|
3730
3809
|
*
|
|
3731
|
-
*
|
|
3732
|
-
*
|
|
3733
|
-
*
|
|
3734
|
-
*
|
|
3735
|
-
*
|
|
3736
|
-
*
|
|
3737
|
-
*
|
|
3810
|
+
* This is the opt-in to receiving under delegation. While the displayed receive key's renewal
|
|
3811
|
+
* watch is live, `getAddress()` answers that contract, the key's delegated twin, so the
|
|
3812
|
+
* Executor renews what lands there while the wallet is offline: payments, change, `settle()`
|
|
3813
|
+
* outputs, renewals and swap payouts and refunds all follow it. The wallet's own address
|
|
3814
|
+
* answers when there is no live twin. The address changes once, the first time a twin is live:
|
|
3815
|
+
* apps that store the output of `getAddress()` must not keep it. An HD wallet registers one
|
|
3816
|
+
* twin per receive key; an older twin stays live, so a payment to an address the wallet showed
|
|
3817
|
+
* earlier is still renewed. Look-ahead addresses and `getNewAddresses` are not delegated, and
|
|
3818
|
+
* are covered from the wallet's own first renewal of what lands there.
|
|
3819
|
+
*
|
|
3820
|
+
* The Executor sees the amount and time of every receipt at a twin, and with an HD wallet it
|
|
3821
|
+
* can link the addresses of one wallet. It can delay a renewal, not spend.
|
|
3822
|
+
*
|
|
3823
|
+
* A send's change returns to the live renewal contract of its first delegated input, else goes
|
|
3824
|
+
* to `getAddress()`. The wallet's own renewals pay to `getAddress()`, unless the amount is
|
|
3825
|
+
* `maxFee + dust` or less. A renewal spending a coin at a live renewal contract pays to the
|
|
3826
|
+
* wallet's own address instead: the Executor missed that coin, so paying it back repeats the
|
|
3827
|
+
* miss. A renewal of a coin that carries assets is the exception to both: `settle()` places
|
|
3828
|
+
* assets only at `getAddress()`, so it pays that address, whatever the amount and wherever the
|
|
3829
|
+
* coin sat. Under an Executor that keeps failing, a coin alternates: one fallback renewal out,
|
|
3830
|
+
* one ordinary renewal back in.
|
|
3738
3831
|
*/
|
|
3739
3832
|
registerRenewal(params: DelegationOptions, options?: RegistrationOptions): Promise<ExecutorWatchRegistration>;
|
|
3740
3833
|
}
|
|
@@ -3747,6 +3840,8 @@ declare class ExecutorManagerImpl implements IExecutorManager {
|
|
|
3747
3840
|
defaultTemplates(): Promise<Record<ExecutorDefault, string>>;
|
|
3748
3841
|
registerBoarding(options: DelegationOptions, registration?: RegistrationOptions): Promise<ExecutorWatchRegistration>;
|
|
3749
3842
|
registerRenewal(options: DelegationOptions, registration?: RegistrationOptions): Promise<ExecutorWatchRegistration>;
|
|
3843
|
+
/** @internal The renewal watch of `descriptor`'s key alone, under the params of `options`. */
|
|
3844
|
+
registerRenewalAt(descriptor: string, options: DelegationOptions, registration?: RegistrationOptions): Promise<ExecutorWatchRegistration>;
|
|
3750
3845
|
/** @internal {@link registerBoarding} for `descriptor`'s key; the displayed one by default. */
|
|
3751
3846
|
registerBoardingAt(descriptor: string | undefined, options: DelegationOptions, registration?: RegistrationOptions): Promise<ExecutorWatchRegistration>;
|
|
3752
3847
|
/**
|
|
@@ -3757,10 +3852,11 @@ declare class ExecutorManagerImpl implements IExecutorManager {
|
|
|
3757
3852
|
* registration moves the boarding address. One that cannot be revived stops being live, and
|
|
3758
3853
|
* the wallet boards its deposits itself. A failing watch leaves the others to be tried.
|
|
3759
3854
|
*
|
|
3760
|
-
* Only a
|
|
3761
|
-
* registered other key
|
|
3762
|
-
*
|
|
3763
|
-
*
|
|
3855
|
+
* Only a watch the wallet still needs is revived: the displayed boarding and receive keys', the
|
|
3856
|
+
* most recently registered other key's, and a renewal watch whose contract holds an unspent
|
|
3857
|
+
* coin, which the Executor must keep renewing while the wallet is offline. A lapsed watch of
|
|
3858
|
+
* any other key ends instead: it never held a coin, or none is left, and reviving it would
|
|
3859
|
+
* repeat for every rotation, forever.
|
|
3764
3860
|
*
|
|
3765
3861
|
* The status reads run as called; only the writes go through `write`, so a caller that orders
|
|
3766
3862
|
* them with its rotations holds those back for one write, never for the whole refresh.
|
|
@@ -3780,10 +3876,12 @@ declare class ExecutorManagerImpl implements IExecutorManager {
|
|
|
3780
3876
|
private settleLapsed;
|
|
3781
3877
|
/** Record the service's `status`, so the watch stops being live and is no longer shown. */
|
|
3782
3878
|
private endWatch;
|
|
3879
|
+
/** Whether `contract` holds an unspent, unswept coin, as stored. */
|
|
3880
|
+
private holdsCoin;
|
|
3783
3881
|
/**
|
|
3784
|
-
* The displayed key,
|
|
3785
|
-
*
|
|
3786
|
-
*
|
|
3882
|
+
* The displayed boarding key, the displayed receive key, and the most recently registered
|
|
3883
|
+
* other key with a live watch, whose params a rotation copies when the displayed key has no
|
|
3884
|
+
* watch.
|
|
3787
3885
|
*/
|
|
3788
3886
|
private keyInUse;
|
|
3789
3887
|
/**
|
|
@@ -3896,6 +3994,12 @@ interface RotatableWallet {
|
|
|
3896
3994
|
setOffchainTapscriptForRotation(tapscript: DefaultVtxo.Script | DelegateVtxo.Script): void;
|
|
3897
3995
|
getContractManager(): Promise<IContractManager>;
|
|
3898
3996
|
getAddress(): Promise<string>;
|
|
3997
|
+
/**
|
|
3998
|
+
* @internal Register the Executor twin of the receive key at `descriptor`, so it is renewed
|
|
3999
|
+
* from the moment it is shown. Absent without an Executor. Never throws: a failure leaves
|
|
4000
|
+
* the own address displayed.
|
|
4001
|
+
*/
|
|
4002
|
+
registerReceiveTwin?(descriptor: string): Promise<void>;
|
|
3899
4003
|
}
|
|
3900
4004
|
/**
|
|
3901
4005
|
* Owns the wallet's HD receive-rotation lifecycle; exists only when `walletMode` resolves to a
|
|
@@ -4435,17 +4539,38 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
4435
4539
|
prototype: T;
|
|
4436
4540
|
}, config: ReadonlyWalletConfig): Promise<T>;
|
|
4437
4541
|
static create(config: ReadonlyWalletConfig): Promise<ReadonlyWallet>;
|
|
4542
|
+
/**
|
|
4543
|
+
* The wallet's own address, under its own key: what its hrp and operator key are read from.
|
|
4544
|
+
* Not where to receive; that is {@link getAddress}, which answers the delegated twin once the
|
|
4545
|
+
* Executor watches this key.
|
|
4546
|
+
*/
|
|
4438
4547
|
get arkAddress(): ArkAddress;
|
|
4548
|
+
getOwnAddress(): Promise<string>;
|
|
4439
4549
|
/**
|
|
4440
4550
|
* Get the pkScript hex for the wallet's primary offchain address.
|
|
4441
4551
|
* For the full wallet-owned script set registered in ContractManager, use getWalletScripts().
|
|
4442
4552
|
*/
|
|
4443
4553
|
get defaultContractScript(): string;
|
|
4444
4554
|
/**
|
|
4445
|
-
* Returns the
|
|
4446
|
-
*
|
|
4555
|
+
* Returns the Arkade address to receive at: the delegated twin of the current receive key
|
|
4556
|
+
* while its Executor renewal watch is live, so the Executor renews what lands here while the
|
|
4557
|
+
* wallet is offline; the wallet's own address otherwise. See
|
|
4558
|
+
* {@link IExecutorManager.registerRenewal}.
|
|
4559
|
+
*
|
|
4560
|
+
* The answer changes without a receipt when a watch registers or ends, and when the operator
|
|
4561
|
+
* signer rotates: do not store it. Use {@link arkAddress} for the wallet's own address.
|
|
4447
4562
|
*/
|
|
4448
4563
|
getAddress(): Promise<string>;
|
|
4564
|
+
/**
|
|
4565
|
+
* Where receives go under `serverPubKey`: the live Executor renewal watch of the receive key
|
|
4566
|
+
* (the delegated twin), else `own`. With `amount`, a twin the Executor cannot renew it at
|
|
4567
|
+
* (`maxFee + dust` or less) gives way to `own`. Fail-open: a lookup must not fail a receive.
|
|
4568
|
+
*
|
|
4569
|
+
* Callers read `own` and `serverPubKey` before their first await, then pass them here.
|
|
4570
|
+
*/
|
|
4571
|
+
protected destinationTapscript(serverPubKey: Bytes, own?: DefaultVtxo.Script | DelegateVtxo.Script, amount?: bigint): Promise<DefaultVtxo.Script | DelegateVtxo.Script>;
|
|
4572
|
+
/** Whether the Executor can renew `amount` at `watch`: not for `maxFee + dust` or less. */
|
|
4573
|
+
protected renews(watch: DelegatedContractWatch, amount: bigint): boolean;
|
|
4449
4574
|
/**
|
|
4450
4575
|
* Returns the onchain boarding address used to move funds into Arkade: with an Executor
|
|
4451
4576
|
* configured and a boarding watch registered, the delegated boarding address, whose deposits
|
|
@@ -4897,6 +5022,31 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
4897
5022
|
* online.
|
|
4898
5023
|
*/
|
|
4899
5024
|
private extendBoardingWatch;
|
|
5025
|
+
/**
|
|
5026
|
+
* @internal Register the Executor twin of the receive key at `descriptor`, under the params
|
|
5027
|
+
* of {@link delegationSource}: none means the app never opted in, and nothing is done.
|
|
5028
|
+
* Only the displayed key gets one: look-ahead addresses may have been issued to others and
|
|
5029
|
+
* are not delegated. Never throws: on failure the own address is shown until
|
|
5030
|
+
* {@link syncReceiveDelegation} registers the twin.
|
|
5031
|
+
*/
|
|
5032
|
+
registerReceiveTwin(descriptor: string): Promise<void>;
|
|
5033
|
+
/**
|
|
5034
|
+
* The live renewal watch whose params a twin copies: the displayed boarding key's, which
|
|
5035
|
+
* `registerRenewal` registers with the app's params, else the newest.
|
|
5036
|
+
*/
|
|
5037
|
+
private delegationSource;
|
|
5038
|
+
private _receiveSyncFailedAt;
|
|
5039
|
+
/**
|
|
5040
|
+
* @internal The upkeep of receive delegation for an HD wallet that opted in, run from the poll
|
|
5041
|
+
* and at boot, and never throwing:
|
|
5042
|
+
* - the receive key never is the displayed boarding key, as a payment at the twin would
|
|
5043
|
+
* rotate boarding: it rotates boarding first, once, when they coincide;
|
|
5044
|
+
* - the displayed receive key gets its twin when a rotation could not register one, or a new
|
|
5045
|
+
* one when the app registered renewal with other params since.
|
|
5046
|
+
*
|
|
5047
|
+
* A failure is not tried again for a few minutes, as the Executor may be down.
|
|
5048
|
+
*/
|
|
5049
|
+
private syncReceiveDelegation;
|
|
4900
5050
|
/**
|
|
4901
5051
|
* Startup work for an Executor: refresh its watches (every wallet), then, with a descriptor
|
|
4902
5052
|
* provider, rotate-on-board. The Executor boards a deposit into the renewal contract of its
|
|
@@ -5049,6 +5199,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
5049
5199
|
private persistentReservedOutpoints;
|
|
5050
5200
|
private reservationWrites;
|
|
5051
5201
|
private reservationQueue;
|
|
5202
|
+
private requireReservationRepository;
|
|
5052
5203
|
private withReservationWrite;
|
|
5053
5204
|
isVtxoReserved(outpoint: Outpoint): boolean;
|
|
5054
5205
|
/** Restored before automatic spending. Reusing an owner id must name the same inputs. */
|
|
@@ -5093,6 +5244,9 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
5093
5244
|
readonly settlementConfig: SettlementConfig | false;
|
|
5094
5245
|
private _concurrentSpending;
|
|
5095
5246
|
private _submitsAwaitingFinalize;
|
|
5247
|
+
private pendingTxRecoveryDeferred;
|
|
5248
|
+
/** @internal */
|
|
5249
|
+
get hasDeferredPendingTxRecovery(): boolean;
|
|
5096
5250
|
/** @see WalletConfig.concurrentSpending */
|
|
5097
5251
|
get concurrentSpending(): boolean;
|
|
5098
5252
|
/** Public here; `ReadonlyWallet` keeps it protected so a readonly view can't submit. */
|
|
@@ -5102,6 +5256,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
5102
5256
|
* {@link ReadonlyWallet}: a readonly wallet or `toReadonly()` view must not be able to submit.
|
|
5103
5257
|
*/
|
|
5104
5258
|
getArkadeBroadcaster(): Promise<ArkadeBroadcaster>;
|
|
5259
|
+
private assertNoDeferredPendingTxRecovery;
|
|
5105
5260
|
protected constructor(identity: Identity, network: Network, onchainProvider: OnchainProvider, arkProvider: OperatorProvider, indexerProvider: IndexerProvider, arkServerPublicKey: Bytes, offchainTapscript: DefaultVtxo.Script | DelegateVtxo.Script, boardingTapscript: DefaultVtxo.Script, serverUnrollScript: CSVMultisigTapscript.Type, forfeitOutputScript: Bytes, forfeitPubkey: Bytes, dustAmount: bigint, walletRepository: WalletRepository, contractRepository: ContractRepository, delegateProvider?: DelegateProvider, watcherConfig?: WalletConfig["watcherConfig"], settlementConfig?: WalletConfig["settlementConfig"], walletContractTimelocks?: RelativeTimelock[], receiveRotator?: WalletReceiveRotator, descriptorProvider?: DescriptorProvider, keyring?: KeyringDescriptorProvider, lookAheadWindow?: number,
|
|
5106
5261
|
/** Overrides for the `batchExpiry` bounds; defaults derive from `network`. */
|
|
5107
5262
|
batchExpiryPolicy?: Partial<BatchExpiryPolicy> | undefined,
|
|
@@ -5225,6 +5380,11 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
5225
5380
|
finalized: string[];
|
|
5226
5381
|
pending: string[];
|
|
5227
5382
|
}>;
|
|
5383
|
+
/** @internal */
|
|
5384
|
+
deferPendingTxRecovery(): Promise<boolean>;
|
|
5385
|
+
/** @internal */
|
|
5386
|
+
resumeDeferredPendingTxs(isCurrent: () => boolean): Promise<void>;
|
|
5387
|
+
private finalizePendingTxsImpl;
|
|
5228
5388
|
/**
|
|
5229
5389
|
* Operator unroll scripts a pending checkpoint may have been built under: configured, current,
|
|
5230
5390
|
* and one per deprecated signer — else a pre-rotation tx would stay pending forever.
|
|
@@ -5372,24 +5532,21 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
5372
5532
|
private _sendImpl;
|
|
5373
5533
|
/**
|
|
5374
5534
|
* Change follows its inputs: a send spending a coin at a live renewal watch returns the change
|
|
5375
|
-
* to that contract, so the Executor keeps renewing it.
|
|
5376
|
-
* send must not fail over a delegation lookup.
|
|
5535
|
+
* to that contract, so the Executor keeps renewing it. Otherwise it goes where receives go.
|
|
5536
|
+
* Fail-open: a send must not fail over a delegation lookup.
|
|
5377
5537
|
*/
|
|
5378
5538
|
private changeTapscriptFor;
|
|
5379
5539
|
/** The live Executor renewal watches under `signer`, the operator's x-only key. */
|
|
5380
5540
|
private liveRenewalWatches;
|
|
5381
|
-
/**
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
*
|
|
5385
|
-
*
|
|
5386
|
-
*
|
|
5387
|
-
*
|
|
5388
|
-
*
|
|
5389
|
-
* only at
|
|
5390
|
-
* live renewal contract, whatever the reason: the Executor had its chance at that coin, and
|
|
5391
|
-
* paying it back there only repeats the miss. Fail-open: a renewal must not fail over a
|
|
5392
|
-
* delegation lookup.
|
|
5541
|
+
/**
|
|
5542
|
+
* @internal Where the wallet's own renewals pay `amount`: {@link getAddress}, except for
|
|
5543
|
+
* `maxFee + dust` or less, which the Executor cannot renew, and when any of `inputScripts`
|
|
5544
|
+
* sits at a live renewal contract, whatever the reason: the Executor had its chance at that
|
|
5545
|
+
* coin, and paying it back there only repeats the miss. Both pay the wallet's own address.
|
|
5546
|
+
* Fail-open: a renewal must not fail over a delegation lookup.
|
|
5547
|
+
*
|
|
5548
|
+
* {@link VtxoManager} does not ask for a renewal of a coin that carries assets: `settle()`
|
|
5549
|
+
* places assets only at {@link getAddress}, which that renewal pays whatever the rules above say.
|
|
5393
5550
|
*/
|
|
5394
5551
|
renewalAddress(amount: bigint, inputScripts?: readonly string[]): Promise<string>;
|
|
5395
5552
|
/**
|
|
@@ -8004,8 +8161,18 @@ interface IWallet extends IReadonlyWallet {
|
|
|
8004
8161
|
interface IReadonlyWallet {
|
|
8005
8162
|
/** Readonly identity associated with the wallet. */
|
|
8006
8163
|
identity: ReadonlyIdentity;
|
|
8007
|
-
/**
|
|
8164
|
+
/**
|
|
8165
|
+
* @returns Arkade address to receive offchain funds at. It can change without a receipt,
|
|
8166
|
+
* for instance once an Executor watches the wallet's key: do not store it. See
|
|
8167
|
+
* {@link getOwnAddress}.
|
|
8168
|
+
*/
|
|
8008
8169
|
getAddress(): Promise<string>;
|
|
8170
|
+
/**
|
|
8171
|
+
* @returns The wallet's own Arkade address under its current receive key, which
|
|
8172
|
+
* {@link getAddress} answers until an Executor watches that key. For an address bound to the
|
|
8173
|
+
* wallet, such as an LNURL handle's. It rotates with an HD wallet's receive key.
|
|
8174
|
+
*/
|
|
8175
|
+
getOwnAddress?(): Promise<string>;
|
|
8009
8176
|
/** @returns Onchain boarding address used to move funds into Arkade. */
|
|
8010
8177
|
getBoardingAddress(): Promise<string>;
|
|
8011
8178
|
/**
|
|
@@ -8071,6 +8238,8 @@ interface IReadonlyWallet {
|
|
|
8071
8238
|
assetManager: IReadonlyAssetManager;
|
|
8072
8239
|
/** Wipe all locally persisted wallet data (VTXOs, UTXOs, history, sync cursor, contracts). */
|
|
8073
8240
|
clear(): Promise<void>;
|
|
8241
|
+
/** Release wallet-owned background resources without wiping persisted data. */
|
|
8242
|
+
dispose?(): Promise<void>;
|
|
8074
8243
|
}
|
|
8075
8244
|
|
|
8076
8245
|
interface TransactionHistoryPageFilter {
|
|
@@ -8388,4 +8557,4 @@ declare function isBatchSignable(identity: Identity): identity is BatchSignableI
|
|
|
8388
8557
|
*/
|
|
8389
8558
|
declare function isSigningIdentity(value: unknown): value is Identity;
|
|
8390
8559
|
|
|
8391
|
-
export { type WalletState as $, type AddressAllocationCapable as A, type OperatorProvider as B, type ContractRepository as C, type Contract as D, type ExtendedCoin as E, type ExtendedVirtualCoin as F, type GetOperatorInfoOptions as G, type HDWalletCapable as H, type IWallet as I, type PageRequest as J, type Outpoint as K, type PageResult as L, type ScriptVtxoCursor as M, type NormalizedExtendedVirtualCoin as N, type OperatorInfo as O, type ProviderConnectionState as P, type ScriptVtxoPageOptions as Q, type Recipient as R, type SettleParams as S, type TxNotificationEvent as T, type StoredVtxo as U, type VirtualCoin as V, type WalletRepository as W, type VtxoRepositoryKey as X, type TransactionHistoryPageFilter as Y, type TransactionHistoryPageCursor as Z, type AtomicWalletState as _, type HDAllocationCapable as a, type Network as a$, type ContractFilter as a0, type BatchRegistrationRepository as a1, type BatchRegistration as a2, type BatchRegistrationPageFilter as a3, type VirtualTxRepository as a4, type VirtualTx as a5, type VtxoBranch as a6, ChainedTxType as a7, type DescriptorProvider as a8, Transaction as a9, type NormalizedVtxoPage as aA, type ContractSyncState as aB, type ContractWithVtxos as aC, type WatchedScript as aD, type PathSelection as aE, type ContractEvent as aF, type AssetDetails as aG, type IssuanceResult as aH, type DelegateInfo as aI, type MigrationGlobalSkipReason as aJ, type MigrationLegSkipReason as aK, type SignerStatus as aL, type NetworkName as aM, ReadonlyWallet as aN, type SettlementConfig as aO, type ContractWatcherConfig as aP, type Asset as aQ, type FeeInfo as aR, type ReceiveRotatorFactory as aS, type ReceiveRotatorBootOpts as aT, type ReceiveRotatorBoot as aU, type IReadonlyWallet as aV, type IReadonlyAssetManager as aW, type StorageConfig as aX, type VtxoReservation as aY, type IExecutorManager as aZ, type IVtxoManager as a_, type SignerSession as aa, type ReadonlyIdentity as ab, type DescriptorSigningRequest as ac, type IntentFeeConfig as ad, type OffchainInput as ae, FeeAmount as af, type OnchainInput as ag, type FeeOutput as ah, type VtxoReservationRepository as ai, type StoredVtxoReservation as aj, type ArkadeCashTx as ak, type ArkadeInfo as al, type OnchainProvider as am, type ArkadeCashRecord as an, type ArkadeCashClaimResult as ao, type GetVtxosOptions as ap, type PaginationOptions as aq, type CreateContractParams as ar, type GetContractsFilter as as, type GetSpendablePathsOptions as at, type GetAllSpendingPathsOptions as au, type InputExpiryFloor as av, type IssuanceParams as aw, type ReissuanceParams as ax, type BurnParams as ay, type RenewVtxosOptions as az, type Identity as b, DEFAULT_VTXO_PAGE_SIZE as b$, type Coin as b0, type SendBitcoinParams as b1, type ExplorerTransaction as b2, type SignedProof as b3, Proof as b4, type TreeNonces as b5, type TreePartialSigs as b6, type PendingTx as b7, type EmulatorProvider as b8, type Status as b9, BITCOIN_EMULATOR_PUBKEY as bA, type BaseWalletConfig as bB, type BatchFailedEvent as bC, type BatchFinalizationEvent as bD, type BatchFinalizedEvent as bE, type BatchInfo as bF, type BatchRegistrationFilter as bG, type BatchRegistrationState as bH, type BatchSignableIdentity as bI, type BatchStartedEvent as bJ, type BoardingUtxoGroup as bK, type CandidateDeps as bL, ChainTxType as bM, type CommitmentTx as bN, type ConnectorTreeNode as bO, type ContractBalance as bP, type ContractEventCallback as bQ, type ContractHandler as bR, ContractManager as bS, type ContractManagerConfig as bT, type ContractScope as bU, type ContractState as bV, type ContractVtxo as bW, ContractWatcher as bX, type ContractWatcherEventCallback as bY, DEFAULT_ARKADE_EMULATOR_URL as bZ, DEFAULT_MIN_BATCH_EXPIRY_SECONDS as b_, type BatchExpiryPolicy as ba, Batch as bb, type ChainTx as bc, TxTree as bd, type ArkadeService as be, type ContractVtxoEvent as bf, type ExtendedContractVtxo as bg, type ResolvedArkadeService as bh, resolveArkadeService as bi, type PathContext as bj, AbortError as bk, type ActivityIntent as bl, type ActivityResolver as bm, ArkError as bn, ArkErrorName as bo, type ArkIntent as bp, type ArkIntentState as bq, ArkadeCash as br, type ArkadeCashAction as bs, ArkadeCashCreateError as bt, ArkadeCashOperatorMismatchError as bu, type ArkadeCashUnclaimedReason as bv, type ArkadeCashUnclaimedVtxo as bw, type ArkadeCashVtxoRef as bx, type AssetMetadata as by, BATCH_REGISTRATION_TERMINAL_STATES as bz, Wallet as c, MUTINYNET_EMULATOR_PUBKEY as c$, DELEGATION_EXPIRES_KEY as c0, DELEGATION_LOCAL_STATUS as c1, DELEGATION_REGISTERED_KEY as c2, DELEGATION_STATUS_KEY as c3, DefaultVtxo as c4, DelegateManagerImpl as c5, type DelegateOptions as c6, type DelegateProvider as c7, DelegateVtxo as c8, type DelegatedOutput as c9, type ExecutorTemplate as cA, type ExecutorWatchMetadata as cB, type ExecutorWatchRegistration as cC, type ExitCaptureMode as cD, type ExitChainResolver as cE, type ExitDataSource as cF, ForeignDescriptorError as cG, type GetArkadeInfoOptions as cH, type GetUtxosOptions as cI, type GroupMembership as cJ, type HandlerError as cK, HttpResponseError as cL, INTENT_TERMINAL_STATES as cM, type IncomingFunds as cN, IndexedDBWalletRepository as cO, IndexerTxType as cP, type IndexerUtxo as cQ, IndexerUtxosUnsupportedError as cR, Intent as cS, type IntentCoin as cT, type IntentFilter as cU, type IntentPageFilter as cV, type IntentRepository as cW, KeyringDescriptorProvider as cX, type KnownMetadata as cY, MAX_PAGE_SIZE as cZ, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD as c_, type DelegatedWallet as ca, type DelegationOptions as cb, type DelegationParams as cc, type DeprecatedSignerMigrationReport as cd, type DeprecatedSignerReport as ce, DigestMismatchError as cf, type Discoverable as cg, type DiscoveredContract as ch, type DiscoveryDeps as ci, ESPLORA_URL as cj, type EmulatorInfo as ck, EsploraProvider as cl, type EventSourceCapable as cm, type EventSourceFactory as cn, type EventSourceLike as co, EventSourceUnavailableError as cp, ExecutorContractHandler as cq, type ExecutorContractKeys as cr, type ExecutorContractParams as cs, type ExecutorDefault as ct, type ExecutorDelegation as cu, type ExecutorDelegationDetails as cv, type ExecutorInfo as cw, ExecutorManagerImpl as cx, type ExecutorProvider as cy, ExecutorRequestError as cz, type WalletConfig as d, VtxoReservedError as d$, type MigrateDeprecatedSignerOptions as d0, type MigrationLegReport as d1, type MigrationVtxoRef as d2, type NewAddressType as d3, type Nonces as d4, type NotifiesIncomingFunds as d5, OnchainCosignAmbiguousError as d6, OnchainCosignRejectedError as d7, OnchainCosignUnsupportedError as d8, type Output as d9, ServerResponseMismatchError as dA, SettlementEventType as dB, type SignRequest as dC, type SignedIntent as dD, type SignerClassification as dE, type SignerSet as dF, SingleKey as dG, type SubscriptionFilter as dH, type SubscriptionResponse as dI, type SweepTxNotification as dJ, type TapLeaves as dK, type TimeHeight as dL, type TreeNoncesEvent as dM, type TreeSignatureEvent as dN, TreeSignerSession as dO, type TreeSigningStartedEvent as dP, type TreeTxEvent as dQ, type Tx as dR, type TxHistoryRecord as dS, type TxKey as dT, type TxNotification as dU, type TxTag as dV, type TxTreeNode as dW, TxType as dX, type Vtxo as dY, type VtxoChain as dZ, VtxoManager as d_, type PageResponse as da, PartialSig as db, type PrevTxSource as dc, PrevTxUnavailableError as dd, type ProofInput as de, type ProviderClass as df, type ProviderKind as dg, ProviderUnavailableError as dh, REGTEST_EMULATOR_PUBKEY as di, REGTEST_MIN_BATCH_EXPIRY_SECONDS as dj, type RawTxSource as dk, ReadonlySingleKey as dl, type ReadonlyWalletConfig as dm, type RecipientArkadeAddressContext as dn, type RegistrationOptions as dp, type RenewalSplit as dq, type RenewalSplitContext as dr, RestArkProvider as ds, RestDelegateProvider as dt, RestEmulatorProvider as du, RestExecutorProvider as dv, type ScanContractsOptions as dw, type ScanResult as dx, type ScheduledSession as dy, type ServerInfoSource as dz, type ArkadeReader as e, networkFromOperatorInfo as e$, type VtxoType as e0, type WaitForIncomingFundsOptions as e1, WalletCannotAllocateAddressError as e2, type WalletMode as e3, type WithPrevTx as e4, addArkadeCashRecord as e5, arkadeCashId as e6, arkadeCashResolver as e7, assertAllowedSighashTypes as e8, assertPageRequest as e9, getAllNormalizedVtxos as eA, getConfiguredEventSource as eB, getNetwork as eC, getNormalizedVtxos as eD, getRandomId as eE, hasCandidates as eF, isAddressAllocationCapable as eG, isArkError as eH, isBatchSignable as eI, isContractVtxoEvent as eJ, isCooperativelyMigratable as eK, isDiscoverable as eL, isEventSourceUnavailableError as eM, isHDAllocationCapable as eN, isHDWalletCapable as eO, isPastExpiry as eP, isSigningIdentity as eQ, isSubdust as eR, isTerminalBatchRegistrationState as eS, isTerminalIntentState as eT, isVirtualCoin as eU, isVtxoExpiringSoon as eV, isVtxoSpent as eW, iteratePages as eX, maybeArkError as eY, mergeArkadeCashRecord as eZ, networkFromArkadeInfo as e_, assertRecipientArkadeAddress as ea, assertValidBatchExpiry as eb, assetMintResolver as ec, attachPrevArkTxs as ed, attachPrevoutTxs as ee, boardingResolver as ef, canRecoverOnchain as eg, canSpendOffchain as eh, canSweepOnchain as ei, classifyAgainstSignerSet as ej, classifyContractSigner as ek, collabExitResolver as el, collectBatchRegistrations as em, collectContracts as en, collectIntents as eo, collectPages as ep, collectScriptVtxos as eq, collectTransactionHistory as er, collectUtxos as es, collectVtxos as et, configureEventSource as eu, createArkadeCashTracker as ev, createDefaultActivityRegistry as ew, createExitChainResolver as ex, defaultBatchExpiryPolicy as ey, defaultEmulatorPubkey as ez, type ArkadeBroadcaster as f, networks as f0, pageResult as f1, resolveBatchExpiryPolicy as f2, resolveDescriptorSigner as f3, resolveEmulatorPubkey as f4, resolveEventSource as f5, resolvePrevTxs as f6, selectVirtualCoins as f7, signerSetFromInfo as f8, signingDescriptorIndex as f9, strictSigningDescriptorIndex as fa, toOffchainInputFeeParams as fb, toXOnlySignerHex as fc, waitForIncomingFunds as fd, watchExecutorContracts as fe, withPrevTxs as ff, type TapscriptDeriving as fg, type WalletBalance as g, type GetVtxosFilter as h, type GetSpendableVtxosFilter as i, type ArkTransaction as j, ActivityRegistry as k, type Activity as l, type IContractManager as m, type GetNewAddressesOptions as n, type NewAddress as o, type IDelegateManager as p, type SettlementEvent as q, type SendParams as r, type SendOnchainParams as s, type IAssetManager as t, RestOperatorProvider as u, RestIndexerProvider as v, type SubscriptionEvent as w, type SubscriptionHeartbeat as x, type ArkProvider as y, type IndexerProvider as z };
|
|
8560
|
+
export { type WalletState as $, type AddressAllocationCapable as A, type OperatorProvider as B, type ContractRepository as C, type Contract as D, type ExtendedCoin as E, type ExtendedVirtualCoin as F, type GetOperatorInfoOptions as G, type HDWalletCapable as H, type IWallet as I, type PageRequest as J, type Outpoint as K, type PageResult as L, type ScriptVtxoCursor as M, type NormalizedExtendedVirtualCoin as N, type OperatorInfo as O, type ProviderConnectionState as P, type ScriptVtxoPageOptions as Q, type Recipient as R, type SettleParams as S, type TxNotificationEvent as T, type StoredVtxo as U, type VirtualCoin as V, type WalletRepository as W, type VtxoRepositoryKey as X, type TransactionHistoryPageFilter as Y, type TransactionHistoryPageCursor as Z, type AtomicWalletState as _, type HDAllocationCapable as a, type Network as a$, type ContractFilter as a0, type BatchRegistrationRepository as a1, type BatchRegistration as a2, type BatchRegistrationPageFilter as a3, type VirtualTxRepository as a4, type VirtualTx as a5, type VtxoBranch as a6, ChainedTxType as a7, type DescriptorProvider as a8, Transaction as a9, type NormalizedVtxoPage as aA, type ContractSyncState as aB, type ContractWithVtxos as aC, type WatchedScript as aD, type PathSelection as aE, type ContractEvent as aF, type AssetDetails as aG, type IssuanceResult as aH, type DelegateInfo as aI, type MigrationGlobalSkipReason as aJ, type MigrationLegSkipReason as aK, type SignerStatus as aL, type NetworkName as aM, ReadonlyWallet as aN, type SettlementConfig as aO, type ContractWatcherConfig as aP, type Asset as aQ, type FeeInfo as aR, type ReceiveRotatorFactory as aS, type ReceiveRotatorBootOpts as aT, type ReceiveRotatorBoot as aU, type IReadonlyWallet as aV, type IReadonlyAssetManager as aW, type StorageConfig as aX, type VtxoReservation as aY, type IExecutorManager as aZ, type IVtxoManager as a_, type SignerSession as aa, type ReadonlyIdentity as ab, type DescriptorSigningRequest as ac, type IntentFeeConfig as ad, type OffchainInput as ae, FeeAmount as af, type OnchainInput as ag, type FeeOutput as ah, type VtxoReservationRepository as ai, type StoredVtxoReservation as aj, type ArkadeCashTx as ak, type ArkadeInfo as al, type OnchainProvider as am, type ArkadeCashRecord as an, type ArkadeCashClaimResult as ao, type GetVtxosOptions as ap, type PaginationOptions as aq, type CreateContractParams as ar, type GetContractsFilter as as, type GetSpendablePathsOptions as at, type GetAllSpendingPathsOptions as au, type InputExpiryFloor as av, type IssuanceParams as aw, type ReissuanceParams as ax, type BurnParams as ay, type RenewVtxosOptions as az, type Identity as b, DEFAULT_VTXO_PAGE_SIZE as b$, type Coin as b0, type SendBitcoinParams as b1, type ExplorerTransaction as b2, type SignedProof as b3, Proof as b4, type TreeNonces as b5, type TreePartialSigs as b6, type PendingTx as b7, type EmulatorProvider as b8, type Status as b9, BITCOIN_EMULATOR_PUBKEY as bA, type BaseWalletConfig as bB, type BatchFailedEvent as bC, type BatchFinalizationEvent as bD, type BatchFinalizedEvent as bE, type BatchInfo as bF, type BatchRegistrationFilter as bG, type BatchRegistrationState as bH, type BatchSignableIdentity as bI, type BatchStartedEvent as bJ, type BoardingUtxoGroup as bK, type CandidateDeps as bL, ChainTxType as bM, type CommitmentTx as bN, type ConnectorTreeNode as bO, type ContractBalance as bP, type ContractEventCallback as bQ, type ContractHandler as bR, ContractManager as bS, type ContractManagerConfig as bT, type ContractScope as bU, type ContractState as bV, type ContractVtxo as bW, ContractWatcher as bX, type ContractWatcherEventCallback as bY, DEFAULT_ARKADE_EMULATOR_URL as bZ, DEFAULT_MIN_BATCH_EXPIRY_SECONDS as b_, type BatchExpiryPolicy as ba, Batch as bb, type ChainTx as bc, TxTree as bd, type ArkadeService as be, type ContractVtxoEvent as bf, type ExtendedContractVtxo as bg, type ResolvedArkadeService as bh, resolveArkadeService as bi, type PathContext as bj, AbortError as bk, type ActivityIntent as bl, type ActivityResolver as bm, ArkError as bn, ArkErrorName as bo, type ArkIntent as bp, type ArkIntentState as bq, ArkadeCash as br, type ArkadeCashAction as bs, ArkadeCashCreateError as bt, ArkadeCashOperatorMismatchError as bu, type ArkadeCashUnclaimedReason as bv, type ArkadeCashUnclaimedVtxo as bw, type ArkadeCashVtxoRef as bx, type AssetMetadata as by, BATCH_REGISTRATION_TERMINAL_STATES as bz, Wallet as c, type KnownMetadata as c$, DELEGATION_EXPIRES_KEY as c0, DELEGATION_LOCAL_STATUS as c1, DELEGATION_REGISTERED_KEY as c2, DELEGATION_STATUS_KEY as c3, DefaultVtxo as c4, DelegateManagerImpl as c5, type DelegateOptions as c6, type DelegateProvider as c7, DelegateVtxo as c8, type DelegatedOutput as c9, ExecutorRequestError as cA, type ExecutorTemplate as cB, type ExecutorTemplateDetails as cC, type ExecutorTemplateParam as cD, type ExecutorWatchMetadata as cE, type ExecutorWatchRegistration as cF, type ExitCaptureMode as cG, type ExitChainResolver as cH, type ExitDataSource as cI, ForeignDescriptorError as cJ, type GetArkadeInfoOptions as cK, type GetUtxosOptions as cL, type GroupMembership as cM, type HandlerError as cN, HttpResponseError as cO, INTENT_TERMINAL_STATES as cP, type IncomingFunds as cQ, IndexedDBWalletRepository as cR, IndexerTxType as cS, type IndexerUtxo as cT, IndexerUtxosUnsupportedError as cU, Intent as cV, type IntentCoin as cW, type IntentFilter as cX, type IntentPageFilter as cY, type IntentRepository as cZ, KeyringDescriptorProvider as c_, type DelegatedWallet as ca, type DelegationOptions as cb, type DelegationParams as cc, type DeprecatedSignerMigrationReport as cd, type DeprecatedSignerReport as ce, DigestMismatchError as cf, type Discoverable as cg, type DiscoveredContract as ch, type DiscoveryDeps as ci, ESPLORA_URL as cj, type EmulatorInfo as ck, EsploraProvider as cl, type EventSourceCapable as cm, type EventSourceFactory as cn, type EventSourceLike as co, EventSourceUnavailableError as cp, type ExecutorArtifact as cq, ExecutorContractHandler as cr, type ExecutorContractKeys as cs, type ExecutorContractParams as ct, type ExecutorDefault as cu, type ExecutorDelegation as cv, type ExecutorDelegationDetails as cw, type ExecutorInfo as cx, ExecutorManagerImpl as cy, type ExecutorProvider as cz, type WalletConfig as d, type Vtxo as d$, MAX_PAGE_SIZE as d0, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD as d1, MUTINYNET_EMULATOR_PUBKEY as d2, type MigrateDeprecatedSignerOptions as d3, type MigrationLegReport as d4, type MigrationVtxoRef as d5, type NewAddressType as d6, type Nonces as d7, type NotifiesIncomingFunds as d8, OnchainCosignAmbiguousError as d9, type ScanResult as dA, type ScheduledSession as dB, type ServerInfoSource as dC, ServerResponseMismatchError as dD, SettlementEventType as dE, type SignRequest as dF, type SignedIntent as dG, type SignerClassification as dH, type SignerSet as dI, SingleKey as dJ, type SubscriptionFilter as dK, type SubscriptionResponse as dL, type SweepTxNotification as dM, type TapLeaves as dN, type TimeHeight as dO, type TreeNoncesEvent as dP, type TreeSignatureEvent as dQ, TreeSignerSession as dR, type TreeSigningStartedEvent as dS, type TreeTxEvent as dT, type Tx as dU, type TxHistoryRecord as dV, type TxKey as dW, type TxNotification as dX, type TxTag as dY, type TxTreeNode as dZ, TxType as d_, OnchainCosignRejectedError as da, OnchainCosignUnsupportedError as db, type Output as dc, type PageResponse as dd, PartialSig as de, type PrevTxSource as df, PrevTxUnavailableError as dg, type ProofInput as dh, type ProviderClass as di, type ProviderKind as dj, ProviderUnavailableError as dk, REGTEST_EMULATOR_PUBKEY as dl, REGTEST_MIN_BATCH_EXPIRY_SECONDS as dm, type RawTxSource as dn, ReadonlySingleKey as dp, type ReadonlyWalletConfig as dq, type RecipientArkadeAddressContext as dr, type RegistrationOptions as ds, type RenewalSplit as dt, type RenewalSplitContext as du, RestArkProvider as dv, RestDelegateProvider as dw, RestEmulatorProvider as dx, RestExecutorProvider as dy, type ScanContractsOptions as dz, type ArkadeReader as e, maybeArkError as e$, type VtxoChain as e0, VtxoManager as e1, VtxoReservedError as e2, type VtxoType as e3, type WaitForIncomingFundsOptions as e4, WalletCannotAllocateAddressError as e5, type WalletMode as e6, type WithPrevTx as e7, addArkadeCashRecord as e8, arkadeCashId as e9, createExitChainResolver as eA, defaultBatchExpiryPolicy as eB, defaultEmulatorPubkey as eC, getAllNormalizedVtxos as eD, getConfiguredEventSource as eE, getNetwork as eF, getNormalizedVtxos as eG, getRandomId as eH, hasCandidates as eI, isAddressAllocationCapable as eJ, isArkError as eK, isBatchSignable as eL, isContractVtxoEvent as eM, isCooperativelyMigratable as eN, isDiscoverable as eO, isEventSourceUnavailableError as eP, isHDAllocationCapable as eQ, isHDWalletCapable as eR, isPastExpiry as eS, isSigningIdentity as eT, isSubdust as eU, isTerminalBatchRegistrationState as eV, isTerminalIntentState as eW, isVirtualCoin as eX, isVtxoExpiringSoon as eY, isVtxoSpent as eZ, iteratePages as e_, arkadeCashResolver as ea, assertAllowedSighashTypes as eb, assertPageRequest as ec, assertRecipientArkadeAddress as ed, assertValidBatchExpiry as ee, assetMintResolver as ef, attachPrevArkTxs as eg, attachPrevoutTxs as eh, boardingResolver as ei, canRecoverOnchain as ej, canSpendOffchain as ek, canSweepOnchain as el, classifyAgainstSignerSet as em, classifyContractSigner as en, collabExitResolver as eo, collectBatchRegistrations as ep, collectContracts as eq, collectIntents as er, collectPages as es, collectScriptVtxos as et, collectTransactionHistory as eu, collectUtxos as ev, collectVtxos as ew, configureEventSource as ex, createArkadeCashTracker as ey, createDefaultActivityRegistry as ez, type ArkadeBroadcaster as f, mergeArkadeCashRecord as f0, networkFromArkadeInfo as f1, networkFromOperatorInfo as f2, networks as f3, pageResult as f4, resolveBatchExpiryPolicy as f5, resolveDescriptorSigner as f6, resolveEmulatorPubkey as f7, resolveEventSource as f8, resolvePrevTxs as f9, selectVirtualCoins as fa, signerSetFromInfo as fb, signingDescriptorIndex as fc, strictSigningDescriptorIndex as fd, toOffchainInputFeeParams as fe, toXOnlySignerHex as ff, waitForIncomingFunds as fg, watchExecutorContracts as fh, withPrevTxs as fi, type TapscriptDeriving as fj, type WalletBalance as g, type GetVtxosFilter as h, type GetSpendableVtxosFilter as i, type ArkTransaction as j, ActivityRegistry as k, type Activity as l, type IContractManager as m, type GetNewAddressesOptions as n, type NewAddress as o, type IDelegateManager as p, type SettlementEvent as q, type SendParams as r, type SendOnchainParams as s, type IAssetManager as t, RestOperatorProvider as u, RestIndexerProvider as v, type SubscriptionEvent as w, type SubscriptionHeartbeat as x, type ArkProvider as y, type IndexerProvider as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { bR as ContractHandler, c4 as DefaultVtxo, cg as Discoverable, c8 as DelegateVtxo,
|
|
1
|
+
import { bR as ContractHandler, c4 as DefaultVtxo, cg as Discoverable, c8 as DelegateVtxo, fj as TapscriptDeriving } from './index-Bi22mLsh.cjs';
|
|
2
2
|
import { R as RelativeTimelock, V as VtxoScript, T as TapLeafScript } from './base-C-Y5t_0F.cjs';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
|
-
import { g as ArkadeContractParams, a as ArkadeProgramScript } from './program-
|
|
4
|
+
import { g as ArkadeContractParams, a as ArkadeProgramScript } from './program-ZWUAWy_9.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Registry for contract handlers.
|