@arkade-os/sdk 0.4.64 → 0.4.66

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 (79) hide show
  1. package/dist/adapters/expo.cjs +5 -5
  2. package/dist/adapters/expo.d.cts +3 -6
  3. package/dist/adapters/expo.d.ts +3 -6
  4. package/dist/adapters/expo.js +3 -3
  5. package/dist/adapters/indexedDB.cjs +5 -5
  6. package/dist/adapters/indexedDB.js +4 -4
  7. package/dist/{asyncStorageTaskQueue-Dq_UcvDx.d.ts → asyncStorageTaskQueue-B6SijMi3.d.ts} +1 -1
  8. package/dist/{asyncStorageTaskQueue-Chwe60Ce.d.cts → asyncStorageTaskQueue-BZcIN7sA.d.cts} +1 -1
  9. package/dist/{chunk-HQ2DDMQN.js → chunk-2JZGPXU4.js} +170 -6
  10. package/dist/chunk-2JZGPXU4.js.map +1 -0
  11. package/dist/{chunk-RXITDAV4.cjs → chunk-3S3JZUEN.cjs} +184 -19
  12. package/dist/chunk-3S3JZUEN.cjs.map +1 -0
  13. package/dist/{chunk-USXWE2EJ.js → chunk-55ZZ6RBL.js} +4 -4
  14. package/dist/{chunk-USXWE2EJ.js.map → chunk-55ZZ6RBL.js.map} +1 -1
  15. package/dist/{chunk-LPEE2H2M.cjs → chunk-5E6IZNRG.cjs} +656 -774
  16. package/dist/chunk-5E6IZNRG.cjs.map +1 -0
  17. package/dist/{chunk-LN2VZP63.js → chunk-CYOI4PEA.js} +162 -15
  18. package/dist/chunk-CYOI4PEA.js.map +1 -0
  19. package/dist/{chunk-WJN2BLEI.js → chunk-DSC3G6QZ.js} +253 -379
  20. package/dist/chunk-DSC3G6QZ.js.map +1 -0
  21. package/dist/{chunk-4N45WCSJ.cjs → chunk-IM6IKNSL.cjs} +17 -17
  22. package/dist/{chunk-4N45WCSJ.cjs.map → chunk-IM6IKNSL.cjs.map} +1 -1
  23. package/dist/{chunk-XJCBV4AA.js → chunk-J33ZEM3A.js} +26 -18
  24. package/dist/chunk-J33ZEM3A.js.map +1 -0
  25. package/dist/{chunk-35YIP6OA.cjs → chunk-LL47QIHD.cjs} +10 -10
  26. package/dist/{chunk-35YIP6OA.cjs.map → chunk-LL47QIHD.cjs.map} +1 -1
  27. package/dist/{chunk-WXCVS6PD.cjs → chunk-PXPPZF5K.cjs} +207 -59
  28. package/dist/chunk-PXPPZF5K.cjs.map +1 -0
  29. package/dist/{chunk-ZUEGFM3T.js → chunk-R5POS3RS.js} +4 -4
  30. package/dist/{chunk-ZUEGFM3T.js.map → chunk-R5POS3RS.js.map} +1 -1
  31. package/dist/{chunk-FZFSGOTZ.cjs → chunk-ZIRFXBKL.cjs} +26 -18
  32. package/dist/chunk-ZIRFXBKL.cjs.map +1 -0
  33. package/dist/contracts/handlers/index.cjs +9 -9
  34. package/dist/contracts/handlers/index.d.cts +3 -3
  35. package/dist/contracts/handlers/index.d.ts +3 -3
  36. package/dist/contracts/handlers/index.js +2 -2
  37. package/dist/{delegate-Dv_9OVHv.d.ts → delegate-T-vgxMYZ.d.ts} +1 -1
  38. package/dist/{delegate-BBQW61ym.d.cts → delegate-YXupcWWJ.d.cts} +1 -1
  39. package/dist/{index-Bxe9kBFs.d.ts → index-D_FgwLH9.d.ts} +111 -2
  40. package/dist/{index-aZycGEsQ.d.cts → index-e7LYXk1d.d.cts} +111 -2
  41. package/dist/{index-CFOMyVMt.d.cts → index-uUE_uQPn.d.cts} +70 -33
  42. package/dist/{index-CFOMyVMt.d.ts → index-uUE_uQPn.d.ts} +70 -33
  43. package/dist/index.cjs +308 -268
  44. package/dist/index.d.cts +214 -19
  45. package/dist/index.d.ts +214 -19
  46. package/dist/index.js +4 -4
  47. package/dist/repositories/realm/index.cjs +19 -19
  48. package/dist/repositories/realm/index.d.cts +2 -2
  49. package/dist/repositories/realm/index.d.ts +2 -2
  50. package/dist/repositories/realm/index.js +5 -5
  51. package/dist/repositories/sqlite/index.cjs +18 -18
  52. package/dist/repositories/sqlite/index.d.cts +2 -2
  53. package/dist/repositories/sqlite/index.d.ts +2 -2
  54. package/dist/repositories/sqlite/index.js +5 -5
  55. package/dist/{taskRunner-CIKOS2OO.d.cts → taskRunner-BOVcIH1N.d.cts} +1 -1
  56. package/dist/{taskRunner-BDzWbpct.d.ts → taskRunner-DNyD1kXG.d.ts} +1 -1
  57. package/dist/wallet/expo/background.cjs +14 -14
  58. package/dist/wallet/expo/background.d.cts +3 -3
  59. package/dist/wallet/expo/background.d.ts +3 -3
  60. package/dist/wallet/expo/background.js +6 -6
  61. package/dist/wallet/expo/index.cjs +14 -14
  62. package/dist/wallet/expo/index.d.cts +4 -4
  63. package/dist/wallet/expo/index.d.ts +4 -4
  64. package/dist/wallet/expo/index.js +5 -5
  65. package/dist/{wallet-C2NvHjWB.d.cts → wallet-CNibc3yJ.d.ts} +3 -3
  66. package/dist/{wallet-DJUnN939.d.ts → wallet-DJN1QgFt.d.cts} +3 -3
  67. package/dist/worker/expo/index.cjs +9 -9
  68. package/dist/worker/expo/index.d.cts +4 -4
  69. package/dist/worker/expo/index.d.ts +4 -4
  70. package/dist/worker/expo/index.js +5 -5
  71. package/package.json +1 -1
  72. package/dist/chunk-FZFSGOTZ.cjs.map +0 -1
  73. package/dist/chunk-HQ2DDMQN.js.map +0 -1
  74. package/dist/chunk-LN2VZP63.js.map +0 -1
  75. package/dist/chunk-LPEE2H2M.cjs.map +0 -1
  76. package/dist/chunk-RXITDAV4.cjs.map +0 -1
  77. package/dist/chunk-WJN2BLEI.js.map +0 -1
  78. package/dist/chunk-WXCVS6PD.cjs.map +0 -1
  79. package/dist/chunk-XJCBV4AA.js.map +0 -1
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunk4N45WCSJ_cjs = require('../chunk-4N45WCSJ.cjs');
4
- require('../chunk-RXITDAV4.cjs');
5
- require('../chunk-FZFSGOTZ.cjs');
3
+ var chunkIM6IKNSL_cjs = require('../chunk-IM6IKNSL.cjs');
4
+ require('../chunk-3S3JZUEN.cjs');
5
+ require('../chunk-ZIRFXBKL.cjs');
6
6
  require('../chunk-5BLDMQED.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "ExpoArkProvider", {
11
11
  enumerable: true,
12
- get: function () { return chunk4N45WCSJ_cjs.ExpoArkProvider; }
12
+ get: function () { return chunkIM6IKNSL_cjs.ExpoArkProvider; }
13
13
  });
14
14
  Object.defineProperty(exports, "ExpoIndexerProvider", {
15
15
  enumerable: true,
16
- get: function () { return chunk4N45WCSJ_cjs.ExpoIndexerProvider; }
16
+ get: function () { return chunkIM6IKNSL_cjs.ExpoIndexerProvider; }
17
17
  });
18
18
  //# sourceMappingURL=expo.cjs.map
19
19
  //# sourceMappingURL=expo.cjs.map
@@ -1,5 +1,5 @@
1
- import { l as RestArkProvider, i as SettlementEvent, T as TxNotification, m as RestIndexerProvider, n as SubscriptionResponse } from '../index-CFOMyVMt.cjs';
2
- export { o as ArkProvider, p as IndexerProvider } from '../index-CFOMyVMt.cjs';
1
+ import { l as RestArkProvider, i as SettlementEvent, T as TxNotificationEvent, m as RestIndexerProvider, n as SubscriptionResponse } from '../index-uUE_uQPn.cjs';
2
+ export { o as ArkProvider, p as IndexerProvider } from '../index-uUE_uQPn.cjs';
3
3
  import '@scure/btc-signer/utils.js';
4
4
  import '@scure/btc-signer/transaction.js';
5
5
  import '@scure/btc-signer';
@@ -21,10 +21,7 @@ import '@scure/btc-signer/psbt.js';
21
21
  declare class ExpoArkProvider extends RestArkProvider {
22
22
  constructor(serverUrl?: string);
23
23
  getEventStream(signal: AbortSignal, topics: string[]): AsyncIterableIterator<SettlementEvent>;
24
- getTransactionsStream(signal: AbortSignal): AsyncIterableIterator<{
25
- commitmentTx?: TxNotification;
26
- arkTx?: TxNotification;
27
- }>;
24
+ getTransactionsStream(signal: AbortSignal): AsyncIterableIterator<TxNotificationEvent>;
28
25
  }
29
26
 
30
27
  /**
@@ -1,5 +1,5 @@
1
- import { l as RestArkProvider, i as SettlementEvent, T as TxNotification, m as RestIndexerProvider, n as SubscriptionResponse } from '../index-CFOMyVMt.js';
2
- export { o as ArkProvider, p as IndexerProvider } from '../index-CFOMyVMt.js';
1
+ import { l as RestArkProvider, i as SettlementEvent, T as TxNotificationEvent, m as RestIndexerProvider, n as SubscriptionResponse } from '../index-uUE_uQPn.js';
2
+ export { o as ArkProvider, p as IndexerProvider } from '../index-uUE_uQPn.js';
3
3
  import '@scure/btc-signer/utils.js';
4
4
  import '@scure/btc-signer/transaction.js';
5
5
  import '@scure/btc-signer';
@@ -21,10 +21,7 @@ import '@scure/btc-signer/psbt.js';
21
21
  declare class ExpoArkProvider extends RestArkProvider {
22
22
  constructor(serverUrl?: string);
23
23
  getEventStream(signal: AbortSignal, topics: string[]): AsyncIterableIterator<SettlementEvent>;
24
- getTransactionsStream(signal: AbortSignal): AsyncIterableIterator<{
25
- commitmentTx?: TxNotification;
26
- arkTx?: TxNotification;
27
- }>;
24
+ getTransactionsStream(signal: AbortSignal): AsyncIterableIterator<TxNotificationEvent>;
28
25
  }
29
26
 
30
27
  /**
@@ -1,6 +1,6 @@
1
- export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-ZUEGFM3T.js';
2
- import '../chunk-HQ2DDMQN.js';
3
- import '../chunk-XJCBV4AA.js';
1
+ export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-R5POS3RS.js';
2
+ import '../chunk-2JZGPXU4.js';
3
+ import '../chunk-J33ZEM3A.js';
4
4
  import '../chunk-NSBPE2FW.js';
5
5
  //# sourceMappingURL=expo.js.map
6
6
  //# sourceMappingURL=expo.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkLPEE2H2M_cjs = require('../chunk-LPEE2H2M.cjs');
4
- require('../chunk-RXITDAV4.cjs');
5
- require('../chunk-WXCVS6PD.cjs');
6
- require('../chunk-FZFSGOTZ.cjs');
3
+ var chunk5E6IZNRG_cjs = require('../chunk-5E6IZNRG.cjs');
4
+ require('../chunk-3S3JZUEN.cjs');
5
+ require('../chunk-PXPPZF5K.cjs');
6
+ require('../chunk-ZIRFXBKL.cjs');
7
7
  require('../chunk-5BLDMQED.cjs');
8
8
 
9
9
  // src/storage/indexedDB.ts
@@ -11,7 +11,7 @@ var IndexedDBStorageAdapter = class {
11
11
  dbName;
12
12
  version;
13
13
  db = null;
14
- constructor(dbName, version = chunkLPEE2H2M_cjs.DB_VERSION) {
14
+ constructor(dbName, version = chunk5E6IZNRG_cjs.DB_VERSION) {
15
15
  this.dbName = dbName;
16
16
  this.version = version;
17
17
  }
@@ -1,7 +1,7 @@
1
- import { DB_VERSION } from '../chunk-WJN2BLEI.js';
2
- import '../chunk-HQ2DDMQN.js';
3
- import '../chunk-LN2VZP63.js';
4
- import '../chunk-XJCBV4AA.js';
1
+ import { DB_VERSION } from '../chunk-DSC3G6QZ.js';
2
+ import '../chunk-2JZGPXU4.js';
3
+ import '../chunk-CYOI4PEA.js';
4
+ import '../chunk-J33ZEM3A.js';
5
5
  import '../chunk-NSBPE2FW.js';
6
6
 
7
7
  // src/storage/indexedDB.ts
@@ -1,4 +1,4 @@
1
- import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-BDzWbpct.js';
1
+ import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-DNyD1kXG.js';
2
2
 
3
3
  /**
4
4
  * Minimal async key-value storage interface.
@@ -1,4 +1,4 @@
1
- import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-CIKOS2OO.cjs';
1
+ import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-BOVcIH1N.cjs';
2
2
 
3
3
  /**
4
4
  * Minimal async key-value storage interface.
@@ -1,4 +1,4 @@
1
- import { DEFAULT_ARKADE_SERVER_URL, eventSourceIterator, resolveEventSource, convertVtxo, isFetchTimeoutError, isEventSourceError, isEventSourceUnavailableError, rateGate, baseFetch, toProviderUnavailable, ProviderUnavailableError, throwIfHttpUnavailable } from './chunk-XJCBV4AA.js';
1
+ import { DEFAULT_ARKADE_SERVER_URL, eventSourceIterator, resolveEventSource, convertVtxo, isFetchTimeoutError, isEventSourceError, isEventSourceUnavailableError, rateGate, baseFetch, toProviderUnavailable, ProviderUnavailableError, throwIfHttpUnavailable } from './chunk-J33ZEM3A.js';
2
2
  import { __export } from './chunk-NSBPE2FW.js';
3
3
  import { hex } from '@scure/base';
4
4
  import { schnorr } from '@noble/curves/secp256k1.js';
@@ -7,6 +7,7 @@ import { compareBytes } from '@scure/btc-signer/utils.js';
7
7
  // src/extension/asset/index.ts
8
8
  var asset_exports = {};
9
9
  __export(asset_exports, {
10
+ ASSET_ID_VECTORS: () => ASSET_ID_VECTORS,
10
11
  AssetGroup: () => AssetGroup,
11
12
  AssetId: () => AssetId,
12
13
  AssetInput: () => AssetInput,
@@ -1271,6 +1272,143 @@ var Packet = class _Packet {
1271
1272
  return packet;
1272
1273
  }
1273
1274
  };
1275
+
1276
+ // src/extension/asset/assetIdVectors.json
1277
+ var assetIdVectors_default = {
1278
+ version: 1,
1279
+ note: "Source of truth for the Arkade Asset ID encodings. See ts-sdk plans/asset-id-shared-vectors.md.",
1280
+ txid_hex: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20",
1281
+ script_txid_hex: "201f1e1d1c1b1a191817161514131211100f0e0d0c0b0a090807060504030201",
1282
+ valid: [
1283
+ {
1284
+ label: "group 0 (issuance mints this one)",
1285
+ group_index: 0,
1286
+ asset_id_hex: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f200000",
1287
+ script_group_index_item_hex: ""
1288
+ },
1289
+ {
1290
+ label: "group 1 \u2014 high byte zero, so endianness bugs hide here",
1291
+ group_index: 1,
1292
+ asset_id_hex: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f200100",
1293
+ script_group_index_item_hex: "01"
1294
+ },
1295
+ {
1296
+ label: "endianness discriminator (gidx 258 = 0x0102)",
1297
+ group_index: 258,
1298
+ asset_id_hex: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f200201",
1299
+ script_group_index_item_hex: "0201"
1300
+ },
1301
+ {
1302
+ label: "upper bound \u2014 script number needs a third byte, the u16 blob does not",
1303
+ group_index: 65535,
1304
+ asset_id_hex: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20ffff",
1305
+ script_group_index_item_hex: "ffff00"
1306
+ }
1307
+ ],
1308
+ invalid_identity: [
1309
+ {
1310
+ label: "uppercase",
1311
+ value: "0102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F200201",
1312
+ why: "identity is lowercase-only",
1313
+ normalizes_to: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f200201"
1314
+ },
1315
+ {
1316
+ label: "too short",
1317
+ value: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2002",
1318
+ why: "33 bytes; the identity is 34"
1319
+ },
1320
+ {
1321
+ label: "non-hex",
1322
+ value: "z102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f200201",
1323
+ why: "ASCII hex only"
1324
+ }
1325
+ ],
1326
+ invalid_decode: [
1327
+ {
1328
+ label: "empty",
1329
+ value: "",
1330
+ expected_error: "missing asset id"
1331
+ },
1332
+ {
1333
+ label: "too short",
1334
+ value: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2002",
1335
+ expected_error: "invalid asset id length"
1336
+ },
1337
+ {
1338
+ label: "too long",
1339
+ value: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f200201ff",
1340
+ expected_error: "invalid asset id length"
1341
+ },
1342
+ {
1343
+ label: "non-hex",
1344
+ value: "z102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f200201",
1345
+ expected_error: "invalid asset id format"
1346
+ },
1347
+ {
1348
+ label: "zero txid",
1349
+ value: "00000000000000000000000000000000000000000000000000000000000000000201",
1350
+ expected_error: "empty txid"
1351
+ }
1352
+ ],
1353
+ invalid_construction: [
1354
+ {
1355
+ label: "missing txid",
1356
+ txid_hex: "",
1357
+ group_index: 0,
1358
+ expected_error: "missing txid"
1359
+ },
1360
+ {
1361
+ label: "non-hex txid",
1362
+ txid_hex: "z102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20",
1363
+ group_index: 0,
1364
+ expected_error: "invalid txid format"
1365
+ },
1366
+ {
1367
+ label: "txid too long",
1368
+ txid_hex: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2021",
1369
+ group_index: 0,
1370
+ expected_error: "invalid txid length"
1371
+ },
1372
+ {
1373
+ label: "txid too short",
1374
+ txid_hex: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e",
1375
+ group_index: 0,
1376
+ expected_error: "invalid txid length"
1377
+ },
1378
+ {
1379
+ label: "zero txid",
1380
+ txid_hex: "0000000000000000000000000000000000000000000000000000000000000000",
1381
+ group_index: 0,
1382
+ expected_error: "empty txid"
1383
+ },
1384
+ {
1385
+ label: "gidx out of range",
1386
+ txid_hex: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20",
1387
+ group_index: 65536,
1388
+ expected_error: "invalid group index",
1389
+ outside_uint16: true
1390
+ },
1391
+ {
1392
+ label: "gidx negative",
1393
+ txid_hex: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20",
1394
+ group_index: -1,
1395
+ expected_error: "invalid group index",
1396
+ outside_uint16: true
1397
+ }
1398
+ ]
1399
+ };
1400
+
1401
+ // src/extension/asset/assetIdVectors.ts
1402
+ function deepFreeze(value) {
1403
+ if (value !== null && typeof value === "object" && !Object.isFrozen(value)) {
1404
+ Object.freeze(value);
1405
+ for (const key of Object.getOwnPropertyNames(value)) {
1406
+ deepFreeze(value[key]);
1407
+ }
1408
+ }
1409
+ return value;
1410
+ }
1411
+ var ASSET_ID_VECTORS = deepFreeze(assetIdVectors_default);
1274
1412
  var INDEXER_MAX_ATTEMPTS = 3;
1275
1413
  var INDEXER_RETRY_BASE_MS = 250;
1276
1414
  async function indexerFetch(input, init) {
@@ -1308,6 +1446,7 @@ function retryDelayMs(attempt) {
1308
1446
  return INDEXER_RETRY_BASE_MS * 2 ** (attempt - 1);
1309
1447
  }
1310
1448
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
1449
+ var DEFAULT_VTXO_PAGE_SIZE = 500;
1311
1450
  var IndexerTxType = /* @__PURE__ */ ((IndexerTxType2) => {
1312
1451
  IndexerTxType2[IndexerTxType2["INDEXER_TX_TYPE_UNSPECIFIED"] = 0] = "INDEXER_TX_TYPE_UNSPECIFIED";
1313
1452
  IndexerTxType2[IndexerTxType2["INDEXER_TX_TYPE_RECEIVED"] = 1] = "INDEXER_TX_TYPE_RECEIVED";
@@ -1580,14 +1719,39 @@ var RestIndexerProvider = class {
1580
1719
  if (opts?.after !== void 0 && opts?.before !== void 0 && opts.after !== 0 && opts.before !== 0 && opts.before <= opts.after) {
1581
1720
  throw new Error("before must be greater than after");
1582
1721
  }
1722
+ if (opts?.pageIndex === void 0 && opts?.pageSize === void 0) {
1723
+ const all = [];
1724
+ let pageIndex = 0;
1725
+ for (; ; ) {
1726
+ const { vtxos, page } = await this.fetchVtxosPage({
1727
+ ...opts,
1728
+ pageIndex,
1729
+ pageSize: DEFAULT_VTXO_PAGE_SIZE
1730
+ });
1731
+ all.push(...vtxos);
1732
+ if (!page || page.current >= page.total || vtxos.length < DEFAULT_VTXO_PAGE_SIZE) {
1733
+ break;
1734
+ }
1735
+ pageIndex = page.next;
1736
+ }
1737
+ return { vtxos: all };
1738
+ }
1739
+ return this.fetchVtxosPage(opts);
1740
+ }
1741
+ /**
1742
+ * Fetch a single page of vtxos. Callers paging to exhaustion get no
1743
+ * deliberate inter-page backoff here: `indexerFetch` already enforces
1744
+ * politeness through the rate gate, so don't add a redundant sleep.
1745
+ */
1746
+ async fetchVtxosPage(opts) {
1583
1747
  let url = `${this.serverUrl}/v1/indexer/vtxos`;
1584
1748
  const params = new URLSearchParams();
1585
- if (hasScripts) {
1749
+ if (opts?.scripts?.length) {
1586
1750
  opts.scripts.forEach((script) => {
1587
1751
  params.append("scripts", script);
1588
1752
  });
1589
1753
  }
1590
- if (hasOutpoints) {
1754
+ if (opts?.outpoints?.length) {
1591
1755
  opts.outpoints.forEach((outpoint) => {
1592
1756
  params.append("outpoints", `${outpoint.txid}:${outpoint.vout}`);
1593
1757
  });
@@ -1789,6 +1953,6 @@ var Response;
1789
1953
  Response2.isGetAssetResponse = isGetAssetResponse;
1790
1954
  })(Response || (Response = {}));
1791
1955
 
1792
- export { AssetGroup, AssetId, AssetInput, AssetOutput, AssetRef, BufferReader, BufferWriter, ChainTxType, IndexerTxType, Metadata, Packet, RestIndexerProvider, asset_exports };
1793
- //# sourceMappingURL=chunk-HQ2DDMQN.js.map
1794
- //# sourceMappingURL=chunk-HQ2DDMQN.js.map
1956
+ export { AssetGroup, AssetId, AssetInput, AssetOutput, AssetRef, BufferReader, BufferWriter, ChainTxType, DEFAULT_VTXO_PAGE_SIZE, IndexerTxType, Metadata, Packet, RestIndexerProvider, asset_exports };
1957
+ //# sourceMappingURL=chunk-2JZGPXU4.js.map
1958
+ //# sourceMappingURL=chunk-2JZGPXU4.js.map