@xyo-network/diviner-address-space-memory 5.3.30 → 5.4.1

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