@arkade-os/sdk 0.5.0 → 0.5.1
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.
- package/README.md +1 -1
- package/dist/adapters/expo.cjs +5 -5
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/{asyncStorageTaskQueue-BFv2O1y1.d.ts → asyncStorageTaskQueue-CdWheMqT.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-qRRQUOE8.d.cts → asyncStorageTaskQueue-DFt5LgW5.d.cts} +2 -2
- package/dist/{chunk-K352GMVL.js → chunk-3M22PJVB.js} +3 -3
- package/dist/{chunk-K352GMVL.js.map → chunk-3M22PJVB.js.map} +1 -1
- package/dist/{chunk-HABGVRLF.js → chunk-6MIGYYWB.js} +3 -3
- package/dist/{chunk-HABGVRLF.js.map → chunk-6MIGYYWB.js.map} +1 -1
- package/dist/{chunk-K2E6X6JT.js → chunk-FXVEOEYB.js} +4 -4
- package/dist/{chunk-K2E6X6JT.js.map → chunk-FXVEOEYB.js.map} +1 -1
- package/dist/{chunk-JT5YVMCJ.cjs → chunk-GQUFPTN7.cjs} +16 -16
- package/dist/{chunk-JT5YVMCJ.cjs.map → chunk-GQUFPTN7.cjs.map} +1 -1
- package/dist/{chunk-GN2K4WBP.cjs → chunk-GW42FS2X.cjs} +48 -48
- package/dist/{chunk-GN2K4WBP.cjs.map → chunk-GW42FS2X.cjs.map} +1 -1
- package/dist/{chunk-IQWLFYT2.cjs → chunk-HQNQ3CLQ.cjs} +18 -18
- package/dist/{chunk-IQWLFYT2.cjs.map → chunk-HQNQ3CLQ.cjs.map} +1 -1
- package/dist/{chunk-GOM26K6H.cjs → chunk-JJ6QKTFZ.cjs} +10 -10
- package/dist/{chunk-GOM26K6H.cjs.map → chunk-JJ6QKTFZ.cjs.map} +1 -1
- package/dist/{chunk-GWJWXVUB.js → chunk-NKKJEA3Z.js} +51 -37
- package/dist/chunk-NKKJEA3Z.js.map +1 -0
- package/dist/{chunk-ZOEB53NQ.js → chunk-QFB55EOZ.js} +3 -3
- package/dist/{chunk-ZOEB53NQ.js.map → chunk-QFB55EOZ.js.map} +1 -1
- package/dist/{chunk-AU77RYOC.cjs → chunk-QKNSMVBW.cjs} +546 -532
- package/dist/chunk-QKNSMVBW.cjs.map +1 -0
- package/dist/{chunk-UUSKJOSX.cjs → chunk-XLHUGP3G.cjs} +3 -3
- package/dist/{chunk-UUSKJOSX.cjs.map → chunk-XLHUGP3G.cjs.map} +1 -1
- package/dist/{chunk-TZSKLERU.js → chunk-XQRIY5K5.js} +4 -4
- package/dist/{chunk-TZSKLERU.js.map → chunk-XQRIY5K5.js.map} +1 -1
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-DNbiUgy8.d.ts → delegate-BSbGQabI.d.ts} +1 -1
- package/dist/{delegate-B5BmYkEY.d.cts → delegate-CFCfrReG.d.cts} +1 -1
- package/dist/{index-CZw-MMfY.d.cts → index-B3fRWO5i.d.cts} +9 -1
- package/dist/{index-CZw-MMfY.d.ts → index-B3fRWO5i.d.ts} +9 -1
- package/dist/{index-CYeyT3kn.d.ts → index-CzUVvIxA.d.ts} +2 -2
- package/dist/{index-B4QuO9sH.d.cts → index-Fpf4mQZr.d.cts} +2 -2
- package/dist/index.cjs +313 -313
- package/dist/index.d.cts +15 -8
- package/dist/index.d.ts +15 -8
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +35 -35
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +33 -33
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-wm1bhmtP.d.ts → taskRunner-CdfoCMaw.d.ts} +2 -2
- package/dist/{taskRunner-B3SLvUfL.d.cts → taskRunner-Dk6oDAtd.d.cts} +2 -2
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +15 -15
- package/dist/wallet/expo/index.d.cts +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +5 -5
- package/dist/{wallet-DCZ2-Bea.d.cts → wallet-BQHNgc_v.d.ts} +3 -3
- package/dist/{wallet-DGLXuwXT.d.ts → wallet-D9dvXu-K.d.cts} +3 -3
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-AU77RYOC.cjs.map +0 -1
- package/dist/chunk-GWJWXVUB.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXLHUGP3G_cjs = require('./chunk-XLHUGP3G.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
|
-
|
|
10
|
+
chunkXLHUGP3G_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
|
|
1319
|
+
res = await chunkXLHUGP3G_cjs.rateGate.runHttp(input, () => chunkXLHUGP3G_cjs.baseFetch(input, init));
|
|
1320
1320
|
} catch (err) {
|
|
1321
|
-
const mapped =
|
|
1322
|
-
if (lastAttempt || !(mapped instanceof
|
|
1321
|
+
const mapped = chunkXLHUGP3G_cjs.toProviderUnavailable(err, "indexer");
|
|
1322
|
+
if (lastAttempt || !(mapped instanceof chunkXLHUGP3G_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
|
-
|
|
1334
|
+
chunkXLHUGP3G_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 =
|
|
1363
|
+
constructor(serverUrl = chunkXLHUGP3G_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
|
|
1364
1364
|
this.serverUrl = serverUrl;
|
|
1365
1365
|
this.eventSource = options.eventSource;
|
|
1366
1366
|
}
|
|
@@ -1487,8 +1487,8 @@ var RestIndexerProvider = class {
|
|
|
1487
1487
|
try {
|
|
1488
1488
|
while (!abortSignal?.aborted) {
|
|
1489
1489
|
try {
|
|
1490
|
-
const currentIterator =
|
|
1491
|
-
|
|
1490
|
+
const currentIterator = chunkXLHUGP3G_cjs.eventSourceIterator(
|
|
1491
|
+
chunkXLHUGP3G_cjs.resolveEventSource(override)(url)
|
|
1492
1492
|
);
|
|
1493
1493
|
iterator = currentIterator;
|
|
1494
1494
|
for await (const event of currentIterator) {
|
|
@@ -1505,14 +1505,14 @@ var RestIndexerProvider = class {
|
|
|
1505
1505
|
if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
1506
1506
|
break;
|
|
1507
1507
|
}
|
|
1508
|
-
if (
|
|
1508
|
+
if (chunkXLHUGP3G_cjs.isFetchTimeoutError(error)) {
|
|
1509
1509
|
console.debug("Timeout error ignored");
|
|
1510
1510
|
continue;
|
|
1511
1511
|
}
|
|
1512
|
-
if (
|
|
1512
|
+
if (chunkXLHUGP3G_cjs.isEventSourceError(error)) {
|
|
1513
1513
|
throw error;
|
|
1514
1514
|
}
|
|
1515
|
-
if (
|
|
1515
|
+
if (chunkXLHUGP3G_cjs.isEventSourceUnavailableError(error)) throw error;
|
|
1516
1516
|
console.error("Subscription error:", error);
|
|
1517
1517
|
throw error;
|
|
1518
1518
|
} finally {
|
|
@@ -1641,7 +1641,7 @@ var RestIndexerProvider = class {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
const data = await this.fetchVtxosJson(url);
|
|
1643
1643
|
return {
|
|
1644
|
-
vtxos: data.vtxos.map(
|
|
1644
|
+
vtxos: data.vtxos.map(chunkXLHUGP3G_cjs.convertVtxo),
|
|
1645
1645
|
page: data.page
|
|
1646
1646
|
};
|
|
1647
1647
|
}
|
|
@@ -1750,9 +1750,9 @@ function toSubscriptionResponse(event) {
|
|
|
1750
1750
|
return {
|
|
1751
1751
|
txid: event.txid,
|
|
1752
1752
|
scripts: event.scripts || [],
|
|
1753
|
-
newVtxos: (event.newVtxos || []).map(
|
|
1754
|
-
spentVtxos: (event.spentVtxos || []).map(
|
|
1755
|
-
sweptVtxos: (event.sweptVtxos || []).map(
|
|
1753
|
+
newVtxos: (event.newVtxos || []).map(chunkXLHUGP3G_cjs.convertVtxo),
|
|
1754
|
+
spentVtxos: (event.spentVtxos || []).map(chunkXLHUGP3G_cjs.convertVtxo),
|
|
1755
|
+
sweptVtxos: (event.sweptVtxos || []).map(chunkXLHUGP3G_cjs.convertVtxo),
|
|
1756
1756
|
tx: event.tx,
|
|
1757
1757
|
checkpointTxs: event.checkpointTxs
|
|
1758
1758
|
};
|
|
@@ -1864,5 +1864,5 @@ exports.Packet = Packet;
|
|
|
1864
1864
|
exports.RestIndexerProvider = RestIndexerProvider;
|
|
1865
1865
|
exports.asset_exports = asset_exports;
|
|
1866
1866
|
exports.toSubscriptionMessage = toSubscriptionMessage;
|
|
1867
|
-
//# sourceMappingURL=chunk-
|
|
1868
|
-
//# sourceMappingURL=chunk-
|
|
1867
|
+
//# sourceMappingURL=chunk-HQNQ3CLQ.cjs.map
|
|
1868
|
+
//# sourceMappingURL=chunk-HQNQ3CLQ.cjs.map
|