@xyo-network/archivist-abstract 5.3.25 → 5.3.26

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