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