@arkade-os/sdk 0.4.61 → 0.4.63
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 +20 -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-BWDxp3Dr.d.cts → asyncStorageTaskQueue-CIUEhv2t.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-Cq9FpKv6.d.ts → asyncStorageTaskQueue-LT-xvvDN.d.ts} +2 -2
- package/dist/{chunk-FNCQJLR2.cjs → chunk-AB67CMHS.cjs} +3 -3
- package/dist/{chunk-FNCQJLR2.cjs.map → chunk-AB67CMHS.cjs.map} +1 -1
- package/dist/{chunk-3NUDA3MB.cjs → chunk-COOBS7ET.cjs} +646 -476
- package/dist/chunk-COOBS7ET.cjs.map +1 -0
- package/dist/{chunk-YVQNHELA.js → chunk-CZFAMS57.js} +3 -3
- package/dist/{chunk-YVQNHELA.js.map → chunk-CZFAMS57.js.map} +1 -1
- package/dist/{chunk-GDI2A65Z.js → chunk-FKKERGKA.js} +4 -4
- package/dist/{chunk-GDI2A65Z.js.map → chunk-FKKERGKA.js.map} +1 -1
- package/dist/{chunk-XMRB74HA.cjs → chunk-K56BNZV3.cjs} +10 -10
- package/dist/{chunk-XMRB74HA.cjs.map → chunk-K56BNZV3.cjs.map} +1 -1
- package/dist/{chunk-XLHN5L2O.js → chunk-KWW74O2F.js} +4 -4
- package/dist/{chunk-XLHN5L2O.js.map → chunk-KWW74O2F.js.map} +1 -1
- package/dist/{chunk-2JHN5RCY.cjs → chunk-LG5GY73A.cjs} +17 -17
- package/dist/{chunk-2JHN5RCY.cjs.map → chunk-LG5GY73A.cjs.map} +1 -1
- package/dist/{chunk-PVY6DMN5.js → chunk-MA32NXUV.js} +3 -3
- package/dist/{chunk-PVY6DMN5.js.map → chunk-MA32NXUV.js.map} +1 -1
- package/dist/{chunk-6O5OLYTZ.js → chunk-OAESYVZQ.js} +3 -3
- package/dist/{chunk-6O5OLYTZ.js.map → chunk-OAESYVZQ.js.map} +1 -1
- package/dist/{chunk-SF5NKAUA.cjs → chunk-OL7V43WS.cjs} +48 -48
- package/dist/{chunk-SF5NKAUA.cjs.map → chunk-OL7V43WS.cjs.map} +1 -1
- package/dist/{chunk-XFYFREPH.cjs → chunk-P6XYE27K.cjs} +17 -17
- package/dist/{chunk-XFYFREPH.cjs.map → chunk-P6XYE27K.cjs.map} +1 -1
- package/dist/{chunk-AUEXB42T.js → chunk-X7MMBB7S.js} +252 -84
- package/dist/chunk-X7MMBB7S.js.map +1 -0
- 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-C4Rl6h9l.d.cts → delegate-BBQW61ym.d.cts} +1 -1
- package/dist/{delegate-BySzD37I.d.ts → delegate-Dv_9OVHv.d.ts} +1 -1
- package/dist/{index-C29VNcxC.d.ts → index-Bxe9kBFs.d.ts} +2 -2
- package/dist/{index-BcRCHnzN.d.cts → index-CFOMyVMt.d.cts} +88 -12
- package/dist/{index-BcRCHnzN.d.ts → index-CFOMyVMt.d.ts} +88 -12
- package/dist/{index-Butfkm-K.d.cts → index-aZycGEsQ.d.cts} +2 -2
- package/dist/index.cjs +274 -266
- package/dist/index.d.cts +116 -20
- package/dist/index.d.ts +116 -20
- 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 +27 -18
- package/dist/repositories/sqlite/index.cjs.map +1 -1
- package/dist/repositories/sqlite/index.d.cts +20 -3
- package/dist/repositories/sqlite/index.d.ts +20 -3
- package/dist/repositories/sqlite/index.js +13 -6
- package/dist/repositories/sqlite/index.js.map +1 -1
- package/dist/{taskRunner-BTq3rMpI.d.cts → taskRunner-BJ6_AnLq.d.cts} +2 -2
- package/dist/{taskRunner-DxMJYJ7Y.d.ts → taskRunner-BQb0W1XG.d.ts} +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 +16 -16
- package/dist/wallet/expo/index.cjs.map +1 -1
- package/dist/wallet/expo/index.d.cts +5 -5
- package/dist/wallet/expo/index.d.ts +5 -5
- package/dist/wallet/expo/index.js +7 -7
- package/dist/wallet/expo/index.js.map +1 -1
- package/dist/{wallet-BVIfg2ic.d.ts → wallet-C2NvHjWB.d.cts} +14 -5
- package/dist/{wallet-DrSsUden.d.cts → wallet-DJUnN939.d.ts} +14 -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-3NUDA3MB.cjs.map +0 -1
- package/dist/chunk-AUEXB42T.js.map +0 -1
package/README.md
CHANGED
|
@@ -341,7 +341,27 @@ console.log('Boarding Total:', balance.boarding.total)
|
|
|
341
341
|
console.log('Offchain Available:', balance.available)
|
|
342
342
|
console.log('Offchain Settled:', balance.settled)
|
|
343
343
|
console.log('Offchain Preconfirmed:', balance.preconfirmed)
|
|
344
|
+
console.log('Gated by a contract:', balance.gated) // swap escrow, chiefly
|
|
345
|
+
console.log('Locked by an in-flight intent:', balance.intentLocked)
|
|
344
346
|
console.log('Recoverable:', balance.recoverable)
|
|
347
|
+
console.log('Awaiting recovery:', balance.pendingRecovery)
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
`settled` and `preconfirmed` are the owned offchain buckets this relationship is
|
|
351
|
+
about — `recoverable` and `pendingRecovery` are the wallet's funds too, just held
|
|
352
|
+
under a different predicate. `available` is what generic spending will actually
|
|
353
|
+
pick, and the difference between the two is accounted for exactly:
|
|
354
|
+
|
|
355
|
+
```text
|
|
356
|
+
settled + preconfirmed === available + gated + intentLocked
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
To show "your money, minus what is tied up", subtract from `settled + preconfirmed`
|
|
360
|
+
— **not from `total`**, which also contains `boarding.total`, `recoverable` and
|
|
361
|
+
`pendingRecovery`. Those are still your funds, so subtracting a bucket from `total`
|
|
362
|
+
silently drops them from the figure.
|
|
363
|
+
|
|
364
|
+
```typescript
|
|
345
365
|
|
|
346
366
|
// Get virtual outputs (available for offchain spending)
|
|
347
367
|
const vtxos = await wallet.getVtxos()
|
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 chunkP6XYE27K_cjs = require('../chunk-P6XYE27K.cjs');
|
|
4
|
+
require('../chunk-LG5GY73A.cjs');
|
|
5
|
+
require('../chunk-AB67CMHS.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 chunkP6XYE27K_cjs.ExpoArkProvider; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "ExpoIndexerProvider", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkP6XYE27K_cjs.ExpoIndexerProvider; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=expo.cjs.map
|
|
19
19
|
//# sourceMappingURL=expo.cjs.map
|
package/dist/adapters/expo.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { l as RestArkProvider, i as SettlementEvent, T as TxNotification, m as RestIndexerProvider, n as SubscriptionResponse } from '../index-CFOMyVMt.cjs';
|
|
2
|
+
export { o as ArkProvider, p as IndexerProvider } from '../index-CFOMyVMt.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer';
|
package/dist/adapters/expo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { l as RestArkProvider, i as SettlementEvent, T as TxNotification, m as RestIndexerProvider, n as SubscriptionResponse } from '../index-CFOMyVMt.js';
|
|
2
|
+
export { o as ArkProvider, p as IndexerProvider } from '../index-CFOMyVMt.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer/transaction.js';
|
|
5
5
|
import '@scure/btc-signer';
|
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-FKKERGKA.js';
|
|
2
|
+
import '../chunk-CZFAMS57.js';
|
|
3
|
+
import '../chunk-MA32NXUV.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 chunkCOOBS7ET_cjs = require('../chunk-COOBS7ET.cjs');
|
|
4
|
+
require('../chunk-LG5GY73A.cjs');
|
|
5
|
+
require('../chunk-OL7V43WS.cjs');
|
|
6
|
+
require('../chunk-AB67CMHS.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 = chunkCOOBS7ET_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-X7MMBB7S.js';
|
|
2
|
+
import '../chunk-CZFAMS57.js';
|
|
3
|
+
import '../chunk-OAESYVZQ.js';
|
|
4
|
+
import '../chunk-MA32NXUV.js';
|
|
5
5
|
import '../chunk-NSBPE2FW.js';
|
|
6
6
|
|
|
7
7
|
// src/storage/indexedDB.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as TaskQueue, b as TaskItem, d as TaskResult } from './taskRunner-BJ6_AnLq.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-BQb0W1XG.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 };
|
|
@@ -1032,7 +1032,7 @@ function resolveEventSource(override) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
1034
1034
|
// package.json
|
|
1035
|
-
var version = "0.4.
|
|
1035
|
+
var version = "0.4.63";
|
|
1036
1036
|
|
|
1037
1037
|
// src/utils/fetch.ts
|
|
1038
1038
|
var buildVersion = "0.9.9";
|
|
@@ -2485,5 +2485,5 @@ exports.toBatchExpiry = toBatchExpiry;
|
|
|
2485
2485
|
exports.toOffchainInputFeeParams = toOffchainInputFeeParams;
|
|
2486
2486
|
exports.toProviderUnavailable = toProviderUnavailable;
|
|
2487
2487
|
exports.toVirtualStatus = toVirtualStatus;
|
|
2488
|
-
//# sourceMappingURL=chunk-
|
|
2489
|
-
//# sourceMappingURL=chunk-
|
|
2488
|
+
//# sourceMappingURL=chunk-AB67CMHS.cjs.map
|
|
2489
|
+
//# sourceMappingURL=chunk-AB67CMHS.cjs.map
|