@arkade-os/sdk 0.4.54 → 0.4.56
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-acFuA57I.d.cts → ark-Cgsd9tMd.d.cts} +40 -3
- package/dist/{ark-acFuA57I.d.ts → ark-Cgsd9tMd.d.ts} +40 -3
- package/dist/{asyncStorageTaskQueue-BO3cvMpP.d.cts → asyncStorageTaskQueue-C0ZsDE60.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-DACXtP0I.d.ts → asyncStorageTaskQueue-CXz4PRBW.d.ts} +2 -2
- package/dist/{chunk-RNECH3TA.cjs → chunk-24YNIQSW.cjs} +15 -15
- package/dist/{chunk-RNECH3TA.cjs.map → chunk-24YNIQSW.cjs.map} +1 -1
- package/dist/{chunk-53XNU2EL.cjs → chunk-37XKN5DZ.cjs} +60 -40
- package/dist/chunk-37XKN5DZ.cjs.map +1 -0
- package/dist/{chunk-7L3P3EP5.js → chunk-5IMBONCK.js} +4 -4
- package/dist/{chunk-7L3P3EP5.js.map → chunk-5IMBONCK.js.map} +1 -1
- package/dist/{chunk-GMUVWKOK.cjs → chunk-CDWLZQQW.cjs} +11 -3
- package/dist/chunk-CDWLZQQW.cjs.map +1 -0
- package/dist/{chunk-D5LUPJJP.cjs → chunk-ENRRZFZ4.cjs} +774 -399
- package/dist/chunk-ENRRZFZ4.cjs.map +1 -0
- package/dist/{chunk-4EIKOJLD.js → chunk-IFGN2GB2.js} +11 -4
- package/dist/chunk-IFGN2GB2.js.map +1 -0
- package/dist/{chunk-YRLBZJYO.cjs → chunk-IMVKQQHU.cjs} +9 -9
- package/dist/{chunk-YRLBZJYO.cjs.map → chunk-IMVKQQHU.cjs.map} +1 -1
- package/dist/{chunk-BYJJIITU.cjs → chunk-MXPBHDOI.cjs} +17 -17
- package/dist/{chunk-BYJJIITU.cjs.map → chunk-MXPBHDOI.cjs.map} +1 -1
- package/dist/{chunk-ZOY5JSVA.js → chunk-NN7BNNF5.js} +3 -3
- package/dist/{chunk-ZOY5JSVA.js.map → chunk-NN7BNNF5.js.map} +1 -1
- package/dist/{chunk-A37WVZ5T.js → chunk-OOPDT2WV.js} +23 -4
- package/dist/chunk-OOPDT2WV.js.map +1 -0
- package/dist/{chunk-TEHJCEF3.js → chunk-T22257HW.js} +422 -56
- package/dist/chunk-T22257HW.js.map +1 -0
- package/dist/{chunk-QY2YVFZT.js → chunk-VNDVUM2W.js} +4 -4
- package/dist/{chunk-QY2YVFZT.js.map → chunk-VNDVUM2W.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-DjwZZi6L.d.ts → delegate-CZPXtd2F.d.ts} +1 -1
- package/dist/{delegate-Ca_wXiYE.d.cts → delegate-xXT8O-Kn.d.cts} +1 -1
- package/dist/{index-Ddq0mIKX.d.ts → index-BBJ466mM.d.ts} +2 -2
- package/dist/{index-DFfefdpc.d.cts → index-BYG2eKOA.d.cts} +2 -2
- package/dist/index.cjs +246 -202
- package/dist/index.d.cts +169 -16
- package/dist/index.d.ts +169 -16
- 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-DEwlrgId.d.cts → taskRunner-BG1PRFps.d.cts} +2 -2
- package/dist/{taskRunner-DbCNRP31.d.ts → taskRunner-C46NnRsY.d.ts} +2 -2
- 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 +5 -5
- package/dist/wallet/expo/index.d.ts +5 -5
- package/dist/wallet/expo/index.js +5 -5
- package/dist/{wallet-B9rpddG2.d.ts → wallet-1yWg75gN.d.cts} +100 -6
- package/dist/{wallet-ByjM6L20.d.cts → wallet-DuCm55EC.d.ts} +100 -6
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-4EIKOJLD.js.map +0 -1
- package/dist/chunk-53XNU2EL.cjs.map +0 -1
- package/dist/chunk-A37WVZ5T.js.map +0 -1
- package/dist/chunk-D5LUPJJP.cjs.map +0 -1
- package/dist/chunk-GMUVWKOK.cjs.map +0 -1
- package/dist/chunk-TEHJCEF3.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 chunkMXPBHDOI_cjs = require('../chunk-MXPBHDOI.cjs');
|
|
4
|
+
require('../chunk-24YNIQSW.cjs');
|
|
5
|
+
require('../chunk-CDWLZQQW.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 chunkMXPBHDOI_cjs.ExpoArkProvider; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "ExpoIndexerProvider", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkMXPBHDOI_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-Cgsd9tMd.cjs';
|
|
2
|
+
export { n as ArkProvider, o as IndexerProvider } from '../ark-Cgsd9tMd.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-Cgsd9tMd.js';
|
|
2
|
+
export { n as ArkProvider, o as IndexerProvider } from '../ark-Cgsd9tMd.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-VNDVUM2W.js';
|
|
2
|
+
import '../chunk-NN7BNNF5.js';
|
|
3
|
+
import '../chunk-IFGN2GB2.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 chunkENRRZFZ4_cjs = require('../chunk-ENRRZFZ4.cjs');
|
|
4
|
+
require('../chunk-24YNIQSW.cjs');
|
|
5
|
+
require('../chunk-37XKN5DZ.cjs');
|
|
6
|
+
require('../chunk-CDWLZQQW.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 = chunkENRRZFZ4_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-T22257HW.js';
|
|
2
|
+
import '../chunk-NN7BNNF5.js';
|
|
3
|
+
import '../chunk-OOPDT2WV.js';
|
|
4
|
+
import '../chunk-IFGN2GB2.js';
|
|
5
5
|
import '../chunk-NSBPE2FW.js';
|
|
6
6
|
|
|
7
7
|
// src/storage/indexedDB.ts
|
|
@@ -860,8 +860,12 @@ interface SignerSet {
|
|
|
860
860
|
* Deprecated signers keyed by x-only hex, mapped to their cutoff. The cutoff
|
|
861
861
|
* is always a bigint (arkd advertises it non-nullable); `0n` means "no cutoff
|
|
862
862
|
* advertised" (→ `DUE_NOW`).
|
|
863
|
+
*
|
|
864
|
+
* Read-only: the wallet hands out its live `_deprecatedSigners` here rather
|
|
865
|
+
* than a copy, and that map drives coin selection and the pendingRecovery
|
|
866
|
+
* balance bucket. A holder must not write through it.
|
|
863
867
|
*/
|
|
864
|
-
deprecated:
|
|
868
|
+
deprecated: ReadonlyMap<string, bigint>;
|
|
865
869
|
}
|
|
866
870
|
/**
|
|
867
871
|
* Normalize a server signer pubkey hex to the x-only (32-byte) form contract
|
|
@@ -3527,7 +3531,25 @@ declare class ActivityRegistry {
|
|
|
3527
3531
|
}
|
|
3528
3532
|
/** Built-in resolver: labels on-chain boarding (deposit) transactions. */
|
|
3529
3533
|
declare function boardingResolver(): ActivityResolver;
|
|
3530
|
-
/**
|
|
3534
|
+
/** Built-in resolver: labels collaborative exits (VTXOs forfeited to chain in a batch). */
|
|
3535
|
+
declare function collabExitResolver(): ActivityResolver;
|
|
3536
|
+
/**
|
|
3537
|
+
* Built-in resolver: labels the genesis transaction of a minted asset — "Asset
|
|
3538
|
+
* mint" on the issuer's sent tx, "Asset receive" when the fresh supply arrives
|
|
3539
|
+
* in the genesis tx itself. An asset id encodes its genesis txid; reissues and
|
|
3540
|
+
* transfers carry the asset under a different `arkTxid`, so they are left plain.
|
|
3541
|
+
*
|
|
3542
|
+
* `metadata.amount` is the decimal string of the asset's `bigint` amount, kept
|
|
3543
|
+
* as a string so large supplies survive JSON round-trips without truncation.
|
|
3544
|
+
* Recover the value with `BigInt(metadata.amount as string)` — using it
|
|
3545
|
+
* directly in arithmetic coerces (`"10" + 1` is `"101"`, not `11`) and loses
|
|
3546
|
+
* precision past `Number.MAX_SAFE_INTEGER`.
|
|
3547
|
+
*/
|
|
3548
|
+
declare function assetMintResolver(): ActivityResolver;
|
|
3549
|
+
/**
|
|
3550
|
+
* A registry pre-populated with the SDK's built-in resolvers: `boarding`,
|
|
3551
|
+
* `collab-exit`, and `asset-mint`.
|
|
3552
|
+
*/
|
|
3531
3553
|
declare function createDefaultActivityRegistry(): ActivityRegistry;
|
|
3532
3554
|
|
|
3533
3555
|
/**
|
|
@@ -4195,6 +4217,15 @@ interface TxKey {
|
|
|
4195
4217
|
/** Arkade transaction id, when applicable. */
|
|
4196
4218
|
arkTxid: string;
|
|
4197
4219
|
}
|
|
4220
|
+
/** The categories the history builder itself assigns. */
|
|
4221
|
+
type BuiltinTxTag = "offchain" | "boarding" | "exit" | "batch";
|
|
4222
|
+
/**
|
|
4223
|
+
* The category the history builder assigns to a transaction. The `(string & {})`
|
|
4224
|
+
* arm keeps the union open — apps and resolvers can introduce their own
|
|
4225
|
+
* categories without a breaking change — while preserving editor autocomplete
|
|
4226
|
+
* for the built-in four.
|
|
4227
|
+
*/
|
|
4228
|
+
type TxTag = BuiltinTxTag | (string & {});
|
|
4198
4229
|
/**
|
|
4199
4230
|
* Wallet transaction history entry.
|
|
4200
4231
|
*
|
|
@@ -4214,6 +4245,12 @@ interface ArkTransaction {
|
|
|
4214
4245
|
createdAt: number;
|
|
4215
4246
|
/** Assets sent or received by this transaction, if any. */
|
|
4216
4247
|
assets?: Asset[];
|
|
4248
|
+
/**
|
|
4249
|
+
* The {@link TxTag} category assigned by the history builder. Always set on
|
|
4250
|
+
* transactions returned by the wallet's `getTransactionHistory()`; optional
|
|
4251
|
+
* only because a hand-built `ArkTransaction` may omit it.
|
|
4252
|
+
*/
|
|
4253
|
+
tag?: TxTag;
|
|
4217
4254
|
}
|
|
4218
4255
|
/**
|
|
4219
4256
|
* Tapleaves required to spend or settle a wallet output.
|
|
@@ -5167,4 +5204,4 @@ declare namespace ProtoTypes {
|
|
|
5167
5204
|
export { };
|
|
5168
5205
|
}
|
|
5169
5206
|
|
|
5170
|
-
export { type
|
|
5207
|
+
export { type IReadonlyWallet 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 SignerSet as J, type BatchStartedEvent as K, type TreeSigningStartedEvent as L, TxTree as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, type TreeNoncesEvent as P, type BatchFinalizationEvent as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotification as T, type BatchFinalizedEvent as U, VtxoScript as V, type WalletRepository as W, type BatchFailedEvent as X, type TreeTxEvent as Y, type TreeSignatureEvent as Z, type DescriptorProvider as _, type Identity as a, type BatchSignableIdentity as a$, type ReadonlyIdentity as a0, type Network as a1, type OnchainProvider as a2, type DelegateProvider as a3, type ReadonlyWalletConfig as a4, type ExitCaptureMode as a5, type ExitDataSource as a6, type IReadonlyAssetManager as a7, type ContractSyncState as a8, type NetworkName 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, type BaseWalletConfig as aZ, type BatchInfo as a_, type ArkInfo as aa, ArkAddress as ab, type Coin as ac, ContractManager as ad, type ContractManagerConfig as ae, CSVMultisigTapscript 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 VirtualStatus as b$, CLTVMultisigTapscript as b0, type CandidateDeps as b1, ChainTxType as b2, type CommitmentTx as b3, ConditionCSVMultisigTapscript as b4, ConditionMultisigTapscript as b5, type ContractBalance as b6, type ContractEventCallback as b7, type ContractHandler as b8, type ContractState as b9, type Nonces as bA, type Output as bB, type PageResponse as bC, type PaginationOptions as bD, PartialSig as bE, type ProviderClass as bF, RestDelegateProvider as bG, RestDelegatorProvider as bH, type ScanContractsOptions as bI, type ScanResult as bJ, type ScheduledSession as bK, SettlementEventType as bL, type SignRequest as bM, type SignerClassification as bN, type SubscriptionEvent as bO, type SubscriptionHeartbeat as bP, type TapLeaves as bQ, TapTreeCoder as bR, TapscriptType as bS, type TreeNonces as bT, type TreePartialSigs as bU, type Tx as bV, type TxHistoryRecord as bW, type TxKey as bX, type TxTag as bY, type TxTreeNode as bZ, TxType as b_, type ContractVtxo as ba, ContractWatcher as bb, DelegateManagerImpl as bc, type DelegateOptions as bd, DelegatorManagerImpl as be, type DelegatorProvider as bf, type DeprecatedSignerMigrationReport as bg, type DeprecatedSignerReport as bh, DigestMismatchError as bi, type Discoverable as bj, type DiscoveredContract as bk, type DiscoveryDeps as bl, ESPLORA_URL as bm, EsploraProvider as bn, type ExitChainResolver as bo, type ExtendedContractVtxo as bp, type GroupMembership as bq, type HandlerError as br, type IDelegatorManager as bs, INTENT_TERMINAL_STATES as bt, IndexerTxType as bu, type KnownMetadata as bv, type MigrateDeprecatedSignerOptions as bw, type MigrationLegReport as bx, type MigrationVtxoRef as by, MultisigTapscript as bz, type WalletBalance as c, type Vtxo as c0, type VtxoChain as c1, type VtxoType as c2, type WalletMode as c3, assetMintResolver as c4, boardingResolver as c5, canRecoverOnchain as c6, canSpendOffchain as c7, classifyAgainstSignerSet as c8, classifyContractSigner as c9, collabExitResolver as ca, createDefaultActivityRegistry as cb, createExitChainResolver as cc, decodeTapscript as cd, getNetwork as ce, getSequence as cf, hasCandidates as cg, hasTerminalSpend as ch, isBatchSignable as ci, isCooperativelyMigratable as cj, isDiscoverable as ck, isExpired as cl, isPastExpiry as cm, isRecoverable as cn, isSpendable as co, isSubdust as cp, isTerminalIntentState as cq, isVirtualCoin as cr, isVtxoExpiringSoon as cs, networks as ct, scriptFromTapLeafScript as cu, signerSetFromInfo as cv, toXOnlySignerHex as cw, type TapscriptDeriving as cx, 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 };
|
|
@@ -860,8 +860,12 @@ interface SignerSet {
|
|
|
860
860
|
* Deprecated signers keyed by x-only hex, mapped to their cutoff. The cutoff
|
|
861
861
|
* is always a bigint (arkd advertises it non-nullable); `0n` means "no cutoff
|
|
862
862
|
* advertised" (→ `DUE_NOW`).
|
|
863
|
+
*
|
|
864
|
+
* Read-only: the wallet hands out its live `_deprecatedSigners` here rather
|
|
865
|
+
* than a copy, and that map drives coin selection and the pendingRecovery
|
|
866
|
+
* balance bucket. A holder must not write through it.
|
|
863
867
|
*/
|
|
864
|
-
deprecated:
|
|
868
|
+
deprecated: ReadonlyMap<string, bigint>;
|
|
865
869
|
}
|
|
866
870
|
/**
|
|
867
871
|
* Normalize a server signer pubkey hex to the x-only (32-byte) form contract
|
|
@@ -3527,7 +3531,25 @@ declare class ActivityRegistry {
|
|
|
3527
3531
|
}
|
|
3528
3532
|
/** Built-in resolver: labels on-chain boarding (deposit) transactions. */
|
|
3529
3533
|
declare function boardingResolver(): ActivityResolver;
|
|
3530
|
-
/**
|
|
3534
|
+
/** Built-in resolver: labels collaborative exits (VTXOs forfeited to chain in a batch). */
|
|
3535
|
+
declare function collabExitResolver(): ActivityResolver;
|
|
3536
|
+
/**
|
|
3537
|
+
* Built-in resolver: labels the genesis transaction of a minted asset — "Asset
|
|
3538
|
+
* mint" on the issuer's sent tx, "Asset receive" when the fresh supply arrives
|
|
3539
|
+
* in the genesis tx itself. An asset id encodes its genesis txid; reissues and
|
|
3540
|
+
* transfers carry the asset under a different `arkTxid`, so they are left plain.
|
|
3541
|
+
*
|
|
3542
|
+
* `metadata.amount` is the decimal string of the asset's `bigint` amount, kept
|
|
3543
|
+
* as a string so large supplies survive JSON round-trips without truncation.
|
|
3544
|
+
* Recover the value with `BigInt(metadata.amount as string)` — using it
|
|
3545
|
+
* directly in arithmetic coerces (`"10" + 1` is `"101"`, not `11`) and loses
|
|
3546
|
+
* precision past `Number.MAX_SAFE_INTEGER`.
|
|
3547
|
+
*/
|
|
3548
|
+
declare function assetMintResolver(): ActivityResolver;
|
|
3549
|
+
/**
|
|
3550
|
+
* A registry pre-populated with the SDK's built-in resolvers: `boarding`,
|
|
3551
|
+
* `collab-exit`, and `asset-mint`.
|
|
3552
|
+
*/
|
|
3531
3553
|
declare function createDefaultActivityRegistry(): ActivityRegistry;
|
|
3532
3554
|
|
|
3533
3555
|
/**
|
|
@@ -4195,6 +4217,15 @@ interface TxKey {
|
|
|
4195
4217
|
/** Arkade transaction id, when applicable. */
|
|
4196
4218
|
arkTxid: string;
|
|
4197
4219
|
}
|
|
4220
|
+
/** The categories the history builder itself assigns. */
|
|
4221
|
+
type BuiltinTxTag = "offchain" | "boarding" | "exit" | "batch";
|
|
4222
|
+
/**
|
|
4223
|
+
* The category the history builder assigns to a transaction. The `(string & {})`
|
|
4224
|
+
* arm keeps the union open — apps and resolvers can introduce their own
|
|
4225
|
+
* categories without a breaking change — while preserving editor autocomplete
|
|
4226
|
+
* for the built-in four.
|
|
4227
|
+
*/
|
|
4228
|
+
type TxTag = BuiltinTxTag | (string & {});
|
|
4198
4229
|
/**
|
|
4199
4230
|
* Wallet transaction history entry.
|
|
4200
4231
|
*
|
|
@@ -4214,6 +4245,12 @@ interface ArkTransaction {
|
|
|
4214
4245
|
createdAt: number;
|
|
4215
4246
|
/** Assets sent or received by this transaction, if any. */
|
|
4216
4247
|
assets?: Asset[];
|
|
4248
|
+
/**
|
|
4249
|
+
* The {@link TxTag} category assigned by the history builder. Always set on
|
|
4250
|
+
* transactions returned by the wallet's `getTransactionHistory()`; optional
|
|
4251
|
+
* only because a hand-built `ArkTransaction` may omit it.
|
|
4252
|
+
*/
|
|
4253
|
+
tag?: TxTag;
|
|
4217
4254
|
}
|
|
4218
4255
|
/**
|
|
4219
4256
|
* Tapleaves required to spend or settle a wallet output.
|
|
@@ -5167,4 +5204,4 @@ declare namespace ProtoTypes {
|
|
|
5167
5204
|
export { };
|
|
5168
5205
|
}
|
|
5169
5206
|
|
|
5170
|
-
export { type
|
|
5207
|
+
export { type IReadonlyWallet 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 SignerSet as J, type BatchStartedEvent as K, type TreeSigningStartedEvent as L, TxTree as M, type NormalizedExtendedVirtualCoin as N, type Outpoint as O, type TreeNoncesEvent as P, type BatchFinalizationEvent as Q, type Recipient as R, type SendBitcoinParams as S, type TxNotification as T, type BatchFinalizedEvent as U, VtxoScript as V, type WalletRepository as W, type BatchFailedEvent as X, type TreeTxEvent as Y, type TreeSignatureEvent as Z, type DescriptorProvider as _, type Identity as a, type BatchSignableIdentity as a$, type ReadonlyIdentity as a0, type Network as a1, type OnchainProvider as a2, type DelegateProvider as a3, type ReadonlyWalletConfig as a4, type ExitCaptureMode as a5, type ExitDataSource as a6, type IReadonlyAssetManager as a7, type ContractSyncState as a8, type NetworkName 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, type BaseWalletConfig as aZ, type BatchInfo as a_, type ArkInfo as aa, ArkAddress as ab, type Coin as ac, ContractManager as ad, type ContractManagerConfig as ae, CSVMultisigTapscript 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 VirtualStatus as b$, CLTVMultisigTapscript as b0, type CandidateDeps as b1, ChainTxType as b2, type CommitmentTx as b3, ConditionCSVMultisigTapscript as b4, ConditionMultisigTapscript as b5, type ContractBalance as b6, type ContractEventCallback as b7, type ContractHandler as b8, type ContractState as b9, type Nonces as bA, type Output as bB, type PageResponse as bC, type PaginationOptions as bD, PartialSig as bE, type ProviderClass as bF, RestDelegateProvider as bG, RestDelegatorProvider as bH, type ScanContractsOptions as bI, type ScanResult as bJ, type ScheduledSession as bK, SettlementEventType as bL, type SignRequest as bM, type SignerClassification as bN, type SubscriptionEvent as bO, type SubscriptionHeartbeat as bP, type TapLeaves as bQ, TapTreeCoder as bR, TapscriptType as bS, type TreeNonces as bT, type TreePartialSigs as bU, type Tx as bV, type TxHistoryRecord as bW, type TxKey as bX, type TxTag as bY, type TxTreeNode as bZ, TxType as b_, type ContractVtxo as ba, ContractWatcher as bb, DelegateManagerImpl as bc, type DelegateOptions as bd, DelegatorManagerImpl as be, type DelegatorProvider as bf, type DeprecatedSignerMigrationReport as bg, type DeprecatedSignerReport as bh, DigestMismatchError as bi, type Discoverable as bj, type DiscoveredContract as bk, type DiscoveryDeps as bl, ESPLORA_URL as bm, EsploraProvider as bn, type ExitChainResolver as bo, type ExtendedContractVtxo as bp, type GroupMembership as bq, type HandlerError as br, type IDelegatorManager as bs, INTENT_TERMINAL_STATES as bt, IndexerTxType as bu, type KnownMetadata as bv, type MigrateDeprecatedSignerOptions as bw, type MigrationLegReport as bx, type MigrationVtxoRef as by, MultisigTapscript as bz, type WalletBalance as c, type Vtxo as c0, type VtxoChain as c1, type VtxoType as c2, type WalletMode as c3, assetMintResolver as c4, boardingResolver as c5, canRecoverOnchain as c6, canSpendOffchain as c7, classifyAgainstSignerSet as c8, classifyContractSigner as c9, collabExitResolver as ca, createDefaultActivityRegistry as cb, createExitChainResolver as cc, decodeTapscript as cd, getNetwork as ce, getSequence as cf, hasCandidates as cg, hasTerminalSpend as ch, isBatchSignable as ci, isCooperativelyMigratable as cj, isDiscoverable as ck, isExpired as cl, isPastExpiry as cm, isRecoverable as cn, isSpendable as co, isSubdust as cp, isTerminalIntentState as cq, isVirtualCoin as cr, isVtxoExpiringSoon as cs, networks as ct, scriptFromTapLeafScript as cu, signerSetFromInfo as cv, toXOnlySignerHex as cw, type TapscriptDeriving as cx, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-BG1PRFps.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Minimal async key-value storage interface.
|
|
@@ -46,4 +46,4 @@ declare class AsyncStorageTaskQueue implements TaskQueue {
|
|
|
46
46
|
private writeList;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-C46NnRsY.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Minimal async key-value storage interface.
|
|
@@ -46,4 +46,4 @@ declare class AsyncStorageTaskQueue implements TaskQueue {
|
|
|
46
46
|
private writeList;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCDWLZQQW_cjs = require('./chunk-CDWLZQQW.cjs');
|
|
4
4
|
var chunk5BLDMQED_cjs = require('./chunk-5BLDMQED.cjs');
|
|
5
5
|
var base = require('@scure/base');
|
|
6
6
|
var secp256k1_js = require('@noble/curves/secp256k1.js');
|
|
@@ -1282,10 +1282,10 @@ async function indexerFetch(input, init) {
|
|
|
1282
1282
|
const lastAttempt = attempt >= maxAttempts;
|
|
1283
1283
|
let res;
|
|
1284
1284
|
try {
|
|
1285
|
-
res = await
|
|
1285
|
+
res = await chunkCDWLZQQW_cjs.rateGate.runHttp(input, () => chunkCDWLZQQW_cjs.baseFetch(input, init));
|
|
1286
1286
|
} catch (err) {
|
|
1287
|
-
const mapped =
|
|
1288
|
-
if (lastAttempt || !(mapped instanceof
|
|
1287
|
+
const mapped = chunkCDWLZQQW_cjs.toProviderUnavailable(err, "indexer");
|
|
1288
|
+
if (lastAttempt || !(mapped instanceof chunkCDWLZQQW_cjs.ProviderUnavailableError)) throw mapped;
|
|
1289
1289
|
await sleep(retryDelayMs(attempt));
|
|
1290
1290
|
continue;
|
|
1291
1291
|
}
|
|
@@ -1297,7 +1297,7 @@ async function indexerFetch(input, init) {
|
|
|
1297
1297
|
body = void 0;
|
|
1298
1298
|
}
|
|
1299
1299
|
try {
|
|
1300
|
-
|
|
1300
|
+
chunkCDWLZQQW_cjs.throwIfHttpUnavailable(res, "indexer", body);
|
|
1301
1301
|
} catch (err) {
|
|
1302
1302
|
if (lastAttempt) throw err;
|
|
1303
1303
|
await sleep(retryDelayMs(attempt));
|
|
@@ -1325,7 +1325,7 @@ var ChainTxType = /* @__PURE__ */ ((ChainTxType2) => {
|
|
|
1325
1325
|
return ChainTxType2;
|
|
1326
1326
|
})(ChainTxType || {});
|
|
1327
1327
|
var RestIndexerProvider = class {
|
|
1328
|
-
constructor(serverUrl =
|
|
1328
|
+
constructor(serverUrl = chunkCDWLZQQW_cjs.DEFAULT_ARKADE_SERVER_URL) {
|
|
1329
1329
|
this.serverUrl = serverUrl;
|
|
1330
1330
|
}
|
|
1331
1331
|
serverUrl;
|
|
@@ -1457,7 +1457,7 @@ var RestIndexerProvider = class {
|
|
|
1457
1457
|
try {
|
|
1458
1458
|
while (!abortSignal?.aborted) {
|
|
1459
1459
|
try {
|
|
1460
|
-
const currentIterator =
|
|
1460
|
+
const currentIterator = chunkCDWLZQQW_cjs.eventSourceIterator(new EventSource(url));
|
|
1461
1461
|
iterator = currentIterator;
|
|
1462
1462
|
for await (const event of currentIterator) {
|
|
1463
1463
|
if (abortSignal?.aborted) break;
|
|
@@ -1467,9 +1467,9 @@ var RestIndexerProvider = class {
|
|
|
1467
1467
|
yield {
|
|
1468
1468
|
txid: data.event.txid,
|
|
1469
1469
|
scripts: data.event.scripts || [],
|
|
1470
|
-
newVtxos: (data.event.newVtxos || []).map(
|
|
1471
|
-
spentVtxos: (data.event.spentVtxos || []).map(
|
|
1472
|
-
sweptVtxos: (data.event.sweptVtxos || []).map(
|
|
1470
|
+
newVtxos: (data.event.newVtxos || []).map(chunkCDWLZQQW_cjs.convertVtxo),
|
|
1471
|
+
spentVtxos: (data.event.spentVtxos || []).map(chunkCDWLZQQW_cjs.convertVtxo),
|
|
1472
|
+
sweptVtxos: (data.event.sweptVtxos || []).map(chunkCDWLZQQW_cjs.convertVtxo),
|
|
1473
1473
|
tx: data.event.tx,
|
|
1474
1474
|
checkpointTxs: data.event.checkpointTxs
|
|
1475
1475
|
};
|
|
@@ -1483,11 +1483,11 @@ var RestIndexerProvider = class {
|
|
|
1483
1483
|
if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
1484
1484
|
break;
|
|
1485
1485
|
}
|
|
1486
|
-
if (
|
|
1486
|
+
if (chunkCDWLZQQW_cjs.isFetchTimeoutError(error)) {
|
|
1487
1487
|
console.debug("Timeout error ignored");
|
|
1488
1488
|
continue;
|
|
1489
1489
|
}
|
|
1490
|
-
if (
|
|
1490
|
+
if (chunkCDWLZQQW_cjs.isEventSourceError(error)) {
|
|
1491
1491
|
throw error;
|
|
1492
1492
|
}
|
|
1493
1493
|
console.error("Subscription error:", error);
|
|
@@ -1615,7 +1615,7 @@ var RestIndexerProvider = class {
|
|
|
1615
1615
|
throw new Error("Invalid vtxos data received");
|
|
1616
1616
|
}
|
|
1617
1617
|
return {
|
|
1618
|
-
vtxos: data.vtxos.map(
|
|
1618
|
+
vtxos: data.vtxos.map(chunkCDWLZQQW_cjs.convertVtxo),
|
|
1619
1619
|
page: data.page
|
|
1620
1620
|
};
|
|
1621
1621
|
}
|
|
@@ -1797,5 +1797,5 @@ exports.Metadata = Metadata;
|
|
|
1797
1797
|
exports.Packet = Packet;
|
|
1798
1798
|
exports.RestIndexerProvider = RestIndexerProvider;
|
|
1799
1799
|
exports.asset_exports = asset_exports;
|
|
1800
|
-
//# sourceMappingURL=chunk-
|
|
1801
|
-
//# sourceMappingURL=chunk-
|
|
1800
|
+
//# sourceMappingURL=chunk-24YNIQSW.cjs.map
|
|
1801
|
+
//# sourceMappingURL=chunk-24YNIQSW.cjs.map
|