@arkade-os/sdk 0.4.60 → 0.4.61

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 +4 -4
  3. package/dist/adapters/expo.d.ts +4 -4
  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-CqijAAPG.d.cts → asyncStorageTaskQueue-BWDxp3Dr.d.cts} +2 -2
  8. package/dist/{asyncStorageTaskQueue-Vsp6uk8e.d.ts → asyncStorageTaskQueue-Cq9FpKv6.d.ts} +2 -2
  9. package/dist/{chunk-PRFL62ID.cjs → chunk-2JHN5RCY.cjs} +17 -17
  10. package/dist/{chunk-PRFL62ID.cjs.map → chunk-2JHN5RCY.cjs.map} +1 -1
  11. package/dist/{chunk-KNS5MTTI.cjs → chunk-3NUDA3MB.cjs} +1045 -461
  12. package/dist/chunk-3NUDA3MB.cjs.map +1 -0
  13. package/dist/{chunk-2DINXHGQ.js → chunk-6O5OLYTZ.js} +66 -35
  14. package/dist/chunk-6O5OLYTZ.js.map +1 -0
  15. package/dist/{chunk-Y54MUBT7.js → chunk-AUEXB42T.js} +654 -84
  16. package/dist/chunk-AUEXB42T.js.map +1 -0
  17. package/dist/{chunk-4A4GRSTB.cjs → chunk-FNCQJLR2.cjs} +3 -3
  18. package/dist/{chunk-4A4GRSTB.cjs.map → chunk-FNCQJLR2.cjs.map} +1 -1
  19. package/dist/{chunk-3Q7BBUWO.js → chunk-GDI2A65Z.js} +4 -4
  20. package/dist/{chunk-3Q7BBUWO.js.map → chunk-GDI2A65Z.js.map} +1 -1
  21. package/dist/{chunk-JBULXTCC.js → chunk-PVY6DMN5.js} +3 -3
  22. package/dist/{chunk-JBULXTCC.js.map → chunk-PVY6DMN5.js.map} +1 -1
  23. package/dist/{chunk-MZNLCMUP.cjs → chunk-SF5NKAUA.cjs} +113 -79
  24. package/dist/chunk-SF5NKAUA.cjs.map +1 -0
  25. package/dist/{chunk-H7JCHFM6.cjs → chunk-XFYFREPH.cjs} +17 -17
  26. package/dist/{chunk-H7JCHFM6.cjs.map → chunk-XFYFREPH.cjs.map} +1 -1
  27. package/dist/{chunk-B66RYHTB.js → chunk-XLHN5L2O.js} +4 -4
  28. package/dist/{chunk-B66RYHTB.js.map → chunk-XLHN5L2O.js.map} +1 -1
  29. package/dist/{chunk-2XLNQHG4.cjs → chunk-XMRB74HA.cjs} +10 -10
  30. package/dist/{chunk-2XLNQHG4.cjs.map → chunk-XMRB74HA.cjs.map} +1 -1
  31. package/dist/{chunk-FSKANUV4.js → chunk-YVQNHELA.js} +3 -3
  32. package/dist/{chunk-FSKANUV4.js.map → chunk-YVQNHELA.js.map} +1 -1
  33. package/dist/contracts/handlers/index.cjs +9 -9
  34. package/dist/contracts/handlers/index.d.cts +5 -5
  35. package/dist/contracts/handlers/index.d.ts +5 -5
  36. package/dist/contracts/handlers/index.js +2 -2
  37. package/dist/{delegate-DNEuM_nK.d.cts → delegate-BySzD37I.d.ts} +1 -1
  38. package/dist/{delegate-DidNTsKm.d.ts → delegate-C4Rl6h9l.d.cts} +1 -1
  39. package/dist/{ark-D2_yNhfz.d.cts → index-BcRCHnzN.d.cts} +4846 -4776
  40. package/dist/{ark-D2_yNhfz.d.ts → index-BcRCHnzN.d.ts} +4846 -4776
  41. package/dist/{index-DzQbNQUG.d.ts → index-Butfkm-K.d.cts} +102 -102
  42. package/dist/{index-BP8-zniX.d.cts → index-C29VNcxC.d.ts} +102 -102
  43. package/dist/index.cjs +320 -248
  44. package/dist/index.d.cts +256 -54
  45. package/dist/index.d.ts +256 -54
  46. package/dist/index.js +4 -4
  47. package/dist/repositories/realm/index.cjs +19 -19
  48. package/dist/repositories/realm/index.d.cts +4 -4
  49. package/dist/repositories/realm/index.d.ts +4 -4
  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 +4 -4
  53. package/dist/repositories/sqlite/index.d.ts +4 -4
  54. package/dist/repositories/sqlite/index.js +5 -5
  55. package/dist/{taskRunner-9gnlYEpb.d.ts → taskRunner-BTq3rMpI.d.cts} +2 -2
  56. package/dist/{taskRunner-BEQNFEa4.d.cts → taskRunner-DxMJYJ7Y.d.ts} +2 -2
  57. package/dist/wallet/expo/background.cjs +14 -14
  58. package/dist/wallet/expo/background.d.cts +5 -5
  59. package/dist/wallet/expo/background.d.ts +5 -5
  60. package/dist/wallet/expo/background.js +6 -6
  61. package/dist/wallet/expo/index.cjs +34 -14
  62. package/dist/wallet/expo/index.cjs.map +1 -1
  63. package/dist/wallet/expo/index.d.cts +12 -5
  64. package/dist/wallet/expo/index.d.ts +12 -5
  65. package/dist/wallet/expo/index.js +25 -5
  66. package/dist/wallet/expo/index.js.map +1 -1
  67. package/dist/{wallet-ipUA1XCp.d.cts → wallet-BVIfg2ic.d.ts} +79 -14
  68. package/dist/{wallet-C_MYHyOj.d.ts → wallet-DrSsUden.d.cts} +79 -14
  69. package/dist/worker/expo/index.cjs +9 -9
  70. package/dist/worker/expo/index.d.cts +6 -6
  71. package/dist/worker/expo/index.d.ts +6 -6
  72. package/dist/worker/expo/index.js +5 -5
  73. package/package.json +1 -1
  74. package/dist/chunk-2DINXHGQ.js.map +0 -1
  75. package/dist/chunk-KNS5MTTI.cjs.map +0 -1
  76. package/dist/chunk-MZNLCMUP.cjs.map +0 -1
  77. package/dist/chunk-Y54MUBT7.js.map +0 -1
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkH7JCHFM6_cjs = require('../chunk-H7JCHFM6.cjs');
4
- require('../chunk-PRFL62ID.cjs');
5
- require('../chunk-4A4GRSTB.cjs');
3
+ var chunkXFYFREPH_cjs = require('../chunk-XFYFREPH.cjs');
4
+ require('../chunk-2JHN5RCY.cjs');
5
+ require('../chunk-FNCQJLR2.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 chunkH7JCHFM6_cjs.ExpoArkProvider; }
12
+ get: function () { return chunkXFYFREPH_cjs.ExpoArkProvider; }
13
13
  });
14
14
  Object.defineProperty(exports, "ExpoIndexerProvider", {
15
15
  enumerable: true,
16
- get: function () { return chunkH7JCHFM6_cjs.ExpoIndexerProvider; }
16
+ get: function () { return chunkXFYFREPH_cjs.ExpoIndexerProvider; }
17
17
  });
18
18
  //# sourceMappingURL=expo.cjs.map
19
19
  //# sourceMappingURL=expo.cjs.map
@@ -1,9 +1,9 @@
1
- import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../ark-D2_yNhfz.cjs';
2
- export { n as ArkProvider, o as IndexerProvider } from '../ark-D2_yNhfz.cjs';
3
- import '@scure/btc-signer/transaction.js';
1
+ import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../index-BcRCHnzN.cjs';
2
+ export { n as ArkProvider, o as IndexerProvider } from '../index-BcRCHnzN.cjs';
4
3
  import '@scure/btc-signer/utils.js';
5
- import '@scure/btc-signer/psbt.js';
4
+ import '@scure/btc-signer/transaction.js';
6
5
  import '@scure/btc-signer';
6
+ import '@scure/btc-signer/psbt.js';
7
7
 
8
8
  /**
9
9
  * Expo-compatible Arkade provider implementation using expo/fetch for SSE support.
@@ -1,9 +1,9 @@
1
- import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../ark-D2_yNhfz.js';
2
- export { n as ArkProvider, o as IndexerProvider } from '../ark-D2_yNhfz.js';
3
- import '@scure/btc-signer/transaction.js';
1
+ import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../index-BcRCHnzN.js';
2
+ export { n as ArkProvider, o as IndexerProvider } from '../index-BcRCHnzN.js';
4
3
  import '@scure/btc-signer/utils.js';
5
- import '@scure/btc-signer/psbt.js';
4
+ import '@scure/btc-signer/transaction.js';
6
5
  import '@scure/btc-signer';
6
+ import '@scure/btc-signer/psbt.js';
7
7
 
8
8
  /**
9
9
  * Expo-compatible Arkade provider implementation using expo/fetch for SSE support.
@@ -1,6 +1,6 @@
1
- export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-3Q7BBUWO.js';
2
- import '../chunk-FSKANUV4.js';
3
- import '../chunk-JBULXTCC.js';
1
+ export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-GDI2A65Z.js';
2
+ import '../chunk-YVQNHELA.js';
3
+ import '../chunk-PVY6DMN5.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 chunkKNS5MTTI_cjs = require('../chunk-KNS5MTTI.cjs');
4
- require('../chunk-PRFL62ID.cjs');
5
- require('../chunk-MZNLCMUP.cjs');
6
- require('../chunk-4A4GRSTB.cjs');
3
+ var chunk3NUDA3MB_cjs = require('../chunk-3NUDA3MB.cjs');
4
+ require('../chunk-2JHN5RCY.cjs');
5
+ require('../chunk-SF5NKAUA.cjs');
6
+ require('../chunk-FNCQJLR2.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 = chunkKNS5MTTI_cjs.DB_VERSION) {
14
+ constructor(dbName, version = chunk3NUDA3MB_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-Y54MUBT7.js';
2
- import '../chunk-FSKANUV4.js';
3
- import '../chunk-2DINXHGQ.js';
4
- import '../chunk-JBULXTCC.js';
1
+ import { DB_VERSION } from '../chunk-AUEXB42T.js';
2
+ import '../chunk-YVQNHELA.js';
3
+ import '../chunk-6O5OLYTZ.js';
4
+ import '../chunk-PVY6DMN5.js';
5
5
  import '../chunk-NSBPE2FW.js';
6
6
 
7
7
  // src/storage/indexedDB.ts
@@ -1,4 +1,4 @@
1
- import { c as TaskQueue, b as TaskItem, d as TaskResult } from './taskRunner-BEQNFEa4.cjs';
1
+ import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-BTq3rMpI.cjs';
2
2
 
3
3
  /**
4
4
  * Minimal async key-value storage interface.
@@ -46,4 +46,4 @@ declare class AsyncStorageTaskQueue implements TaskQueue {
46
46
  private writeList;
47
47
  }
48
48
 
49
- export { type AsyncStorageLike as A, AsyncStorageTaskQueue as a };
49
+ export { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
@@ -1,4 +1,4 @@
1
- import { c as TaskQueue, b as TaskItem, d as TaskResult } from './taskRunner-9gnlYEpb.js';
1
+ import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-DxMJYJ7Y.js';
2
2
 
3
3
  /**
4
4
  * Minimal async key-value storage interface.
@@ -46,4 +46,4 @@ declare class AsyncStorageTaskQueue implements TaskQueue {
46
46
  private writeList;
47
47
  }
48
48
 
49
- export { type AsyncStorageLike as A, AsyncStorageTaskQueue as a };
49
+ export { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk4A4GRSTB_cjs = require('./chunk-4A4GRSTB.cjs');
3
+ var chunkFNCQJLR2_cjs = require('./chunk-FNCQJLR2.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 chunk4A4GRSTB_cjs.rateGate.runHttp(input, () => chunk4A4GRSTB_cjs.baseFetch(input, init));
1285
+ res = await chunkFNCQJLR2_cjs.rateGate.runHttp(input, () => chunkFNCQJLR2_cjs.baseFetch(input, init));
1286
1286
  } catch (err) {
1287
- const mapped = chunk4A4GRSTB_cjs.toProviderUnavailable(err, "indexer");
1288
- if (lastAttempt || !(mapped instanceof chunk4A4GRSTB_cjs.ProviderUnavailableError)) throw mapped;
1287
+ const mapped = chunkFNCQJLR2_cjs.toProviderUnavailable(err, "indexer");
1288
+ if (lastAttempt || !(mapped instanceof chunkFNCQJLR2_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
- chunk4A4GRSTB_cjs.throwIfHttpUnavailable(res, "indexer", body);
1300
+ chunkFNCQJLR2_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 = chunk4A4GRSTB_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
1328
+ constructor(serverUrl = chunkFNCQJLR2_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
1329
1329
  this.serverUrl = serverUrl;
1330
1330
  this.eventSource = options.eventSource;
1331
1331
  }
@@ -1461,8 +1461,8 @@ var RestIndexerProvider = class {
1461
1461
  try {
1462
1462
  while (!abortSignal?.aborted) {
1463
1463
  try {
1464
- const currentIterator = chunk4A4GRSTB_cjs.eventSourceIterator(
1465
- chunk4A4GRSTB_cjs.resolveEventSource(override)(url)
1464
+ const currentIterator = chunkFNCQJLR2_cjs.eventSourceIterator(
1465
+ chunkFNCQJLR2_cjs.resolveEventSource(override)(url)
1466
1466
  );
1467
1467
  iterator = currentIterator;
1468
1468
  for await (const event of currentIterator) {
@@ -1473,9 +1473,9 @@ var RestIndexerProvider = class {
1473
1473
  yield {
1474
1474
  txid: data.event.txid,
1475
1475
  scripts: data.event.scripts || [],
1476
- newVtxos: (data.event.newVtxos || []).map(chunk4A4GRSTB_cjs.convertVtxo),
1477
- spentVtxos: (data.event.spentVtxos || []).map(chunk4A4GRSTB_cjs.convertVtxo),
1478
- sweptVtxos: (data.event.sweptVtxos || []).map(chunk4A4GRSTB_cjs.convertVtxo),
1476
+ newVtxos: (data.event.newVtxos || []).map(chunkFNCQJLR2_cjs.convertVtxo),
1477
+ spentVtxos: (data.event.spentVtxos || []).map(chunkFNCQJLR2_cjs.convertVtxo),
1478
+ sweptVtxos: (data.event.sweptVtxos || []).map(chunkFNCQJLR2_cjs.convertVtxo),
1479
1479
  tx: data.event.tx,
1480
1480
  checkpointTxs: data.event.checkpointTxs
1481
1481
  };
@@ -1489,14 +1489,14 @@ var RestIndexerProvider = class {
1489
1489
  if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
1490
1490
  break;
1491
1491
  }
1492
- if (chunk4A4GRSTB_cjs.isFetchTimeoutError(error)) {
1492
+ if (chunkFNCQJLR2_cjs.isFetchTimeoutError(error)) {
1493
1493
  console.debug("Timeout error ignored");
1494
1494
  continue;
1495
1495
  }
1496
- if (chunk4A4GRSTB_cjs.isEventSourceError(error)) {
1496
+ if (chunkFNCQJLR2_cjs.isEventSourceError(error)) {
1497
1497
  throw error;
1498
1498
  }
1499
- if (chunk4A4GRSTB_cjs.isEventSourceUnavailableError(error)) throw error;
1499
+ if (chunkFNCQJLR2_cjs.isEventSourceUnavailableError(error)) throw error;
1500
1500
  console.error("Subscription error:", error);
1501
1501
  throw error;
1502
1502
  } finally {
@@ -1622,7 +1622,7 @@ var RestIndexerProvider = class {
1622
1622
  throw new Error("Invalid vtxos data received");
1623
1623
  }
1624
1624
  return {
1625
- vtxos: data.vtxos.map(chunk4A4GRSTB_cjs.convertVtxo),
1625
+ vtxos: data.vtxos.map(chunkFNCQJLR2_cjs.convertVtxo),
1626
1626
  page: data.page
1627
1627
  };
1628
1628
  }
@@ -1804,5 +1804,5 @@ exports.Metadata = Metadata;
1804
1804
  exports.Packet = Packet;
1805
1805
  exports.RestIndexerProvider = RestIndexerProvider;
1806
1806
  exports.asset_exports = asset_exports;
1807
- //# sourceMappingURL=chunk-PRFL62ID.cjs.map
1808
- //# sourceMappingURL=chunk-PRFL62ID.cjs.map
1807
+ //# sourceMappingURL=chunk-2JHN5RCY.cjs.map
1808
+ //# sourceMappingURL=chunk-2JHN5RCY.cjs.map