@arkade-os/sdk 0.5.14 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -1
- package/dist/adapters/expo.cjs +6 -6
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/artifact-DA5YHM2k.d.cts +87 -0
- package/dist/artifact-DacurepK.d.ts +87 -0
- package/dist/{asyncStorageTaskQueue-p7zeFhA3.d.ts → asyncStorageTaskQueue-B3umqlkb.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-DzO5SBcm.d.cts → asyncStorageTaskQueue-Dq6AJHNv.d.cts} +2 -2
- package/dist/{chunk-MEIE2AEU.cjs → chunk-35GRSVCZ.cjs} +11 -11
- package/dist/{chunk-MEIE2AEU.cjs.map → chunk-35GRSVCZ.cjs.map} +1 -1
- package/dist/{chunk-X57WKONW.js → chunk-43APGKWL.js} +130 -22
- package/dist/chunk-43APGKWL.js.map +1 -0
- package/dist/{chunk-LQH7DACV.cjs → chunk-CMFRCBZW.cjs} +866 -615
- package/dist/chunk-CMFRCBZW.cjs.map +1 -0
- package/dist/{chunk-6J4GABF7.cjs → chunk-FKHUXSYW.cjs} +3 -3
- package/dist/chunk-FKHUXSYW.cjs.map +1 -0
- package/dist/{chunk-AZHBGWVC.js → chunk-HVUZKXB2.js} +4 -4
- package/dist/{chunk-AZHBGWVC.js.map → chunk-HVUZKXB2.js.map} +1 -1
- package/dist/{chunk-EVVLVFY7.cjs → chunk-INQAIZUO.cjs} +17 -17
- package/dist/{chunk-EVVLVFY7.cjs.map → chunk-INQAIZUO.cjs.map} +1 -1
- package/dist/{chunk-7LPT6AYH.cjs → chunk-JSYS2KX3.cjs} +18 -18
- package/dist/{chunk-7LPT6AYH.cjs.map → chunk-JSYS2KX3.cjs.map} +1 -1
- package/dist/{chunk-4HZQSKWG.js → chunk-R37I633T.js} +22 -17
- package/dist/chunk-R37I633T.js.map +1 -0
- package/dist/{chunk-ACIQZLWL.cjs → chunk-UNLH3NNG.cjs} +129 -20
- package/dist/chunk-UNLH3NNG.cjs.map +1 -0
- package/dist/{chunk-XZHTYYW5.cjs → chunk-VIQF74QJ.cjs} +38 -33
- package/dist/chunk-VIQF74QJ.cjs.map +1 -0
- package/dist/{chunk-LCGRZ24T.js → chunk-XPZ7TMXH.js} +4 -4
- package/dist/{chunk-LCGRZ24T.js.map → chunk-XPZ7TMXH.js.map} +1 -1
- package/dist/{chunk-72EC3ASW.js → chunk-YYSHQPCG.js} +3 -3
- package/dist/{chunk-72EC3ASW.js.map → chunk-YYSHQPCG.js.map} +1 -1
- package/dist/{chunk-J2JZZTOE.js → chunk-Z4LG3CZ4.js} +3 -3
- package/dist/chunk-Z4LG3CZ4.js.map +1 -0
- package/dist/{chunk-HWWSLCQN.js → chunk-ZECZ2MKX.js} +344 -93
- package/dist/chunk-ZECZ2MKX.js.map +1 -0
- package/dist/compiler.cjs +5 -5
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +9 -9
- package/dist/compiler.d.ts +9 -9
- package/dist/compiler.js +5 -5
- package/dist/compiler.js.map +1 -1
- package/dist/contracts/handlers/index.cjs +11 -11
- package/dist/contracts/handlers/index.d.cts +2 -2
- package/dist/contracts/handlers/index.d.ts +2 -2
- package/dist/contracts/handlers/index.js +3 -3
- package/dist/{index-Cy57QdcL.d.cts → index-Bi22mLsh.d.cts} +147 -43
- package/dist/{index-CaOBA9Ev.d.ts → index-CiLMmCHX.d.ts} +1 -1
- package/dist/{index-Db5qzYRi.d.ts → index-DOdoDqvM.d.ts} +147 -43
- package/dist/{index-Lq_u0hqj.d.cts → index-DnKugm-h.d.cts} +1 -1
- package/dist/index.cjs +327 -327
- package/dist/index.d.cts +32 -66
- package/dist/index.d.ts +32 -66
- package/dist/index.js +5 -5
- package/dist/repositories/realm/index.cjs +38 -38
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +6 -6
- package/dist/repositories/sqlite/index.cjs +36 -36
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +6 -6
- package/dist/{taskRunner-amPuilMW.d.ts → taskRunner-CoE4Xx9K.d.ts} +2 -2
- package/dist/{taskRunner-DhZ-KQBW.d.cts → taskRunner-DFG0BN_R.d.cts} +2 -2
- package/dist/wallet/expo/background.cjs +15 -15
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +7 -7
- package/dist/wallet/expo/index.cjs +19 -16
- package/dist/wallet/expo/index.cjs.map +1 -1
- package/dist/wallet/expo/index.d.cts +3 -2
- package/dist/wallet/expo/index.d.ts +3 -2
- package/dist/wallet/expo/index.js +9 -6
- package/dist/wallet/expo/index.js.map +1 -1
- package/dist/worker/expo/index.cjs +10 -10
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +6 -6
- package/package.json +3 -3
- package/dist/chunk-4HZQSKWG.js.map +0 -1
- package/dist/chunk-6J4GABF7.cjs.map +0 -1
- package/dist/chunk-ACIQZLWL.cjs.map +0 -1
- package/dist/chunk-HWWSLCQN.js.map +0 -1
- package/dist/chunk-J2JZZTOE.js.map +0 -1
- package/dist/chunk-LQH7DACV.cjs.map +0 -1
- package/dist/chunk-X57WKONW.js.map +0 -1
- package/dist/chunk-XZHTYYW5.cjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
var
|
|
3
|
+
var chunkCMFRCBZW_cjs = require('../../chunk-CMFRCBZW.cjs');
|
|
4
|
+
require('../../chunk-JSYS2KX3.cjs');
|
|
5
|
+
require('../../chunk-VIQF74QJ.cjs');
|
|
6
|
+
require('../../chunk-UNLH3NNG.cjs');
|
|
7
|
+
var chunkFKHUXSYW_cjs = require('../../chunk-FKHUXSYW.cjs');
|
|
8
8
|
require('../../chunk-6TBTL42M.cjs');
|
|
9
9
|
|
|
10
10
|
// src/repositories/realm/walletRepository.ts
|
|
@@ -41,7 +41,7 @@ var RealmWalletRepository = class {
|
|
|
41
41
|
await this.ensureInit();
|
|
42
42
|
this.realm.write(() => {
|
|
43
43
|
for (const vtxo of vtxos) {
|
|
44
|
-
const s =
|
|
44
|
+
const s = chunkCMFRCBZW_cjs.serializeVtxo(vtxo);
|
|
45
45
|
this.realm.create(
|
|
46
46
|
"ArkVtxo",
|
|
47
47
|
{
|
|
@@ -56,7 +56,7 @@ var RealmWalletRepository = class {
|
|
|
56
56
|
intentCb: s.intentTapLeafScript.cb,
|
|
57
57
|
intentS: s.intentTapLeafScript.s,
|
|
58
58
|
statusJson: JSON.stringify(s.status),
|
|
59
|
-
createdAt:
|
|
59
|
+
createdAt: chunkCMFRCBZW_cjs.createdAtToIso(s.createdAt),
|
|
60
60
|
isUnrolled: s.isUnrolled ?? false,
|
|
61
61
|
isSpent: s.isSpent === void 0 ? null : s.isSpent,
|
|
62
62
|
isSwept: s.isSwept === void 0 ? null : s.isSwept,
|
|
@@ -80,7 +80,7 @@ var RealmWalletRepository = class {
|
|
|
80
80
|
return this.deleteWhere("ArkVtxo", "address", address);
|
|
81
81
|
}
|
|
82
82
|
async getVtxosForScriptPage(script, page, options) {
|
|
83
|
-
|
|
83
|
+
chunkCMFRCBZW_cjs.assertPageRequest(page);
|
|
84
84
|
await this.ensureInit();
|
|
85
85
|
let results = this.realm.objects("ArkVtxo").filtered("script == $0", script);
|
|
86
86
|
if (options?.unspentOnly) {
|
|
@@ -107,15 +107,15 @@ var RealmWalletRepository = class {
|
|
|
107
107
|
rows.push({ address: row.address, vtxo: vtxoObjectToDomain(row) });
|
|
108
108
|
if (rows.length > page.limit) break;
|
|
109
109
|
}
|
|
110
|
-
const result =
|
|
110
|
+
const result = chunkCMFRCBZW_cjs.pageResult(rows, page.limit, (row) => ({
|
|
111
111
|
address: row.address,
|
|
112
112
|
txid: row.vtxo.txid,
|
|
113
113
|
vout: row.vtxo.vout
|
|
114
114
|
}));
|
|
115
|
-
return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !
|
|
115
|
+
return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !chunkFKHUXSYW_cjs.isVtxoSpent(row.vtxo)) } : result;
|
|
116
116
|
}
|
|
117
117
|
async saveVtxosForScript(key, vtxos) {
|
|
118
|
-
return this.saveVtxos(
|
|
118
|
+
return this.saveVtxos(chunkCMFRCBZW_cjs.checkSaveVtxosForScript("RealmWalletRepository", key, vtxos), vtxos);
|
|
119
119
|
}
|
|
120
120
|
async deleteVtxosForScript(script) {
|
|
121
121
|
return this.deleteWhere("ArkVtxo", "script", script);
|
|
@@ -125,7 +125,7 @@ var RealmWalletRepository = class {
|
|
|
125
125
|
return this.pageByAddress("ArkUtxo", address, page, utxoObjectToDomain);
|
|
126
126
|
}
|
|
127
127
|
async pageByAddress(schema, address, page, deserialize) {
|
|
128
|
-
|
|
128
|
+
chunkCMFRCBZW_cjs.assertPageRequest(page);
|
|
129
129
|
await this.ensureInit();
|
|
130
130
|
let results = this.realm.objects(schema).filtered("address == $0", address);
|
|
131
131
|
if (page.after) {
|
|
@@ -143,18 +143,18 @@ var RealmWalletRepository = class {
|
|
|
143
143
|
rows.push({ key: { txid: row.txid, vout: row.vout }, item: deserialize(row) });
|
|
144
144
|
if (rows.length > page.limit) break;
|
|
145
145
|
}
|
|
146
|
-
const result =
|
|
146
|
+
const result = chunkCMFRCBZW_cjs.pageResult(rows, page.limit, (row) => row.key);
|
|
147
147
|
return { items: result.items.map((row) => row.item), nextCursor: result.nextCursor };
|
|
148
148
|
}
|
|
149
149
|
async saveUtxos(addressOrBatch, utxos) {
|
|
150
150
|
await this.ensureInit();
|
|
151
|
-
const rows =
|
|
151
|
+
const rows = chunkCMFRCBZW_cjs.utxoEntries(addressOrBatch, utxos).flatMap(
|
|
152
152
|
([address, list]) => list.map((utxo) => ({ address, utxo }))
|
|
153
153
|
);
|
|
154
154
|
if (rows.length === 0) return;
|
|
155
155
|
this.realm.write(() => {
|
|
156
156
|
for (const { address, utxo } of rows) {
|
|
157
|
-
const s =
|
|
157
|
+
const s = chunkCMFRCBZW_cjs.serializeUtxo(utxo);
|
|
158
158
|
this.realm.create(
|
|
159
159
|
"ArkUtxo",
|
|
160
160
|
{
|
|
@@ -181,8 +181,8 @@ var RealmWalletRepository = class {
|
|
|
181
181
|
}
|
|
182
182
|
// ── Transaction history ────────────────────────────────────────────
|
|
183
183
|
async getTransactionHistoryPage(filter, page) {
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
chunkCMFRCBZW_cjs.assertPageRequest(page);
|
|
185
|
+
chunkCMFRCBZW_cjs.assertHistoryPageFilter(filter);
|
|
186
186
|
let results = this.realm.objects("ArkTransaction").filtered("address == $0", filter.address);
|
|
187
187
|
results = results.filtered(
|
|
188
188
|
"createdAt >= $0",
|
|
@@ -196,12 +196,12 @@ var RealmWalletRepository = class {
|
|
|
196
196
|
["arkTxid", false]
|
|
197
197
|
])) {
|
|
198
198
|
const tx = txObjectToDomain(row);
|
|
199
|
-
if (page.after !== void 0 &&
|
|
199
|
+
if (page.after !== void 0 && chunkCMFRCBZW_cjs.compareHistoryCursors({ createdAt: tx.createdAt, key: tx.key }, page.after) <= 0)
|
|
200
200
|
continue;
|
|
201
201
|
rows.push(tx);
|
|
202
202
|
if (rows.length > page.limit) break;
|
|
203
203
|
}
|
|
204
|
-
return
|
|
204
|
+
return chunkCMFRCBZW_cjs.pageResult(rows, page.limit, (tx) => ({ createdAt: tx.createdAt, key: tx.key }));
|
|
205
205
|
}
|
|
206
206
|
async saveTransactions(address, txs) {
|
|
207
207
|
await this.ensureInit();
|
|
@@ -219,7 +219,7 @@ var RealmWalletRepository = class {
|
|
|
219
219
|
amount: tx.amount,
|
|
220
220
|
settled: tx.settled,
|
|
221
221
|
createdAt: tx.createdAt,
|
|
222
|
-
assetsJson: tx.assets ? JSON.stringify(
|
|
222
|
+
assetsJson: tx.assets ? JSON.stringify(chunkCMFRCBZW_cjs.serializeAssets(tx.assets)) : null
|
|
223
223
|
},
|
|
224
224
|
"modified"
|
|
225
225
|
);
|
|
@@ -249,7 +249,7 @@ var RealmWalletRepository = class {
|
|
|
249
249
|
settings: row.settingsJson ? JSON.parse(row.settingsJson) : void 0,
|
|
250
250
|
lastSyncTime: row.lastSyncTime ?? void 0
|
|
251
251
|
} : {};
|
|
252
|
-
const state =
|
|
252
|
+
const state = chunkCMFRCBZW_cjs.applyWalletStateUpdate(current, updater);
|
|
253
253
|
this.realm.create(
|
|
254
254
|
"ArkWalletState",
|
|
255
255
|
{
|
|
@@ -321,9 +321,9 @@ function vtxoObjectToDomain(obj) {
|
|
|
321
321
|
// Post-migration every row has `script`, but the backfill is
|
|
322
322
|
// idempotent: derive from `address` if the legacy column is still
|
|
323
323
|
// null (e.g. the migration hasn't run yet on this handle).
|
|
324
|
-
script: obj.script ??
|
|
324
|
+
script: obj.script ?? chunkCMFRCBZW_cjs.scriptFromArkAddress(obj.address)
|
|
325
325
|
};
|
|
326
|
-
return
|
|
326
|
+
return chunkCMFRCBZW_cjs.deserializeVtxo(serialized);
|
|
327
327
|
}
|
|
328
328
|
function utxoObjectToDomain(obj) {
|
|
329
329
|
const serialized = {
|
|
@@ -342,7 +342,7 @@ function utxoObjectToDomain(obj) {
|
|
|
342
342
|
status: JSON.parse(obj.statusJson),
|
|
343
343
|
extraWitness: obj.extraWitnessJson ? JSON.parse(obj.extraWitnessJson) : void 0
|
|
344
344
|
};
|
|
345
|
-
return
|
|
345
|
+
return chunkCMFRCBZW_cjs.deserializeUtxo(serialized);
|
|
346
346
|
}
|
|
347
347
|
function txObjectToDomain(obj) {
|
|
348
348
|
const tx = {
|
|
@@ -357,7 +357,7 @@ function txObjectToDomain(obj) {
|
|
|
357
357
|
createdAt: obj.createdAt
|
|
358
358
|
};
|
|
359
359
|
if (obj.assetsJson) {
|
|
360
|
-
tx.assets =
|
|
360
|
+
tx.assets = chunkCMFRCBZW_cjs.deserializeAssets(JSON.parse(obj.assetsJson));
|
|
361
361
|
}
|
|
362
362
|
return tx;
|
|
363
363
|
}
|
|
@@ -383,9 +383,9 @@ var RealmContractRepository = class {
|
|
|
383
383
|
}
|
|
384
384
|
// ── Contract management ────────────────────────────────────────────
|
|
385
385
|
async getContractsPage(filter, page) {
|
|
386
|
-
|
|
387
|
-
if (
|
|
388
|
-
const toPage = (rows) =>
|
|
386
|
+
chunkCMFRCBZW_cjs.assertPageRequest(page);
|
|
387
|
+
if (chunkCMFRCBZW_cjs.contractFilterMatchesNothing(filter)) return { items: [] };
|
|
388
|
+
const toPage = (rows) => chunkCMFRCBZW_cjs.pageResult(rows.map(contractObjectToDomain), page.limit, (contract) => contract.script);
|
|
389
389
|
if (filter?.watch === void 0 || filter.script !== void 0) {
|
|
390
390
|
return toPage(this.readRows(filter, page));
|
|
391
391
|
}
|
|
@@ -419,7 +419,7 @@ var RealmContractRepository = class {
|
|
|
419
419
|
if (query) results = results.filtered(query, ...args);
|
|
420
420
|
const rows = [];
|
|
421
421
|
for (const row of results.sorted("script")) {
|
|
422
|
-
if (filter?.scope !== void 0 && ![filter.scope].flat().includes(
|
|
422
|
+
if (filter?.scope !== void 0 && ![filter.scope].flat().includes(chunkCMFRCBZW_cjs.scopeOf(contractObjectToDomain(row))))
|
|
423
423
|
continue;
|
|
424
424
|
rows.push(row);
|
|
425
425
|
if (rows.length > page.limit) break;
|
|
@@ -549,7 +549,7 @@ var RealmBatchRegistrationRepository = class {
|
|
|
549
549
|
const clashes = [
|
|
550
550
|
...this.realm.objects("ArkIntent").filtered("intentId == $0", intent.registrationId)
|
|
551
551
|
].map(toIntent);
|
|
552
|
-
|
|
552
|
+
chunkCMFRCBZW_cjs.assertIntentIdUnique(intent, clashes);
|
|
553
553
|
}
|
|
554
554
|
this.realm.create(
|
|
555
555
|
"ArkIntent",
|
|
@@ -577,22 +577,22 @@ var RealmBatchRegistrationRepository = class {
|
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
579
|
async getBatchRegistrationsPage(filter, page) {
|
|
580
|
-
|
|
580
|
+
chunkCMFRCBZW_cjs.assertPageRequest(page);
|
|
581
581
|
let results = this.realm.objects("ArkIntent");
|
|
582
582
|
if (page.after !== void 0) results = results.filtered("intentTxId > $0", page.after);
|
|
583
583
|
const rows = [];
|
|
584
584
|
for (const row of results.sorted("intentTxId")) {
|
|
585
585
|
const intent = toIntent(row);
|
|
586
|
-
if (filter && !
|
|
586
|
+
if (filter && !chunkCMFRCBZW_cjs.intentMatchesFilter(intent, filter)) continue;
|
|
587
587
|
rows.push(intent);
|
|
588
588
|
if (rows.length > page.limit) break;
|
|
589
589
|
}
|
|
590
|
-
return
|
|
590
|
+
return chunkCMFRCBZW_cjs.pageResult(rows, page.limit, (intent) => intent.proofTxId);
|
|
591
591
|
}
|
|
592
592
|
async getLockedVtxoOutpoints() {
|
|
593
593
|
const out = [];
|
|
594
594
|
for (const o of [...this.realm.objects("ArkIntent")].map(toIntent))
|
|
595
|
-
if (!
|
|
595
|
+
if (!chunkCMFRCBZW_cjs.isTerminalBatchRegistrationState(o.state)) out.push(...o.proofInputs);
|
|
596
596
|
return out;
|
|
597
597
|
}
|
|
598
598
|
/** @deprecated Use {@link saveBatchRegistration}. */
|
|
@@ -643,7 +643,7 @@ var RealmVirtualTxRepository = class {
|
|
|
643
643
|
txid: t.txid,
|
|
644
644
|
psbt: t.psbt ?? prev?.psbt ?? null,
|
|
645
645
|
expiresAt: t.expiresAt ?? prev?.expiresAt ?? null,
|
|
646
|
-
type:
|
|
646
|
+
type: chunkCMFRCBZW_cjs.mergeChainedTxType(t.type, prev?.type)
|
|
647
647
|
},
|
|
648
648
|
"modified"
|
|
649
649
|
);
|
|
@@ -889,9 +889,9 @@ function runArkRealmMigrations(oldRealm, newRealm) {
|
|
|
889
889
|
for (let i = 0; i < newVtxos.length; i++) {
|
|
890
890
|
const newVtxo = newVtxos[i];
|
|
891
891
|
if (!newVtxo.script) {
|
|
892
|
-
newVtxo.script =
|
|
892
|
+
newVtxo.script = chunkCMFRCBZW_cjs.scriptFromArkAddress(newVtxo.address);
|
|
893
893
|
}
|
|
894
|
-
const facts =
|
|
894
|
+
const facts = chunkCMFRCBZW_cjs.legacyVtxoFacts(legacyByPk.get(newVtxo.pk));
|
|
895
895
|
if (facts) {
|
|
896
896
|
if (newVtxo.isSpent == null) newVtxo.isSpent = facts.isSpent;
|
|
897
897
|
if (newVtxo.isSwept == null) newVtxo.isSwept = facts.isSwept;
|
|
@@ -921,7 +921,7 @@ function runArkRealmMigrations(oldRealm, newRealm) {
|
|
|
921
921
|
|
|
922
922
|
Object.defineProperty(exports, "ChainedTxType", {
|
|
923
923
|
enumerable: true,
|
|
924
|
-
get: function () { return
|
|
924
|
+
get: function () { return chunkCMFRCBZW_cjs.ChainedTxType; }
|
|
925
925
|
});
|
|
926
926
|
exports.ARK_REALM_SCHEMA_VERSION = ARK_REALM_SCHEMA_VERSION;
|
|
927
927
|
exports.ArkExperimentalRealmSchemas = ArkExperimentalRealmSchemas;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, J as PageRequest, K as Outpoint, L as PageResult, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, _ as AtomicWalletState, $ as WalletState, C as ContractRepository, a0 as ContractFilter, D as Contract, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch } from '../../index-
|
|
2
|
-
export { a7 as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, J as PageRequest, K as Outpoint, L as PageResult, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, _ as AtomicWalletState, $ as WalletState, C as ContractRepository, a0 as ContractFilter, D as Contract, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch } from '../../index-Bi22mLsh.cjs';
|
|
2
|
+
export { a7 as ChainedTxType } from '../../index-Bi22mLsh.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, J as PageRequest, K as Outpoint, L as PageResult, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, _ as AtomicWalletState, $ as WalletState, C as ContractRepository, a0 as ContractFilter, D as Contract, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch } from '../../index-
|
|
2
|
-
export { a7 as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, J as PageRequest, K as Outpoint, L as PageResult, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, _ as AtomicWalletState, $ as WalletState, C as ContractRepository, a0 as ContractFilter, D as Contract, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch } from '../../index-DOdoDqvM.js';
|
|
2
|
+
export { a7 as ChainedTxType } from '../../index-DOdoDqvM.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { serializeVtxo, createdAtToIso, assertPageRequest, pageResult, checkSaveVtxosForScript, utxoEntries, serializeUtxo, assertHistoryPageFilter, compareHistoryCursors, serializeAssets, applyWalletStateUpdate, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, contractFilterMatchesNothing, scopeOf, assertIntentIdUnique, intentMatchesFilter, isTerminalBatchRegistrationState, mergeChainedTxType, legacyVtxoFacts } from '../../chunk-
|
|
2
|
-
export { ChainedTxType } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import { isVtxoSpent } from '../../chunk-
|
|
1
|
+
import { serializeVtxo, createdAtToIso, assertPageRequest, pageResult, checkSaveVtxosForScript, utxoEntries, serializeUtxo, assertHistoryPageFilter, compareHistoryCursors, serializeAssets, applyWalletStateUpdate, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, contractFilterMatchesNothing, scopeOf, assertIntentIdUnique, intentMatchesFilter, isTerminalBatchRegistrationState, mergeChainedTxType, legacyVtxoFacts } from '../../chunk-ZECZ2MKX.js';
|
|
2
|
+
export { ChainedTxType } from '../../chunk-ZECZ2MKX.js';
|
|
3
|
+
import '../../chunk-YYSHQPCG.js';
|
|
4
|
+
import '../../chunk-R37I633T.js';
|
|
5
|
+
import '../../chunk-43APGKWL.js';
|
|
6
|
+
import { isVtxoSpent } from '../../chunk-Z4LG3CZ4.js';
|
|
7
7
|
import '../../chunk-GB67AGXG.js';
|
|
8
8
|
|
|
9
9
|
// src/repositories/realm/walletRepository.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
var
|
|
3
|
+
var chunkCMFRCBZW_cjs = require('../../chunk-CMFRCBZW.cjs');
|
|
4
|
+
require('../../chunk-JSYS2KX3.cjs');
|
|
5
|
+
require('../../chunk-VIQF74QJ.cjs');
|
|
6
|
+
require('../../chunk-UNLH3NNG.cjs');
|
|
7
|
+
var chunkFKHUXSYW_cjs = require('../../chunk-FKHUXSYW.cjs');
|
|
8
8
|
require('../../chunk-6TBTL42M.cjs');
|
|
9
9
|
|
|
10
10
|
// src/repositories/sqlite/transaction.ts
|
|
@@ -241,7 +241,7 @@ var SQLiteWalletRepository = class {
|
|
|
241
241
|
for (const row of nullRows) {
|
|
242
242
|
await tx.run(
|
|
243
243
|
`UPDATE ${this.tables.vtxos} SET script = ? WHERE txid = ? AND vout = ?`,
|
|
244
|
-
[
|
|
244
|
+
[chunkCMFRCBZW_cjs.scriptFromArkAddress(row.address), row.txid, row.vout]
|
|
245
245
|
);
|
|
246
246
|
}
|
|
247
247
|
const tempName = `${this.tables.vtxos}__migrate_tmp`;
|
|
@@ -282,7 +282,7 @@ var SQLiteWalletRepository = class {
|
|
|
282
282
|
WHERE virtual_status_json IS NOT NULL AND is_swept IS NULL`
|
|
283
283
|
);
|
|
284
284
|
for (const row of rows) {
|
|
285
|
-
const facts =
|
|
285
|
+
const facts = chunkCMFRCBZW_cjs.legacyVtxoFacts(row.virtual_status_json);
|
|
286
286
|
if (!facts) continue;
|
|
287
287
|
await tx.run(
|
|
288
288
|
`UPDATE ${this.tables.vtxos}
|
|
@@ -374,7 +374,7 @@ var SQLiteWalletRepository = class {
|
|
|
374
374
|
expires_at, expires_at_height,
|
|
375
375
|
spent_by, settled_by, ark_tx_id, extra_witness_json, assets_json, script`,
|
|
376
376
|
vtxos.map((vtxo) => {
|
|
377
|
-
const s =
|
|
377
|
+
const s = chunkCMFRCBZW_cjs.serializeVtxo(vtxo);
|
|
378
378
|
return [
|
|
379
379
|
s.txid,
|
|
380
380
|
s.vout,
|
|
@@ -386,7 +386,7 @@ var SQLiteWalletRepository = class {
|
|
|
386
386
|
s.intentTapLeafScript.cb,
|
|
387
387
|
s.intentTapLeafScript.s,
|
|
388
388
|
JSON.stringify(s.status),
|
|
389
|
-
|
|
389
|
+
chunkCMFRCBZW_cjs.createdAtToIso(s.createdAt),
|
|
390
390
|
s.isUnrolled ? 1 : 0,
|
|
391
391
|
s.isSpent === void 0 ? null : s.isSpent ? 1 : 0,
|
|
392
392
|
s.isSwept === void 0 ? null : s.isSwept ? 1 : 0,
|
|
@@ -409,7 +409,7 @@ var SQLiteWalletRepository = class {
|
|
|
409
409
|
await this.db.run(`DELETE FROM ${this.tables.vtxos} WHERE address = ?`, [address]);
|
|
410
410
|
}
|
|
411
411
|
async getVtxosForScriptPage(script, page, options) {
|
|
412
|
-
|
|
412
|
+
chunkCMFRCBZW_cjs.assertPageRequest(page);
|
|
413
413
|
await this.ensureInit();
|
|
414
414
|
const after = page.after;
|
|
415
415
|
const rows = await this.db.all(
|
|
@@ -427,15 +427,15 @@ var SQLiteWalletRepository = class {
|
|
|
427
427
|
page.limit + 1
|
|
428
428
|
] : [script, page.limit + 1]
|
|
429
429
|
);
|
|
430
|
-
const result =
|
|
430
|
+
const result = chunkCMFRCBZW_cjs.pageResult(
|
|
431
431
|
rows.map((row) => ({ address: row.address, vtxo: vtxoRowToDomain(row) })),
|
|
432
432
|
page.limit,
|
|
433
433
|
(row) => ({ address: row.address, txid: row.vtxo.txid, vout: row.vtxo.vout })
|
|
434
434
|
);
|
|
435
|
-
return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !
|
|
435
|
+
return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !chunkFKHUXSYW_cjs.isVtxoSpent(row.vtxo)) } : result;
|
|
436
436
|
}
|
|
437
437
|
async saveVtxosForScript(key, vtxos) {
|
|
438
|
-
return this.saveVtxos(
|
|
438
|
+
return this.saveVtxos(chunkCMFRCBZW_cjs.checkSaveVtxosForScript("SQLiteWalletRepository", key, vtxos), vtxos);
|
|
439
439
|
}
|
|
440
440
|
async deleteVtxosForScript(script) {
|
|
441
441
|
await this.ensureInit();
|
|
@@ -446,21 +446,21 @@ var SQLiteWalletRepository = class {
|
|
|
446
446
|
return this.pageByAddress(this.tables.utxos, address, page, utxoRowToDomain);
|
|
447
447
|
}
|
|
448
448
|
async pageByAddress(table, address, page, deserialize) {
|
|
449
|
-
|
|
449
|
+
chunkCMFRCBZW_cjs.assertPageRequest(page);
|
|
450
450
|
await this.ensureInit();
|
|
451
451
|
const rows = await this.db.all(
|
|
452
452
|
`SELECT * FROM ${table} WHERE address = ? AND (txid, vout) > (?, ?)
|
|
453
453
|
ORDER BY txid, vout LIMIT ?`,
|
|
454
454
|
[address, page.after?.txid ?? "", page.after?.vout ?? -1, page.limit + 1]
|
|
455
455
|
);
|
|
456
|
-
const result =
|
|
456
|
+
const result = chunkCMFRCBZW_cjs.pageResult(rows, page.limit, ({ txid, vout }) => ({ txid, vout }));
|
|
457
457
|
return { items: result.items.map(deserialize), nextCursor: result.nextCursor };
|
|
458
458
|
}
|
|
459
459
|
async saveUtxos(addressOrBatch, utxos) {
|
|
460
460
|
await this.ensureInit();
|
|
461
|
-
const rows =
|
|
461
|
+
const rows = chunkCMFRCBZW_cjs.utxoEntries(addressOrBatch, utxos).flatMap(
|
|
462
462
|
([address, list]) => list.map((utxo) => {
|
|
463
|
-
const s =
|
|
463
|
+
const s = chunkCMFRCBZW_cjs.serializeUtxo(utxo);
|
|
464
464
|
return [
|
|
465
465
|
s.txid,
|
|
466
466
|
s.vout,
|
|
@@ -490,8 +490,8 @@ var SQLiteWalletRepository = class {
|
|
|
490
490
|
}
|
|
491
491
|
// ── Transaction history ────────────────────────────────────────────
|
|
492
492
|
async getTransactionHistoryPage(filter, page) {
|
|
493
|
-
|
|
494
|
-
|
|
493
|
+
chunkCMFRCBZW_cjs.assertPageRequest(page);
|
|
494
|
+
chunkCMFRCBZW_cjs.assertHistoryPageFilter(filter);
|
|
495
495
|
await this.ensureInit();
|
|
496
496
|
const conditions = ["address = ?"];
|
|
497
497
|
const params = [filter.address];
|
|
@@ -515,7 +515,7 @@ var SQLiteWalletRepository = class {
|
|
|
515
515
|
ORDER BY created_at, boarding_txid, commitment_txid, ark_txid LIMIT ?`,
|
|
516
516
|
[...params, page.limit + 1]
|
|
517
517
|
);
|
|
518
|
-
return
|
|
518
|
+
return chunkCMFRCBZW_cjs.pageResult(rows.map(txRowToDomain), page.limit, (tx) => ({
|
|
519
519
|
createdAt: tx.createdAt,
|
|
520
520
|
key: tx.key
|
|
521
521
|
}));
|
|
@@ -535,7 +535,7 @@ var SQLiteWalletRepository = class {
|
|
|
535
535
|
tx.amount,
|
|
536
536
|
tx.settled ? 1 : 0,
|
|
537
537
|
tx.createdAt,
|
|
538
|
-
tx.assets ? JSON.stringify(
|
|
538
|
+
tx.assets ? JSON.stringify(chunkCMFRCBZW_cjs.serializeAssets(tx.assets)) : null
|
|
539
539
|
])
|
|
540
540
|
);
|
|
541
541
|
}
|
|
@@ -557,7 +557,7 @@ var SQLiteWalletRepository = class {
|
|
|
557
557
|
settings: row.settings_json ? JSON.parse(row.settings_json) : void 0,
|
|
558
558
|
lastSyncTime: row.last_sync_time ?? void 0
|
|
559
559
|
} : {};
|
|
560
|
-
const state =
|
|
560
|
+
const state = chunkCMFRCBZW_cjs.applyWalletStateUpdate(current, updater);
|
|
561
561
|
await tx.run(
|
|
562
562
|
`INSERT OR REPLACE INTO ${this.tables.walletState}
|
|
563
563
|
(key, settings_json, last_sync_time) VALUES (?, ?, ?)`,
|
|
@@ -630,9 +630,9 @@ function vtxoRowToDomain(row) {
|
|
|
630
630
|
// Post-migration every row has `script`, but the backfill is
|
|
631
631
|
// idempotent: derive from `address` if the legacy column is still
|
|
632
632
|
// null (e.g. the migration hasn't run yet on this handle).
|
|
633
|
-
script: row.script ??
|
|
633
|
+
script: row.script ?? chunkCMFRCBZW_cjs.scriptFromArkAddress(row.address)
|
|
634
634
|
};
|
|
635
|
-
return
|
|
635
|
+
return chunkCMFRCBZW_cjs.deserializeVtxo(serialized);
|
|
636
636
|
}
|
|
637
637
|
function utxoRowToDomain(row) {
|
|
638
638
|
const serialized = {
|
|
@@ -651,7 +651,7 @@ function utxoRowToDomain(row) {
|
|
|
651
651
|
status: JSON.parse(row.status_json),
|
|
652
652
|
extraWitness: row.extra_witness_json ? JSON.parse(row.extra_witness_json) : void 0
|
|
653
653
|
};
|
|
654
|
-
return
|
|
654
|
+
return chunkCMFRCBZW_cjs.deserializeUtxo(serialized);
|
|
655
655
|
}
|
|
656
656
|
function txRowToDomain(row) {
|
|
657
657
|
const tx = {
|
|
@@ -666,7 +666,7 @@ function txRowToDomain(row) {
|
|
|
666
666
|
createdAt: row.created_at
|
|
667
667
|
};
|
|
668
668
|
if (row.assets_json) {
|
|
669
|
-
tx.assets =
|
|
669
|
+
tx.assets = chunkCMFRCBZW_cjs.deserializeAssets(JSON.parse(row.assets_json));
|
|
670
670
|
}
|
|
671
671
|
return tx;
|
|
672
672
|
}
|
|
@@ -736,9 +736,9 @@ var SQLiteContractRepository = class {
|
|
|
736
736
|
}
|
|
737
737
|
// ── Contract management ────────────────────────────────────────────
|
|
738
738
|
async getContractsPage(filter, page) {
|
|
739
|
-
|
|
739
|
+
chunkCMFRCBZW_cjs.assertPageRequest(page);
|
|
740
740
|
await this.ensureInit();
|
|
741
|
-
if (
|
|
741
|
+
if (chunkCMFRCBZW_cjs.contractFilterMatchesNothing(filter)) return { items: [] };
|
|
742
742
|
const conditions = [];
|
|
743
743
|
const params = [];
|
|
744
744
|
if (filter) {
|
|
@@ -757,12 +757,12 @@ var SQLiteContractRepository = class {
|
|
|
757
757
|
[...params, ...after === void 0 ? [] : [after], page.limit + 1]
|
|
758
758
|
);
|
|
759
759
|
for (const contract of rows.map(contractRowToDomain)) {
|
|
760
|
-
if (!wanted || wanted.includes(
|
|
760
|
+
if (!wanted || wanted.includes(chunkCMFRCBZW_cjs.scopeOf(contract))) matches.push(contract);
|
|
761
761
|
}
|
|
762
762
|
if (!wanted || rows.length <= page.limit || matches.length > page.limit) break;
|
|
763
763
|
after = rows[rows.length - 1].script;
|
|
764
764
|
}
|
|
765
|
-
return
|
|
765
|
+
return chunkCMFRCBZW_cjs.pageResult(matches, page.limit, (contract) => contract.script);
|
|
766
766
|
}
|
|
767
767
|
async saveContract(contract) {
|
|
768
768
|
await this.ensureInit();
|
|
@@ -929,7 +929,7 @@ var SQLiteBatchRegistrationRepository = class {
|
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
931
|
async getBatchRegistrationsPage(filter, page) {
|
|
932
|
-
|
|
932
|
+
chunkCMFRCBZW_cjs.assertPageRequest(page);
|
|
933
933
|
await this.ensureInit();
|
|
934
934
|
if (filter?.states?.length === 0) return { items: [] };
|
|
935
935
|
const stateSql = filter?.states ? ` AND state IN (${filter.states.map(() => "?").join(", ")})` : "";
|
|
@@ -946,19 +946,19 @@ var SQLiteBatchRegistrationRepository = class {
|
|
|
946
946
|
for (const row of batch) {
|
|
947
947
|
after = row.intent_tx_id;
|
|
948
948
|
const intent = rowToIntent(row);
|
|
949
|
-
if (!filter ||
|
|
949
|
+
if (!filter || chunkCMFRCBZW_cjs.intentMatchesFilter(intent, filter)) rows.push(intent);
|
|
950
950
|
if (rows.length > page.limit) break;
|
|
951
951
|
}
|
|
952
952
|
if (batch.length < batchSize) break;
|
|
953
953
|
}
|
|
954
|
-
return
|
|
954
|
+
return chunkCMFRCBZW_cjs.pageResult(rows, page.limit, (intent) => intent.proofTxId);
|
|
955
955
|
}
|
|
956
956
|
async getLockedVtxoOutpoints() {
|
|
957
957
|
await this.ensureInit();
|
|
958
958
|
const rows = await this.db.all(`SELECT * FROM ${this.t}`);
|
|
959
959
|
const out = [];
|
|
960
960
|
for (const r of rows) {
|
|
961
|
-
if (
|
|
961
|
+
if (chunkCMFRCBZW_cjs.isTerminalBatchRegistrationState(r.state)) continue;
|
|
962
962
|
for (const o of JSON.parse(r.intent_vtxos_json)) out.push(o);
|
|
963
963
|
}
|
|
964
964
|
return out;
|
|
@@ -1054,7 +1054,7 @@ var SQLiteVirtualTxRepository = class {
|
|
|
1054
1054
|
const prev = prevByTxid.get(t.txid);
|
|
1055
1055
|
const psbt = t.psbt ?? prev?.psbt ?? null;
|
|
1056
1056
|
const expires = t.expiresAt ?? prev?.expires_at ?? null;
|
|
1057
|
-
const type =
|
|
1057
|
+
const type = chunkCMFRCBZW_cjs.mergeChainedTxType(t.type, prev?.type);
|
|
1058
1058
|
await tx.run(
|
|
1059
1059
|
`INSERT OR REPLACE INTO ${this.tTx} (txid, psbt, expires_at, type) VALUES (?, ?, ?, ?)`,
|
|
1060
1060
|
[t.txid, psbt, expires, type]
|
|
@@ -1140,7 +1140,7 @@ function rowToTx(r) {
|
|
|
1140
1140
|
|
|
1141
1141
|
Object.defineProperty(exports, "ChainedTxType", {
|
|
1142
1142
|
enumerable: true,
|
|
1143
|
-
get: function () { return
|
|
1143
|
+
get: function () { return chunkCMFRCBZW_cjs.ChainedTxType; }
|
|
1144
1144
|
});
|
|
1145
1145
|
exports.SQLiteBatchRegistrationRepository = SQLiteBatchRegistrationRepository;
|
|
1146
1146
|
exports.SQLiteContractRepository = SQLiteContractRepository;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, _ as AtomicWalletState, J as PageRequest, K as Outpoint, L as PageResult, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, $ as WalletState, C as ContractRepository, a0 as ContractFilter, D as Contract, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch } from '../../index-
|
|
2
|
-
export { a7 as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, _ as AtomicWalletState, J as PageRequest, K as Outpoint, L as PageResult, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, $ as WalletState, C as ContractRepository, a0 as ContractFilter, D as Contract, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch } from '../../index-Bi22mLsh.cjs';
|
|
2
|
+
export { a7 as ChainedTxType } from '../../index-Bi22mLsh.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, _ as AtomicWalletState, J as PageRequest, K as Outpoint, L as PageResult, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, $ as WalletState, C as ContractRepository, a0 as ContractFilter, D as Contract, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch } from '../../index-
|
|
2
|
-
export { a7 as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, _ as AtomicWalletState, J as PageRequest, K as Outpoint, L as PageResult, F as ExtendedVirtualCoin, M as ScriptVtxoCursor, Q as ScriptVtxoPageOptions, U as StoredVtxo, X as VtxoRepositoryKey, E as ExtendedCoin, Y as TransactionHistoryPageFilter, Z as TransactionHistoryPageCursor, j as ArkTransaction, $ as WalletState, C as ContractRepository, a0 as ContractFilter, D as Contract, a1 as BatchRegistrationRepository, a2 as BatchRegistration, a3 as BatchRegistrationPageFilter, a4 as VirtualTxRepository, a5 as VirtualTx, a6 as VtxoBranch } from '../../index-DOdoDqvM.js';
|
|
2
|
+
export { a7 as ChainedTxType } from '../../index-DOdoDqvM.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { legacyVtxoFacts, serializeVtxo, createdAtToIso, assertPageRequest, pageResult, checkSaveVtxosForScript, utxoEntries, serializeUtxo, assertHistoryPageFilter, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, contractFilterMatchesNothing, scopeOf, intentMatchesFilter, isTerminalBatchRegistrationState, applyWalletStateUpdate, mergeChainedTxType } from '../../chunk-
|
|
2
|
-
export { ChainedTxType } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import { isVtxoSpent } from '../../chunk-
|
|
1
|
+
import { legacyVtxoFacts, serializeVtxo, createdAtToIso, assertPageRequest, pageResult, checkSaveVtxosForScript, utxoEntries, serializeUtxo, assertHistoryPageFilter, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, contractFilterMatchesNothing, scopeOf, intentMatchesFilter, isTerminalBatchRegistrationState, applyWalletStateUpdate, mergeChainedTxType } from '../../chunk-ZECZ2MKX.js';
|
|
2
|
+
export { ChainedTxType } from '../../chunk-ZECZ2MKX.js';
|
|
3
|
+
import '../../chunk-YYSHQPCG.js';
|
|
4
|
+
import '../../chunk-R37I633T.js';
|
|
5
|
+
import '../../chunk-43APGKWL.js';
|
|
6
|
+
import { isVtxoSpent } from '../../chunk-Z4LG3CZ4.js';
|
|
7
7
|
import '../../chunk-GB67AGXG.js';
|
|
8
8
|
|
|
9
9
|
// src/repositories/sqlite/transaction.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository, z as IndexerProvider, B as OperatorProvider, V as VirtualCoin, D as Contract, F as ExtendedVirtualCoin } from './index-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, z as IndexerProvider, B as OperatorProvider, V as VirtualCoin, D as Contract, F as ExtendedVirtualCoin } from './index-DOdoDqvM.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A task item represents a unit of work in the inbox.
|
|
@@ -111,4 +111,4 @@ interface CreateTaskDependenciesOptions {
|
|
|
111
111
|
*/
|
|
112
112
|
declare function createTaskDependencies(options: CreateTaskDependenciesOptions): TaskDependencies;
|
|
113
113
|
|
|
114
|
-
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type
|
|
114
|
+
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type TaskDependencies as a, type TaskItem as b, type TaskQueue as c, type TaskResult as d, createTaskDependencies as e, runTasks as r };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository, z as IndexerProvider, B as OperatorProvider, V as VirtualCoin, D as Contract, F as ExtendedVirtualCoin } from './index-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, z as IndexerProvider, B as OperatorProvider, V as VirtualCoin, D as Contract, F as ExtendedVirtualCoin } from './index-Bi22mLsh.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A task item represents a unit of work in the inbox.
|
|
@@ -111,4 +111,4 @@ interface CreateTaskDependenciesOptions {
|
|
|
111
111
|
*/
|
|
112
112
|
declare function createTaskDependencies(options: CreateTaskDependenciesOptions): TaskDependencies;
|
|
113
113
|
|
|
114
|
-
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type
|
|
114
|
+
export { type CreateTaskDependenciesOptions as C, InMemoryTaskQueue as I, type TaskProcessor as T, type TaskDependencies as a, type TaskItem as b, type TaskQueue as c, type TaskResult as d, createTaskDependencies as e, runTasks as r };
|