@xyo-network/diviner-payload-generic 5.3.24 → 5.3.26

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