@xyo-network/diviner-jsonpatch-memory 5.3.25 → 5.3.26

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