@arkade-os/sdk 0.4.72 → 0.4.73
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/dist/adapters/expo.cjs +5 -5
- package/dist/adapters/expo.js +3 -3
- package/dist/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{asyncStorageTaskQueue-DhhNZc4v.d.ts → asyncStorageTaskQueue-C5IwA_Hs.d.ts} +2 -2
- package/dist/{asyncStorageTaskQueue-s5lUGWxu.d.cts → asyncStorageTaskQueue-DA2OdpJ0.d.cts} +2 -2
- package/dist/{chunk-NPM5YZBC.cjs → chunk-2D7F5IU3.cjs} +49 -49
- package/dist/{chunk-NPM5YZBC.cjs.map → chunk-2D7F5IU3.cjs.map} +1 -1
- package/dist/{chunk-CZPBPMO2.js → chunk-5YCAC6XE.js} +4 -4
- package/dist/{chunk-CZPBPMO2.js.map → chunk-5YCAC6XE.js.map} +1 -1
- package/dist/{chunk-U5I3ITV7.cjs → chunk-C4RKZY7D.cjs} +597 -470
- package/dist/chunk-C4RKZY7D.cjs.map +1 -0
- package/dist/{chunk-4C5PMGBB.cjs → chunk-D5DLGVN4.cjs} +17 -17
- package/dist/{chunk-4C5PMGBB.cjs.map → chunk-D5DLGVN4.cjs.map} +1 -1
- package/dist/{chunk-CB6QPAO5.js → chunk-G5RPUZJE.js} +3 -3
- package/dist/{chunk-CB6QPAO5.js.map → chunk-G5RPUZJE.js.map} +1 -1
- package/dist/{chunk-6FTHFJAN.cjs → chunk-KJ5E646Y.cjs} +3 -3
- package/dist/{chunk-6FTHFJAN.cjs.map → chunk-KJ5E646Y.cjs.map} +1 -1
- package/dist/{chunk-KDMHEWTD.cjs → chunk-L7IEXVXI.cjs} +10 -10
- package/dist/{chunk-KDMHEWTD.cjs.map → chunk-L7IEXVXI.cjs.map} +1 -1
- package/dist/{chunk-IGER5FPC.js → chunk-M6HIWM5N.js} +3 -3
- package/dist/{chunk-IGER5FPC.js.map → chunk-M6HIWM5N.js.map} +1 -1
- package/dist/{chunk-5GQFYVWP.js → chunk-OV4GLPZI.js} +3 -3
- package/dist/{chunk-5GQFYVWP.js.map → chunk-OV4GLPZI.js.map} +1 -1
- package/dist/{chunk-S5PUFSXC.js → chunk-QX2M67YI.js} +4 -4
- package/dist/{chunk-S5PUFSXC.js.map → chunk-QX2M67YI.js.map} +1 -1
- package/dist/{chunk-BHLYB44A.js → chunk-YHJJSLE5.js} +162 -35
- package/dist/chunk-YHJJSLE5.js.map +1 -0
- package/dist/{chunk-4BWZ437E.cjs → chunk-ZLDO4QDR.cjs} +17 -17
- package/dist/{chunk-4BWZ437E.cjs.map → chunk-ZLDO4QDR.cjs.map} +1 -1
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/index.cjs +300 -300
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +19 -19
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +18 -18
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-BH_FxaNI.d.cts → taskRunner-C_uAJDsn.d.cts} +1 -1
- package/dist/{taskRunner-DrVz2QZs.d.ts → taskRunner-DARTFnZN.d.ts} +1 -1
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +2 -2
- package/dist/wallet/expo/background.d.ts +2 -2
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +14 -14
- package/dist/wallet/expo/index.d.cts +1 -1
- package/dist/wallet/expo/index.d.ts +1 -1
- package/dist/wallet/expo/index.js +5 -5
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +3 -3
- package/dist/worker/expo/index.d.ts +3 -3
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-BHLYB44A.js.map +0 -1
- package/dist/chunk-U5I3ITV7.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKJ5E646Y_cjs = require('./chunk-KJ5E646Y.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');
|
|
@@ -1420,10 +1420,10 @@ async function indexerFetch(input, init) {
|
|
|
1420
1420
|
const lastAttempt = attempt >= maxAttempts;
|
|
1421
1421
|
let res;
|
|
1422
1422
|
try {
|
|
1423
|
-
res = await
|
|
1423
|
+
res = await chunkKJ5E646Y_cjs.rateGate.runHttp(input, () => chunkKJ5E646Y_cjs.baseFetch(input, init));
|
|
1424
1424
|
} catch (err) {
|
|
1425
|
-
const mapped =
|
|
1426
|
-
if (lastAttempt || !(mapped instanceof
|
|
1425
|
+
const mapped = chunkKJ5E646Y_cjs.toProviderUnavailable(err, "indexer");
|
|
1426
|
+
if (lastAttempt || !(mapped instanceof chunkKJ5E646Y_cjs.ProviderUnavailableError)) throw mapped;
|
|
1427
1427
|
await sleep(retryDelayMs(attempt));
|
|
1428
1428
|
continue;
|
|
1429
1429
|
}
|
|
@@ -1435,7 +1435,7 @@ async function indexerFetch(input, init) {
|
|
|
1435
1435
|
body = void 0;
|
|
1436
1436
|
}
|
|
1437
1437
|
try {
|
|
1438
|
-
|
|
1438
|
+
chunkKJ5E646Y_cjs.throwIfHttpUnavailable(res, "indexer", body);
|
|
1439
1439
|
} catch (err) {
|
|
1440
1440
|
if (lastAttempt) throw err;
|
|
1441
1441
|
await sleep(retryDelayMs(attempt));
|
|
@@ -1464,7 +1464,7 @@ var ChainTxType = /* @__PURE__ */ ((ChainTxType2) => {
|
|
|
1464
1464
|
return ChainTxType2;
|
|
1465
1465
|
})(ChainTxType || {});
|
|
1466
1466
|
var RestIndexerProvider = class {
|
|
1467
|
-
constructor(serverUrl =
|
|
1467
|
+
constructor(serverUrl = chunkKJ5E646Y_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
|
|
1468
1468
|
this.serverUrl = serverUrl;
|
|
1469
1469
|
this.eventSource = options.eventSource;
|
|
1470
1470
|
}
|
|
@@ -1602,8 +1602,8 @@ var RestIndexerProvider = class {
|
|
|
1602
1602
|
try {
|
|
1603
1603
|
while (!abortSignal?.aborted) {
|
|
1604
1604
|
try {
|
|
1605
|
-
const currentIterator =
|
|
1606
|
-
|
|
1605
|
+
const currentIterator = chunkKJ5E646Y_cjs.eventSourceIterator(
|
|
1606
|
+
chunkKJ5E646Y_cjs.resolveEventSource(override)(url)
|
|
1607
1607
|
);
|
|
1608
1608
|
iterator = currentIterator;
|
|
1609
1609
|
for await (const event of currentIterator) {
|
|
@@ -1614,9 +1614,9 @@ var RestIndexerProvider = class {
|
|
|
1614
1614
|
yield {
|
|
1615
1615
|
txid: data.event.txid,
|
|
1616
1616
|
scripts: data.event.scripts || [],
|
|
1617
|
-
newVtxos: (data.event.newVtxos || []).map(
|
|
1618
|
-
spentVtxos: (data.event.spentVtxos || []).map(
|
|
1619
|
-
sweptVtxos: (data.event.sweptVtxos || []).map(
|
|
1617
|
+
newVtxos: (data.event.newVtxos || []).map(chunkKJ5E646Y_cjs.convertVtxo),
|
|
1618
|
+
spentVtxos: (data.event.spentVtxos || []).map(chunkKJ5E646Y_cjs.convertVtxo),
|
|
1619
|
+
sweptVtxos: (data.event.sweptVtxos || []).map(chunkKJ5E646Y_cjs.convertVtxo),
|
|
1620
1620
|
tx: data.event.tx,
|
|
1621
1621
|
checkpointTxs: data.event.checkpointTxs
|
|
1622
1622
|
};
|
|
@@ -1630,14 +1630,14 @@ var RestIndexerProvider = class {
|
|
|
1630
1630
|
if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
1631
1631
|
break;
|
|
1632
1632
|
}
|
|
1633
|
-
if (
|
|
1633
|
+
if (chunkKJ5E646Y_cjs.isFetchTimeoutError(error)) {
|
|
1634
1634
|
console.debug("Timeout error ignored");
|
|
1635
1635
|
continue;
|
|
1636
1636
|
}
|
|
1637
|
-
if (
|
|
1637
|
+
if (chunkKJ5E646Y_cjs.isEventSourceError(error)) {
|
|
1638
1638
|
throw error;
|
|
1639
1639
|
}
|
|
1640
|
-
if (
|
|
1640
|
+
if (chunkKJ5E646Y_cjs.isEventSourceUnavailableError(error)) throw error;
|
|
1641
1641
|
console.error("Subscription error:", error);
|
|
1642
1642
|
throw error;
|
|
1643
1643
|
} finally {
|
|
@@ -1781,7 +1781,7 @@ var RestIndexerProvider = class {
|
|
|
1781
1781
|
}
|
|
1782
1782
|
const data = await this.fetchVtxosJson(url);
|
|
1783
1783
|
return {
|
|
1784
|
-
vtxos: data.vtxos.map(
|
|
1784
|
+
vtxos: data.vtxos.map(chunkKJ5E646Y_cjs.convertVtxo),
|
|
1785
1785
|
page: data.page
|
|
1786
1786
|
};
|
|
1787
1787
|
}
|
|
@@ -1995,5 +1995,5 @@ exports.Metadata = Metadata;
|
|
|
1995
1995
|
exports.Packet = Packet;
|
|
1996
1996
|
exports.RestIndexerProvider = RestIndexerProvider;
|
|
1997
1997
|
exports.asset_exports = asset_exports;
|
|
1998
|
-
//# sourceMappingURL=chunk-
|
|
1999
|
-
//# sourceMappingURL=chunk-
|
|
1998
|
+
//# sourceMappingURL=chunk-D5DLGVN4.cjs.map
|
|
1999
|
+
//# sourceMappingURL=chunk-D5DLGVN4.cjs.map
|