@arkade-os/sdk 0.5.0-rc.21 → 0.5.0-rc.23
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 +31 -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/{asyncStorageTaskQueue-x8ok3tJy.d.cts → asyncStorageTaskQueue-DUu3VwBE.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-aL7K14e4.d.ts → asyncStorageTaskQueue-Dm71_6ID.d.ts} +2 -2
- package/dist/{chunk-LNJPVLIC.js → chunk-B4CZLBE6.js} +4 -4
- package/dist/{chunk-LNJPVLIC.js.map → chunk-B4CZLBE6.js.map} +1 -1
- package/dist/{chunk-EXFU6MTA.js → chunk-ENGV6VZF.js} +511 -89
- package/dist/chunk-ENGV6VZF.js.map +1 -0
- package/dist/{chunk-R5OFJ23O.cjs → chunk-H7W2KLN2.cjs} +990 -565
- package/dist/chunk-H7W2KLN2.cjs.map +1 -0
- package/dist/{chunk-VZMLADXQ.cjs → chunk-JETDFDWV.cjs} +10 -10
- package/dist/{chunk-VZMLADXQ.cjs.map → chunk-JETDFDWV.cjs.map} +1 -1
- package/dist/{chunk-5XBH5SAL.cjs → chunk-KR6FLFIH.cjs} +3 -3
- package/dist/{chunk-5XBH5SAL.cjs.map → chunk-KR6FLFIH.cjs.map} +1 -1
- package/dist/{chunk-GVF4OCTL.cjs → chunk-QLJXXVRO.cjs} +48 -48
- package/dist/{chunk-GVF4OCTL.cjs.map → chunk-QLJXXVRO.cjs.map} +1 -1
- package/dist/{chunk-JZAEFOE4.js → chunk-SPJA7XMU.js} +3 -3
- package/dist/{chunk-JZAEFOE4.js.map → chunk-SPJA7XMU.js.map} +1 -1
- package/dist/{chunk-CXHJGED6.js → chunk-UDQ3QE4C.js} +3 -3
- package/dist/{chunk-CXHJGED6.js.map → chunk-UDQ3QE4C.js.map} +1 -1
- package/dist/{chunk-S2WWOVFC.js → chunk-W2VYRZLB.js} +4 -4
- package/dist/{chunk-S2WWOVFC.js.map → chunk-W2VYRZLB.js.map} +1 -1
- package/dist/{chunk-4FDNOLBO.js → chunk-XZEQV5FE.js} +3 -3
- package/dist/{chunk-4FDNOLBO.js.map → chunk-XZEQV5FE.js.map} +1 -1
- package/dist/{chunk-Q7PC3NHX.cjs → chunk-YFHGGSII.cjs} +18 -18
- package/dist/{chunk-Q7PC3NHX.cjs.map → chunk-YFHGGSII.cjs.map} +1 -1
- package/dist/{chunk-HIZNPHB2.cjs → chunk-ZDLFQ7ZH.cjs} +15 -15
- package/dist/{chunk-HIZNPHB2.cjs.map → chunk-ZDLFQ7ZH.cjs.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-BT5iON1T.d.ts → delegate-DATx5c2o.d.ts} +1 -1
- package/dist/{delegate-u6kXTtWY.d.cts → delegate-DRoyCz4n.d.cts} +1 -1
- package/dist/{index-CK5QbTmZ.d.ts → index-BKBoBSKX.d.cts} +83 -9
- package/dist/{index-CK5QbTmZ.d.cts → index-BKBoBSKX.d.ts} +83 -9
- package/dist/{index-D1D4cR-G.d.ts → index-BjDUwnH-.d.ts} +2 -2
- package/dist/{index-BCnhItOQ.d.cts → index-CLgF0km0.d.cts} +2 -2
- package/dist/index.cjs +321 -309
- package/dist/index.d.cts +78 -16
- package/dist/index.d.ts +78 -16
- 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-BeYR6NpQ.d.ts → taskRunner-B78rNRXB.d.ts} +2 -2
- package/dist/{taskRunner-Csey3EYJ.d.cts → taskRunner-CoGRmz1U.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-DzSLMxBZ.d.ts → wallet-CdUjdg15.d.cts} +23 -5
- package/dist/{wallet-DG3Qmbmt.d.cts → wallet-yKzfCUfY.d.ts} +23 -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-EXFU6MTA.js.map +0 -1
- package/dist/chunk-R5OFJ23O.cjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKR6FLFIH_cjs = require('./chunk-KR6FLFIH.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
|
+
chunkKR6FLFIH_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 chunkKR6FLFIH_cjs.rateGate.runHttp(input, () => chunkKR6FLFIH_cjs.baseFetch(input, init));
|
|
1320
1320
|
} catch (err) {
|
|
1321
|
-
const mapped =
|
|
1322
|
-
if (lastAttempt || !(mapped instanceof
|
|
1321
|
+
const mapped = chunkKR6FLFIH_cjs.toProviderUnavailable(err, "indexer");
|
|
1322
|
+
if (lastAttempt || !(mapped instanceof chunkKR6FLFIH_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
|
+
chunkKR6FLFIH_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 = chunkKR6FLFIH_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
|
|
1364
1364
|
this.serverUrl = serverUrl;
|
|
1365
1365
|
this.eventSource = options.eventSource;
|
|
1366
1366
|
}
|
|
@@ -1460,8 +1460,8 @@ var RestIndexerProvider = class {
|
|
|
1460
1460
|
try {
|
|
1461
1461
|
while (!abortSignal?.aborted) {
|
|
1462
1462
|
try {
|
|
1463
|
-
const currentIterator =
|
|
1464
|
-
|
|
1463
|
+
const currentIterator = chunkKR6FLFIH_cjs.eventSourceIterator(
|
|
1464
|
+
chunkKR6FLFIH_cjs.resolveEventSource(override)(url)
|
|
1465
1465
|
);
|
|
1466
1466
|
iterator = currentIterator;
|
|
1467
1467
|
for await (const event of currentIterator) {
|
|
@@ -1480,14 +1480,14 @@ var RestIndexerProvider = class {
|
|
|
1480
1480
|
if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
1481
1481
|
break;
|
|
1482
1482
|
}
|
|
1483
|
-
if (
|
|
1483
|
+
if (chunkKR6FLFIH_cjs.isFetchTimeoutError(error)) {
|
|
1484
1484
|
console.debug("Timeout error ignored");
|
|
1485
1485
|
continue;
|
|
1486
1486
|
}
|
|
1487
|
-
if (
|
|
1487
|
+
if (chunkKR6FLFIH_cjs.isEventSourceError(error)) {
|
|
1488
1488
|
throw error;
|
|
1489
1489
|
}
|
|
1490
|
-
if (
|
|
1490
|
+
if (chunkKR6FLFIH_cjs.isEventSourceUnavailableError(error)) throw error;
|
|
1491
1491
|
console.error("Subscription error:", error);
|
|
1492
1492
|
throw error;
|
|
1493
1493
|
} finally {
|
|
@@ -1616,7 +1616,7 @@ var RestIndexerProvider = class {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
const data = await this.fetchVtxosJson(url);
|
|
1618
1618
|
return {
|
|
1619
|
-
vtxos: data.vtxos.map(
|
|
1619
|
+
vtxos: data.vtxos.map(chunkKR6FLFIH_cjs.convertVtxo),
|
|
1620
1620
|
page: data.page
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
@@ -1719,9 +1719,9 @@ function toSubscriptionResponse(event) {
|
|
|
1719
1719
|
return {
|
|
1720
1720
|
txid: event.txid,
|
|
1721
1721
|
scripts: event.scripts || [],
|
|
1722
|
-
newVtxos: (event.newVtxos || []).map(
|
|
1723
|
-
spentVtxos: (event.spentVtxos || []).map(
|
|
1724
|
-
sweptVtxos: (event.sweptVtxos || []).map(
|
|
1722
|
+
newVtxos: (event.newVtxos || []).map(chunkKR6FLFIH_cjs.convertVtxo),
|
|
1723
|
+
spentVtxos: (event.spentVtxos || []).map(chunkKR6FLFIH_cjs.convertVtxo),
|
|
1724
|
+
sweptVtxos: (event.sweptVtxos || []).map(chunkKR6FLFIH_cjs.convertVtxo),
|
|
1725
1725
|
tx: event.tx,
|
|
1726
1726
|
checkpointTxs: event.checkpointTxs
|
|
1727
1727
|
};
|
|
@@ -1833,5 +1833,5 @@ exports.Packet = Packet;
|
|
|
1833
1833
|
exports.RestIndexerProvider = RestIndexerProvider;
|
|
1834
1834
|
exports.asset_exports = asset_exports;
|
|
1835
1835
|
exports.toSubscriptionResponse = toSubscriptionResponse;
|
|
1836
|
-
//# sourceMappingURL=chunk-
|
|
1837
|
-
//# sourceMappingURL=chunk-
|
|
1836
|
+
//# sourceMappingURL=chunk-YFHGGSII.cjs.map
|
|
1837
|
+
//# sourceMappingURL=chunk-YFHGGSII.cjs.map
|