@arkade-os/sdk 0.5.0-rc.26 → 0.5.0-rc.28

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 (76) hide show
  1. package/README.md +37 -0
  2. package/dist/adapters/expo.cjs +5 -5
  3. package/dist/adapters/expo.d.cts +4 -4
  4. package/dist/adapters/expo.d.ts +4 -4
  5. package/dist/adapters/expo.js +3 -3
  6. package/dist/{index-BfvbSL0W.d.cts → ark-CgZYyMpf.d.cts} +4369 -4205
  7. package/dist/{index-BfvbSL0W.d.ts → ark-CgZYyMpf.d.ts} +4369 -4205
  8. package/dist/{asyncStorageTaskQueue-CFWscYpG.d.cts → asyncStorageTaskQueue-B099Jii3.d.cts} +1 -1
  9. package/dist/{asyncStorageTaskQueue-DrFapzPg.d.ts → asyncStorageTaskQueue-BeQji1Ee.d.ts} +1 -1
  10. package/dist/{chunk-K2YTDYQF.cjs → chunk-3P7SXAAC.cjs} +16 -16
  11. package/dist/{chunk-K2YTDYQF.cjs.map → chunk-3P7SXAAC.cjs.map} +1 -1
  12. package/dist/{chunk-B2YMUJD5.cjs → chunk-4BT6HBZQ.cjs} +1155 -701
  13. package/dist/chunk-4BT6HBZQ.cjs.map +1 -0
  14. package/dist/{chunk-FEBAG2K2.cjs → chunk-6BJJ47JM.cjs} +18 -18
  15. package/dist/{chunk-FEBAG2K2.cjs.map → chunk-6BJJ47JM.cjs.map} +1 -1
  16. package/dist/{chunk-HPUKFTZV.js → chunk-BDTASM5W.js} +4 -4
  17. package/dist/{chunk-HPUKFTZV.js.map → chunk-BDTASM5W.js.map} +1 -1
  18. package/dist/{chunk-U5ZRDVVB.js → chunk-BIN2DVKS.js} +675 -222
  19. package/dist/chunk-BIN2DVKS.js.map +1 -0
  20. package/dist/{chunk-HTCIPDVW.js → chunk-CG7S6CDR.js} +5 -4
  21. package/dist/chunk-CG7S6CDR.js.map +1 -0
  22. package/dist/{chunk-N2VM6V6K.js → chunk-CR5YHHEM.js} +154 -51
  23. package/dist/chunk-CR5YHHEM.js.map +1 -0
  24. package/dist/{chunk-VVFCCNU2.cjs → chunk-FGKBQH5S.cjs} +5 -3
  25. package/dist/chunk-FGKBQH5S.cjs.map +1 -0
  26. package/dist/{chunk-Y5VSJURH.js → chunk-FSSINCR6.js} +4 -4
  27. package/dist/{chunk-Y5VSJURH.js.map → chunk-FSSINCR6.js.map} +1 -1
  28. package/dist/{chunk-QCD3SJOL.cjs → chunk-HFSC7T5I.cjs} +10 -10
  29. package/dist/{chunk-QCD3SJOL.cjs.map → chunk-HFSC7T5I.cjs.map} +1 -1
  30. package/dist/{chunk-5JQ5EOYE.js → chunk-PHSUZSRH.js} +3 -3
  31. package/dist/{chunk-5JQ5EOYE.js.map → chunk-PHSUZSRH.js.map} +1 -1
  32. package/dist/{chunk-CFOIHLON.cjs → chunk-YFQOJTG3.cjs} +201 -96
  33. package/dist/chunk-YFQOJTG3.cjs.map +1 -0
  34. package/dist/contracts/handlers/index.cjs +9 -9
  35. package/dist/contracts/handlers/index.d.cts +5 -5
  36. package/dist/contracts/handlers/index.d.ts +5 -5
  37. package/dist/contracts/handlers/index.js +2 -2
  38. package/dist/{delegate-Cz8FnLqi.d.ts → delegate-B8KSoeVz.d.ts} +1 -1
  39. package/dist/{delegate-r3jh7UcH.d.cts → delegate-wuf6DBpr.d.cts} +1 -1
  40. package/dist/{index-DOION7Ta.d.cts → index-1pLGuueL.d.ts} +58 -52
  41. package/dist/{index-Chgwl4dO.d.ts → index-CP3v0PVS.d.cts} +58 -52
  42. package/dist/index.cjs +328 -316
  43. package/dist/index.d.cts +332 -286
  44. package/dist/index.d.ts +332 -286
  45. package/dist/index.js +4 -4
  46. package/dist/repositories/realm/index.cjs +35 -35
  47. package/dist/repositories/realm/index.d.cts +4 -4
  48. package/dist/repositories/realm/index.d.ts +4 -4
  49. package/dist/repositories/realm/index.js +5 -5
  50. package/dist/repositories/sqlite/index.cjs +33 -33
  51. package/dist/repositories/sqlite/index.d.cts +4 -4
  52. package/dist/repositories/sqlite/index.d.ts +4 -4
  53. package/dist/repositories/sqlite/index.js +5 -5
  54. package/dist/{taskRunner-CXAcjtdU.d.ts → taskRunner-D4IF7tc8.d.cts} +1 -1
  55. package/dist/{taskRunner-BO8a-SQh.d.cts → taskRunner-DzEg63qV.d.ts} +1 -1
  56. package/dist/wallet/expo/background.cjs +14 -14
  57. package/dist/wallet/expo/background.d.cts +5 -5
  58. package/dist/wallet/expo/background.d.ts +5 -5
  59. package/dist/wallet/expo/background.js +6 -6
  60. package/dist/wallet/expo/index.cjs +15 -15
  61. package/dist/wallet/expo/index.d.cts +4 -4
  62. package/dist/wallet/expo/index.d.ts +4 -4
  63. package/dist/wallet/expo/index.js +5 -5
  64. package/dist/{wallet-CFIfUlQP.d.ts → walletRepository-BA5C6Slk.d.cts} +29 -29
  65. package/dist/{wallet-s90p-vIk.d.cts → walletRepository-BE2yiIHF.d.ts} +29 -29
  66. package/dist/worker/expo/index.cjs +9 -9
  67. package/dist/worker/expo/index.d.cts +6 -6
  68. package/dist/worker/expo/index.d.ts +6 -6
  69. package/dist/worker/expo/index.js +5 -5
  70. package/package.json +1 -1
  71. package/dist/chunk-B2YMUJD5.cjs.map +0 -1
  72. package/dist/chunk-CFOIHLON.cjs.map +0 -1
  73. package/dist/chunk-HTCIPDVW.js.map +0 -1
  74. package/dist/chunk-N2VM6V6K.js.map +0 -1
  75. package/dist/chunk-U5ZRDVVB.js.map +0 -1
  76. package/dist/chunk-VVFCCNU2.cjs.map +0 -1
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkVVFCCNU2_cjs = require('./chunk-VVFCCNU2.cjs');
3
+ var chunkFGKBQH5S_cjs = require('./chunk-FGKBQH5S.cjs');
4
4
  var base = require('@scure/base');
5
5
  var secp256k1_js = require('@noble/curves/secp256k1.js');
6
6
  var utils_js = require('@scure/btc-signer/utils.js');
7
7
 
8
8
  // src/extension/asset/index.ts
9
9
  var asset_exports = {};
10
- chunkVVFCCNU2_cjs.__export(asset_exports, {
10
+ chunkFGKBQH5S_cjs.__export(asset_exports, {
11
11
  ASSET_ID_VECTORS: () => ASSET_ID_VECTORS,
12
12
  AssetGroup: () => AssetGroup,
13
13
  AssetId: () => AssetId,
@@ -1316,10 +1316,10 @@ async function indexerFetch(input, init) {
1316
1316
  const lastAttempt = attempt >= maxAttempts;
1317
1317
  let res;
1318
1318
  try {
1319
- res = await chunkVVFCCNU2_cjs.rateGate.runHttp(input, () => chunkVVFCCNU2_cjs.baseFetch(input, init));
1319
+ res = await chunkFGKBQH5S_cjs.rateGate.runHttp(input, () => chunkFGKBQH5S_cjs.baseFetch(input, init));
1320
1320
  } catch (err) {
1321
- const mapped = chunkVVFCCNU2_cjs.toProviderUnavailable(err, "indexer");
1322
- if (lastAttempt || !(mapped instanceof chunkVVFCCNU2_cjs.ProviderUnavailableError)) throw mapped;
1321
+ const mapped = chunkFGKBQH5S_cjs.toProviderUnavailable(err, "indexer");
1322
+ if (lastAttempt || !(mapped instanceof chunkFGKBQH5S_cjs.ProviderUnavailableError)) throw mapped;
1323
1323
  await sleep(retryDelayMs(attempt));
1324
1324
  continue;
1325
1325
  }
@@ -1331,7 +1331,7 @@ async function indexerFetch(input, init) {
1331
1331
  body = void 0;
1332
1332
  }
1333
1333
  try {
1334
- chunkVVFCCNU2_cjs.throwIfHttpUnavailable(res, "indexer", body);
1334
+ chunkFGKBQH5S_cjs.throwIfHttpUnavailable(res, "indexer", body);
1335
1335
  } catch (err) {
1336
1336
  if (lastAttempt) throw err;
1337
1337
  await sleep(retryDelayMs(attempt));
@@ -1360,7 +1360,7 @@ var ChainTxType = /* @__PURE__ */ ((ChainTxType2) => {
1360
1360
  return ChainTxType2;
1361
1361
  })(ChainTxType || {});
1362
1362
  var RestIndexerProvider = class {
1363
- constructor(serverUrl = chunkVVFCCNU2_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
1363
+ constructor(serverUrl = chunkFGKBQH5S_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
1364
1364
  this.serverUrl = serverUrl;
1365
1365
  this.eventSource = options.eventSource;
1366
1366
  }
@@ -1478,8 +1478,8 @@ var RestIndexerProvider = class {
1478
1478
  try {
1479
1479
  while (!abortSignal?.aborted) {
1480
1480
  try {
1481
- const currentIterator = chunkVVFCCNU2_cjs.eventSourceIterator(
1482
- chunkVVFCCNU2_cjs.resolveEventSource(override)(url)
1481
+ const currentIterator = chunkFGKBQH5S_cjs.eventSourceIterator(
1482
+ chunkFGKBQH5S_cjs.resolveEventSource(override)(url)
1483
1483
  );
1484
1484
  iterator = currentIterator;
1485
1485
  for await (const event of currentIterator) {
@@ -1498,14 +1498,14 @@ var RestIndexerProvider = class {
1498
1498
  if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
1499
1499
  break;
1500
1500
  }
1501
- if (chunkVVFCCNU2_cjs.isFetchTimeoutError(error)) {
1501
+ if (chunkFGKBQH5S_cjs.isFetchTimeoutError(error)) {
1502
1502
  console.debug("Timeout error ignored");
1503
1503
  continue;
1504
1504
  }
1505
- if (chunkVVFCCNU2_cjs.isEventSourceError(error)) {
1505
+ if (chunkFGKBQH5S_cjs.isEventSourceError(error)) {
1506
1506
  throw error;
1507
1507
  }
1508
- if (chunkVVFCCNU2_cjs.isEventSourceUnavailableError(error)) throw error;
1508
+ if (chunkFGKBQH5S_cjs.isEventSourceUnavailableError(error)) throw error;
1509
1509
  console.error("Subscription error:", error);
1510
1510
  throw error;
1511
1511
  } finally {
@@ -1634,7 +1634,7 @@ var RestIndexerProvider = class {
1634
1634
  }
1635
1635
  const data = await this.fetchVtxosJson(url);
1636
1636
  return {
1637
- vtxos: data.vtxos.map(chunkVVFCCNU2_cjs.convertVtxo),
1637
+ vtxos: data.vtxos.map(chunkFGKBQH5S_cjs.convertVtxo),
1638
1638
  page: data.page
1639
1639
  };
1640
1640
  }
@@ -1738,9 +1738,9 @@ function toSubscriptionResponse(event) {
1738
1738
  return {
1739
1739
  txid: event.txid,
1740
1740
  scripts: event.scripts || [],
1741
- newVtxos: (event.newVtxos || []).map(chunkVVFCCNU2_cjs.convertVtxo),
1742
- spentVtxos: (event.spentVtxos || []).map(chunkVVFCCNU2_cjs.convertVtxo),
1743
- sweptVtxos: (event.sweptVtxos || []).map(chunkVVFCCNU2_cjs.convertVtxo),
1741
+ newVtxos: (event.newVtxos || []).map(chunkFGKBQH5S_cjs.convertVtxo),
1742
+ spentVtxos: (event.spentVtxos || []).map(chunkFGKBQH5S_cjs.convertVtxo),
1743
+ sweptVtxos: (event.sweptVtxos || []).map(chunkFGKBQH5S_cjs.convertVtxo),
1744
1744
  tx: event.tx,
1745
1745
  checkpointTxs: event.checkpointTxs
1746
1746
  };
@@ -1852,5 +1852,5 @@ exports.Packet = Packet;
1852
1852
  exports.RestIndexerProvider = RestIndexerProvider;
1853
1853
  exports.asset_exports = asset_exports;
1854
1854
  exports.toSubscriptionResponse = toSubscriptionResponse;
1855
- //# sourceMappingURL=chunk-FEBAG2K2.cjs.map
1856
- //# sourceMappingURL=chunk-FEBAG2K2.cjs.map
1855
+ //# sourceMappingURL=chunk-6BJJ47JM.cjs.map
1856
+ //# sourceMappingURL=chunk-6BJJ47JM.cjs.map