@xyo-network/node-memory 5.3.25 → 5.3.27

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