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