@arkade-os/sdk 0.4.60 → 0.4.61
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 +4 -4
- package/dist/adapters/expo.d.ts +4 -4
- package/dist/adapters/expo.js +3 -3
- package/dist/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{asyncStorageTaskQueue-CqijAAPG.d.cts → asyncStorageTaskQueue-BWDxp3Dr.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-Vsp6uk8e.d.ts → asyncStorageTaskQueue-Cq9FpKv6.d.ts} +2 -2
- package/dist/{chunk-PRFL62ID.cjs → chunk-2JHN5RCY.cjs} +17 -17
- package/dist/{chunk-PRFL62ID.cjs.map → chunk-2JHN5RCY.cjs.map} +1 -1
- package/dist/{chunk-KNS5MTTI.cjs → chunk-3NUDA3MB.cjs} +1045 -461
- package/dist/chunk-3NUDA3MB.cjs.map +1 -0
- package/dist/{chunk-2DINXHGQ.js → chunk-6O5OLYTZ.js} +66 -35
- package/dist/chunk-6O5OLYTZ.js.map +1 -0
- package/dist/{chunk-Y54MUBT7.js → chunk-AUEXB42T.js} +654 -84
- package/dist/chunk-AUEXB42T.js.map +1 -0
- package/dist/{chunk-4A4GRSTB.cjs → chunk-FNCQJLR2.cjs} +3 -3
- package/dist/{chunk-4A4GRSTB.cjs.map → chunk-FNCQJLR2.cjs.map} +1 -1
- package/dist/{chunk-3Q7BBUWO.js → chunk-GDI2A65Z.js} +4 -4
- package/dist/{chunk-3Q7BBUWO.js.map → chunk-GDI2A65Z.js.map} +1 -1
- package/dist/{chunk-JBULXTCC.js → chunk-PVY6DMN5.js} +3 -3
- package/dist/{chunk-JBULXTCC.js.map → chunk-PVY6DMN5.js.map} +1 -1
- package/dist/{chunk-MZNLCMUP.cjs → chunk-SF5NKAUA.cjs} +113 -79
- package/dist/chunk-SF5NKAUA.cjs.map +1 -0
- package/dist/{chunk-H7JCHFM6.cjs → chunk-XFYFREPH.cjs} +17 -17
- package/dist/{chunk-H7JCHFM6.cjs.map → chunk-XFYFREPH.cjs.map} +1 -1
- package/dist/{chunk-B66RYHTB.js → chunk-XLHN5L2O.js} +4 -4
- package/dist/{chunk-B66RYHTB.js.map → chunk-XLHN5L2O.js.map} +1 -1
- package/dist/{chunk-2XLNQHG4.cjs → chunk-XMRB74HA.cjs} +10 -10
- package/dist/{chunk-2XLNQHG4.cjs.map → chunk-XMRB74HA.cjs.map} +1 -1
- package/dist/{chunk-FSKANUV4.js → chunk-YVQNHELA.js} +3 -3
- package/dist/{chunk-FSKANUV4.js.map → chunk-YVQNHELA.js.map} +1 -1
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.d.cts +5 -5
- package/dist/contracts/handlers/index.d.ts +5 -5
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-DNEuM_nK.d.cts → delegate-BySzD37I.d.ts} +1 -1
- package/dist/{delegate-DidNTsKm.d.ts → delegate-C4Rl6h9l.d.cts} +1 -1
- package/dist/{ark-D2_yNhfz.d.cts → index-BcRCHnzN.d.cts} +4846 -4776
- package/dist/{ark-D2_yNhfz.d.ts → index-BcRCHnzN.d.ts} +4846 -4776
- package/dist/{index-DzQbNQUG.d.ts → index-Butfkm-K.d.cts} +102 -102
- package/dist/{index-BP8-zniX.d.cts → index-C29VNcxC.d.ts} +102 -102
- package/dist/index.cjs +320 -248
- package/dist/index.d.cts +256 -54
- package/dist/index.d.ts +256 -54
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +19 -19
- package/dist/repositories/realm/index.d.cts +4 -4
- package/dist/repositories/realm/index.d.ts +4 -4
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +18 -18
- package/dist/repositories/sqlite/index.d.cts +4 -4
- package/dist/repositories/sqlite/index.d.ts +4 -4
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-9gnlYEpb.d.ts → taskRunner-BTq3rMpI.d.cts} +2 -2
- package/dist/{taskRunner-BEQNFEa4.d.cts → taskRunner-DxMJYJ7Y.d.ts} +2 -2
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +5 -5
- package/dist/wallet/expo/background.d.ts +5 -5
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +34 -14
- package/dist/wallet/expo/index.cjs.map +1 -1
- package/dist/wallet/expo/index.d.cts +12 -5
- package/dist/wallet/expo/index.d.ts +12 -5
- package/dist/wallet/expo/index.js +25 -5
- package/dist/wallet/expo/index.js.map +1 -1
- package/dist/{wallet-ipUA1XCp.d.cts → wallet-BVIfg2ic.d.ts} +79 -14
- package/dist/{wallet-C_MYHyOj.d.ts → wallet-DrSsUden.d.cts} +79 -14
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +6 -6
- package/dist/worker/expo/index.d.ts +6 -6
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-2DINXHGQ.js.map +0 -1
- package/dist/chunk-KNS5MTTI.cjs.map +0 -1
- package/dist/chunk-MZNLCMUP.cjs.map +0 -1
- package/dist/chunk-Y54MUBT7.js.map +0 -1
package/dist/adapters/expo.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkXFYFREPH_cjs = require('../chunk-XFYFREPH.cjs');
|
|
4
|
+
require('../chunk-2JHN5RCY.cjs');
|
|
5
|
+
require('../chunk-FNCQJLR2.cjs');
|
|
6
6
|
require('../chunk-5BLDMQED.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 chunkXFYFREPH_cjs.ExpoArkProvider; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "ExpoIndexerProvider", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkXFYFREPH_cjs.ExpoIndexerProvider; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=expo.cjs.map
|
|
19
19
|
//# sourceMappingURL=expo.cjs.map
|
package/dist/adapters/expo.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../
|
|
2
|
-
export { n as ArkProvider, o as IndexerProvider } from '../
|
|
3
|
-
import '@scure/btc-signer/transaction.js';
|
|
1
|
+
import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../index-BcRCHnzN.cjs';
|
|
2
|
+
export { n as ArkProvider, o as IndexerProvider } from '../index-BcRCHnzN.cjs';
|
|
4
3
|
import '@scure/btc-signer/utils.js';
|
|
5
|
-
import '@scure/btc-signer/
|
|
4
|
+
import '@scure/btc-signer/transaction.js';
|
|
6
5
|
import '@scure/btc-signer';
|
|
6
|
+
import '@scure/btc-signer/psbt.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Expo-compatible Arkade provider implementation using expo/fetch for SSE support.
|
package/dist/adapters/expo.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../
|
|
2
|
-
export { n as ArkProvider, o as IndexerProvider } from '../
|
|
3
|
-
import '@scure/btc-signer/transaction.js';
|
|
1
|
+
import { k as RestArkProvider, i as SettlementEvent, T as TxNotification, l as RestIndexerProvider, m as SubscriptionResponse } from '../index-BcRCHnzN.js';
|
|
2
|
+
export { n as ArkProvider, o as IndexerProvider } from '../index-BcRCHnzN.js';
|
|
4
3
|
import '@scure/btc-signer/utils.js';
|
|
5
|
-
import '@scure/btc-signer/
|
|
4
|
+
import '@scure/btc-signer/transaction.js';
|
|
6
5
|
import '@scure/btc-signer';
|
|
6
|
+
import '@scure/btc-signer/psbt.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Expo-compatible Arkade provider implementation using expo/fetch for SSE support.
|
package/dist/adapters/expo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { ExpoArkProvider, ExpoIndexerProvider } from '../chunk-GDI2A65Z.js';
|
|
2
|
+
import '../chunk-YVQNHELA.js';
|
|
3
|
+
import '../chunk-PVY6DMN5.js';
|
|
4
4
|
import '../chunk-NSBPE2FW.js';
|
|
5
5
|
//# sourceMappingURL=expo.js.map
|
|
6
6
|
//# sourceMappingURL=expo.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunk3NUDA3MB_cjs = require('../chunk-3NUDA3MB.cjs');
|
|
4
|
+
require('../chunk-2JHN5RCY.cjs');
|
|
5
|
+
require('../chunk-SF5NKAUA.cjs');
|
|
6
|
+
require('../chunk-FNCQJLR2.cjs');
|
|
7
7
|
require('../chunk-5BLDMQED.cjs');
|
|
8
8
|
|
|
9
9
|
// src/storage/indexedDB.ts
|
|
@@ -11,7 +11,7 @@ var IndexedDBStorageAdapter = class {
|
|
|
11
11
|
dbName;
|
|
12
12
|
version;
|
|
13
13
|
db = null;
|
|
14
|
-
constructor(dbName, version =
|
|
14
|
+
constructor(dbName, version = chunk3NUDA3MB_cjs.DB_VERSION) {
|
|
15
15
|
this.dbName = dbName;
|
|
16
16
|
this.version = version;
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DB_VERSION } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
import { DB_VERSION } from '../chunk-AUEXB42T.js';
|
|
2
|
+
import '../chunk-YVQNHELA.js';
|
|
3
|
+
import '../chunk-6O5OLYTZ.js';
|
|
4
|
+
import '../chunk-PVY6DMN5.js';
|
|
5
5
|
import '../chunk-NSBPE2FW.js';
|
|
6
6
|
|
|
7
7
|
// src/storage/indexedDB.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-BTq3rMpI.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 { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TaskQueue, c as TaskItem, d as TaskResult } from './taskRunner-DxMJYJ7Y.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 { AsyncStorageTaskQueue as A, type AsyncStorageLike as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFNCQJLR2_cjs = require('./chunk-FNCQJLR2.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 chunkFNCQJLR2_cjs.rateGate.runHttp(input, () => chunkFNCQJLR2_cjs.baseFetch(input, init));
|
|
1286
1286
|
} catch (err) {
|
|
1287
|
-
const mapped =
|
|
1288
|
-
if (lastAttempt || !(mapped instanceof
|
|
1287
|
+
const mapped = chunkFNCQJLR2_cjs.toProviderUnavailable(err, "indexer");
|
|
1288
|
+
if (lastAttempt || !(mapped instanceof chunkFNCQJLR2_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
|
+
chunkFNCQJLR2_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 = chunkFNCQJLR2_cjs.DEFAULT_ARKADE_SERVER_URL, options = {}) {
|
|
1329
1329
|
this.serverUrl = serverUrl;
|
|
1330
1330
|
this.eventSource = options.eventSource;
|
|
1331
1331
|
}
|
|
@@ -1461,8 +1461,8 @@ var RestIndexerProvider = class {
|
|
|
1461
1461
|
try {
|
|
1462
1462
|
while (!abortSignal?.aborted) {
|
|
1463
1463
|
try {
|
|
1464
|
-
const currentIterator =
|
|
1465
|
-
|
|
1464
|
+
const currentIterator = chunkFNCQJLR2_cjs.eventSourceIterator(
|
|
1465
|
+
chunkFNCQJLR2_cjs.resolveEventSource(override)(url)
|
|
1466
1466
|
);
|
|
1467
1467
|
iterator = currentIterator;
|
|
1468
1468
|
for await (const event of currentIterator) {
|
|
@@ -1473,9 +1473,9 @@ var RestIndexerProvider = class {
|
|
|
1473
1473
|
yield {
|
|
1474
1474
|
txid: data.event.txid,
|
|
1475
1475
|
scripts: data.event.scripts || [],
|
|
1476
|
-
newVtxos: (data.event.newVtxos || []).map(
|
|
1477
|
-
spentVtxos: (data.event.spentVtxos || []).map(
|
|
1478
|
-
sweptVtxos: (data.event.sweptVtxos || []).map(
|
|
1476
|
+
newVtxos: (data.event.newVtxos || []).map(chunkFNCQJLR2_cjs.convertVtxo),
|
|
1477
|
+
spentVtxos: (data.event.spentVtxos || []).map(chunkFNCQJLR2_cjs.convertVtxo),
|
|
1478
|
+
sweptVtxos: (data.event.sweptVtxos || []).map(chunkFNCQJLR2_cjs.convertVtxo),
|
|
1479
1479
|
tx: data.event.tx,
|
|
1480
1480
|
checkpointTxs: data.event.checkpointTxs
|
|
1481
1481
|
};
|
|
@@ -1489,14 +1489,14 @@ var RestIndexerProvider = class {
|
|
|
1489
1489
|
if (abortSignal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
1490
1490
|
break;
|
|
1491
1491
|
}
|
|
1492
|
-
if (
|
|
1492
|
+
if (chunkFNCQJLR2_cjs.isFetchTimeoutError(error)) {
|
|
1493
1493
|
console.debug("Timeout error ignored");
|
|
1494
1494
|
continue;
|
|
1495
1495
|
}
|
|
1496
|
-
if (
|
|
1496
|
+
if (chunkFNCQJLR2_cjs.isEventSourceError(error)) {
|
|
1497
1497
|
throw error;
|
|
1498
1498
|
}
|
|
1499
|
-
if (
|
|
1499
|
+
if (chunkFNCQJLR2_cjs.isEventSourceUnavailableError(error)) throw error;
|
|
1500
1500
|
console.error("Subscription error:", error);
|
|
1501
1501
|
throw error;
|
|
1502
1502
|
} finally {
|
|
@@ -1622,7 +1622,7 @@ var RestIndexerProvider = class {
|
|
|
1622
1622
|
throw new Error("Invalid vtxos data received");
|
|
1623
1623
|
}
|
|
1624
1624
|
return {
|
|
1625
|
-
vtxos: data.vtxos.map(
|
|
1625
|
+
vtxos: data.vtxos.map(chunkFNCQJLR2_cjs.convertVtxo),
|
|
1626
1626
|
page: data.page
|
|
1627
1627
|
};
|
|
1628
1628
|
}
|
|
@@ -1804,5 +1804,5 @@ exports.Metadata = Metadata;
|
|
|
1804
1804
|
exports.Packet = Packet;
|
|
1805
1805
|
exports.RestIndexerProvider = RestIndexerProvider;
|
|
1806
1806
|
exports.asset_exports = asset_exports;
|
|
1807
|
-
//# sourceMappingURL=chunk-
|
|
1808
|
-
//# sourceMappingURL=chunk-
|
|
1807
|
+
//# sourceMappingURL=chunk-2JHN5RCY.cjs.map
|
|
1808
|
+
//# sourceMappingURL=chunk-2JHN5RCY.cjs.map
|