@xyo-network/diviner-forecasting-abstract 5.3.25 → 5.3.26

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