@arkade-os/sdk 0.4.57 → 0.4.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/expo.cjs +5 -5
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{ark-CJgH_pmn.d.cts → ark-C9DsPSm8.d.cts} +83 -3
- package/dist/{ark-CJgH_pmn.d.ts → ark-C9DsPSm8.d.ts} +83 -3
- package/dist/{asyncStorageTaskQueue-BeeZbf-Q.d.ts → asyncStorageTaskQueue-BwuWQ1Qc.d.ts} +1 -1
- package/dist/{asyncStorageTaskQueue-BlrsUUX_.d.cts → asyncStorageTaskQueue-CYHXFfvn.d.cts} +1 -1
- package/dist/{chunk-OWTKOMJZ.cjs → chunk-2XO43UHI.cjs} +40 -40
- package/dist/{chunk-OWTKOMJZ.cjs.map → chunk-2XO43UHI.cjs.map} +1 -1
- package/dist/{chunk-EZBKSWEL.cjs → chunk-7FA36NOA.cjs} +17 -17
- package/dist/{chunk-EZBKSWEL.cjs.map → chunk-7FA36NOA.cjs.map} +1 -1
- package/dist/{chunk-KUN5ZRMW.cjs → chunk-DSTYXT2D.cjs} +45 -10
- package/dist/chunk-DSTYXT2D.cjs.map +1 -0
- package/dist/{chunk-KEG4AAKX.cjs → chunk-DYNB6POO.cjs} +524 -404
- package/dist/chunk-DYNB6POO.cjs.map +1 -0
- package/dist/{chunk-PUNBWFIV.js → chunk-FIMOVH25.js} +41 -11
- package/dist/chunk-FIMOVH25.js.map +1 -0
- package/dist/{chunk-C4SVRVNM.js → chunk-H342JPPZ.js} +4 -4
- package/dist/{chunk-C4SVRVNM.js.map → chunk-H342JPPZ.js.map} +1 -1
- package/dist/{chunk-A7TOVUYG.cjs → chunk-IPFGYVF3.cjs} +9 -9
- package/dist/{chunk-A7TOVUYG.cjs.map → chunk-IPFGYVF3.cjs.map} +1 -1
- package/dist/{chunk-NIZPFPUM.js → chunk-OVSNY3HC.js} +151 -33
- package/dist/chunk-OVSNY3HC.js.map +1 -0
- package/dist/{chunk-P6L2W5IL.js → chunk-PN5RD7ZI.js} +3 -3
- package/dist/{chunk-P6L2W5IL.js.map → chunk-PN5RD7ZI.js.map} +1 -1
- package/dist/{chunk-YK6NP5KX.cjs → chunk-V2KENVN6.cjs} +15 -15
- package/dist/{chunk-YK6NP5KX.cjs.map → chunk-V2KENVN6.cjs.map} +1 -1
- package/dist/{chunk-CPS7V4A3.js → chunk-VSHY5TBY.js} +4 -4
- package/dist/{chunk-CPS7V4A3.js.map → chunk-VSHY5TBY.js.map} +1 -1
- package/dist/{chunk-ASUJNZ63.js → chunk-YEHGCHIL.js} +3 -3
- package/dist/{chunk-ASUJNZ63.js.map → chunk-YEHGCHIL.js.map} +1 -1
- package/dist/contracts/handlers/index.cjs +8 -8
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-DM3YECSY.d.ts → delegate-B_oKWm1k.d.ts} +1 -1
- package/dist/{delegate-Dk-OJVdf.d.cts → delegate-D0eGaz3J.d.cts} +1 -1
- package/dist/{index-Cig0RkTf.d.cts → index-BG2AL2Ie.d.cts} +2 -2
- package/dist/{index-CnE7Gnvb.d.ts → index-BmK6tEqf.d.ts} +2 -2
- package/dist/index.cjs +251 -223
- package/dist/index.d.cts +48 -9
- package/dist/index.d.ts +48 -9
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +19 -19
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +18 -18
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-CnGSTaAJ.d.cts → taskRunner-CBvKIttE.d.cts} +1 -1
- package/dist/{taskRunner-F7tWzsrC.d.ts → taskRunner-Cy4Gh8n7.d.ts} +1 -1
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +14 -14
- package/dist/wallet/expo/index.d.cts +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +5 -5
- package/dist/{wallet-DvRIQBBY.d.cts → wallet-DlXemAzP.d.cts} +24 -3
- package/dist/{wallet-D6_S0n6B.d.ts → wallet-EyVDhqzP.d.ts} +24 -3
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +7 -2
- package/dist/chunk-KEG4AAKX.cjs.map +0 -1
- package/dist/chunk-KUN5ZRMW.cjs.map +0 -1
- package/dist/chunk-NIZPFPUM.js.map +0 -1
- package/dist/chunk-PUNBWFIV.js.map +0 -1
package/dist/adapters/expo.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunk7FA36NOA_cjs = require('../chunk-7FA36NOA.cjs');
|
|
4
|
+
require('../chunk-V2KENVN6.cjs');
|
|
5
|
+
require('../chunk-DSTYXT2D.cjs');
|
|
6
6
|
require('../chunk-5BLDMQED.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ExpoArkProvider", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk7FA36NOA_cjs.ExpoArkProvider; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "ExpoIndexerProvider", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk7FA36NOA_cjs.ExpoIndexerProvider; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=expo.cjs.map
|
|
19
19
|
//# sourceMappingURL=expo.cjs.map
|
package/dist/adapters/expo.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../ark-
|
|
2
|
-
export { n as ArkProvider, o as IndexerProvider } from '../ark-
|
|
1
|
+
import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../ark-C9DsPSm8.cjs';
|
|
2
|
+
export { n as ArkProvider, o as IndexerProvider } from '../ark-C9DsPSm8.cjs';
|
|
3
3
|
import '@scure/btc-signer/transaction.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
package/dist/adapters/expo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../ark-
|
|
2
|
-
export { n as ArkProvider, o as IndexerProvider } from '../ark-
|
|
1
|
+
import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../ark-C9DsPSm8.js';
|
|
2
|
+
export { n as ArkProvider, o as IndexerProvider } from '../ark-C9DsPSm8.js';
|
|
3
3
|
import '@scure/btc-signer/transaction.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
package/dist/adapters/expo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-VSHY5TBY.js';
|
|
2
|
+
import '../chunk-YEHGCHIL.js';
|
|
3
|
+
import '../chunk-FIMOVH25.js';
|
|
4
4
|
import '../chunk-NSBPE2FW.js';
|
|
5
5
|
//# sourceMappingURL=expo.js.map
|
|
6
6
|
//# sourceMappingURL=expo.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkDYNB6POO_cjs = require('../chunk-DYNB6POO.cjs');
|
|
4
|
+
require('../chunk-V2KENVN6.cjs');
|
|
5
|
+
require('../chunk-2XO43UHI.cjs');
|
|
6
|
+
require('../chunk-DSTYXT2D.cjs');
|
|
7
7
|
require('../chunk-5BLDMQED.cjs');
|
|
8
8
|
|
|
9
9
|
// src/storage/indexedDB.ts
|
|
@@ -11,7 +11,7 @@ var IndexedDBStorageAdapter = class {
|
|
|
11
11
|
dbName;
|
|
12
12
|
version;
|
|
13
13
|
db = null;
|
|
14
|
-
constructor(dbName, version =
|
|
14
|
+
constructor(dbName, version = chunkDYNB6POO_cjs.DB_VERSION) {
|
|
15
15
|
this.dbName = dbName;
|
|
16
16
|
this.version = version;
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DB_VERSION } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
import { DB_VERSION } from '../chunk-OVSNY3HC.js';
|
|
2
|
+
import '../chunk-YEHGCHIL.js';
|
|
3
|
+
import '../chunk-PN5RD7ZI.js';
|
|
4
|
+
import '../chunk-FIMOVH25.js';
|
|
5
5
|
import '../chunk-NSBPE2FW.js';
|
|
6
6
|
|
|
7
7
|
// src/storage/indexedDB.ts
|
|
@@ -532,6 +532,17 @@ interface Network {
|
|
|
532
532
|
pubKeyHash: number;
|
|
533
533
|
scriptHash: number;
|
|
534
534
|
wif: number;
|
|
535
|
+
/**
|
|
536
|
+
* Canonical name this network was resolved from, when known.
|
|
537
|
+
*
|
|
538
|
+
* `bech32` cannot separate the tb-family — testnet, signet and mutinynet
|
|
539
|
+
* share every field above — so anything that has to tell them apart (a
|
|
540
|
+
* per-network timelock floor, for one) has no other handle. Optional
|
|
541
|
+
* because a hand-built `Network` carries no name: consumers must read a
|
|
542
|
+
* missing one as "unknown" and fall back to their strictest branch rather
|
|
543
|
+
* than guess at one.
|
|
544
|
+
*/
|
|
545
|
+
name?: NetworkName;
|
|
535
546
|
}
|
|
536
547
|
declare const getNetwork: (network: NetworkName) => Network;
|
|
537
548
|
declare const networks: {
|
|
@@ -541,6 +552,62 @@ declare const networks: {
|
|
|
541
552
|
mutinynet: Network;
|
|
542
553
|
regtest: Network;
|
|
543
554
|
};
|
|
555
|
+
/** Covenant co-signer ("emulator") for the mainnet Arkade deployment. */
|
|
556
|
+
declare const BITCOIN_EMULATOR_PUBKEY: "0239c196415da47b26456a101daaa12ba9e445bfe153197f1e2b750bf40e52092e";
|
|
557
|
+
/** Covenant co-signer ("emulator") for the hosted mutinynet Arkade deployment. */
|
|
558
|
+
declare const MUTINYNET_EMULATOR_PUBKEY: "03f823b9b2febc81f4af967e77aed2f541cbd3397c6d8f5a72e32eb7b471af889a";
|
|
559
|
+
/** Covenant co-signer ("emulator") shipped with the `arkade-regtest` stack. */
|
|
560
|
+
declare const REGTEST_EMULATOR_PUBKEY: "02999413c46fa10ada5cbc4bcc79a1d09160c2ba3cfc812705d7a13e5e545fb2a9";
|
|
561
|
+
/**
|
|
562
|
+
* The pinned co-signer key for `network`, as 33-byte compressed lowercase hex.
|
|
563
|
+
*
|
|
564
|
+
* @throws if the network carries no name, or names one with no deployed
|
|
565
|
+
* emulator. Fail closed on both counts: the return value ends up in a
|
|
566
|
+
* covenant leaf that decides who can move the funds, so there is no
|
|
567
|
+
* defensible fallback. Guessing a neighbour's key (the tb-family share every
|
|
568
|
+
* other field on {@link Network}) would build a leaf co-signed by a service
|
|
569
|
+
* that will never sign for it — funds locked to a key nobody holds — and
|
|
570
|
+
* returning an empty string just moves the same failure somewhere harder to
|
|
571
|
+
* read. A hand-assembled `Network` carries no `name` and lands here too,
|
|
572
|
+
* matching how the per-network timelock floors treat an unnamed network.
|
|
573
|
+
*
|
|
574
|
+
* Deliberately NOT falling back to whatever key the emulator reports about
|
|
575
|
+
* itself: that is the self-report this pin exists to stop trusting, and doing
|
|
576
|
+
* it only on unpinned networks would make the guarantee depend on
|
|
577
|
+
* `network.name` with no signal to the caller that it had lapsed. The
|
|
578
|
+
* unnamed case is the sharp one — a hand-built `Network` can carry
|
|
579
|
+
* bitcoin-equivalent parameters, so a silent fallback would drop to
|
|
580
|
+
* "trust the endpoint" on exactly the input that looks most like mainnet.
|
|
581
|
+
* Callers who mean it pass {@link resolveEmulatorPubkey}'s override, which
|
|
582
|
+
* the thrown message names.
|
|
583
|
+
*/
|
|
584
|
+
declare function defaultEmulatorPubkey(network: Network): string;
|
|
585
|
+
/**
|
|
586
|
+
* Resolve the co-signer key for `network`, letting a caller substitute its own.
|
|
587
|
+
*
|
|
588
|
+
* The override is the escape hatch for three situations, and the first is the
|
|
589
|
+
* one that matters operationally:
|
|
590
|
+
*
|
|
591
|
+
* 1. **A network rotated its emulator key and this SDK has not shipped the new
|
|
592
|
+
* constant yet.** Since `Arkade.connect` no longer asks the service which
|
|
593
|
+
* key it signs with, a rotation is invisible here until the constant is
|
|
594
|
+
* updated — covenants keep building against the retired key and fail only
|
|
595
|
+
* when a claim is attempted. Passing the new key restores service without
|
|
596
|
+
* waiting for a release, so a rotation is a config change rather than an
|
|
597
|
+
* outage.
|
|
598
|
+
* 2. A private or self-hosted emulator, including on a network with no pinned
|
|
599
|
+
* key at all (signet, testnet, a hand-built `Network`).
|
|
600
|
+
* 3. Tests and local stacks.
|
|
601
|
+
*
|
|
602
|
+
* Supplying it means co-signing with a different service: every covenant built
|
|
603
|
+
* from the returned key can be completed by whoever holds it and by no one
|
|
604
|
+
* else, so it is a statement that you trust that operator in place of the
|
|
605
|
+
* network's. Prefer {@link defaultEmulatorPubkey} unless that is deliberate.
|
|
606
|
+
*
|
|
607
|
+
* A malformed override throws rather than being passed through — a typo here
|
|
608
|
+
* would otherwise surface as an unspendable contract long after the fact.
|
|
609
|
+
*/
|
|
610
|
+
declare function resolveEmulatorPubkey(network: Network, override?: string): string;
|
|
544
611
|
|
|
545
612
|
/**
|
|
546
613
|
* The default base URLs for esplora API providers.
|
|
@@ -1343,6 +1410,17 @@ declare class VtxoManager implements AsyncDisposable, IVtxoManager {
|
|
|
1343
1410
|
*
|
|
1344
1411
|
* Useful for displaying to users before they decide to recover funds.
|
|
1345
1412
|
*
|
|
1413
|
+
* Both amounts are net of the operator's intent fees, so `recoverable` is
|
|
1414
|
+
* what {@link recoverVtxos} would actually hand back rather than the gross
|
|
1415
|
+
* sum of the inputs. `subdust` is net of the per-input fees only — the
|
|
1416
|
+
* output fee is charged on the batch as a whole and is not attributed per
|
|
1417
|
+
* coin — so it reports what the subdust coins are worth once each has paid
|
|
1418
|
+
* its own way, and is not strictly a slice of `recoverable`. It can exceed
|
|
1419
|
+
* `recoverable` where a flat output fee meets a wholly subdust wallet.
|
|
1420
|
+
*
|
|
1421
|
+
* The batch size caps are not applied here: they defer the overflow to the
|
|
1422
|
+
* next cycle rather than reducing what is recoverable.
|
|
1423
|
+
*
|
|
1346
1424
|
* @returns Object containing recoverable amounts and subdust information
|
|
1347
1425
|
*
|
|
1348
1426
|
* @example
|
|
@@ -3664,8 +3742,10 @@ interface BaseWalletConfig {
|
|
|
3664
3742
|
/**
|
|
3665
3743
|
* Minimum accepted checkpoint exit delay decoded from `ArkInfo.checkpointTapscript`,
|
|
3666
3744
|
* as wall-clock seconds. Defaults per network — see
|
|
3667
|
-
* `defaultCheckpointExitDelayPolicy
|
|
3668
|
-
*
|
|
3745
|
+
* `defaultCheckpointExitDelayPolicy`, which already carries the value the
|
|
3746
|
+
* hosted signet and mutinynet Arkade Services advertise, so neither needs
|
|
3747
|
+
* this set. Lowering it below the default relaxes a fund-safety bound;
|
|
3748
|
+
* intended for local testing.
|
|
3669
3749
|
*/
|
|
3670
3750
|
minCheckpointExitDelaySeconds?: bigint;
|
|
3671
3751
|
/**
|
|
@@ -5223,4 +5303,4 @@ declare namespace ProtoTypes {
|
|
|
5223
5303
|
export { };
|
|
5224
5304
|
}
|
|
5225
5305
|
|
|
5226
|
-
export { type TreeSignatureEvent as $, type ArkTransaction as A, type VirtualTxRepository as B, type ContractRepository as C, type VirtualTx as D, type ExtendedCoin as E, type VtxoBranch as F, type GetVtxosFilter as G, ChainedTxType as H, type IWallet as I, type Network as J, CSVMultisigTapscript as K, type SignerSet as L, type BatchStartedEvent as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, type TreeSigningStartedEvent as P, TxTree as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotification as T, type TreeNoncesEvent as U, VtxoScript as V, type WalletRepository as W, type BatchFinalizationEvent as X, type BatchFinalizedEvent as Y, type BatchFailedEvent as Z, type TreeTxEvent as _, type Identity as a, type
|
|
5306
|
+
export { type TreeSignatureEvent as $, type ArkTransaction as A, type VirtualTxRepository as B, type ContractRepository as C, type VirtualTx as D, type ExtendedCoin as E, type VtxoBranch as F, type GetVtxosFilter as G, ChainedTxType as H, type IWallet as I, type Network as J, CSVMultisigTapscript as K, type SignerSet as L, type BatchStartedEvent as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, type TreeSigningStartedEvent as P, TxTree as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotification as T, type TreeNoncesEvent as U, VtxoScript as V, type WalletRepository as W, type BatchFinalizationEvent as X, type BatchFinalizedEvent as Y, type BatchFailedEvent as Z, type TreeTxEvent as _, type Identity as a, type BatchInfo as a$, type DescriptorProvider as a0, type IReadonlyWallet as a1, type ReadonlyIdentity as a2, type OnchainProvider as a3, type DelegateProvider as a4, type ReadonlyWalletConfig as a5, type ExitCaptureMode as a6, type ExitDataSource as a7, type IReadonlyAssetManager as a8, type ContractSyncState as a9, type IssuanceParams as aA, type ReissuanceParams as aB, type BurnParams as aC, type RenewVtxosOptions as aD, type ContractWithVtxos as aE, type PathSelection as aF, type ContractEvent as aG, type AssetDetails as aH, type IssuanceResult as aI, type DelegateInfo as aJ, type MigrationGlobalSkipReason as aK, type MigrationLegSkipReason as aL, type SignerStatus as aM, type StorageConfig as aN, type IVtxoManager as aO, type ExplorerTransaction as aP, type EncodedVtxoScript as aQ, type Status as aR, type ChainTx as aS, type PathContext as aT, type ActivityIntent as aU, type ActivityResolver as aV, type ArkIntentState as aW, type ArkTapscript as aX, type AssetMetadata as aY, BITCOIN_EMULATOR_PUBKEY as aZ, type BaseWalletConfig as a_, type NetworkName as aa, type ArkInfo as ab, ArkAddress as ac, type Coin as ad, ContractManager as ae, type ContractManagerConfig as af, type SettlementConfig as ag, VtxoManager as ah, type SignerSession as ai, type SignedIntent as aj, Intent as ak, type TimeHeight as al, type DescriptorSigningRequest as am, Transaction as an, type IntentFeeConfig as ao, type OffchainInput as ap, FeeAmount as aq, type OnchainInput as ar, type FeeOutput as as, type ContractWatcherConfig as at, type Asset as au, type FeeInfo as av, type CreateContractParams as aw, type GetContractsFilter as ax, type GetSpendablePathsOptions as ay, type GetAllSpendingPathsOptions as az, type WalletConfig as b, type TxTag as b$, type BatchSignableIdentity as b0, CLTVMultisigTapscript as b1, type CandidateDeps as b2, ChainTxType as b3, type CommitmentTx as b4, ConditionCSVMultisigTapscript as b5, ConditionMultisigTapscript as b6, type ContractBalance as b7, type ContractEventCallback as b8, type ContractHandler as b9, type MigrationVtxoRef as bA, MultisigTapscript as bB, type Nonces as bC, type Output as bD, type PageResponse as bE, type PaginationOptions as bF, PartialSig as bG, type ProviderClass as bH, REGTEST_EMULATOR_PUBKEY as bI, RestDelegateProvider as bJ, RestDelegatorProvider as bK, type ScanContractsOptions as bL, type ScanResult as bM, type ScheduledSession as bN, SettlementEventType as bO, type SignRequest as bP, type SignerClassification as bQ, type SubscriptionEvent as bR, type SubscriptionHeartbeat as bS, type TapLeaves as bT, TapTreeCoder as bU, TapscriptType as bV, type TreeNonces as bW, type TreePartialSigs as bX, type Tx as bY, type TxHistoryRecord as bZ, type TxKey as b_, type ContractState as ba, type ContractVtxo as bb, ContractWatcher as bc, DelegateManagerImpl as bd, type DelegateOptions as be, DelegatorManagerImpl as bf, type DelegatorProvider as bg, type DeprecatedSignerMigrationReport as bh, type DeprecatedSignerReport as bi, DigestMismatchError as bj, type Discoverable as bk, type DiscoveredContract as bl, type DiscoveryDeps as bm, ESPLORA_URL as bn, EsploraProvider as bo, type ExitChainResolver as bp, type ExtendedContractVtxo as bq, type GroupMembership as br, type HandlerError as bs, type IDelegatorManager as bt, INTENT_TERMINAL_STATES as bu, IndexerTxType as bv, type KnownMetadata as bw, MUTINYNET_EMULATOR_PUBKEY as bx, type MigrateDeprecatedSignerOptions as by, type MigrationLegReport as bz, type WalletBalance as c, type TxTreeNode as c0, TxType as c1, type VirtualStatus as c2, type Vtxo as c3, type VtxoChain as c4, type VtxoType as c5, type WalletMode as c6, assetMintResolver as c7, boardingResolver as c8, canRecoverOnchain as c9, signerSetFromInfo as cA, toXOnlySignerHex as cB, type TapscriptDeriving as cC, canSpendOffchain as ca, classifyAgainstSignerSet as cb, classifyContractSigner as cc, collabExitResolver as cd, createDefaultActivityRegistry as ce, createExitChainResolver as cf, decodeTapscript as cg, defaultEmulatorPubkey as ch, getNetwork as ci, getSequence as cj, hasCandidates as ck, hasTerminalSpend as cl, isBatchSignable as cm, isCooperativelyMigratable as cn, isDiscoverable as co, isExpired as cp, isPastExpiry as cq, isRecoverable as cr, isSpendable as cs, isSubdust as ct, isTerminalIntentState as cu, isVirtualCoin as cv, isVtxoExpiringSoon as cw, networks as cx, resolveEmulatorPubkey as cy, scriptFromTapLeafScript as cz, ActivityRegistry as d, type Activity as e, type IContractManager as f, type IDelegateManager as g, type SettleParams as h, type SettlementEvent as i, type IAssetManager as j, RestArkProvider as k, RestIndexerProvider as l, type SubscriptionResponse as m, type ArkProvider as n, type IndexerProvider as o, type RelativeTimelock as p, type TapLeafScript as q, type VirtualCoin as r, type Contract as s, type ExtendedVirtualCoin as t, type VtxoRepositoryKey as u, type WalletState as v, type ContractFilter as w, type IntentRepository as x, type ArkIntent as y, type IntentFilter as z };
|
|
@@ -532,6 +532,17 @@ interface Network {
|
|
|
532
532
|
pubKeyHash: number;
|
|
533
533
|
scriptHash: number;
|
|
534
534
|
wif: number;
|
|
535
|
+
/**
|
|
536
|
+
* Canonical name this network was resolved from, when known.
|
|
537
|
+
*
|
|
538
|
+
* `bech32` cannot separate the tb-family — testnet, signet and mutinynet
|
|
539
|
+
* share every field above — so anything that has to tell them apart (a
|
|
540
|
+
* per-network timelock floor, for one) has no other handle. Optional
|
|
541
|
+
* because a hand-built `Network` carries no name: consumers must read a
|
|
542
|
+
* missing one as "unknown" and fall back to their strictest branch rather
|
|
543
|
+
* than guess at one.
|
|
544
|
+
*/
|
|
545
|
+
name?: NetworkName;
|
|
535
546
|
}
|
|
536
547
|
declare const getNetwork: (network: NetworkName) => Network;
|
|
537
548
|
declare const networks: {
|
|
@@ -541,6 +552,62 @@ declare const networks: {
|
|
|
541
552
|
mutinynet: Network;
|
|
542
553
|
regtest: Network;
|
|
543
554
|
};
|
|
555
|
+
/** Covenant co-signer ("emulator") for the mainnet Arkade deployment. */
|
|
556
|
+
declare const BITCOIN_EMULATOR_PUBKEY: "0239c196415da47b26456a101daaa12ba9e445bfe153197f1e2b750bf40e52092e";
|
|
557
|
+
/** Covenant co-signer ("emulator") for the hosted mutinynet Arkade deployment. */
|
|
558
|
+
declare const MUTINYNET_EMULATOR_PUBKEY: "03f823b9b2febc81f4af967e77aed2f541cbd3397c6d8f5a72e32eb7b471af889a";
|
|
559
|
+
/** Covenant co-signer ("emulator") shipped with the `arkade-regtest` stack. */
|
|
560
|
+
declare const REGTEST_EMULATOR_PUBKEY: "02999413c46fa10ada5cbc4bcc79a1d09160c2ba3cfc812705d7a13e5e545fb2a9";
|
|
561
|
+
/**
|
|
562
|
+
* The pinned co-signer key for `network`, as 33-byte compressed lowercase hex.
|
|
563
|
+
*
|
|
564
|
+
* @throws if the network carries no name, or names one with no deployed
|
|
565
|
+
* emulator. Fail closed on both counts: the return value ends up in a
|
|
566
|
+
* covenant leaf that decides who can move the funds, so there is no
|
|
567
|
+
* defensible fallback. Guessing a neighbour's key (the tb-family share every
|
|
568
|
+
* other field on {@link Network}) would build a leaf co-signed by a service
|
|
569
|
+
* that will never sign for it — funds locked to a key nobody holds — and
|
|
570
|
+
* returning an empty string just moves the same failure somewhere harder to
|
|
571
|
+
* read. A hand-assembled `Network` carries no `name` and lands here too,
|
|
572
|
+
* matching how the per-network timelock floors treat an unnamed network.
|
|
573
|
+
*
|
|
574
|
+
* Deliberately NOT falling back to whatever key the emulator reports about
|
|
575
|
+
* itself: that is the self-report this pin exists to stop trusting, and doing
|
|
576
|
+
* it only on unpinned networks would make the guarantee depend on
|
|
577
|
+
* `network.name` with no signal to the caller that it had lapsed. The
|
|
578
|
+
* unnamed case is the sharp one — a hand-built `Network` can carry
|
|
579
|
+
* bitcoin-equivalent parameters, so a silent fallback would drop to
|
|
580
|
+
* "trust the endpoint" on exactly the input that looks most like mainnet.
|
|
581
|
+
* Callers who mean it pass {@link resolveEmulatorPubkey}'s override, which
|
|
582
|
+
* the thrown message names.
|
|
583
|
+
*/
|
|
584
|
+
declare function defaultEmulatorPubkey(network: Network): string;
|
|
585
|
+
/**
|
|
586
|
+
* Resolve the co-signer key for `network`, letting a caller substitute its own.
|
|
587
|
+
*
|
|
588
|
+
* The override is the escape hatch for three situations, and the first is the
|
|
589
|
+
* one that matters operationally:
|
|
590
|
+
*
|
|
591
|
+
* 1. **A network rotated its emulator key and this SDK has not shipped the new
|
|
592
|
+
* constant yet.** Since `Arkade.connect` no longer asks the service which
|
|
593
|
+
* key it signs with, a rotation is invisible here until the constant is
|
|
594
|
+
* updated — covenants keep building against the retired key and fail only
|
|
595
|
+
* when a claim is attempted. Passing the new key restores service without
|
|
596
|
+
* waiting for a release, so a rotation is a config change rather than an
|
|
597
|
+
* outage.
|
|
598
|
+
* 2. A private or self-hosted emulator, including on a network with no pinned
|
|
599
|
+
* key at all (signet, testnet, a hand-built `Network`).
|
|
600
|
+
* 3. Tests and local stacks.
|
|
601
|
+
*
|
|
602
|
+
* Supplying it means co-signing with a different service: every covenant built
|
|
603
|
+
* from the returned key can be completed by whoever holds it and by no one
|
|
604
|
+
* else, so it is a statement that you trust that operator in place of the
|
|
605
|
+
* network's. Prefer {@link defaultEmulatorPubkey} unless that is deliberate.
|
|
606
|
+
*
|
|
607
|
+
* A malformed override throws rather than being passed through — a typo here
|
|
608
|
+
* would otherwise surface as an unspendable contract long after the fact.
|
|
609
|
+
*/
|
|
610
|
+
declare function resolveEmulatorPubkey(network: Network, override?: string): string;
|
|
544
611
|
|
|
545
612
|
/**
|
|
546
613
|
* The default base URLs for esplora API providers.
|
|
@@ -1343,6 +1410,17 @@ declare class VtxoManager implements AsyncDisposable, IVtxoManager {
|
|
|
1343
1410
|
*
|
|
1344
1411
|
* Useful for displaying to users before they decide to recover funds.
|
|
1345
1412
|
*
|
|
1413
|
+
* Both amounts are net of the operator's intent fees, so `recoverable` is
|
|
1414
|
+
* what {@link recoverVtxos} would actually hand back rather than the gross
|
|
1415
|
+
* sum of the inputs. `subdust` is net of the per-input fees only — the
|
|
1416
|
+
* output fee is charged on the batch as a whole and is not attributed per
|
|
1417
|
+
* coin — so it reports what the subdust coins are worth once each has paid
|
|
1418
|
+
* its own way, and is not strictly a slice of `recoverable`. It can exceed
|
|
1419
|
+
* `recoverable` where a flat output fee meets a wholly subdust wallet.
|
|
1420
|
+
*
|
|
1421
|
+
* The batch size caps are not applied here: they defer the overflow to the
|
|
1422
|
+
* next cycle rather than reducing what is recoverable.
|
|
1423
|
+
*
|
|
1346
1424
|
* @returns Object containing recoverable amounts and subdust information
|
|
1347
1425
|
*
|
|
1348
1426
|
* @example
|
|
@@ -3664,8 +3742,10 @@ interface BaseWalletConfig {
|
|
|
3664
3742
|
/**
|
|
3665
3743
|
* Minimum accepted checkpoint exit delay decoded from `ArkInfo.checkpointTapscript`,
|
|
3666
3744
|
* as wall-clock seconds. Defaults per network — see
|
|
3667
|
-
* `defaultCheckpointExitDelayPolicy
|
|
3668
|
-
*
|
|
3745
|
+
* `defaultCheckpointExitDelayPolicy`, which already carries the value the
|
|
3746
|
+
* hosted signet and mutinynet Arkade Services advertise, so neither needs
|
|
3747
|
+
* this set. Lowering it below the default relaxes a fund-safety bound;
|
|
3748
|
+
* intended for local testing.
|
|
3669
3749
|
*/
|
|
3670
3750
|
minCheckpointExitDelaySeconds?: bigint;
|
|
3671
3751
|
/**
|
|
@@ -5223,4 +5303,4 @@ declare namespace ProtoTypes {
|
|
|
5223
5303
|
export { };
|
|
5224
5304
|
}
|
|
5225
5305
|
|
|
5226
|
-
export { type TreeSignatureEvent as $, type ArkTransaction as A, type VirtualTxRepository as B, type ContractRepository as C, type VirtualTx as D, type ExtendedCoin as E, type VtxoBranch as F, type GetVtxosFilter as G, ChainedTxType as H, type IWallet as I, type Network as J, CSVMultisigTapscript as K, type SignerSet as L, type BatchStartedEvent as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, type TreeSigningStartedEvent as P, TxTree as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotification as T, type TreeNoncesEvent as U, VtxoScript as V, type WalletRepository as W, type BatchFinalizationEvent as X, type BatchFinalizedEvent as Y, type BatchFailedEvent as Z, type TreeTxEvent as _, type Identity as a, type
|
|
5306
|
+
export { type TreeSignatureEvent as $, type ArkTransaction as A, type VirtualTxRepository as B, type ContractRepository as C, type VirtualTx as D, type ExtendedCoin as E, type VtxoBranch as F, type GetVtxosFilter as G, ChainedTxType as H, type IWallet as I, type Network as J, CSVMultisigTapscript as K, type SignerSet as L, type BatchStartedEvent as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, type TreeSigningStartedEvent as P, TxTree as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotification as T, type TreeNoncesEvent as U, VtxoScript as V, type WalletRepository as W, type BatchFinalizationEvent as X, type BatchFinalizedEvent as Y, type BatchFailedEvent as Z, type TreeTxEvent as _, type Identity as a, type BatchInfo as a$, type DescriptorProvider as a0, type IReadonlyWallet as a1, type ReadonlyIdentity as a2, type OnchainProvider as a3, type DelegateProvider as a4, type ReadonlyWalletConfig as a5, type ExitCaptureMode as a6, type ExitDataSource as a7, type IReadonlyAssetManager as a8, type ContractSyncState as a9, type IssuanceParams as aA, type ReissuanceParams as aB, type BurnParams as aC, type RenewVtxosOptions as aD, type ContractWithVtxos as aE, type PathSelection as aF, type ContractEvent as aG, type AssetDetails as aH, type IssuanceResult as aI, type DelegateInfo as aJ, type MigrationGlobalSkipReason as aK, type MigrationLegSkipReason as aL, type SignerStatus as aM, type StorageConfig as aN, type IVtxoManager as aO, type ExplorerTransaction as aP, type EncodedVtxoScript as aQ, type Status as aR, type ChainTx as aS, type PathContext as aT, type ActivityIntent as aU, type ActivityResolver as aV, type ArkIntentState as aW, type ArkTapscript as aX, type AssetMetadata as aY, BITCOIN_EMULATOR_PUBKEY as aZ, type BaseWalletConfig as a_, type NetworkName as aa, type ArkInfo as ab, ArkAddress as ac, type Coin as ad, ContractManager as ae, type ContractManagerConfig as af, type SettlementConfig as ag, VtxoManager as ah, type SignerSession as ai, type SignedIntent as aj, Intent as ak, type TimeHeight as al, type DescriptorSigningRequest as am, Transaction as an, type IntentFeeConfig as ao, type OffchainInput as ap, FeeAmount as aq, type OnchainInput as ar, type FeeOutput as as, type ContractWatcherConfig as at, type Asset as au, type FeeInfo as av, type CreateContractParams as aw, type GetContractsFilter as ax, type GetSpendablePathsOptions as ay, type GetAllSpendingPathsOptions as az, type WalletConfig as b, type TxTag as b$, type BatchSignableIdentity as b0, CLTVMultisigTapscript as b1, type CandidateDeps as b2, ChainTxType as b3, type CommitmentTx as b4, ConditionCSVMultisigTapscript as b5, ConditionMultisigTapscript as b6, type ContractBalance as b7, type ContractEventCallback as b8, type ContractHandler as b9, type MigrationVtxoRef as bA, MultisigTapscript as bB, type Nonces as bC, type Output as bD, type PageResponse as bE, type PaginationOptions as bF, PartialSig as bG, type ProviderClass as bH, REGTEST_EMULATOR_PUBKEY as bI, RestDelegateProvider as bJ, RestDelegatorProvider as bK, type ScanContractsOptions as bL, type ScanResult as bM, type ScheduledSession as bN, SettlementEventType as bO, type SignRequest as bP, type SignerClassification as bQ, type SubscriptionEvent as bR, type SubscriptionHeartbeat as bS, type TapLeaves as bT, TapTreeCoder as bU, TapscriptType as bV, type TreeNonces as bW, type TreePartialSigs as bX, type Tx as bY, type TxHistoryRecord as bZ, type TxKey as b_, type ContractState as ba, type ContractVtxo as bb, ContractWatcher as bc, DelegateManagerImpl as bd, type DelegateOptions as be, DelegatorManagerImpl as bf, type DelegatorProvider as bg, type DeprecatedSignerMigrationReport as bh, type DeprecatedSignerReport as bi, DigestMismatchError as bj, type Discoverable as bk, type DiscoveredContract as bl, type DiscoveryDeps as bm, ESPLORA_URL as bn, EsploraProvider as bo, type ExitChainResolver as bp, type ExtendedContractVtxo as bq, type GroupMembership as br, type HandlerError as bs, type IDelegatorManager as bt, INTENT_TERMINAL_STATES as bu, IndexerTxType as bv, type KnownMetadata as bw, MUTINYNET_EMULATOR_PUBKEY as bx, type MigrateDeprecatedSignerOptions as by, type MigrationLegReport as bz, type WalletBalance as c, type TxTreeNode as c0, TxType as c1, type VirtualStatus as c2, type Vtxo as c3, type VtxoChain as c4, type VtxoType as c5, type WalletMode as c6, assetMintResolver as c7, boardingResolver as c8, canRecoverOnchain as c9, signerSetFromInfo as cA, toXOnlySignerHex as cB, type TapscriptDeriving as cC, canSpendOffchain as ca, classifyAgainstSignerSet as cb, classifyContractSigner as cc, collabExitResolver as cd, createDefaultActivityRegistry as ce, createExitChainResolver as cf, decodeTapscript as cg, defaultEmulatorPubkey as ch, getNetwork as ci, getSequence as cj, hasCandidates as ck, hasTerminalSpend as cl, isBatchSignable as cm, isCooperativelyMigratable as cn, isDiscoverable as co, isExpired as cp, isPastExpiry as cq, isRecoverable as cr, isSpendable as cs, isSubdust as ct, isTerminalIntentState as cu, isVirtualCoin as cv, isVtxoExpiringSoon as cw, networks as cx, resolveEmulatorPubkey as cy, scriptFromTapLeafScript as cz, ActivityRegistry as d, type Activity as e, type IContractManager as f, type IDelegateManager as g, type SettleParams as h, type SettlementEvent as i, type IAssetManager as j, RestArkProvider as k, RestIndexerProvider as l, type SubscriptionResponse as m, type ArkProvider as n, type IndexerProvider as o, type RelativeTimelock as p, type TapLeafScript as q, type VirtualCoin as r, type Contract as s, type ExtendedVirtualCoin as t, type VtxoRepositoryKey as u, type WalletState as v, type ContractFilter as w, type IntentRepository as x, type ArkIntent as y, type IntentFilter as z };
|