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