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