@xyo-network/sentinel-abstract 5.3.25 → 5.3.26

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