@arkade-os/sdk 0.5.12 → 0.5.14

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 (106) hide show
  1. package/README.md +6 -0
  2. package/dist/adapters/expo.cjs +7 -7
  3. package/dist/adapters/expo.d.cts +2 -2
  4. package/dist/adapters/expo.d.ts +2 -2
  5. package/dist/adapters/expo.js +4 -4
  6. package/dist/{asyncStorageTaskQueue-DTNS2qfN.d.cts → asyncStorageTaskQueue-DzO5SBcm.d.cts} +2 -2
  7. package/dist/{asyncStorageTaskQueue-Bsty8W7d.d.ts → asyncStorageTaskQueue-p7zeFhA3.d.ts} +2 -2
  8. package/dist/{chunk-4OY5BCIE.js → chunk-4HZQSKWG.js} +628 -23
  9. package/dist/chunk-4HZQSKWG.js.map +1 -0
  10. package/dist/{chunk-4X4SY3RH.cjs → chunk-6J4GABF7.cjs} +28 -20
  11. package/dist/chunk-6J4GABF7.cjs.map +1 -0
  12. package/dist/{chunk-YAVF2PR6.cjs → chunk-6TBTL42M.cjs} +87 -2
  13. package/dist/chunk-6TBTL42M.cjs.map +1 -0
  14. package/dist/{chunk-5NY5EOS2.js → chunk-72EC3ASW.js} +4 -4
  15. package/dist/{chunk-5NY5EOS2.js.map → chunk-72EC3ASW.js.map} +1 -1
  16. package/dist/{chunk-QV7AOZZN.cjs → chunk-7LPT6AYH.cjs} +21 -21
  17. package/dist/{chunk-QV7AOZZN.cjs.map → chunk-7LPT6AYH.cjs.map} +1 -1
  18. package/dist/{chunk-JA4SYFC7.cjs → chunk-ACIQZLWL.cjs} +379 -20
  19. package/dist/chunk-ACIQZLWL.cjs.map +1 -0
  20. package/dist/{chunk-BA3GPO5C.js → chunk-AZHBGWVC.js} +5 -5
  21. package/dist/{chunk-BA3GPO5C.js.map → chunk-AZHBGWVC.js.map} +1 -1
  22. package/dist/{chunk-HNLC6F73.cjs → chunk-EVVLVFY7.cjs} +20 -20
  23. package/dist/{chunk-HNLC6F73.cjs.map → chunk-EVVLVFY7.cjs.map} +1 -1
  24. package/dist/{chunk-2YXVU5TK.js → chunk-GB67AGXG.js} +81 -3
  25. package/dist/chunk-GB67AGXG.js.map +1 -0
  26. package/dist/{chunk-WBZYYRAB.js → chunk-HWWSLCQN.js} +9724 -8151
  27. package/dist/chunk-HWWSLCQN.js.map +1 -0
  28. package/dist/{chunk-4TMJBLJT.js → chunk-J2JZZTOE.js} +20 -14
  29. package/dist/chunk-J2JZZTOE.js.map +1 -0
  30. package/dist/{chunk-3RO63OPW.js → chunk-LCGRZ24T.js} +4 -4
  31. package/dist/{chunk-3RO63OPW.js.map → chunk-LCGRZ24T.js.map} +1 -1
  32. package/dist/{chunk-CJUVKHK4.cjs → chunk-LQH7DACV.cjs} +10204 -8628
  33. package/dist/chunk-LQH7DACV.cjs.map +1 -0
  34. package/dist/{chunk-QDX2HUBK.cjs → chunk-MEIE2AEU.cjs} +11 -11
  35. package/dist/{chunk-QDX2HUBK.cjs.map → chunk-MEIE2AEU.cjs.map} +1 -1
  36. package/dist/{chunk-3ABF4EMM.js → chunk-X57WKONW.js} +369 -10
  37. package/dist/chunk-X57WKONW.js.map +1 -0
  38. package/dist/{chunk-C3NKBKRY.cjs → chunk-XZHTYYW5.cjs} +680 -68
  39. package/dist/chunk-XZHTYYW5.cjs.map +1 -0
  40. package/dist/compiler.cjs +3 -4
  41. package/dist/compiler.cjs.map +1 -1
  42. package/dist/compiler.d.cts +1 -1
  43. package/dist/compiler.d.ts +1 -1
  44. package/dist/compiler.js +2 -3
  45. package/dist/compiler.js.map +1 -1
  46. package/dist/contracts/handlers/index.cjs +15 -11
  47. package/dist/contracts/handlers/index.d.cts +5 -5
  48. package/dist/contracts/handlers/index.d.ts +5 -5
  49. package/dist/contracts/handlers/index.js +4 -4
  50. package/dist/{index-D_zLtU-F.d.ts → index-CaOBA9Ev.d.ts} +2 -2
  51. package/dist/{index-BBmZXXqk.d.cts → index-Cy57QdcL.d.cts} +589 -23
  52. package/dist/{index-DJ32LpfD.d.ts → index-Db5qzYRi.d.ts} +589 -23
  53. package/dist/{index-DenQfCn1.d.cts → index-Lq_u0hqj.d.cts} +2 -2
  54. package/dist/index.cjs +403 -368
  55. package/dist/index.d.cts +197 -117
  56. package/dist/index.d.ts +197 -117
  57. package/dist/index.js +6 -7
  58. package/dist/{program-DPzf5qsk.d.cts → program-ZWUAWy_9.d.cts} +1 -1
  59. package/dist/{program-38A2Twvj.d.ts → program-zdDO4cMt.d.ts} +1 -1
  60. package/dist/repositories/realm/index.cjs +39 -40
  61. package/dist/repositories/realm/index.cjs.map +1 -1
  62. package/dist/repositories/realm/index.d.cts +2 -2
  63. package/dist/repositories/realm/index.d.ts +2 -2
  64. package/dist/repositories/realm/index.js +7 -8
  65. package/dist/repositories/realm/index.js.map +1 -1
  66. package/dist/repositories/sqlite/index.cjs +37 -38
  67. package/dist/repositories/sqlite/index.cjs.map +1 -1
  68. package/dist/repositories/sqlite/index.d.cts +2 -2
  69. package/dist/repositories/sqlite/index.d.ts +2 -2
  70. package/dist/repositories/sqlite/index.js +7 -8
  71. package/dist/repositories/sqlite/index.js.map +1 -1
  72. package/dist/{taskRunner-BBGaN4cq.d.cts → taskRunner-DhZ-KQBW.d.cts} +2 -2
  73. package/dist/{taskRunner-Cck24OnC.d.ts → taskRunner-amPuilMW.d.ts} +2 -2
  74. package/dist/wallet/expo/background.cjs +16 -17
  75. package/dist/wallet/expo/background.cjs.map +1 -1
  76. package/dist/wallet/expo/background.d.cts +3 -3
  77. package/dist/wallet/expo/background.d.ts +3 -3
  78. package/dist/wallet/expo/background.js +8 -9
  79. package/dist/wallet/expo/background.js.map +1 -1
  80. package/dist/wallet/expo/index.cjs +17 -18
  81. package/dist/wallet/expo/index.cjs.map +1 -1
  82. package/dist/wallet/expo/index.d.cts +2 -2
  83. package/dist/wallet/expo/index.d.ts +2 -2
  84. package/dist/wallet/expo/index.js +7 -8
  85. package/dist/wallet/expo/index.js.map +1 -1
  86. package/dist/worker/expo/index.cjs +11 -12
  87. package/dist/worker/expo/index.cjs.map +1 -1
  88. package/dist/worker/expo/index.d.cts +4 -4
  89. package/dist/worker/expo/index.d.ts +4 -4
  90. package/dist/worker/expo/index.js +7 -8
  91. package/dist/worker/expo/index.js.map +1 -1
  92. package/package.json +1 -1
  93. package/dist/chunk-2YXVU5TK.js.map +0 -1
  94. package/dist/chunk-3ABF4EMM.js.map +0 -1
  95. package/dist/chunk-4OY5BCIE.js.map +0 -1
  96. package/dist/chunk-4TMJBLJT.js.map +0 -1
  97. package/dist/chunk-4X4SY3RH.cjs.map +0 -1
  98. package/dist/chunk-C3NKBKRY.cjs.map +0 -1
  99. package/dist/chunk-CJUVKHK4.cjs.map +0 -1
  100. package/dist/chunk-JA4SYFC7.cjs.map +0 -1
  101. package/dist/chunk-PHOJF7OK.cjs +0 -376
  102. package/dist/chunk-PHOJF7OK.cjs.map +0 -1
  103. package/dist/chunk-UXLETBNK.js +0 -373
  104. package/dist/chunk-UXLETBNK.js.map +0 -1
  105. package/dist/chunk-WBZYYRAB.js.map +0 -1
  106. package/dist/chunk-YAVF2PR6.cjs.map +0 -1
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunk4X4SY3RH_cjs = require('./chunk-4X4SY3RH.cjs');
4
- var chunkYAVF2PR6_cjs = require('./chunk-YAVF2PR6.cjs');
3
+ var chunk6J4GABF7_cjs = require('./chunk-6J4GABF7.cjs');
4
+ var chunk6TBTL42M_cjs = require('./chunk-6TBTL42M.cjs');
5
5
  var base = require('@scure/base');
6
6
  var secp256k1_js = require('@noble/curves/secp256k1.js');
7
7
  var utils_js = require('@scure/btc-signer/utils.js');
8
8
 
9
9
  // src/extension/asset/index.ts
10
10
  var asset_exports = {};
11
- chunkYAVF2PR6_cjs.__export(asset_exports, {
11
+ chunk6TBTL42M_cjs.__export(asset_exports, {
12
12
  ASSET_ID_VECTORS: () => ASSET_ID_VECTORS,
13
13
  AssetGroup: () => AssetGroup,
14
14
  AssetId: () => AssetId,
@@ -1325,7 +1325,7 @@ var INDEXER_RETRY_BASE_MS = 250;
1325
1325
  async function indexerFetch(input, init) {
1326
1326
  const method = (init?.method ?? "GET").toUpperCase();
1327
1327
  const maxAttempts = method === "GET" || method === "HEAD" ? INDEXER_MAX_ATTEMPTS : 1;
1328
- const versionHeaders = Object.entries(chunk4X4SY3RH_cjs.sdkVersionHeaders());
1328
+ const versionHeaders = Object.entries(chunk6J4GABF7_cjs.sdkVersionHeaders());
1329
1329
  if (versionHeaders.length > 0) {
1330
1330
  const headers = new Headers(init?.headers);
1331
1331
  for (const [name, value] of versionHeaders) headers.set(name, value);
@@ -1335,10 +1335,10 @@ async function indexerFetch(input, init) {
1335
1335
  const lastAttempt = attempt >= maxAttempts;
1336
1336
  let res;
1337
1337
  try {
1338
- res = await chunk4X4SY3RH_cjs.rateGate.runHttp(input, () => chunk4X4SY3RH_cjs.baseFetch(input, init));
1338
+ res = await chunk6J4GABF7_cjs.rateGate.runHttp(input, () => chunk6J4GABF7_cjs.baseFetch(input, init));
1339
1339
  } catch (err) {
1340
- const mapped = chunk4X4SY3RH_cjs.toProviderUnavailable(err, "indexer");
1341
- if (lastAttempt || !(mapped instanceof chunk4X4SY3RH_cjs.ProviderUnavailableError)) throw mapped;
1340
+ const mapped = chunk6J4GABF7_cjs.toProviderUnavailable(err, "indexer");
1341
+ if (lastAttempt || !(mapped instanceof chunk6J4GABF7_cjs.ProviderUnavailableError)) throw mapped;
1342
1342
  await sleep(retryDelayMs(attempt));
1343
1343
  continue;
1344
1344
  }
@@ -1350,7 +1350,7 @@ async function indexerFetch(input, init) {
1350
1350
  body = void 0;
1351
1351
  }
1352
1352
  try {
1353
- chunk4X4SY3RH_cjs.throwIfHttpUnavailable(res, "indexer", body);
1353
+ chunk6J4GABF7_cjs.throwIfHttpUnavailable(res, "indexer", body);
1354
1354
  } catch (err) {
1355
1355
  if (lastAttempt) throw err;
1356
1356
  await sleep(retryDelayMs(attempt));
@@ -1385,7 +1385,7 @@ var IndexerUtxosUnsupportedError = class extends Error {
1385
1385
  }
1386
1386
  };
1387
1387
  var RestIndexerProvider = class {
1388
- constructor(serverUrl = chunkYAVF2PR6_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
1388
+ constructor(serverUrl = chunk6TBTL42M_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
1389
1389
  this.serverUrl = serverUrl;
1390
1390
  this.eventSource = options.eventSource;
1391
1391
  }
@@ -1514,8 +1514,8 @@ var RestIndexerProvider = class {
1514
1514
  try {
1515
1515
  while (!abortSignal?.aborted) {
1516
1516
  try {
1517
- const currentIterator = chunk4X4SY3RH_cjs.eventSourceIterator(
1518
- chunk4X4SY3RH_cjs.resolveEventSource(override)(url, chunk4X4SY3RH_cjs.sdkVersionHeaders())
1517
+ const currentIterator = chunk6J4GABF7_cjs.eventSourceIterator(
1518
+ chunk6J4GABF7_cjs.resolveEventSource(override)(url, chunk6J4GABF7_cjs.sdkVersionHeaders())
1519
1519
  );
1520
1520
  iterator = currentIterator;
1521
1521
  for await (const event of currentIterator) {
@@ -1532,14 +1532,14 @@ var RestIndexerProvider = class {
1532
1532
  if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
1533
1533
  break;
1534
1534
  }
1535
- if (chunk4X4SY3RH_cjs.isFetchTimeoutError(error)) {
1535
+ if (chunk6J4GABF7_cjs.isFetchTimeoutError(error)) {
1536
1536
  console.debug("Timeout error ignored");
1537
1537
  continue;
1538
1538
  }
1539
- if (chunk4X4SY3RH_cjs.isEventSourceError(error)) {
1539
+ if (chunk6J4GABF7_cjs.isEventSourceError(error)) {
1540
1540
  throw error;
1541
1541
  }
1542
- if (chunk4X4SY3RH_cjs.isEventSourceUnavailableError(error)) throw error;
1542
+ if (chunk6J4GABF7_cjs.isEventSourceUnavailableError(error)) throw error;
1543
1543
  console.error("Subscription error:", error);
1544
1544
  throw error;
1545
1545
  } finally {
@@ -1612,7 +1612,7 @@ var RestIndexerProvider = class {
1612
1612
  }
1613
1613
  if (opts?.pageIndex === void 0 && opts?.pageSize === void 0) {
1614
1614
  const all = [];
1615
- for await (const { vtxos } of chunk4X4SY3RH_cjs.indexerPages(
1615
+ for await (const { vtxos } of chunk6J4GABF7_cjs.indexerPages(
1616
1616
  (pageIndex) => this.fetchVtxosPage({
1617
1617
  ...opts,
1618
1618
  pageIndex,
@@ -1664,7 +1664,7 @@ var RestIndexerProvider = class {
1664
1664
  }
1665
1665
  const data = await this.fetchVtxosJson(url);
1666
1666
  return {
1667
- vtxos: data.vtxos.map(chunk4X4SY3RH_cjs.convertVtxo),
1667
+ vtxos: data.vtxos.map(chunk6J4GABF7_cjs.convertVtxo),
1668
1668
  page: data.page
1669
1669
  };
1670
1670
  }
@@ -1811,9 +1811,9 @@ function toSubscriptionResponse(event) {
1811
1811
  return {
1812
1812
  txid: event.txid,
1813
1813
  scripts: event.scripts || [],
1814
- newVtxos: (event.newVtxos || []).map(chunk4X4SY3RH_cjs.convertVtxo),
1815
- spentVtxos: (event.spentVtxos || []).map(chunk4X4SY3RH_cjs.convertVtxo),
1816
- sweptVtxos: (event.sweptVtxos || []).map(chunk4X4SY3RH_cjs.convertVtxo),
1814
+ newVtxos: (event.newVtxos || []).map(chunk6J4GABF7_cjs.convertVtxo),
1815
+ spentVtxos: (event.spentVtxos || []).map(chunk6J4GABF7_cjs.convertVtxo),
1816
+ sweptVtxos: (event.sweptVtxos || []).map(chunk6J4GABF7_cjs.convertVtxo),
1817
1817
  tx: event.tx,
1818
1818
  checkpointTxs: event.checkpointTxs
1819
1819
  };
@@ -1939,5 +1939,5 @@ exports.Packet = Packet;
1939
1939
  exports.RestIndexerProvider = RestIndexerProvider;
1940
1940
  exports.asset_exports = asset_exports;
1941
1941
  exports.toSubscriptionMessage = toSubscriptionMessage;
1942
- //# sourceMappingURL=chunk-QV7AOZZN.cjs.map
1943
- //# sourceMappingURL=chunk-QV7AOZZN.cjs.map
1942
+ //# sourceMappingURL=chunk-7LPT6AYH.cjs.map
1943
+ //# sourceMappingURL=chunk-7LPT6AYH.cjs.map