@xyo-network/sentinel-wrapper 5.3.30 → 5.4.1

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 +0 -2057
  2. package/package.json +50 -54
package/README.md CHANGED
@@ -38,2063 +38,6 @@ bun add {{name}}
38
38
 
39
39
  See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
40
 
41
- ## Reference
42
-
43
- ### packages
44
-
45
- ### modules
46
-
47
- ### packages
48
-
49
- ### sentinel
50
-
51
- ### packages
52
-
53
- ### wrapper
54
-
55
- ### .temp-typedoc
56
-
57
- ### classes
58
-
59
- ### <a id="SentinelWrapper"></a>SentinelWrapper
60
-
61
- [**@xyo-network/sentinel-wrapper**](#../README)
62
-
63
- ***
64
-
65
- ## Extends
66
-
67
- - `ModuleWrapper`\<`TModule`\>
68
-
69
- ## Type Parameters
70
-
71
- ### TModule
72
-
73
- `TModule` *extends* `SentinelModule` = `SentinelModule`
74
-
75
- ## Implements
76
-
77
- - `SentinelInstance`\<`TModule`\[`"params"`\]\>
78
-
79
- ## Constructors
80
-
81
- ### Constructor
82
-
83
- ```ts
84
- new SentinelWrapper<TModule>(params): SentinelWrapper<TModule>;
85
- ```
86
-
87
- ### Parameters
88
-
89
- #### params
90
-
91
- `ModuleWrapperParams`\<`TModule`\>
92
-
93
- ### Returns
94
-
95
- `SentinelWrapper`\<`TModule`\>
96
-
97
- ### Inherited from
98
-
99
- ```ts
100
- ModuleWrapper<TModule>.constructor
101
- ```
102
-
103
- ## Properties
104
-
105
- ### eventData
106
-
107
- ```ts
108
- eventData: TModule["eventData"];
109
- ```
110
-
111
- The event data type associated with this instance.
112
-
113
- ### Implementation of
114
-
115
- ```ts
116
- SentinelInstance.eventData
117
- ```
118
-
119
- ### Inherited from
120
-
121
- ```ts
122
- ModuleWrapper.eventData
123
- ```
124
-
125
- ***
126
-
127
- ### cachedCalls
128
-
129
- ```ts
130
- protected readonly cachedCalls: LRUCache<string, Payload[], unknown>;
131
- ```
132
-
133
- ### Inherited from
134
-
135
- ```ts
136
- ModuleWrapper.cachedCalls
137
- ```
138
-
139
- ***
140
-
141
- ### wrapperParams
142
-
143
- ```ts
144
- protected readonly wrapperParams: ModuleWrapperParams<TModule>;
145
- ```
146
-
147
- ### Inherited from
148
-
149
- ```ts
150
- ModuleWrapper.wrapperParams
151
- ```
152
-
153
- ***
154
-
155
- ### instanceIdentityCheck
156
-
157
- ```ts
158
- readonly static instanceIdentityCheck: TypeCheck<SentinelInstance<SentinelParams<AnyConfigSchema<SentinelConfig<void, void>>>, SentinelModuleEventData<QueryableModule<QueryableModuleParams<AnyConfigSchema<ModuleConfig<object, void>>>, ModuleEventData<object>>>>> = isSentinelInstance;
159
- ```
160
-
161
- ### Overrides
162
-
163
- ```ts
164
- ModuleWrapper.instanceIdentityCheck
165
- ```
166
-
167
- ***
168
-
169
- ### moduleIdentityCheck
170
-
171
- ```ts
172
- readonly static moduleIdentityCheck: QueryableModuleTypeCheck<SentinelModule<SentinelParams<AnyConfigSchema<SentinelConfig<void, void>>>, SentinelModuleEventData<QueryableModule<QueryableModuleParams<AnyConfigSchema<ModuleConfig<object, void>>>, ModuleEventData<object>>>>> = isSentinelModule;
173
- ```
174
-
175
- ### Overrides
176
-
177
- ```ts
178
- ModuleWrapper.moduleIdentityCheck
179
- ```
180
-
181
- ***
182
-
183
- ### requiredQueries
184
-
185
- ```ts
186
- readonly static requiredQueries: string[];
187
- ```
188
-
189
- ### Overrides
190
-
191
- ```ts
192
- ModuleWrapper.requiredQueries
193
- ```
194
-
195
- ## Accessors
196
-
197
- ### account
198
-
199
- ### Get Signature
200
-
201
- ```ts
202
- get account(): AccountInstance;
203
- ```
204
-
205
- #### Returns
206
-
207
- `AccountInstance`
208
-
209
- ### Implementation of
210
-
211
- ```ts
212
- SentinelInstance.account
213
- ```
214
-
215
- ### Inherited from
216
-
217
- ```ts
218
- ModuleWrapper.account
219
- ```
220
-
221
- ***
222
-
223
- ### additionalSigners
224
-
225
- ### Get Signature
226
-
227
- ```ts
228
- get additionalSigners(): AccountInstance[];
229
- ```
230
-
231
- #### Returns
232
-
233
- `AccountInstance`[]
234
-
235
- ### Inherited from
236
-
237
- ```ts
238
- ModuleWrapper.additionalSigners
239
- ```
240
-
241
- ***
242
-
243
- ### address
244
-
245
- ### Get Signature
246
-
247
- ```ts
248
- get address(): Lowercase<string> & object & object;
249
- ```
250
-
251
- #### Returns
252
-
253
- `Lowercase`\<`string`\> & `object` & `object`
254
-
255
- ### Implementation of
256
-
257
- ```ts
258
- SentinelInstance.address
259
- ```
260
-
261
- ### Inherited from
262
-
263
- ```ts
264
- ModuleWrapper.address
265
- ```
266
-
267
- ***
268
-
269
- ### config
270
-
271
- ### Get Signature
272
-
273
- ```ts
274
- get config(): Exclude<TWrappedModule["params"]["config"], undefined>;
275
- ```
276
-
277
- #### Returns
278
-
279
- `Exclude`\<`TWrappedModule`\[`"params"`\]\[`"config"`\], `undefined`\>
280
-
281
- ### Implementation of
282
-
283
- ```ts
284
- SentinelInstance.config
285
- ```
286
-
287
- ### Inherited from
288
-
289
- ```ts
290
- ModuleWrapper.config
291
- ```
292
-
293
- ***
294
-
295
- ### downResolver
296
-
297
- ### Get Signature
298
-
299
- ```ts
300
- get downResolver(): ModuleResolverInstance;
301
- ```
302
-
303
- #### Returns
304
-
305
- `ModuleResolverInstance`
306
-
307
- ### Inherited from
308
-
309
- ```ts
310
- ModuleWrapper.downResolver
311
- ```
312
-
313
- ***
314
-
315
- ### id
316
-
317
- ### Get Signature
318
-
319
- ```ts
320
- get id(): string;
321
- ```
322
-
323
- The name (if specified) or address of the module
324
-
325
- #### Returns
326
-
327
- `string`
328
-
329
- ### Implementation of
330
-
331
- ```ts
332
- SentinelInstance.id
333
- ```
334
-
335
- ### Inherited from
336
-
337
- ```ts
338
- ModuleWrapper.id
339
- ```
340
-
341
- ***
342
-
343
- ### mod
344
-
345
- ### Get Signature
346
-
347
- ```ts
348
- get mod(): TWrappedModule;
349
- ```
350
-
351
- #### Returns
352
-
353
- `TWrappedModule`
354
-
355
- ### Inherited from
356
-
357
- ```ts
358
- ModuleWrapper.mod
359
- ```
360
-
361
- ***
362
-
363
- ### modName
364
-
365
- ### Get Signature
366
-
367
- ```ts
368
- get modName(): string | undefined;
369
- ```
370
-
371
- #### Returns
372
-
373
- `string` \| `undefined`
374
-
375
- ### Implementation of
376
-
377
- ```ts
378
- SentinelInstance.modName
379
- ```
380
-
381
- ### Inherited from
382
-
383
- ```ts
384
- ModuleWrapper.modName
385
- ```
386
-
387
- ***
388
-
389
- ### name
390
-
391
- ### Get Signature
392
-
393
- ```ts
394
- get name(): CreatableName;
395
- ```
396
-
397
- The name identifier for this instance.
398
-
399
- #### Returns
400
-
401
- `CreatableName`
402
-
403
- ### Implementation of
404
-
405
- ```ts
406
- SentinelInstance.name
407
- ```
408
-
409
- ### Inherited from
410
-
411
- ```ts
412
- ModuleWrapper.name
413
- ```
414
-
415
- ***
416
-
417
- ### priority
418
-
419
- ### Get Signature
420
-
421
- ```ts
422
- get priority(): 1;
423
- ```
424
-
425
- #### Returns
426
-
427
- `1`
428
-
429
- ### Implementation of
430
-
431
- ```ts
432
- SentinelInstance.priority
433
- ```
434
-
435
- ### Inherited from
436
-
437
- ```ts
438
- ModuleWrapper.priority
439
- ```
440
-
441
- ***
442
-
443
- ### privateResolver
444
-
445
- ### Get Signature
446
-
447
- ```ts
448
- get privateResolver(): ModuleResolverInstance;
449
- ```
450
-
451
- #### Returns
452
-
453
- `ModuleResolverInstance`
454
-
455
- ### Inherited from
456
-
457
- ```ts
458
- ModuleWrapper.privateResolver
459
- ```
460
-
461
- ***
462
-
463
- ### queries
464
-
465
- ### Get Signature
466
-
467
- ```ts
468
- get queries(): string[];
469
- ```
470
-
471
- #### Returns
472
-
473
- `string`[]
474
-
475
- ### Implementation of
476
-
477
- ```ts
478
- SentinelInstance.queries
479
- ```
480
-
481
- ### Inherited from
482
-
483
- ```ts
484
- ModuleWrapper.queries
485
- ```
486
-
487
- ***
488
-
489
- ### status
490
-
491
- ### Get Signature
492
-
493
- ```ts
494
- get status(): ModuleStatus;
495
- ```
496
-
497
- #### Returns
498
-
499
- `ModuleStatus`
500
-
501
- ### Set Signature
502
-
503
- ```ts
504
- set status(value): void;
505
- ```
506
-
507
- #### Parameters
508
-
509
- ##### value
510
-
511
- `ModuleStatus`
512
-
513
- #### Returns
514
-
515
- `void`
516
-
517
- ### Implementation of
518
-
519
- ```ts
520
- SentinelInstance.status
521
- ```
522
-
523
- ### Inherited from
524
-
525
- ```ts
526
- ModuleWrapper.status
527
- ```
528
-
529
- ***
530
-
531
- ### upResolver
532
-
533
- ### Get Signature
534
-
535
- ```ts
536
- get upResolver(): ModuleResolverInstance;
537
- ```
538
-
539
- #### Returns
540
-
541
- `ModuleResolverInstance`
542
-
543
- ### Inherited from
544
-
545
- ```ts
546
- ModuleWrapper.upResolver
547
- ```
548
-
549
- ## Methods
550
-
551
- ### canWrap()
552
-
553
- ```ts
554
- static canWrap(mod?): mod is QueryableModule<QueryableModuleParams<AnyConfigSchema<ModuleConfig<object, void>>>, ModuleEventData<object>>;
555
- ```
556
-
557
- ### Parameters
558
-
559
- #### mod?
560
-
561
- `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
562
-
563
- ### Returns
564
-
565
- `mod is QueryableModule<QueryableModuleParams<AnyConfigSchema<ModuleConfig<object, void>>>, ModuleEventData<object>>`
566
-
567
- ### Inherited from
568
-
569
- ```ts
570
- ModuleWrapper.canWrap
571
- ```
572
-
573
- ***
574
-
575
- ### hasRequiredQueries()
576
-
577
- ```ts
578
- static hasRequiredQueries(mod): boolean;
579
- ```
580
-
581
- ### Parameters
582
-
583
- #### mod
584
-
585
- `QueryableModule`
586
-
587
- ### Returns
588
-
589
- `boolean`
590
-
591
- ### Inherited from
592
-
593
- ```ts
594
- ModuleWrapper.hasRequiredQueries
595
- ```
596
-
597
- ***
598
-
599
- ### is()
600
-
601
- ```ts
602
- static is<TModuleWrapper>(this, wrapper): wrapper is TModuleWrapper;
603
- ```
604
-
605
- ### Type Parameters
606
-
607
- #### TModuleWrapper
608
-
609
- `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
610
-
611
- ### Parameters
612
-
613
- #### this
614
-
615
- `ConstructableModuleWrapper`\<`TModuleWrapper`\>
616
-
617
- #### wrapper
618
-
619
- `any`
620
-
621
- ### Returns
622
-
623
- `wrapper is TModuleWrapper`
624
-
625
- ### Inherited from
626
-
627
- ```ts
628
- ModuleWrapper.is
629
- ```
630
-
631
- ***
632
-
633
- ### missingRequiredQueries()
634
-
635
- ```ts
636
- static missingRequiredQueries(mod): string[];
637
- ```
638
-
639
- ### Parameters
640
-
641
- #### mod
642
-
643
- `QueryableModule`
644
-
645
- ### Returns
646
-
647
- `string`[]
648
-
649
- ### Inherited from
650
-
651
- ```ts
652
- ModuleWrapper.missingRequiredQueries
653
- ```
654
-
655
- ***
656
-
657
- ### tryWrap()
658
-
659
- ```ts
660
- static tryWrap<TModuleWrapper>(
661
- this,
662
- mod,
663
- account,
664
- checkIdentity?): TModuleWrapper | undefined;
665
- ```
666
-
667
- ### Type Parameters
668
-
669
- #### TModuleWrapper
670
-
671
- `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
672
-
673
- ### Parameters
674
-
675
- #### this
676
-
677
- `ConstructableModuleWrapper`\<`TModuleWrapper`\>
678
-
679
- #### mod
680
-
681
- \| `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
682
- \| `undefined`
683
-
684
- #### account
685
-
686
- `AccountInstance`
687
-
688
- #### checkIdentity?
689
-
690
- `boolean`
691
-
692
- ### Returns
693
-
694
- `TModuleWrapper` \| `undefined`
695
-
696
- ### Inherited from
697
-
698
- ```ts
699
- ModuleWrapper.tryWrap
700
- ```
701
-
702
- ***
703
-
704
- ### with()
705
-
706
- ```ts
707
- static with<TModuleWrapper, R>(
708
- this,
709
- mod,
710
- closure): R | undefined;
711
- ```
712
-
713
- ### Type Parameters
714
-
715
- #### TModuleWrapper
716
-
717
- `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
718
-
719
- #### R
720
-
721
- `R` *extends* `Promisable`\<`void`\> = `void`
722
-
723
- ### Parameters
724
-
725
- #### this
726
-
727
- `ConstructableModuleWrapper`\<`TModuleWrapper`\>
728
-
729
- #### mod
730
-
731
- `any`
732
-
733
- #### closure
734
-
735
- (`mod`) => `R`
736
-
737
- ### Returns
738
-
739
- `R` \| `undefined`
740
-
741
- ### Inherited from
742
-
743
- ```ts
744
- ModuleWrapper.with
745
- ```
746
-
747
- ***
748
-
749
- ### wrap()
750
-
751
- ```ts
752
- static wrap<TModuleWrapper>(
753
- this,
754
- mod,
755
- account,
756
- checkIdentity?): TModuleWrapper;
757
- ```
758
-
759
- ### Type Parameters
760
-
761
- #### TModuleWrapper
762
-
763
- `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
764
-
765
- ### Parameters
766
-
767
- #### this
768
-
769
- `ConstructableModuleWrapper`\<`TModuleWrapper`\>
770
-
771
- #### mod
772
-
773
- \| `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
774
- \| `undefined`
775
-
776
- #### account
777
-
778
- `AccountInstance`
779
-
780
- #### checkIdentity?
781
-
782
- `boolean`
783
-
784
- ### Returns
785
-
786
- `TModuleWrapper`
787
-
788
- ### Inherited from
789
-
790
- ```ts
791
- ModuleWrapper.wrap
792
- ```
793
-
794
- ***
795
-
796
- ### addParent()
797
-
798
- ```ts
799
- addParent(mod): void;
800
- ```
801
-
802
- ### Parameters
803
-
804
- #### mod
805
-
806
- `ModuleInstance`
807
-
808
- ### Returns
809
-
810
- `void`
811
-
812
- ### Implementation of
813
-
814
- ```ts
815
- SentinelInstance.addParent
816
- ```
817
-
818
- ### Inherited from
819
-
820
- ```ts
821
- ModuleWrapper.addParent
822
- ```
823
-
824
- ***
825
-
826
- ### addressPreviousHash()
827
-
828
- ```ts
829
- addressPreviousHash(): Promise<AddressPreviousHashPayload>;
830
- ```
831
-
832
- ### Returns
833
-
834
- `Promise`\<`AddressPreviousHashPayload`\>
835
-
836
- ### Inherited from
837
-
838
- ```ts
839
- ModuleWrapper.addressPreviousHash
840
- ```
841
-
842
- ***
843
-
844
- ### clearListeners()
845
-
846
- ```ts
847
- clearListeners(eventNames): void;
848
- ```
849
-
850
- Removes all listeners for the specified event name(s).
851
-
852
- ### Parameters
853
-
854
- #### eventNames
855
-
856
- `Parameters`\<`TModule`\[`"clearListeners"`\]\>\[`0`\]
857
-
858
- ### Returns
859
-
860
- `void`
861
-
862
- ### Implementation of
863
-
864
- ```ts
865
- SentinelInstance.clearListeners
866
- ```
867
-
868
- ### Inherited from
869
-
870
- ```ts
871
- ModuleWrapper.clearListeners
872
- ```
873
-
874
- ***
875
-
876
- ### emit()
877
-
878
- ```ts
879
- emit(eventName, eventArgs): Promise<void>;
880
- ```
881
-
882
- Emits an event, invoking all registered listeners concurrently.
883
-
884
- ### Parameters
885
-
886
- #### eventName
887
-
888
- `Parameters`\<`TModule`\[`"emit"`\]\>\[`0`\]
889
-
890
- #### eventArgs
891
-
892
- `Parameters`\<`TModule`\[`"emit"`\]\>\[`1`\]
893
-
894
- ### Returns
895
-
896
- `Promise`\<`void`\>
897
-
898
- ### Implementation of
899
-
900
- ```ts
901
- SentinelInstance.emit
902
- ```
903
-
904
- ### Inherited from
905
-
906
- ```ts
907
- ModuleWrapper.emit
908
- ```
909
-
910
- ***
911
-
912
- ### emitSerial()
913
-
914
- ```ts
915
- emitSerial(eventName, eventArgs): Promise<void>;
916
- ```
917
-
918
- Emits an event, invoking all registered listeners sequentially in order.
919
-
920
- ### Parameters
921
-
922
- #### eventName
923
-
924
- `Parameters`\<`TModule`\[`"emitSerial"`\]\>\[`0`\]
925
-
926
- #### eventArgs
927
-
928
- `Parameters`\<`TModule`\[`"emitSerial"`\]\>\[`1`\]
929
-
930
- ### Returns
931
-
932
- `Promise`\<`void`\>
933
-
934
- ### Implementation of
935
-
936
- ```ts
937
- SentinelInstance.emitSerial
938
- ```
939
-
940
- ### Inherited from
941
-
942
- ```ts
943
- ModuleWrapper.emitSerial
944
- ```
945
-
946
- ***
947
-
948
- ### listenerCount()
949
-
950
- ```ts
951
- listenerCount(eventNames): number;
952
- ```
953
-
954
- Returns the total number of listeners registered for the specified event name(s).
955
-
956
- ### Parameters
957
-
958
- #### eventNames
959
-
960
- `Parameters`\<`TModule`\[`"listenerCount"`\]\>\[`0`\]
961
-
962
- ### Returns
963
-
964
- `number`
965
-
966
- ### Implementation of
967
-
968
- ```ts
969
- SentinelInstance.listenerCount
970
- ```
971
-
972
- ### Inherited from
973
-
974
- ```ts
975
- ModuleWrapper.listenerCount
976
- ```
977
-
978
- ***
979
-
980
- ### manifest()
981
-
982
- ```ts
983
- manifest(maxDepth?): Promise<ModuleManifestPayload>;
984
- ```
985
-
986
- ### Parameters
987
-
988
- #### maxDepth?
989
-
990
- `number`
991
-
992
- ### Returns
993
-
994
- `Promise`\<`ModuleManifestPayload`\>
995
-
996
- ### Implementation of
997
-
998
- ```ts
999
- SentinelInstance.manifest
1000
- ```
1001
-
1002
- ### Inherited from
1003
-
1004
- ```ts
1005
- ModuleWrapper.manifest
1006
- ```
1007
-
1008
- ***
1009
-
1010
- ### manifestQuery()
1011
-
1012
- ```ts
1013
- manifestQuery(account, maxDepth?): Promise<ModuleQueryResult<ModuleManifestPayload>>;
1014
- ```
1015
-
1016
- ### Parameters
1017
-
1018
- #### account
1019
-
1020
- `AccountInstance`
1021
-
1022
- #### maxDepth?
1023
-
1024
- `number`
1025
-
1026
- ### Returns
1027
-
1028
- `Promise`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
1029
-
1030
- ### Implementation of
1031
-
1032
- ```ts
1033
- SentinelInstance.manifestQuery
1034
- ```
1035
-
1036
- ### Inherited from
1037
-
1038
- ```ts
1039
- ModuleWrapper.manifestQuery
1040
- ```
1041
-
1042
- ***
1043
-
1044
- ### moduleAddress()
1045
-
1046
- ```ts
1047
- moduleAddress(): Promise<AddressPreviousHashPayload[]>;
1048
- ```
1049
-
1050
- ### Returns
1051
-
1052
- `Promise`\<`AddressPreviousHashPayload`[]\>
1053
-
1054
- ### Implementation of
1055
-
1056
- ```ts
1057
- SentinelInstance.moduleAddress
1058
- ```
1059
-
1060
- ### Inherited from
1061
-
1062
- ```ts
1063
- ModuleWrapper.moduleAddress
1064
- ```
1065
-
1066
- ***
1067
-
1068
- ### off()
1069
-
1070
- ```ts
1071
- off<TEventName>(eventNames, listener): void;
1072
- ```
1073
-
1074
- Removes a specific listener from the specified event name(s).
1075
-
1076
- ### Type Parameters
1077
-
1078
- #### TEventName
1079
-
1080
- `TEventName` *extends* `string` \| `number` \| `symbol`
1081
-
1082
- ### Parameters
1083
-
1084
- #### eventNames
1085
-
1086
- `TEventName`
1087
-
1088
- #### listener
1089
-
1090
- `EventListener`\<`TModule`\[`"eventData"`\]\[`TEventName`\]\>
1091
-
1092
- ### Returns
1093
-
1094
- `void`
1095
-
1096
- ### Implementation of
1097
-
1098
- ```ts
1099
- SentinelInstance.off
1100
- ```
1101
-
1102
- ### Inherited from
1103
-
1104
- ```ts
1105
- ModuleWrapper.off
1106
- ```
1107
-
1108
- ***
1109
-
1110
- ### offAny()
1111
-
1112
- ```ts
1113
- offAny(listener): void;
1114
- ```
1115
-
1116
- Removes a wildcard listener that was receiving all events.
1117
-
1118
- ### Parameters
1119
-
1120
- #### listener
1121
-
1122
- `EventAnyListener`
1123
-
1124
- ### Returns
1125
-
1126
- `void`
1127
-
1128
- ### Implementation of
1129
-
1130
- ```ts
1131
- SentinelInstance.offAny
1132
- ```
1133
-
1134
- ### Inherited from
1135
-
1136
- ```ts
1137
- ModuleWrapper.offAny
1138
- ```
1139
-
1140
- ***
1141
-
1142
- ### on()
1143
-
1144
- ```ts
1145
- on<TEventName>(eventNames, listener): EventUnsubscribeFunction;
1146
- ```
1147
-
1148
- Subscribes a listener to the specified event name(s) and returns an unsubscribe function.
1149
-
1150
- ### Type Parameters
1151
-
1152
- #### TEventName
1153
-
1154
- `TEventName` *extends* `string` \| `number` \| `symbol`
1155
-
1156
- ### Parameters
1157
-
1158
- #### eventNames
1159
-
1160
- `TEventName`
1161
-
1162
- #### listener
1163
-
1164
- `EventListener`\<`TModule`\[`"eventData"`\]\[`TEventName`\]\>
1165
-
1166
- ### Returns
1167
-
1168
- `EventUnsubscribeFunction`
1169
-
1170
- ### Implementation of
1171
-
1172
- ```ts
1173
- SentinelInstance.on
1174
- ```
1175
-
1176
- ### Inherited from
1177
-
1178
- ```ts
1179
- ModuleWrapper.on
1180
- ```
1181
-
1182
- ***
1183
-
1184
- ### onAny()
1185
-
1186
- ```ts
1187
- onAny(listener): EventUnsubscribeFunction;
1188
- ```
1189
-
1190
- Subscribes a wildcard listener that receives all events and returns an unsubscribe function.
1191
-
1192
- ### Parameters
1193
-
1194
- #### listener
1195
-
1196
- `EventAnyListener`
1197
-
1198
- ### Returns
1199
-
1200
- `EventUnsubscribeFunction`
1201
-
1202
- ### Implementation of
1203
-
1204
- ```ts
1205
- SentinelInstance.onAny
1206
- ```
1207
-
1208
- ### Inherited from
1209
-
1210
- ```ts
1211
- ModuleWrapper.onAny
1212
- ```
1213
-
1214
- ***
1215
-
1216
- ### once()
1217
-
1218
- ```ts
1219
- once<TEventName>(eventName, listener): EventUnsubscribeFunction;
1220
- ```
1221
-
1222
- Subscribes a listener that will be invoked only once for the specified event, then automatically removed.
1223
-
1224
- ### Type Parameters
1225
-
1226
- #### TEventName
1227
-
1228
- `TEventName` *extends* `string` \| `number` \| `symbol`
1229
-
1230
- ### Parameters
1231
-
1232
- #### eventName
1233
-
1234
- `TEventName`
1235
-
1236
- #### listener
1237
-
1238
- `EventListener`\<`TModule`\[`"eventData"`\]\[`TEventName`\]\>
1239
-
1240
- ### Returns
1241
-
1242
- `EventUnsubscribeFunction`
1243
-
1244
- ### Implementation of
1245
-
1246
- ```ts
1247
- SentinelInstance.once
1248
- ```
1249
-
1250
- ### Inherited from
1251
-
1252
- ```ts
1253
- ModuleWrapper.once
1254
- ```
1255
-
1256
- ***
1257
-
1258
- ### parents()
1259
-
1260
- ```ts
1261
- parents(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1262
- ```
1263
-
1264
- ### Returns
1265
-
1266
- `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1267
-
1268
- ### Implementation of
1269
-
1270
- ```ts
1271
- SentinelInstance.parents
1272
- ```
1273
-
1274
- ### Inherited from
1275
-
1276
- ```ts
1277
- ModuleWrapper.parents
1278
- ```
1279
-
1280
- ***
1281
-
1282
- ### previousHash()
1283
-
1284
- ```ts
1285
- previousHash(): Promise<string | undefined>;
1286
- ```
1287
-
1288
- ### Returns
1289
-
1290
- `Promise`\<`string` \| `undefined`\>
1291
-
1292
- ### Implementation of
1293
-
1294
- ```ts
1295
- SentinelInstance.previousHash
1296
- ```
1297
-
1298
- ### Inherited from
1299
-
1300
- ```ts
1301
- ModuleWrapper.previousHash
1302
- ```
1303
-
1304
- ***
1305
-
1306
- ### previousHashQuery()
1307
-
1308
- ```ts
1309
- previousHashQuery(account?): Promise<ModuleQueryResult<AddressPreviousHashPayload>>;
1310
- ```
1311
-
1312
- ### Parameters
1313
-
1314
- #### account?
1315
-
1316
- `AccountInstance`
1317
-
1318
- ### Returns
1319
-
1320
- `Promise`\<`ModuleQueryResult`\<`AddressPreviousHashPayload`\>\>
1321
-
1322
- ### Inherited from
1323
-
1324
- ```ts
1325
- ModuleWrapper.previousHashQuery
1326
- ```
1327
-
1328
- ***
1329
-
1330
- ### privateChildren()
1331
-
1332
- ```ts
1333
- privateChildren(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1334
- ```
1335
-
1336
- ### Returns
1337
-
1338
- `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1339
-
1340
- ### Implementation of
1341
-
1342
- ```ts
1343
- SentinelInstance.privateChildren
1344
- ```
1345
-
1346
- ### Inherited from
1347
-
1348
- ```ts
1349
- ModuleWrapper.privateChildren
1350
- ```
1351
-
1352
- ***
1353
-
1354
- ### publicChildren()
1355
-
1356
- ```ts
1357
- publicChildren(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1358
- ```
1359
-
1360
- ### Returns
1361
-
1362
- `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1363
-
1364
- ### Implementation of
1365
-
1366
- ```ts
1367
- SentinelInstance.publicChildren
1368
- ```
1369
-
1370
- ### Inherited from
1371
-
1372
- ```ts
1373
- ModuleWrapper.publicChildren
1374
- ```
1375
-
1376
- ***
1377
-
1378
- ### query()
1379
-
1380
- ```ts
1381
- query<T>(query, payloads?): Promise<ModuleQueryResult>;
1382
- ```
1383
-
1384
- ### Type Parameters
1385
-
1386
- #### T
1387
-
1388
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1389
-
1390
- ### Parameters
1391
-
1392
- #### query
1393
-
1394
- `T`
1395
-
1396
- #### payloads?
1397
-
1398
- `Payload`[]
1399
-
1400
- ### Returns
1401
-
1402
- `Promise`\<`ModuleQueryResult`\>
1403
-
1404
- ### Implementation of
1405
-
1406
- ```ts
1407
- SentinelInstance.query
1408
- ```
1409
-
1410
- ### Inherited from
1411
-
1412
- ```ts
1413
- ModuleWrapper.query
1414
- ```
1415
-
1416
- ***
1417
-
1418
- ### queryable()
1419
-
1420
- ```ts
1421
- queryable<T>(query, payloads?): Promisable<boolean>;
1422
- ```
1423
-
1424
- ### Type Parameters
1425
-
1426
- #### T
1427
-
1428
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1429
-
1430
- ### Parameters
1431
-
1432
- #### query
1433
-
1434
- `T`
1435
-
1436
- #### payloads?
1437
-
1438
- `Payload`[]
1439
-
1440
- ### Returns
1441
-
1442
- `Promisable`\<`boolean`\>
1443
-
1444
- ### Implementation of
1445
-
1446
- ```ts
1447
- SentinelInstance.queryable
1448
- ```
1449
-
1450
- ### Inherited from
1451
-
1452
- ```ts
1453
- ModuleWrapper.queryable
1454
- ```
1455
-
1456
- ***
1457
-
1458
- ### removeParent()
1459
-
1460
- ```ts
1461
- removeParent(address): void;
1462
- ```
1463
-
1464
- ### Parameters
1465
-
1466
- #### address
1467
-
1468
- `BrandedAddress`
1469
-
1470
- ### Returns
1471
-
1472
- `void`
1473
-
1474
- ### Implementation of
1475
-
1476
- ```ts
1477
- SentinelInstance.removeParent
1478
- ```
1479
-
1480
- ### Inherited from
1481
-
1482
- ```ts
1483
- ModuleWrapper.removeParent
1484
- ```
1485
-
1486
- ***
1487
-
1488
- ### ~~resolve()~~
1489
-
1490
- ### Call Signature
1491
-
1492
- ```ts
1493
- resolve<T>(): Promise<T[]>;
1494
- ```
1495
-
1496
- #### Type Parameters
1497
-
1498
- ##### T
1499
-
1500
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1501
-
1502
- #### Returns
1503
-
1504
- `Promise`\<`T`[]\>
1505
-
1506
- #### Deprecated
1507
-
1508
- do not pass undefined. If trying to get all, pass '*'
1509
-
1510
- #### Implementation of
1511
-
1512
- ```ts
1513
- SentinelInstance.resolve
1514
- ```
1515
-
1516
- #### Inherited from
1517
-
1518
- ```ts
1519
- ModuleWrapper.resolve
1520
- ```
1521
-
1522
- ### Call Signature
1523
-
1524
- ```ts
1525
- resolve<T>(all, options?): Promise<T[]>;
1526
- ```
1527
-
1528
- #### Type Parameters
1529
-
1530
- ##### T
1531
-
1532
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1533
-
1534
- #### Parameters
1535
-
1536
- ##### all
1537
-
1538
- `"*"`
1539
-
1540
- ##### options?
1541
-
1542
- `ModuleFilterOptions`\<`T`\>
1543
-
1544
- #### Returns
1545
-
1546
- `Promise`\<`T`[]\>
1547
-
1548
- #### Deprecated
1549
-
1550
- do not pass undefined. If trying to get all, pass '*'
1551
-
1552
- #### Implementation of
1553
-
1554
- ```ts
1555
- SentinelInstance.resolve
1556
- ```
1557
-
1558
- #### Inherited from
1559
-
1560
- ```ts
1561
- ModuleWrapper.resolve
1562
- ```
1563
-
1564
- ### Call Signature
1565
-
1566
- ```ts
1567
- resolve<T>(id, options?): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
1568
- ```
1569
-
1570
- #### Type Parameters
1571
-
1572
- ##### T
1573
-
1574
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1575
-
1576
- #### Parameters
1577
-
1578
- ##### id
1579
-
1580
- `ModuleIdentifier`
1581
-
1582
- ##### options?
1583
-
1584
- `ModuleFilterOptions`\<`T`\>
1585
-
1586
- #### Returns
1587
-
1588
- `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
1589
-
1590
- #### Deprecated
1591
-
1592
- do not pass undefined. If trying to get all, pass '*'
1593
-
1594
- #### Implementation of
1595
-
1596
- ```ts
1597
- SentinelInstance.resolve
1598
- ```
1599
-
1600
- #### Inherited from
1601
-
1602
- ```ts
1603
- ModuleWrapper.resolve
1604
- ```
1605
-
1606
- ***
1607
-
1608
- ### resolvePrivate()
1609
-
1610
- ### Call Signature
1611
-
1612
- ```ts
1613
- resolvePrivate<T>(all, options?): Promise<T[]>;
1614
- ```
1615
-
1616
- #### Type Parameters
1617
-
1618
- ##### T
1619
-
1620
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1621
-
1622
- #### Parameters
1623
-
1624
- ##### all
1625
-
1626
- `"*"`
1627
-
1628
- ##### options?
1629
-
1630
- `ModuleFilterOptions`\<`T`\>
1631
-
1632
- #### Returns
1633
-
1634
- `Promise`\<`T`[]\>
1635
-
1636
- #### Implementation of
1637
-
1638
- ```ts
1639
- SentinelInstance.resolvePrivate
1640
- ```
1641
-
1642
- #### Inherited from
1643
-
1644
- ```ts
1645
- ModuleWrapper.resolvePrivate
1646
- ```
1647
-
1648
- ### Call Signature
1649
-
1650
- ```ts
1651
- resolvePrivate<T>(id, options?): Promise<T | undefined>;
1652
- ```
1653
-
1654
- #### Type Parameters
1655
-
1656
- ##### T
1657
-
1658
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1659
-
1660
- #### Parameters
1661
-
1662
- ##### id
1663
-
1664
- `ModuleIdentifier`
1665
-
1666
- ##### options?
1667
-
1668
- `ModuleFilterOptions`\<`T`\>
1669
-
1670
- #### Returns
1671
-
1672
- `Promise`\<`T` \| `undefined`\>
1673
-
1674
- #### Implementation of
1675
-
1676
- ```ts
1677
- SentinelInstance.resolvePrivate
1678
- ```
1679
-
1680
- #### Inherited from
1681
-
1682
- ```ts
1683
- ModuleWrapper.resolvePrivate
1684
- ```
1685
-
1686
- ***
1687
-
1688
- ### siblings()
1689
-
1690
- ```ts
1691
- siblings(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1692
- ```
1693
-
1694
- ### Returns
1695
-
1696
- `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1697
-
1698
- ### Implementation of
1699
-
1700
- ```ts
1701
- SentinelInstance.siblings
1702
- ```
1703
-
1704
- ### Inherited from
1705
-
1706
- ```ts
1707
- ModuleWrapper.siblings
1708
- ```
1709
-
1710
- ***
1711
-
1712
- ### start()
1713
-
1714
- ```ts
1715
- start(): Promise<boolean>;
1716
- ```
1717
-
1718
- Starts the instance. Resolves to true if started successfully.
1719
-
1720
- ### Returns
1721
-
1722
- `Promise`\<`boolean`\>
1723
-
1724
- ### Implementation of
1725
-
1726
- ```ts
1727
- SentinelInstance.start
1728
- ```
1729
-
1730
- ### Inherited from
1731
-
1732
- ```ts
1733
- ModuleWrapper.start
1734
- ```
1735
-
1736
- ***
1737
-
1738
- ### state()
1739
-
1740
- ```ts
1741
- state(): Promise<Payload[]>;
1742
- ```
1743
-
1744
- ### Returns
1745
-
1746
- `Promise`\<`Payload`[]\>
1747
-
1748
- ### Implementation of
1749
-
1750
- ```ts
1751
- SentinelInstance.state
1752
- ```
1753
-
1754
- ### Inherited from
1755
-
1756
- ```ts
1757
- ModuleWrapper.state
1758
- ```
1759
-
1760
- ***
1761
-
1762
- ### stateQuery()
1763
-
1764
- ```ts
1765
- stateQuery(_account): Promise<ModuleQueryResult>;
1766
- ```
1767
-
1768
- ### Parameters
1769
-
1770
- #### \_account
1771
-
1772
- `AccountInstance`
1773
-
1774
- ### Returns
1775
-
1776
- `Promise`\<`ModuleQueryResult`\>
1777
-
1778
- ### Implementation of
1779
-
1780
- ```ts
1781
- SentinelInstance.stateQuery
1782
- ```
1783
-
1784
- ### Inherited from
1785
-
1786
- ```ts
1787
- ModuleWrapper.stateQuery
1788
- ```
1789
-
1790
- ***
1791
-
1792
- ### stop()
1793
-
1794
- ```ts
1795
- stop(): Promise<boolean>;
1796
- ```
1797
-
1798
- Stops the instance. Resolves to true if stopped successfully.
1799
-
1800
- ### Returns
1801
-
1802
- `Promise`\<`boolean`\>
1803
-
1804
- ### Implementation of
1805
-
1806
- ```ts
1807
- SentinelInstance.stop
1808
- ```
1809
-
1810
- ### Inherited from
1811
-
1812
- ```ts
1813
- ModuleWrapper.stop
1814
- ```
1815
-
1816
- ***
1817
-
1818
- ### bindQuery()
1819
-
1820
- ```ts
1821
- protected bindQuery<T>(
1822
- query,
1823
- payloads?,
1824
- account?,
1825
- additionalSigners?): PromiseEx<[UnsignedQueryBoundWitness, Payload[], ModuleError[]], AccountInstance>;
1826
- ```
1827
-
1828
- ### Type Parameters
1829
-
1830
- #### T
1831
-
1832
- `T` *extends* `Query`
1833
-
1834
- ### Parameters
1835
-
1836
- #### query
1837
-
1838
- `T`
1839
-
1840
- #### payloads?
1841
-
1842
- `Payload`[]
1843
-
1844
- #### account?
1845
-
1846
- `AccountInstance`
1847
-
1848
- #### additionalSigners?
1849
-
1850
- `AccountInstance`[]
1851
-
1852
- ### Returns
1853
-
1854
- `PromiseEx`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `ModuleError`[]\], `AccountInstance`\>
1855
-
1856
- ### Inherited from
1857
-
1858
- ```ts
1859
- ModuleWrapper.bindQuery
1860
- ```
1861
-
1862
- ***
1863
-
1864
- ### bindQueryInternal()
1865
-
1866
- ```ts
1867
- protected bindQueryInternal<T>(
1868
- query,
1869
- payloads?,
1870
- account?,
1871
- additionalSigners?): Promise<[UnsignedQueryBoundWitness, Payload[], ModuleError[]]>;
1872
- ```
1873
-
1874
- ### Type Parameters
1875
-
1876
- #### T
1877
-
1878
- `T` *extends* `Query`
1879
-
1880
- ### Parameters
1881
-
1882
- #### query
1883
-
1884
- `T`
1885
-
1886
- #### payloads?
1887
-
1888
- `Payload`[]
1889
-
1890
- #### account?
1891
-
1892
- `AccountInstance`
1893
-
1894
- #### additionalSigners?
1895
-
1896
- `AccountInstance`[]
1897
-
1898
- ### Returns
1899
-
1900
- `Promise`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `ModuleError`[]\]\>
1901
-
1902
- ### Inherited from
1903
-
1904
- ```ts
1905
- ModuleWrapper.bindQueryInternal
1906
- ```
1907
-
1908
- ***
1909
-
1910
- ### filterErrors()
1911
-
1912
- ```ts
1913
- protected filterErrors(__namedParameters): ModuleError[];
1914
- ```
1915
-
1916
- ### Parameters
1917
-
1918
- #### \_\_namedParameters
1919
-
1920
- `ModuleQueryResult`
1921
-
1922
- ### Returns
1923
-
1924
- `ModuleError`[]
1925
-
1926
- ### Inherited from
1927
-
1928
- ```ts
1929
- ModuleWrapper.filterErrors
1930
- ```
1931
-
1932
- ***
1933
-
1934
- ### sendQuery()
1935
-
1936
- ```ts
1937
- protected sendQuery<T, P, R>(queryPayload, payloads?): Promise<R[]>;
1938
- ```
1939
-
1940
- ### Type Parameters
1941
-
1942
- #### T
1943
-
1944
- `T` *extends* `Query`
1945
-
1946
- #### P
1947
-
1948
- `P` *extends* `Payload` = `Payload`
1949
-
1950
- #### R
1951
-
1952
- `R` *extends* `Payload` = `Payload`
1953
-
1954
- ### Parameters
1955
-
1956
- #### queryPayload
1957
-
1958
- `T`
1959
-
1960
- #### payloads?
1961
-
1962
- `P`[]
1963
-
1964
- ### Returns
1965
-
1966
- `Promise`\<`R`[]\>
1967
-
1968
- ### Inherited from
1969
-
1970
- ```ts
1971
- ModuleWrapper.sendQuery
1972
- ```
1973
-
1974
- ***
1975
-
1976
- ### sendQueryRaw()
1977
-
1978
- ```ts
1979
- protected sendQueryRaw<T, P, R>(
1980
- queryPayload,
1981
- payloads?,
1982
- account?): Promise<ModuleQueryResult<R>>;
1983
- ```
1984
-
1985
- ### Type Parameters
1986
-
1987
- #### T
1988
-
1989
- `T` *extends* `Query`
1990
-
1991
- #### P
1992
-
1993
- `P` *extends* `Payload` = `Payload`
1994
-
1995
- #### R
1996
-
1997
- `R` *extends* `Payload` = `Payload`
1998
-
1999
- ### Parameters
2000
-
2001
- #### queryPayload
2002
-
2003
- `T`
2004
-
2005
- #### payloads?
2006
-
2007
- `P`[]
2008
-
2009
- #### account?
2010
-
2011
- `AccountInstance`
2012
-
2013
- ### Returns
2014
-
2015
- `Promise`\<`ModuleQueryResult`\<`R`\>\>
2016
-
2017
- ### Inherited from
2018
-
2019
- ```ts
2020
- ModuleWrapper.sendQueryRaw
2021
- ```
2022
-
2023
- ***
2024
-
2025
- ### archivists()
2026
-
2027
- ```ts
2028
- archivists(): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>[]>;
2029
- ```
2030
-
2031
- ### Returns
2032
-
2033
- `Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>[]\>
2034
-
2035
- ***
2036
-
2037
- ### report()
2038
-
2039
- ```ts
2040
- report(payloads?): Promise<Payload[]>;
2041
- ```
2042
-
2043
- ### Parameters
2044
-
2045
- #### payloads?
2046
-
2047
- `Payload`[]
2048
-
2049
- ### Returns
2050
-
2051
- `Promise`\<`Payload`[]\>
2052
-
2053
- ### Implementation of
2054
-
2055
- ```ts
2056
- SentinelInstance.report
2057
- ```
2058
-
2059
- ***
2060
-
2061
- ### reportQuery()
2062
-
2063
- ```ts
2064
- reportQuery(payloads?, account?): Promise<ModuleQueryResult>;
2065
- ```
2066
-
2067
- ### Parameters
2068
-
2069
- #### payloads?
2070
-
2071
- `Payload`[]
2072
-
2073
- #### account?
2074
-
2075
- `AccountInstance`
2076
-
2077
- ### Returns
2078
-
2079
- `Promise`\<`ModuleQueryResult`\>
2080
-
2081
- ### Implementation of
2082
-
2083
- ```ts
2084
- SentinelInstance.reportQuery
2085
- ```
2086
-
2087
- ***
2088
-
2089
- ### witnesses()
2090
-
2091
- ```ts
2092
- witnesses(): Promise<WitnessInstance<WitnessParams<AnyConfigSchema<WitnessConfig>>, Payload, Payload, WitnessModuleEventData>[]>;
2093
- ```
2094
-
2095
- ### Returns
2096
-
2097
- `Promise`\<`WitnessInstance`\<`WitnessParams`\<`AnyConfigSchema`\<`WitnessConfig`\>\>, `Payload`, `Payload`, `WitnessModuleEventData`\>[]\>
2098
41
 
2099
42
 
2100
43
  [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png