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