@xyo-network/archivist-wrapper 5.3.25 → 5.3.27

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 +2413 -10
  2. package/package.json +22 -27
package/README.md CHANGED
@@ -1,23 +1,2426 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/archivist-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__archivist-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
+ ### archivist
50
+
51
+ ### packages
52
+
53
+ ### wrapper
54
+
55
+ ### .temp-typedoc
56
+
57
+ ### classes
58
+
59
+ ### <a id="ArchivistWrapper"></a>ArchivistWrapper
60
+
61
+ [**@xyo-network/archivist-wrapper**](#../README)
62
+
63
+ ***
64
+
65
+ ## Extends
66
+
67
+ - `ModuleWrapper`\<`TWrappedModule`\>
68
+
69
+ ## Type Parameters
70
+
71
+ ### TWrappedModule
72
+
73
+ `TWrappedModule` *extends* `ArchivistModuleInstance` = `ArchivistModuleInstance`
74
+
75
+ ## Implements
76
+
77
+ - `AttachableArchivistInstance`\<`ArchivistModuleInstance`\[`"params"`\]\>
78
+
79
+ ## Constructors
80
+
81
+ ### Constructor
82
+
83
+ ```ts
84
+ new ArchivistWrapper<TWrappedModule>(params): ArchivistWrapper<TWrappedModule>;
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+ #### params
90
+
91
+ `ModuleWrapperParams`\<`TWrappedModule`\>
92
+
93
+ ### Returns
94
+
95
+ `ArchivistWrapper`\<`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<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>> = isArchivistInstance;
109
+ ```
110
+
111
+ ### Overrides
112
+
113
+ ```ts
114
+ ModuleWrapper.instanceIdentityCheck
115
+ ```
116
+
117
+ ***
118
+
119
+ ### moduleIdentityCheck
120
+
121
+ ```ts
122
+ readonly static moduleIdentityCheck: TypeCheck<ArchivistModuleInstance<QueryableModuleParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData>> = isArchivistModule;
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
+ ### Overrides
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
+ AttachableArchivistInstance.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
+ AttachableArchivistInstance.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
+ AttachableArchivistInstance.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
+ AttachableArchivistInstance.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
+ ### Implementation of
308
+
309
+ ```ts
310
+ AttachableArchivistInstance.downResolver
311
+ ```
312
+
313
+ ### Inherited from
314
+
315
+ ```ts
316
+ ModuleWrapper.downResolver
317
+ ```
318
+
319
+ ***
320
+
321
+ ### id
322
+
323
+ ### Get Signature
324
+
325
+ ```ts
326
+ get id(): string;
327
+ ```
328
+
329
+ The name (if specified) or address of the module
330
+
331
+ #### Returns
332
+
333
+ `string`
334
+
335
+ ### Implementation of
336
+
337
+ ```ts
338
+ AttachableArchivistInstance.id
339
+ ```
340
+
341
+ ### Inherited from
342
+
343
+ ```ts
344
+ ModuleWrapper.id
345
+ ```
346
+
347
+ ***
348
+
349
+ ### mod
350
+
351
+ ### Get Signature
352
+
353
+ ```ts
354
+ get mod(): TWrappedModule;
355
+ ```
356
+
357
+ #### Returns
358
+
359
+ `TWrappedModule`
360
+
361
+ ### Inherited from
362
+
363
+ ```ts
364
+ ModuleWrapper.mod
365
+ ```
366
+
367
+ ***
368
+
369
+ ### modName
370
+
371
+ ### Get Signature
372
+
373
+ ```ts
374
+ get modName(): string | undefined;
375
+ ```
376
+
377
+ #### Returns
378
+
379
+ `string` \| `undefined`
380
+
381
+ ### Implementation of
382
+
383
+ ```ts
384
+ AttachableArchivistInstance.modName
385
+ ```
386
+
387
+ ### Inherited from
388
+
389
+ ```ts
390
+ ModuleWrapper.modName
391
+ ```
392
+
393
+ ***
394
+
395
+ ### name
396
+
397
+ ### Get Signature
398
+
399
+ ```ts
400
+ get name(): CreatableName;
401
+ ```
402
+
403
+ The name identifier for this instance.
404
+
405
+ #### Returns
406
+
407
+ `CreatableName`
408
+
409
+ ### Implementation of
410
+
411
+ ```ts
412
+ AttachableArchivistInstance.name
413
+ ```
414
+
415
+ ### Inherited from
416
+
417
+ ```ts
418
+ ModuleWrapper.name
419
+ ```
420
+
421
+ ***
422
+
423
+ ### priority
424
+
425
+ ### Get Signature
426
+
427
+ ```ts
428
+ get priority(): 1;
429
+ ```
430
+
431
+ #### Returns
432
+
433
+ `1`
434
+
435
+ ### Implementation of
436
+
437
+ ```ts
438
+ AttachableArchivistInstance.priority
439
+ ```
440
+
441
+ ### Inherited from
442
+
443
+ ```ts
444
+ ModuleWrapper.priority
445
+ ```
446
+
447
+ ***
448
+
449
+ ### privateResolver
450
+
451
+ ### Get Signature
452
+
453
+ ```ts
454
+ get privateResolver(): ModuleResolverInstance;
455
+ ```
456
+
457
+ #### Returns
458
+
459
+ `ModuleResolverInstance`
460
+
461
+ ### Implementation of
462
+
463
+ ```ts
464
+ AttachableArchivistInstance.privateResolver
465
+ ```
466
+
467
+ ### Inherited from
468
+
469
+ ```ts
470
+ ModuleWrapper.privateResolver
471
+ ```
472
+
473
+ ***
474
+
475
+ ### queries
476
+
477
+ ### Get Signature
478
+
479
+ ```ts
480
+ get queries(): string[];
481
+ ```
482
+
483
+ #### Returns
484
+
485
+ `string`[]
486
+
487
+ ### Implementation of
488
+
489
+ ```ts
490
+ AttachableArchivistInstance.queries
491
+ ```
492
+
493
+ ### Inherited from
494
+
495
+ ```ts
496
+ ModuleWrapper.queries
497
+ ```
498
+
499
+ ***
500
+
501
+ ### status
502
+
503
+ ### Get Signature
504
+
505
+ ```ts
506
+ get status(): ModuleStatus;
507
+ ```
508
+
509
+ #### Returns
510
+
511
+ `ModuleStatus`
512
+
513
+ ### Set Signature
514
+
515
+ ```ts
516
+ set status(value): void;
517
+ ```
518
+
519
+ #### Parameters
520
+
521
+ ##### value
522
+
523
+ `ModuleStatus`
524
+
525
+ #### Returns
526
+
527
+ `void`
528
+
529
+ ### Implementation of
530
+
531
+ ```ts
532
+ AttachableArchivistInstance.status
533
+ ```
534
+
535
+ ### Inherited from
536
+
537
+ ```ts
538
+ ModuleWrapper.status
539
+ ```
540
+
541
+ ***
542
+
543
+ ### upResolver
544
+
545
+ ### Get Signature
546
+
547
+ ```ts
548
+ get upResolver(): ModuleResolverInstance;
549
+ ```
550
+
551
+ #### Returns
552
+
553
+ `ModuleResolverInstance`
554
+
555
+ ### Implementation of
556
+
557
+ ```ts
558
+ AttachableArchivistInstance.upResolver
559
+ ```
560
+
561
+ ### Inherited from
562
+
563
+ ```ts
564
+ ModuleWrapper.upResolver
565
+ ```
566
+
567
+ ## Methods
568
+
569
+ ### ~~all()~~
570
+
571
+ ```ts
572
+ all(): Promise<WithStorageMeta<Payload>[]>;
573
+ ```
574
+
575
+ ### Returns
576
+
577
+ `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
578
+
579
+ ### Deprecated
580
+
581
+ use next or snapshot instead
582
+
583
+ ### Implementation of
584
+
585
+ ```ts
586
+ AttachableArchivistInstance.all
587
+ ```
588
+
589
+ ***
590
+
591
+ ### allQuery()
592
+
593
+ ```ts
594
+ allQuery(account?): Promise<ModuleQueryResult>;
595
+ ```
596
+
597
+ ### Parameters
598
+
599
+ #### account?
600
+
601
+ `AccountInstance`
602
+
603
+ ### Returns
604
+
605
+ `Promise`\<`ModuleQueryResult`\>
606
+
607
+ ### Implementation of
608
+
609
+ ```ts
610
+ AttachableArchivistInstance.allQuery
611
+ ```
612
+
613
+ ***
614
+
615
+ ### clear()
616
+
617
+ ```ts
618
+ clear(): Promise<void>;
619
+ ```
620
+
621
+ ### Returns
622
+
623
+ `Promise`\<`void`\>
624
+
625
+ ### Implementation of
626
+
627
+ ```ts
628
+ AttachableArchivistInstance.clear
629
+ ```
630
+
631
+ ***
632
+
633
+ ### clearQuery()
634
+
635
+ ```ts
636
+ clearQuery(account?): Promise<ModuleQueryResult>;
637
+ ```
638
+
639
+ ### Parameters
640
+
641
+ #### account?
642
+
643
+ `AccountInstance`
644
+
645
+ ### Returns
646
+
647
+ `Promise`\<`ModuleQueryResult`\>
648
+
649
+ ### Implementation of
650
+
651
+ ```ts
652
+ AttachableArchivistInstance.clearQuery
653
+ ```
654
+
655
+ ***
656
+
657
+ ### commit()
658
+
659
+ ```ts
660
+ commit(): Promise<Payload[]>;
661
+ ```
662
+
663
+ ### Returns
664
+
665
+ `Promise`\<`Payload`[]\>
666
+
667
+ ### Implementation of
668
+
669
+ ```ts
670
+ AttachableArchivistInstance.commit
671
+ ```
672
+
673
+ ***
674
+
675
+ ### commitQuery()
676
+
677
+ ```ts
678
+ commitQuery(account?): Promise<ModuleQueryResult>;
679
+ ```
680
+
681
+ ### Parameters
682
+
683
+ #### account?
684
+
685
+ `AccountInstance`
686
+
687
+ ### Returns
688
+
689
+ `Promise`\<`ModuleQueryResult`\>
690
+
691
+ ### Implementation of
692
+
693
+ ```ts
694
+ AttachableArchivistInstance.commitQuery
695
+ ```
696
+
697
+ ***
698
+
699
+ ### delete()
700
+
701
+ ```ts
702
+ delete(hashes): Promise<WithStorageMeta<Payload>[]>;
703
+ ```
704
+
705
+ ### Parameters
706
+
707
+ #### hashes
708
+
709
+ `BrandedHash`[]
710
+
711
+ ### Returns
712
+
713
+ `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
714
+
715
+ ### Implementation of
716
+
717
+ ```ts
718
+ AttachableArchivistInstance.delete
719
+ ```
720
+
721
+ ***
722
+
723
+ ### deleteQuery()
724
+
725
+ ```ts
726
+ deleteQuery(hashes, account?): Promise<ModuleQueryResult>;
727
+ ```
728
+
729
+ ### Parameters
730
+
731
+ #### hashes
732
+
733
+ `BrandedHash`[]
734
+
735
+ #### account?
736
+
737
+ `AccountInstance`
738
+
739
+ ### Returns
740
+
741
+ `Promise`\<`ModuleQueryResult`\>
742
+
743
+ ### Implementation of
744
+
745
+ ```ts
746
+ AttachableArchivistInstance.deleteQuery
747
+ ```
748
+
749
+ ***
750
+
751
+ ### get()
752
+
753
+ ```ts
754
+ get(hashes): Promise<WithStorageMeta<Payload>[]>;
755
+ ```
756
+
757
+ ### Parameters
758
+
759
+ #### hashes
760
+
761
+ `BrandedHash`[]
762
+
763
+ ### Returns
764
+
765
+ `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
766
+
767
+ ### Implementation of
768
+
769
+ ```ts
770
+ AttachableArchivistInstance.get
771
+ ```
772
+
773
+ ***
774
+
775
+ ### getQuery()
776
+
777
+ ```ts
778
+ getQuery(hashes, account?): Promise<ModuleQueryResult>;
779
+ ```
780
+
781
+ ### Parameters
782
+
783
+ #### hashes
784
+
785
+ `BrandedHash`[]
786
+
787
+ #### account?
788
+
789
+ `AccountInstance`
790
+
791
+ ### Returns
792
+
793
+ `Promise`\<`ModuleQueryResult`\>
794
+
795
+ ### Implementation of
796
+
797
+ ```ts
798
+ AttachableArchivistInstance.getQuery
799
+ ```
800
+
801
+ ***
802
+
803
+ ### insert()
804
+
805
+ ```ts
806
+ insert(payloads): Promise<WithStorageMeta<Payload>[]>;
807
+ ```
808
+
809
+ ### Parameters
810
+
811
+ #### payloads
812
+
813
+ `Payload`[]
814
+
815
+ ### Returns
816
+
817
+ `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
818
+
819
+ ### Implementation of
820
+
821
+ ```ts
822
+ AttachableArchivistInstance.insert
823
+ ```
824
+
825
+ ***
826
+
827
+ ### insertQuery()
828
+
829
+ ```ts
830
+ insertQuery(payloads, account?): Promise<ModuleQueryResult>;
831
+ ```
832
+
833
+ ### Parameters
834
+
835
+ #### payloads
836
+
837
+ `Payload`[]
838
+
839
+ #### account?
840
+
841
+ `AccountInstance`
842
+
843
+ ### Returns
844
+
845
+ `Promise`\<`ModuleQueryResult`\>
846
+
847
+ ### Implementation of
848
+
849
+ ```ts
850
+ AttachableArchivistInstance.insertQuery
851
+ ```
852
+
853
+ ***
854
+
855
+ ### next()
856
+
857
+ ```ts
858
+ next(options?): Promise<WithStorageMeta<Payload>[]>;
859
+ ```
860
+
861
+ ### Parameters
862
+
863
+ #### options?
864
+
865
+ `ArchivistNextOptions`
866
+
867
+ ### Returns
868
+
869
+ `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
870
+
871
+ ### Implementation of
872
+
873
+ ```ts
874
+ AttachableArchivistInstance.next
875
+ ```
876
+
877
+ ***
878
+
879
+ ### nextQuery()
880
+
881
+ ```ts
882
+ nextQuery(options?, account?): Promise<ModuleQueryResult>;
883
+ ```
884
+
885
+ ### Parameters
886
+
887
+ #### options?
888
+
889
+ `ArchivistNextOptions`
890
+
891
+ #### account?
892
+
893
+ `AccountInstance`
894
+
895
+ ### Returns
896
+
897
+ `Promise`\<`ModuleQueryResult`\>
898
+
899
+ ### Implementation of
900
+
901
+ ```ts
902
+ AttachableArchivistInstance.nextQuery
903
+ ```
904
+
905
+ ***
906
+
907
+ ### snapshot()
908
+
909
+ ```ts
910
+ snapshot(options?): Promise<ArchivistSnapshotPayload<WithStorageMeta<Payload>, BrandedHash>[]>;
911
+ ```
912
+
913
+ ### Parameters
914
+
915
+ #### options?
916
+
917
+ ### Returns
918
+
919
+ `Promise`\<`ArchivistSnapshotPayload`\<`WithStorageMeta`\<`Payload`\>, `BrandedHash`\>[]\>
920
+
921
+ ### Implementation of
922
+
923
+ ```ts
924
+ AttachableArchivistInstance.snapshot
925
+ ```
926
+
927
+ ***
928
+
929
+ ### snapshotQuery()
930
+
931
+ ```ts
932
+ snapshotQuery(options?, account?): Promise<ModuleQueryResult>;
933
+ ```
934
+
935
+ ### Parameters
936
+
937
+ #### options?
938
+
939
+ #### account?
940
+
941
+ `AccountInstance`
942
+
943
+ ### Returns
944
+
945
+ `Promise`\<`ModuleQueryResult`\>
946
+
947
+ ***
948
+
949
+ ### canWrap()
950
+
951
+ ```ts
952
+ static canWrap(mod?): mod is QueryableModule<QueryableModuleParams<AnyConfigSchema<ModuleConfig<object, void>>>, ModuleEventData<object>>;
953
+ ```
954
+
955
+ ### Parameters
956
+
957
+ #### mod?
958
+
959
+ `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
960
+
961
+ ### Returns
962
+
963
+ `mod is QueryableModule<QueryableModuleParams<AnyConfigSchema<ModuleConfig<object, void>>>, ModuleEventData<object>>`
964
+
965
+ ### Inherited from
966
+
967
+ ```ts
968
+ ModuleWrapper.canWrap
969
+ ```
970
+
971
+ ***
972
+
973
+ ### hasRequiredQueries()
974
+
975
+ ```ts
976
+ static hasRequiredQueries(mod): boolean;
977
+ ```
978
+
979
+ ### Parameters
980
+
981
+ #### mod
982
+
983
+ `QueryableModule`
984
+
985
+ ### Returns
986
+
987
+ `boolean`
988
+
989
+ ### Inherited from
990
+
991
+ ```ts
992
+ ModuleWrapper.hasRequiredQueries
993
+ ```
994
+
995
+ ***
996
+
997
+ ### is()
998
+
999
+ ```ts
1000
+ static is<TModuleWrapper>(this, wrapper): wrapper is TModuleWrapper;
1001
+ ```
1002
+
1003
+ ### Type Parameters
1004
+
1005
+ #### TModuleWrapper
1006
+
1007
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
1008
+
1009
+ ### Parameters
1010
+
1011
+ #### this
1012
+
1013
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
1014
+
1015
+ #### wrapper
1016
+
1017
+ `any`
1018
+
1019
+ ### Returns
1020
+
1021
+ `wrapper is TModuleWrapper`
1022
+
1023
+ ### Inherited from
1024
+
1025
+ ```ts
1026
+ ModuleWrapper.is
1027
+ ```
1028
+
1029
+ ***
1030
+
1031
+ ### missingRequiredQueries()
1032
+
1033
+ ```ts
1034
+ static missingRequiredQueries(mod): string[];
1035
+ ```
1036
+
1037
+ ### Parameters
1038
+
1039
+ #### mod
1040
+
1041
+ `QueryableModule`
1042
+
1043
+ ### Returns
1044
+
1045
+ `string`[]
1046
+
1047
+ ### Inherited from
1048
+
1049
+ ```ts
1050
+ ModuleWrapper.missingRequiredQueries
1051
+ ```
1052
+
1053
+ ***
1054
+
1055
+ ### tryWrap()
1056
+
1057
+ ```ts
1058
+ static tryWrap<TModuleWrapper>(
1059
+ this,
1060
+ mod,
1061
+ account,
1062
+ checkIdentity?): TModuleWrapper | undefined;
1063
+ ```
1064
+
1065
+ ### Type Parameters
1066
+
1067
+ #### TModuleWrapper
1068
+
1069
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
1070
+
1071
+ ### Parameters
1072
+
1073
+ #### this
1074
+
1075
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
1076
+
1077
+ #### mod
1078
+
1079
+ \| `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1080
+ \| `undefined`
1081
+
1082
+ #### account
1083
+
1084
+ `AccountInstance`
1085
+
1086
+ #### checkIdentity?
1087
+
1088
+ `boolean`
1089
+
1090
+ ### Returns
1091
+
1092
+ `TModuleWrapper` \| `undefined`
1093
+
1094
+ ### Inherited from
1095
+
1096
+ ```ts
1097
+ ModuleWrapper.tryWrap
1098
+ ```
1099
+
1100
+ ***
1101
+
1102
+ ### with()
1103
+
1104
+ ```ts
1105
+ static with<TModuleWrapper, R>(
1106
+ this,
1107
+ mod,
1108
+ closure): R | undefined;
1109
+ ```
1110
+
1111
+ ### Type Parameters
1112
+
1113
+ #### TModuleWrapper
1114
+
1115
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
1116
+
1117
+ #### R
1118
+
1119
+ `R` *extends* `Promisable`\<`void`\> = `void`
1120
+
1121
+ ### Parameters
1122
+
1123
+ #### this
1124
+
1125
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
1126
+
1127
+ #### mod
1128
+
1129
+ `any`
1130
+
1131
+ #### closure
1132
+
1133
+ (`mod`) => `R`
1134
+
1135
+ ### Returns
1136
+
1137
+ `R` \| `undefined`
1138
+
1139
+ ### Inherited from
1140
+
1141
+ ```ts
1142
+ ModuleWrapper.with
1143
+ ```
1144
+
1145
+ ***
1146
+
1147
+ ### wrap()
1148
+
1149
+ ```ts
1150
+ static wrap<TModuleWrapper>(
1151
+ this,
1152
+ mod,
1153
+ account,
1154
+ checkIdentity?): TModuleWrapper;
1155
+ ```
1156
+
1157
+ ### Type Parameters
1158
+
1159
+ #### TModuleWrapper
1160
+
1161
+ `TModuleWrapper` *extends* `ModuleWrapper`\<`QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
1162
+
1163
+ ### Parameters
1164
+
1165
+ #### this
1166
+
1167
+ `ConstructableModuleWrapper`\<`TModuleWrapper`\>
1168
+
1169
+ #### mod
1170
+
1171
+ \| `QueryableModule`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1172
+ \| `undefined`
1173
+
1174
+ #### account
1175
+
1176
+ `AccountInstance`
1177
+
1178
+ #### checkIdentity?
1179
+
1180
+ `boolean`
1181
+
1182
+ ### Returns
1183
+
1184
+ `TModuleWrapper`
1185
+
1186
+ ### Inherited from
1187
+
1188
+ ```ts
1189
+ ModuleWrapper.wrap
1190
+ ```
1191
+
1192
+ ***
1193
+
1194
+ ### addParent()
1195
+
1196
+ ```ts
1197
+ addParent(mod): void;
1198
+ ```
1199
+
1200
+ ### Parameters
1201
+
1202
+ #### mod
1203
+
1204
+ `ModuleInstance`
1205
+
1206
+ ### Returns
1207
+
1208
+ `void`
1209
+
1210
+ ### Implementation of
1211
+
1212
+ ```ts
1213
+ AttachableArchivistInstance.addParent
1214
+ ```
1215
+
1216
+ ### Inherited from
1217
+
1218
+ ```ts
1219
+ ModuleWrapper.addParent
1220
+ ```
1221
+
1222
+ ***
1223
+
1224
+ ### addressPreviousHash()
1225
+
1226
+ ```ts
1227
+ addressPreviousHash(): Promise<AddressPreviousHashPayload>;
1228
+ ```
1229
+
1230
+ ### Returns
1231
+
1232
+ `Promise`\<`AddressPreviousHashPayload`\>
1233
+
1234
+ ### Inherited from
1235
+
1236
+ ```ts
1237
+ ModuleWrapper.addressPreviousHash
1238
+ ```
1239
+
1240
+ ***
1241
+
1242
+ ### clearListeners()
1243
+
1244
+ ```ts
1245
+ clearListeners(eventNames): void;
1246
+ ```
1247
+
1248
+ Removes all listeners for the specified event name(s).
1249
+
1250
+ ### Parameters
1251
+
1252
+ #### eventNames
1253
+
1254
+ `Parameters`\<`TWrappedModule`\[`"clearListeners"`\]\>\[`0`\]
1255
+
1256
+ ### Returns
1257
+
1258
+ `void`
1259
+
1260
+ ### Implementation of
1261
+
1262
+ ```ts
1263
+ AttachableArchivistInstance.clearListeners
1264
+ ```
1265
+
1266
+ ### Inherited from
1267
+
1268
+ ```ts
1269
+ ModuleWrapper.clearListeners
1270
+ ```
1271
+
1272
+ ***
1273
+
1274
+ ### emit()
1275
+
1276
+ ```ts
1277
+ emit(eventName, eventArgs): Promise<void>;
1278
+ ```
1279
+
1280
+ Emits an event, invoking all registered listeners concurrently.
1281
+
1282
+ ### Parameters
1283
+
1284
+ #### eventName
1285
+
1286
+ `Parameters`\<`TWrappedModule`\[`"emit"`\]\>\[`0`\]
1287
+
1288
+ #### eventArgs
1289
+
1290
+ `Parameters`\<`TWrappedModule`\[`"emit"`\]\>\[`1`\]
1291
+
1292
+ ### Returns
1293
+
1294
+ `Promise`\<`void`\>
1295
+
1296
+ ### Implementation of
1297
+
1298
+ ```ts
1299
+ AttachableArchivistInstance.emit
1300
+ ```
1301
+
1302
+ ### Inherited from
1303
+
1304
+ ```ts
1305
+ ModuleWrapper.emit
1306
+ ```
1307
+
1308
+ ***
1309
+
1310
+ ### emitSerial()
1311
+
1312
+ ```ts
1313
+ emitSerial(eventName, eventArgs): Promise<void>;
1314
+ ```
1315
+
1316
+ Emits an event, invoking all registered listeners sequentially in order.
1317
+
1318
+ ### Parameters
1319
+
1320
+ #### eventName
1321
+
1322
+ `Parameters`\<`TWrappedModule`\[`"emitSerial"`\]\>\[`0`\]
1323
+
1324
+ #### eventArgs
1325
+
1326
+ `Parameters`\<`TWrappedModule`\[`"emitSerial"`\]\>\[`1`\]
1327
+
1328
+ ### Returns
1329
+
1330
+ `Promise`\<`void`\>
1331
+
1332
+ ### Implementation of
1333
+
1334
+ ```ts
1335
+ AttachableArchivistInstance.emitSerial
1336
+ ```
1337
+
1338
+ ### Inherited from
1339
+
1340
+ ```ts
1341
+ ModuleWrapper.emitSerial
1342
+ ```
1343
+
1344
+ ***
1345
+
1346
+ ### listenerCount()
1347
+
1348
+ ```ts
1349
+ listenerCount(eventNames): number;
1350
+ ```
1351
+
1352
+ Returns the total number of listeners registered for the specified event name(s).
1353
+
1354
+ ### Parameters
1355
+
1356
+ #### eventNames
1357
+
1358
+ `Parameters`\<`TWrappedModule`\[`"listenerCount"`\]\>\[`0`\]
1359
+
1360
+ ### Returns
1361
+
1362
+ `number`
1363
+
1364
+ ### Implementation of
1365
+
1366
+ ```ts
1367
+ AttachableArchivistInstance.listenerCount
1368
+ ```
1369
+
1370
+ ### Inherited from
1371
+
1372
+ ```ts
1373
+ ModuleWrapper.listenerCount
1374
+ ```
1375
+
1376
+ ***
1377
+
1378
+ ### manifest()
1379
+
1380
+ ```ts
1381
+ manifest(maxDepth?): Promise<ModuleManifestPayload>;
1382
+ ```
1383
+
1384
+ ### Parameters
1385
+
1386
+ #### maxDepth?
1387
+
1388
+ `number`
1389
+
1390
+ ### Returns
1391
+
1392
+ `Promise`\<`ModuleManifestPayload`\>
1393
+
1394
+ ### Implementation of
1395
+
1396
+ ```ts
1397
+ AttachableArchivistInstance.manifest
1398
+ ```
1399
+
1400
+ ### Inherited from
1401
+
1402
+ ```ts
1403
+ ModuleWrapper.manifest
1404
+ ```
1405
+
1406
+ ***
1407
+
1408
+ ### manifestQuery()
1409
+
1410
+ ```ts
1411
+ manifestQuery(account, maxDepth?): Promise<ModuleQueryResult<ModuleManifestPayload>>;
1412
+ ```
1413
+
1414
+ ### Parameters
1415
+
1416
+ #### account
1417
+
1418
+ `AccountInstance`
1419
+
1420
+ #### maxDepth?
1421
+
1422
+ `number`
1423
+
1424
+ ### Returns
1425
+
1426
+ `Promise`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
1427
+
1428
+ ### Implementation of
1429
+
1430
+ ```ts
1431
+ AttachableArchivistInstance.manifestQuery
1432
+ ```
1433
+
1434
+ ### Inherited from
1435
+
1436
+ ```ts
1437
+ ModuleWrapper.manifestQuery
1438
+ ```
1439
+
1440
+ ***
1441
+
1442
+ ### moduleAddress()
1443
+
1444
+ ```ts
1445
+ moduleAddress(): Promise<AddressPreviousHashPayload[]>;
1446
+ ```
1447
+
1448
+ ### Returns
1449
+
1450
+ `Promise`\<`AddressPreviousHashPayload`[]\>
1451
+
1452
+ ### Implementation of
1453
+
1454
+ ```ts
1455
+ AttachableArchivistInstance.moduleAddress
1456
+ ```
1457
+
1458
+ ### Inherited from
1459
+
1460
+ ```ts
1461
+ ModuleWrapper.moduleAddress
1462
+ ```
1463
+
1464
+ ***
1465
+
1466
+ ### off()
1467
+
1468
+ ```ts
1469
+ off<TEventName>(eventNames, listener): void;
1470
+ ```
1471
+
1472
+ Removes a specific listener from the specified event name(s).
1473
+
1474
+ ### Type Parameters
1475
+
1476
+ #### TEventName
1477
+
1478
+ `TEventName` *extends* `string` \| `number` \| `symbol`
1479
+
1480
+ ### Parameters
1481
+
1482
+ #### eventNames
1483
+
1484
+ `TEventName`
1485
+
1486
+ #### listener
1487
+
1488
+ `EventListener`\<`TWrappedModule`\[`"eventData"`\]\[`TEventName`\]\>
1489
+
1490
+ ### Returns
1491
+
1492
+ `void`
1493
+
1494
+ ### Implementation of
1495
+
1496
+ ```ts
1497
+ AttachableArchivistInstance.off
1498
+ ```
1499
+
1500
+ ### Inherited from
1501
+
1502
+ ```ts
1503
+ ModuleWrapper.off
1504
+ ```
1505
+
1506
+ ***
1507
+
1508
+ ### offAny()
1509
+
1510
+ ```ts
1511
+ offAny(listener): void;
1512
+ ```
1513
+
1514
+ Removes a wildcard listener that was receiving all events.
1515
+
1516
+ ### Parameters
1517
+
1518
+ #### listener
1519
+
1520
+ `EventAnyListener`
1521
+
1522
+ ### Returns
1523
+
1524
+ `void`
1525
+
1526
+ ### Implementation of
1527
+
1528
+ ```ts
1529
+ AttachableArchivistInstance.offAny
1530
+ ```
1531
+
1532
+ ### Inherited from
1533
+
1534
+ ```ts
1535
+ ModuleWrapper.offAny
1536
+ ```
1537
+
1538
+ ***
1539
+
1540
+ ### on()
1541
+
1542
+ ```ts
1543
+ on<TEventName>(eventNames, listener): EventUnsubscribeFunction;
1544
+ ```
1545
+
1546
+ Subscribes a listener to the specified event name(s) and returns an unsubscribe function.
1547
+
1548
+ ### Type Parameters
1549
+
1550
+ #### TEventName
1551
+
1552
+ `TEventName` *extends* `string` \| `number` \| `symbol`
1553
+
1554
+ ### Parameters
1555
+
1556
+ #### eventNames
1557
+
1558
+ `TEventName`
1559
+
1560
+ #### listener
1561
+
1562
+ `EventListener`\<`TWrappedModule`\[`"eventData"`\]\[`TEventName`\]\>
1563
+
1564
+ ### Returns
1565
+
1566
+ `EventUnsubscribeFunction`
1567
+
1568
+ ### Implementation of
1569
+
1570
+ ```ts
1571
+ AttachableArchivistInstance.on
1572
+ ```
1573
+
1574
+ ### Inherited from
1575
+
1576
+ ```ts
1577
+ ModuleWrapper.on
1578
+ ```
1579
+
1580
+ ***
1581
+
1582
+ ### onAny()
1583
+
1584
+ ```ts
1585
+ onAny(listener): EventUnsubscribeFunction;
1586
+ ```
1587
+
1588
+ Subscribes a wildcard listener that receives all events and returns an unsubscribe function.
1589
+
1590
+ ### Parameters
1591
+
1592
+ #### listener
1593
+
1594
+ `EventAnyListener`
1595
+
1596
+ ### Returns
1597
+
1598
+ `EventUnsubscribeFunction`
1599
+
1600
+ ### Implementation of
1601
+
1602
+ ```ts
1603
+ AttachableArchivistInstance.onAny
1604
+ ```
1605
+
1606
+ ### Inherited from
1607
+
1608
+ ```ts
1609
+ ModuleWrapper.onAny
1610
+ ```
1611
+
1612
+ ***
1613
+
1614
+ ### once()
1615
+
1616
+ ```ts
1617
+ once<TEventName>(eventName, listener): EventUnsubscribeFunction;
1618
+ ```
1619
+
1620
+ Subscribes a listener that will be invoked only once for the specified event, then automatically removed.
1621
+
1622
+ ### Type Parameters
1623
+
1624
+ #### TEventName
1625
+
1626
+ `TEventName` *extends* `string` \| `number` \| `symbol`
1627
+
1628
+ ### Parameters
1629
+
1630
+ #### eventName
1631
+
1632
+ `TEventName`
1633
+
1634
+ #### listener
1635
+
1636
+ `EventListener`\<`TWrappedModule`\[`"eventData"`\]\[`TEventName`\]\>
1637
+
1638
+ ### Returns
1639
+
1640
+ `EventUnsubscribeFunction`
1641
+
1642
+ ### Implementation of
1643
+
1644
+ ```ts
1645
+ AttachableArchivistInstance.once
1646
+ ```
1647
+
1648
+ ### Inherited from
1649
+
1650
+ ```ts
1651
+ ModuleWrapper.once
1652
+ ```
1653
+
1654
+ ***
1655
+
1656
+ ### parents()
1657
+
1658
+ ```ts
1659
+ parents(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1660
+ ```
1661
+
1662
+ ### Returns
1663
+
1664
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1665
+
1666
+ ### Implementation of
1667
+
1668
+ ```ts
1669
+ AttachableArchivistInstance.parents
1670
+ ```
1671
+
1672
+ ### Inherited from
1673
+
1674
+ ```ts
1675
+ ModuleWrapper.parents
1676
+ ```
1677
+
1678
+ ***
1679
+
1680
+ ### previousHash()
1681
+
1682
+ ```ts
1683
+ previousHash(): Promise<string | undefined>;
1684
+ ```
1685
+
1686
+ ### Returns
1687
+
1688
+ `Promise`\<`string` \| `undefined`\>
1689
+
1690
+ ### Implementation of
1691
+
1692
+ ```ts
1693
+ AttachableArchivistInstance.previousHash
1694
+ ```
1695
+
1696
+ ### Inherited from
1697
+
1698
+ ```ts
1699
+ ModuleWrapper.previousHash
1700
+ ```
1701
+
1702
+ ***
1703
+
1704
+ ### previousHashQuery()
1705
+
1706
+ ```ts
1707
+ previousHashQuery(account?): Promise<ModuleQueryResult<AddressPreviousHashPayload>>;
1708
+ ```
1709
+
1710
+ ### Parameters
1711
+
1712
+ #### account?
1713
+
1714
+ `AccountInstance`
1715
+
1716
+ ### Returns
1717
+
1718
+ `Promise`\<`ModuleQueryResult`\<`AddressPreviousHashPayload`\>\>
1719
+
1720
+ ### Inherited from
1721
+
1722
+ ```ts
1723
+ ModuleWrapper.previousHashQuery
1724
+ ```
1725
+
1726
+ ***
1727
+
1728
+ ### privateChildren()
1729
+
1730
+ ```ts
1731
+ privateChildren(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1732
+ ```
1733
+
1734
+ ### Returns
1735
+
1736
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1737
+
1738
+ ### Implementation of
1739
+
1740
+ ```ts
1741
+ AttachableArchivistInstance.privateChildren
1742
+ ```
1743
+
1744
+ ### Inherited from
1745
+
1746
+ ```ts
1747
+ ModuleWrapper.privateChildren
1748
+ ```
1749
+
1750
+ ***
1751
+
1752
+ ### publicChildren()
1753
+
1754
+ ```ts
1755
+ publicChildren(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1756
+ ```
1757
+
1758
+ ### Returns
1759
+
1760
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1761
+
1762
+ ### Implementation of
1763
+
1764
+ ```ts
1765
+ AttachableArchivistInstance.publicChildren
1766
+ ```
1767
+
1768
+ ### Inherited from
1769
+
1770
+ ```ts
1771
+ ModuleWrapper.publicChildren
1772
+ ```
1773
+
1774
+ ***
1775
+
1776
+ ### query()
1777
+
1778
+ ```ts
1779
+ query<T>(query, payloads?): Promise<ModuleQueryResult>;
1780
+ ```
1781
+
1782
+ ### Type Parameters
1783
+
1784
+ #### T
1785
+
1786
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1787
+
1788
+ ### Parameters
1789
+
1790
+ #### query
1791
+
1792
+ `T`
1793
+
1794
+ #### payloads?
1795
+
1796
+ `Payload`[]
1797
+
1798
+ ### Returns
1799
+
1800
+ `Promise`\<`ModuleQueryResult`\>
1801
+
1802
+ ### Implementation of
1803
+
1804
+ ```ts
1805
+ AttachableArchivistInstance.query
1806
+ ```
1807
+
1808
+ ### Inherited from
1809
+
1810
+ ```ts
1811
+ ModuleWrapper.query
1812
+ ```
1813
+
1814
+ ***
1815
+
1816
+ ### queryable()
1817
+
1818
+ ```ts
1819
+ queryable<T>(query, payloads?): Promisable<boolean>;
1820
+ ```
1821
+
1822
+ ### Type Parameters
1823
+
1824
+ #### T
1825
+
1826
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1827
+
1828
+ ### Parameters
1829
+
1830
+ #### query
1831
+
1832
+ `T`
1833
+
1834
+ #### payloads?
1835
+
1836
+ `Payload`[]
1837
+
1838
+ ### Returns
1839
+
1840
+ `Promisable`\<`boolean`\>
1841
+
1842
+ ### Implementation of
1843
+
1844
+ ```ts
1845
+ AttachableArchivistInstance.queryable
1846
+ ```
1847
+
1848
+ ### Inherited from
1849
+
1850
+ ```ts
1851
+ ModuleWrapper.queryable
1852
+ ```
1853
+
1854
+ ***
1855
+
1856
+ ### removeParent()
1857
+
1858
+ ```ts
1859
+ removeParent(address): void;
1860
+ ```
1861
+
1862
+ ### Parameters
1863
+
1864
+ #### address
1865
+
1866
+ `BrandedAddress`
1867
+
1868
+ ### Returns
1869
+
1870
+ `void`
1871
+
1872
+ ### Implementation of
1873
+
1874
+ ```ts
1875
+ AttachableArchivistInstance.removeParent
1876
+ ```
1877
+
1878
+ ### Inherited from
1879
+
1880
+ ```ts
1881
+ ModuleWrapper.removeParent
1882
+ ```
1883
+
1884
+ ***
1885
+
1886
+ ### ~~resolve()~~
1887
+
1888
+ ### Call Signature
1889
+
1890
+ ```ts
1891
+ resolve<T>(): Promise<T[]>;
1892
+ ```
1893
+
1894
+ #### Type Parameters
1895
+
1896
+ ##### T
1897
+
1898
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1899
+
1900
+ #### Returns
1901
+
1902
+ `Promise`\<`T`[]\>
1903
+
1904
+ #### Deprecated
1905
+
1906
+ do not pass undefined. If trying to get all, pass '*'
1907
+
1908
+ #### Implementation of
1909
+
1910
+ ```ts
1911
+ AttachableArchivistInstance.resolve
1912
+ ```
1913
+
1914
+ #### Inherited from
1915
+
1916
+ ```ts
1917
+ ModuleWrapper.resolve
1918
+ ```
1919
+
1920
+ ### Call Signature
1921
+
1922
+ ```ts
1923
+ resolve<T>(all, options?): Promise<T[]>;
1924
+ ```
1925
+
1926
+ #### Type Parameters
1927
+
1928
+ ##### T
1929
+
1930
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1931
+
1932
+ #### Parameters
1933
+
1934
+ ##### all
1935
+
1936
+ `"*"`
1937
+
1938
+ ##### options?
1939
+
1940
+ `ModuleFilterOptions`\<`T`\>
1941
+
1942
+ #### Returns
1943
+
1944
+ `Promise`\<`T`[]\>
1945
+
1946
+ #### Deprecated
1947
+
1948
+ do not pass undefined. If trying to get all, pass '*'
1949
+
1950
+ #### Implementation of
1951
+
1952
+ ```ts
1953
+ AttachableArchivistInstance.resolve
1954
+ ```
1955
+
1956
+ #### Inherited from
1957
+
1958
+ ```ts
1959
+ ModuleWrapper.resolve
1960
+ ```
1961
+
1962
+ ### Call Signature
1963
+
1964
+ ```ts
1965
+ resolve<T>(id, options?): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
1966
+ ```
1967
+
1968
+ #### Type Parameters
1969
+
1970
+ ##### T
1971
+
1972
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1973
+
1974
+ #### Parameters
1975
+
1976
+ ##### id
1977
+
1978
+ `ModuleIdentifier`
1979
+
1980
+ ##### options?
1981
+
1982
+ `ModuleFilterOptions`\<`T`\>
1983
+
1984
+ #### Returns
1985
+
1986
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>\>
1987
+
1988
+ #### Deprecated
1989
+
1990
+ do not pass undefined. If trying to get all, pass '*'
1991
+
1992
+ #### Implementation of
1993
+
1994
+ ```ts
1995
+ AttachableArchivistInstance.resolve
1996
+ ```
1997
+
1998
+ #### Inherited from
1999
+
2000
+ ```ts
2001
+ ModuleWrapper.resolve
2002
+ ```
2003
+
2004
+ ***
2005
+
2006
+ ### resolvePrivate()
2007
+
2008
+ ### Call Signature
2009
+
2010
+ ```ts
2011
+ resolvePrivate<T>(all, options?): Promise<T[]>;
2012
+ ```
2013
+
2014
+ #### Type Parameters
2015
+
2016
+ ##### T
2017
+
2018
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2019
+
2020
+ #### Parameters
2021
+
2022
+ ##### all
2023
+
2024
+ `"*"`
2025
+
2026
+ ##### options?
2027
+
2028
+ `ModuleFilterOptions`\<`T`\>
2029
+
2030
+ #### Returns
2031
+
2032
+ `Promise`\<`T`[]\>
2033
+
2034
+ #### Implementation of
2035
+
2036
+ ```ts
2037
+ AttachableArchivistInstance.resolvePrivate
2038
+ ```
2039
+
2040
+ #### Inherited from
2041
+
2042
+ ```ts
2043
+ ModuleWrapper.resolvePrivate
2044
+ ```
2045
+
2046
+ ### Call Signature
2047
+
2048
+ ```ts
2049
+ resolvePrivate<T>(id, options?): Promise<T | undefined>;
2050
+ ```
2051
+
2052
+ #### Type Parameters
2053
+
2054
+ ##### T
2055
+
2056
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2057
+
2058
+ #### Parameters
2059
+
2060
+ ##### id
2061
+
2062
+ `ModuleIdentifier`
2063
+
2064
+ ##### options?
2065
+
2066
+ `ModuleFilterOptions`\<`T`\>
2067
+
2068
+ #### Returns
2069
+
2070
+ `Promise`\<`T` \| `undefined`\>
2071
+
2072
+ #### Implementation of
2073
+
2074
+ ```ts
2075
+ AttachableArchivistInstance.resolvePrivate
2076
+ ```
2077
+
2078
+ #### Inherited from
2079
+
2080
+ ```ts
2081
+ ModuleWrapper.resolvePrivate
2082
+ ```
2083
+
2084
+ ***
2085
+
2086
+ ### siblings()
2087
+
2088
+ ```ts
2089
+ siblings(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
2090
+ ```
2091
+
2092
+ ### Returns
2093
+
2094
+ `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
2095
+
2096
+ ### Implementation of
2097
+
2098
+ ```ts
2099
+ AttachableArchivistInstance.siblings
2100
+ ```
2101
+
2102
+ ### Inherited from
2103
+
2104
+ ```ts
2105
+ ModuleWrapper.siblings
2106
+ ```
2107
+
2108
+ ***
2109
+
2110
+ ### start()
2111
+
2112
+ ```ts
2113
+ start(): Promise<boolean>;
2114
+ ```
2115
+
2116
+ Starts the instance. Resolves to true if started successfully.
2117
+
2118
+ ### Returns
2119
+
2120
+ `Promise`\<`boolean`\>
2121
+
2122
+ ### Implementation of
2123
+
2124
+ ```ts
2125
+ AttachableArchivistInstance.start
2126
+ ```
2127
+
2128
+ ### Inherited from
2129
+
2130
+ ```ts
2131
+ ModuleWrapper.start
2132
+ ```
2133
+
2134
+ ***
2135
+
2136
+ ### state()
2137
+
2138
+ ```ts
2139
+ state(): Promise<Payload[]>;
2140
+ ```
2141
+
2142
+ ### Returns
2143
+
2144
+ `Promise`\<`Payload`[]\>
2145
+
2146
+ ### Implementation of
2147
+
2148
+ ```ts
2149
+ AttachableArchivistInstance.state
2150
+ ```
2151
+
2152
+ ### Inherited from
2153
+
2154
+ ```ts
2155
+ ModuleWrapper.state
2156
+ ```
2157
+
2158
+ ***
2159
+
2160
+ ### stateQuery()
2161
+
2162
+ ```ts
2163
+ stateQuery(_account): Promise<ModuleQueryResult>;
2164
+ ```
2165
+
2166
+ ### Parameters
2167
+
2168
+ #### \_account
2169
+
2170
+ `AccountInstance`
2171
+
2172
+ ### Returns
2173
+
2174
+ `Promise`\<`ModuleQueryResult`\>
2175
+
2176
+ ### Implementation of
2177
+
2178
+ ```ts
2179
+ AttachableArchivistInstance.stateQuery
2180
+ ```
2181
+
2182
+ ### Inherited from
2183
+
2184
+ ```ts
2185
+ ModuleWrapper.stateQuery
2186
+ ```
2187
+
2188
+ ***
2189
+
2190
+ ### stop()
2191
+
2192
+ ```ts
2193
+ stop(): Promise<boolean>;
2194
+ ```
2195
+
2196
+ Stops the instance. Resolves to true if stopped successfully.
2197
+
2198
+ ### Returns
2199
+
2200
+ `Promise`\<`boolean`\>
2201
+
2202
+ ### Implementation of
2203
+
2204
+ ```ts
2205
+ AttachableArchivistInstance.stop
2206
+ ```
2207
+
2208
+ ### Inherited from
2209
+
2210
+ ```ts
2211
+ ModuleWrapper.stop
2212
+ ```
2213
+
2214
+ ***
2215
+
2216
+ ### bindQuery()
2217
+
2218
+ ```ts
2219
+ protected bindQuery<T>(
2220
+ query,
2221
+ payloads?,
2222
+ account?,
2223
+ additionalSigners?): PromiseEx<[UnsignedQueryBoundWitness, Payload[], ModuleError[]], AccountInstance>;
2224
+ ```
2225
+
2226
+ ### Type Parameters
2227
+
2228
+ #### T
2229
+
2230
+ `T` *extends* `Query`
2231
+
2232
+ ### Parameters
2233
+
2234
+ #### query
2235
+
2236
+ `T`
2237
+
2238
+ #### payloads?
2239
+
2240
+ `Payload`[]
2241
+
2242
+ #### account?
2243
+
2244
+ `AccountInstance`
2245
+
2246
+ #### additionalSigners?
2247
+
2248
+ `AccountInstance`[]
2249
+
2250
+ ### Returns
2251
+
2252
+ `PromiseEx`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `ModuleError`[]\], `AccountInstance`\>
2253
+
2254
+ ### Inherited from
2255
+
2256
+ ```ts
2257
+ ModuleWrapper.bindQuery
2258
+ ```
2259
+
2260
+ ***
2261
+
2262
+ ### bindQueryInternal()
2263
+
2264
+ ```ts
2265
+ protected bindQueryInternal<T>(
2266
+ query,
2267
+ payloads?,
2268
+ account?,
2269
+ additionalSigners?): Promise<[UnsignedQueryBoundWitness, Payload[], ModuleError[]]>;
2270
+ ```
2271
+
2272
+ ### Type Parameters
2273
+
2274
+ #### T
2275
+
2276
+ `T` *extends* `Query`
2277
+
2278
+ ### Parameters
2279
+
2280
+ #### query
2281
+
2282
+ `T`
2283
+
2284
+ #### payloads?
2285
+
2286
+ `Payload`[]
2287
+
2288
+ #### account?
2289
+
2290
+ `AccountInstance`
2291
+
2292
+ #### additionalSigners?
2293
+
2294
+ `AccountInstance`[]
2295
+
2296
+ ### Returns
2297
+
2298
+ `Promise`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `ModuleError`[]\]\>
2299
+
2300
+ ### Inherited from
2301
+
2302
+ ```ts
2303
+ ModuleWrapper.bindQueryInternal
2304
+ ```
2305
+
2306
+ ***
2307
+
2308
+ ### filterErrors()
2309
+
2310
+ ```ts
2311
+ protected filterErrors(__namedParameters): ModuleError[];
2312
+ ```
2313
+
2314
+ ### Parameters
2315
+
2316
+ #### \_\_namedParameters
2317
+
2318
+ `ModuleQueryResult`
2319
+
2320
+ ### Returns
2321
+
2322
+ `ModuleError`[]
2323
+
2324
+ ### Inherited from
2325
+
2326
+ ```ts
2327
+ ModuleWrapper.filterErrors
2328
+ ```
2329
+
2330
+ ***
2331
+
2332
+ ### sendQuery()
2333
+
2334
+ ```ts
2335
+ protected sendQuery<T, P, R>(queryPayload, payloads?): Promise<R[]>;
2336
+ ```
2337
+
2338
+ ### Type Parameters
2339
+
2340
+ #### T
2341
+
2342
+ `T` *extends* `Query`
2343
+
2344
+ #### P
2345
+
2346
+ `P` *extends* `Payload` = `Payload`
2347
+
2348
+ #### R
2349
+
2350
+ `R` *extends* `Payload` = `Payload`
2351
+
2352
+ ### Parameters
2353
+
2354
+ #### queryPayload
2355
+
2356
+ `T`
2357
+
2358
+ #### payloads?
2359
+
2360
+ `P`[]
2361
+
2362
+ ### Returns
2363
+
2364
+ `Promise`\<`R`[]\>
2365
+
2366
+ ### Inherited from
2367
+
2368
+ ```ts
2369
+ ModuleWrapper.sendQuery
2370
+ ```
2371
+
2372
+ ***
2373
+
2374
+ ### sendQueryRaw()
2375
+
2376
+ ```ts
2377
+ protected sendQueryRaw<T, P, R>(
2378
+ queryPayload,
2379
+ payloads?,
2380
+ account?): Promise<ModuleQueryResult<R>>;
2381
+ ```
2382
+
2383
+ ### Type Parameters
2384
+
2385
+ #### T
2386
+
2387
+ `T` *extends* `Query`
2388
+
2389
+ #### P
2390
+
2391
+ `P` *extends* `Payload` = `Payload`
2392
+
2393
+ #### R
2394
+
2395
+ `R` *extends* `Payload` = `Payload`
2396
+
2397
+ ### Parameters
2398
+
2399
+ #### queryPayload
2400
+
2401
+ `T`
2402
+
2403
+ #### payloads?
2404
+
2405
+ `P`[]
2406
+
2407
+ #### account?
2408
+
2409
+ `AccountInstance`
2410
+
2411
+ ### Returns
2412
+
2413
+ `Promise`\<`ModuleQueryResult`\<`R`\>\>
2414
+
2415
+ ### Inherited from
18
2416
 
19
- ## Credits
2417
+ ```ts
2418
+ ModuleWrapper.sendQueryRaw
2419
+ ```
20
2420
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
2421
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
2422
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
2423
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/archivist-wrapper.svg
2424
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/archivist-wrapper
2425
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/archivist-wrapper.svg
2426
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE