@arkade-os/sdk 0.5.0 → 0.5.1
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 +1 -1
- 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/{asyncStorageTaskQueue-BFv2O1y1.d.ts → asyncStorageTaskQueue-CdWheMqT.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-qRRQUOE8.d.cts → asyncStorageTaskQueue-DFt5LgW5.d.cts} +2 -2
- package/dist/{chunk-K352GMVL.js → chunk-3M22PJVB.js} +3 -3
- package/dist/{chunk-K352GMVL.js.map → chunk-3M22PJVB.js.map} +1 -1
- package/dist/{chunk-HABGVRLF.js → chunk-6MIGYYWB.js} +3 -3
- package/dist/{chunk-HABGVRLF.js.map → chunk-6MIGYYWB.js.map} +1 -1
- package/dist/{chunk-K2E6X6JT.js → chunk-FXVEOEYB.js} +4 -4
- package/dist/{chunk-K2E6X6JT.js.map → chunk-FXVEOEYB.js.map} +1 -1
- package/dist/{chunk-JT5YVMCJ.cjs → chunk-GQUFPTN7.cjs} +16 -16
- package/dist/{chunk-JT5YVMCJ.cjs.map → chunk-GQUFPTN7.cjs.map} +1 -1
- package/dist/{chunk-GN2K4WBP.cjs → chunk-GW42FS2X.cjs} +48 -48
- package/dist/{chunk-GN2K4WBP.cjs.map → chunk-GW42FS2X.cjs.map} +1 -1
- package/dist/{chunk-IQWLFYT2.cjs → chunk-HQNQ3CLQ.cjs} +18 -18
- package/dist/{chunk-IQWLFYT2.cjs.map → chunk-HQNQ3CLQ.cjs.map} +1 -1
- package/dist/{chunk-GOM26K6H.cjs → chunk-JJ6QKTFZ.cjs} +10 -10
- package/dist/{chunk-GOM26K6H.cjs.map → chunk-JJ6QKTFZ.cjs.map} +1 -1
- package/dist/{chunk-GWJWXVUB.js → chunk-NKKJEA3Z.js} +51 -37
- package/dist/chunk-NKKJEA3Z.js.map +1 -0
- package/dist/{chunk-ZOEB53NQ.js → chunk-QFB55EOZ.js} +3 -3
- package/dist/{chunk-ZOEB53NQ.js.map → chunk-QFB55EOZ.js.map} +1 -1
- package/dist/{chunk-AU77RYOC.cjs → chunk-QKNSMVBW.cjs} +546 -532
- package/dist/chunk-QKNSMVBW.cjs.map +1 -0
- package/dist/{chunk-UUSKJOSX.cjs → chunk-XLHUGP3G.cjs} +3 -3
- package/dist/{chunk-UUSKJOSX.cjs.map → chunk-XLHUGP3G.cjs.map} +1 -1
- package/dist/{chunk-TZSKLERU.js → chunk-XQRIY5K5.js} +4 -4
- package/dist/{chunk-TZSKLERU.js.map → chunk-XQRIY5K5.js.map} +1 -1
- package/dist/contracts/handlers/index.cjs +9 -9
- 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-DNbiUgy8.d.ts → delegate-BSbGQabI.d.ts} +1 -1
- package/dist/{delegate-B5BmYkEY.d.cts → delegate-CFCfrReG.d.cts} +1 -1
- package/dist/{index-CZw-MMfY.d.cts → index-B3fRWO5i.d.cts} +9 -1
- package/dist/{index-CZw-MMfY.d.ts → index-B3fRWO5i.d.ts} +9 -1
- package/dist/{index-CYeyT3kn.d.ts → index-CzUVvIxA.d.ts} +2 -2
- package/dist/{index-B4QuO9sH.d.cts → index-Fpf4mQZr.d.cts} +2 -2
- package/dist/index.cjs +313 -313
- package/dist/index.d.cts +15 -8
- package/dist/index.d.ts +15 -8
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +35 -35
- 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 +33 -33
- 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-wm1bhmtP.d.ts → taskRunner-CdfoCMaw.d.ts} +2 -2
- package/dist/{taskRunner-B3SLvUfL.d.cts → taskRunner-Dk6oDAtd.d.cts} +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 +15 -15
- 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-DCZ2-Bea.d.cts → wallet-BQHNgc_v.d.ts} +3 -3
- package/dist/{wallet-DGLXuwXT.d.ts → wallet-D9dvXu-K.d.cts} +3 -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 +1 -1
- package/dist/chunk-AU77RYOC.cjs.map +0 -1
- package/dist/chunk-GWJWXVUB.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
var
|
|
3
|
+
var chunkQKNSMVBW_cjs = require('../../chunk-QKNSMVBW.cjs');
|
|
4
|
+
require('../../chunk-HQNQ3CLQ.cjs');
|
|
5
|
+
require('../../chunk-GW42FS2X.cjs');
|
|
6
|
+
var chunkXLHUGP3G_cjs = require('../../chunk-XLHUGP3G.cjs');
|
|
7
7
|
|
|
8
8
|
// src/repositories/sqlite/transaction.ts
|
|
9
9
|
var writeChains = /* @__PURE__ */ new WeakMap();
|
|
@@ -200,7 +200,7 @@ var SQLiteWalletRepository = class {
|
|
|
200
200
|
for (const row of nullRows) {
|
|
201
201
|
await this.db.run(
|
|
202
202
|
`UPDATE ${this.tables.vtxos} SET script = ? WHERE txid = ? AND vout = ?`,
|
|
203
|
-
[
|
|
203
|
+
[chunkQKNSMVBW_cjs.scriptFromArkAddress(row.address), row.txid, row.vout]
|
|
204
204
|
);
|
|
205
205
|
}
|
|
206
206
|
const tempName = `${this.tables.vtxos}__migrate_tmp`;
|
|
@@ -241,7 +241,7 @@ var SQLiteWalletRepository = class {
|
|
|
241
241
|
WHERE virtual_status_json IS NOT NULL AND is_swept IS NULL`
|
|
242
242
|
);
|
|
243
243
|
for (const row of rows) {
|
|
244
|
-
const facts =
|
|
244
|
+
const facts = chunkQKNSMVBW_cjs.legacyVtxoFacts(row.virtual_status_json);
|
|
245
245
|
if (!facts) continue;
|
|
246
246
|
await this.db.run(
|
|
247
247
|
`UPDATE ${this.tables.vtxos}
|
|
@@ -333,7 +333,7 @@ var SQLiteWalletRepository = class {
|
|
|
333
333
|
expires_at, expires_at_height,
|
|
334
334
|
spent_by, settled_by, ark_tx_id, extra_witness_json, assets_json, script`,
|
|
335
335
|
vtxos.map((vtxo) => {
|
|
336
|
-
const s =
|
|
336
|
+
const s = chunkQKNSMVBW_cjs.serializeVtxo(vtxo);
|
|
337
337
|
return [
|
|
338
338
|
s.txid,
|
|
339
339
|
s.vout,
|
|
@@ -345,7 +345,7 @@ var SQLiteWalletRepository = class {
|
|
|
345
345
|
s.intentTapLeafScript.cb,
|
|
346
346
|
s.intentTapLeafScript.s,
|
|
347
347
|
JSON.stringify(s.status),
|
|
348
|
-
|
|
348
|
+
chunkQKNSMVBW_cjs.createdAtToIso(s.createdAt),
|
|
349
349
|
s.isUnrolled ? 1 : 0,
|
|
350
350
|
s.isSpent === void 0 ? null : s.isSpent ? 1 : 0,
|
|
351
351
|
s.isSwept === void 0 ? null : s.isSwept ? 1 : 0,
|
|
@@ -368,7 +368,7 @@ var SQLiteWalletRepository = class {
|
|
|
368
368
|
await this.db.run(`DELETE FROM ${this.tables.vtxos} WHERE address = ?`, [address]);
|
|
369
369
|
}
|
|
370
370
|
async getVtxosForScriptPage(script, page, options) {
|
|
371
|
-
|
|
371
|
+
chunkQKNSMVBW_cjs.assertPageRequest(page);
|
|
372
372
|
await this.ensureInit();
|
|
373
373
|
const after = page.after;
|
|
374
374
|
const rows = await this.db.all(
|
|
@@ -386,15 +386,15 @@ var SQLiteWalletRepository = class {
|
|
|
386
386
|
page.limit + 1
|
|
387
387
|
] : [script, page.limit + 1]
|
|
388
388
|
);
|
|
389
|
-
const result =
|
|
389
|
+
const result = chunkQKNSMVBW_cjs.pageResult(
|
|
390
390
|
rows.map((row) => ({ address: row.address, vtxo: vtxoRowToDomain(row) })),
|
|
391
391
|
page.limit,
|
|
392
392
|
(row) => ({ address: row.address, txid: row.vtxo.txid, vout: row.vtxo.vout })
|
|
393
393
|
);
|
|
394
|
-
return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !
|
|
394
|
+
return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !chunkXLHUGP3G_cjs.isVtxoSpent(row.vtxo)) } : result;
|
|
395
395
|
}
|
|
396
396
|
async saveVtxosForScript(key, vtxos) {
|
|
397
|
-
return this.saveVtxos(
|
|
397
|
+
return this.saveVtxos(chunkQKNSMVBW_cjs.checkSaveVtxosForScript("SQLiteWalletRepository", key, vtxos), vtxos);
|
|
398
398
|
}
|
|
399
399
|
async deleteVtxosForScript(script) {
|
|
400
400
|
await this.ensureInit();
|
|
@@ -405,21 +405,21 @@ var SQLiteWalletRepository = class {
|
|
|
405
405
|
return this.pageByAddress(this.tables.utxos, address, page, utxoRowToDomain);
|
|
406
406
|
}
|
|
407
407
|
async pageByAddress(table, address, page, deserialize) {
|
|
408
|
-
|
|
408
|
+
chunkQKNSMVBW_cjs.assertPageRequest(page);
|
|
409
409
|
await this.ensureInit();
|
|
410
410
|
const rows = await this.db.all(
|
|
411
411
|
`SELECT * FROM ${table} WHERE address = ? AND (txid, vout) > (?, ?)
|
|
412
412
|
ORDER BY txid, vout LIMIT ?`,
|
|
413
413
|
[address, page.after?.txid ?? "", page.after?.vout ?? -1, page.limit + 1]
|
|
414
414
|
);
|
|
415
|
-
const result =
|
|
415
|
+
const result = chunkQKNSMVBW_cjs.pageResult(rows, page.limit, ({ txid, vout }) => ({ txid, vout }));
|
|
416
416
|
return { items: result.items.map(deserialize), nextCursor: result.nextCursor };
|
|
417
417
|
}
|
|
418
418
|
async saveUtxos(addressOrBatch, utxos) {
|
|
419
419
|
await this.ensureInit();
|
|
420
|
-
const rows =
|
|
420
|
+
const rows = chunkQKNSMVBW_cjs.utxoEntries(addressOrBatch, utxos).flatMap(
|
|
421
421
|
([address, list]) => list.map((utxo) => {
|
|
422
|
-
const s =
|
|
422
|
+
const s = chunkQKNSMVBW_cjs.serializeUtxo(utxo);
|
|
423
423
|
return [
|
|
424
424
|
s.txid,
|
|
425
425
|
s.vout,
|
|
@@ -449,8 +449,8 @@ var SQLiteWalletRepository = class {
|
|
|
449
449
|
}
|
|
450
450
|
// ── Transaction history ────────────────────────────────────────────
|
|
451
451
|
async getTransactionHistoryPage(filter, page) {
|
|
452
|
-
|
|
453
|
-
|
|
452
|
+
chunkQKNSMVBW_cjs.assertPageRequest(page);
|
|
453
|
+
chunkQKNSMVBW_cjs.assertHistoryPageFilter(filter);
|
|
454
454
|
await this.ensureInit();
|
|
455
455
|
const conditions = ["address = ?"];
|
|
456
456
|
const params = [filter.address];
|
|
@@ -474,7 +474,7 @@ var SQLiteWalletRepository = class {
|
|
|
474
474
|
ORDER BY created_at, boarding_txid, commitment_txid, ark_txid LIMIT ?`,
|
|
475
475
|
[...params, page.limit + 1]
|
|
476
476
|
);
|
|
477
|
-
return
|
|
477
|
+
return chunkQKNSMVBW_cjs.pageResult(rows.map(txRowToDomain), page.limit, (tx) => ({
|
|
478
478
|
createdAt: tx.createdAt,
|
|
479
479
|
key: tx.key
|
|
480
480
|
}));
|
|
@@ -494,7 +494,7 @@ var SQLiteWalletRepository = class {
|
|
|
494
494
|
tx.amount,
|
|
495
495
|
tx.settled ? 1 : 0,
|
|
496
496
|
tx.createdAt,
|
|
497
|
-
tx.assets ? JSON.stringify(
|
|
497
|
+
tx.assets ? JSON.stringify(chunkQKNSMVBW_cjs.serializeAssets(tx.assets)) : null
|
|
498
498
|
])
|
|
499
499
|
);
|
|
500
500
|
}
|
|
@@ -563,9 +563,9 @@ function vtxoRowToDomain(row) {
|
|
|
563
563
|
// Post-migration every row has `script`, but the backfill is
|
|
564
564
|
// idempotent: derive from `address` if the legacy column is still
|
|
565
565
|
// null (e.g. the migration hasn't run yet on this handle).
|
|
566
|
-
script: row.script ??
|
|
566
|
+
script: row.script ?? chunkQKNSMVBW_cjs.scriptFromArkAddress(row.address)
|
|
567
567
|
};
|
|
568
|
-
return
|
|
568
|
+
return chunkQKNSMVBW_cjs.deserializeVtxo(serialized);
|
|
569
569
|
}
|
|
570
570
|
function utxoRowToDomain(row) {
|
|
571
571
|
const serialized = {
|
|
@@ -584,7 +584,7 @@ function utxoRowToDomain(row) {
|
|
|
584
584
|
status: JSON.parse(row.status_json),
|
|
585
585
|
extraWitness: row.extra_witness_json ? JSON.parse(row.extra_witness_json) : void 0
|
|
586
586
|
};
|
|
587
|
-
return
|
|
587
|
+
return chunkQKNSMVBW_cjs.deserializeUtxo(serialized);
|
|
588
588
|
}
|
|
589
589
|
function txRowToDomain(row) {
|
|
590
590
|
const tx = {
|
|
@@ -599,7 +599,7 @@ function txRowToDomain(row) {
|
|
|
599
599
|
createdAt: row.created_at
|
|
600
600
|
};
|
|
601
601
|
if (row.assets_json) {
|
|
602
|
-
tx.assets =
|
|
602
|
+
tx.assets = chunkQKNSMVBW_cjs.deserializeAssets(JSON.parse(row.assets_json));
|
|
603
603
|
}
|
|
604
604
|
return tx;
|
|
605
605
|
}
|
|
@@ -667,9 +667,9 @@ var SQLiteContractRepository = class {
|
|
|
667
667
|
}
|
|
668
668
|
// ── Contract management ────────────────────────────────────────────
|
|
669
669
|
async getContractsPage(filter, page) {
|
|
670
|
-
|
|
670
|
+
chunkQKNSMVBW_cjs.assertPageRequest(page);
|
|
671
671
|
await this.ensureInit();
|
|
672
|
-
if (
|
|
672
|
+
if (chunkQKNSMVBW_cjs.contractFilterMatchesNothing(filter)) return { items: [] };
|
|
673
673
|
const conditions = [];
|
|
674
674
|
const params = [];
|
|
675
675
|
if (filter) {
|
|
@@ -687,7 +687,7 @@ var SQLiteContractRepository = class {
|
|
|
687
687
|
`SELECT * FROM ${this.table}${where} ORDER BY script LIMIT ?`,
|
|
688
688
|
[...params, page.limit + 1]
|
|
689
689
|
);
|
|
690
|
-
return
|
|
690
|
+
return chunkQKNSMVBW_cjs.pageResult(rows.map(contractRowToDomain), page.limit, (contract) => contract.script);
|
|
691
691
|
}
|
|
692
692
|
async saveContract(contract) {
|
|
693
693
|
await this.ensureInit();
|
|
@@ -850,7 +850,7 @@ var SQLiteIntentRepository = class {
|
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
852
|
async getIntentsPage(filter, page) {
|
|
853
|
-
|
|
853
|
+
chunkQKNSMVBW_cjs.assertPageRequest(page);
|
|
854
854
|
await this.ensureInit();
|
|
855
855
|
if (filter?.states?.length === 0) return { items: [] };
|
|
856
856
|
const stateSql = filter?.states ? ` AND state IN (${filter.states.map(() => "?").join(", ")})` : "";
|
|
@@ -867,19 +867,19 @@ var SQLiteIntentRepository = class {
|
|
|
867
867
|
for (const row of batch) {
|
|
868
868
|
after = row.intent_tx_id;
|
|
869
869
|
const intent = rowToIntent(row);
|
|
870
|
-
if (!filter ||
|
|
870
|
+
if (!filter || chunkQKNSMVBW_cjs.intentMatchesFilter(intent, filter)) rows.push(intent);
|
|
871
871
|
if (rows.length > page.limit) break;
|
|
872
872
|
}
|
|
873
873
|
if (batch.length < batchSize) break;
|
|
874
874
|
}
|
|
875
|
-
return
|
|
875
|
+
return chunkQKNSMVBW_cjs.pageResult(rows, page.limit, (intent) => intent.intentTxId);
|
|
876
876
|
}
|
|
877
877
|
async getLockedVtxoOutpoints() {
|
|
878
878
|
await this.ensureInit();
|
|
879
879
|
const rows = await this.db.all(`SELECT * FROM ${this.t}`);
|
|
880
880
|
const out = [];
|
|
881
881
|
for (const r of rows) {
|
|
882
|
-
if (
|
|
882
|
+
if (chunkQKNSMVBW_cjs.isTerminalIntentState(r.state)) continue;
|
|
883
883
|
for (const o of JSON.parse(r.intent_vtxos_json)) out.push(o);
|
|
884
884
|
}
|
|
885
885
|
return out;
|
|
@@ -966,7 +966,7 @@ var SQLiteVirtualTxRepository = class {
|
|
|
966
966
|
const prev = prevByTxid.get(t.txid);
|
|
967
967
|
const psbt = t.psbt ?? prev?.psbt ?? null;
|
|
968
968
|
const expires = t.expiresAt ?? prev?.expires_at ?? null;
|
|
969
|
-
const type =
|
|
969
|
+
const type = chunkQKNSMVBW_cjs.mergeChainedTxType(t.type, prev?.type);
|
|
970
970
|
await this.db.run(
|
|
971
971
|
`INSERT OR REPLACE INTO ${this.tTx} (txid, psbt, expires_at, type) VALUES (?, ?, ?, ?)`,
|
|
972
972
|
[t.txid, psbt, expires, type]
|
|
@@ -1052,7 +1052,7 @@ function rowToTx(r) {
|
|
|
1052
1052
|
|
|
1053
1053
|
Object.defineProperty(exports, "ChainedTxType", {
|
|
1054
1054
|
enumerable: true,
|
|
1055
|
-
get: function () { return
|
|
1055
|
+
get: function () { return chunkQKNSMVBW_cjs.ChainedTxType; }
|
|
1056
1056
|
});
|
|
1057
1057
|
exports.SQLiteContractRepository = SQLiteContractRepository;
|
|
1058
1058
|
exports.SQLiteIntentRepository = SQLiteIntentRepository;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, C as ContractRepository, X as ContractFilter, B as Contract, Y as IntentRepository, Z as ArkIntent, _ as IntentPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-
|
|
2
|
-
export { a2 as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, C as ContractRepository, X as ContractFilter, B as Contract, Y as IntentRepository, Z as ArkIntent, _ as IntentPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-B3fRWO5i.cjs';
|
|
2
|
+
export { a2 as ChainedTxType } from '../../index-B3fRWO5i.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/psbt.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, C as ContractRepository, X as ContractFilter, B as Contract, Y as IntentRepository, Z as ArkIntent, _ as IntentPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-
|
|
2
|
-
export { a2 as ChainedTxType } from '../../index-
|
|
1
|
+
import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, C as ContractRepository, X as ContractFilter, B as Contract, Y as IntentRepository, Z as ArkIntent, _ as IntentPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-B3fRWO5i.js';
|
|
2
|
+
export { a2 as ChainedTxType } from '../../index-B3fRWO5i.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/psbt.js';
|
|
5
5
|
import '@scure/btc-signer';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { scriptFromArkAddress, legacyVtxoFacts, serializeVtxo, createdAtToIso, assertPageRequest, pageResult, checkSaveVtxosForScript, utxoEntries, serializeUtxo, assertHistoryPageFilter, serializeAssets, deserializeVtxo, deserializeUtxo, deserializeAssets, contractFilterMatchesNothing, intentMatchesFilter, isTerminalIntentState, mergeChainedTxType } from '../../chunk-
|
|
2
|
-
export { ChainedTxType } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import { isVtxoSpent } from '../../chunk-
|
|
1
|
+
import { scriptFromArkAddress, legacyVtxoFacts, serializeVtxo, createdAtToIso, assertPageRequest, pageResult, checkSaveVtxosForScript, utxoEntries, serializeUtxo, assertHistoryPageFilter, serializeAssets, deserializeVtxo, deserializeUtxo, deserializeAssets, contractFilterMatchesNothing, intentMatchesFilter, isTerminalIntentState, mergeChainedTxType } from '../../chunk-NKKJEA3Z.js';
|
|
2
|
+
export { ChainedTxType } from '../../chunk-NKKJEA3Z.js';
|
|
3
|
+
import '../../chunk-6MIGYYWB.js';
|
|
4
|
+
import '../../chunk-3M22PJVB.js';
|
|
5
|
+
import { isVtxoSpent } from '../../chunk-QFB55EOZ.js';
|
|
6
6
|
|
|
7
7
|
// src/repositories/sqlite/transaction.ts
|
|
8
8
|
var writeChains = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, v as ArkProvider, z as VirtualCoin, B as Contract, D as ExtendedVirtualCoin } from './index-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, v as ArkProvider, z as VirtualCoin, B as Contract, D as ExtendedVirtualCoin } from './index-B3fRWO5i.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 TaskQueue as a, type TaskDependencies as b, type TaskItem as c, type TaskResult as d, createTaskDependencies as e, runTasks as r };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, v as ArkProvider, z as VirtualCoin, B as Contract, D as ExtendedVirtualCoin } from './index-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, v as ArkProvider, z as VirtualCoin, B as Contract, D as ExtendedVirtualCoin } from './index-B3fRWO5i.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 TaskQueue as a, type TaskDependencies as b, type TaskItem as c, type TaskResult as d, createTaskDependencies as e, runTasks as r };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
3
|
+
var chunkGQUFPTN7_cjs = require('../../chunk-GQUFPTN7.cjs');
|
|
4
|
+
var chunkJJ6QKTFZ_cjs = require('../../chunk-JJ6QKTFZ.cjs');
|
|
5
|
+
var chunkQKNSMVBW_cjs = require('../../chunk-QKNSMVBW.cjs');
|
|
6
|
+
require('../../chunk-HQNQ3CLQ.cjs');
|
|
7
|
+
require('../../chunk-GW42FS2X.cjs');
|
|
8
|
+
require('../../chunk-XLHUGP3G.cjs');
|
|
9
9
|
var TaskManager = require('expo-task-manager');
|
|
10
10
|
var BackgroundTask = require('expo-background-task');
|
|
11
11
|
|
|
@@ -35,7 +35,7 @@ function defineExpoBackgroundTask(taskName, options) {
|
|
|
35
35
|
taskQueue,
|
|
36
36
|
walletRepository,
|
|
37
37
|
contractRepository,
|
|
38
|
-
processors = [
|
|
38
|
+
processors = [chunkJJ6QKTFZ_cjs.contractPollProcessor]
|
|
39
39
|
} = options;
|
|
40
40
|
TaskManager__namespace.defineTask(taskName, async () => {
|
|
41
41
|
try {
|
|
@@ -43,24 +43,24 @@ function defineExpoBackgroundTask(taskName, options) {
|
|
|
43
43
|
if (!config) {
|
|
44
44
|
return BackgroundTask__namespace.BackgroundTaskResult.Success;
|
|
45
45
|
}
|
|
46
|
-
const indexerProvider = new
|
|
47
|
-
const arkProvider = new
|
|
48
|
-
const deps =
|
|
46
|
+
const indexerProvider = new chunkGQUFPTN7_cjs.ExpoIndexerProvider(config.arkServerUrl);
|
|
47
|
+
const arkProvider = new chunkGQUFPTN7_cjs.ExpoArkProvider(config.arkServerUrl);
|
|
48
|
+
const deps = chunkJJ6QKTFZ_cjs.createTaskDependencies({
|
|
49
49
|
walletRepository,
|
|
50
50
|
contractRepository,
|
|
51
51
|
indexerProvider,
|
|
52
52
|
arkProvider
|
|
53
53
|
});
|
|
54
|
-
await
|
|
54
|
+
await chunkJJ6QKTFZ_cjs.runTasks(taskQueue, processors, deps);
|
|
55
55
|
const results = await taskQueue.getResults();
|
|
56
56
|
if (results.length > 0) {
|
|
57
57
|
await taskQueue.acknowledgeResults(results.map((r) => r.id));
|
|
58
58
|
}
|
|
59
|
-
const existing = await taskQueue.getTasks(
|
|
59
|
+
const existing = await taskQueue.getTasks(chunkJJ6QKTFZ_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
60
60
|
if (existing.length === 0) {
|
|
61
61
|
const task = {
|
|
62
|
-
id:
|
|
63
|
-
type:
|
|
62
|
+
id: chunkQKNSMVBW_cjs.getRandomId(),
|
|
63
|
+
type: chunkJJ6QKTFZ_cjs.CONTRACT_POLL_TASK_TYPE,
|
|
64
64
|
data: {},
|
|
65
65
|
createdAt: Date.now()
|
|
66
66
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository } from '../../index-
|
|
2
|
-
import {
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../index-B3fRWO5i.cjs';
|
|
2
|
+
import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-DFt5LgW5.cjs';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-Dk6oDAtd.cjs';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
6
6
|
import '@scure/btc-signer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as WalletRepository, C as ContractRepository } from '../../index-
|
|
2
|
-
import {
|
|
3
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
1
|
+
import { W as WalletRepository, C as ContractRepository } from '../../index-B3fRWO5i.js';
|
|
2
|
+
import { A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-CdWheMqT.js';
|
|
3
|
+
import { T as TaskProcessor } from '../../taskRunner-CdfoCMaw.js';
|
|
4
4
|
import '@scure/btc-signer/utils.js';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
6
6
|
import '@scure/btc-signer';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ExpoIndexerProvider, ExpoArkProvider } from '../../chunk-
|
|
2
|
-
import { contractPollProcessor, createTaskDependencies, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-
|
|
3
|
-
import { getRandomId } from '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
1
|
+
import { ExpoIndexerProvider, ExpoArkProvider } from '../../chunk-FXVEOEYB.js';
|
|
2
|
+
import { contractPollProcessor, createTaskDependencies, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-XQRIY5K5.js';
|
|
3
|
+
import { getRandomId } from '../../chunk-NKKJEA3Z.js';
|
|
4
|
+
import '../../chunk-6MIGYYWB.js';
|
|
5
|
+
import '../../chunk-3M22PJVB.js';
|
|
6
|
+
import '../../chunk-QFB55EOZ.js';
|
|
7
7
|
import * as TaskManager from 'expo-task-manager';
|
|
8
8
|
import * as BackgroundTask from 'expo-background-task';
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
var
|
|
3
|
+
var chunkJJ6QKTFZ_cjs = require('../../chunk-JJ6QKTFZ.cjs');
|
|
4
|
+
var chunkQKNSMVBW_cjs = require('../../chunk-QKNSMVBW.cjs');
|
|
5
|
+
require('../../chunk-HQNQ3CLQ.cjs');
|
|
6
|
+
require('../../chunk-GW42FS2X.cjs');
|
|
7
|
+
var chunkXLHUGP3G_cjs = require('../../chunk-XLHUGP3G.cjs');
|
|
8
8
|
var base = require('@scure/base');
|
|
9
9
|
|
|
10
10
|
function warnOnRemovedBackgroundFields(bg) {
|
|
@@ -56,20 +56,20 @@ var ExpoWallet = class _ExpoWallet {
|
|
|
56
56
|
* by the consumer.
|
|
57
57
|
*/
|
|
58
58
|
static async setup(config) {
|
|
59
|
-
|
|
59
|
+
chunkXLHUGP3G_cjs.assertTimerMs("foregroundIntervalMs", config.background.foregroundIntervalMs);
|
|
60
60
|
warnOnRemovedBackgroundFields(config.background);
|
|
61
|
-
const wallet = await
|
|
62
|
-
const processors = config.background.processors ?? [
|
|
61
|
+
const wallet = await chunkQKNSMVBW_cjs.Wallet.create(config);
|
|
62
|
+
const processors = config.background.processors ?? [chunkJJ6QKTFZ_cjs.contractPollProcessor];
|
|
63
63
|
const deps = {
|
|
64
64
|
walletRepository: wallet.walletRepository,
|
|
65
65
|
contractRepository: wallet.contractRepository,
|
|
66
66
|
indexerProvider: wallet.indexerProvider,
|
|
67
67
|
arkProvider: wallet.arkProvider,
|
|
68
|
-
extendVtxo: (vtxo, contract) =>
|
|
68
|
+
extendVtxo: (vtxo, contract) => chunkQKNSMVBW_cjs.extendVirtualCoinForContract(vtxo, contract)
|
|
69
69
|
};
|
|
70
70
|
const { taskQueue } = config.background;
|
|
71
71
|
if ("persistConfig" in taskQueue) {
|
|
72
|
-
const arkServerUrl =
|
|
72
|
+
const arkServerUrl = chunkQKNSMVBW_cjs.extractArkProviderUrl(wallet.arkProvider);
|
|
73
73
|
if (typeof arkServerUrl === "string" && arkServerUrl.length > 0) {
|
|
74
74
|
const timelock = wallet.offchainTapscript.options.csvTimelock;
|
|
75
75
|
const bgConfig = {
|
|
@@ -100,7 +100,7 @@ var ExpoWallet = class _ExpoWallet {
|
|
|
100
100
|
}
|
|
101
101
|
async runForegroundPoll() {
|
|
102
102
|
if (this.cleared) return;
|
|
103
|
-
await
|
|
103
|
+
await chunkJJ6QKTFZ_cjs.runTasks(this.taskQueue, this.processors, this.deps);
|
|
104
104
|
const results = await this.taskQueue.getResults();
|
|
105
105
|
if (results.length > 0) {
|
|
106
106
|
await this.taskQueue.acknowledgeResults(results.map((r) => r.id));
|
|
@@ -109,18 +109,18 @@ var ExpoWallet = class _ExpoWallet {
|
|
|
109
109
|
await this.seedContractPollTask();
|
|
110
110
|
}
|
|
111
111
|
async seedContractPollTask() {
|
|
112
|
-
const existing = await this.taskQueue.getTasks(
|
|
112
|
+
const existing = await this.taskQueue.getTasks(chunkJJ6QKTFZ_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
113
113
|
if (existing.length > 0) return;
|
|
114
114
|
const task = {
|
|
115
|
-
id:
|
|
116
|
-
type:
|
|
115
|
+
id: chunkQKNSMVBW_cjs.getRandomId(),
|
|
116
|
+
type: chunkJJ6QKTFZ_cjs.CONTRACT_POLL_TASK_TYPE,
|
|
117
117
|
data: {},
|
|
118
118
|
createdAt: Date.now()
|
|
119
119
|
};
|
|
120
120
|
await this.taskQueue.addTask(task);
|
|
121
121
|
}
|
|
122
122
|
async removeContractPollTasks() {
|
|
123
|
-
const tasks = await this.taskQueue.getTasks(
|
|
123
|
+
const tasks = await this.taskQueue.getTasks(chunkJJ6QKTFZ_cjs.CONTRACT_POLL_TASK_TYPE);
|
|
124
124
|
for (const task of tasks) {
|
|
125
125
|
await this.taskQueue.removeTask(task.id);
|
|
126
126
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../wallet-
|
|
2
|
-
import { I as IWallet, a as Identity, b as WalletConfig, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, E as ExtendedCoin, h as ArkTransaction, i as ActivityRegistry, j as Activity, k as IContractManager, l as GetNewAddressesOptions, m as NewAddress, n as IDelegateManager, S as SettleParams, o as SettlementEvent, p as SendParams, R as Recipient, q as IAssetManager } from '../../index-
|
|
3
|
-
import {
|
|
1
|
+
import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../wallet-D9dvXu-K.cjs';
|
|
2
|
+
import { I as IWallet, a as Identity, b as WalletConfig, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, E as ExtendedCoin, h as ArkTransaction, i as ActivityRegistry, j as Activity, k as IContractManager, l as GetNewAddressesOptions, m as NewAddress, n as IDelegateManager, S as SettleParams, o as SettlementEvent, p as SendParams, R as Recipient, q as IAssetManager } from '../../index-B3fRWO5i.cjs';
|
|
3
|
+
import { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-Dk6oDAtd.cjs';
|
|
4
4
|
import '@scure/btc-signer/psbt.js';
|
|
5
5
|
import '@scure/btc-signer/utils.js';
|
|
6
|
-
import '../../delegate-
|
|
6
|
+
import '../../delegate-CFCfrReG.cjs';
|
|
7
7
|
import '@scure/btc-signer';
|
|
8
8
|
import '@scure/btc-signer/transaction.js';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../wallet-
|
|
2
|
-
import { I as IWallet, a as Identity, b as WalletConfig, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, E as ExtendedCoin, h as ArkTransaction, i as ActivityRegistry, j as Activity, k as IContractManager, l as GetNewAddressesOptions, m as NewAddress, n as IDelegateManager, S as SettleParams, o as SettlementEvent, p as SendParams, R as Recipient, q as IAssetManager } from '../../index-
|
|
3
|
-
import {
|
|
1
|
+
import { H as HDWalletCapable, a as HDAllocationCapable, A as AddressAllocationCapable, W as Wallet, P as ProviderConnectionState } from '../../wallet-BQHNgc_v.js';
|
|
2
|
+
import { I as IWallet, a as Identity, b as WalletConfig, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, d as ArkadeBroadcaster, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, E as ExtendedCoin, h as ArkTransaction, i as ActivityRegistry, j as Activity, k as IContractManager, l as GetNewAddressesOptions, m as NewAddress, n as IDelegateManager, S as SettleParams, o as SettlementEvent, p as SendParams, R as Recipient, q as IAssetManager } from '../../index-B3fRWO5i.js';
|
|
3
|
+
import { a as TaskQueue, T as TaskProcessor } from '../../taskRunner-CdfoCMaw.js';
|
|
4
4
|
import '@scure/btc-signer/psbt.js';
|
|
5
5
|
import '@scure/btc-signer/utils.js';
|
|
6
|
-
import '../../delegate-
|
|
6
|
+
import '../../delegate-BSbGQabI.js';
|
|
7
7
|
import '@scure/btc-signer';
|
|
8
8
|
import '@scure/btc-signer/transaction.js';
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { contractPollProcessor, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-
|
|
2
|
-
import { Wallet, extractArkProviderUrl, getRandomId, extendVirtualCoinForContract } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import { assertTimerMs } from '../../chunk-
|
|
1
|
+
import { contractPollProcessor, runTasks, CONTRACT_POLL_TASK_TYPE } from '../../chunk-XQRIY5K5.js';
|
|
2
|
+
import { Wallet, extractArkProviderUrl, getRandomId, extendVirtualCoinForContract } from '../../chunk-NKKJEA3Z.js';
|
|
3
|
+
import '../../chunk-6MIGYYWB.js';
|
|
4
|
+
import '../../chunk-3M22PJVB.js';
|
|
5
|
+
import { assertTimerMs } from '../../chunk-QFB55EOZ.js';
|
|
6
6
|
import { hex } from '@scure/base';
|
|
7
7
|
|
|
8
8
|
function warnOnRemovedBackgroundFields(bg) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, a3 as DescriptorProvider, a4 as DescriptorSigningRequest, a5 as Transaction, l as GetNewAddressesOptions, m as NewAddress, a as Identity, x as RelativeTimelock, a6 as Network, a7 as BatchStartedEvent, a8 as TreeSigningStartedEvent, a9 as TxTree, aa as TreeNoncesEvent, ab as BatchFinalizationEvent, ac as BatchFinalizedEvent, ad as BatchFailedEvent, ae as TreeTxEvent, af as TreeSignatureEvent, o as SettlementEvent, b as WalletConfig, C as ContractRepository, k as IContractManager, ag as IReadonlyWallet, ah as ReadonlyIdentity, ai as OnchainProvider, v as ArkProvider, w as IndexerProvider, aj as DelegateProvider, ak as ReadonlyWalletConfig, Y as IntentRepository, $ as VirtualTxRepository, al as ExitCaptureMode, am as ExitDataSource, i as ActivityRegistry, an as IReadonlyAssetManager, ao as ContractSyncState, ap as RecipientArkadeAddressContext, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, aq as
|
|
1
|
+
import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, a3 as DescriptorProvider, a4 as DescriptorSigningRequest, a5 as Transaction, l as GetNewAddressesOptions, m as NewAddress, a as Identity, x as RelativeTimelock, a6 as Network, a7 as BatchStartedEvent, a8 as TreeSigningStartedEvent, a9 as TxTree, aa as TreeNoncesEvent, ab as BatchFinalizationEvent, ac as BatchFinalizedEvent, ad as BatchFailedEvent, ae as TreeTxEvent, af as TreeSignatureEvent, o as SettlementEvent, b as WalletConfig, C as ContractRepository, k as IContractManager, ag as IReadonlyWallet, ah as ReadonlyIdentity, ai as OnchainProvider, v as ArkProvider, w as IndexerProvider, aj as DelegateProvider, ak as ReadonlyWalletConfig, Y as IntentRepository, $ as VirtualTxRepository, al as ExitCaptureMode, am as ExitDataSource, i as ActivityRegistry, an as IReadonlyAssetManager, ao as ContractSyncState, ap as RecipientArkadeAddressContext, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, aq as EsploraProvider, ar as NetworkName, as as ArkAddress, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, at as ContractWithVtxos, au as selectPendingRecoveryOutpoints, j as Activity, av as Coin, aw as ContractManager, ax as ContractManagerConfig, I as IWallet, ay as CSVMultisigTapscript, az as SettlementConfig, d as ArkadeBroadcaster, q as IAssetManager, aA as VtxoManager, n as IDelegateManager, S as SettleParams, R as Recipient, aB as SignerSession, aC as SignedIntent, aD as Intent, p as SendParams, aE as TimeHeight } from './index-B3fRWO5i.js';
|
|
2
2
|
import { TransactionOutput } from '@scure/btc-signer/psbt.js';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
4
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-BSbGQabI.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* IndexedDB-based implementation of WalletRepository.
|
|
@@ -976,7 +976,7 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
976
976
|
protected static setupWalletConfig(config: ReadonlyWalletConfig, pubKey: Uint8Array): Promise<{
|
|
977
977
|
arkProvider: ArkProvider;
|
|
978
978
|
indexerProvider: IndexerProvider;
|
|
979
|
-
onchainProvider: OnchainProvider;
|
|
979
|
+
onchainProvider: OnchainProvider | EsploraProvider;
|
|
980
980
|
network: Network;
|
|
981
981
|
networkName: NetworkName;
|
|
982
982
|
serverPubKey: Uint8Array<ArrayBufferLike>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, a3 as DescriptorProvider, a4 as DescriptorSigningRequest, a5 as Transaction, l as GetNewAddressesOptions, m as NewAddress, a as Identity, x as RelativeTimelock, a6 as Network, a7 as BatchStartedEvent, a8 as TreeSigningStartedEvent, a9 as TxTree, aa as TreeNoncesEvent, ab as BatchFinalizationEvent, ac as BatchFinalizedEvent, ad as BatchFailedEvent, ae as TreeTxEvent, af as TreeSignatureEvent, o as SettlementEvent, b as WalletConfig, C as ContractRepository, k as IContractManager, ag as IReadonlyWallet, ah as ReadonlyIdentity, ai as OnchainProvider, v as ArkProvider, w as IndexerProvider, aj as DelegateProvider, ak as ReadonlyWalletConfig, Y as IntentRepository, $ as VirtualTxRepository, al as ExitCaptureMode, am as ExitDataSource, i as ActivityRegistry, an as IReadonlyAssetManager, ao as ContractSyncState, ap as RecipientArkadeAddressContext, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, aq as
|
|
1
|
+
import { W as WalletRepository, P as PageRequest, O as Outpoint, F as PageResult, D as ExtendedVirtualCoin, H as ScriptVtxoCursor, J as ScriptVtxoPageOptions, K as StoredVtxo, L as VtxoRepositoryKey, E as ExtendedCoin, M as TransactionHistoryPageFilter, Q as TransactionHistoryPageCursor, h as ArkTransaction, U as WalletState, a3 as DescriptorProvider, a4 as DescriptorSigningRequest, a5 as Transaction, l as GetNewAddressesOptions, m as NewAddress, a as Identity, x as RelativeTimelock, a6 as Network, a7 as BatchStartedEvent, a8 as TreeSigningStartedEvent, a9 as TxTree, aa as TreeNoncesEvent, ab as BatchFinalizationEvent, ac as BatchFinalizedEvent, ad as BatchFailedEvent, ae as TreeTxEvent, af as TreeSignatureEvent, o as SettlementEvent, b as WalletConfig, C as ContractRepository, k as IContractManager, ag as IReadonlyWallet, ah as ReadonlyIdentity, ai as OnchainProvider, v as ArkProvider, w as IndexerProvider, aj as DelegateProvider, ak as ReadonlyWalletConfig, Y as IntentRepository, $ as VirtualTxRepository, al as ExitCaptureMode, am as ExitDataSource, i as ActivityRegistry, an as IReadonlyAssetManager, ao as ContractSyncState, ap as RecipientArkadeAddressContext, G as GetArkadeInfoOptions, A as ArkadeInfo, c as ArkadeReader, aq as EsploraProvider, ar as NetworkName, as as ArkAddress, e as WalletBalance, f as GetVtxosFilter, N as NormalizedExtendedVirtualCoin, g as GetSpendableVtxosFilter, at as ContractWithVtxos, au as selectPendingRecoveryOutpoints, j as Activity, av as Coin, aw as ContractManager, ax as ContractManagerConfig, I as IWallet, ay as CSVMultisigTapscript, az as SettlementConfig, d as ArkadeBroadcaster, q as IAssetManager, aA as VtxoManager, n as IDelegateManager, S as SettleParams, R as Recipient, aB as SignerSession, aC as SignedIntent, aD as Intent, p as SendParams, aE as TimeHeight } from './index-B3fRWO5i.cjs';
|
|
2
2
|
import { TransactionOutput } from '@scure/btc-signer/psbt.js';
|
|
3
3
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
4
|
-
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-
|
|
4
|
+
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-CFCfrReG.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* IndexedDB-based implementation of WalletRepository.
|
|
@@ -976,7 +976,7 @@ declare class ReadonlyWallet implements IReadonlyWallet {
|
|
|
976
976
|
protected static setupWalletConfig(config: ReadonlyWalletConfig, pubKey: Uint8Array): Promise<{
|
|
977
977
|
arkProvider: ArkProvider;
|
|
978
978
|
indexerProvider: IndexerProvider;
|
|
979
|
-
onchainProvider: OnchainProvider;
|
|
979
|
+
onchainProvider: OnchainProvider | EsploraProvider;
|
|
980
980
|
network: Network;
|
|
981
981
|
networkName: NetworkName;
|
|
982
982
|
serverPubKey: Uint8Array<ArrayBufferLike>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
3
|
+
var chunkJJ6QKTFZ_cjs = require('../../chunk-JJ6QKTFZ.cjs');
|
|
4
|
+
require('../../chunk-QKNSMVBW.cjs');
|
|
5
|
+
require('../../chunk-HQNQ3CLQ.cjs');
|
|
6
|
+
require('../../chunk-GW42FS2X.cjs');
|
|
7
|
+
require('../../chunk-XLHUGP3G.cjs');
|
|
8
8
|
|
|
9
9
|
// src/worker/expo/taskQueue.ts
|
|
10
10
|
var InMemoryTaskQueue = class {
|
|
@@ -120,19 +120,19 @@ var AsyncStorageTaskQueue = class {
|
|
|
120
120
|
|
|
121
121
|
Object.defineProperty(exports, "CONTRACT_POLL_TASK_TYPE", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkJJ6QKTFZ_cjs.CONTRACT_POLL_TASK_TYPE; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "contractPollProcessor", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkJJ6QKTFZ_cjs.contractPollProcessor; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "createTaskDependencies", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkJJ6QKTFZ_cjs.createTaskDependencies; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "runTasks", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkJJ6QKTFZ_cjs.runTasks; }
|
|
136
136
|
});
|
|
137
137
|
exports.AsyncStorageTaskQueue = AsyncStorageTaskQueue;
|
|
138
138
|
exports.InMemoryTaskQueue = InMemoryTaskQueue;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TaskProcessor } from '../../taskRunner-
|
|
2
|
-
export { C as CreateTaskDependenciesOptions, I as InMemoryTaskQueue,
|
|
3
|
-
export {
|
|
4
|
-
import '../../index-
|
|
1
|
+
import { T as TaskProcessor } from '../../taskRunner-Dk6oDAtd.cjs';
|
|
2
|
+
export { C as CreateTaskDependenciesOptions, I as InMemoryTaskQueue, b as TaskDependencies, c as TaskItem, a as TaskQueue, d as TaskResult, e as createTaskDependencies, r as runTasks } from '../../taskRunner-Dk6oDAtd.cjs';
|
|
3
|
+
export { a as AsyncStorageLike, A as AsyncStorageTaskQueue } from '../../asyncStorageTaskQueue-DFt5LgW5.cjs';
|
|
4
|
+
import '../../index-B3fRWO5i.cjs';
|
|
5
5
|
import '@scure/btc-signer/utils.js';
|
|
6
6
|
import '@scure/btc-signer/psbt.js';
|
|
7
7
|
import '@scure/btc-signer';
|