@bsv/wallet-toolbox 2.1.25 → 2.1.27
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/CHANGELOG.md +11 -0
- package/README.md +8 -17
- package/docs/client.md +1671 -989
- package/docs/monitor.md +34 -19
- package/docs/services.md +303 -279
- package/docs/setup.md +24 -24
- package/docs/storage.md +864 -199
- package/docs/wallet.md +5285 -10988
- package/out/src/Wallet.d.ts +46 -2
- package/out/src/Wallet.d.ts.map +1 -1
- package/out/src/Wallet.js +65 -4
- package/out/src/Wallet.js.map +1 -1
- package/out/src/__tests/CWIStyleWalletManager.test.js +3 -2
- package/out/src/__tests/CWIStyleWalletManager.test.js.map +1 -1
- package/out/src/__tests/ShamirWalletManager.test.js +4 -0
- package/out/src/__tests/ShamirWalletManager.test.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.callbacks.test.js +9 -17
- package/out/src/__tests/WalletPermissionsManager.callbacks.test.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.checks.test.js +4 -4
- package/out/src/__tests/WalletPermissionsManager.checks.test.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.encryption.test.js +8 -8
- package/out/src/__tests/WalletPermissionsManager.encryption.test.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.fixtures.d.ts +2 -1
- package/out/src/__tests/WalletPermissionsManager.fixtures.d.ts.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.fixtures.js +7 -5
- package/out/src/__tests/WalletPermissionsManager.fixtures.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.flows.test.js +14 -14
- package/out/src/__tests/WalletPermissionsManager.flows.test.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.initialization.test.js +4 -4
- package/out/src/__tests/WalletPermissionsManager.initialization.test.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.pmodules.test.js +4 -4
- package/out/src/__tests/WalletPermissionsManager.pmodules.test.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.proxying.test.js +6 -5
- package/out/src/__tests/WalletPermissionsManager.proxying.test.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.tokens.test.js +2 -1
- package/out/src/__tests/WalletPermissionsManager.tokens.test.js.map +1 -1
- package/out/src/entropy/EntropyCollector.js.map +1 -1
- package/out/src/mockchain/MockChainMigrations.d.ts.map +1 -1
- package/out/src/mockchain/MockChainStorage.js +3 -3
- package/out/src/mockchain/MockChainStorage.js.map +1 -1
- package/out/src/mockchain/MockMiner.js +1 -1
- package/out/src/mockchain/MockMiner.js.map +1 -1
- package/out/src/mockchain/MockServices.js +14 -13
- package/out/src/mockchain/MockServices.js.map +1 -1
- package/out/src/monitor/Monitor.js +8 -6
- package/out/src/monitor/Monitor.js.map +1 -1
- package/out/src/monitor/MonitorDaemon.d.ts.map +1 -1
- package/out/src/monitor/MonitorDaemon.js +11 -13
- package/out/src/monitor/MonitorDaemon.js.map +1 -1
- package/out/src/sdk/PrivilegedKeyManager.d.ts.map +1 -1
- package/out/src/sdk/PrivilegedKeyManager.js +6 -3
- package/out/src/sdk/PrivilegedKeyManager.js.map +1 -1
- package/out/src/sdk/WalletError.d.ts.map +1 -1
- package/out/src/sdk/WalletError.js +19 -18
- package/out/src/sdk/WalletError.js.map +1 -1
- package/out/src/sdk/WalletErrorFromJson.js +1 -1
- package/out/src/sdk/WalletErrorFromJson.js.map +1 -1
- package/out/src/sdk/WalletStorage.interfaces.d.ts +59 -59
- package/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -1
- package/out/src/services/ServiceCollection.d.ts.map +1 -1
- package/out/src/services/ServiceCollection.js +3 -4
- package/out/src/services/ServiceCollection.js.map +1 -1
- package/out/src/services/Services.d.ts.map +1 -1
- package/out/src/services/Services.js +27 -25
- package/out/src/services/Services.js.map +1 -1
- package/out/src/storage/StorageIdb.d.ts.map +1 -1
- package/out/src/storage/StorageIdb.js +99 -94
- package/out/src/storage/StorageIdb.js.map +1 -1
- package/out/src/storage/StorageKnex.d.ts +1 -1
- package/out/src/storage/StorageKnex.d.ts.map +1 -1
- package/out/src/storage/StorageKnex.js +159 -156
- package/out/src/storage/StorageKnex.js.map +1 -1
- package/out/src/storage/StorageProvider.d.ts.map +1 -1
- package/out/src/storage/StorageProvider.js +35 -31
- package/out/src/storage/StorageProvider.js.map +1 -1
- package/out/src/storage/StorageReader.js +7 -7
- package/out/src/storage/StorageReader.js.map +1 -1
- package/out/src/storage/StorageReaderWriter.d.ts +0 -1
- package/out/src/storage/StorageReaderWriter.d.ts.map +1 -1
- package/out/src/storage/StorageReaderWriter.js +0 -3
- package/out/src/storage/StorageReaderWriter.js.map +1 -1
- package/out/src/storage/StorageSyncReader.js +1 -1
- package/out/src/storage/StorageSyncReader.js.map +1 -1
- package/out/src/storage/WalletStorageManager.d.ts.map +1 -1
- package/out/src/storage/WalletStorageManager.js +22 -21
- package/out/src/storage/WalletStorageManager.js.map +1 -1
- package/out/src/storage/index.all.d.ts +3 -0
- package/out/src/storage/index.all.d.ts.map +1 -1
- package/out/src/storage/index.all.js +3 -0
- package/out/src/storage/index.all.js.map +1 -1
- package/out/src/storage/index.client.d.ts +3 -0
- package/out/src/storage/index.client.d.ts.map +1 -1
- package/out/src/storage/index.client.js +3 -0
- package/out/src/storage/index.client.js.map +1 -1
- package/out/src/storage/index.mobile.d.ts +3 -0
- package/out/src/storage/index.mobile.d.ts.map +1 -1
- package/out/src/storage/index.mobile.js +3 -0
- package/out/src/storage/index.mobile.js.map +1 -1
- package/out/src/storage/portable/index.d.ts +55 -0
- package/out/src/storage/portable/index.d.ts.map +1 -0
- package/out/src/storage/portable/index.js +830 -0
- package/out/src/storage/portable/index.js.map +1 -0
- package/out/src/storage/storageProviderHelpers.js +2 -2
- package/out/src/storage/storageProviderHelpers.js.map +1 -1
- package/out/src/utility/Format.d.ts.map +1 -1
- package/out/src/utility/Format.js +10 -45
- package/out/src/utility/Format.js.map +1 -1
- package/out/src/utility/ScriptTemplateBRC29.d.ts.map +1 -1
- package/out/src/utility/ScriptTemplateBRC29.js +3 -2
- package/out/src/utility/ScriptTemplateBRC29.js.map +1 -1
- package/out/src/utility/brc114ActionTimeLabels.js +1 -1
- package/out/src/utility/brc114ActionTimeLabels.js.map +1 -1
- package/out/src/utility/identityUtils.d.ts +12 -6
- package/out/src/utility/identityUtils.d.ts.map +1 -1
- package/out/src/utility/identityUtils.js +83 -35
- package/out/src/utility/identityUtils.js.map +1 -1
- package/out/src/utility/index.all.d.ts +1 -0
- package/out/src/utility/index.all.d.ts.map +1 -1
- package/out/src/utility/index.all.js +1 -0
- package/out/src/utility/index.all.js.map +1 -1
- package/out/src/utility/index.client.d.ts +1 -0
- package/out/src/utility/index.client.d.ts.map +1 -1
- package/out/src/utility/index.client.js +1 -0
- package/out/src/utility/index.client.js.map +1 -1
- package/out/src/utility/stampLog.js +3 -3
- package/out/src/utility/stampLog.js.map +1 -1
- package/out/src/utility/utilityHelpers.buffer.js +1 -1
- package/out/src/utility/utilityHelpers.buffer.js.map +1 -1
- package/out/src/utility/utilityHelpers.d.ts.map +1 -1
- package/out/src/utility/utilityHelpers.js +2 -2
- package/out/src/utility/utilityHelpers.js.map +1 -1
- package/out/src/wab-client/WABClient.d.ts +2 -2
- package/out/src/wab-client/WABClient.d.ts.map +1 -1
- package/package.json +2 -2
- package/out/src/storage/schema/__tests/v7Backfill.runner.test.d.ts +0 -2
- package/out/src/storage/schema/__tests/v7Backfill.runner.test.d.ts.map +0 -1
- package/out/src/storage/schema/__tests/v7Backfill.runner.test.js +0 -148
- package/out/src/storage/schema/__tests/v7Backfill.runner.test.js.map +0 -1
- package/out/src/storage/schema/__tests/v7Backfill.test.d.ts +0 -2
- package/out/src/storage/schema/__tests/v7Backfill.test.d.ts.map +0 -1
- package/out/src/storage/schema/__tests/v7Backfill.test.js +0 -96
- package/out/src/storage/schema/__tests/v7Backfill.test.js.map +0 -1
- package/out/src/storage/schema/__tests/v7Fsm.test.d.ts +0 -2
- package/out/src/storage/schema/__tests/v7Fsm.test.d.ts.map +0 -1
- package/out/src/storage/schema/__tests/v7Fsm.test.js +0 -42
- package/out/src/storage/schema/__tests/v7Fsm.test.js.map +0 -1
- package/out/src/storage/schema/__tests/v7Spendability.test.d.ts +0 -2
- package/out/src/storage/schema/__tests/v7Spendability.test.d.ts.map +0 -1
- package/out/src/storage/schema/__tests/v7Spendability.test.js +0 -29
- package/out/src/storage/schema/__tests/v7Spendability.test.js.map +0 -1
- package/out/src/storage/schema/tables/TableAction.d.ts +0 -38
- package/out/src/storage/schema/tables/TableAction.d.ts.map +0 -1
- package/out/src/storage/schema/tables/TableAction.js +0 -3
- package/out/src/storage/schema/tables/TableAction.js.map +0 -1
- package/out/src/storage/schema/tables/TableChainTip.d.ts +0 -17
- package/out/src/storage/schema/tables/TableChainTip.d.ts.map +0 -1
- package/out/src/storage/schema/tables/TableChainTip.js +0 -3
- package/out/src/storage/schema/tables/TableChainTip.js.map +0 -1
- package/out/src/storage/schema/tables/TableMonitorLease.d.ts +0 -23
- package/out/src/storage/schema/tables/TableMonitorLease.d.ts.map +0 -1
- package/out/src/storage/schema/tables/TableMonitorLease.js +0 -3
- package/out/src/storage/schema/tables/TableMonitorLease.js.map +0 -1
- package/out/src/storage/schema/tables/TableTransactionV7.d.ts +0 -50
- package/out/src/storage/schema/tables/TableTransactionV7.d.ts.map +0 -1
- package/out/src/storage/schema/tables/TableTransactionV7.js +0 -3
- package/out/src/storage/schema/tables/TableTransactionV7.js.map +0 -1
- package/out/src/storage/schema/tables/TableTxAudit.d.ts +0 -26
- package/out/src/storage/schema/tables/TableTxAudit.d.ts.map +0 -1
- package/out/src/storage/schema/tables/TableTxAudit.js +0 -3
- package/out/src/storage/schema/tables/TableTxAudit.js.map +0 -1
- package/out/src/storage/schema/v7Backfill.d.ts +0 -35
- package/out/src/storage/schema/v7Backfill.d.ts.map +0 -1
- package/out/src/storage/schema/v7Backfill.idb.d.ts +0 -32
- package/out/src/storage/schema/v7Backfill.idb.d.ts.map +0 -1
- package/out/src/storage/schema/v7Backfill.idb.js +0 -95
- package/out/src/storage/schema/v7Backfill.idb.js.map +0 -1
- package/out/src/storage/schema/v7Backfill.js +0 -147
- package/out/src/storage/schema/v7Backfill.js.map +0 -1
- package/out/src/storage/schema/v7Backfill.knex.d.ts +0 -32
- package/out/src/storage/schema/v7Backfill.knex.d.ts.map +0 -1
- package/out/src/storage/schema/v7Backfill.knex.js +0 -240
- package/out/src/storage/schema/v7Backfill.knex.js.map +0 -1
- package/out/src/storage/schema/v7Backfill.runner.d.ts +0 -63
- package/out/src/storage/schema/v7Backfill.runner.d.ts.map +0 -1
- package/out/src/storage/schema/v7Backfill.runner.js +0 -62
- package/out/src/storage/schema/v7Backfill.runner.js.map +0 -1
- package/out/src/storage/schema/v7Crud.d.ts +0 -39
- package/out/src/storage/schema/v7Crud.d.ts.map +0 -1
- package/out/src/storage/schema/v7Crud.js +0 -203
- package/out/src/storage/schema/v7Crud.js.map +0 -1
- package/out/src/storage/schema/v7Fsm.d.ts +0 -27
- package/out/src/storage/schema/v7Fsm.d.ts.map +0 -1
- package/out/src/storage/schema/v7Fsm.js +0 -108
- package/out/src/storage/schema/v7Fsm.js.map +0 -1
- package/out/src/storage/schema/v7MonitorLease.d.ts +0 -57
- package/out/src/storage/schema/v7MonitorLease.d.ts.map +0 -1
- package/out/src/storage/schema/v7MonitorLease.js +0 -101
- package/out/src/storage/schema/v7MonitorLease.js.map +0 -1
- package/out/src/storage/schema/v7Spendability.d.ts +0 -45
- package/out/src/storage/schema/v7Spendability.d.ts.map +0 -1
- package/out/src/storage/schema/v7Spendability.js +0 -52
- package/out/src/storage/schema/v7Spendability.js.map +0 -1
- package/out/src/storage/schema/v7TxAudit.d.ts +0 -33
- package/out/src/storage/schema/v7TxAudit.d.ts.map +0 -1
- package/out/src/storage/schema/v7TxAudit.js +0 -64
- package/out/src/storage/schema/v7TxAudit.js.map +0 -1
package/docs/monitor.md
CHANGED
|
@@ -112,6 +112,7 @@ export interface MonitorOptions {
|
|
|
112
112
|
abandonedMsecs: number;
|
|
113
113
|
unprovenAttemptsLimitTest: number;
|
|
114
114
|
unprovenAttemptsLimitMain: number;
|
|
115
|
+
maxRebroadcastAttempts: number;
|
|
115
116
|
callbackToken?: string;
|
|
116
117
|
loadLastSSEEventId?: () => Promise<string | undefined>;
|
|
117
118
|
saveLastSSEEventId?: (lastEventId: string) => Promise<void>;
|
|
@@ -151,6 +152,19 @@ Load persisted SSE lastEventId (e.g. from SQLite) for catchup on startup
|
|
|
151
152
|
loadLastSSEEventId?: () => Promise<string | undefined>
|
|
152
153
|
```
|
|
153
154
|
|
|
155
|
+
###### Property maxRebroadcastAttempts
|
|
156
|
+
|
|
157
|
+
Maximum number of times a broadcast transaction may be reset to 'unsent' for
|
|
158
|
+
rebroadcast after proof check timeout (circuit breaker).
|
|
159
|
+
|
|
160
|
+
Default 0 means unlimited — the tx is rebroadcast indefinitely until a proof
|
|
161
|
+
is found. Set to a positive integer to cap rebroadcast cycles; once the limit
|
|
162
|
+
is reached the req is marked 'invalid'.
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
maxRebroadcastAttempts: number
|
|
166
|
+
```
|
|
167
|
+
|
|
154
168
|
###### Property msecsWaitPerMerkleProofServiceReq
|
|
155
169
|
|
|
156
170
|
How many msecs to wait after each getMerkleProof service request.
|
|
@@ -268,6 +282,7 @@ export class Monitor {
|
|
|
268
282
|
onTransactionBroadcasted?: (broadcastResult: ReviewActionResult) => Promise<void>;
|
|
269
283
|
onTransactionProven?: (txStatus: ProvenTransactionStatus) => Promise<void>;
|
|
270
284
|
onTransactionStatusChanged?: (txid: string, newStatus: string) => Promise<void>;
|
|
285
|
+
get ready(): Promise<void>
|
|
271
286
|
constructor(options: MonitorOptions)
|
|
272
287
|
async destroy(): Promise<void>
|
|
273
288
|
static readonly oneSecond = 1000;
|
|
@@ -459,7 +474,7 @@ when transactions are MINED.
|
|
|
459
474
|
|
|
460
475
|
```ts
|
|
461
476
|
export class TaskArcadeSSE extends WalletMonitorTask {
|
|
462
|
-
static taskName = "ArcadeSSE";
|
|
477
|
+
static readonly taskName = "ArcadeSSE";
|
|
463
478
|
sseClient: ArcSSEClient | null = null;
|
|
464
479
|
constructor(monitor: Monitor)
|
|
465
480
|
override async asyncSetup(): Promise<void>
|
|
@@ -491,7 +506,7 @@ the original ProvenTxReq status is advanced to 'notifying'.
|
|
|
491
506
|
|
|
492
507
|
```ts
|
|
493
508
|
export class TaskCheckForProofs extends WalletMonitorTask {
|
|
494
|
-
static taskName = "CheckForProofs";
|
|
509
|
+
static readonly taskName = "CheckForProofs";
|
|
495
510
|
static checkNow = false;
|
|
496
511
|
constructor(monitor: Monitor, public triggerMsecs = 0)
|
|
497
512
|
trigger(nowMsecsSinceEpoch: number): {
|
|
@@ -541,7 +556,7 @@ the original ProvenTxReq status is advanced to 'notifying'.
|
|
|
541
556
|
|
|
542
557
|
```ts
|
|
543
558
|
export class TaskCheckNoSends extends WalletMonitorTask {
|
|
544
|
-
static taskName = "CheckNoSends";
|
|
559
|
+
static readonly taskName = "CheckNoSends";
|
|
545
560
|
static checkNow = false;
|
|
546
561
|
constructor(monitor: Monitor, public triggerMsecs = Monitor.oneDay * 1)
|
|
547
562
|
trigger(nowMsecsSinceEpoch: number): {
|
|
@@ -579,7 +594,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
579
594
|
|
|
580
595
|
```ts
|
|
581
596
|
export class TaskClock extends WalletMonitorTask {
|
|
582
|
-
static taskName = "Clock";
|
|
597
|
+
static readonly taskName = "Clock";
|
|
583
598
|
nextMinute: number;
|
|
584
599
|
constructor(monitor: Monitor, public triggerMsecs = 1 * Monitor.oneSecond)
|
|
585
600
|
trigger(nowMsecsSinceEpoch: number): {
|
|
@@ -606,7 +621,7 @@ outputs are not spendable.
|
|
|
606
621
|
|
|
607
622
|
```ts
|
|
608
623
|
export class TaskFailAbandoned extends WalletMonitorTask {
|
|
609
|
-
static taskName = "FailAbandoned";
|
|
624
|
+
static readonly taskName = "FailAbandoned";
|
|
610
625
|
constructor(monitor: Monitor, public triggerMsecs = 1000 * 60 * 5)
|
|
611
626
|
trigger(nowMsecsSinceEpoch: number): {
|
|
612
627
|
run: boolean;
|
|
@@ -624,7 +639,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
624
639
|
|
|
625
640
|
```ts
|
|
626
641
|
export class TaskMineBlock extends WalletMonitorTask {
|
|
627
|
-
static taskName = "MineBlock";
|
|
642
|
+
static readonly taskName = "MineBlock";
|
|
628
643
|
static mineNow = false;
|
|
629
644
|
constructor(monitor: Monitor, public triggerMsecs = 10 * Monitor.oneMinute)
|
|
630
645
|
trigger(nowMsecsSinceEpoch: number): {
|
|
@@ -643,7 +658,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
643
658
|
|
|
644
659
|
```ts
|
|
645
660
|
export class TaskMonitorCallHistory extends WalletMonitorTask {
|
|
646
|
-
static taskName = "MonitorCallHistory";
|
|
661
|
+
static readonly taskName = "MonitorCallHistory";
|
|
647
662
|
constructor(monitor: Monitor, public triggerMsecs = Monitor.oneMinute * 12)
|
|
648
663
|
trigger(nowMsecsSinceEpoch: number): {
|
|
649
664
|
run: boolean;
|
|
@@ -672,7 +687,7 @@ with that header height as the limit for which proofs are accepted.
|
|
|
672
687
|
|
|
673
688
|
```ts
|
|
674
689
|
export class TaskNewHeader extends WalletMonitorTask {
|
|
675
|
-
static taskName = "NewHeader";
|
|
690
|
+
static readonly taskName = "NewHeader";
|
|
676
691
|
header?: BlockHeader;
|
|
677
692
|
queuedHeader?: BlockHeader;
|
|
678
693
|
queuedHeaderWhen?: Date;
|
|
@@ -709,7 +724,7 @@ See also: [BlockHeader](./client.md#interface-blockheader)
|
|
|
709
724
|
|
|
710
725
|
###### Method asyncSetup
|
|
711
726
|
|
|
712
|
-
|
|
727
|
+
This is a temporary incomplete solution for which a full chaintracker
|
|
713
728
|
with new header and reorg event notification is required.
|
|
714
729
|
|
|
715
730
|
New header events drive retrieving merklePaths for newly mined transactions.
|
|
@@ -732,7 +747,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
732
747
|
|
|
733
748
|
```ts
|
|
734
749
|
export class TaskPurge extends WalletMonitorTask {
|
|
735
|
-
static taskName = "Purge";
|
|
750
|
+
static readonly taskName = "Purge";
|
|
736
751
|
static checkNow = false;
|
|
737
752
|
constructor(monitor: Monitor, public params: TaskPurgeParams, public triggerMsecs = 0)
|
|
738
753
|
trigger(nowMsecsSinceEpoch: number): {
|
|
@@ -782,7 +797,7 @@ createAction fails to verify a generated beef against the chaintracker.
|
|
|
782
797
|
|
|
783
798
|
```ts
|
|
784
799
|
export class TaskReorg extends WalletMonitorTask {
|
|
785
|
-
static taskName = "Reorg";
|
|
800
|
+
static readonly taskName = "Reorg";
|
|
786
801
|
process: DeactivedHeader[] = [];
|
|
787
802
|
constructor(monitor: Monitor, public agedMsecs = Monitor.oneMinute * 10, public maxRetries = 3)
|
|
788
803
|
trigger(nowMsecsSinceEpoch: number): {
|
|
@@ -823,7 +838,7 @@ back to 'unfail' so existing recovery handling can re-process them.
|
|
|
823
838
|
|
|
824
839
|
```ts
|
|
825
840
|
export class TaskReviewDoubleSpends extends WalletMonitorTask {
|
|
826
|
-
static taskName = "ReviewDoubleSpends";
|
|
841
|
+
static readonly taskName = "ReviewDoubleSpends";
|
|
827
842
|
static checkNow = false;
|
|
828
843
|
triggerNextMsecs: number;
|
|
829
844
|
constructor(monitor: Monitor, public triggerMsecs = Monitor.oneMinute * 12, public reviewLimit = 100, public minAgeMinutes = 60, public triggerQuickMsecs = Monitor.oneMinute * 1)
|
|
@@ -853,7 +868,7 @@ the currently canonical merkleRoot at a height no longer matches stored proven_t
|
|
|
853
868
|
|
|
854
869
|
```ts
|
|
855
870
|
export class TaskReviewProvenTxs extends WalletMonitorTask {
|
|
856
|
-
static taskName = "ReviewProvenTxs";
|
|
871
|
+
static readonly taskName = "ReviewProvenTxs";
|
|
857
872
|
static checkNow = false;
|
|
858
873
|
triggerNextMsecs: number;
|
|
859
874
|
constructor(monitor: Monitor, public triggerMsecs = Monitor.oneMinute * 10, public maxHeightsPerRun = 100, public minBlockAge = 100, public triggerQuickMsecs = Monitor.oneMinute * 1)
|
|
@@ -883,7 +898,7 @@ Looks for reqs with 'invalid' status that have corresonding transactions with st
|
|
|
883
898
|
|
|
884
899
|
```ts
|
|
885
900
|
export class TaskReviewStatus extends WalletMonitorTask {
|
|
886
|
-
static taskName = "ReviewStatus";
|
|
901
|
+
static readonly taskName = "ReviewStatus";
|
|
887
902
|
static checkNow = false;
|
|
888
903
|
constructor(monitor: Monitor, public triggerMsecs = 1000 * 60 * 15, public agedMsecs = 1000 * 60 * 5)
|
|
889
904
|
trigger(nowMsecsSinceEpoch: number): {
|
|
@@ -914,7 +929,7 @@ The task itself is disabled and will not run on a schedule; review must be trigg
|
|
|
914
929
|
|
|
915
930
|
```ts
|
|
916
931
|
export class TaskReviewUtxos extends WalletMonitorTask {
|
|
917
|
-
static taskName = "ReviewUtxos";
|
|
932
|
+
static readonly taskName = "ReviewUtxos";
|
|
918
933
|
static checkNow = false;
|
|
919
934
|
constructor(monitor: Monitor, public triggerMsecs = 0, public userLimit = 10, public userOffset = 0, public tags: string[] = ["release", "all"])
|
|
920
935
|
trigger(_nowMsecsSinceEpoch: number): {
|
|
@@ -934,7 +949,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
934
949
|
|
|
935
950
|
```ts
|
|
936
951
|
export class TaskSendWaiting extends WalletMonitorTask {
|
|
937
|
-
static taskName = "SendWaiting";
|
|
952
|
+
static readonly taskName = "SendWaiting";
|
|
938
953
|
lastSendingRunMsecsSinceEpoch: number | undefined;
|
|
939
954
|
includeSending: boolean = true;
|
|
940
955
|
triggerNextMsecs: number;
|
|
@@ -999,7 +1014,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
999
1014
|
|
|
1000
1015
|
```ts
|
|
1001
1016
|
export class TaskSyncWhenIdle extends WalletMonitorTask {
|
|
1002
|
-
static taskName = "SyncWhenIdle";
|
|
1017
|
+
static readonly taskName = "SyncWhenIdle";
|
|
1003
1018
|
constructor(monitor: Monitor, public triggerMsecs = 1000 * 60 * 1)
|
|
1004
1019
|
trigger(nowMsecsSinceEpoch: number): {
|
|
1005
1020
|
run: boolean;
|
|
@@ -1026,7 +1041,7 @@ If it fails (to find a merklePath), returns the req status to 'invalid'.
|
|
|
1026
1041
|
|
|
1027
1042
|
```ts
|
|
1028
1043
|
export class TaskUnFail extends WalletMonitorTask {
|
|
1029
|
-
static taskName = "UnFail";
|
|
1044
|
+
static readonly taskName = "UnFail";
|
|
1030
1045
|
static checkNow = false;
|
|
1031
1046
|
constructor(monitor: Monitor, public triggerMsecs = Monitor.oneMinute * 10)
|
|
1032
1047
|
trigger(nowMsecsSinceEpoch: number): {
|
|
@@ -1142,7 +1157,7 @@ depending on chaintracks succeeding on proof verification.
|
|
|
1142
1157
|
Increments attempts if proofs where requested.
|
|
1143
1158
|
|
|
1144
1159
|
```ts
|
|
1145
|
-
export async function getProofs(task: WalletMonitorTask, reqs: TableProvenTxReq[], indent = 0, countsAsAttempt = false, ignoreStatus = false
|
|
1160
|
+
export async function getProofs(task: WalletMonitorTask, reqs: TableProvenTxReq[], maxAcceptableHeight: number, indent = 0, countsAsAttempt = false, ignoreStatus = false): Promise<{
|
|
1146
1161
|
proven: TableProvenTxReq[];
|
|
1147
1162
|
invalid: TableProvenTxReq[];
|
|
1148
1163
|
log: string;
|