@xyo-network/bridge-wrapper 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 +2071 -10
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -1,23 +1,2084 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/bridge-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__bridge-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
+ ### bridge
50
+
51
+ ### packages
52
+
53
+ ### wrapper
54
+
55
+ ### .temp-typedoc
56
+
57
+ ### classes
58
+
59
+ ### <a id="BridgeWrapper"></a>BridgeWrapper
60
+
61
+ [**@xyo-network/bridge-wrapper**](#../README)
62
+
63
+ ***
64
+
65
+ ## Extends
66
+
67
+ - `ModuleWrapper`\<`TWrappedModule`\>
68
+
69
+ ## Type Parameters
70
+
71
+ ### TWrappedModule
72
+
73
+ `TWrappedModule` *extends* `BridgeModule` = `BridgeModule`
74
+
75
+ ## Implements
76
+
77
+ - `BridgeInstance`\<`TWrappedModule`\[`"params"`\]\>
78
+
79
+ ## Constructors
80
+
81
+ ### Constructor
82
+
83
+ ```ts
84
+ new BridgeWrapper<TWrappedModule>(params): BridgeWrapper<TWrappedModule>;
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+ #### params
90
+
91
+ `ModuleWrapperParams`\<`TWrappedModule`\>
92
+
93
+ ### Returns
94
+
95
+ `BridgeWrapper`\<`TWrappedModule`\>
96
+
97
+ ### Inherited from
98
+
99
+ ```ts
100
+ ModuleWrapper<TWrappedModule>.constructor
101
+ ```
102
+
103
+ ## Properties
104
+
105
+ ### instanceIdentityCheck
106
+
107
+ ```ts
108
+ readonly static instanceIdentityCheck: TypeCheck<BridgeInstance<BridgeParams<AnyConfigSchema<BridgeConfig<void, void, void, void>>>, BridgeModuleEventData>> = isBridgeInstance;
109
+ ```
110
+
111
+ ### Overrides
112
+
113
+ ```ts
114
+ ModuleWrapper.instanceIdentityCheck
115
+ ```
116
+
117
+ ***
118
+
119
+ ### moduleIdentityCheck
120
+
121
+ ```ts
122
+ readonly static moduleIdentityCheck: QueryableModuleTypeCheck<BridgeModule<BridgeParams<AnyConfigSchema<BridgeConfig<void, void, void, void>>>, BridgeModuleEventData>> = isBridgeModule;
123
+ ```
124
+
125
+ ### Overrides
126
+
127
+ ```ts
128
+ ModuleWrapper.moduleIdentityCheck
129
+ ```
130
+
131
+ ***
132
+
133
+ ### requiredQueries
134
+
135
+ ```ts
136
+ readonly static requiredQueries: string[];
137
+ ```
138
+
139
+ ### Inherited from
140
+
141
+ ```ts
142
+ ModuleWrapper.requiredQueries
143
+ ```
144
+
145
+ ***
146
+
147
+ ### eventData
148
+
149
+ ```ts
150
+ eventData: TWrappedModule["eventData"];
151
+ ```
152
+
153
+ The event data type associated with this instance.
154
+
155
+ ### Implementation of
156
+
157
+ ```ts
158
+ BridgeInstance.eventData
159
+ ```
160
+
161
+ ### Inherited from
162
+
163
+ ```ts
164
+ ModuleWrapper.eventData
165
+ ```
166
+
167
+ ***
168
+
169
+ ### cachedCalls
170
+
171
+ ```ts
172
+ protected readonly cachedCalls: LRUCache<string, Payload[], unknown>;
173
+ ```
174
+
175
+ ### Inherited from
176
+
177
+ ```ts
178
+ ModuleWrapper.cachedCalls
179
+ ```
180
+
181
+ ***
182
+
183
+ ### wrapperParams
184
+
185
+ ```ts
186
+ protected readonly wrapperParams: ModuleWrapperParams<TWrappedModule>;
187
+ ```
188
+
189
+ ### Inherited from
190
+
191
+ ```ts
192
+ ModuleWrapper.wrapperParams
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
+ BridgeInstance.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
+ BridgeInstance.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
+ BridgeInstance.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
+ BridgeInstance.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
+ BridgeInstance.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
+ BridgeInstance.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
+ BridgeInstance.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
+ BridgeInstance.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
+ BridgeInstance.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
+ ### expose()
552
+
553
+ ```ts
554
+ expose(id, options?): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
555
+ ```
556
+
557
+ ### Parameters
558
+
559
+ #### id
560
+
561
+ `ModuleIdentifier`
562
+
563
+ #### options?
564
+
565
+ `BridgeExposeOptions`
566
+
567
+ ### Returns
568
+
569
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
570
+
571
+ ### Implementation of
572
+
573
+ ```ts
574
+ BridgeInstance.expose
575
+ ```
576
+
577
+ ***
578
+
579
+ ### unexpose()
580
+
581
+ ```ts
582
+ unexpose(id, options?): Promise<BrandedAddress[]>;
583
+ ```
584
+
585
+ ### Parameters
586
+
587
+ #### id
588
+
589
+ `ModuleIdentifier`
590
+
591
+ #### options?
592
+
593
+ `BridgeUnexposeOptions`
594
+
595
+ ### Returns
596
+
597
+ `Promise`\<`BrandedAddress`[]\>
598
+
599
+ ### Implementation of
600
+
601
+ ```ts
602
+ BridgeInstance.unexpose
603
+ ```
604
+
605
+ ***
606
+
607
+ ### canWrap()
608
+
609
+ ```ts
610
+ static canWrap(mod?): mod is QueryableModule<QueryableModuleParams<AnyConfigSchema<ModuleConfig<object, void>>>, ModuleEventData<object>>;
611
+ ```
612
+
613
+ ### Parameters
614
+
615
+ #### mod?
616
+
617
+ `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
618
+
619
+ ### Returns
620
+
621
+ `mod is QueryableModule<QueryableModuleParams<AnyConfigSchema<ModuleConfig<object, void>>>, ModuleEventData<object>>`
622
+
623
+ ### Inherited from
624
+
625
+ ```ts
626
+ ModuleWrapper.canWrap
627
+ ```
628
+
629
+ ***
630
+
631
+ ### hasRequiredQueries()
632
+
633
+ ```ts
634
+ static hasRequiredQueries(mod): boolean;
635
+ ```
636
+
637
+ ### Parameters
638
+
639
+ #### mod
640
+
641
+ `QueryableModule`
642
+
643
+ ### Returns
644
+
645
+ `boolean`
646
+
647
+ ### Inherited from
648
+
649
+ ```ts
650
+ ModuleWrapper.hasRequiredQueries
651
+ ```
652
+
653
+ ***
654
+
655
+ ### is()
656
+
657
+ ```ts
658
+ static is<TModuleWrapper>(this, wrapper): wrapper is TModuleWrapper;
659
+ ```
660
+
661
+ ### Type Parameters
662
+
663
+ #### TModuleWrapper
664
+
665
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
666
+
667
+ ### Parameters
668
+
669
+ #### this
670
+
671
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
672
+
673
+ #### wrapper
674
+
675
+ `any`
676
+
677
+ ### Returns
678
+
679
+ `wrapper is TModuleWrapper`
680
+
681
+ ### Inherited from
682
+
683
+ ```ts
684
+ ModuleWrapper.is
685
+ ```
686
+
687
+ ***
688
+
689
+ ### missingRequiredQueries()
690
+
691
+ ```ts
692
+ static missingRequiredQueries(mod): string[];
693
+ ```
694
+
695
+ ### Parameters
696
+
697
+ #### mod
698
+
699
+ `QueryableModule`
700
+
701
+ ### Returns
702
+
703
+ `string`[]
704
+
705
+ ### Inherited from
706
+
707
+ ```ts
708
+ ModuleWrapper.missingRequiredQueries
709
+ ```
710
+
711
+ ***
712
+
713
+ ### tryWrap()
714
+
715
+ ```ts
716
+ static tryWrap<TModuleWrapper>(
717
+ this,
718
+ mod,
719
+ account,
720
+ checkIdentity?): TModuleWrapper | undefined;
721
+ ```
722
+
723
+ ### Type Parameters
724
+
725
+ #### TModuleWrapper
726
+
727
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
728
+
729
+ ### Parameters
730
+
731
+ #### this
732
+
733
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
734
+
735
+ #### mod
736
+
737
+ \| `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
738
+ \| `undefined`
739
+
740
+ #### account
741
+
742
+ `AccountInstance`
743
+
744
+ #### checkIdentity?
745
+
746
+ `boolean`
747
+
748
+ ### Returns
749
+
750
+ `TModuleWrapper` \| `undefined`
751
+
752
+ ### Inherited from
753
+
754
+ ```ts
755
+ ModuleWrapper.tryWrap
756
+ ```
757
+
758
+ ***
759
+
760
+ ### with()
761
+
762
+ ```ts
763
+ static with<TModuleWrapper, R>(
764
+ this,
765
+ mod,
766
+ closure): R | undefined;
767
+ ```
768
+
769
+ ### Type Parameters
770
+
771
+ #### TModuleWrapper
772
+
773
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
774
+
775
+ #### R
776
+
777
+ `R` *extends* `Promisable`\<`void`\> = `void`
778
+
779
+ ### Parameters
780
+
781
+ #### this
782
+
783
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
784
+
785
+ #### mod
786
+
787
+ `any`
788
+
789
+ #### closure
790
+
791
+ (`mod`) => `R`
792
+
793
+ ### Returns
794
+
795
+ `R` \| `undefined`
796
+
797
+ ### Inherited from
798
+
799
+ ```ts
800
+ ModuleWrapper.with
801
+ ```
802
+
803
+ ***
804
+
805
+ ### wrap()
806
+
807
+ ```ts
808
+ static wrap<TModuleWrapper>(
809
+ this,
810
+ mod,
811
+ account,
812
+ checkIdentity?): TModuleWrapper;
813
+ ```
814
+
815
+ ### Type Parameters
816
+
817
+ #### TModuleWrapper
818
+
819
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
820
+
821
+ ### Parameters
822
+
823
+ #### this
824
+
825
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
826
+
827
+ #### mod
828
+
829
+ \| `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
830
+ \| `undefined`
831
+
832
+ #### account
833
+
834
+ `AccountInstance`
835
+
836
+ #### checkIdentity?
837
+
838
+ `boolean`
839
+
840
+ ### Returns
841
+
842
+ `TModuleWrapper`
843
+
844
+ ### Inherited from
845
+
846
+ ```ts
847
+ ModuleWrapper.wrap
848
+ ```
849
+
850
+ ***
851
+
852
+ ### addParent()
853
+
854
+ ```ts
855
+ addParent(mod): void;
856
+ ```
857
+
858
+ ### Parameters
859
+
860
+ #### mod
861
+
862
+ `ModuleInstance`
863
+
864
+ ### Returns
865
+
866
+ `void`
867
+
868
+ ### Implementation of
869
+
870
+ ```ts
871
+ BridgeInstance.addParent
872
+ ```
873
+
874
+ ### Inherited from
875
+
876
+ ```ts
877
+ ModuleWrapper.addParent
878
+ ```
879
+
880
+ ***
881
+
882
+ ### addressPreviousHash()
883
+
884
+ ```ts
885
+ addressPreviousHash(): Promise<AddressPreviousHashPayload>;
886
+ ```
887
+
888
+ ### Returns
889
+
890
+ `Promise`\<`AddressPreviousHashPayload`\>
891
+
892
+ ### Inherited from
893
+
894
+ ```ts
895
+ ModuleWrapper.addressPreviousHash
896
+ ```
897
+
898
+ ***
899
+
900
+ ### clearListeners()
901
+
902
+ ```ts
903
+ clearListeners(eventNames): void;
904
+ ```
905
+
906
+ Removes all listeners for the specified event name(s).
907
+
908
+ ### Parameters
909
+
910
+ #### eventNames
911
+
912
+ `Parameters`\<`TWrappedModule`\[`"clearListeners"`\]\>\[`0`\]
913
+
914
+ ### Returns
915
+
916
+ `void`
917
+
918
+ ### Implementation of
919
+
920
+ ```ts
921
+ BridgeInstance.clearListeners
922
+ ```
923
+
924
+ ### Inherited from
925
+
926
+ ```ts
927
+ ModuleWrapper.clearListeners
928
+ ```
929
+
930
+ ***
931
+
932
+ ### emit()
933
+
934
+ ```ts
935
+ emit(eventName, eventArgs): Promise<void>;
936
+ ```
937
+
938
+ Emits an event, invoking all registered listeners concurrently.
939
+
940
+ ### Parameters
941
+
942
+ #### eventName
943
+
944
+ `Parameters`\<`TWrappedModule`\[`"emit"`\]\>\[`0`\]
945
+
946
+ #### eventArgs
947
+
948
+ `Parameters`\<`TWrappedModule`\[`"emit"`\]\>\[`1`\]
949
+
950
+ ### Returns
951
+
952
+ `Promise`\<`void`\>
953
+
954
+ ### Implementation of
955
+
956
+ ```ts
957
+ BridgeInstance.emit
958
+ ```
959
+
960
+ ### Inherited from
961
+
962
+ ```ts
963
+ ModuleWrapper.emit
964
+ ```
965
+
966
+ ***
967
+
968
+ ### emitSerial()
969
+
970
+ ```ts
971
+ emitSerial(eventName, eventArgs): Promise<void>;
972
+ ```
973
+
974
+ Emits an event, invoking all registered listeners sequentially in order.
975
+
976
+ ### Parameters
977
+
978
+ #### eventName
979
+
980
+ `Parameters`\<`TWrappedModule`\[`"emitSerial"`\]\>\[`0`\]
981
+
982
+ #### eventArgs
983
+
984
+ `Parameters`\<`TWrappedModule`\[`"emitSerial"`\]\>\[`1`\]
985
+
986
+ ### Returns
987
+
988
+ `Promise`\<`void`\>
989
+
990
+ ### Implementation of
991
+
992
+ ```ts
993
+ BridgeInstance.emitSerial
994
+ ```
995
+
996
+ ### Inherited from
997
+
998
+ ```ts
999
+ ModuleWrapper.emitSerial
1000
+ ```
1001
+
1002
+ ***
1003
+
1004
+ ### listenerCount()
1005
+
1006
+ ```ts
1007
+ listenerCount(eventNames): number;
1008
+ ```
1009
+
1010
+ Returns the total number of listeners registered for the specified event name(s).
1011
+
1012
+ ### Parameters
1013
+
1014
+ #### eventNames
1015
+
1016
+ `Parameters`\<`TWrappedModule`\[`"listenerCount"`\]\>\[`0`\]
1017
+
1018
+ ### Returns
1019
+
1020
+ `number`
1021
+
1022
+ ### Implementation of
1023
+
1024
+ ```ts
1025
+ BridgeInstance.listenerCount
1026
+ ```
1027
+
1028
+ ### Inherited from
1029
+
1030
+ ```ts
1031
+ ModuleWrapper.listenerCount
1032
+ ```
1033
+
1034
+ ***
1035
+
1036
+ ### manifest()
1037
+
1038
+ ```ts
1039
+ manifest(maxDepth?): Promise<ModuleManifestPayload>;
1040
+ ```
1041
+
1042
+ ### Parameters
1043
+
1044
+ #### maxDepth?
1045
+
1046
+ `number`
1047
+
1048
+ ### Returns
1049
+
1050
+ `Promise`\<`ModuleManifestPayload`\>
1051
+
1052
+ ### Implementation of
1053
+
1054
+ ```ts
1055
+ BridgeInstance.manifest
1056
+ ```
1057
+
1058
+ ### Inherited from
1059
+
1060
+ ```ts
1061
+ ModuleWrapper.manifest
1062
+ ```
1063
+
1064
+ ***
1065
+
1066
+ ### manifestQuery()
1067
+
1068
+ ```ts
1069
+ manifestQuery(account, maxDepth?): Promise<ModuleQueryResult<ModuleManifestPayload>>;
1070
+ ```
1071
+
1072
+ ### Parameters
1073
+
1074
+ #### account
1075
+
1076
+ `AccountInstance`
1077
+
1078
+ #### maxDepth?
1079
+
1080
+ `number`
1081
+
1082
+ ### Returns
1083
+
1084
+ `Promise`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
1085
+
1086
+ ### Implementation of
1087
+
1088
+ ```ts
1089
+ BridgeInstance.manifestQuery
1090
+ ```
1091
+
1092
+ ### Inherited from
1093
+
1094
+ ```ts
1095
+ ModuleWrapper.manifestQuery
1096
+ ```
1097
+
1098
+ ***
1099
+
1100
+ ### moduleAddress()
1101
+
1102
+ ```ts
1103
+ moduleAddress(): Promise<AddressPreviousHashPayload[]>;
1104
+ ```
1105
+
1106
+ ### Returns
1107
+
1108
+ `Promise`\<`AddressPreviousHashPayload`[]\>
1109
+
1110
+ ### Implementation of
1111
+
1112
+ ```ts
1113
+ BridgeInstance.moduleAddress
1114
+ ```
1115
+
1116
+ ### Inherited from
1117
+
1118
+ ```ts
1119
+ ModuleWrapper.moduleAddress
1120
+ ```
1121
+
1122
+ ***
1123
+
1124
+ ### off()
1125
+
1126
+ ```ts
1127
+ off<TEventName>(eventNames, listener): void;
1128
+ ```
1129
+
1130
+ Removes a specific listener from the specified event name(s).
1131
+
1132
+ ### Type Parameters
1133
+
1134
+ #### TEventName
1135
+
1136
+ `TEventName` *extends* `string` \| `number` \| `symbol`
1137
+
1138
+ ### Parameters
1139
+
1140
+ #### eventNames
1141
+
1142
+ `TEventName`
1143
+
1144
+ #### listener
1145
+
1146
+ `EventListener`\<`TWrappedModule`\[`"eventData"`\]\[`TEventName`\]\>
1147
+
1148
+ ### Returns
1149
+
1150
+ `void`
1151
+
1152
+ ### Implementation of
1153
+
1154
+ ```ts
1155
+ BridgeInstance.off
1156
+ ```
1157
+
1158
+ ### Inherited from
1159
+
1160
+ ```ts
1161
+ ModuleWrapper.off
1162
+ ```
1163
+
1164
+ ***
1165
+
1166
+ ### offAny()
1167
+
1168
+ ```ts
1169
+ offAny(listener): void;
1170
+ ```
1171
+
1172
+ Removes a wildcard listener that was receiving all events.
1173
+
1174
+ ### Parameters
1175
+
1176
+ #### listener
1177
+
1178
+ `EventAnyListener`
1179
+
1180
+ ### Returns
1181
+
1182
+ `void`
1183
+
1184
+ ### Implementation of
1185
+
1186
+ ```ts
1187
+ BridgeInstance.offAny
1188
+ ```
1189
+
1190
+ ### Inherited from
1191
+
1192
+ ```ts
1193
+ ModuleWrapper.offAny
1194
+ ```
1195
+
1196
+ ***
1197
+
1198
+ ### on()
1199
+
1200
+ ```ts
1201
+ on<TEventName>(eventNames, listener): EventUnsubscribeFunction;
1202
+ ```
1203
+
1204
+ Subscribes a listener to the specified event name(s) and returns an unsubscribe function.
1205
+
1206
+ ### Type Parameters
1207
+
1208
+ #### TEventName
1209
+
1210
+ `TEventName` *extends* `string` \| `number` \| `symbol`
1211
+
1212
+ ### Parameters
1213
+
1214
+ #### eventNames
1215
+
1216
+ `TEventName`
1217
+
1218
+ #### listener
1219
+
1220
+ `EventListener`\<`TWrappedModule`\[`"eventData"`\]\[`TEventName`\]\>
1221
+
1222
+ ### Returns
1223
+
1224
+ `EventUnsubscribeFunction`
1225
+
1226
+ ### Implementation of
1227
+
1228
+ ```ts
1229
+ BridgeInstance.on
1230
+ ```
1231
+
1232
+ ### Inherited from
1233
+
1234
+ ```ts
1235
+ ModuleWrapper.on
1236
+ ```
1237
+
1238
+ ***
1239
+
1240
+ ### onAny()
1241
+
1242
+ ```ts
1243
+ onAny(listener): EventUnsubscribeFunction;
1244
+ ```
1245
+
1246
+ Subscribes a wildcard listener that receives all events and returns an unsubscribe function.
1247
+
1248
+ ### Parameters
1249
+
1250
+ #### listener
1251
+
1252
+ `EventAnyListener`
1253
+
1254
+ ### Returns
1255
+
1256
+ `EventUnsubscribeFunction`
1257
+
1258
+ ### Implementation of
1259
+
1260
+ ```ts
1261
+ BridgeInstance.onAny
1262
+ ```
1263
+
1264
+ ### Inherited from
1265
+
1266
+ ```ts
1267
+ ModuleWrapper.onAny
1268
+ ```
1269
+
1270
+ ***
1271
+
1272
+ ### once()
1273
+
1274
+ ```ts
1275
+ once<TEventName>(eventName, listener): EventUnsubscribeFunction;
1276
+ ```
1277
+
1278
+ Subscribes a listener that will be invoked only once for the specified event, then automatically removed.
1279
+
1280
+ ### Type Parameters
1281
+
1282
+ #### TEventName
1283
+
1284
+ `TEventName` *extends* `string` \| `number` \| `symbol`
1285
+
1286
+ ### Parameters
1287
+
1288
+ #### eventName
1289
+
1290
+ `TEventName`
1291
+
1292
+ #### listener
1293
+
1294
+ `EventListener`\<`TWrappedModule`\[`"eventData"`\]\[`TEventName`\]\>
1295
+
1296
+ ### Returns
1297
+
1298
+ `EventUnsubscribeFunction`
1299
+
1300
+ ### Implementation of
1301
+
1302
+ ```ts
1303
+ BridgeInstance.once
1304
+ ```
1305
+
1306
+ ### Inherited from
1307
+
1308
+ ```ts
1309
+ ModuleWrapper.once
1310
+ ```
1311
+
1312
+ ***
1313
+
1314
+ ### parents()
1315
+
1316
+ ```ts
1317
+ parents(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1318
+ ```
1319
+
1320
+ ### Returns
1321
+
1322
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1323
+
1324
+ ### Implementation of
1325
+
1326
+ ```ts
1327
+ BridgeInstance.parents
1328
+ ```
1329
+
1330
+ ### Inherited from
1331
+
1332
+ ```ts
1333
+ ModuleWrapper.parents
1334
+ ```
1335
+
1336
+ ***
1337
+
1338
+ ### previousHash()
1339
+
1340
+ ```ts
1341
+ previousHash(): Promise<string | undefined>;
1342
+ ```
1343
+
1344
+ ### Returns
1345
+
1346
+ `Promise`\<`string` \| `undefined`\>
1347
+
1348
+ ### Implementation of
1349
+
1350
+ ```ts
1351
+ BridgeInstance.previousHash
1352
+ ```
1353
+
1354
+ ### Inherited from
1355
+
1356
+ ```ts
1357
+ ModuleWrapper.previousHash
1358
+ ```
1359
+
1360
+ ***
1361
+
1362
+ ### previousHashQuery()
1363
+
1364
+ ```ts
1365
+ previousHashQuery(account?): Promise<ModuleQueryResult<AddressPreviousHashPayload>>;
1366
+ ```
1367
+
1368
+ ### Parameters
1369
+
1370
+ #### account?
1371
+
1372
+ `AccountInstance`
1373
+
1374
+ ### Returns
1375
+
1376
+ `Promise`\<`ModuleQueryResult`\<`AddressPreviousHashPayload`\>\>
1377
+
1378
+ ### Inherited from
1379
+
1380
+ ```ts
1381
+ ModuleWrapper.previousHashQuery
1382
+ ```
1383
+
1384
+ ***
1385
+
1386
+ ### privateChildren()
1387
+
1388
+ ```ts
1389
+ privateChildren(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1390
+ ```
1391
+
1392
+ ### Returns
1393
+
1394
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1395
+
1396
+ ### Implementation of
1397
+
1398
+ ```ts
1399
+ BridgeInstance.privateChildren
1400
+ ```
1401
+
1402
+ ### Inherited from
1403
+
1404
+ ```ts
1405
+ ModuleWrapper.privateChildren
1406
+ ```
1407
+
1408
+ ***
1409
+
1410
+ ### publicChildren()
1411
+
1412
+ ```ts
1413
+ publicChildren(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1414
+ ```
1415
+
1416
+ ### Returns
1417
+
1418
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1419
+
1420
+ ### Implementation of
1421
+
1422
+ ```ts
1423
+ BridgeInstance.publicChildren
1424
+ ```
1425
+
1426
+ ### Inherited from
1427
+
1428
+ ```ts
1429
+ ModuleWrapper.publicChildren
1430
+ ```
1431
+
1432
+ ***
1433
+
1434
+ ### query()
1435
+
1436
+ ```ts
1437
+ query<T>(query, payloads?): Promise<ModuleQueryResult>;
1438
+ ```
1439
+
1440
+ ### Type Parameters
1441
+
1442
+ #### T
1443
+
1444
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1445
+
1446
+ ### Parameters
1447
+
1448
+ #### query
1449
+
1450
+ `T`
1451
+
1452
+ #### payloads?
1453
+
1454
+ `Payload`[]
1455
+
1456
+ ### Returns
1457
+
1458
+ `Promise`\<`ModuleQueryResult`\>
1459
+
1460
+ ### Implementation of
1461
+
1462
+ ```ts
1463
+ BridgeInstance.query
1464
+ ```
1465
+
1466
+ ### Inherited from
1467
+
1468
+ ```ts
1469
+ ModuleWrapper.query
1470
+ ```
1471
+
1472
+ ***
1473
+
1474
+ ### queryable()
1475
+
1476
+ ```ts
1477
+ queryable<T>(query, payloads?): Promisable<boolean>;
1478
+ ```
1479
+
1480
+ ### Type Parameters
1481
+
1482
+ #### T
1483
+
1484
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1485
+
1486
+ ### Parameters
1487
+
1488
+ #### query
1489
+
1490
+ `T`
1491
+
1492
+ #### payloads?
1493
+
1494
+ `Payload`[]
1495
+
1496
+ ### Returns
1497
+
1498
+ `Promisable`\<`boolean`\>
1499
+
1500
+ ### Implementation of
1501
+
1502
+ ```ts
1503
+ BridgeInstance.queryable
1504
+ ```
1505
+
1506
+ ### Inherited from
1507
+
1508
+ ```ts
1509
+ ModuleWrapper.queryable
1510
+ ```
1511
+
1512
+ ***
1513
+
1514
+ ### removeParent()
1515
+
1516
+ ```ts
1517
+ removeParent(address): void;
1518
+ ```
1519
+
1520
+ ### Parameters
1521
+
1522
+ #### address
1523
+
1524
+ `BrandedAddress`
1525
+
1526
+ ### Returns
1527
+
1528
+ `void`
1529
+
1530
+ ### Implementation of
1531
+
1532
+ ```ts
1533
+ BridgeInstance.removeParent
1534
+ ```
1535
+
1536
+ ### Inherited from
1537
+
1538
+ ```ts
1539
+ ModuleWrapper.removeParent
1540
+ ```
1541
+
1542
+ ***
1543
+
1544
+ ### ~~resolve()~~
1545
+
1546
+ ### Call Signature
1547
+
1548
+ ```ts
1549
+ resolve<T>(): Promise<T[]>;
1550
+ ```
1551
+
1552
+ #### Type Parameters
1553
+
1554
+ ##### T
1555
+
1556
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1557
+
1558
+ #### Returns
1559
+
1560
+ `Promise`\<`T`[]\>
1561
+
1562
+ #### Deprecated
1563
+
1564
+ do not pass undefined. If trying to get all, pass '*'
1565
+
1566
+ #### Implementation of
1567
+
1568
+ ```ts
1569
+ BridgeInstance.resolve
1570
+ ```
1571
+
1572
+ #### Inherited from
1573
+
1574
+ ```ts
1575
+ ModuleWrapper.resolve
1576
+ ```
1577
+
1578
+ ### Call Signature
1579
+
1580
+ ```ts
1581
+ resolve<T>(all, options?): Promise<T[]>;
1582
+ ```
1583
+
1584
+ #### Type Parameters
1585
+
1586
+ ##### T
1587
+
1588
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1589
+
1590
+ #### Parameters
1591
+
1592
+ ##### all
1593
+
1594
+ `"*"`
1595
+
1596
+ ##### options?
1597
+
1598
+ `ModuleFilterOptions`\<`T`\>
1599
+
1600
+ #### Returns
1601
+
1602
+ `Promise`\<`T`[]\>
1603
+
1604
+ #### Deprecated
1605
+
1606
+ do not pass undefined. If trying to get all, pass '*'
1607
+
1608
+ #### Implementation of
1609
+
1610
+ ```ts
1611
+ BridgeInstance.resolve
1612
+ ```
1613
+
1614
+ #### Inherited from
1615
+
1616
+ ```ts
1617
+ ModuleWrapper.resolve
1618
+ ```
1619
+
1620
+ ### Call Signature
1621
+
1622
+ ```ts
1623
+ resolve<T>(id, options?): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
1624
+ ```
1625
+
1626
+ #### Type Parameters
1627
+
1628
+ ##### T
1629
+
1630
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1631
+
1632
+ #### Parameters
1633
+
1634
+ ##### id
1635
+
1636
+ `ModuleIdentifier`
1637
+
1638
+ ##### options?
1639
+
1640
+ `ModuleFilterOptions`\<`T`\>
1641
+
1642
+ #### Returns
1643
+
1644
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
1645
+
1646
+ #### Deprecated
1647
+
1648
+ do not pass undefined. If trying to get all, pass '*'
1649
+
1650
+ #### Implementation of
1651
+
1652
+ ```ts
1653
+ BridgeInstance.resolve
1654
+ ```
1655
+
1656
+ #### Inherited from
1657
+
1658
+ ```ts
1659
+ ModuleWrapper.resolve
1660
+ ```
1661
+
1662
+ ***
1663
+
1664
+ ### resolvePrivate()
1665
+
1666
+ ### Call Signature
1667
+
1668
+ ```ts
1669
+ resolvePrivate<T>(all, options?): Promise<T[]>;
1670
+ ```
1671
+
1672
+ #### Type Parameters
1673
+
1674
+ ##### T
1675
+
1676
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1677
+
1678
+ #### Parameters
1679
+
1680
+ ##### all
1681
+
1682
+ `"*"`
1683
+
1684
+ ##### options?
1685
+
1686
+ `ModuleFilterOptions`\<`T`\>
1687
+
1688
+ #### Returns
1689
+
1690
+ `Promise`\<`T`[]\>
1691
+
1692
+ #### Implementation of
1693
+
1694
+ ```ts
1695
+ BridgeInstance.resolvePrivate
1696
+ ```
1697
+
1698
+ #### Inherited from
1699
+
1700
+ ```ts
1701
+ ModuleWrapper.resolvePrivate
1702
+ ```
1703
+
1704
+ ### Call Signature
1705
+
1706
+ ```ts
1707
+ resolvePrivate<T>(id, options?): Promise<T | undefined>;
1708
+ ```
1709
+
1710
+ #### Type Parameters
1711
+
1712
+ ##### T
1713
+
1714
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1715
+
1716
+ #### Parameters
1717
+
1718
+ ##### id
1719
+
1720
+ `ModuleIdentifier`
1721
+
1722
+ ##### options?
1723
+
1724
+ `ModuleFilterOptions`\<`T`\>
1725
+
1726
+ #### Returns
1727
+
1728
+ `Promise`\<`T` \| `undefined`\>
1729
+
1730
+ #### Implementation of
1731
+
1732
+ ```ts
1733
+ BridgeInstance.resolvePrivate
1734
+ ```
1735
+
1736
+ #### Inherited from
1737
+
1738
+ ```ts
1739
+ ModuleWrapper.resolvePrivate
1740
+ ```
1741
+
1742
+ ***
1743
+
1744
+ ### siblings()
1745
+
1746
+ ```ts
1747
+ siblings(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1748
+ ```
1749
+
1750
+ ### Returns
1751
+
1752
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1753
+
1754
+ ### Implementation of
1755
+
1756
+ ```ts
1757
+ BridgeInstance.siblings
1758
+ ```
1759
+
1760
+ ### Inherited from
1761
+
1762
+ ```ts
1763
+ ModuleWrapper.siblings
1764
+ ```
1765
+
1766
+ ***
1767
+
1768
+ ### start()
1769
+
1770
+ ```ts
1771
+ start(): Promise<boolean>;
1772
+ ```
1773
+
1774
+ Starts the instance. Resolves to true if started successfully.
1775
+
1776
+ ### Returns
1777
+
1778
+ `Promise`\<`boolean`\>
1779
+
1780
+ ### Implementation of
1781
+
1782
+ ```ts
1783
+ BridgeInstance.start
1784
+ ```
1785
+
1786
+ ### Inherited from
1787
+
1788
+ ```ts
1789
+ ModuleWrapper.start
1790
+ ```
1791
+
1792
+ ***
1793
+
1794
+ ### state()
1795
+
1796
+ ```ts
1797
+ state(): Promise<Payload[]>;
1798
+ ```
1799
+
1800
+ ### Returns
1801
+
1802
+ `Promise`\<`Payload`[]\>
1803
+
1804
+ ### Implementation of
1805
+
1806
+ ```ts
1807
+ BridgeInstance.state
1808
+ ```
1809
+
1810
+ ### Inherited from
1811
+
1812
+ ```ts
1813
+ ModuleWrapper.state
1814
+ ```
1815
+
1816
+ ***
1817
+
1818
+ ### stateQuery()
1819
+
1820
+ ```ts
1821
+ stateQuery(_account): Promise<ModuleQueryResult>;
1822
+ ```
1823
+
1824
+ ### Parameters
1825
+
1826
+ #### \_account
1827
+
1828
+ `AccountInstance`
1829
+
1830
+ ### Returns
1831
+
1832
+ `Promise`\<`ModuleQueryResult`\>
1833
+
1834
+ ### Implementation of
1835
+
1836
+ ```ts
1837
+ BridgeInstance.stateQuery
1838
+ ```
1839
+
1840
+ ### Inherited from
1841
+
1842
+ ```ts
1843
+ ModuleWrapper.stateQuery
1844
+ ```
1845
+
1846
+ ***
1847
+
1848
+ ### stop()
1849
+
1850
+ ```ts
1851
+ stop(): Promise<boolean>;
1852
+ ```
1853
+
1854
+ Stops the instance. Resolves to true if stopped successfully.
1855
+
1856
+ ### Returns
1857
+
1858
+ `Promise`\<`boolean`\>
1859
+
1860
+ ### Implementation of
1861
+
1862
+ ```ts
1863
+ BridgeInstance.stop
1864
+ ```
1865
+
1866
+ ### Inherited from
1867
+
1868
+ ```ts
1869
+ ModuleWrapper.stop
1870
+ ```
1871
+
1872
+ ***
1873
+
1874
+ ### bindQuery()
1875
+
1876
+ ```ts
1877
+ protected bindQuery<T>(
1878
+ query,
1879
+ payloads?,
1880
+ account?,
1881
+ additionalSigners?): PromiseEx<[UnsignedQueryBoundWitness, Payload[], ModuleError[]], AccountInstance>;
1882
+ ```
1883
+
1884
+ ### Type Parameters
1885
+
1886
+ #### T
1887
+
1888
+ `T` *extends* `Query`
1889
+
1890
+ ### Parameters
1891
+
1892
+ #### query
1893
+
1894
+ `T`
1895
+
1896
+ #### payloads?
1897
+
1898
+ `Payload`[]
1899
+
1900
+ #### account?
1901
+
1902
+ `AccountInstance`
1903
+
1904
+ #### additionalSigners?
1905
+
1906
+ `AccountInstance`[]
1907
+
1908
+ ### Returns
1909
+
1910
+ `PromiseEx`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `ModuleError`[]\], `AccountInstance`\>
1911
+
1912
+ ### Inherited from
1913
+
1914
+ ```ts
1915
+ ModuleWrapper.bindQuery
1916
+ ```
1917
+
1918
+ ***
1919
+
1920
+ ### bindQueryInternal()
1921
+
1922
+ ```ts
1923
+ protected bindQueryInternal<T>(
1924
+ query,
1925
+ payloads?,
1926
+ account?,
1927
+ additionalSigners?): Promise<[UnsignedQueryBoundWitness, Payload[], ModuleError[]]>;
1928
+ ```
1929
+
1930
+ ### Type Parameters
1931
+
1932
+ #### T
1933
+
1934
+ `T` *extends* `Query`
1935
+
1936
+ ### Parameters
1937
+
1938
+ #### query
1939
+
1940
+ `T`
1941
+
1942
+ #### payloads?
1943
+
1944
+ `Payload`[]
1945
+
1946
+ #### account?
1947
+
1948
+ `AccountInstance`
1949
+
1950
+ #### additionalSigners?
1951
+
1952
+ `AccountInstance`[]
1953
+
1954
+ ### Returns
1955
+
1956
+ `Promise`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `ModuleError`[]\]\>
1957
+
1958
+ ### Inherited from
1959
+
1960
+ ```ts
1961
+ ModuleWrapper.bindQueryInternal
1962
+ ```
1963
+
1964
+ ***
1965
+
1966
+ ### filterErrors()
1967
+
1968
+ ```ts
1969
+ protected filterErrors(__namedParameters): ModuleError[];
1970
+ ```
1971
+
1972
+ ### Parameters
1973
+
1974
+ #### \_\_namedParameters
1975
+
1976
+ `ModuleQueryResult`
1977
+
1978
+ ### Returns
1979
+
1980
+ `ModuleError`[]
1981
+
1982
+ ### Inherited from
1983
+
1984
+ ```ts
1985
+ ModuleWrapper.filterErrors
1986
+ ```
1987
+
1988
+ ***
1989
+
1990
+ ### sendQuery()
1991
+
1992
+ ```ts
1993
+ protected sendQuery<T, P, R>(queryPayload, payloads?): Promise<R[]>;
1994
+ ```
1995
+
1996
+ ### Type Parameters
1997
+
1998
+ #### T
1999
+
2000
+ `T` *extends* `Query`
2001
+
2002
+ #### P
2003
+
2004
+ `P` *extends* `Payload` = `Payload`
2005
+
2006
+ #### R
2007
+
2008
+ `R` *extends* `Payload` = `Payload`
2009
+
2010
+ ### Parameters
2011
+
2012
+ #### queryPayload
2013
+
2014
+ `T`
2015
+
2016
+ #### payloads?
2017
+
2018
+ `P`[]
2019
+
2020
+ ### Returns
2021
+
2022
+ `Promise`\<`R`[]\>
2023
+
2024
+ ### Inherited from
2025
+
2026
+ ```ts
2027
+ ModuleWrapper.sendQuery
2028
+ ```
2029
+
2030
+ ***
2031
+
2032
+ ### sendQueryRaw()
2033
+
2034
+ ```ts
2035
+ protected sendQueryRaw<T, P, R>(
2036
+ queryPayload,
2037
+ payloads?,
2038
+ account?): Promise<ModuleQueryResult<R>>;
2039
+ ```
2040
+
2041
+ ### Type Parameters
2042
+
2043
+ #### T
2044
+
2045
+ `T` *extends* `Query`
2046
+
2047
+ #### P
2048
+
2049
+ `P` *extends* `Payload` = `Payload`
2050
+
2051
+ #### R
2052
+
2053
+ `R` *extends* `Payload` = `Payload`
2054
+
2055
+ ### Parameters
2056
+
2057
+ #### queryPayload
2058
+
2059
+ `T`
2060
+
2061
+ #### payloads?
2062
+
2063
+ `P`[]
2064
+
2065
+ #### account?
2066
+
2067
+ `AccountInstance`
2068
+
2069
+ ### Returns
2070
+
2071
+ `Promise`\<`ModuleQueryResult`\<`R`\>\>
2072
+
2073
+ ### Inherited from
18
2074
 
19
- ## Credits
2075
+ ```ts
2076
+ ModuleWrapper.sendQueryRaw
2077
+ ```
20
2078
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
2079
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
2080
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
2081
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/bridge-wrapper.svg
2082
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/bridge-wrapper
2083
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/bridge-wrapper.svg
2084
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE