@arkade-os/sdk 0.5.6 → 0.5.8

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.
Files changed (94) hide show
  1. package/README.md +2 -2
  2. package/dist/adapters/expo.cjs +6 -6
  3. package/dist/adapters/expo.d.cts +2 -2
  4. package/dist/adapters/expo.d.ts +2 -2
  5. package/dist/adapters/expo.js +3 -3
  6. package/dist/{asyncStorageTaskQueue-Bh2n0msM.d.cts → asyncStorageTaskQueue-B5NPtkXo.d.cts} +1 -1
  7. package/dist/{asyncStorageTaskQueue-CpkstKZ5.d.ts → asyncStorageTaskQueue-YPwiJyVA.d.ts} +1 -1
  8. package/dist/{chunk-47Z4LEIW.js → chunk-3F5AJ235.js} +4 -4
  9. package/dist/{chunk-47Z4LEIW.js.map → chunk-3F5AJ235.js.map} +1 -1
  10. package/dist/{chunk-HKEPJBTY.cjs → chunk-4IDCSOP2.cjs} +22 -16
  11. package/dist/chunk-4IDCSOP2.cjs.map +1 -0
  12. package/dist/{chunk-JFJNB7ZH.cjs → chunk-5PWL7WOT.cjs} +7 -5
  13. package/dist/chunk-5PWL7WOT.cjs.map +1 -0
  14. package/dist/{chunk-C7NY6WSA.js → chunk-E7LKKEVR.js} +10 -4
  15. package/dist/chunk-E7LKKEVR.js.map +1 -0
  16. package/dist/{chunk-Y3CDDPWI.cjs → chunk-EQ3JVVUR.cjs} +932 -558
  17. package/dist/chunk-EQ3JVVUR.cjs.map +1 -0
  18. package/dist/{chunk-DJYX73W2.js → chunk-F5O6JI2H.js} +8 -6
  19. package/dist/chunk-F5O6JI2H.js.map +1 -0
  20. package/dist/{chunk-VWW2ZBPI.js → chunk-H7GT3QC4.js} +4 -4
  21. package/dist/{chunk-VWW2ZBPI.js.map → chunk-H7GT3QC4.js.map} +1 -1
  22. package/dist/{chunk-4X67IB2V.cjs → chunk-JQSHFSME.cjs} +19 -17
  23. package/dist/chunk-JQSHFSME.cjs.map +1 -0
  24. package/dist/{chunk-NDQ4LB4X.cjs → chunk-JYQXB7OH.cjs} +19 -19
  25. package/dist/{chunk-NDQ4LB4X.cjs.map → chunk-JYQXB7OH.cjs.map} +1 -1
  26. package/dist/{chunk-YS76JSGP.cjs → chunk-KWR37J6L.cjs} +10 -10
  27. package/dist/{chunk-YS76JSGP.cjs.map → chunk-KWR37J6L.cjs.map} +1 -1
  28. package/dist/{chunk-X6ZI53DZ.cjs → chunk-L7OOPAUG.cjs} +14 -26
  29. package/dist/chunk-L7OOPAUG.cjs.map +1 -0
  30. package/dist/{chunk-YKT4NAQG.js → chunk-OLKZUJIN.js} +463 -95
  31. package/dist/chunk-OLKZUJIN.js.map +1 -0
  32. package/dist/{chunk-LZAINCGU.cjs → chunk-SOJDUKY6.cjs} +271 -225
  33. package/dist/chunk-SOJDUKY6.cjs.map +1 -0
  34. package/dist/{chunk-V3ZLL5VY.js → chunk-U34GU5RM.js} +9 -21
  35. package/dist/chunk-U34GU5RM.js.map +1 -0
  36. package/dist/{chunk-DNFTHG73.js → chunk-XXNPX4MK.js} +7 -5
  37. package/dist/chunk-XXNPX4MK.js.map +1 -0
  38. package/dist/{chunk-QTMK34TP.js → chunk-YTOABP6J.js} +268 -226
  39. package/dist/chunk-YTOABP6J.js.map +1 -0
  40. package/dist/compiler.cjs +3 -3
  41. package/dist/compiler.d.cts +1 -1
  42. package/dist/compiler.d.ts +1 -1
  43. package/dist/compiler.js +2 -2
  44. package/dist/contracts/handlers/index.cjs +10 -10
  45. package/dist/contracts/handlers/index.d.cts +3 -3
  46. package/dist/contracts/handlers/index.d.ts +3 -3
  47. package/dist/contracts/handlers/index.js +3 -3
  48. package/dist/{index-46g577Ka.d.cts → index-CKzBYoDa.d.cts} +2 -2
  49. package/dist/{index-2wKMrT0a.d.ts → index-COs69e8T.d.ts} +2 -2
  50. package/dist/{index-C66rjxz2.d.ts → index-Pk3i_MMU.d.ts} +13 -3
  51. package/dist/{index-Dqk07NwJ.d.cts → index-czozpKPT.d.cts} +13 -3
  52. package/dist/index.cjs +343 -315
  53. package/dist/index.d.cts +118 -138
  54. package/dist/index.d.ts +118 -138
  55. package/dist/index.js +6 -6
  56. package/dist/{keyringDescriptorProvider-DiBM4GmB.d.ts → keyringDescriptorProvider-CbNzWwbS.d.ts} +163 -2
  57. package/dist/{keyringDescriptorProvider-DnaLUC7v.d.cts → keyringDescriptorProvider-nC8fIjBN.d.cts} +163 -2
  58. package/dist/{program-BARSNg3X.d.ts → program-38A2Twvj.d.ts} +4 -2
  59. package/dist/{program-znrWkxE4.d.cts → program-DPzf5qsk.d.cts} +4 -2
  60. package/dist/repositories/realm/index.cjs +39 -39
  61. package/dist/repositories/realm/index.d.cts +2 -2
  62. package/dist/repositories/realm/index.d.ts +2 -2
  63. package/dist/repositories/realm/index.js +7 -7
  64. package/dist/repositories/sqlite/index.cjs +37 -37
  65. package/dist/repositories/sqlite/index.d.cts +2 -2
  66. package/dist/repositories/sqlite/index.d.ts +2 -2
  67. package/dist/repositories/sqlite/index.js +7 -7
  68. package/dist/{taskRunner-BM6IAKlS.d.ts → taskRunner-DBOqvP33.d.ts} +1 -1
  69. package/dist/{taskRunner-BmDIZiSl.d.cts → taskRunner-DXivOJHc.d.cts} +1 -1
  70. package/dist/wallet/expo/background.cjs +16 -16
  71. package/dist/wallet/expo/background.d.cts +3 -3
  72. package/dist/wallet/expo/background.d.ts +3 -3
  73. package/dist/wallet/expo/background.js +8 -8
  74. package/dist/wallet/expo/index.cjs +17 -17
  75. package/dist/wallet/expo/index.d.cts +3 -3
  76. package/dist/wallet/expo/index.d.ts +3 -3
  77. package/dist/wallet/expo/index.js +7 -7
  78. package/dist/worker/expo/index.cjs +11 -11
  79. package/dist/worker/expo/index.d.cts +4 -4
  80. package/dist/worker/expo/index.d.ts +4 -4
  81. package/dist/worker/expo/index.js +7 -7
  82. package/package.json +2 -2
  83. package/dist/chunk-4X67IB2V.cjs.map +0 -1
  84. package/dist/chunk-C7NY6WSA.js.map +0 -1
  85. package/dist/chunk-DJYX73W2.js.map +0 -1
  86. package/dist/chunk-DNFTHG73.js.map +0 -1
  87. package/dist/chunk-HKEPJBTY.cjs.map +0 -1
  88. package/dist/chunk-JFJNB7ZH.cjs.map +0 -1
  89. package/dist/chunk-LZAINCGU.cjs.map +0 -1
  90. package/dist/chunk-QTMK34TP.js.map +0 -1
  91. package/dist/chunk-V3ZLL5VY.js.map +0 -1
  92. package/dist/chunk-X6ZI53DZ.cjs.map +0 -1
  93. package/dist/chunk-Y3CDDPWI.cjs.map +0 -1
  94. package/dist/chunk-YKT4NAQG.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkY3CDDPWI_cjs = require('../../chunk-Y3CDDPWI.cjs');
4
- require('../../chunk-X6ZI53DZ.cjs');
5
- require('../../chunk-HKEPJBTY.cjs');
6
- require('../../chunk-NDQ4LB4X.cjs');
7
- require('../../chunk-JFJNB7ZH.cjs');
8
- var chunkLZAINCGU_cjs = require('../../chunk-LZAINCGU.cjs');
3
+ var chunkEQ3JVVUR_cjs = require('../../chunk-EQ3JVVUR.cjs');
4
+ require('../../chunk-L7OOPAUG.cjs');
5
+ require('../../chunk-4IDCSOP2.cjs');
6
+ require('../../chunk-JYQXB7OH.cjs');
7
+ require('../../chunk-5PWL7WOT.cjs');
8
+ var chunkSOJDUKY6_cjs = require('../../chunk-SOJDUKY6.cjs');
9
9
  require('../../chunk-FLPWNMX3.cjs');
10
10
 
11
11
  // src/repositories/realm/walletRepository.ts
@@ -42,7 +42,7 @@ var RealmWalletRepository = class {
42
42
  await this.ensureInit();
43
43
  this.realm.write(() => {
44
44
  for (const vtxo of vtxos) {
45
- const s = chunkY3CDDPWI_cjs.serializeVtxo(vtxo);
45
+ const s = chunkEQ3JVVUR_cjs.serializeVtxo(vtxo);
46
46
  this.realm.create(
47
47
  "ArkVtxo",
48
48
  {
@@ -57,7 +57,7 @@ var RealmWalletRepository = class {
57
57
  intentCb: s.intentTapLeafScript.cb,
58
58
  intentS: s.intentTapLeafScript.s,
59
59
  statusJson: JSON.stringify(s.status),
60
- createdAt: chunkY3CDDPWI_cjs.createdAtToIso(s.createdAt),
60
+ createdAt: chunkEQ3JVVUR_cjs.createdAtToIso(s.createdAt),
61
61
  isUnrolled: s.isUnrolled ?? false,
62
62
  isSpent: s.isSpent === void 0 ? null : s.isSpent,
63
63
  isSwept: s.isSwept === void 0 ? null : s.isSwept,
@@ -81,7 +81,7 @@ var RealmWalletRepository = class {
81
81
  return this.deleteWhere("ArkVtxo", "address", address);
82
82
  }
83
83
  async getVtxosForScriptPage(script, page, options) {
84
- chunkY3CDDPWI_cjs.assertPageRequest(page);
84
+ chunkEQ3JVVUR_cjs.assertPageRequest(page);
85
85
  await this.ensureInit();
86
86
  let results = this.realm.objects("ArkVtxo").filtered("script == $0", script);
87
87
  if (options?.unspentOnly) {
@@ -108,15 +108,15 @@ var RealmWalletRepository = class {
108
108
  rows.push({ address: row.address, vtxo: vtxoObjectToDomain(row) });
109
109
  if (rows.length > page.limit) break;
110
110
  }
111
- const result = chunkY3CDDPWI_cjs.pageResult(rows, page.limit, (row) => ({
111
+ const result = chunkEQ3JVVUR_cjs.pageResult(rows, page.limit, (row) => ({
112
112
  address: row.address,
113
113
  txid: row.vtxo.txid,
114
114
  vout: row.vtxo.vout
115
115
  }));
116
- return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !chunkLZAINCGU_cjs.isVtxoSpent(row.vtxo)) } : result;
116
+ return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !chunkSOJDUKY6_cjs.isVtxoSpent(row.vtxo)) } : result;
117
117
  }
118
118
  async saveVtxosForScript(key, vtxos) {
119
- return this.saveVtxos(chunkY3CDDPWI_cjs.checkSaveVtxosForScript("RealmWalletRepository", key, vtxos), vtxos);
119
+ return this.saveVtxos(chunkEQ3JVVUR_cjs.checkSaveVtxosForScript("RealmWalletRepository", key, vtxos), vtxos);
120
120
  }
121
121
  async deleteVtxosForScript(script) {
122
122
  return this.deleteWhere("ArkVtxo", "script", script);
@@ -126,7 +126,7 @@ var RealmWalletRepository = class {
126
126
  return this.pageByAddress("ArkUtxo", address, page, utxoObjectToDomain);
127
127
  }
128
128
  async pageByAddress(schema, address, page, deserialize) {
129
- chunkY3CDDPWI_cjs.assertPageRequest(page);
129
+ chunkEQ3JVVUR_cjs.assertPageRequest(page);
130
130
  await this.ensureInit();
131
131
  let results = this.realm.objects(schema).filtered("address == $0", address);
132
132
  if (page.after) {
@@ -144,18 +144,18 @@ var RealmWalletRepository = class {
144
144
  rows.push({ key: { txid: row.txid, vout: row.vout }, item: deserialize(row) });
145
145
  if (rows.length > page.limit) break;
146
146
  }
147
- const result = chunkY3CDDPWI_cjs.pageResult(rows, page.limit, (row) => row.key);
147
+ const result = chunkEQ3JVVUR_cjs.pageResult(rows, page.limit, (row) => row.key);
148
148
  return { items: result.items.map((row) => row.item), nextCursor: result.nextCursor };
149
149
  }
150
150
  async saveUtxos(addressOrBatch, utxos) {
151
151
  await this.ensureInit();
152
- const rows = chunkY3CDDPWI_cjs.utxoEntries(addressOrBatch, utxos).flatMap(
152
+ const rows = chunkEQ3JVVUR_cjs.utxoEntries(addressOrBatch, utxos).flatMap(
153
153
  ([address, list]) => list.map((utxo) => ({ address, utxo }))
154
154
  );
155
155
  if (rows.length === 0) return;
156
156
  this.realm.write(() => {
157
157
  for (const { address, utxo } of rows) {
158
- const s = chunkY3CDDPWI_cjs.serializeUtxo(utxo);
158
+ const s = chunkEQ3JVVUR_cjs.serializeUtxo(utxo);
159
159
  this.realm.create(
160
160
  "ArkUtxo",
161
161
  {
@@ -182,8 +182,8 @@ var RealmWalletRepository = class {
182
182
  }
183
183
  // ── Transaction history ────────────────────────────────────────────
184
184
  async getTransactionHistoryPage(filter, page) {
185
- chunkY3CDDPWI_cjs.assertPageRequest(page);
186
- chunkY3CDDPWI_cjs.assertHistoryPageFilter(filter);
185
+ chunkEQ3JVVUR_cjs.assertPageRequest(page);
186
+ chunkEQ3JVVUR_cjs.assertHistoryPageFilter(filter);
187
187
  let results = this.realm.objects("ArkTransaction").filtered("address == $0", filter.address);
188
188
  results = results.filtered(
189
189
  "createdAt >= $0",
@@ -197,12 +197,12 @@ var RealmWalletRepository = class {
197
197
  ["arkTxid", false]
198
198
  ])) {
199
199
  const tx = txObjectToDomain(row);
200
- if (page.after !== void 0 && chunkY3CDDPWI_cjs.compareHistoryCursors({ createdAt: tx.createdAt, key: tx.key }, page.after) <= 0)
200
+ if (page.after !== void 0 && chunkEQ3JVVUR_cjs.compareHistoryCursors({ createdAt: tx.createdAt, key: tx.key }, page.after) <= 0)
201
201
  continue;
202
202
  rows.push(tx);
203
203
  if (rows.length > page.limit) break;
204
204
  }
205
- return chunkY3CDDPWI_cjs.pageResult(rows, page.limit, (tx) => ({ createdAt: tx.createdAt, key: tx.key }));
205
+ return chunkEQ3JVVUR_cjs.pageResult(rows, page.limit, (tx) => ({ createdAt: tx.createdAt, key: tx.key }));
206
206
  }
207
207
  async saveTransactions(address, txs) {
208
208
  await this.ensureInit();
@@ -220,7 +220,7 @@ var RealmWalletRepository = class {
220
220
  amount: tx.amount,
221
221
  settled: tx.settled,
222
222
  createdAt: tx.createdAt,
223
- assetsJson: tx.assets ? JSON.stringify(chunkY3CDDPWI_cjs.serializeAssets(tx.assets)) : null
223
+ assetsJson: tx.assets ? JSON.stringify(chunkEQ3JVVUR_cjs.serializeAssets(tx.assets)) : null
224
224
  },
225
225
  "modified"
226
226
  );
@@ -250,7 +250,7 @@ var RealmWalletRepository = class {
250
250
  settings: row.settingsJson ? JSON.parse(row.settingsJson) : void 0,
251
251
  lastSyncTime: row.lastSyncTime ?? void 0
252
252
  } : {};
253
- const state = chunkY3CDDPWI_cjs.applyWalletStateUpdate(current, updater);
253
+ const state = chunkEQ3JVVUR_cjs.applyWalletStateUpdate(current, updater);
254
254
  this.realm.create(
255
255
  "ArkWalletState",
256
256
  {
@@ -322,9 +322,9 @@ function vtxoObjectToDomain(obj) {
322
322
  // Post-migration every row has `script`, but the backfill is
323
323
  // idempotent: derive from `address` if the legacy column is still
324
324
  // null (e.g. the migration hasn't run yet on this handle).
325
- script: obj.script ?? chunkY3CDDPWI_cjs.scriptFromArkAddress(obj.address)
325
+ script: obj.script ?? chunkEQ3JVVUR_cjs.scriptFromArkAddress(obj.address)
326
326
  };
327
- return chunkY3CDDPWI_cjs.deserializeVtxo(serialized);
327
+ return chunkEQ3JVVUR_cjs.deserializeVtxo(serialized);
328
328
  }
329
329
  function utxoObjectToDomain(obj) {
330
330
  const serialized = {
@@ -343,7 +343,7 @@ function utxoObjectToDomain(obj) {
343
343
  status: JSON.parse(obj.statusJson),
344
344
  extraWitness: obj.extraWitnessJson ? JSON.parse(obj.extraWitnessJson) : void 0
345
345
  };
346
- return chunkY3CDDPWI_cjs.deserializeUtxo(serialized);
346
+ return chunkEQ3JVVUR_cjs.deserializeUtxo(serialized);
347
347
  }
348
348
  function txObjectToDomain(obj) {
349
349
  const tx = {
@@ -358,7 +358,7 @@ function txObjectToDomain(obj) {
358
358
  createdAt: obj.createdAt
359
359
  };
360
360
  if (obj.assetsJson) {
361
- tx.assets = chunkY3CDDPWI_cjs.deserializeAssets(JSON.parse(obj.assetsJson));
361
+ tx.assets = chunkEQ3JVVUR_cjs.deserializeAssets(JSON.parse(obj.assetsJson));
362
362
  }
363
363
  return tx;
364
364
  }
@@ -384,9 +384,9 @@ var RealmContractRepository = class {
384
384
  }
385
385
  // ── Contract management ────────────────────────────────────────────
386
386
  async getContractsPage(filter, page) {
387
- chunkY3CDDPWI_cjs.assertPageRequest(page);
388
- if (chunkY3CDDPWI_cjs.contractFilterMatchesNothing(filter)) return { items: [] };
389
- const toPage = (rows) => chunkY3CDDPWI_cjs.pageResult(rows.map(contractObjectToDomain), page.limit, (contract) => contract.script);
387
+ chunkEQ3JVVUR_cjs.assertPageRequest(page);
388
+ if (chunkEQ3JVVUR_cjs.contractFilterMatchesNothing(filter)) return { items: [] };
389
+ const toPage = (rows) => chunkEQ3JVVUR_cjs.pageResult(rows.map(contractObjectToDomain), page.limit, (contract) => contract.script);
390
390
  if (filter?.watch === void 0 || filter.script !== void 0) {
391
391
  return toPage(this.readRows(filter, page));
392
392
  }
@@ -420,7 +420,7 @@ var RealmContractRepository = class {
420
420
  if (query) results = results.filtered(query, ...args);
421
421
  const rows = [];
422
422
  for (const row of results.sorted("script")) {
423
- if (filter?.scope !== void 0 && ![filter.scope].flat().includes(chunkY3CDDPWI_cjs.scopeOf(contractObjectToDomain(row))))
423
+ if (filter?.scope !== void 0 && ![filter.scope].flat().includes(chunkEQ3JVVUR_cjs.scopeOf(contractObjectToDomain(row))))
424
424
  continue;
425
425
  rows.push(row);
426
426
  if (rows.length > page.limit) break;
@@ -550,7 +550,7 @@ var RealmBatchRegistrationRepository = class {
550
550
  const clashes = [
551
551
  ...this.realm.objects("ArkIntent").filtered("intentId == $0", intent.registrationId)
552
552
  ].map(toIntent);
553
- chunkY3CDDPWI_cjs.assertIntentIdUnique(intent, clashes);
553
+ chunkEQ3JVVUR_cjs.assertIntentIdUnique(intent, clashes);
554
554
  }
555
555
  this.realm.create(
556
556
  "ArkIntent",
@@ -578,22 +578,22 @@ var RealmBatchRegistrationRepository = class {
578
578
  });
579
579
  }
580
580
  async getBatchRegistrationsPage(filter, page) {
581
- chunkY3CDDPWI_cjs.assertPageRequest(page);
581
+ chunkEQ3JVVUR_cjs.assertPageRequest(page);
582
582
  let results = this.realm.objects("ArkIntent");
583
583
  if (page.after !== void 0) results = results.filtered("intentTxId > $0", page.after);
584
584
  const rows = [];
585
585
  for (const row of results.sorted("intentTxId")) {
586
586
  const intent = toIntent(row);
587
- if (filter && !chunkY3CDDPWI_cjs.intentMatchesFilter(intent, filter)) continue;
587
+ if (filter && !chunkEQ3JVVUR_cjs.intentMatchesFilter(intent, filter)) continue;
588
588
  rows.push(intent);
589
589
  if (rows.length > page.limit) break;
590
590
  }
591
- return chunkY3CDDPWI_cjs.pageResult(rows, page.limit, (intent) => intent.proofTxId);
591
+ return chunkEQ3JVVUR_cjs.pageResult(rows, page.limit, (intent) => intent.proofTxId);
592
592
  }
593
593
  async getLockedVtxoOutpoints() {
594
594
  const out = [];
595
595
  for (const o of [...this.realm.objects("ArkIntent")].map(toIntent))
596
- if (!chunkY3CDDPWI_cjs.isTerminalBatchRegistrationState(o.state)) out.push(...o.proofInputs);
596
+ if (!chunkEQ3JVVUR_cjs.isTerminalBatchRegistrationState(o.state)) out.push(...o.proofInputs);
597
597
  return out;
598
598
  }
599
599
  /** @deprecated Use {@link saveBatchRegistration}. */
@@ -644,7 +644,7 @@ var RealmVirtualTxRepository = class {
644
644
  txid: t.txid,
645
645
  psbt: t.psbt ?? prev?.psbt ?? null,
646
646
  expiresAt: t.expiresAt ?? prev?.expiresAt ?? null,
647
- type: chunkY3CDDPWI_cjs.mergeChainedTxType(t.type, prev?.type)
647
+ type: chunkEQ3JVVUR_cjs.mergeChainedTxType(t.type, prev?.type)
648
648
  },
649
649
  "modified"
650
650
  );
@@ -890,9 +890,9 @@ function runArkRealmMigrations(oldRealm, newRealm) {
890
890
  for (let i = 0; i < newVtxos.length; i++) {
891
891
  const newVtxo = newVtxos[i];
892
892
  if (!newVtxo.script) {
893
- newVtxo.script = chunkY3CDDPWI_cjs.scriptFromArkAddress(newVtxo.address);
893
+ newVtxo.script = chunkEQ3JVVUR_cjs.scriptFromArkAddress(newVtxo.address);
894
894
  }
895
- const facts = chunkY3CDDPWI_cjs.legacyVtxoFacts(legacyByPk.get(newVtxo.pk));
895
+ const facts = chunkEQ3JVVUR_cjs.legacyVtxoFacts(legacyByPk.get(newVtxo.pk));
896
896
  if (facts) {
897
897
  if (newVtxo.isSpent == null) newVtxo.isSpent = facts.isSpent;
898
898
  if (newVtxo.isSwept == null) newVtxo.isSwept = facts.isSwept;
@@ -922,7 +922,7 @@ function runArkRealmMigrations(oldRealm, newRealm) {
922
922
 
923
923
  Object.defineProperty(exports, "ChainedTxType", {
924
924
  enumerable: true,
925
- get: function () { return chunkY3CDDPWI_cjs.ChainedTxType; }
925
+ get: function () { return chunkEQ3JVVUR_cjs.ChainedTxType; }
926
926
  });
927
927
  exports.ARK_REALM_SCHEMA_VERSION = ARK_REALM_SCHEMA_VERSION;
928
928
  exports.ArkExperimentalRealmSchemas = ArkExperimentalRealmSchemas;
@@ -1,5 +1,5 @@
1
- import { W as WalletRepository, P as PageRequest, B as Outpoint, D as PageResult, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, Q as AtomicWalletState, U as WalletState, C as ContractRepository, X as ContractFilter, y as Contract, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-Dqk07NwJ.cjs';
2
- export { a2 as ChainedTxType } from '../../index-Dqk07NwJ.cjs';
1
+ import { W as WalletRepository, P as PageRequest, B as Outpoint, D as PageResult, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, Q as AtomicWalletState, U as WalletState, C as ContractRepository, X as ContractFilter, y as Contract, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-czozpKPT.cjs';
2
+ export { a2 as ChainedTxType } from '../../index-czozpKPT.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, P as PageRequest, B as Outpoint, D as PageResult, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, Q as AtomicWalletState, U as WalletState, C as ContractRepository, X as ContractFilter, y as Contract, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-C66rjxz2.js';
2
- export { a2 as ChainedTxType } from '../../index-C66rjxz2.js';
1
+ import { W as WalletRepository, P as PageRequest, B as Outpoint, D as PageResult, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, Q as AtomicWalletState, U as WalletState, C as ContractRepository, X as ContractFilter, y as Contract, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-Pk3i_MMU.js';
2
+ export { a2 as ChainedTxType } from '../../index-Pk3i_MMU.js';
3
3
  import '@scure/btc-signer/utils.js';
4
4
  import '@scure/btc-signer';
5
5
  import '@scure/btc-signer/psbt.js';
@@ -1,10 +1,10 @@
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-YKT4NAQG.js';
2
- export { ChainedTxType } from '../../chunk-YKT4NAQG.js';
3
- import '../../chunk-V3ZLL5VY.js';
4
- import '../../chunk-C7NY6WSA.js';
5
- import '../../chunk-47Z4LEIW.js';
6
- import '../../chunk-DNFTHG73.js';
7
- import { isVtxoSpent } from '../../chunk-QTMK34TP.js';
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-OLKZUJIN.js';
2
+ export { ChainedTxType } from '../../chunk-OLKZUJIN.js';
3
+ import '../../chunk-U34GU5RM.js';
4
+ import '../../chunk-E7LKKEVR.js';
5
+ import '../../chunk-3F5AJ235.js';
6
+ import '../../chunk-XXNPX4MK.js';
7
+ import { isVtxoSpent } from '../../chunk-YTOABP6J.js';
8
8
  import '../../chunk-FDJ734CH.js';
9
9
 
10
10
  // src/repositories/realm/walletRepository.ts
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkY3CDDPWI_cjs = require('../../chunk-Y3CDDPWI.cjs');
4
- require('../../chunk-X6ZI53DZ.cjs');
5
- require('../../chunk-HKEPJBTY.cjs');
6
- require('../../chunk-NDQ4LB4X.cjs');
7
- require('../../chunk-JFJNB7ZH.cjs');
8
- var chunkLZAINCGU_cjs = require('../../chunk-LZAINCGU.cjs');
3
+ var chunkEQ3JVVUR_cjs = require('../../chunk-EQ3JVVUR.cjs');
4
+ require('../../chunk-L7OOPAUG.cjs');
5
+ require('../../chunk-4IDCSOP2.cjs');
6
+ require('../../chunk-JYQXB7OH.cjs');
7
+ require('../../chunk-5PWL7WOT.cjs');
8
+ var chunkSOJDUKY6_cjs = require('../../chunk-SOJDUKY6.cjs');
9
9
  require('../../chunk-FLPWNMX3.cjs');
10
10
 
11
11
  // src/repositories/sqlite/transaction.ts
@@ -242,7 +242,7 @@ var SQLiteWalletRepository = class {
242
242
  for (const row of nullRows) {
243
243
  await tx.run(
244
244
  `UPDATE ${this.tables.vtxos} SET script = ? WHERE txid = ? AND vout = ?`,
245
- [chunkY3CDDPWI_cjs.scriptFromArkAddress(row.address), row.txid, row.vout]
245
+ [chunkEQ3JVVUR_cjs.scriptFromArkAddress(row.address), row.txid, row.vout]
246
246
  );
247
247
  }
248
248
  const tempName = `${this.tables.vtxos}__migrate_tmp`;
@@ -283,7 +283,7 @@ var SQLiteWalletRepository = class {
283
283
  WHERE virtual_status_json IS NOT NULL AND is_swept IS NULL`
284
284
  );
285
285
  for (const row of rows) {
286
- const facts = chunkY3CDDPWI_cjs.legacyVtxoFacts(row.virtual_status_json);
286
+ const facts = chunkEQ3JVVUR_cjs.legacyVtxoFacts(row.virtual_status_json);
287
287
  if (!facts) continue;
288
288
  await tx.run(
289
289
  `UPDATE ${this.tables.vtxos}
@@ -375,7 +375,7 @@ var SQLiteWalletRepository = class {
375
375
  expires_at, expires_at_height,
376
376
  spent_by, settled_by, ark_tx_id, extra_witness_json, assets_json, script`,
377
377
  vtxos.map((vtxo) => {
378
- const s = chunkY3CDDPWI_cjs.serializeVtxo(vtxo);
378
+ const s = chunkEQ3JVVUR_cjs.serializeVtxo(vtxo);
379
379
  return [
380
380
  s.txid,
381
381
  s.vout,
@@ -387,7 +387,7 @@ var SQLiteWalletRepository = class {
387
387
  s.intentTapLeafScript.cb,
388
388
  s.intentTapLeafScript.s,
389
389
  JSON.stringify(s.status),
390
- chunkY3CDDPWI_cjs.createdAtToIso(s.createdAt),
390
+ chunkEQ3JVVUR_cjs.createdAtToIso(s.createdAt),
391
391
  s.isUnrolled ? 1 : 0,
392
392
  s.isSpent === void 0 ? null : s.isSpent ? 1 : 0,
393
393
  s.isSwept === void 0 ? null : s.isSwept ? 1 : 0,
@@ -410,7 +410,7 @@ var SQLiteWalletRepository = class {
410
410
  await this.db.run(`DELETE FROM ${this.tables.vtxos} WHERE address = ?`, [address]);
411
411
  }
412
412
  async getVtxosForScriptPage(script, page, options) {
413
- chunkY3CDDPWI_cjs.assertPageRequest(page);
413
+ chunkEQ3JVVUR_cjs.assertPageRequest(page);
414
414
  await this.ensureInit();
415
415
  const after = page.after;
416
416
  const rows = await this.db.all(
@@ -428,15 +428,15 @@ var SQLiteWalletRepository = class {
428
428
  page.limit + 1
429
429
  ] : [script, page.limit + 1]
430
430
  );
431
- const result = chunkY3CDDPWI_cjs.pageResult(
431
+ const result = chunkEQ3JVVUR_cjs.pageResult(
432
432
  rows.map((row) => ({ address: row.address, vtxo: vtxoRowToDomain(row) })),
433
433
  page.limit,
434
434
  (row) => ({ address: row.address, txid: row.vtxo.txid, vout: row.vtxo.vout })
435
435
  );
436
- return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !chunkLZAINCGU_cjs.isVtxoSpent(row.vtxo)) } : result;
436
+ return options?.unspentOnly ? { ...result, items: result.items.filter((row) => !chunkSOJDUKY6_cjs.isVtxoSpent(row.vtxo)) } : result;
437
437
  }
438
438
  async saveVtxosForScript(key, vtxos) {
439
- return this.saveVtxos(chunkY3CDDPWI_cjs.checkSaveVtxosForScript("SQLiteWalletRepository", key, vtxos), vtxos);
439
+ return this.saveVtxos(chunkEQ3JVVUR_cjs.checkSaveVtxosForScript("SQLiteWalletRepository", key, vtxos), vtxos);
440
440
  }
441
441
  async deleteVtxosForScript(script) {
442
442
  await this.ensureInit();
@@ -447,21 +447,21 @@ var SQLiteWalletRepository = class {
447
447
  return this.pageByAddress(this.tables.utxos, address, page, utxoRowToDomain);
448
448
  }
449
449
  async pageByAddress(table, address, page, deserialize) {
450
- chunkY3CDDPWI_cjs.assertPageRequest(page);
450
+ chunkEQ3JVVUR_cjs.assertPageRequest(page);
451
451
  await this.ensureInit();
452
452
  const rows = await this.db.all(
453
453
  `SELECT * FROM ${table} WHERE address = ? AND (txid, vout) > (?, ?)
454
454
  ORDER BY txid, vout LIMIT ?`,
455
455
  [address, page.after?.txid ?? "", page.after?.vout ?? -1, page.limit + 1]
456
456
  );
457
- const result = chunkY3CDDPWI_cjs.pageResult(rows, page.limit, ({ txid, vout }) => ({ txid, vout }));
457
+ const result = chunkEQ3JVVUR_cjs.pageResult(rows, page.limit, ({ txid, vout }) => ({ txid, vout }));
458
458
  return { items: result.items.map(deserialize), nextCursor: result.nextCursor };
459
459
  }
460
460
  async saveUtxos(addressOrBatch, utxos) {
461
461
  await this.ensureInit();
462
- const rows = chunkY3CDDPWI_cjs.utxoEntries(addressOrBatch, utxos).flatMap(
462
+ const rows = chunkEQ3JVVUR_cjs.utxoEntries(addressOrBatch, utxos).flatMap(
463
463
  ([address, list]) => list.map((utxo) => {
464
- const s = chunkY3CDDPWI_cjs.serializeUtxo(utxo);
464
+ const s = chunkEQ3JVVUR_cjs.serializeUtxo(utxo);
465
465
  return [
466
466
  s.txid,
467
467
  s.vout,
@@ -491,8 +491,8 @@ var SQLiteWalletRepository = class {
491
491
  }
492
492
  // ── Transaction history ────────────────────────────────────────────
493
493
  async getTransactionHistoryPage(filter, page) {
494
- chunkY3CDDPWI_cjs.assertPageRequest(page);
495
- chunkY3CDDPWI_cjs.assertHistoryPageFilter(filter);
494
+ chunkEQ3JVVUR_cjs.assertPageRequest(page);
495
+ chunkEQ3JVVUR_cjs.assertHistoryPageFilter(filter);
496
496
  await this.ensureInit();
497
497
  const conditions = ["address = ?"];
498
498
  const params = [filter.address];
@@ -516,7 +516,7 @@ var SQLiteWalletRepository = class {
516
516
  ORDER BY created_at, boarding_txid, commitment_txid, ark_txid LIMIT ?`,
517
517
  [...params, page.limit + 1]
518
518
  );
519
- return chunkY3CDDPWI_cjs.pageResult(rows.map(txRowToDomain), page.limit, (tx) => ({
519
+ return chunkEQ3JVVUR_cjs.pageResult(rows.map(txRowToDomain), page.limit, (tx) => ({
520
520
  createdAt: tx.createdAt,
521
521
  key: tx.key
522
522
  }));
@@ -536,7 +536,7 @@ var SQLiteWalletRepository = class {
536
536
  tx.amount,
537
537
  tx.settled ? 1 : 0,
538
538
  tx.createdAt,
539
- tx.assets ? JSON.stringify(chunkY3CDDPWI_cjs.serializeAssets(tx.assets)) : null
539
+ tx.assets ? JSON.stringify(chunkEQ3JVVUR_cjs.serializeAssets(tx.assets)) : null
540
540
  ])
541
541
  );
542
542
  }
@@ -558,7 +558,7 @@ var SQLiteWalletRepository = class {
558
558
  settings: row.settings_json ? JSON.parse(row.settings_json) : void 0,
559
559
  lastSyncTime: row.last_sync_time ?? void 0
560
560
  } : {};
561
- const state = chunkY3CDDPWI_cjs.applyWalletStateUpdate(current, updater);
561
+ const state = chunkEQ3JVVUR_cjs.applyWalletStateUpdate(current, updater);
562
562
  await tx.run(
563
563
  `INSERT OR REPLACE INTO ${this.tables.walletState}
564
564
  (key, settings_json, last_sync_time) VALUES (?, ?, ?)`,
@@ -631,9 +631,9 @@ function vtxoRowToDomain(row) {
631
631
  // Post-migration every row has `script`, but the backfill is
632
632
  // idempotent: derive from `address` if the legacy column is still
633
633
  // null (e.g. the migration hasn't run yet on this handle).
634
- script: row.script ?? chunkY3CDDPWI_cjs.scriptFromArkAddress(row.address)
634
+ script: row.script ?? chunkEQ3JVVUR_cjs.scriptFromArkAddress(row.address)
635
635
  };
636
- return chunkY3CDDPWI_cjs.deserializeVtxo(serialized);
636
+ return chunkEQ3JVVUR_cjs.deserializeVtxo(serialized);
637
637
  }
638
638
  function utxoRowToDomain(row) {
639
639
  const serialized = {
@@ -652,7 +652,7 @@ function utxoRowToDomain(row) {
652
652
  status: JSON.parse(row.status_json),
653
653
  extraWitness: row.extra_witness_json ? JSON.parse(row.extra_witness_json) : void 0
654
654
  };
655
- return chunkY3CDDPWI_cjs.deserializeUtxo(serialized);
655
+ return chunkEQ3JVVUR_cjs.deserializeUtxo(serialized);
656
656
  }
657
657
  function txRowToDomain(row) {
658
658
  const tx = {
@@ -667,7 +667,7 @@ function txRowToDomain(row) {
667
667
  createdAt: row.created_at
668
668
  };
669
669
  if (row.assets_json) {
670
- tx.assets = chunkY3CDDPWI_cjs.deserializeAssets(JSON.parse(row.assets_json));
670
+ tx.assets = chunkEQ3JVVUR_cjs.deserializeAssets(JSON.parse(row.assets_json));
671
671
  }
672
672
  return tx;
673
673
  }
@@ -737,9 +737,9 @@ var SQLiteContractRepository = class {
737
737
  }
738
738
  // ── Contract management ────────────────────────────────────────────
739
739
  async getContractsPage(filter, page) {
740
- chunkY3CDDPWI_cjs.assertPageRequest(page);
740
+ chunkEQ3JVVUR_cjs.assertPageRequest(page);
741
741
  await this.ensureInit();
742
- if (chunkY3CDDPWI_cjs.contractFilterMatchesNothing(filter)) return { items: [] };
742
+ if (chunkEQ3JVVUR_cjs.contractFilterMatchesNothing(filter)) return { items: [] };
743
743
  const conditions = [];
744
744
  const params = [];
745
745
  if (filter) {
@@ -758,12 +758,12 @@ var SQLiteContractRepository = class {
758
758
  [...params, ...after === void 0 ? [] : [after], page.limit + 1]
759
759
  );
760
760
  for (const contract of rows.map(contractRowToDomain)) {
761
- if (!wanted || wanted.includes(chunkY3CDDPWI_cjs.scopeOf(contract))) matches.push(contract);
761
+ if (!wanted || wanted.includes(chunkEQ3JVVUR_cjs.scopeOf(contract))) matches.push(contract);
762
762
  }
763
763
  if (!wanted || rows.length <= page.limit || matches.length > page.limit) break;
764
764
  after = rows[rows.length - 1].script;
765
765
  }
766
- return chunkY3CDDPWI_cjs.pageResult(matches, page.limit, (contract) => contract.script);
766
+ return chunkEQ3JVVUR_cjs.pageResult(matches, page.limit, (contract) => contract.script);
767
767
  }
768
768
  async saveContract(contract) {
769
769
  await this.ensureInit();
@@ -930,7 +930,7 @@ var SQLiteBatchRegistrationRepository = class {
930
930
  });
931
931
  }
932
932
  async getBatchRegistrationsPage(filter, page) {
933
- chunkY3CDDPWI_cjs.assertPageRequest(page);
933
+ chunkEQ3JVVUR_cjs.assertPageRequest(page);
934
934
  await this.ensureInit();
935
935
  if (filter?.states?.length === 0) return { items: [] };
936
936
  const stateSql = filter?.states ? ` AND state IN (${filter.states.map(() => "?").join(", ")})` : "";
@@ -947,19 +947,19 @@ var SQLiteBatchRegistrationRepository = class {
947
947
  for (const row of batch) {
948
948
  after = row.intent_tx_id;
949
949
  const intent = rowToIntent(row);
950
- if (!filter || chunkY3CDDPWI_cjs.intentMatchesFilter(intent, filter)) rows.push(intent);
950
+ if (!filter || chunkEQ3JVVUR_cjs.intentMatchesFilter(intent, filter)) rows.push(intent);
951
951
  if (rows.length > page.limit) break;
952
952
  }
953
953
  if (batch.length < batchSize) break;
954
954
  }
955
- return chunkY3CDDPWI_cjs.pageResult(rows, page.limit, (intent) => intent.proofTxId);
955
+ return chunkEQ3JVVUR_cjs.pageResult(rows, page.limit, (intent) => intent.proofTxId);
956
956
  }
957
957
  async getLockedVtxoOutpoints() {
958
958
  await this.ensureInit();
959
959
  const rows = await this.db.all(`SELECT * FROM ${this.t}`);
960
960
  const out = [];
961
961
  for (const r of rows) {
962
- if (chunkY3CDDPWI_cjs.isTerminalBatchRegistrationState(r.state)) continue;
962
+ if (chunkEQ3JVVUR_cjs.isTerminalBatchRegistrationState(r.state)) continue;
963
963
  for (const o of JSON.parse(r.intent_vtxos_json)) out.push(o);
964
964
  }
965
965
  return out;
@@ -1055,7 +1055,7 @@ var SQLiteVirtualTxRepository = class {
1055
1055
  const prev = prevByTxid.get(t.txid);
1056
1056
  const psbt = t.psbt ?? prev?.psbt ?? null;
1057
1057
  const expires = t.expiresAt ?? prev?.expires_at ?? null;
1058
- const type = chunkY3CDDPWI_cjs.mergeChainedTxType(t.type, prev?.type);
1058
+ const type = chunkEQ3JVVUR_cjs.mergeChainedTxType(t.type, prev?.type);
1059
1059
  await tx.run(
1060
1060
  `INSERT OR REPLACE INTO ${this.tTx} (txid, psbt, expires_at, type) VALUES (?, ?, ?, ?)`,
1061
1061
  [t.txid, psbt, expires, type]
@@ -1141,7 +1141,7 @@ function rowToTx(r) {
1141
1141
 
1142
1142
  Object.defineProperty(exports, "ChainedTxType", {
1143
1143
  enumerable: true,
1144
- get: function () { return chunkY3CDDPWI_cjs.ChainedTxType; }
1144
+ get: function () { return chunkEQ3JVVUR_cjs.ChainedTxType; }
1145
1145
  });
1146
1146
  exports.SQLiteBatchRegistrationRepository = SQLiteBatchRegistrationRepository;
1147
1147
  exports.SQLiteContractRepository = SQLiteContractRepository;
@@ -1,5 +1,5 @@
1
- import { W as WalletRepository, Q as AtomicWalletState, P as PageRequest, B as Outpoint, D as PageResult, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, U as WalletState, C as ContractRepository, X as ContractFilter, y as Contract, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-Dqk07NwJ.cjs';
2
- export { a2 as ChainedTxType } from '../../index-Dqk07NwJ.cjs';
1
+ import { W as WalletRepository, Q as AtomicWalletState, P as PageRequest, B as Outpoint, D as PageResult, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, U as WalletState, C as ContractRepository, X as ContractFilter, y as Contract, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-czozpKPT.cjs';
2
+ export { a2 as ChainedTxType } from '../../index-czozpKPT.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, Q as AtomicWalletState, P as PageRequest, B as Outpoint, D as PageResult, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, U as WalletState, C as ContractRepository, X as ContractFilter, y as Contract, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-C66rjxz2.js';
2
- export { a2 as ChainedTxType } from '../../index-C66rjxz2.js';
1
+ import { W as WalletRepository, Q as AtomicWalletState, P as PageRequest, B as Outpoint, D as PageResult, z as ExtendedVirtualCoin, F as ScriptVtxoCursor, H as ScriptVtxoPageOptions, J as StoredVtxo, K as VtxoRepositoryKey, E as ExtendedCoin, L as TransactionHistoryPageFilter, M as TransactionHistoryPageCursor, g as ArkTransaction, U as WalletState, C as ContractRepository, X as ContractFilter, y as Contract, Y as BatchRegistrationRepository, Z as BatchRegistration, _ as BatchRegistrationPageFilter, $ as VirtualTxRepository, a0 as VirtualTx, a1 as VtxoBranch } from '../../index-Pk3i_MMU.js';
2
+ export { a2 as ChainedTxType } from '../../index-Pk3i_MMU.js';
3
3
  import '@scure/btc-signer/utils.js';
4
4
  import '@scure/btc-signer';
5
5
  import '@scure/btc-signer/psbt.js';
@@ -1,10 +1,10 @@
1
- import { legacyVtxoFacts, serializeVtxo, createdAtToIso, assertPageRequest, pageResult, checkSaveVtxosForScript, utxoEntries, serializeUtxo, assertHistoryPageFilter, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, contractFilterMatchesNothing, scopeOf, intentMatchesFilter, isTerminalBatchRegistrationState, applyWalletStateUpdate, mergeChainedTxType } from '../../chunk-YKT4NAQG.js';
2
- export { ChainedTxType } from '../../chunk-YKT4NAQG.js';
3
- import '../../chunk-V3ZLL5VY.js';
4
- import '../../chunk-C7NY6WSA.js';
5
- import '../../chunk-47Z4LEIW.js';
6
- import '../../chunk-DNFTHG73.js';
7
- import { isVtxoSpent } from '../../chunk-QTMK34TP.js';
1
+ import { legacyVtxoFacts, serializeVtxo, createdAtToIso, assertPageRequest, pageResult, checkSaveVtxosForScript, utxoEntries, serializeUtxo, assertHistoryPageFilter, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets, contractFilterMatchesNothing, scopeOf, intentMatchesFilter, isTerminalBatchRegistrationState, applyWalletStateUpdate, mergeChainedTxType } from '../../chunk-OLKZUJIN.js';
2
+ export { ChainedTxType } from '../../chunk-OLKZUJIN.js';
3
+ import '../../chunk-U34GU5RM.js';
4
+ import '../../chunk-E7LKKEVR.js';
5
+ import '../../chunk-3F5AJ235.js';
6
+ import '../../chunk-XXNPX4MK.js';
7
+ import { isVtxoSpent } from '../../chunk-YTOABP6J.js';
8
8
  import '../../chunk-FDJ734CH.js';
9
9
 
10
10
  // src/repositories/sqlite/transaction.ts
@@ -1,4 +1,4 @@
1
- import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, x as OperatorProvider, V as VirtualCoin, y as Contract, z as ExtendedVirtualCoin } from './index-C66rjxz2.js';
1
+ import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, x as OperatorProvider, V as VirtualCoin, y as Contract, z as ExtendedVirtualCoin } from './index-Pk3i_MMU.js';
2
2
 
3
3
  /**
4
4
  * A task item represents a unit of work in the inbox.
@@ -1,4 +1,4 @@
1
- import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, x as OperatorProvider, V as VirtualCoin, y as Contract, z as ExtendedVirtualCoin } from './index-Dqk07NwJ.cjs';
1
+ import { W as WalletRepository, C as ContractRepository, w as IndexerProvider, x as OperatorProvider, V as VirtualCoin, y as Contract, z as ExtendedVirtualCoin } from './index-czozpKPT.cjs';
2
2
 
3
3
  /**
4
4
  * A task item represents a unit of work in the inbox.