@arkade-os/sdk 0.5.0-rc.3 → 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-DAs_n1xr.d.ts → asyncStorageTaskQueue-BCiOgs5x.d.ts} +1 -1
- package/dist/{asyncStorageTaskQueue-DqGRG66E.d.cts → asyncStorageTaskQueue-CTIwKrt5.d.cts} +1 -1
- package/dist/{chunk-7W6FHWYN.js → chunk-4EZOMPAO.js} +14 -38
- package/dist/chunk-4EZOMPAO.js.map +1 -0
- package/dist/{chunk-BCT7DT2J.cjs → chunk-5NLJUXXQ.cjs} +10 -10
- package/dist/{chunk-BCT7DT2J.cjs.map → chunk-5NLJUXXQ.cjs.map} +1 -1
- package/dist/{chunk-UJTYUYY4.cjs → chunk-C5Y2R63Z.cjs} +25 -71
- package/dist/chunk-C5Y2R63Z.cjs.map +1 -0
- package/dist/{chunk-ROD5H7RX.js → chunk-CIBGIZUW.js} +4 -4
- package/dist/{chunk-ROD5H7RX.js.map → chunk-CIBGIZUW.js.map} +1 -1
- package/dist/{chunk-UCSTNXB4.cjs → chunk-F7HJO5GT.cjs} +61 -85
- package/dist/chunk-F7HJO5GT.cjs.map +1 -0
- package/dist/{chunk-HSG2GQTM.js → chunk-GLZNJFAT.js} +24 -66
- package/dist/chunk-GLZNJFAT.js.map +1 -0
- package/dist/{chunk-43XGA362.cjs → chunk-GPJSGLWM.cjs} +17 -17
- package/dist/{chunk-43XGA362.cjs.map → chunk-GPJSGLWM.cjs.map} +1 -1
- package/dist/{chunk-G4UPMCKW.js → chunk-MOWSLXGO.js} +4 -4
- package/dist/{chunk-G4UPMCKW.js.map → chunk-MOWSLXGO.js.map} +1 -1
- package/dist/{chunk-VQCDDGRW.js → chunk-PYTAH2NY.js} +167 -703
- package/dist/chunk-PYTAH2NY.js.map +1 -0
- package/dist/{chunk-L4HZK4KK.cjs → chunk-SYRQJS5N.cjs} +18 -19
- package/dist/chunk-SYRQJS5N.cjs.map +1 -0
- package/dist/{chunk-ERUAQGYF.js → chunk-XHASFSDU.js} +3 -4
- package/dist/chunk-XHASFSDU.js.map +1 -0
- package/dist/{chunk-FSF2PGTR.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-CZzIduW4.d.cts → delegate-CpQIgTs7.d.cts} +1 -1
- package/dist/{delegate-B9Bmrns7.d.ts → delegate-Dv-us16c.d.ts} +1 -1
- package/dist/{hdWalletCapable-Cr5nGpK5.d.ts → hdWalletCapable-BC4Fmmht.d.ts} +6 -24
- package/dist/{hdWalletCapable-BIl3yLVM.d.cts → hdWalletCapable-DotEa5rZ.d.cts} +6 -24
- package/dist/{index-DnNIOqHS.d.cts → index-Czz9HSqE.d.cts} +21 -220
- package/dist/{index-DnNIOqHS.d.ts → index-Czz9HSqE.d.ts} +21 -220
- package/dist/{index-DQ1Hb2w_.d.ts → index-DUkvXxpt.d.ts} +2 -2
- package/dist/{index-Ci5MmNnK.d.cts → index-DdJt5fRc.d.cts} +2 -2
- 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-BDb5Ee2J.d.cts → taskRunner-7E_Rx8bD.d.cts} +1 -1
- package/dist/{taskRunner-F7wNJcF3.d.ts → taskRunner-DUId1UJ8.d.ts} +1 -1
- 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-5BLDMQED.cjs +0 -18
- package/dist/chunk-5BLDMQED.cjs.map +0 -1
- package/dist/chunk-7W6FHWYN.js.map +0 -1
- package/dist/chunk-ERUAQGYF.js.map +0 -1
- package/dist/chunk-FSF2PGTR.cjs.map +0 -1
- package/dist/chunk-HSG2GQTM.js.map +0 -1
- package/dist/chunk-L4HZK4KK.cjs.map +0 -1
- package/dist/chunk-NSBPE2FW.js +0 -15
- package/dist/chunk-NSBPE2FW.js.map +0 -1
- package/dist/chunk-UCSTNXB4.cjs.map +0 -1
- package/dist/chunk-UJTYUYY4.cjs.map +0 -1
- package/dist/chunk-VQCDDGRW.js.map +0 -1
- package/dist/index-C0IanN1m.d.cts +0 -11
- package/dist/index-C0IanN1m.d.ts +0 -11
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-5BLDMQED.cjs');
|
|
3
|
+
var chunkF7HJO5GT_cjs = require('../../chunk-F7HJO5GT.cjs');
|
|
4
|
+
require('../../chunk-C5Y2R63Z.cjs');
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
Object.defineProperty(exports, "ArkadeContractHandler", {
|
|
10
9
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkF7HJO5GT_cjs.ArkadeContractHandler; }
|
|
12
11
|
});
|
|
13
12
|
Object.defineProperty(exports, "BoardingContractHandler", {
|
|
14
13
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkF7HJO5GT_cjs.BoardingContractHandler; }
|
|
16
15
|
});
|
|
17
16
|
Object.defineProperty(exports, "DefaultContractHandler", {
|
|
18
17
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkF7HJO5GT_cjs.DefaultContractHandler; }
|
|
20
19
|
});
|
|
21
20
|
Object.defineProperty(exports, "DelegateContractHandler", {
|
|
22
21
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkF7HJO5GT_cjs.DelegateContractHandler; }
|
|
24
23
|
});
|
|
25
24
|
Object.defineProperty(exports, "VHTLCContractHandler", {
|
|
26
25
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkF7HJO5GT_cjs.VHTLCContractHandler; }
|
|
28
27
|
});
|
|
29
28
|
Object.defineProperty(exports, "VHTLCV2ContractHandler", {
|
|
30
29
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkF7HJO5GT_cjs.VHTLCV2ContractHandler; }
|
|
32
31
|
});
|
|
33
32
|
Object.defineProperty(exports, "contractHandlers", {
|
|
34
33
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkF7HJO5GT_cjs.contractHandlers; }
|
|
36
35
|
});
|
|
37
36
|
//# sourceMappingURL=index.cjs.map
|
|
38
37
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { u as ArkadeContractHandler, B as BoardingContractHandler, F as BoardingContractParams, D as DefaultContractHandler, x as DefaultContractParams, o as DelegateContractHandler, y as DelegateContractParams, q as VHTLCContractHandler, z as VHTLCContractParams, t as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, n as contractHandlers } from '../../index-
|
|
2
|
-
import '../../index-
|
|
1
|
+
export { u as ArkadeContractHandler, B as BoardingContractHandler, F as BoardingContractParams, D as DefaultContractHandler, x as DefaultContractParams, o as DelegateContractHandler, y as DelegateContractParams, q as VHTLCContractHandler, z as VHTLCContractParams, t as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, n as contractHandlers } from '../../index-DdJt5fRc.cjs';
|
|
2
|
+
import '../../index-Czz9HSqE.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/btc-signer/psbt.js';
|
|
7
|
-
import '../../delegate-
|
|
7
|
+
import '../../delegate-CpQIgTs7.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { u as ArkadeContractHandler, B as BoardingContractHandler, F as BoardingContractParams, D as DefaultContractHandler, x as DefaultContractParams, o as DelegateContractHandler, y as DelegateContractParams, q as VHTLCContractHandler, z as VHTLCContractParams, t as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, n as contractHandlers } from '../../index-
|
|
2
|
-
import '../../index-
|
|
1
|
+
export { u as ArkadeContractHandler, B as BoardingContractHandler, F as BoardingContractParams, D as DefaultContractHandler, x as DefaultContractParams, o as DelegateContractHandler, y as DelegateContractParams, q as VHTLCContractHandler, z as VHTLCContractParams, t as VHTLCV2ContractHandler, E as VHTLCV2ContractParams, n as contractHandlers } from '../../index-DUkvXxpt.js';
|
|
2
|
+
import '../../index-Czz9HSqE.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
6
6
|
import '@scure/btc-signer/psbt.js';
|
|
7
|
-
import '../../delegate-
|
|
7
|
+
import '../../delegate-Dv-us16c.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-NSBPE2FW.js';
|
|
1
|
+
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-4EZOMPAO.js';
|
|
2
|
+
import '../../chunk-GLZNJFAT.js';
|
|
4
3
|
//# sourceMappingURL=index.js.map
|
|
5
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
2
|
-
import {
|
|
2
|
+
import { v as RelativeTimelock, V as VtxoScript, w as TapLeafScript } from './index-Czz9HSqE.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DefaultVtxo is the default implementation of a VtxoScript.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
2
|
-
import {
|
|
2
|
+
import { v as RelativeTimelock, V as VtxoScript, w as TapLeafScript } from './index-Czz9HSqE.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* DefaultVtxo is the default implementation of a VtxoScript.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v as RelativeTimelock, U as Network, X as CSVMultisigTapscript, Y as BatchStartedEvent, Z as TreeSigningStartedEvent, _ as TxTree, $ as TreeNoncesEvent, a0 as BatchFinalizationEvent, a1 as BatchFinalizedEvent, a2 as BatchFailedEvent, a3 as TreeTxEvent, a4 as TreeSignatureEvent, n as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, a5 as DescriptorProvider, j as IContractManager, a6 as IReadonlyWallet, a7 as ReadonlyIdentity, a8 as OnchainProvider, t as ArkProvider, u as IndexerProvider, a9 as DelegateProvider, aa as ReadonlyWalletConfig, H as IntentRepository, L as VirtualTxRepository, ab as ExitCaptureMode, ac as ExitDataSource, h as ActivityRegistry, ad as IReadonlyAssetManager, ae as ContractSyncState, af as RecipientArkadeAddressContext, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, ag as NetworkName, ah as ArkAddress, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, ai as ContractWithVtxos, aj as selectPendingRecoveryOutpoints, g as ArkTransaction, i as Activity, E as ExtendedCoin, ak as Coin, z as ExtendedVirtualCoin, al as ContractManager, am as ContractManagerConfig, I as IWallet, a as Identity, k as GetNewAddressesOptions, l as NewAddress, an as SettlementConfig, d as ArkadeBroadcaster, p as IAssetManager, ao as VtxoManager, m as IDelegateManager, S as SettleParams, R as Recipient, ap as SignerSession, aq as SignedIntent, ar as Intent, o as SendParams, as as TimeHeight } from './index-Czz9HSqE.js';
|
|
2
2
|
import { Transaction } from '@scure/btc-signer';
|
|
3
3
|
import { TransactionOutput } from '@scure/btc-signer/psbt.js';
|
|
4
4
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
5
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
5
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-Dv-us16c.js';
|
|
6
6
|
|
|
7
7
|
/** Wall-clock floor for `batchExpiry` outside regtest. */
|
|
8
8
|
declare const DEFAULT_MIN_BATCH_EXPIRY_SECONDS = 86400n;
|
|
@@ -996,8 +996,6 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
996
996
|
serverInfoSource: ServerInfoSource;
|
|
997
997
|
serverInfoLastOnlineAt: number | undefined;
|
|
998
998
|
delegateProvider: DelegateProvider | undefined;
|
|
999
|
-
/** @deprecated alias for `delegateProvider` */
|
|
1000
|
-
delegatorProvider: DelegateProvider | undefined;
|
|
1001
999
|
walletContractTimelocks: RelativeTimelock[];
|
|
1002
1000
|
}>;
|
|
1003
1001
|
/**
|
|
@@ -1027,7 +1025,7 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
1027
1025
|
* The raw reporting/recovery read: escrowed, locked and awaiting-recovery
|
|
1028
1026
|
* funds are all present. Coin selection must use
|
|
1029
1027
|
* {@link getSpendableVtxos} instead — feeding this straight into
|
|
1030
|
-
* `settle({ inputs })` or `
|
|
1028
|
+
* `settle({ inputs })` or `send({ selectedVtxos })` bypasses the
|
|
1031
1029
|
* generic-spending gate.
|
|
1032
1030
|
*
|
|
1033
1031
|
* @param filter - Optional flags controlling whether recoverable or unrolled VTXOs are included
|
|
@@ -1650,7 +1648,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1650
1648
|
private _doRotateServerSigner;
|
|
1651
1649
|
/**
|
|
1652
1650
|
* Async mutex that serializes all operations submitting VTXOs to the Arkade
|
|
1653
|
-
* server (`settle`, `send
|
|
1651
|
+
* server (`settle`, `send`). This prevents VtxoManager's
|
|
1654
1652
|
* background renewal from racing with user-initiated transactions for the
|
|
1655
1653
|
* same VTXO inputs.
|
|
1656
1654
|
*/
|
|
@@ -1692,11 +1690,6 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1692
1690
|
gapLimit?: number;
|
|
1693
1691
|
}): Promise<void>;
|
|
1694
1692
|
private _runRestore;
|
|
1695
|
-
/** @deprecated Use settlementConfig instead */
|
|
1696
|
-
readonly renewalConfig: Required<Omit<WalletConfig["renewalConfig"], "enabled">> & {
|
|
1697
|
-
enabled: boolean;
|
|
1698
|
-
thresholdMs: number;
|
|
1699
|
-
};
|
|
1700
1693
|
readonly settlementConfig: SettlementConfig | false;
|
|
1701
1694
|
/**
|
|
1702
1695
|
* Re-widened to public: a full wallet's provider is part of its API
|
|
@@ -1713,9 +1706,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1713
1706
|
* `toReadonly()` view, must not be able to submit.
|
|
1714
1707
|
*/
|
|
1715
1708
|
getArkadeBroadcaster(): Promise<ArkadeBroadcaster>;
|
|
1716
|
-
protected constructor(identity: Identity, network: Network, onchainProvider: OnchainProvider, arkProvider: ArkProvider, 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,
|
|
1717
|
-
/** @deprecated Use settlementConfig */
|
|
1718
|
-
renewalConfig?: WalletConfig["renewalConfig"], delegateProvider?: DelegateProvider, watcherConfig?: WalletConfig["watcherConfig"], settlementConfig?: WalletConfig["settlementConfig"], walletContractTimelocks?: RelativeTimelock[], receiveRotator?: WalletReceiveRotator, descriptorProvider?: DescriptorProvider, lookAheadWindow?: number,
|
|
1709
|
+
protected constructor(identity: Identity, network: Network, onchainProvider: OnchainProvider, arkProvider: ArkProvider, 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, lookAheadWindow?: number,
|
|
1719
1710
|
/** Overrides for the `batchExpiry` bounds; defaults derive from `network`. */
|
|
1720
1711
|
batchExpiryPolicy?: Partial<BatchExpiryPolicy> | undefined,
|
|
1721
1712
|
/** Overrides for the checkpoint exit delay bounds; defaults derive from `network`. */
|
|
@@ -1757,15 +1748,6 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1757
1748
|
toReadonly(): Promise<ReadonlyWallet>;
|
|
1758
1749
|
/** Returns the delegate manager when delegation support is configured. */
|
|
1759
1750
|
getDelegateManager(): Promise<IDelegateManager | undefined>;
|
|
1760
|
-
/** @deprecated alias for @see Wallet.getDelegateManager */
|
|
1761
|
-
getDelegatorManager(): Promise<IDelegateManager | undefined>;
|
|
1762
|
-
/**
|
|
1763
|
-
* Send bitcoin to an Arkade address.
|
|
1764
|
-
*
|
|
1765
|
-
* @deprecated Use `send`.
|
|
1766
|
-
* @param params - Send parameters
|
|
1767
|
-
*/
|
|
1768
|
-
sendBitcoin(params: SendBitcoinParams): Promise<string>;
|
|
1769
1751
|
/**
|
|
1770
1752
|
* Settle boarding inputs and/or virtual outputs into a finalized mainnet transaction.
|
|
1771
1753
|
*
|
|
@@ -1963,7 +1945,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1963
1945
|
private _sendImpl;
|
|
1964
1946
|
/**
|
|
1965
1947
|
* Shared tail of every Ark-transaction spend path (`send`, selected-VTXO
|
|
1966
|
-
* `
|
|
1948
|
+
* `send`, and {@link sendSelectedVtxosToSelf}): hide the inputs from
|
|
1967
1949
|
* concurrent `getVtxos()`, build+submit the offchain tx, persist the spent
|
|
1968
1950
|
* inputs and any wallet-owned (change / self) output, then release the
|
|
1969
1951
|
* pending-spend hold. Callers own coin selection, output construction, and
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v as RelativeTimelock, U as Network, X as CSVMultisigTapscript, Y as BatchStartedEvent, Z as TreeSigningStartedEvent, _ as TxTree, $ as TreeNoncesEvent, a0 as BatchFinalizationEvent, a1 as BatchFinalizedEvent, a2 as BatchFailedEvent, a3 as TreeTxEvent, a4 as TreeSignatureEvent, n as SettlementEvent, b as WalletConfig, W as WalletRepository, C as ContractRepository, a5 as DescriptorProvider, j as IContractManager, a6 as IReadonlyWallet, a7 as ReadonlyIdentity, a8 as OnchainProvider, t as ArkProvider, u as IndexerProvider, a9 as DelegateProvider, aa as ReadonlyWalletConfig, H as IntentRepository, L as VirtualTxRepository, ab as ExitCaptureMode, ac as ExitDataSource, h as ActivityRegistry, ad as IReadonlyAssetManager, ae as ContractSyncState, af as RecipientArkadeAddressContext, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, ag as NetworkName, ah as ArkAddress, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, ai as ContractWithVtxos, aj as selectPendingRecoveryOutpoints, g as ArkTransaction, i as Activity, E as ExtendedCoin, ak as Coin, z as ExtendedVirtualCoin, al as ContractManager, am as ContractManagerConfig, I as IWallet, a as Identity, k as GetNewAddressesOptions, l as NewAddress, an as SettlementConfig, d as ArkadeBroadcaster, p as IAssetManager, ao as VtxoManager, m as IDelegateManager, S as SettleParams, R as Recipient, ap as SignerSession, aq as SignedIntent, ar as Intent, o as SendParams, as as TimeHeight } from './index-Czz9HSqE.cjs';
|
|
2
2
|
import { Transaction } from '@scure/btc-signer';
|
|
3
3
|
import { TransactionOutput } from '@scure/btc-signer/psbt.js';
|
|
4
4
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
5
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
5
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-CpQIgTs7.cjs';
|
|
6
6
|
|
|
7
7
|
/** Wall-clock floor for `batchExpiry` outside regtest. */
|
|
8
8
|
declare const DEFAULT_MIN_BATCH_EXPIRY_SECONDS = 86400n;
|
|
@@ -996,8 +996,6 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
996
996
|
serverInfoSource: ServerInfoSource;
|
|
997
997
|
serverInfoLastOnlineAt: number | undefined;
|
|
998
998
|
delegateProvider: DelegateProvider | undefined;
|
|
999
|
-
/** @deprecated alias for `delegateProvider` */
|
|
1000
|
-
delegatorProvider: DelegateProvider | undefined;
|
|
1001
999
|
walletContractTimelocks: RelativeTimelock[];
|
|
1002
1000
|
}>;
|
|
1003
1001
|
/**
|
|
@@ -1027,7 +1025,7 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
1027
1025
|
* The raw reporting/recovery read: escrowed, locked and awaiting-recovery
|
|
1028
1026
|
* funds are all present. Coin selection must use
|
|
1029
1027
|
* {@link getSpendableVtxos} instead — feeding this straight into
|
|
1030
|
-
* `settle({ inputs })` or `
|
|
1028
|
+
* `settle({ inputs })` or `send({ selectedVtxos })` bypasses the
|
|
1031
1029
|
* generic-spending gate.
|
|
1032
1030
|
*
|
|
1033
1031
|
* @param filter - Optional flags controlling whether recoverable or unrolled VTXOs are included
|
|
@@ -1650,7 +1648,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1650
1648
|
private _doRotateServerSigner;
|
|
1651
1649
|
/**
|
|
1652
1650
|
* Async mutex that serializes all operations submitting VTXOs to the Arkade
|
|
1653
|
-
* server (`settle`, `send
|
|
1651
|
+
* server (`settle`, `send`). This prevents VtxoManager's
|
|
1654
1652
|
* background renewal from racing with user-initiated transactions for the
|
|
1655
1653
|
* same VTXO inputs.
|
|
1656
1654
|
*/
|
|
@@ -1692,11 +1690,6 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1692
1690
|
gapLimit?: number;
|
|
1693
1691
|
}): Promise<void>;
|
|
1694
1692
|
private _runRestore;
|
|
1695
|
-
/** @deprecated Use settlementConfig instead */
|
|
1696
|
-
readonly renewalConfig: Required<Omit<WalletConfig["renewalConfig"], "enabled">> & {
|
|
1697
|
-
enabled: boolean;
|
|
1698
|
-
thresholdMs: number;
|
|
1699
|
-
};
|
|
1700
1693
|
readonly settlementConfig: SettlementConfig | false;
|
|
1701
1694
|
/**
|
|
1702
1695
|
* Re-widened to public: a full wallet's provider is part of its API
|
|
@@ -1713,9 +1706,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1713
1706
|
* `toReadonly()` view, must not be able to submit.
|
|
1714
1707
|
*/
|
|
1715
1708
|
getArkadeBroadcaster(): Promise<ArkadeBroadcaster>;
|
|
1716
|
-
protected constructor(identity: Identity, network: Network, onchainProvider: OnchainProvider, arkProvider: ArkProvider, 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,
|
|
1717
|
-
/** @deprecated Use settlementConfig */
|
|
1718
|
-
renewalConfig?: WalletConfig["renewalConfig"], delegateProvider?: DelegateProvider, watcherConfig?: WalletConfig["watcherConfig"], settlementConfig?: WalletConfig["settlementConfig"], walletContractTimelocks?: RelativeTimelock[], receiveRotator?: WalletReceiveRotator, descriptorProvider?: DescriptorProvider, lookAheadWindow?: number,
|
|
1709
|
+
protected constructor(identity: Identity, network: Network, onchainProvider: OnchainProvider, arkProvider: ArkProvider, 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, lookAheadWindow?: number,
|
|
1719
1710
|
/** Overrides for the `batchExpiry` bounds; defaults derive from `network`. */
|
|
1720
1711
|
batchExpiryPolicy?: Partial<BatchExpiryPolicy> | undefined,
|
|
1721
1712
|
/** Overrides for the checkpoint exit delay bounds; defaults derive from `network`. */
|
|
@@ -1757,15 +1748,6 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1757
1748
|
toReadonly(): Promise<ReadonlyWallet>;
|
|
1758
1749
|
/** Returns the delegate manager when delegation support is configured. */
|
|
1759
1750
|
getDelegateManager(): Promise<IDelegateManager | undefined>;
|
|
1760
|
-
/** @deprecated alias for @see Wallet.getDelegateManager */
|
|
1761
|
-
getDelegatorManager(): Promise<IDelegateManager | undefined>;
|
|
1762
|
-
/**
|
|
1763
|
-
* Send bitcoin to an Arkade address.
|
|
1764
|
-
*
|
|
1765
|
-
* @deprecated Use `send`.
|
|
1766
|
-
* @param params - Send parameters
|
|
1767
|
-
*/
|
|
1768
|
-
sendBitcoin(params: SendBitcoinParams): Promise<string>;
|
|
1769
1751
|
/**
|
|
1770
1752
|
* Settle boarding inputs and/or virtual outputs into a finalized mainnet transaction.
|
|
1771
1753
|
*
|
|
@@ -1963,7 +1945,7 @@ declare class Wallet extends ReadonlyWallet implements IWallet, HDWalletCapable,
|
|
|
1963
1945
|
private _sendImpl;
|
|
1964
1946
|
/**
|
|
1965
1947
|
* Shared tail of every Ark-transaction spend path (`send`, selected-VTXO
|
|
1966
|
-
* `
|
|
1948
|
+
* `send`, and {@link sendSelectedVtxosToSelf}): hide the inputs from
|
|
1967
1949
|
* concurrent `getVtxos()`, build+submit the offchain tx, persist the spent
|
|
1968
1950
|
* inputs and any wallet-owned (change / self) output, then release the
|
|
1969
1951
|
* pending-spend hold. Callers own coin selection, output construction, and
|