@arkade-os/sdk 0.5.6 → 0.5.7
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 +6 -6
- 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-Bh2n0msM.d.cts → asyncStorageTaskQueue-B9byr6ij.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-CpkstKZ5.d.ts → asyncStorageTaskQueue-XP4CCdRY.d.ts} +2 -2
- package/dist/{chunk-HKEPJBTY.cjs → chunk-3NALVGMJ.cjs} +16 -16
- package/dist/{chunk-HKEPJBTY.cjs.map → chunk-3NALVGMJ.cjs.map} +1 -1
- package/dist/{chunk-VWW2ZBPI.js → chunk-4AJRIM44.js} +4 -4
- package/dist/{chunk-VWW2ZBPI.js.map → chunk-4AJRIM44.js.map} +1 -1
- package/dist/{chunk-NDQ4LB4X.cjs → chunk-MQUATTIM.cjs} +8 -8
- package/dist/{chunk-NDQ4LB4X.cjs.map → chunk-MQUATTIM.cjs.map} +1 -1
- package/dist/{chunk-DJYX73W2.js → chunk-MWEDDWFU.js} +4 -4
- package/dist/{chunk-DJYX73W2.js.map → chunk-MWEDDWFU.js.map} +1 -1
- package/dist/{chunk-C7NY6WSA.js → chunk-MWMO2ZQP.js} +3 -3
- package/dist/{chunk-C7NY6WSA.js.map → chunk-MWMO2ZQP.js.map} +1 -1
- package/dist/{chunk-4X67IB2V.cjs → chunk-MXCB6EVM.cjs} +15 -15
- package/dist/{chunk-4X67IB2V.cjs.map → chunk-MXCB6EVM.cjs.map} +1 -1
- package/dist/{chunk-LZAINCGU.cjs → chunk-OMPDPBT5.cjs} +3 -3
- package/dist/chunk-OMPDPBT5.cjs.map +1 -0
- package/dist/{chunk-YKT4NAQG.js → chunk-RLD7DRSZ.js} +341 -25
- package/dist/chunk-RLD7DRSZ.js.map +1 -0
- package/dist/{chunk-Y3CDDPWI.cjs → chunk-URGVQ5TQ.cjs} +756 -434
- package/dist/chunk-URGVQ5TQ.cjs.map +1 -0
- package/dist/{chunk-47Z4LEIW.js → chunk-V2DDN4MV.js} +3 -3
- package/dist/{chunk-47Z4LEIW.js.map → chunk-V2DDN4MV.js.map} +1 -1
- package/dist/{chunk-YS76JSGP.cjs → chunk-V5WRO3P6.cjs} +10 -10
- package/dist/{chunk-YS76JSGP.cjs.map → chunk-V5WRO3P6.cjs.map} +1 -1
- package/dist/{chunk-QTMK34TP.js → chunk-VMVFRTF4.js} +3 -3
- package/dist/chunk-VMVFRTF4.js.map +1 -0
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.d.cts +2 -2
- package/dist/contracts/handlers/index.d.ts +2 -2
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{index-C66rjxz2.d.ts → index-18cDMayF.d.ts} +1 -1
- package/dist/{index-2wKMrT0a.d.ts → index-B_kcptF8.d.ts} +1 -1
- package/dist/{index-46g577Ka.d.cts → index-Ccfhdfvj.d.cts} +1 -1
- package/dist/{index-Dqk07NwJ.d.cts → index-DDJFHfba.d.cts} +1 -1
- package/dist/index.cjs +335 -311
- package/dist/index.d.cts +72 -121
- package/dist/index.d.ts +72 -121
- package/dist/index.js +4 -4
- package/dist/{keyringDescriptorProvider-DiBM4GmB.d.ts → keyringDescriptorProvider-DL-jAiRO.d.ts} +150 -2
- package/dist/{keyringDescriptorProvider-DnaLUC7v.d.cts → keyringDescriptorProvider-Dtv0JWrT.d.cts} +150 -2
- package/dist/repositories/realm/index.cjs +37 -37
- 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 +35 -35
- 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-BM6IAKlS.d.ts → taskRunner-DUafWu0o.d.ts} +2 -2
- package/dist/{taskRunner-BmDIZiSl.d.cts → taskRunner-JYHaLPne.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 +3 -3
- package/dist/wallet/expo/index.d.ts +3 -3
- 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 +2 -2
- package/dist/chunk-LZAINCGU.cjs.map +0 -1
- package/dist/chunk-QTMK34TP.js.map +0 -1
- package/dist/chunk-Y3CDDPWI.cjs.map +0 -1
- package/dist/chunk-YKT4NAQG.js.map +0 -1
package/dist/adapters/expo.cjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkMXCB6EVM_cjs = require('../chunk-MXCB6EVM.cjs');
|
|
4
|
+
require('../chunk-3NALVGMJ.cjs');
|
|
5
|
+
require('../chunk-OMPDPBT5.cjs');
|
|
6
6
|
require('../chunk-FLPWNMX3.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ExpoArkProvider", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkMXCB6EVM_cjs.ExpoArkProvider; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "ExpoIndexerProvider", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkMXCB6EVM_cjs.ExpoIndexerProvider; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "ExpoOperatorProvider", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkMXCB6EVM_cjs.ExpoOperatorProvider; }
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=expo.cjs.map
|
|
23
23
|
//# sourceMappingURL=expo.cjs.map
|
package/dist/adapters/expo.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as RestOperatorProvider, n as SettlementEvent, T as TxNotificationEvent, s as RestIndexerProvider, t as SubscriptionEvent, u as SubscriptionHeartbeat } from '../index-
|
|
2
|
-
export { v as ArkProvider, w as IndexerProvider, x as OperatorProvider } from '../index-
|
|
1
|
+
import { r as RestOperatorProvider, n as SettlementEvent, T as TxNotificationEvent, s as RestIndexerProvider, t as SubscriptionEvent, u as SubscriptionHeartbeat } from '../index-DDJFHfba.cjs';
|
|
2
|
+
export { v as ArkProvider, w as IndexerProvider, x as OperatorProvider } from '../index-DDJFHfba.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
package/dist/adapters/expo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as RestOperatorProvider, n as SettlementEvent, T as TxNotificationEvent, s as RestIndexerProvider, t as SubscriptionEvent, u as SubscriptionHeartbeat } from '../index-
|
|
2
|
-
export { v as ArkProvider, w as IndexerProvider, x as OperatorProvider } from '../index-
|
|
1
|
+
import { r as RestOperatorProvider, n as SettlementEvent, T as TxNotificationEvent, s as RestIndexerProvider, t as SubscriptionEvent, u as SubscriptionHeartbeat } from '../index-18cDMayF.js';
|
|
2
|
+
export { v as ArkProvider, w as IndexerProvider, x as OperatorProvider } from '../index-18cDMayF.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
package/dist/adapters/expo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ExpoArkProvider, ExpoIndexerProvider, ExpoOperatorProvider } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { ExpoArkProvider, ExpoIndexerProvider, ExpoOperatorProvider } from '../chunk-MWEDDWFU.js';
|
|
2
|
+
import '../chunk-MWMO2ZQP.js';
|
|
3
|
+
import '../chunk-VMVFRTF4.js';
|
|
4
4
|
import '../chunk-FDJ734CH.js';
|
|
5
5
|
//# sourceMappingURL=expo.js.map
|
|
6
6
|
//# sourceMappingURL=expo.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as TaskQueue, b as TaskItem, d as TaskResult } from './taskRunner-JYHaLPne.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Minimal async key-value storage interface.
|
|
@@ -46,4 +46,4 @@ declare class AsyncStorageTaskQueue implements TaskQueue {
|
|
|
46
46
|
private writeList;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { type AsyncStorageLike as A, AsyncStorageTaskQueue as a };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as TaskQueue, b as TaskItem, d as TaskResult } from './taskRunner-DUafWu0o.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Minimal async key-value storage interface.
|
|
@@ -46,4 +46,4 @@ declare class AsyncStorageTaskQueue implements TaskQueue {
|
|
|
46
46
|
private writeList;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { type AsyncStorageLike as A, AsyncStorageTaskQueue as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOMPDPBT5_cjs = require('./chunk-OMPDPBT5.cjs');
|
|
4
4
|
var chunkFLPWNMX3_cjs = require('./chunk-FLPWNMX3.cjs');
|
|
5
5
|
var base = require('@scure/base');
|
|
6
6
|
var secp256k1_js = require('@noble/curves/secp256k1.js');
|
|
@@ -1320,10 +1320,10 @@ async function indexerFetch(input, init) {
|
|
|
1320
1320
|
const lastAttempt = attempt >= maxAttempts;
|
|
1321
1321
|
let res;
|
|
1322
1322
|
try {
|
|
1323
|
-
res = await
|
|
1323
|
+
res = await chunkOMPDPBT5_cjs.rateGate.runHttp(input, () => chunkOMPDPBT5_cjs.baseFetch(input, init));
|
|
1324
1324
|
} catch (err) {
|
|
1325
|
-
const mapped =
|
|
1326
|
-
if (lastAttempt || !(mapped instanceof
|
|
1325
|
+
const mapped = chunkOMPDPBT5_cjs.toProviderUnavailable(err, "indexer");
|
|
1326
|
+
if (lastAttempt || !(mapped instanceof chunkOMPDPBT5_cjs.ProviderUnavailableError)) throw mapped;
|
|
1327
1327
|
await sleep(retryDelayMs(attempt));
|
|
1328
1328
|
continue;
|
|
1329
1329
|
}
|
|
@@ -1335,7 +1335,7 @@ async function indexerFetch(input, init) {
|
|
|
1335
1335
|
body = void 0;
|
|
1336
1336
|
}
|
|
1337
1337
|
try {
|
|
1338
|
-
|
|
1338
|
+
chunkOMPDPBT5_cjs.throwIfHttpUnavailable(res, "indexer", body);
|
|
1339
1339
|
} catch (err) {
|
|
1340
1340
|
if (lastAttempt) throw err;
|
|
1341
1341
|
await sleep(retryDelayMs(attempt));
|
|
@@ -1499,8 +1499,8 @@ var RestIndexerProvider = class {
|
|
|
1499
1499
|
try {
|
|
1500
1500
|
while (!abortSignal?.aborted) {
|
|
1501
1501
|
try {
|
|
1502
|
-
const currentIterator =
|
|
1503
|
-
|
|
1502
|
+
const currentIterator = chunkOMPDPBT5_cjs.eventSourceIterator(
|
|
1503
|
+
chunkOMPDPBT5_cjs.resolveEventSource(override)(url)
|
|
1504
1504
|
);
|
|
1505
1505
|
iterator = currentIterator;
|
|
1506
1506
|
for await (const event of currentIterator) {
|
|
@@ -1517,14 +1517,14 @@ var RestIndexerProvider = class {
|
|
|
1517
1517
|
if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
1518
1518
|
break;
|
|
1519
1519
|
}
|
|
1520
|
-
if (
|
|
1520
|
+
if (chunkOMPDPBT5_cjs.isFetchTimeoutError(error)) {
|
|
1521
1521
|
console.debug("Timeout error ignored");
|
|
1522
1522
|
continue;
|
|
1523
1523
|
}
|
|
1524
|
-
if (
|
|
1524
|
+
if (chunkOMPDPBT5_cjs.isEventSourceError(error)) {
|
|
1525
1525
|
throw error;
|
|
1526
1526
|
}
|
|
1527
|
-
if (
|
|
1527
|
+
if (chunkOMPDPBT5_cjs.isEventSourceUnavailableError(error)) throw error;
|
|
1528
1528
|
console.error("Subscription error:", error);
|
|
1529
1529
|
throw error;
|
|
1530
1530
|
} finally {
|
|
@@ -1653,7 +1653,7 @@ var RestIndexerProvider = class {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
const data = await this.fetchVtxosJson(url);
|
|
1655
1655
|
return {
|
|
1656
|
-
vtxos: data.vtxos.map(
|
|
1656
|
+
vtxos: data.vtxos.map(chunkOMPDPBT5_cjs.convertVtxo),
|
|
1657
1657
|
page: data.page
|
|
1658
1658
|
};
|
|
1659
1659
|
}
|
|
@@ -1800,9 +1800,9 @@ function toSubscriptionResponse(event) {
|
|
|
1800
1800
|
return {
|
|
1801
1801
|
txid: event.txid,
|
|
1802
1802
|
scripts: event.scripts || [],
|
|
1803
|
-
newVtxos: (event.newVtxos || []).map(
|
|
1804
|
-
spentVtxos: (event.spentVtxos || []).map(
|
|
1805
|
-
sweptVtxos: (event.sweptVtxos || []).map(
|
|
1803
|
+
newVtxos: (event.newVtxos || []).map(chunkOMPDPBT5_cjs.convertVtxo),
|
|
1804
|
+
spentVtxos: (event.spentVtxos || []).map(chunkOMPDPBT5_cjs.convertVtxo),
|
|
1805
|
+
sweptVtxos: (event.sweptVtxos || []).map(chunkOMPDPBT5_cjs.convertVtxo),
|
|
1806
1806
|
tx: event.tx,
|
|
1807
1807
|
checkpointTxs: event.checkpointTxs
|
|
1808
1808
|
};
|
|
@@ -1928,5 +1928,5 @@ exports.Packet = Packet;
|
|
|
1928
1928
|
exports.RestIndexerProvider = RestIndexerProvider;
|
|
1929
1929
|
exports.asset_exports = asset_exports;
|
|
1930
1930
|
exports.toSubscriptionMessage = toSubscriptionMessage;
|
|
1931
|
-
//# sourceMappingURL=chunk-
|
|
1932
|
-
//# sourceMappingURL=chunk-
|
|
1931
|
+
//# sourceMappingURL=chunk-3NALVGMJ.cjs.map
|
|
1932
|
+
//# sourceMappingURL=chunk-3NALVGMJ.cjs.map
|