@arkade-os/sdk 0.5.7 → 0.5.8
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 +2 -2
- 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-B9byr6ij.d.cts → asyncStorageTaskQueue-B5NPtkXo.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-XP4CCdRY.d.ts → asyncStorageTaskQueue-YPwiJyVA.d.ts} +2 -2
- package/dist/{chunk-V2DDN4MV.js → chunk-3F5AJ235.js} +4 -4
- package/dist/{chunk-V2DDN4MV.js.map → chunk-3F5AJ235.js.map} +1 -1
- package/dist/{chunk-3NALVGMJ.cjs → chunk-4IDCSOP2.cjs} +22 -16
- package/dist/chunk-4IDCSOP2.cjs.map +1 -0
- package/dist/{chunk-JFJNB7ZH.cjs → chunk-5PWL7WOT.cjs} +7 -5
- package/dist/chunk-5PWL7WOT.cjs.map +1 -0
- package/dist/{chunk-MWMO2ZQP.js → chunk-E7LKKEVR.js} +10 -4
- package/dist/chunk-E7LKKEVR.js.map +1 -0
- package/dist/{chunk-URGVQ5TQ.cjs → chunk-EQ3JVVUR.cjs} +599 -547
- package/dist/chunk-EQ3JVVUR.cjs.map +1 -0
- package/dist/{chunk-MWEDDWFU.js → chunk-F5O6JI2H.js} +8 -6
- package/dist/chunk-F5O6JI2H.js.map +1 -0
- package/dist/{chunk-4AJRIM44.js → chunk-H7GT3QC4.js} +4 -4
- package/dist/{chunk-4AJRIM44.js.map → chunk-H7GT3QC4.js.map} +1 -1
- package/dist/{chunk-MXCB6EVM.cjs → chunk-JQSHFSME.cjs} +19 -17
- package/dist/chunk-JQSHFSME.cjs.map +1 -0
- package/dist/{chunk-MQUATTIM.cjs → chunk-JYQXB7OH.cjs} +19 -19
- package/dist/{chunk-MQUATTIM.cjs.map → chunk-JYQXB7OH.cjs.map} +1 -1
- package/dist/{chunk-V5WRO3P6.cjs → chunk-KWR37J6L.cjs} +10 -10
- package/dist/{chunk-V5WRO3P6.cjs.map → chunk-KWR37J6L.cjs.map} +1 -1
- package/dist/{chunk-X6ZI53DZ.cjs → chunk-L7OOPAUG.cjs} +14 -26
- package/dist/chunk-L7OOPAUG.cjs.map +1 -0
- package/dist/{chunk-RLD7DRSZ.js → chunk-OLKZUJIN.js} +127 -75
- package/dist/chunk-OLKZUJIN.js.map +1 -0
- package/dist/{chunk-OMPDPBT5.cjs → chunk-SOJDUKY6.cjs} +271 -225
- package/dist/chunk-SOJDUKY6.cjs.map +1 -0
- package/dist/{chunk-V3ZLL5VY.js → chunk-U34GU5RM.js} +9 -21
- package/dist/chunk-U34GU5RM.js.map +1 -0
- package/dist/{chunk-DNFTHG73.js → chunk-XXNPX4MK.js} +7 -5
- package/dist/chunk-XXNPX4MK.js.map +1 -0
- package/dist/{chunk-VMVFRTF4.js → chunk-YTOABP6J.js} +268 -226
- package/dist/chunk-YTOABP6J.js.map +1 -0
- package/dist/compiler.cjs +3 -3
- package/dist/compiler.d.cts +1 -1
- package/dist/compiler.d.ts +1 -1
- package/dist/compiler.js +2 -2
- package/dist/contracts/handlers/index.cjs +10 -10
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +3 -3
- package/dist/{index-Ccfhdfvj.d.cts → index-CKzBYoDa.d.cts} +2 -2
- package/dist/{index-B_kcptF8.d.ts → index-COs69e8T.d.ts} +2 -2
- package/dist/{index-18cDMayF.d.ts → index-Pk3i_MMU.d.ts} +12 -2
- package/dist/{index-DDJFHfba.d.cts → index-czozpKPT.d.cts} +12 -2
- package/dist/index.cjs +325 -321
- package/dist/index.d.cts +52 -23
- package/dist/index.d.ts +52 -23
- package/dist/index.js +6 -6
- package/dist/{keyringDescriptorProvider-DL-jAiRO.d.ts → keyringDescriptorProvider-CbNzWwbS.d.ts} +15 -2
- package/dist/{keyringDescriptorProvider-Dtv0JWrT.d.cts → keyringDescriptorProvider-nC8fIjBN.d.cts} +15 -2
- package/dist/{program-BARSNg3X.d.ts → program-38A2Twvj.d.ts} +4 -2
- package/dist/{program-znrWkxE4.d.cts → program-DPzf5qsk.d.cts} +4 -2
- package/dist/repositories/realm/index.cjs +39 -39
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +7 -7
- package/dist/repositories/sqlite/index.cjs +37 -37
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +7 -7
- package/dist/{taskRunner-DUafWu0o.d.ts → taskRunner-DBOqvP33.d.ts} +2 -2
- package/dist/{taskRunner-JYHaLPne.d.cts → taskRunner-DXivOJHc.d.cts} +2 -2
- package/dist/wallet/expo/background.cjs +16 -16
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +8 -8
- package/dist/wallet/expo/index.cjs +17 -17
- package/dist/wallet/expo/index.d.cts +3 -3
- package/dist/wallet/expo/index.d.ts +3 -3
- package/dist/wallet/expo/index.js +7 -7
- package/dist/worker/expo/index.cjs +11 -11
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +7 -7
- package/package.json +1 -1
- package/dist/chunk-3NALVGMJ.cjs.map +0 -1
- package/dist/chunk-DNFTHG73.js.map +0 -1
- package/dist/chunk-JFJNB7ZH.cjs.map +0 -1
- package/dist/chunk-MWEDDWFU.js.map +0 -1
- package/dist/chunk-MWMO2ZQP.js.map +0 -1
- package/dist/chunk-MXCB6EVM.cjs.map +0 -1
- package/dist/chunk-OMPDPBT5.cjs.map +0 -1
- package/dist/chunk-RLD7DRSZ.js.map +0 -1
- package/dist/chunk-URGVQ5TQ.cjs.map +0 -1
- package/dist/chunk-V3ZLL5VY.js.map +0 -1
- package/dist/chunk-VMVFRTF4.js.map +0 -1
- package/dist/chunk-X6ZI53DZ.cjs.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
var chunkJYQXB7OH_cjs = require('../../chunk-JYQXB7OH.cjs');
|
|
4
|
+
require('../../chunk-5PWL7WOT.cjs');
|
|
5
|
+
require('../../chunk-SOJDUKY6.cjs');
|
|
6
6
|
require('../../chunk-FLPWNMX3.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ArkadeContractHandler", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkJYQXB7OH_cjs.ArkadeContractHandler; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "BoardingContractHandler", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkJYQXB7OH_cjs.BoardingContractHandler; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "DefaultContractHandler", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkJYQXB7OH_cjs.DefaultContractHandler; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "DelegateContractHandler", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkJYQXB7OH_cjs.DelegateContractHandler; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "VHTLCContractHandler", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkJYQXB7OH_cjs.VHTLCContractHandler; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "VHTLCV2ContractHandler", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkJYQXB7OH_cjs.VHTLCV2ContractHandler; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "contractHandlers", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkJYQXB7OH_cjs.contractHandlers; }
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=index.cjs.map
|
|
39
39
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { A as ArkadeContractHandler, B as BoardingContractHandler, a as BoardingContractParams, D as DefaultContractHandler, b as DefaultContractParams, c as DelegateContractHandler, d as DelegateContractParams, e as VHTLCContractHandler, f as VHTLCContractParams, g as VHTLCV2ContractHandler, h as VHTLCV2ContractParams, i as contractHandlers } from '../../index-
|
|
2
|
-
import '../../index-
|
|
1
|
+
export { A as ArkadeContractHandler, B as BoardingContractHandler, a as BoardingContractParams, D as DefaultContractHandler, b as DefaultContractParams, c as DelegateContractHandler, d as DelegateContractParams, e as VHTLCContractHandler, f as VHTLCContractParams, g as VHTLCV2ContractHandler, h as VHTLCV2ContractParams, i as contractHandlers } from '../../index-CKzBYoDa.cjs';
|
|
2
|
+
import '../../index-czozpKPT.cjs';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
6
6
|
import '../../base-C-Y5t_0F.cjs';
|
|
7
7
|
import '@scure/btc-signer/transaction.js';
|
|
8
8
|
import '../../delegate-gGkUnYpi.cjs';
|
|
9
|
-
import '../../program-
|
|
9
|
+
import '../../program-DPzf5qsk.cjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { A as ArkadeContractHandler, B as BoardingContractHandler, a as BoardingContractParams, D as DefaultContractHandler, b as DefaultContractParams, c as DelegateContractHandler, d as DelegateContractParams, e as VHTLCContractHandler, f as VHTLCContractParams, g as VHTLCV2ContractHandler, h as VHTLCV2ContractParams, i as contractHandlers } from '../../index-
|
|
2
|
-
import '../../index-
|
|
1
|
+
export { A as ArkadeContractHandler, B as BoardingContractHandler, a as BoardingContractParams, D as DefaultContractHandler, b as DefaultContractParams, c as DelegateContractHandler, d as DelegateContractParams, e as VHTLCContractHandler, f as VHTLCContractParams, g as VHTLCV2ContractHandler, h as VHTLCV2ContractParams, i as contractHandlers } from '../../index-COs69e8T.js';
|
|
2
|
+
import '../../index-Pk3i_MMU.js';
|
|
3
3
|
import '@scure/btc-signer/utils.js';
|
|
4
4
|
import '@scure/btc-signer';
|
|
5
5
|
import '@scure/btc-signer/psbt.js';
|
|
6
6
|
import '../../base-C-Y5t_0F.js';
|
|
7
7
|
import '@scure/btc-signer/transaction.js';
|
|
8
8
|
import '../../delegate-iyDum4fw.js';
|
|
9
|
-
import '../../program-
|
|
9
|
+
import '../../program-38A2Twvj.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { ArkadeContractHandler, BoardingContractHandler, DefaultContractHandler, DelegateContractHandler, VHTLCContractHandler, VHTLCV2ContractHandler, contractHandlers } from '../../chunk-3F5AJ235.js';
|
|
2
|
+
import '../../chunk-XXNPX4MK.js';
|
|
3
|
+
import '../../chunk-YTOABP6J.js';
|
|
4
4
|
import '../../chunk-FDJ734CH.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { bF as ContractHandler, bS as Discoverable, dS as TapscriptDeriving } from './index-
|
|
1
|
+
import { bF as ContractHandler, bS as Discoverable, dS as TapscriptDeriving } from './index-czozpKPT.cjs';
|
|
2
2
|
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-gGkUnYpi.cjs';
|
|
3
3
|
import { R as RelativeTimelock, V as VtxoScript, T as TapLeafScript } from './base-C-Y5t_0F.cjs';
|
|
4
4
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
5
|
-
import { g as ArkadeContractParams, a as ArkadeProgramScript } from './program-
|
|
5
|
+
import { g as ArkadeContractParams, a as ArkadeProgramScript } from './program-DPzf5qsk.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Registry for contract handlers.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { bF as ContractHandler, bS as Discoverable, dS as TapscriptDeriving } from './index-
|
|
1
|
+
import { bF as ContractHandler, bS as Discoverable, dS as TapscriptDeriving } from './index-Pk3i_MMU.js';
|
|
2
2
|
import { D as DefaultVtxo, a as DelegateVtxo } from './delegate-iyDum4fw.js';
|
|
3
3
|
import { R as RelativeTimelock, V as VtxoScript, T as TapLeafScript } from './base-C-Y5t_0F.js';
|
|
4
4
|
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
5
|
-
import { g as ArkadeContractParams, a as ArkadeProgramScript } from './program-
|
|
5
|
+
import { g as ArkadeContractParams, a as ArkadeProgramScript } from './program-38A2Twvj.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Registry for contract handlers.
|
|
@@ -4263,9 +4263,11 @@ interface ContractWatcherConfig {
|
|
|
4263
4263
|
*/
|
|
4264
4264
|
reconnectDelayMs?: number;
|
|
4265
4265
|
/**
|
|
4266
|
-
* Maximum delay for reconnection and subscription update retries (ms).
|
|
4266
|
+
* Maximum delay for reconnection and subscription update retries (ms). The reconnect ladder
|
|
4267
|
+
* starts over once a connection has stayed up for 30 seconds, or this long if lower; a stream
|
|
4268
|
+
* the server refused never counts.
|
|
4267
4269
|
*
|
|
4268
|
-
* @defaultValue `
|
|
4270
|
+
* @defaultValue `60_000` (60 seconds)
|
|
4269
4271
|
*/
|
|
4270
4272
|
maxReconnectDelayMs?: number;
|
|
4271
4273
|
/**
|
|
@@ -4328,6 +4330,7 @@ declare class ContractWatcher {
|
|
|
4328
4330
|
private eventCallback?;
|
|
4329
4331
|
private connectionState;
|
|
4330
4332
|
private reconnectAttempts;
|
|
4333
|
+
private connectedAt?;
|
|
4331
4334
|
private reconnectTimeoutId?;
|
|
4332
4335
|
private failsafePollIntervalId?;
|
|
4333
4336
|
/** See {@link withCoalescedSubscription}. */
|
|
@@ -4395,6 +4398,13 @@ declare class ContractWatcher {
|
|
|
4395
4398
|
*/
|
|
4396
4399
|
private reportEventSourceUnavailable;
|
|
4397
4400
|
private scheduleReconnect;
|
|
4401
|
+
/**
|
|
4402
|
+
* Equal jitter over the exponential backoff, never shorter than a `Retry-After` the server
|
|
4403
|
+
* asked for (clamped like the rate gate's own cooldown, so a bogus header cannot park the
|
|
4404
|
+
* stream). Without jitter the clients one restart dropped all return in the same instant, so
|
|
4405
|
+
* a dominant `Retry-After` is spread over half its own length too.
|
|
4406
|
+
*/
|
|
4407
|
+
private nextReconnectDelay;
|
|
4398
4408
|
/** Replays repository state — only what a sync stored; watch-only scripts poll the indexer. */
|
|
4399
4409
|
private startFailsafePolling;
|
|
4400
4410
|
private pollAllContracts;
|
|
@@ -4263,9 +4263,11 @@ interface ContractWatcherConfig {
|
|
|
4263
4263
|
*/
|
|
4264
4264
|
reconnectDelayMs?: number;
|
|
4265
4265
|
/**
|
|
4266
|
-
* Maximum delay for reconnection and subscription update retries (ms).
|
|
4266
|
+
* Maximum delay for reconnection and subscription update retries (ms). The reconnect ladder
|
|
4267
|
+
* starts over once a connection has stayed up for 30 seconds, or this long if lower; a stream
|
|
4268
|
+
* the server refused never counts.
|
|
4267
4269
|
*
|
|
4268
|
-
* @defaultValue `
|
|
4270
|
+
* @defaultValue `60_000` (60 seconds)
|
|
4269
4271
|
*/
|
|
4270
4272
|
maxReconnectDelayMs?: number;
|
|
4271
4273
|
/**
|
|
@@ -4328,6 +4330,7 @@ declare class ContractWatcher {
|
|
|
4328
4330
|
private eventCallback?;
|
|
4329
4331
|
private connectionState;
|
|
4330
4332
|
private reconnectAttempts;
|
|
4333
|
+
private connectedAt?;
|
|
4331
4334
|
private reconnectTimeoutId?;
|
|
4332
4335
|
private failsafePollIntervalId?;
|
|
4333
4336
|
/** See {@link withCoalescedSubscription}. */
|
|
@@ -4395,6 +4398,13 @@ declare class ContractWatcher {
|
|
|
4395
4398
|
*/
|
|
4396
4399
|
private reportEventSourceUnavailable;
|
|
4397
4400
|
private scheduleReconnect;
|
|
4401
|
+
/**
|
|
4402
|
+
* Equal jitter over the exponential backoff, never shorter than a `Retry-After` the server
|
|
4403
|
+
* asked for (clamped like the rate gate's own cooldown, so a bogus header cannot park the
|
|
4404
|
+
* stream). Without jitter the clients one restart dropped all return in the same instant, so
|
|
4405
|
+
* a dominant `Retry-After` is spread over half its own length too.
|
|
4406
|
+
*/
|
|
4407
|
+
private nextReconnectDelay;
|
|
4398
4408
|
/** Replays repository state — only what a sync stored; watch-only scripts poll the indexer. */
|
|
4399
4409
|
private startFailsafePolling;
|
|
4400
4410
|
private pollAllContracts;
|