@arkade-os/sdk 0.4.54 → 0.4.55

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 (77) hide show
  1. package/dist/adapters/expo.cjs +5 -5
  2. package/dist/adapters/expo.d.cts +2 -2
  3. package/dist/adapters/expo.d.ts +2 -2
  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/{ark-acFuA57I.d.cts → ark-Do9Lqfsp.d.cts} +35 -2
  8. package/dist/{ark-acFuA57I.d.ts → ark-Do9Lqfsp.d.ts} +35 -2
  9. package/dist/{asyncStorageTaskQueue-BO3cvMpP.d.cts → asyncStorageTaskQueue-C3DYxvAT.d.cts} +2 -2
  10. package/dist/{asyncStorageTaskQueue-DACXtP0I.d.ts → asyncStorageTaskQueue-DOnBOEDn.d.ts} +2 -2
  11. package/dist/{chunk-YRLBZJYO.cjs → chunk-C6UYPHTQ.cjs} +9 -9
  12. package/dist/{chunk-YRLBZJYO.cjs.map → chunk-C6UYPHTQ.cjs.map} +1 -1
  13. package/dist/{chunk-BYJJIITU.cjs → chunk-CSS74VCN.cjs} +17 -17
  14. package/dist/{chunk-BYJJIITU.cjs.map → chunk-CSS74VCN.cjs.map} +1 -1
  15. package/dist/{chunk-ZOY5JSVA.js → chunk-ENWR2F2P.js} +3 -3
  16. package/dist/{chunk-ZOY5JSVA.js.map → chunk-ENWR2F2P.js.map} +1 -1
  17. package/dist/{chunk-RNECH3TA.cjs → chunk-G7DOBFQN.cjs} +15 -15
  18. package/dist/{chunk-RNECH3TA.cjs.map → chunk-G7DOBFQN.cjs.map} +1 -1
  19. package/dist/{chunk-4EIKOJLD.js → chunk-JCJ5WFS3.js} +11 -4
  20. package/dist/chunk-JCJ5WFS3.js.map +1 -0
  21. package/dist/{chunk-7L3P3EP5.js → chunk-LAONNMM5.js} +4 -4
  22. package/dist/{chunk-7L3P3EP5.js.map → chunk-LAONNMM5.js.map} +1 -1
  23. package/dist/{chunk-GMUVWKOK.cjs → chunk-OWCPXRGP.cjs} +11 -3
  24. package/dist/chunk-OWCPXRGP.cjs.map +1 -0
  25. package/dist/{chunk-A37WVZ5T.js → chunk-QMPNPZ2T.js} +23 -4
  26. package/dist/chunk-QMPNPZ2T.js.map +1 -0
  27. package/dist/{chunk-TEHJCEF3.js → chunk-QO3IKBYL.js} +366 -51
  28. package/dist/chunk-QO3IKBYL.js.map +1 -0
  29. package/dist/{chunk-QY2YVFZT.js → chunk-SG4X7SEC.js} +4 -4
  30. package/dist/{chunk-QY2YVFZT.js.map → chunk-SG4X7SEC.js.map} +1 -1
  31. package/dist/{chunk-53XNU2EL.cjs → chunk-V2TOHHPW.cjs} +60 -40
  32. package/dist/chunk-V2TOHHPW.cjs.map +1 -0
  33. package/dist/{chunk-D5LUPJJP.cjs → chunk-ZPL34T2Q.cjs} +717 -395
  34. package/dist/chunk-ZPL34T2Q.cjs.map +1 -0
  35. package/dist/contracts/handlers/index.cjs +8 -8
  36. package/dist/contracts/handlers/index.d.cts +3 -3
  37. package/dist/contracts/handlers/index.d.ts +3 -3
  38. package/dist/contracts/handlers/index.js +2 -2
  39. package/dist/{delegate-Ca_wXiYE.d.cts → delegate-C0iIBxen.d.cts} +1 -1
  40. package/dist/{delegate-DjwZZi6L.d.ts → delegate-DmhFrtdq.d.ts} +1 -1
  41. package/dist/{index-Ddq0mIKX.d.ts → index-BNt4wcSh.d.ts} +2 -2
  42. package/dist/{index-DFfefdpc.d.cts → index-BnLM1XxA.d.cts} +2 -2
  43. package/dist/index.cjs +238 -202
  44. package/dist/index.d.cts +138 -14
  45. package/dist/index.d.ts +138 -14
  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-DbCNRP31.d.ts → taskRunner-Bgs-0I3x.d.ts} +2 -2
  56. package/dist/{taskRunner-DEwlrgId.d.cts → taskRunner-RwUvgQ5M.d.cts} +2 -2
  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 +5 -5
  63. package/dist/wallet/expo/index.d.ts +5 -5
  64. package/dist/wallet/expo/index.js +5 -5
  65. package/dist/{wallet-ByjM6L20.d.cts → wallet-5Aou-V5n.d.ts} +83 -6
  66. package/dist/{wallet-B9rpddG2.d.ts → wallet-Ck7BH8zR.d.cts} +83 -6
  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-4EIKOJLD.js.map +0 -1
  73. package/dist/chunk-53XNU2EL.cjs.map +0 -1
  74. package/dist/chunk-A37WVZ5T.js.map +0 -1
  75. package/dist/chunk-D5LUPJJP.cjs.map +0 -1
  76. package/dist/chunk-GMUVWKOK.cjs.map +0 -1
  77. package/dist/chunk-TEHJCEF3.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkGMUVWKOK_cjs = require('./chunk-GMUVWKOK.cjs');
3
+ var chunkOWCPXRGP_cjs = require('./chunk-OWCPXRGP.cjs');
4
4
  var chunk5BLDMQED_cjs = require('./chunk-5BLDMQED.cjs');
5
5
  var base = require('@scure/base');
6
6
  var secp256k1_js = require('@noble/curves/secp256k1.js');
@@ -1282,10 +1282,10 @@ async function indexerFetch(input, init) {
1282
1282
  const lastAttempt = attempt >= maxAttempts;
1283
1283
  let res;
1284
1284
  try {
1285
- res = await chunkGMUVWKOK_cjs.rateGate.runHttp(input, () => chunkGMUVWKOK_cjs.baseFetch(input, init));
1285
+ res = await chunkOWCPXRGP_cjs.rateGate.runHttp(input, () => chunkOWCPXRGP_cjs.baseFetch(input, init));
1286
1286
  } catch (err) {
1287
- const mapped = chunkGMUVWKOK_cjs.toProviderUnavailable(err, "indexer");
1288
- if (lastAttempt || !(mapped instanceof chunkGMUVWKOK_cjs.ProviderUnavailableError)) throw mapped;
1287
+ const mapped = chunkOWCPXRGP_cjs.toProviderUnavailable(err, "indexer");
1288
+ if (lastAttempt || !(mapped instanceof chunkOWCPXRGP_cjs.ProviderUnavailableError)) throw mapped;
1289
1289
  await sleep(retryDelayMs(attempt));
1290
1290
  continue;
1291
1291
  }
@@ -1297,7 +1297,7 @@ async function indexerFetch(input, init) {
1297
1297
  body = void 0;
1298
1298
  }
1299
1299
  try {
1300
- chunkGMUVWKOK_cjs.throwIfHttpUnavailable(res, "indexer", body);
1300
+ chunkOWCPXRGP_cjs.throwIfHttpUnavailable(res, "indexer", body);
1301
1301
  } catch (err) {
1302
1302
  if (lastAttempt) throw err;
1303
1303
  await sleep(retryDelayMs(attempt));
@@ -1325,7 +1325,7 @@ var ChainTxType = /* @__PURE__ */ ((ChainTxType2) => {
1325
1325
  return ChainTxType2;
1326
1326
  })(ChainTxType || {});
1327
1327
  var RestIndexerProvider = class {
1328
- constructor(serverUrl = chunkGMUVWKOK_cjs.DEFAULT_ARKADE_SERVER_URL) {
1328
+ constructor(serverUrl = chunkOWCPXRGP_cjs.DEFAULT_ARKADE_SERVER_URL) {
1329
1329
  this.serverUrl = serverUrl;
1330
1330
  }
1331
1331
  serverUrl;
@@ -1457,7 +1457,7 @@ var RestIndexerProvider = class {
1457
1457
  try {
1458
1458
  while (!abortSignal?.aborted) {
1459
1459
  try {
1460
- const currentIterator = chunkGMUVWKOK_cjs.eventSourceIterator(new EventSource(url));
1460
+ const currentIterator = chunkOWCPXRGP_cjs.eventSourceIterator(new EventSource(url));
1461
1461
  iterator = currentIterator;
1462
1462
  for await (const event of currentIterator) {
1463
1463
  if (abortSignal?.aborted) break;
@@ -1467,9 +1467,9 @@ var RestIndexerProvider = class {
1467
1467
  yield {
1468
1468
  txid: data.event.txid,
1469
1469
  scripts: data.event.scripts || [],
1470
- newVtxos: (data.event.newVtxos || []).map(chunkGMUVWKOK_cjs.convertVtxo),
1471
- spentVtxos: (data.event.spentVtxos || []).map(chunkGMUVWKOK_cjs.convertVtxo),
1472
- sweptVtxos: (data.event.sweptVtxos || []).map(chunkGMUVWKOK_cjs.convertVtxo),
1470
+ newVtxos: (data.event.newVtxos || []).map(chunkOWCPXRGP_cjs.convertVtxo),
1471
+ spentVtxos: (data.event.spentVtxos || []).map(chunkOWCPXRGP_cjs.convertVtxo),
1472
+ sweptVtxos: (data.event.sweptVtxos || []).map(chunkOWCPXRGP_cjs.convertVtxo),
1473
1473
  tx: data.event.tx,
1474
1474
  checkpointTxs: data.event.checkpointTxs
1475
1475
  };
@@ -1483,11 +1483,11 @@ var RestIndexerProvider = class {
1483
1483
  if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
1484
1484
  break;
1485
1485
  }
1486
- if (chunkGMUVWKOK_cjs.isFetchTimeoutError(error)) {
1486
+ if (chunkOWCPXRGP_cjs.isFetchTimeoutError(error)) {
1487
1487
  console.debug("Timeout error ignored");
1488
1488
  continue;
1489
1489
  }
1490
- if (chunkGMUVWKOK_cjs.isEventSourceError(error)) {
1490
+ if (chunkOWCPXRGP_cjs.isEventSourceError(error)) {
1491
1491
  throw error;
1492
1492
  }
1493
1493
  console.error("Subscription error:", error);
@@ -1615,7 +1615,7 @@ var RestIndexerProvider = class {
1615
1615
  throw new Error("Invalid vtxos data received");
1616
1616
  }
1617
1617
  return {
1618
- vtxos: data.vtxos.map(chunkGMUVWKOK_cjs.convertVtxo),
1618
+ vtxos: data.vtxos.map(chunkOWCPXRGP_cjs.convertVtxo),
1619
1619
  page: data.page
1620
1620
  };
1621
1621
  }
@@ -1797,5 +1797,5 @@ exports.Metadata = Metadata;
1797
1797
  exports.Packet = Packet;
1798
1798
  exports.RestIndexerProvider = RestIndexerProvider;
1799
1799
  exports.asset_exports = asset_exports;
1800
- //# sourceMappingURL=chunk-RNECH3TA.cjs.map
1801
- //# sourceMappingURL=chunk-RNECH3TA.cjs.map
1800
+ //# sourceMappingURL=chunk-G7DOBFQN.cjs.map
1801
+ //# sourceMappingURL=chunk-G7DOBFQN.cjs.map