@arkade-os/sdk 0.4.68 → 0.4.69
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 +33 -0
- 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/{asyncStorageTaskQueue-DaZlVTbM.d.ts → asyncStorageTaskQueue-BgUJN-3X.d.ts} +1 -1
- package/dist/{asyncStorageTaskQueue-B2CcXIHU.d.cts → asyncStorageTaskQueue-Cstx6hS7.d.cts} +1 -1
- package/dist/{chunk-45FKMOJH.js → chunk-2PPL3O7Z.js} +3 -3
- package/dist/{chunk-45FKMOJH.js.map → chunk-2PPL3O7Z.js.map} +1 -1
- package/dist/{chunk-EJOFL5WH.cjs → chunk-5MLC2HU3.cjs} +3 -3
- package/dist/{chunk-EJOFL5WH.cjs.map → chunk-5MLC2HU3.cjs.map} +1 -1
- package/dist/{chunk-WCJVKFAP.cjs → chunk-EBYCTLET.cjs} +787 -479
- package/dist/chunk-EBYCTLET.cjs.map +1 -0
- package/dist/{chunk-PJR63FTK.cjs → chunk-GVHUHTRH.cjs} +17 -17
- package/dist/{chunk-PJR63FTK.cjs.map → chunk-GVHUHTRH.cjs.map} +1 -1
- package/dist/{chunk-4KCVS4ZN.cjs → chunk-HQ4DMGA4.cjs} +10 -10
- package/dist/{chunk-4KCVS4ZN.cjs.map → chunk-HQ4DMGA4.cjs.map} +1 -1
- package/dist/{chunk-4CMXV5SF.js → chunk-L5SCQYHF.js} +3 -3
- package/dist/{chunk-4CMXV5SF.js.map → chunk-L5SCQYHF.js.map} +1 -1
- package/dist/{chunk-G4I6PU5H.js → chunk-MNMPGEK2.js} +4 -4
- package/dist/{chunk-G4I6PU5H.js.map → chunk-MNMPGEK2.js.map} +1 -1
- package/dist/{chunk-VBHXBI7F.js → chunk-TA7XLEP2.js} +357 -50
- package/dist/chunk-TA7XLEP2.js.map +1 -0
- package/dist/{chunk-6YUACVX4.cjs → chunk-WIFL5QYZ.cjs} +49 -49
- package/dist/{chunk-6YUACVX4.cjs.map → chunk-WIFL5QYZ.cjs.map} +1 -1
- package/dist/{chunk-GQ4NMQGR.js → chunk-XLWDX7QZ.js} +4 -4
- package/dist/{chunk-GQ4NMQGR.js.map → chunk-XLWDX7QZ.js.map} +1 -1
- package/dist/{chunk-JGMSZIE4.cjs → chunk-XQPN5YP2.cjs} +17 -17
- package/dist/{chunk-JGMSZIE4.cjs.map → chunk-XQPN5YP2.cjs.map} +1 -1
- package/dist/{chunk-33Q2RFET.js → chunk-YG7T6LI3.js} +3 -3
- package/dist/{chunk-33Q2RFET.js.map → chunk-YG7T6LI3.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-AomVWxO_.d.ts → delegate-BPdzTbwN.d.ts} +1 -1
- package/dist/{delegate-Bffc5f54.d.cts → delegate-DrwIar11.d.cts} +1 -1
- package/dist/{hdWalletCapable-DZdIVa23.d.ts → hdWalletCapable-D4WH35z0.d.cts} +49 -5
- package/dist/{hdWalletCapable-B5nRs3RH.d.cts → hdWalletCapable-DyxCiNVE.d.ts} +49 -5
- package/dist/{index-nfyQM33h.d.cts → index-BqhpAqqj.d.cts} +2 -2
- package/dist/{index-jouvy8FD.d.ts → index-TZJvbIaA.d.ts} +2 -2
- package/dist/{index-C7RZCfoY.d.cts → index-dWRqYSdS.d.cts} +53 -1
- package/dist/{index-C7RZCfoY.d.ts → index-dWRqYSdS.d.ts} +53 -1
- package/dist/index.cjs +294 -290
- package/dist/index.d.cts +25 -8
- package/dist/index.d.ts +25 -8
- 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-D2vnpPBT.d.cts → taskRunner-CzYKyJ9c.d.cts} +1 -1
- package/dist/{taskRunner-DuwK9t8O.d.ts → taskRunner-D2fnbqYw.d.ts} +1 -1
- 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 +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +5 -5
- 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-VBHXBI7F.js.map +0 -1
- package/dist/chunk-WCJVKFAP.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5MLC2HU3_cjs = require('./chunk-5MLC2HU3.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 chunk5MLC2HU3_cjs.rateGate.runHttp(input, () => chunk5MLC2HU3_cjs.baseFetch(input, init));
|
|
1424
1424
|
} catch (err) {
|
|
1425
|
-
const mapped =
|
|
1426
|
-
if (lastAttempt || !(mapped instanceof
|
|
1425
|
+
const mapped = chunk5MLC2HU3_cjs.toProviderUnavailable(err, "indexer");
|
|
1426
|
+
if (lastAttempt || !(mapped instanceof chunk5MLC2HU3_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
|
+
chunk5MLC2HU3_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 = chunk5MLC2HU3_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
|
|
1468
1468
|
this.serverUrl = serverUrl;
|
|
1469
1469
|
this.eventSource = options.eventSource;
|
|
1470
1470
|
}
|
|
@@ -1600,8 +1600,8 @@ var RestIndexerProvider = class {
|
|
|
1600
1600
|
try {
|
|
1601
1601
|
while (!abortSignal?.aborted) {
|
|
1602
1602
|
try {
|
|
1603
|
-
const currentIterator =
|
|
1604
|
-
|
|
1603
|
+
const currentIterator = chunk5MLC2HU3_cjs.eventSourceIterator(
|
|
1604
|
+
chunk5MLC2HU3_cjs.resolveEventSource(override)(url)
|
|
1605
1605
|
);
|
|
1606
1606
|
iterator = currentIterator;
|
|
1607
1607
|
for await (const event of currentIterator) {
|
|
@@ -1612,9 +1612,9 @@ var RestIndexerProvider = class {
|
|
|
1612
1612
|
yield {
|
|
1613
1613
|
txid: data.event.txid,
|
|
1614
1614
|
scripts: data.event.scripts || [],
|
|
1615
|
-
newVtxos: (data.event.newVtxos || []).map(
|
|
1616
|
-
spentVtxos: (data.event.spentVtxos || []).map(
|
|
1617
|
-
sweptVtxos: (data.event.sweptVtxos || []).map(
|
|
1615
|
+
newVtxos: (data.event.newVtxos || []).map(chunk5MLC2HU3_cjs.convertVtxo),
|
|
1616
|
+
spentVtxos: (data.event.spentVtxos || []).map(chunk5MLC2HU3_cjs.convertVtxo),
|
|
1617
|
+
sweptVtxos: (data.event.sweptVtxos || []).map(chunk5MLC2HU3_cjs.convertVtxo),
|
|
1618
1618
|
tx: data.event.tx,
|
|
1619
1619
|
checkpointTxs: data.event.checkpointTxs
|
|
1620
1620
|
};
|
|
@@ -1628,14 +1628,14 @@ var RestIndexerProvider = class {
|
|
|
1628
1628
|
if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
1629
1629
|
break;
|
|
1630
1630
|
}
|
|
1631
|
-
if (
|
|
1631
|
+
if (chunk5MLC2HU3_cjs.isFetchTimeoutError(error)) {
|
|
1632
1632
|
console.debug("Timeout error ignored");
|
|
1633
1633
|
continue;
|
|
1634
1634
|
}
|
|
1635
|
-
if (
|
|
1635
|
+
if (chunk5MLC2HU3_cjs.isEventSourceError(error)) {
|
|
1636
1636
|
throw error;
|
|
1637
1637
|
}
|
|
1638
|
-
if (
|
|
1638
|
+
if (chunk5MLC2HU3_cjs.isEventSourceUnavailableError(error)) throw error;
|
|
1639
1639
|
console.error("Subscription error:", error);
|
|
1640
1640
|
throw error;
|
|
1641
1641
|
} finally {
|
|
@@ -1786,7 +1786,7 @@ var RestIndexerProvider = class {
|
|
|
1786
1786
|
throw new Error("Invalid vtxos data received");
|
|
1787
1787
|
}
|
|
1788
1788
|
return {
|
|
1789
|
-
vtxos: data.vtxos.map(
|
|
1789
|
+
vtxos: data.vtxos.map(chunk5MLC2HU3_cjs.convertVtxo),
|
|
1790
1790
|
page: data.page
|
|
1791
1791
|
};
|
|
1792
1792
|
}
|
|
@@ -1969,5 +1969,5 @@ exports.Metadata = Metadata;
|
|
|
1969
1969
|
exports.Packet = Packet;
|
|
1970
1970
|
exports.RestIndexerProvider = RestIndexerProvider;
|
|
1971
1971
|
exports.asset_exports = asset_exports;
|
|
1972
|
-
//# sourceMappingURL=chunk-
|
|
1973
|
-
//# sourceMappingURL=chunk-
|
|
1972
|
+
//# sourceMappingURL=chunk-GVHUHTRH.cjs.map
|
|
1973
|
+
//# sourceMappingURL=chunk-GVHUHTRH.cjs.map
|