@xyo-network/diviner-wrapper 5.3.24 → 5.3.26

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