@xyo-network/diviner-distinct 5.3.25 → 5.3.27

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