@xyo-network/diviner-forecasting-memory 5.3.25 → 5.3.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.
Files changed (2) hide show
  1. package/README.md +2748 -10
  2. package/package.json +24 -32
package/README.md CHANGED
@@ -1,23 +1,2761 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/diviner-forecasting-memory
2
4
 
3
- [![logo][]](https://xyo.network)
5
+ [![npm][npm-badge]][npm-link]
6
+ [![license][license-badge]][license-link]
7
+
8
+ > Primary SDK for using XYO Protocol 2.0
9
+
10
+ ## Install
11
+
12
+ Using npm:
13
+
14
+ ```sh
15
+ npm install {{name}}
16
+ ```
17
+
18
+ Using yarn:
4
19
 
5
- Version: 5.0.2
20
+ ```sh
21
+ yarn add {{name}}
22
+ ```
6
23
 
7
- Primary SDK for using XYO Protocol 2.0
24
+ Using pnpm:
8
25
 
9
- ## Documentation
26
+ ```sh
27
+ pnpm add {{name}}
28
+ ```
10
29
 
11
- [TypeDoc Generated Documentation](https://gitbook.xyo.network/xyo-data-lab/xyo-reference/package-documentation/xyo-network__diviner-forecasting-memory)
30
+ Using bun:
31
+
32
+ ```sh
33
+ bun add {{name}}
34
+ ```
12
35
 
13
- Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
14
36
 
15
37
  ## License
16
38
 
17
- > See the [LICENSE](LICENSE) file for license details
39
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
+
41
+ ## Reference
42
+
43
+ ### packages
44
+
45
+ ### modules
46
+
47
+ ### packages
48
+
49
+ ### diviner
50
+
51
+ ### packages
52
+
53
+ ### forecasting
54
+
55
+ ### packages
56
+
57
+ ### memory
58
+
59
+ ### .temp-typedoc
60
+
61
+ ### classes
62
+
63
+ ### <a id="MemoryForecastingDiviner"></a>MemoryForecastingDiviner
64
+
65
+ [**@xyo-network/diviner-forecasting-memory**](#../README)
66
+
67
+ ***
68
+
69
+ ## Extends
70
+
71
+ - `AbstractForecastingDiviner`\<`TParams`\>
72
+
73
+ ## Type Parameters
74
+
75
+ ### TParams
76
+
77
+ `TParams` *extends* `ForecastingDivinerParams` = `ForecastingDivinerParams`
78
+
79
+ ## Constructors
80
+
81
+ ### Constructor
82
+
83
+ ```ts
84
+ new MemoryForecastingDiviner<TParams>(key, params): MemoryForecastingDiviner<TParams>;
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+ #### key
90
+
91
+ `unknown`
92
+
93
+ #### params
94
+
95
+ `Partial`\<`TParams` & `RequiredCreatableParams`\>
96
+
97
+ ### Returns
98
+
99
+ `MemoryForecastingDiviner`\<`TParams`\>
100
+
101
+ ### Inherited from
102
+
103
+ ```ts
104
+ AbstractForecastingDiviner<TParams>.constructor
105
+ ```
106
+
107
+ ## Properties
108
+
109
+ ### targetSchema
110
+
111
+ ```ts
112
+ readonly static targetSchema: Schema;
113
+ ```
114
+
115
+ ### Inherited from
116
+
117
+ ```ts
118
+ AbstractForecastingDiviner.targetSchema
119
+ ```
120
+
121
+ ***
122
+
123
+ ### uniqueName
124
+
125
+ ```ts
126
+ readonly static uniqueName: string;
127
+ ```
128
+
129
+ ### Inherited from
130
+
131
+ ```ts
132
+ AbstractForecastingDiviner.uniqueName
133
+ ```
134
+
135
+ ***
136
+
137
+ ### configSchemas
138
+
139
+ ```ts
140
+ readonly static configSchemas: Schema[];
141
+ ```
142
+
143
+ ### Overrides
144
+
145
+ ```ts
146
+ AbstractForecastingDiviner.configSchemas
147
+ ```
148
+
149
+ ***
150
+
151
+ ### defaultConfigSchema
152
+
153
+ ```ts
154
+ readonly static defaultConfigSchema: Schema = ForecastingDivinerConfigSchema;
155
+ ```
156
+
157
+ ### Overrides
158
+
159
+ ```ts
160
+ AbstractForecastingDiviner.defaultConfigSchema
161
+ ```
162
+
163
+ ***
164
+
165
+ ### forecastingMethodDict
166
+
167
+ ```ts
168
+ protected readonly static forecastingMethodDict: Record<SupportedForecastingType, ForecastingMethod>;
169
+ ```
170
+
171
+ ***
172
+
173
+ ### allowRandomAccount
174
+
175
+ ```ts
176
+ readonly static allowRandomAccount: boolean;
177
+ ```
178
+
179
+ ### Inherited from
180
+
181
+ ```ts
182
+ AbstractForecastingDiviner.allowRandomAccount
183
+ ```
184
+
185
+ ***
186
+
187
+ ### defaultLogger
188
+
189
+ ```ts
190
+ static defaultLogger: Logger;
191
+ ```
192
+
193
+ ### Inherited from
194
+
195
+ ```ts
196
+ AbstractForecastingDiviner.defaultLogger
197
+ ```
198
+
199
+ ***
200
+
201
+ ### enableLazyLoad
202
+
203
+ ```ts
204
+ static enableLazyLoad: boolean;
205
+ ```
206
+
207
+ ### Inherited from
208
+
209
+ ```ts
210
+ AbstractForecastingDiviner.enableLazyLoad
211
+ ```
212
+
213
+ ***
214
+
215
+ ### labels
216
+
217
+ ```ts
218
+ readonly static labels: Labels;
219
+ ```
220
+
221
+ ### Inherited from
222
+
223
+ ```ts
224
+ AbstractForecastingDiviner.labels
225
+ ```
226
+
227
+ ***
228
+
229
+ ### privateConstructorKey
230
+
231
+ ```ts
232
+ protected static privateConstructorKey: string;
233
+ ```
234
+
235
+ ### Inherited from
236
+
237
+ ```ts
238
+ AbstractForecastingDiviner.privateConstructorKey
239
+ ```
240
+
241
+ ***
242
+
243
+ ### \_account
244
+
245
+ ```ts
246
+ protected _account: AccountInstance | undefined;
247
+ ```
248
+
249
+ ### Inherited from
250
+
251
+ ```ts
252
+ AbstractForecastingDiviner._account
253
+ ```
254
+
255
+ ***
256
+
257
+ ### \_cachedManifests
258
+
259
+ ```ts
260
+ protected _cachedManifests: LRUCache<number, ModuleManifestPayload, unknown>;
261
+ ```
262
+
263
+ ### Inherited from
264
+
265
+ ```ts
266
+ AbstractForecastingDiviner._cachedManifests
267
+ ```
268
+
269
+ ***
270
+
271
+ ### \_globalReentrancyMutex
272
+
273
+ ```ts
274
+ protected _globalReentrancyMutex: Mutex | undefined;
275
+ ```
276
+
277
+ ### Inherited from
278
+
279
+ ```ts
280
+ AbstractForecastingDiviner._globalReentrancyMutex
281
+ ```
282
+
283
+ ***
284
+
285
+ ### \_lastError?
286
+
287
+ ```ts
288
+ protected optional _lastError?: ModuleDetailsError;
289
+ ```
290
+
291
+ ### Inherited from
292
+
293
+ ```ts
294
+ AbstractForecastingDiviner._lastError
295
+ ```
296
+
297
+ ***
298
+
299
+ ### \_moduleConfigQueryValidator
300
+
301
+ ```ts
302
+ protected _moduleConfigQueryValidator: Queryable | undefined;
303
+ ```
304
+
305
+ ### Inherited from
306
+
307
+ ```ts
308
+ AbstractForecastingDiviner._moduleConfigQueryValidator
309
+ ```
310
+
311
+ ***
312
+
313
+ ### \_supportedQueryValidator
314
+
315
+ ```ts
316
+ protected _supportedQueryValidator: Queryable | undefined;
317
+ ```
318
+
319
+ ### Inherited from
320
+
321
+ ```ts
322
+ AbstractForecastingDiviner._supportedQueryValidator
323
+ ```
324
+
325
+ ***
326
+
327
+ ### useNewResolver
328
+
329
+ ```ts
330
+ readonly static useNewResolver: false = false;
331
+ ```
332
+
333
+ ### Inherited from
334
+
335
+ ```ts
336
+ AbstractForecastingDiviner.useNewResolver
337
+ ```
338
+
339
+ ## Accessors
340
+
341
+ ### queries
342
+
343
+ ### Get Signature
344
+
345
+ ```ts
346
+ get queries(): Schema[];
347
+ ```
348
+
349
+ #### Returns
350
+
351
+ `Schema`[]
352
+
353
+ ### Inherited from
354
+
355
+ ```ts
356
+ AbstractForecastingDiviner.queries
357
+ ```
358
+
359
+ ***
360
+
361
+ ### boundWitnessDiviner
362
+
363
+ ### Get Signature
364
+
365
+ ```ts
366
+ get boundWitnessDiviner(): ModuleIdentifier;
367
+ ```
368
+
369
+ #### Returns
370
+
371
+ `ModuleIdentifier`
372
+
373
+ ***
374
+
375
+ ### batchLimit
376
+
377
+ ### Get Signature
378
+
379
+ ```ts
380
+ get protected batchLimit(): number;
381
+ ```
382
+
383
+ The max number of records to search during the batch query
384
+
385
+ #### Returns
386
+
387
+ `number`
388
+
389
+ ***
390
+
391
+ ### forecastingMethod
392
+
393
+ ### Get Signature
394
+
395
+ ```ts
396
+ get protected forecastingMethod(): ForecastingMethod;
397
+ ```
398
+
399
+ #### Returns
400
+
401
+ `ForecastingMethod`
402
+
403
+ ### Overrides
404
+
405
+ ```ts
406
+ AbstractForecastingDiviner.forecastingMethod
407
+ ```
408
+
409
+ ***
410
+
411
+ ### maxTrainingLength
412
+
413
+ ### Get Signature
414
+
415
+ ```ts
416
+ get protected maxTrainingLength(): number;
417
+ ```
418
+
419
+ #### Returns
420
+
421
+ `number`
422
+
423
+ ***
424
+
425
+ ### transformer
426
+
427
+ ### Get Signature
428
+
429
+ ```ts
430
+ get protected transformer(): PayloadValueTransformer;
431
+ ```
432
+
433
+ #### Returns
434
+
435
+ `PayloadValueTransformer`
436
+
437
+ ### Overrides
438
+
439
+ ```ts
440
+ AbstractForecastingDiviner.transformer
441
+ ```
442
+
443
+ ***
444
+
445
+ ### account
446
+
447
+ ### Get Signature
448
+
449
+ ```ts
450
+ get account(): AccountInstance;
451
+ ```
452
+
453
+ #### Returns
454
+
455
+ `AccountInstance`
456
+
457
+ ### Inherited from
458
+
459
+ ```ts
460
+ AbstractForecastingDiviner.account
461
+ ```
462
+
463
+ ***
464
+
465
+ ### additionalSigners
466
+
467
+ ### Get Signature
468
+
469
+ ```ts
470
+ get additionalSigners(): AccountInstance[];
471
+ ```
472
+
473
+ #### Returns
474
+
475
+ `AccountInstance`[]
476
+
477
+ ### Inherited from
478
+
479
+ ```ts
480
+ AbstractForecastingDiviner.additionalSigners
481
+ ```
482
+
483
+ ***
484
+
485
+ ### address
486
+
487
+ ### Get Signature
488
+
489
+ ```ts
490
+ get address(): Lowercase<string> & object & object;
491
+ ```
492
+
493
+ #### Returns
494
+
495
+ `Lowercase`\<`string`\> & `object` & `object`
496
+
497
+ ### Inherited from
498
+
499
+ ```ts
500
+ AbstractForecastingDiviner.address
501
+ ```
502
+
503
+ ***
504
+
505
+ ### allowAnonymous
506
+
507
+ ### Get Signature
508
+
509
+ ```ts
510
+ get allowAnonymous(): boolean;
511
+ ```
512
+
513
+ #### Returns
514
+
515
+ `boolean`
516
+
517
+ ### Inherited from
518
+
519
+ ```ts
520
+ AbstractForecastingDiviner.allowAnonymous
521
+ ```
522
+
523
+ ***
524
+
525
+ ### allowNameResolution
526
+
527
+ ### Get Signature
528
+
529
+ ```ts
530
+ get allowNameResolution(): boolean;
531
+ ```
532
+
533
+ #### Returns
534
+
535
+ `boolean`
536
+
537
+ ### Inherited from
538
+
539
+ ```ts
540
+ AbstractForecastingDiviner.allowNameResolution
541
+ ```
542
+
543
+ ***
544
+
545
+ ### archiving
546
+
547
+ ### Get Signature
548
+
549
+ ```ts
550
+ get archiving():
551
+ | {
552
+ archivists?: ModuleIdentifier[];
553
+ queries?: Schema[];
554
+ }
555
+ | undefined;
556
+ ```
557
+
558
+ #### Returns
559
+
560
+ \| \{
561
+ `archivists?`: `ModuleIdentifier`[];
562
+ `queries?`: `Schema`[];
563
+ \}
564
+ \| `undefined`
565
+
566
+ ### Inherited from
567
+
568
+ ```ts
569
+ AbstractForecastingDiviner.archiving
570
+ ```
571
+
572
+ ***
573
+
574
+ ### archivist
575
+
576
+ ### Get Signature
577
+
578
+ ```ts
579
+ get archivist(): ModuleIdentifier | undefined;
580
+ ```
581
+
582
+ #### Returns
583
+
584
+ `ModuleIdentifier` \| `undefined`
585
+
586
+ ### Inherited from
587
+
588
+ ```ts
589
+ AbstractForecastingDiviner.archivist
590
+ ```
591
+
592
+ ***
593
+
594
+ ### config
595
+
596
+ ### Get Signature
597
+
598
+ ```ts
599
+ get config(): TParams["config"] & object;
600
+ ```
601
+
602
+ #### Returns
603
+
604
+ `TParams`\[`"config"`\] & `object`
605
+
606
+ ### Inherited from
607
+
608
+ ```ts
609
+ AbstractForecastingDiviner.config
610
+ ```
611
+
612
+ ***
613
+
614
+ ### dead
615
+
616
+ ### Get Signature
617
+
618
+ ```ts
619
+ get dead(): boolean;
620
+ ```
621
+
622
+ #### Returns
623
+
624
+ `boolean`
625
+
626
+ ### Inherited from
627
+
628
+ ```ts
629
+ AbstractForecastingDiviner.dead
630
+ ```
631
+
632
+ ***
633
+
634
+ ### ephemeralQueryAccountEnabled
635
+
636
+ ### Get Signature
637
+
638
+ ```ts
639
+ get ephemeralQueryAccountEnabled(): boolean;
640
+ ```
641
+
642
+ #### Returns
643
+
644
+ `boolean`
645
+
646
+ ### Inherited from
647
+
648
+ ```ts
649
+ AbstractForecastingDiviner.ephemeralQueryAccountEnabled
650
+ ```
651
+
652
+ ***
653
+
654
+ ### globalReentrancyMutex
655
+
656
+ ### Get Signature
657
+
658
+ ```ts
659
+ get globalReentrancyMutex(): Mutex | undefined;
660
+ ```
661
+
662
+ #### Returns
663
+
664
+ `Mutex` \| `undefined`
665
+
666
+ ### Inherited from
667
+
668
+ ```ts
669
+ AbstractForecastingDiviner.globalReentrancyMutex
670
+ ```
671
+
672
+ ***
673
+
674
+ ### id
675
+
676
+ ### Get Signature
677
+
678
+ ```ts
679
+ get id(): string;
680
+ ```
681
+
682
+ The name (if specified) or address of the module
683
+
684
+ #### Returns
685
+
686
+ `string`
687
+
688
+ ### Inherited from
689
+
690
+ ```ts
691
+ AbstractForecastingDiviner.id
692
+ ```
693
+
694
+ ***
695
+
696
+ ### logger
697
+
698
+ ### Get Signature
699
+
700
+ ```ts
701
+ get logger(): Logger | undefined;
702
+ ```
703
+
704
+ #### Returns
705
+
706
+ `Logger` \| `undefined`
707
+
708
+ ### Inherited from
709
+
710
+ ```ts
711
+ AbstractForecastingDiviner.logger
712
+ ```
713
+
714
+ ***
715
+
716
+ ### priority
717
+
718
+ ### Get Signature
719
+
720
+ ```ts
721
+ get priority(): 2;
722
+ ```
723
+
724
+ #### Returns
725
+
726
+ `2`
727
+
728
+ ### Inherited from
729
+
730
+ ```ts
731
+ AbstractForecastingDiviner.priority
732
+ ```
733
+
734
+ ***
735
+
736
+ ### reentrancy
737
+
738
+ ### Get Signature
739
+
740
+ ```ts
741
+ get reentrancy():
742
+ | {
743
+ action: "skip" | "wait";
744
+ scope: "global";
745
+ }
746
+ | undefined;
747
+ ```
748
+
749
+ #### Returns
750
+
751
+ \| \{
752
+ `action`: `"skip"` \| `"wait"`;
753
+ `scope`: `"global"`;
754
+ \}
755
+ \| `undefined`
756
+
757
+ ### Inherited from
758
+
759
+ ```ts
760
+ AbstractForecastingDiviner.reentrancy
761
+ ```
762
+
763
+ ***
764
+
765
+ ### statusReporter
766
+
767
+ ### Get Signature
768
+
769
+ ```ts
770
+ get statusReporter():
771
+ | ModuleStatusReporter & CreatableStatusReporter<void>
772
+ | undefined;
773
+ ```
774
+
775
+ The status reporter used to broadcast lifecycle changes.
776
+
777
+ #### Returns
778
+
779
+ \| `ModuleStatusReporter` & `CreatableStatusReporter`\<`void`\>
780
+ \| `undefined`
781
+
782
+ ### Inherited from
783
+
784
+ ```ts
785
+ AbstractForecastingDiviner.statusReporter
786
+ ```
787
+
788
+ ***
789
+
790
+ ### timestamp
791
+
792
+ ### Get Signature
793
+
794
+ ```ts
795
+ get timestamp(): boolean;
796
+ ```
797
+
798
+ #### Returns
799
+
800
+ `boolean`
801
+
802
+ ### Inherited from
803
+
804
+ ```ts
805
+ AbstractForecastingDiviner.timestamp
806
+ ```
807
+
808
+ ***
809
+
810
+ ### moduleConfigQueryValidator
811
+
812
+ ### Get Signature
813
+
814
+ ```ts
815
+ get protected moduleConfigQueryValidator(): Queryable;
816
+ ```
817
+
818
+ #### Returns
819
+
820
+ `Queryable`
821
+
822
+ ### Inherited from
823
+
824
+ ```ts
825
+ AbstractForecastingDiviner.moduleConfigQueryValidator
826
+ ```
827
+
828
+ ***
829
+
830
+ ### supportedQueryValidator
831
+
832
+ ### Get Signature
833
+
834
+ ```ts
835
+ get protected supportedQueryValidator(): Queryable;
836
+ ```
837
+
838
+ #### Returns
839
+
840
+ `Queryable`
841
+
842
+ ### Inherited from
843
+
844
+ ```ts
845
+ AbstractForecastingDiviner.supportedQueryValidator
846
+ ```
847
+
848
+ ***
849
+
850
+ ### downResolver
851
+
852
+ ### Get Signature
853
+
854
+ ```ts
855
+ get downResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
856
+ ```
857
+
858
+ #### Returns
859
+
860
+ `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
861
+
862
+ ### Inherited from
863
+
864
+ ```ts
865
+ AbstractForecastingDiviner.downResolver
866
+ ```
867
+
868
+ ***
869
+
870
+ ### modName
871
+
872
+ ### Get Signature
873
+
874
+ ```ts
875
+ get modName(): string | undefined;
876
+ ```
877
+
878
+ #### Returns
879
+
880
+ `string` \| `undefined`
881
+
882
+ ### Inherited from
883
+
884
+ ```ts
885
+ AbstractForecastingDiviner.modName
886
+ ```
887
+
888
+ ***
889
+
890
+ ### moduleIdentifierTransformers
891
+
892
+ ### Get Signature
893
+
894
+ ```ts
895
+ get moduleIdentifierTransformers(): ModuleIdentifierTransformer[];
896
+ ```
897
+
898
+ #### Returns
899
+
900
+ `ModuleIdentifierTransformer`[]
901
+
902
+ ### Inherited from
903
+
904
+ ```ts
905
+ AbstractForecastingDiviner.moduleIdentifierTransformers
906
+ ```
907
+
908
+ ***
909
+
910
+ ### privateResolver
911
+
912
+ ### Get Signature
913
+
914
+ ```ts
915
+ get privateResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
916
+ ```
917
+
918
+ #### Returns
919
+
920
+ `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
921
+
922
+ ### Inherited from
923
+
924
+ ```ts
925
+ AbstractForecastingDiviner.privateResolver
926
+ ```
927
+
928
+ ***
929
+
930
+ ### root
931
+
932
+ ### Get Signature
933
+
934
+ ```ts
935
+ get root(): this;
936
+ ```
937
+
938
+ #### Returns
939
+
940
+ `this`
941
+
942
+ ### Inherited from
943
+
944
+ ```ts
945
+ AbstractForecastingDiviner.root
946
+ ```
947
+
948
+ ***
949
+
950
+ ### timeBudget
951
+
952
+ ### Get Signature
953
+
954
+ ```ts
955
+ get timeBudget(): number | undefined;
956
+ ```
957
+
958
+ #### Returns
959
+
960
+ `number` \| `undefined`
961
+
962
+ ### Inherited from
963
+
964
+ ```ts
965
+ AbstractForecastingDiviner.timeBudget
966
+ ```
967
+
968
+ ***
969
+
970
+ ### upResolver
971
+
972
+ ### Get Signature
973
+
974
+ ```ts
975
+ get upResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
976
+ ```
977
+
978
+ #### Returns
979
+
980
+ `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
981
+
982
+ ### Inherited from
983
+
984
+ ```ts
985
+ AbstractForecastingDiviner.upResolver
986
+ ```
987
+
988
+ ## Methods
989
+
990
+ ### divine()
991
+
992
+ ```ts
993
+ divine(payloads?, retryConfigIn?): Promise<DivinerDivineResult<ForecastPayload>[]>;
994
+ ```
995
+
996
+ **`Function`**
997
+
998
+ divine The main entry point for a diviner. Do not override this function. Implement/override divineHandler for custom functionality
999
+
1000
+ ### Parameters
1001
+
1002
+ #### payloads?
1003
+
1004
+ `ForecastingDivinerQueryPayload`[]
1005
+
1006
+ #### retryConfigIn?
1007
+
1008
+ `RetryConfigWithComplete`\<`unknown`\>
1009
+
1010
+ ### Returns
1011
+
1012
+ `Promise`\<`DivinerDivineResult`\<`ForecastPayload`\>[]\>
1013
+
1014
+ ### Inherited from
1015
+
1016
+ ```ts
1017
+ AbstractForecastingDiviner.divine
1018
+ ```
1019
+
1020
+ ***
1021
+
1022
+ ### divineQuery()
1023
+
1024
+ ```ts
1025
+ divineQuery(
1026
+ payloads?,
1027
+ account?,
1028
+ _retry?): Promise<ModuleQueryResult<ForecastPayload>>;
1029
+ ```
1030
+
1031
+ ### Parameters
1032
+
1033
+ #### payloads?
1034
+
1035
+ `ForecastingDivinerQueryPayload`[]
1036
+
1037
+ #### account?
1038
+
1039
+ `AccountInstance`
1040
+
1041
+ #### \_retry?
1042
+
1043
+ `RetryConfig`
1044
+
1045
+ ### Returns
1046
+
1047
+ `Promise`\<`ModuleQueryResult`\<`ForecastPayload`\>\>
1048
+
1049
+ ### Inherited from
1050
+
1051
+ ```ts
1052
+ AbstractForecastingDiviner.divineQuery
1053
+ ```
1054
+
1055
+ ***
1056
+
1057
+ ### queryHandler()
1058
+
1059
+ ```ts
1060
+ protected queryHandler<T, TConfig>(
1061
+ query,
1062
+ payloads?,
1063
+ queryConfig?): Promise<ModuleQueryHandlerResult>;
1064
+ ```
1065
+
1066
+ **`Function`**
1067
+
1068
+ queryHandler Calls divine for a divine query. Override to support additional queries.
1069
+
1070
+ ### Type Parameters
1071
+
1072
+ #### T
1073
+
1074
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1075
+
1076
+ #### TConfig
1077
+
1078
+ `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
1079
+
1080
+ ### Parameters
1081
+
1082
+ #### query
1083
+
1084
+ `T`
1085
+
1086
+ #### payloads?
1087
+
1088
+ `Payload`[]
1089
+
1090
+ #### queryConfig?
1091
+
1092
+ `TConfig`
1093
+
1094
+ ### Returns
1095
+
1096
+ `Promise`\<`ModuleQueryHandlerResult`\>
1097
+
1098
+ ### Inherited from
1099
+
1100
+ ```ts
1101
+ AbstractForecastingDiviner.queryHandler
1102
+ ```
1103
+
1104
+ ***
1105
+
1106
+ ### startHandler()
1107
+
1108
+ ```ts
1109
+ protected startHandler(): Promise<void>;
1110
+ ```
1111
+
1112
+ ### Returns
1113
+
1114
+ `Promise`\<`void`\>
1115
+
1116
+ ### Inherited from
1117
+
1118
+ ```ts
1119
+ AbstractForecastingDiviner.startHandler
1120
+ ```
1121
+
1122
+ ***
1123
+
1124
+ ### stopHandler()
1125
+
1126
+ ```ts
1127
+ protected stopHandler(): Promise<void>;
1128
+ ```
1129
+
1130
+ ### Returns
1131
+
1132
+ `Promise`\<`void`\>
1133
+
1134
+ ### Inherited from
1135
+
1136
+ ```ts
1137
+ AbstractForecastingDiviner.stopHandler
1138
+ ```
1139
+
1140
+ ***
1141
+
1142
+ ### divineHandler()
1143
+
1144
+ ```ts
1145
+ protected divineHandler(payloads?): Promise<ForecastPayload[]>;
1146
+ ```
1147
+
1148
+ **`Function`**
1149
+
1150
+ divineHandler Implement or override to add custom functionality to a diviner
1151
+
1152
+ ### Parameters
1153
+
1154
+ #### payloads?
1155
+
1156
+ `ForecastingDivinerQueryPayload`[]
1157
+
1158
+ ### Returns
1159
+
1160
+ `Promise`\<`ForecastPayload`[]\>
1161
+
1162
+ ### Inherited from
1163
+
1164
+ ```ts
1165
+ AbstractForecastingDiviner.divineHandler
1166
+ ```
1167
+
1168
+ ***
1169
+
1170
+ ### getPayloadsInWindow()
1171
+
1172
+ ```ts
1173
+ protected getPayloadsInWindow(_startTimestamp, _stopTimestamp): Promise<Payload[]>;
1174
+ ```
1175
+
1176
+ ### Parameters
1177
+
1178
+ #### \_startTimestamp
1179
+
1180
+ `number`
1181
+
1182
+ #### \_stopTimestamp
1183
+
1184
+ `number`
1185
+
1186
+ ### Returns
1187
+
1188
+ `Promise`\<`Payload`[]\>
1189
+
1190
+ ### Overrides
1191
+
1192
+ ```ts
1193
+ AbstractForecastingDiviner.getPayloadsInWindow
1194
+ ```
1195
+
1196
+ ***
1197
+
1198
+ ### \_getRootFunction()
1199
+
1200
+ ```ts
1201
+ static _getRootFunction(funcName): any;
1202
+ ```
1203
+
1204
+ ### Parameters
1205
+
1206
+ #### funcName
1207
+
1208
+ `string`
1209
+
1210
+ ### Returns
1211
+
1212
+ `any`
1213
+
1214
+ ### Inherited from
1215
+
1216
+ ```ts
1217
+ AbstractForecastingDiviner._getRootFunction
1218
+ ```
1219
+
1220
+ ***
1221
+
1222
+ ### \_noOverride()
1223
+
1224
+ ```ts
1225
+ static _noOverride(functionName): void;
1226
+ ```
1227
+
1228
+ ### Parameters
1229
+
1230
+ #### functionName
1231
+
1232
+ `string`
1233
+
1234
+ ### Returns
1235
+
1236
+ `void`
1237
+
1238
+ ### Inherited from
1239
+
1240
+ ```ts
1241
+ AbstractForecastingDiviner._noOverride
1242
+ ```
1243
+
1244
+ ***
1245
+
1246
+ ### createHandler()
1247
+
1248
+ ```ts
1249
+ static createHandler<T>(inInstance): Promise<T & AbstractModule<any, any>>;
1250
+ ```
1251
+
1252
+ Static hook called during creation to perform additional initialization.
1253
+ Override in subclasses to customize post-construction setup.
1254
+
1255
+ ### Type Parameters
1256
+
1257
+ #### T
1258
+
1259
+ `T` *extends* `CreatableInstance`\<`CreatableParams`, `EventData`\>
1260
+
1261
+ ### Parameters
1262
+
1263
+ #### inInstance
1264
+
1265
+ `T`
1266
+
1267
+ ### Returns
1268
+
1269
+ `Promise`\<`T` & `AbstractModule`\<`any`, `any`\>\>
1270
+
1271
+ The instance, potentially modified
1272
+
1273
+ ### Inherited from
1274
+
1275
+ ```ts
1276
+ AbstractForecastingDiviner.createHandler
1277
+ ```
1278
+
1279
+ ***
1280
+
1281
+ ### determineAccount()
1282
+
1283
+ ```ts
1284
+ static determineAccount(params): Promise<AccountInstance>;
1285
+ ```
1286
+
1287
+ ### Parameters
1288
+
1289
+ #### params
1290
+
1291
+ ##### account?
1292
+
1293
+ `AccountInstance` \| `"random"`
1294
+
1295
+ ##### accountPath?
1296
+
1297
+ `string`
1298
+
1299
+ ##### wallet?
1300
+
1301
+ `WalletInstance`
1302
+
1303
+ ### Returns
1304
+
1305
+ `Promise`\<`AccountInstance`\>
1306
+
1307
+ ### Inherited from
1308
+
1309
+ ```ts
1310
+ AbstractForecastingDiviner.determineAccount
1311
+ ```
1312
+
1313
+ ***
1314
+
1315
+ ### factory()
1316
+
1317
+ ```ts
1318
+ static factory<TModule>(this, params?): CreatableModuleFactory<TModule>;
1319
+ ```
1320
+
1321
+ ### Type Parameters
1322
+
1323
+ #### TModule
1324
+
1325
+ `TModule` *extends* `CreatableModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1326
+
1327
+ ### Parameters
1328
+
1329
+ #### this
1330
+
1331
+ `CreatableModule`\<`TModule`\>
1332
+
1333
+ #### params?
1334
+
1335
+ `Partial`\<`TModule`\[`"params"`\]\>
1336
+
1337
+ ### Returns
1338
+
1339
+ `CreatableModuleFactory`\<`TModule`\>
1340
+
1341
+ ### Inherited from
1342
+
1343
+ ```ts
1344
+ AbstractForecastingDiviner.factory
1345
+ ```
1346
+
1347
+ ***
1348
+
1349
+ ### isAllowedSchema()
1350
+
1351
+ ```ts
1352
+ static isAllowedSchema(schema): boolean;
1353
+ ```
1354
+
1355
+ ### Parameters
1356
+
1357
+ #### schema
1358
+
1359
+ `Schema`
1360
+
1361
+ ### Returns
1362
+
1363
+ `boolean`
1364
+
1365
+ ### Inherited from
1366
+
1367
+ ```ts
1368
+ AbstractForecastingDiviner.isAllowedSchema
1369
+ ```
1370
+
1371
+ ***
1372
+
1373
+ ### paramsHandler()
1374
+
1375
+ ```ts
1376
+ static paramsHandler<T>(inParams?): Promise<T["params"]>;
1377
+ ```
1378
+
1379
+ Static hook called during creation to validate and transform params.
1380
+ Override in subclasses to add default values or validation.
1381
+
1382
+ ### Type Parameters
1383
+
1384
+ #### T
1385
+
1386
+ `T` *extends* `AttachableModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1387
+
1388
+ ### Parameters
1389
+
1390
+ #### inParams?
1391
+
1392
+ `Partial`\<`T`\[`"params"`\]\>
1393
+
1394
+ ### Returns
1395
+
1396
+ `Promise`\<`T`\[`"params"`\]\>
1397
+
1398
+ The processed params ready for construction
1399
+
1400
+ ### Inherited from
1401
+
1402
+ ```ts
1403
+ AbstractForecastingDiviner.paramsHandler
1404
+ ```
1405
+
1406
+ ***
1407
+
1408
+ ### \_getRootFunction()
1409
+
1410
+ ```ts
1411
+ _getRootFunction(funcName): any;
1412
+ ```
1413
+
1414
+ ### Parameters
1415
+
1416
+ #### funcName
1417
+
1418
+ `string`
1419
+
1420
+ ### Returns
1421
+
1422
+ `any`
1423
+
1424
+ ### Inherited from
1425
+
1426
+ ```ts
1427
+ AbstractForecastingDiviner._getRootFunction
1428
+ ```
1429
+
1430
+ ***
1431
+
1432
+ ### busy()
1433
+
1434
+ ```ts
1435
+ busy<R>(closure): Promise<R>;
1436
+ ```
1437
+
1438
+ ### Type Parameters
1439
+
1440
+ #### R
1441
+
1442
+ `R`
1443
+
1444
+ ### Parameters
1445
+
1446
+ #### closure
1447
+
1448
+ () => `Promise`\<`R`\>
1449
+
1450
+ ### Returns
1451
+
1452
+ `Promise`\<`R`\>
1453
+
1454
+ ### Inherited from
1455
+
1456
+ ```ts
1457
+ AbstractForecastingDiviner.busy
1458
+ ```
1459
+
1460
+ ***
1461
+
1462
+ ### emit()
1463
+
1464
+ ```ts
1465
+ emit<TEventName, TEventArgs>(eventName, eventArgs): Promise<void>;
1466
+ ```
1467
+
1468
+ Emits an event, invoking all registered listeners concurrently.
1469
+
1470
+ ### Type Parameters
1471
+
1472
+ #### TEventName
1473
+
1474
+ `TEventName` *extends* `string` \| `number` \| `symbol` = `string` \| `number` \| `symbol`
1475
+
1476
+ #### TEventArgs
1477
+
1478
+ `TEventArgs` *extends* `EventArgs` = `DivinerModuleEventData`\<`DivinerInstance`\<`TParams`, `ForecastingDivinerQueryPayload`, `ForecastPayload`, `DivinerModuleEventData`\>, `ForecastingDivinerQueryPayload`, `ForecastPayload`\>\[`TEventName`\]
1479
+
1480
+ ### Parameters
1481
+
1482
+ #### eventName
1483
+
1484
+ `TEventName`
1485
+
1486
+ The event to emit.
1487
+
1488
+ #### eventArgs
1489
+
1490
+ `TEventArgs`
1491
+
1492
+ The data to pass to listeners.
1493
+
1494
+ ### Returns
1495
+
1496
+ `Promise`\<`void`\>
1497
+
1498
+ ### Inherited from
1499
+
1500
+ ```ts
1501
+ AbstractForecastingDiviner.emit
1502
+ ```
1503
+
1504
+ ***
1505
+
1506
+ ### isSupportedQuery()
1507
+
1508
+ ```ts
1509
+ isSupportedQuery(query, assert?): boolean;
1510
+ ```
1511
+
1512
+ ### Parameters
1513
+
1514
+ #### query
1515
+
1516
+ `Schema`
1517
+
1518
+ #### assert?
1519
+
1520
+ `string` \| `boolean`
1521
+
1522
+ ### Returns
1523
+
1524
+ `boolean`
1525
+
1526
+ ### Inherited from
1527
+
1528
+ ```ts
1529
+ AbstractForecastingDiviner.isSupportedQuery
1530
+ ```
1531
+
1532
+ ***
1533
+
1534
+ ### previousHash()
1535
+
1536
+ ```ts
1537
+ previousHash(): Promisable<string | undefined>;
1538
+ ```
1539
+
1540
+ ### Returns
1541
+
1542
+ `Promisable`\<`string` \| `undefined`\>
1543
+
1544
+ ### Inherited from
1545
+
1546
+ ```ts
1547
+ AbstractForecastingDiviner.previousHash
1548
+ ```
1549
+
1550
+ ***
1551
+
1552
+ ### query()
1553
+
1554
+ ```ts
1555
+ query<T, TConfig>(
1556
+ query,
1557
+ payloads?,
1558
+ queryConfig?): Promise<ModuleQueryResult>;
1559
+ ```
1560
+
1561
+ ### Type Parameters
1562
+
1563
+ #### T
1564
+
1565
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1566
+
1567
+ #### TConfig
1568
+
1569
+ `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
1570
+
1571
+ ### Parameters
1572
+
1573
+ #### query
1574
+
1575
+ `T`
1576
+
1577
+ #### payloads?
1578
+
1579
+ `Payload`[]
1580
+
1581
+ #### queryConfig?
1582
+
1583
+ `TConfig`
1584
+
1585
+ ### Returns
1586
+
1587
+ `Promise`\<`ModuleQueryResult`\>
1588
+
1589
+ ### Inherited from
1590
+
1591
+ ```ts
1592
+ AbstractForecastingDiviner.query
1593
+ ```
1594
+
1595
+ ***
1596
+
1597
+ ### queryable()
1598
+
1599
+ ```ts
1600
+ queryable<T, TConfig>(
1601
+ query,
1602
+ payloads?,
1603
+ queryConfig?): Promise<boolean>;
1604
+ ```
1605
+
1606
+ ### Type Parameters
1607
+
1608
+ #### T
1609
+
1610
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1611
+
1612
+ #### TConfig
1613
+
1614
+ `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
1615
+
1616
+ ### Parameters
1617
+
1618
+ #### query
1619
+
1620
+ `T`
1621
+
1622
+ #### payloads?
1623
+
1624
+ `Payload`[]
1625
+
1626
+ #### queryConfig?
1627
+
1628
+ `TConfig`
1629
+
1630
+ ### Returns
1631
+
1632
+ `Promise`\<`boolean`\>
1633
+
1634
+ ### Inherited from
1635
+
1636
+ ```ts
1637
+ AbstractForecastingDiviner.queryable
1638
+ ```
1639
+
1640
+ ***
1641
+
1642
+ ### \_checkDead()
1643
+
1644
+ ```ts
1645
+ protected _checkDead(): void;
1646
+ ```
1647
+
1648
+ ### Returns
1649
+
1650
+ `void`
1651
+
1652
+ ### Inherited from
1653
+
1654
+ ```ts
1655
+ AbstractForecastingDiviner._checkDead
1656
+ ```
1657
+
1658
+ ***
1659
+
1660
+ ### archivistInstance()
1661
+
1662
+ ### Call Signature
1663
+
1664
+ ```ts
1665
+ protected archivistInstance(): Promise<
1666
+ | ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
1667
+ | undefined>;
1668
+ ```
1669
+
1670
+ #### Returns
1671
+
1672
+ `Promise`\<
1673
+ \| `ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>
1674
+ \| `undefined`\>
1675
+
1676
+ #### Inherited from
1677
+
1678
+ ```ts
1679
+ AbstractForecastingDiviner.archivistInstance
1680
+ ```
1681
+
1682
+ ### Call Signature
1683
+
1684
+ ```ts
1685
+ protected archivistInstance(required): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>>;
1686
+ ```
1687
+
1688
+ #### Parameters
1689
+
1690
+ ##### required
1691
+
1692
+ `true`
1693
+
1694
+ #### Returns
1695
+
1696
+ `Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>\>
1697
+
1698
+ #### Inherited from
1699
+
1700
+ ```ts
1701
+ AbstractForecastingDiviner.archivistInstance
1702
+ ```
1703
+
1704
+ ***
1705
+
1706
+ ### bindHashes()
1707
+
1708
+ ```ts
1709
+ protected bindHashes(
1710
+ hashes,
1711
+ schema,
1712
+ account?): PromiseEx<unknown, AccountInstance>;
1713
+ ```
1714
+
1715
+ ### Parameters
1716
+
1717
+ #### hashes
1718
+
1719
+ `BrandedHash`[]
1720
+
1721
+ #### schema
1722
+
1723
+ `Schema`[]
1724
+
1725
+ #### account?
1726
+
1727
+ `AccountInstance`
1728
+
1729
+ ### Returns
1730
+
1731
+ `PromiseEx`\<`unknown`, `AccountInstance`\>
1732
+
1733
+ ### Inherited from
1734
+
1735
+ ```ts
1736
+ AbstractForecastingDiviner.bindHashes
1737
+ ```
1738
+
1739
+ ***
1740
+
1741
+ ### bindHashesInternal()
1742
+
1743
+ ```ts
1744
+ protected bindHashesInternal(
1745
+ hashes,
1746
+ schema,
1747
+ account?): Promise<{
1748
+ schema: "network.xyo.boundwitness" & object;
1749
+ addresses: Lowercase<string> & object & object[];
1750
+ payload_hashes: BrandedHash[];
1751
+ payload_schemas: BrandedSchema<string>[];
1752
+ previous_hashes: (BrandedHash | null)[];
1753
+ $destination?: Lowercase<string> & object & object;
1754
+ $sourceQuery?: BrandedHash;
1755
+ $signatures: (BrandedHex | null)[];
1756
+ }>;
1757
+ ```
1758
+
1759
+ ### Parameters
1760
+
1761
+ #### hashes
1762
+
1763
+ `BrandedHash`[]
1764
+
1765
+ #### schema
1766
+
1767
+ `Schema`[]
1768
+
1769
+ #### account?
1770
+
1771
+ `AccountInstance`
1772
+
1773
+ ### Returns
1774
+
1775
+ `Promise`\<\{
1776
+ `schema`: `"network.xyo.boundwitness"` & `object`;
1777
+ `addresses`: `Lowercase`\<`string`\> & `object` & `object`[];
1778
+ `payload_hashes`: `BrandedHash`[];
1779
+ `payload_schemas`: `BrandedSchema`\<`string`\>[];
1780
+ `previous_hashes`: (`BrandedHash` \| `null`)[];
1781
+ `$destination?`: `Lowercase`\<`string`\> & `object` & `object`;
1782
+ `$sourceQuery?`: `BrandedHash`;
1783
+ `$signatures`: (`BrandedHex` \| `null`)[];
1784
+ \}\>
1785
+
1786
+ ### Inherited from
1787
+
1788
+ ```ts
1789
+ AbstractForecastingDiviner.bindHashesInternal
1790
+ ```
1791
+
1792
+ ***
1793
+
1794
+ ### bindQuery()
1795
+
1796
+ ```ts
1797
+ protected bindQuery<T>(
1798
+ query,
1799
+ payloads?,
1800
+ account?,
1801
+ additionalSigners?): PromiseEx<[UnsignedQueryBoundWitness, Payload[], Payload[]], AccountInstance>;
1802
+ ```
1803
+
1804
+ ### Type Parameters
1805
+
1806
+ #### T
1807
+
1808
+ `T` *extends* `Query`
1809
+
1810
+ ### Parameters
1811
+
1812
+ #### query
1813
+
1814
+ `T`
1815
+
1816
+ #### payloads?
1817
+
1818
+ `Payload`[]
1819
+
1820
+ #### account?
1821
+
1822
+ `AccountInstance`
1823
+
1824
+ #### additionalSigners?
1825
+
1826
+ `AccountInstance`[]
1827
+
1828
+ ### Returns
1829
+
1830
+ `PromiseEx`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `Payload`[]\], `AccountInstance`\>
1831
+
1832
+ ### Inherited from
1833
+
1834
+ ```ts
1835
+ AbstractForecastingDiviner.bindQuery
1836
+ ```
1837
+
1838
+ ***
1839
+
1840
+ ### bindQueryInternal()
1841
+
1842
+ ```ts
1843
+ protected bindQueryInternal<T>(
1844
+ query,
1845
+ payloads?,
1846
+ account?,
1847
+ additionalSigners?): Promise<[UnsignedQueryBoundWitness, Payload[], Payload[]]>;
1848
+ ```
1849
+
1850
+ ### Type Parameters
1851
+
1852
+ #### T
1853
+
1854
+ `T` *extends* `Query`
1855
+
1856
+ ### Parameters
1857
+
1858
+ #### query
1859
+
1860
+ `T`
1861
+
1862
+ #### payloads?
1863
+
1864
+ `Payload`[]
1865
+
1866
+ #### account?
1867
+
1868
+ `AccountInstance`
1869
+
1870
+ #### additionalSigners?
1871
+
1872
+ `AccountInstance`[]
1873
+
1874
+ ### Returns
1875
+
1876
+ `Promise`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `Payload`[]\]\>
1877
+
1878
+ ### Inherited from
1879
+
1880
+ ```ts
1881
+ AbstractForecastingDiviner.bindQueryInternal
1882
+ ```
1883
+
1884
+ ***
1885
+
1886
+ ### bindQueryResult()
1887
+
1888
+ ```ts
1889
+ protected bindQueryResult<T>(
1890
+ query,
1891
+ payloads,
1892
+ additionalWitnesses?,
1893
+ errors?): Promise<ModuleQueryResult>;
1894
+ ```
1895
+
1896
+ ### Type Parameters
1897
+
1898
+ #### T
1899
+
1900
+ `T` *extends* `Query`
1901
+
1902
+ ### Parameters
1903
+
1904
+ #### query
1905
+
1906
+ `T`
1907
+
1908
+ #### payloads
1909
+
1910
+ `Payload`[]
1911
+
1912
+ #### additionalWitnesses?
1913
+
1914
+ `AccountInstance`[]
1915
+
1916
+ #### errors?
1917
+
1918
+ `ModuleError`[]
1919
+
1920
+ ### Returns
1921
+
1922
+ `Promise`\<`ModuleQueryResult`\>
1923
+
1924
+ ### Inherited from
1925
+
1926
+ ```ts
1927
+ AbstractForecastingDiviner.bindQueryResult
1928
+ ```
1929
+
1930
+ ***
1931
+
1932
+ ### generateConfigAndAddress()
1933
+
1934
+ ```ts
1935
+ protected generateConfigAndAddress(_maxDepth?): Promisable<Payload[]>;
1936
+ ```
1937
+
1938
+ ### Parameters
1939
+
1940
+ #### \_maxDepth?
1941
+
1942
+ `number`
1943
+
1944
+ ### Returns
1945
+
1946
+ `Promisable`\<`Payload`[]\>
1947
+
1948
+ ### Inherited from
1949
+
1950
+ ```ts
1951
+ AbstractForecastingDiviner.generateConfigAndAddress
1952
+ ```
1953
+
1954
+ ***
1955
+
1956
+ ### generateDescribe()
1957
+
1958
+ ```ts
1959
+ protected generateDescribe(): Promise<ModuleDescriptionPayload>;
1960
+ ```
1961
+
1962
+ ### Returns
1963
+
1964
+ `Promise`\<`ModuleDescriptionPayload`\>
1965
+
1966
+ ### Inherited from
1967
+
1968
+ ```ts
1969
+ AbstractForecastingDiviner.generateDescribe
1970
+ ```
1971
+
1972
+ ***
1973
+
1974
+ ### ~~getArchivist()~~
1975
+
1976
+ ```ts
1977
+ protected getArchivist(): Promise<
1978
+ | ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
1979
+ | undefined>;
1980
+ ```
1981
+
1982
+ ### Returns
1983
+
1984
+ `Promise`\<
1985
+ \| `ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>
1986
+ \| `undefined`\>
1987
+
1988
+ ### Deprecated
1989
+
1990
+ use archivistInstance() instead
1991
+
1992
+ ### Inherited from
1993
+
1994
+ ```ts
1995
+ AbstractForecastingDiviner.getArchivist
1996
+ ```
1997
+
1998
+ ***
1999
+
2000
+ ### isAllowedArchivingQuery()
2001
+
2002
+ ```ts
2003
+ protected isAllowedArchivingQuery(schema): boolean;
2004
+ ```
2005
+
2006
+ ### Parameters
2007
+
2008
+ #### schema
2009
+
2010
+ `Schema`
2011
+
2012
+ ### Returns
2013
+
2014
+ `boolean`
2015
+
2016
+ ### Inherited from
2017
+
2018
+ ```ts
2019
+ AbstractForecastingDiviner.isAllowedArchivingQuery
2020
+ ```
2021
+
2022
+ ***
2023
+
2024
+ ### moduleAddressHandler()
2025
+
2026
+ ```ts
2027
+ protected moduleAddressHandler(): Promisable<(AddressPayload | AddressPreviousHashPayload)[]>;
2028
+ ```
2029
+
2030
+ ### Returns
2031
+
2032
+ `Promisable`\<(`AddressPayload` \| `AddressPreviousHashPayload`)[]\>
2033
+
2034
+ ### Inherited from
2035
+
2036
+ ```ts
2037
+ AbstractForecastingDiviner.moduleAddressHandler
2038
+ ```
2039
+
2040
+ ***
2041
+
2042
+ ### stateHandler()
2043
+
2044
+ ```ts
2045
+ protected stateHandler(): Promise<Payload[]>;
2046
+ ```
2047
+
2048
+ ### Returns
2049
+
2050
+ `Promise`\<`Payload`[]\>
2051
+
2052
+ ### Inherited from
2053
+
2054
+ ```ts
2055
+ AbstractForecastingDiviner.stateHandler
2056
+ ```
2057
+
2058
+ ***
2059
+
2060
+ ### subscribeHandler()
2061
+
2062
+ ```ts
2063
+ protected subscribeHandler(): void;
2064
+ ```
2065
+
2066
+ ### Returns
2067
+
2068
+ `void`
2069
+
2070
+ ### Inherited from
2071
+
2072
+ ```ts
2073
+ AbstractForecastingDiviner.subscribeHandler
2074
+ ```
2075
+
2076
+ ***
2077
+
2078
+ ### validateConfig()
2079
+
2080
+ ```ts
2081
+ protected validateConfig(config?, parents?): boolean;
2082
+ ```
2083
+
2084
+ ### Parameters
2085
+
2086
+ #### config?
2087
+
2088
+ `unknown`
2089
+
2090
+ #### parents?
2091
+
2092
+ `string`[]
2093
+
2094
+ ### Returns
2095
+
2096
+ `boolean`
2097
+
2098
+ ### Inherited from
2099
+
2100
+ ```ts
2101
+ AbstractForecastingDiviner.validateConfig
2102
+ ```
2103
+
2104
+ ***
2105
+
2106
+ ### addParent()
2107
+
2108
+ ```ts
2109
+ addParent(mod): void;
2110
+ ```
2111
+
2112
+ ### Parameters
2113
+
2114
+ #### mod
2115
+
2116
+ `ModuleInstance`
2117
+
2118
+ ### Returns
2119
+
2120
+ `void`
2121
+
2122
+ ### Inherited from
2123
+
2124
+ ```ts
2125
+ AbstractForecastingDiviner.addParent
2126
+ ```
2127
+
2128
+ ***
2129
+
2130
+ ### certifyParents()
2131
+
2132
+ ```ts
2133
+ certifyParents(): Promise<Payload[]>;
2134
+ ```
2135
+
2136
+ ### Returns
2137
+
2138
+ `Promise`\<`Payload`[]\>
2139
+
2140
+ ### Inherited from
2141
+
2142
+ ```ts
2143
+ AbstractForecastingDiviner.certifyParents
2144
+ ```
2145
+
2146
+ ***
2147
+
2148
+ ### createHandler()
2149
+
2150
+ ```ts
2151
+ createHandler(): Promise<void>;
2152
+ ```
2153
+
2154
+ ### Returns
2155
+
2156
+ `Promise`\<`void`\>
2157
+
2158
+ ### Inherited from
2159
+
2160
+ ```ts
2161
+ AbstractForecastingDiviner.createHandler
2162
+ ```
2163
+
2164
+ ***
2165
+
2166
+ ### manifest()
2167
+
2168
+ ```ts
2169
+ manifest(maxDepth?): Promise<ModuleManifestPayload>;
2170
+ ```
2171
+
2172
+ ### Parameters
2173
+
2174
+ #### maxDepth?
2175
+
2176
+ `number`
2177
+
2178
+ ### Returns
2179
+
2180
+ `Promise`\<`ModuleManifestPayload`\>
2181
+
2182
+ ### Inherited from
2183
+
2184
+ ```ts
2185
+ AbstractForecastingDiviner.manifest
2186
+ ```
2187
+
2188
+ ***
2189
+
2190
+ ### manifestQuery()
2191
+
2192
+ ```ts
2193
+ manifestQuery(account, maxDepth?): Promise<ModuleQueryResult<ModuleManifestPayload>>;
2194
+ ```
2195
+
2196
+ ### Parameters
2197
+
2198
+ #### account
2199
+
2200
+ `AccountInstance`
2201
+
2202
+ #### maxDepth?
2203
+
2204
+ `number`
2205
+
2206
+ ### Returns
2207
+
2208
+ `Promise`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
2209
+
2210
+ ### Inherited from
2211
+
2212
+ ```ts
2213
+ AbstractForecastingDiviner.manifestQuery
2214
+ ```
2215
+
2216
+ ***
2217
+
2218
+ ### moduleAddress()
2219
+
2220
+ ```ts
2221
+ moduleAddress(): Promise<(AddressPayload | AddressPreviousHashPayload)[]>;
2222
+ ```
2223
+
2224
+ ### Returns
2225
+
2226
+ `Promise`\<(`AddressPayload` \| `AddressPreviousHashPayload`)[]\>
2227
+
2228
+ ### Inherited from
2229
+
2230
+ ```ts
2231
+ AbstractForecastingDiviner.moduleAddress
2232
+ ```
2233
+
2234
+ ***
2235
+
2236
+ ### parents()
2237
+
2238
+ ```ts
2239
+ parents(): Promisable<NodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>[]>;
2240
+ ```
2241
+
2242
+ ### Returns
2243
+
2244
+ `Promisable`\<`NodeInstance`\<`NodeParams`\<`AnyConfigSchema`\<`NodeConfig`\>\>, `NodeModuleEventData`\>[]\>
2245
+
2246
+ ### Inherited from
2247
+
2248
+ ```ts
2249
+ AbstractForecastingDiviner.parents
2250
+ ```
2251
+
2252
+ ***
2253
+
2254
+ ### privateChildren()
2255
+
2256
+ ```ts
2257
+ privateChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
2258
+ ```
2259
+
2260
+ ### Returns
2261
+
2262
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
2263
+
2264
+ ### Inherited from
2265
+
2266
+ ```ts
2267
+ AbstractForecastingDiviner.privateChildren
2268
+ ```
2269
+
2270
+ ***
2271
+
2272
+ ### publicChildren()
2273
+
2274
+ ```ts
2275
+ publicChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
2276
+ ```
2277
+
2278
+ ### Returns
2279
+
2280
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
2281
+
2282
+ ### Inherited from
2283
+
2284
+ ```ts
2285
+ AbstractForecastingDiviner.publicChildren
2286
+ ```
2287
+
2288
+ ***
2289
+
2290
+ ### removeParent()
2291
+
2292
+ ```ts
2293
+ removeParent(address): void;
2294
+ ```
2295
+
2296
+ ### Parameters
2297
+
2298
+ #### address
2299
+
2300
+ `BrandedAddress`
2301
+
2302
+ ### Returns
2303
+
2304
+ `void`
2305
+
2306
+ ### Inherited from
2307
+
2308
+ ```ts
2309
+ AbstractForecastingDiviner.removeParent
2310
+ ```
2311
+
2312
+ ***
2313
+
2314
+ ### resolve()
2315
+
2316
+ ### Call Signature
2317
+
2318
+ ```ts
2319
+ resolve(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
2320
+ ```
2321
+
2322
+ #### Returns
2323
+
2324
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
2325
+
2326
+ #### Inherited from
2327
+
2328
+ ```ts
2329
+ AbstractForecastingDiviner.resolve
2330
+ ```
2331
+
2332
+ ### Call Signature
2333
+
2334
+ ```ts
2335
+ resolve<T>(all, options?): Promise<T[]>;
2336
+ ```
2337
+
2338
+ #### Type Parameters
2339
+
2340
+ ##### T
2341
+
2342
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2343
+
2344
+ #### Parameters
2345
+
2346
+ ##### all
2347
+
2348
+ `"*"`
2349
+
2350
+ ##### options?
2351
+
2352
+ `ModuleFilterOptions`\<`T`\>
2353
+
2354
+ #### Returns
2355
+
2356
+ `Promise`\<`T`[]\>
2357
+
2358
+ #### Inherited from
2359
+
2360
+ ```ts
2361
+ AbstractForecastingDiviner.resolve
2362
+ ```
2363
+
2364
+ ### Call Signature
2365
+
2366
+ ```ts
2367
+ resolve<T>(id, options?): Promise<T | undefined>;
2368
+ ```
2369
+
2370
+ #### Type Parameters
2371
+
2372
+ ##### T
2373
+
2374
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2375
+
2376
+ #### Parameters
2377
+
2378
+ ##### id
2379
+
2380
+ `ModuleIdentifier`
2381
+
2382
+ ##### options?
2383
+
2384
+ `ModuleFilterOptions`\<`T`\>
2385
+
2386
+ #### Returns
2387
+
2388
+ `Promise`\<`T` \| `undefined`\>
2389
+
2390
+ #### Inherited from
2391
+
2392
+ ```ts
2393
+ AbstractForecastingDiviner.resolve
2394
+ ```
2395
+
2396
+ ***
2397
+
2398
+ ### resolveIdentifier()
2399
+
2400
+ ```ts
2401
+ resolveIdentifier(id, options?): Promise<BrandedAddress | undefined>;
2402
+ ```
2403
+
2404
+ ### Parameters
2405
+
2406
+ #### id
2407
+
2408
+ `ModuleIdentifier`
2409
+
2410
+ #### options?
2411
+
2412
+ `ObjectFilterOptions`\<`AnyObject`\>
2413
+
2414
+ ### Returns
2415
+
2416
+ `Promise`\<`BrandedAddress` \| `undefined`\>
2417
+
2418
+ ### Inherited from
2419
+
2420
+ ```ts
2421
+ AbstractForecastingDiviner.resolveIdentifier
2422
+ ```
2423
+
2424
+ ***
2425
+
2426
+ ### resolvePrivate()
2427
+
2428
+ ### Call Signature
2429
+
2430
+ ```ts
2431
+ resolvePrivate<T>(all, options?): Promise<T[]>;
2432
+ ```
2433
+
2434
+ #### Type Parameters
2435
+
2436
+ ##### T
2437
+
2438
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2439
+
2440
+ #### Parameters
2441
+
2442
+ ##### all
2443
+
2444
+ `"*"`
2445
+
2446
+ ##### options?
2447
+
2448
+ `ModuleFilterOptions`\<`T`\>
2449
+
2450
+ #### Returns
2451
+
2452
+ `Promise`\<`T`[]\>
2453
+
2454
+ #### Inherited from
2455
+
2456
+ ```ts
2457
+ AbstractForecastingDiviner.resolvePrivate
2458
+ ```
2459
+
2460
+ ### Call Signature
2461
+
2462
+ ```ts
2463
+ resolvePrivate<T>(id, options?): Promise<T | undefined>;
2464
+ ```
2465
+
2466
+ #### Type Parameters
2467
+
2468
+ ##### T
2469
+
2470
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2471
+
2472
+ #### Parameters
2473
+
2474
+ ##### id
2475
+
2476
+ `ModuleIdentifier`
2477
+
2478
+ ##### options?
2479
+
2480
+ `ModuleFilterOptions`\<`T`\>
2481
+
2482
+ #### Returns
2483
+
2484
+ `Promise`\<`T` \| `undefined`\>
2485
+
2486
+ #### Inherited from
2487
+
2488
+ ```ts
2489
+ AbstractForecastingDiviner.resolvePrivate
2490
+ ```
2491
+
2492
+ ***
2493
+
2494
+ ### siblings()
2495
+
2496
+ ```ts
2497
+ siblings(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
2498
+ ```
2499
+
2500
+ ### Returns
2501
+
2502
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
2503
+
2504
+ ### Inherited from
2505
+
2506
+ ```ts
2507
+ AbstractForecastingDiviner.siblings
2508
+ ```
2509
+
2510
+ ***
2511
+
2512
+ ### state()
2513
+
2514
+ ```ts
2515
+ state(): Promise<Payload[]>;
2516
+ ```
2517
+
2518
+ ### Returns
2519
+
2520
+ `Promise`\<`Payload`[]\>
2521
+
2522
+ ### Inherited from
2523
+
2524
+ ```ts
2525
+ AbstractForecastingDiviner.state
2526
+ ```
2527
+
2528
+ ***
2529
+
2530
+ ### stateQuery()
2531
+
2532
+ ```ts
2533
+ stateQuery(account): Promise<ModuleQueryResult>;
2534
+ ```
2535
+
2536
+ ### Parameters
2537
+
2538
+ #### account
2539
+
2540
+ `AccountInstance`
2541
+
2542
+ ### Returns
2543
+
2544
+ `Promise`\<`ModuleQueryResult`\>
2545
+
2546
+ ### Inherited from
2547
+
2548
+ ```ts
2549
+ AbstractForecastingDiviner.stateQuery
2550
+ ```
2551
+
2552
+ ***
2553
+
2554
+ ### subscribe()
2555
+
2556
+ ```ts
2557
+ subscribe(_queryAccount?): void;
2558
+ ```
2559
+
2560
+ ### Parameters
2561
+
2562
+ #### \_queryAccount?
2563
+
2564
+ `AccountInstance`
2565
+
2566
+ ### Returns
2567
+
2568
+ `void`
2569
+
2570
+ ### Inherited from
2571
+
2572
+ ```ts
2573
+ AbstractForecastingDiviner.subscribe
2574
+ ```
2575
+
2576
+ ***
2577
+
2578
+ ### manifestHandler()
2579
+
2580
+ ```ts
2581
+ protected manifestHandler(maxDepth?, _ignoreAddresses?): Promise<ModuleManifestPayload>;
2582
+ ```
2583
+
2584
+ ### Parameters
2585
+
2586
+ #### maxDepth?
2587
+
2588
+ `number`
2589
+
2590
+ #### \_ignoreAddresses?
2591
+
2592
+ `BrandedAddress`[]
2593
+
2594
+ ### Returns
2595
+
2596
+ `Promise`\<`ModuleManifestPayload`\>
2597
+
2598
+ ### Inherited from
2599
+
2600
+ ```ts
2601
+ AbstractForecastingDiviner.manifestHandler
2602
+ ```
2603
+
2604
+ ***
2605
+
2606
+ ### resolveArchivingArchivists()
2607
+
2608
+ ```ts
2609
+ protected resolveArchivingArchivists(): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>[]>;
2610
+ ```
2611
+
2612
+ ### Returns
2613
+
2614
+ `Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>[]\>
2615
+
2616
+ ### Inherited from
2617
+
2618
+ ```ts
2619
+ AbstractForecastingDiviner.resolveArchivingArchivists
2620
+ ```
2621
+
2622
+ ***
2623
+
2624
+ ### sendQuery()
2625
+
2626
+ ```ts
2627
+ protected sendQuery<T, P, R>(
2628
+ queryPayload,
2629
+ payloads?,
2630
+ account?): Promise<R[]>;
2631
+ ```
2632
+
2633
+ ### Type Parameters
2634
+
2635
+ #### T
2636
+
2637
+ `T` *extends* `Query`
2638
+
2639
+ #### P
2640
+
2641
+ `P` *extends* `Payload` = `Payload`
2642
+
2643
+ #### R
2644
+
2645
+ `R` *extends* `Payload` = `Payload`
2646
+
2647
+ ### Parameters
2648
+
2649
+ #### queryPayload
2650
+
2651
+ `T`
2652
+
2653
+ #### payloads?
2654
+
2655
+ `P`[]
2656
+
2657
+ #### account?
2658
+
2659
+ `AccountInstance`
2660
+
2661
+ ### Returns
2662
+
2663
+ `Promise`\<`R`[]\>
2664
+
2665
+ ### Inherited from
2666
+
2667
+ ```ts
2668
+ AbstractForecastingDiviner.sendQuery
2669
+ ```
2670
+
2671
+ ***
2672
+
2673
+ ### sendQueryRaw()
2674
+
2675
+ ```ts
2676
+ protected sendQueryRaw<T, P, R>(
2677
+ queryPayload,
2678
+ payloads?,
2679
+ account?): Promise<ModuleQueryResult<R>>;
2680
+ ```
2681
+
2682
+ ### Type Parameters
2683
+
2684
+ #### T
2685
+
2686
+ `T` *extends* `Query`
2687
+
2688
+ #### P
2689
+
2690
+ `P` *extends* `Payload` = `Payload`
2691
+
2692
+ #### R
2693
+
2694
+ `R` *extends* `Payload` = `Payload`
2695
+
2696
+ ### Parameters
2697
+
2698
+ #### queryPayload
2699
+
2700
+ `T`
2701
+
2702
+ #### payloads?
2703
+
2704
+ `P`[]
2705
+
2706
+ #### account?
2707
+
2708
+ `AccountInstance`
2709
+
2710
+ ### Returns
2711
+
2712
+ `Promise`\<`ModuleQueryResult`\<`R`\>\>
2713
+
2714
+ ### Inherited from
2715
+
2716
+ ```ts
2717
+ AbstractForecastingDiviner.sendQueryRaw
2718
+ ```
2719
+
2720
+ ***
2721
+
2722
+ ### storeToArchivists()
2723
+
2724
+ ```ts
2725
+ protected storeToArchivists(payloads): Promise<Payload[]>;
2726
+ ```
2727
+
2728
+ ### Parameters
2729
+
2730
+ #### payloads
2731
+
2732
+ `Payload`[]
2733
+
2734
+ ### Returns
2735
+
2736
+ `Promise`\<`Payload`[]\>
2737
+
2738
+ ### Inherited from
2739
+
2740
+ ```ts
2741
+ AbstractForecastingDiviner.storeToArchivists
2742
+ ```
2743
+
2744
+ ### type-aliases
2745
+
2746
+ ### <a id="SupportedForecastingType"></a>SupportedForecastingType
2747
+
2748
+ [**@xyo-network/diviner-forecasting-memory**](#../README)
2749
+
2750
+ ***
18
2751
 
19
- ## Credits
2752
+ ```ts
2753
+ type SupportedForecastingType = typeof arimaForecastingName | typeof seasonalArimaForecastingName;
2754
+ ```
20
2755
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
2756
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
2757
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
2758
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-forecasting-memory.svg
2759
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-forecasting-memory
2760
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-forecasting-memory.svg
2761
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE