@arkade-os/sdk 0.4.54 → 0.4.55
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.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{ark-acFuA57I.d.cts → ark-Do9Lqfsp.d.cts} +35 -2
- package/dist/{ark-acFuA57I.d.ts → ark-Do9Lqfsp.d.ts} +35 -2
- package/dist/{asyncStorageTaskQueue-BO3cvMpP.d.cts → asyncStorageTaskQueue-C3DYxvAT.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-DACXtP0I.d.ts → asyncStorageTaskQueue-DOnBOEDn.d.ts} +2 -2
- package/dist/{chunk-YRLBZJYO.cjs → chunk-C6UYPHTQ.cjs} +9 -9
- package/dist/{chunk-YRLBZJYO.cjs.map → chunk-C6UYPHTQ.cjs.map} +1 -1
- package/dist/{chunk-BYJJIITU.cjs → chunk-CSS74VCN.cjs} +17 -17
- package/dist/{chunk-BYJJIITU.cjs.map → chunk-CSS74VCN.cjs.map} +1 -1
- package/dist/{chunk-ZOY5JSVA.js → chunk-ENWR2F2P.js} +3 -3
- package/dist/{chunk-ZOY5JSVA.js.map → chunk-ENWR2F2P.js.map} +1 -1
- package/dist/{chunk-RNECH3TA.cjs → chunk-G7DOBFQN.cjs} +15 -15
- package/dist/{chunk-RNECH3TA.cjs.map → chunk-G7DOBFQN.cjs.map} +1 -1
- package/dist/{chunk-4EIKOJLD.js → chunk-JCJ5WFS3.js} +11 -4
- package/dist/chunk-JCJ5WFS3.js.map +1 -0
- package/dist/{chunk-7L3P3EP5.js → chunk-LAONNMM5.js} +4 -4
- package/dist/{chunk-7L3P3EP5.js.map → chunk-LAONNMM5.js.map} +1 -1
- package/dist/{chunk-GMUVWKOK.cjs → chunk-OWCPXRGP.cjs} +11 -3
- package/dist/chunk-OWCPXRGP.cjs.map +1 -0
- package/dist/{chunk-A37WVZ5T.js → chunk-QMPNPZ2T.js} +23 -4
- package/dist/chunk-QMPNPZ2T.js.map +1 -0
- package/dist/{chunk-TEHJCEF3.js → chunk-QO3IKBYL.js} +366 -51
- package/dist/chunk-QO3IKBYL.js.map +1 -0
- package/dist/{chunk-QY2YVFZT.js → chunk-SG4X7SEC.js} +4 -4
- package/dist/{chunk-QY2YVFZT.js.map → chunk-SG4X7SEC.js.map} +1 -1
- package/dist/{chunk-53XNU2EL.cjs → chunk-V2TOHHPW.cjs} +60 -40
- package/dist/chunk-V2TOHHPW.cjs.map +1 -0
- package/dist/{chunk-D5LUPJJP.cjs → chunk-ZPL34T2Q.cjs} +717 -395
- package/dist/chunk-ZPL34T2Q.cjs.map +1 -0
- package/dist/contracts/handlers/index.cjs +8 -8
- 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-Ca_wXiYE.d.cts → delegate-C0iIBxen.d.cts} +1 -1
- package/dist/{delegate-DjwZZi6L.d.ts → delegate-DmhFrtdq.d.ts} +1 -1
- package/dist/{index-Ddq0mIKX.d.ts → index-BNt4wcSh.d.ts} +2 -2
- package/dist/{index-DFfefdpc.d.cts → index-BnLM1XxA.d.cts} +2 -2
- package/dist/index.cjs +238 -202
- package/dist/index.d.cts +138 -14
- package/dist/index.d.ts +138 -14
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +19 -19
- 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 +18 -18
- 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-DbCNRP31.d.ts → taskRunner-Bgs-0I3x.d.ts} +2 -2
- package/dist/{taskRunner-DEwlrgId.d.cts → taskRunner-RwUvgQ5M.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 +14 -14
- package/dist/wallet/expo/index.d.cts +5 -5
- package/dist/wallet/expo/index.d.ts +5 -5
- package/dist/wallet/expo/index.js +5 -5
- package/dist/{wallet-ByjM6L20.d.cts → wallet-5Aou-V5n.d.ts} +83 -6
- package/dist/{wallet-B9rpddG2.d.ts → wallet-Ck7BH8zR.d.cts} +83 -6
- 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-4EIKOJLD.js.map +0 -1
- package/dist/chunk-53XNU2EL.cjs.map +0 -1
- package/dist/chunk-A37WVZ5T.js.map +0 -1
- package/dist/chunk-D5LUPJJP.cjs.map +0 -1
- package/dist/chunk-GMUVWKOK.cjs.map +0 -1
- package/dist/chunk-TEHJCEF3.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOWCPXRGP_cjs = require('./chunk-OWCPXRGP.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
|
|
1285
|
+
res = await chunkOWCPXRGP_cjs.rateGate.runHttp(input, () => chunkOWCPXRGP_cjs.baseFetch(input, init));
|
|
1286
1286
|
} catch (err) {
|
|
1287
|
-
const mapped =
|
|
1288
|
-
if (lastAttempt || !(mapped instanceof
|
|
1287
|
+
const mapped = chunkOWCPXRGP_cjs.toProviderUnavailable(err, "indexer");
|
|
1288
|
+
if (lastAttempt || !(mapped instanceof chunkOWCPXRGP_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
|
-
|
|
1300
|
+
chunkOWCPXRGP_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 =
|
|
1328
|
+
constructor(serverUrl = chunkOWCPXRGP_cjs.DEFAULT_ARKADE_SERVER_URL) {
|
|
1329
1329
|
this.serverUrl = serverUrl;
|
|
1330
1330
|
}
|
|
1331
1331
|
serverUrl;
|
|
@@ -1457,7 +1457,7 @@ var RestIndexerProvider = class {
|
|
|
1457
1457
|
try {
|
|
1458
1458
|
while (!abortSignal?.aborted) {
|
|
1459
1459
|
try {
|
|
1460
|
-
const currentIterator =
|
|
1460
|
+
const currentIterator = chunkOWCPXRGP_cjs.eventSourceIterator(new EventSource(url));
|
|
1461
1461
|
iterator = currentIterator;
|
|
1462
1462
|
for await (const event of currentIterator) {
|
|
1463
1463
|
if (abortSignal?.aborted) break;
|
|
@@ -1467,9 +1467,9 @@ var RestIndexerProvider = class {
|
|
|
1467
1467
|
yield {
|
|
1468
1468
|
txid: data.event.txid,
|
|
1469
1469
|
scripts: data.event.scripts || [],
|
|
1470
|
-
newVtxos: (data.event.newVtxos || []).map(
|
|
1471
|
-
spentVtxos: (data.event.spentVtxos || []).map(
|
|
1472
|
-
sweptVtxos: (data.event.sweptVtxos || []).map(
|
|
1470
|
+
newVtxos: (data.event.newVtxos || []).map(chunkOWCPXRGP_cjs.convertVtxo),
|
|
1471
|
+
spentVtxos: (data.event.spentVtxos || []).map(chunkOWCPXRGP_cjs.convertVtxo),
|
|
1472
|
+
sweptVtxos: (data.event.sweptVtxos || []).map(chunkOWCPXRGP_cjs.convertVtxo),
|
|
1473
1473
|
tx: data.event.tx,
|
|
1474
1474
|
checkpointTxs: data.event.checkpointTxs
|
|
1475
1475
|
};
|
|
@@ -1483,11 +1483,11 @@ var RestIndexerProvider = class {
|
|
|
1483
1483
|
if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
1484
1484
|
break;
|
|
1485
1485
|
}
|
|
1486
|
-
if (
|
|
1486
|
+
if (chunkOWCPXRGP_cjs.isFetchTimeoutError(error)) {
|
|
1487
1487
|
console.debug("Timeout error ignored");
|
|
1488
1488
|
continue;
|
|
1489
1489
|
}
|
|
1490
|
-
if (
|
|
1490
|
+
if (chunkOWCPXRGP_cjs.isEventSourceError(error)) {
|
|
1491
1491
|
throw error;
|
|
1492
1492
|
}
|
|
1493
1493
|
console.error("Subscription error:", error);
|
|
@@ -1615,7 +1615,7 @@ var RestIndexerProvider = class {
|
|
|
1615
1615
|
throw new Error("Invalid vtxos data received");
|
|
1616
1616
|
}
|
|
1617
1617
|
return {
|
|
1618
|
-
vtxos: data.vtxos.map(
|
|
1618
|
+
vtxos: data.vtxos.map(chunkOWCPXRGP_cjs.convertVtxo),
|
|
1619
1619
|
page: data.page
|
|
1620
1620
|
};
|
|
1621
1621
|
}
|
|
@@ -1797,5 +1797,5 @@ exports.Metadata = Metadata;
|
|
|
1797
1797
|
exports.Packet = Packet;
|
|
1798
1798
|
exports.RestIndexerProvider = RestIndexerProvider;
|
|
1799
1799
|
exports.asset_exports = asset_exports;
|
|
1800
|
-
//# sourceMappingURL=chunk-
|
|
1801
|
-
//# sourceMappingURL=chunk-
|
|
1800
|
+
//# sourceMappingURL=chunk-G7DOBFQN.cjs.map
|
|
1801
|
+
//# sourceMappingURL=chunk-G7DOBFQN.cjs.map
|