@xyo-network/diviner-address-chain-memory 5.3.30 → 5.5.0

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