@xyo-network/boundwitness-builder 5.3.25 → 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 +4092 -10
  2. package/package.json +24 -24
package/README.md CHANGED
@@ -1,23 +1,4105 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/boundwitness-builder
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__boundwitness-builder)
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
+ ### protocol
46
+
47
+ ### packages
48
+
49
+ ### boundwitness
50
+
51
+ ### packages
52
+
53
+ ### builder
54
+
55
+ ### .temp-typedoc
56
+
57
+ ### classes
58
+
59
+ ### <a id="BoundWitnessBuilder"></a>BoundWitnessBuilder
60
+
61
+ [**@xyo-network/boundwitness-builder**](#../README)
62
+
63
+ ***
64
+
65
+ ## Extends
66
+
67
+ - `PayloadBuilder`\<`TBoundWitness`, `Promise`\<\[`PossiblySigned`\<`TBoundWitness`\>, `TPayload`[], `ModuleError`[]\]\>\>
68
+
69
+ ## Extended by
70
+
71
+ - [`QueryBoundWitnessBuilder`](#QueryBoundWitnessBuilder)
72
+
73
+ ## Type Parameters
74
+
75
+ ### TBoundWitness
76
+
77
+ `TBoundWitness` *extends* `BoundWitness` = `BoundWitness`
78
+
79
+ ### TPayload
80
+
81
+ `TPayload` *extends* `Payload` = `Payload`
82
+
83
+ ## Constructors
84
+
85
+ ### Constructor
86
+
87
+ ```ts
88
+ new BoundWitnessBuilder<TBoundWitness, TPayload>(options?): BoundWitnessBuilder<TBoundWitness, TPayload>;
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ #### options?
94
+
95
+ `Omit`\<`PayloadBuilderOptions`, `"schema"`\>
96
+
97
+ ### Returns
98
+
99
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
100
+
101
+ ### Overrides
102
+
103
+ ```ts
104
+ PayloadBuilder<
105
+ TBoundWitness,
106
+ Promise<[PossiblySigned<TBoundWitness>, TPayload[], ModuleError[]]>
107
+ >.constructor
108
+ ```
109
+
110
+ ## Properties
111
+
112
+ ### options
113
+
114
+ ```ts
115
+ readonly options: PayloadBuilderOptions;
116
+ ```
117
+
118
+ ### Inherited from
119
+
120
+ [`QueryBoundWitnessBuilder`](#QueryBoundWitnessBuilder).[`options`](QueryBoundWitnessBuilder.md#options)
121
+
122
+ ***
123
+
124
+ ### \_fields?
125
+
126
+ ```ts
127
+ protected optional _fields?: WithoutStorageMeta<WithoutClientMeta<WithoutSchema<TBoundWitness>>>;
128
+ ```
129
+
130
+ ### Inherited from
131
+
132
+ ```ts
133
+ PayloadBuilder._fields
134
+ ```
135
+
136
+ ***
137
+
138
+ ### \_meta?
139
+
140
+ ```ts
141
+ protected optional _meta?: DeepPickStartsWith<TBoundWitness, "$">;
142
+ ```
143
+
144
+ ### Inherited from
145
+
146
+ ```ts
147
+ PayloadBuilder._meta
148
+ ```
149
+
150
+ ***
151
+
152
+ ### \_schema
153
+
154
+ ```ts
155
+ protected _schema: Schema;
156
+ ```
157
+
158
+ ### Inherited from
159
+
160
+ ```ts
161
+ PayloadBuilder._schema
162
+ ```
163
+
164
+ ## Accessors
165
+
166
+ ### addresses
167
+
168
+ ### Get Signature
169
+
170
+ ```ts
171
+ get protected addresses(): BrandedAddress[];
172
+ ```
173
+
174
+ #### Returns
175
+
176
+ `BrandedAddress`[]
177
+
178
+ ***
179
+
180
+ ### payloadSchemas
181
+
182
+ ### Get Signature
183
+
184
+ ```ts
185
+ get protected payloadSchemas(): string[];
186
+ ```
187
+
188
+ #### Returns
189
+
190
+ `string`[]
191
+
192
+ ***
193
+
194
+ ### previousHashBytes
195
+
196
+ ### Get Signature
197
+
198
+ ```ts
199
+ get protected previousHashBytes(): (ArrayBufferLike | null)[];
200
+ ```
201
+
202
+ #### Returns
203
+
204
+ (`ArrayBufferLike` \| `null`)[]
205
+
206
+ ***
207
+
208
+ ### previousHashes
209
+
210
+ ### Get Signature
211
+
212
+ ```ts
213
+ get protected previousHashes(): (BrandedHash | null)[];
214
+ ```
215
+
216
+ #### Returns
217
+
218
+ (`BrandedHash` \| `null`)[]
219
+
220
+ ## Methods
221
+
222
+ ### addressIndex()
223
+
224
+ ```ts
225
+ static addressIndex<T>(payload, address): number;
226
+ ```
227
+
228
+ ### Type Parameters
229
+
230
+ #### T
231
+
232
+ `T` *extends* `object`
233
+
234
+ ### Parameters
235
+
236
+ #### payload
237
+
238
+ `T`
239
+
240
+ #### address
241
+
242
+ `BrandedAddress`
243
+
244
+ ### Returns
245
+
246
+ `number`
247
+
248
+ ***
249
+
250
+ ### previousHash()
251
+
252
+ ```ts
253
+ static previousHash<T>(boundWitness, address): string | undefined;
254
+ ```
255
+
256
+ ### Type Parameters
257
+
258
+ #### T
259
+
260
+ `T` *extends* `object`
261
+
262
+ ### Parameters
263
+
264
+ #### boundWitness
265
+
266
+ `T`
267
+
268
+ #### address
269
+
270
+ `BrandedAddress`
271
+
272
+ ### Returns
273
+
274
+ `string` \| `undefined`
275
+
276
+ ***
277
+
278
+ ### linkingFields()
279
+
280
+ ```ts
281
+ protected static linkingFields<T>(accounts, payloads?): Promise<Pick<T, "addresses" | "payload_hashes" | "payload_schemas" | "previous_hashes">>;
282
+ ```
283
+
284
+ ### Type Parameters
285
+
286
+ #### T
287
+
288
+ `T` *extends* `object`
289
+
290
+ ### Parameters
291
+
292
+ #### accounts
293
+
294
+ `AccountInstance`[]
295
+
296
+ #### payloads?
297
+
298
+ `Payload`[]
299
+
300
+ ### Returns
301
+
302
+ `Promise`\<`Pick`\<`T`, `"addresses"` \| `"payload_hashes"` \| `"payload_schemas"` \| `"previous_hashes"`\>\>
303
+
304
+ ***
305
+
306
+ ### signature()
307
+
308
+ ```ts
309
+ protected static signature<T>(payload, address): BrandedHex | null;
310
+ ```
311
+
312
+ ### Type Parameters
313
+
314
+ #### T
315
+
316
+ `T` *extends* `object`
317
+
318
+ ### Parameters
319
+
320
+ #### payload
321
+
322
+ `T`
323
+
324
+ #### address
325
+
326
+ `BrandedAddress`
327
+
328
+ ### Returns
329
+
330
+ `BrandedHex` \| `null`
331
+
332
+ ***
333
+
334
+ ### signatures()
335
+
336
+ ```ts
337
+ protected static signatures(accounts, dataHash): Promise<string[]>;
338
+ ```
339
+
340
+ ### Parameters
341
+
342
+ #### accounts
343
+
344
+ `AccountInstance`[]
345
+
346
+ #### dataHash
347
+
348
+ `BrandedHash`
349
+
350
+ ### Returns
351
+
352
+ `Promise`\<`string`[]\>
353
+
354
+ ***
355
+
356
+ ### build()
357
+
358
+ ### Call Signature
359
+
360
+ ```ts
361
+ build(): Promise<[Signed<TBoundWitness>, TPayload[], ModuleError[]]>;
362
+ ```
363
+
364
+ #### Returns
365
+
366
+ `Promise`\<\[`Signed`\<`TBoundWitness`\>, `TPayload`[], `ModuleError`[]\]\>
367
+
368
+ #### Overrides
369
+
370
+ ```ts
371
+ PayloadBuilder.build
372
+ ```
373
+
374
+ ### Call Signature
375
+
376
+ ```ts
377
+ build(sign): Promise<[Unsigned<TBoundWitness>, TPayload[], ModuleError[]]>;
378
+ ```
379
+
380
+ #### Parameters
381
+
382
+ ##### sign
383
+
384
+ `false`
385
+
386
+ #### Returns
387
+
388
+ `Promise`\<\[`Unsigned`\<`TBoundWitness`\>, `TPayload`[], `ModuleError`[]\]\>
389
+
390
+ #### Overrides
391
+
392
+ ```ts
393
+ PayloadBuilder.build
394
+ ```
395
+
396
+ ### Call Signature
397
+
398
+ ```ts
399
+ build(sign): Promise<[Signed<TBoundWitness>, TPayload[], ModuleError[]]>;
400
+ ```
401
+
402
+ #### Parameters
403
+
404
+ ##### sign
405
+
406
+ `true`
407
+
408
+ #### Returns
409
+
410
+ `Promise`\<\[`Signed`\<`TBoundWitness`\>, `TPayload`[], `ModuleError`[]\]\>
411
+
412
+ #### Overrides
413
+
414
+ ```ts
415
+ PayloadBuilder.build
416
+ ```
417
+
418
+ ***
419
+
420
+ ### dataHash()
421
+
422
+ ```ts
423
+ dataHash(): Promise<BrandedHash>;
424
+ ```
425
+
426
+ ### Returns
427
+
428
+ `Promise`\<`BrandedHash`\>
429
+
430
+ ***
431
+
432
+ ### dataHashableFields()
433
+
434
+ ```ts
435
+ dataHashableFields(): Promise<WithoutMeta<TBoundWitness>>;
436
+ ```
437
+
438
+ ### Returns
439
+
440
+ `Promise`\<`WithoutMeta`\<`TBoundWitness`\>\>
441
+
442
+ ### Overrides
443
+
444
+ ```ts
445
+ PayloadBuilder.dataHashableFields
446
+ ```
447
+
448
+ ***
449
+
450
+ ### error()
451
+
452
+ ```ts
453
+ error(payload?): BoundWitnessBuilder<TBoundWitness, TPayload>;
454
+ ```
455
+
456
+ ### Parameters
457
+
458
+ #### payload?
459
+
460
+ `ModuleError`
461
+
462
+ ### Returns
463
+
464
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
465
+
466
+ ***
467
+
468
+ ### errors()
469
+
470
+ ```ts
471
+ errors(errors?): BoundWitnessBuilder<TBoundWitness, TPayload>;
472
+ ```
473
+
474
+ ### Parameters
475
+
476
+ #### errors?
477
+
478
+ (`ModuleError` \| `null`)[]
479
+
480
+ ### Returns
481
+
482
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
483
+
484
+ ***
485
+
486
+ ### fields()
487
+
488
+ ```ts
489
+ fields(fields): this;
490
+ ```
491
+
492
+ ### Parameters
493
+
494
+ #### fields
495
+
496
+ `WithoutSchema`\<`Omit`\<`WithoutStorageMeta`\<`WithoutClientMeta`\<`TBoundWitness`\>\>, `"addresses"` \| `"payload_hashes"` \| `"payload_schemas"` \| `"previous_hashes"`\>\>
497
+
498
+ ### Returns
499
+
500
+ `this`
501
+
502
+ ### Overrides
503
+
504
+ ```ts
505
+ PayloadBuilder.fields
506
+ ```
507
+
508
+ ***
509
+
510
+ ### hashes()
511
+
512
+ ```ts
513
+ hashes(hashes, schema): BoundWitnessBuilder<TBoundWitness, TPayload>;
514
+ ```
515
+
516
+ ### Parameters
517
+
518
+ #### hashes
519
+
520
+ `BrandedHash`[]
521
+
522
+ #### schema
523
+
524
+ `Schema`[]
525
+
526
+ ### Returns
527
+
528
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
529
+
530
+ ***
531
+
532
+ ### payload()
533
+
534
+ ```ts
535
+ payload(payload?): BoundWitnessBuilder<TBoundWitness, TPayload>;
536
+ ```
537
+
538
+ ### Parameters
539
+
540
+ #### payload?
541
+
542
+ `TPayload`
543
+
544
+ ### Returns
545
+
546
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
547
+
548
+ ***
549
+
550
+ ### payloads()
551
+
552
+ ```ts
553
+ payloads(payloads?): BoundWitnessBuilder<TBoundWitness, TPayload>;
554
+ ```
555
+
556
+ ### Parameters
557
+
558
+ #### payloads?
559
+
560
+ (`TPayload` \| `null`)[]
561
+
562
+ ### Returns
563
+
564
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
565
+
566
+ ***
567
+
568
+ ### signer()
569
+
570
+ ```ts
571
+ signer(account): BoundWitnessBuilder<TBoundWitness, TPayload>;
572
+ ```
573
+
574
+ ### Parameters
575
+
576
+ #### account
577
+
578
+ `AccountInstance`
579
+
580
+ ### Returns
581
+
582
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
583
+
584
+ ***
585
+
586
+ ### signers()
587
+
588
+ ```ts
589
+ signers(accounts): BoundWitnessBuilder<TBoundWitness, TPayload>;
590
+ ```
591
+
592
+ ### Parameters
593
+
594
+ #### accounts
595
+
596
+ `AccountInstance`[]
597
+
598
+ ### Returns
599
+
600
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
601
+
602
+ ***
603
+
604
+ ### sourceQuery()
605
+
606
+ ```ts
607
+ sourceQuery(sourceQuery): BoundWitnessBuilder<TBoundWitness, TPayload>;
608
+ ```
609
+
610
+ ### Parameters
611
+
612
+ #### sourceQuery
613
+
614
+ `BrandedHash`
615
+
616
+ ### Returns
617
+
618
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
619
+
620
+ ***
621
+
622
+ ### ~~witness()~~
623
+
624
+ ```ts
625
+ witness(account): BoundWitnessBuilder<TBoundWitness, TPayload>;
626
+ ```
627
+
628
+ ### Parameters
629
+
630
+ #### account
631
+
632
+ `AccountInstance`
633
+
634
+ ### Returns
635
+
636
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
637
+
638
+ ### Deprecated
639
+
640
+ use signer instead
641
+
642
+ ***
643
+
644
+ ### ~~witnesses()~~
645
+
646
+ ```ts
647
+ witnesses(accounts): BoundWitnessBuilder<TBoundWitness, TPayload>;
648
+ ```
649
+
650
+ ### Parameters
651
+
652
+ #### accounts
653
+
654
+ `AccountInstance`[]
655
+
656
+ ### Returns
657
+
658
+ `BoundWitnessBuilder`\<`TBoundWitness`, `TPayload`\>
659
+
660
+ ### Deprecated
661
+
662
+ use signers instead
663
+
664
+ ***
665
+
666
+ ### sign()
667
+
668
+ ```ts
669
+ protected sign(): Promise<BrandedHex[]>;
670
+ ```
671
+
672
+ ### Returns
673
+
674
+ `Promise`\<`BrandedHex`[]\>
675
+
676
+ ***
677
+
678
+ ### addHashMeta()
679
+
680
+ ### Call Signature
681
+
682
+ ```ts
683
+ static addHashMeta<T>(payload): Promise<WithHashMeta<T>>;
684
+ ```
685
+
686
+ #### Type Parameters
687
+
688
+ ##### T
689
+
690
+ `T` *extends* `Payload`
691
+
692
+ #### Parameters
693
+
694
+ ##### payload
695
+
696
+ `T`
697
+
698
+ #### Returns
699
+
700
+ `Promise`\<`WithHashMeta`\<`T`\>\>
701
+
702
+ #### Inherited from
703
+
704
+ ```ts
705
+ PayloadBuilder.addHashMeta
706
+ ```
707
+
708
+ ### Call Signature
709
+
710
+ ```ts
711
+ static addHashMeta<T>(payloads): Promise<WithHashMeta<T>[]>;
712
+ ```
713
+
714
+ #### Type Parameters
715
+
716
+ ##### T
717
+
718
+ `T` *extends* `Payload`
719
+
720
+ #### Parameters
721
+
722
+ ##### payloads
723
+
724
+ `T`[]
725
+
726
+ #### Returns
727
+
728
+ `Promise`\<`WithHashMeta`\<`T`\>[]\>
729
+
730
+ #### Inherited from
731
+
732
+ ```ts
733
+ PayloadBuilder.addHashMeta
734
+ ```
735
+
736
+ ***
737
+
738
+ ### addStorageMeta()
739
+
740
+ ### Call Signature
741
+
742
+ ```ts
743
+ static addStorageMeta<T>(payload, index?): Promise<WithStorageMeta<T>>;
744
+ ```
745
+
746
+ #### Type Parameters
747
+
748
+ ##### T
749
+
750
+ `T` *extends* `Payload`
751
+
752
+ #### Parameters
753
+
754
+ ##### payload
755
+
756
+ `T`
757
+
758
+ ##### index?
759
+
760
+ `number`
761
+
762
+ #### Returns
763
+
764
+ `Promise`\<`WithStorageMeta`\<`T`\>\>
765
+
766
+ #### Inherited from
767
+
768
+ ```ts
769
+ PayloadBuilder.addStorageMeta
770
+ ```
771
+
772
+ ### Call Signature
773
+
774
+ ```ts
775
+ static addStorageMeta<T>(payloads): Promise<WithStorageMeta<T>[]>;
776
+ ```
777
+
778
+ #### Type Parameters
779
+
780
+ ##### T
781
+
782
+ `T` *extends* `Payload`
783
+
784
+ #### Parameters
785
+
786
+ ##### payloads
787
+
788
+ `T`[]
789
+
790
+ #### Returns
791
+
792
+ `Promise`\<`WithStorageMeta`\<`T`\>[]\>
793
+
794
+ #### Inherited from
795
+
796
+ ```ts
797
+ PayloadBuilder.addStorageMeta
798
+ ```
799
+
800
+ ***
801
+
802
+ ### compareStorageMeta()
803
+
804
+ ```ts
805
+ static compareStorageMeta(
806
+ a,
807
+ b,
808
+ comparer?): number;
809
+ ```
810
+
811
+ ### Parameters
812
+
813
+ #### a
814
+
815
+ `WithStorageMeta`\<`Payload`\>
816
+
817
+ #### b
818
+
819
+ `WithStorageMeta`\<`Payload`\>
820
+
821
+ #### comparer?
822
+
823
+ `Compare`\<`Sequence`\>
824
+
825
+ ### Returns
826
+
827
+ `number`
828
+
829
+ ### Inherited from
830
+
831
+ ```ts
832
+ PayloadBuilder.compareStorageMeta
833
+ ```
834
+
835
+ ***
836
+
837
+ ### dataHash()
838
+
839
+ ```ts
840
+ static dataHash<T>(payload): Promise<BrandedHash>;
841
+ ```
842
+
843
+ ### Type Parameters
844
+
845
+ #### T
846
+
847
+ `T` *extends* `Payload`
848
+
849
+ ### Parameters
850
+
851
+ #### payload
852
+
853
+ `T`
854
+
855
+ ### Returns
856
+
857
+ `Promise`\<`BrandedHash`\>
858
+
859
+ ### Inherited from
860
+
861
+ ```ts
862
+ PayloadBuilder.dataHash
863
+ ```
864
+
865
+ ***
866
+
867
+ ### dataHashPairs()
868
+
869
+ ```ts
870
+ static dataHashPairs<T>(payloads): Promise<[T, BrandedHash][]>;
871
+ ```
872
+
873
+ ### Type Parameters
874
+
875
+ #### T
876
+
877
+ `T` *extends* `Payload`
878
+
879
+ ### Parameters
880
+
881
+ #### payloads
882
+
883
+ `T`[]
884
+
885
+ ### Returns
886
+
887
+ `Promise`\<\[`T`, `BrandedHash`\][]\>
888
+
889
+ ### Inherited from
890
+
891
+ ```ts
892
+ PayloadBuilder.dataHashPairs
893
+ ```
894
+
895
+ ***
896
+
897
+ ### dataHashableFields()
898
+
899
+ ```ts
900
+ static dataHashableFields<T>(schema, payload): Promisable<WithoutMeta<T>>;
901
+ ```
902
+
903
+ ### Type Parameters
904
+
905
+ #### T
906
+
907
+ `T` *extends* `Payload`
908
+
909
+ ### Parameters
910
+
911
+ #### schema
912
+
913
+ `Schema`
914
+
915
+ #### payload
916
+
917
+ `WithoutSchema`\<`T`\>
918
+
919
+ ### Returns
920
+
921
+ `Promisable`\<`WithoutMeta`\<`T`\>\>
922
+
923
+ ### Inherited from
924
+
925
+ ```ts
926
+ PayloadBuilder.dataHashableFields
927
+ ```
928
+
929
+ ***
930
+
931
+ ### dataHashes()
932
+
933
+ ### Call Signature
934
+
935
+ ```ts
936
+ static dataHashes(payloads): Promise<undefined>;
937
+ ```
938
+
939
+ #### Parameters
940
+
941
+ ##### payloads
942
+
943
+ `undefined`
944
+
945
+ #### Returns
946
+
947
+ `Promise`\<`undefined`\>
948
+
949
+ #### Inherited from
950
+
951
+ ```ts
952
+ PayloadBuilder.dataHashes
953
+ ```
954
+
955
+ ### Call Signature
956
+
957
+ ```ts
958
+ static dataHashes<T>(payloads): Promise<BrandedHash[]>;
959
+ ```
960
+
961
+ #### Type Parameters
962
+
963
+ ##### T
964
+
965
+ `T` *extends* `Payload`
966
+
967
+ #### Parameters
968
+
969
+ ##### payloads
970
+
971
+ `T`[]
972
+
973
+ #### Returns
974
+
975
+ `Promise`\<`BrandedHash`[]\>
976
+
977
+ #### Inherited from
978
+
979
+ ```ts
980
+ PayloadBuilder.dataHashes
981
+ ```
982
+
983
+ ***
984
+
985
+ ### filterExclude()
986
+
987
+ ```ts
988
+ static filterExclude<T>(payloads, hash): Promise<T[]>;
989
+ ```
990
+
991
+ ### Type Parameters
992
+
993
+ #### T
994
+
995
+ `T` *extends* `Payload`
996
+
997
+ ### Parameters
998
+
999
+ #### payloads
1000
+
1001
+ `T`[] \| `undefined`
1002
+
1003
+ #### hash
1004
+
1005
+ `BrandedHash` \| `BrandedHash`[]
1006
+
1007
+ ### Returns
1008
+
1009
+ `Promise`\<`T`[]\>
1010
+
1011
+ ### Inherited from
1012
+
1013
+ ```ts
1014
+ PayloadBuilder.filterExclude
1015
+ ```
1016
+
1017
+ ***
1018
+
1019
+ ### filterExcludeByDataHash()
1020
+
1021
+ ```ts
1022
+ static filterExcludeByDataHash<T>(payloads, hash): Promise<T[]>;
1023
+ ```
1024
+
1025
+ ### Type Parameters
1026
+
1027
+ #### T
1028
+
1029
+ `T` *extends* `Payload`
1030
+
1031
+ ### Parameters
1032
+
1033
+ #### payloads
1034
+
1035
+ `T`[] \| `undefined`
1036
+
1037
+ #### hash
1038
+
1039
+ `BrandedHash` \| `BrandedHash`[]
1040
+
1041
+ ### Returns
1042
+
1043
+ `Promise`\<`T`[]\>
1044
+
1045
+ ### Inherited from
1046
+
1047
+ ```ts
1048
+ PayloadBuilder.filterExcludeByDataHash
1049
+ ```
1050
+
1051
+ ***
1052
+
1053
+ ### filterIncludeByDataHash()
1054
+
1055
+ ```ts
1056
+ static filterIncludeByDataHash<T>(payloads, hash): Promise<T[]>;
1057
+ ```
1058
+
1059
+ ### Type Parameters
1060
+
1061
+ #### T
1062
+
1063
+ `T` *extends* `Payload`
1064
+
1065
+ ### Parameters
1066
+
1067
+ #### payloads
1068
+
1069
+ `T`[] \| `undefined`
1070
+
1071
+ #### hash
1072
+
1073
+ `BrandedHash` \| `BrandedHash`[]
1074
+
1075
+ ### Returns
1076
+
1077
+ `Promise`\<`T`[]\>
1078
+
1079
+ ### Inherited from
1080
+
1081
+ ```ts
1082
+ PayloadBuilder.filterIncludeByDataHash
1083
+ ```
1084
+
1085
+ ***
1086
+
1087
+ ### filterIncludeByEitherHash()
1088
+
1089
+ ```ts
1090
+ static filterIncludeByEitherHash<T>(payloads, hash): Promise<T[]>;
1091
+ ```
1092
+
1093
+ ### Type Parameters
1094
+
1095
+ #### T
1096
+
1097
+ `T` *extends* `Payload`
1098
+
1099
+ ### Parameters
1100
+
1101
+ #### payloads
1102
+
1103
+ `T`[] \| `undefined`
1104
+
1105
+ #### hash
1106
+
1107
+ `BrandedHash` \| `BrandedHash`[]
1108
+
1109
+ ### Returns
1110
+
1111
+ `Promise`\<`T`[]\>
1112
+
1113
+ ### Inherited from
1114
+
1115
+ ```ts
1116
+ PayloadBuilder.filterIncludeByEitherHash
1117
+ ```
1118
+
1119
+ ***
1120
+
1121
+ ### findByDataHash()
1122
+
1123
+ ```ts
1124
+ static findByDataHash<T>(payloads, hash): Promise<T | undefined>;
1125
+ ```
1126
+
1127
+ ### Type Parameters
1128
+
1129
+ #### T
1130
+
1131
+ `T` *extends* `Payload`
1132
+
1133
+ ### Parameters
1134
+
1135
+ #### payloads
1136
+
1137
+ `T`[] \| `undefined`
1138
+
1139
+ #### hash
1140
+
1141
+ `BrandedHash`
1142
+
1143
+ ### Returns
1144
+
1145
+ `Promise`\<`T` \| `undefined`\>
1146
+
1147
+ ### Inherited from
1148
+
1149
+ ```ts
1150
+ PayloadBuilder.findByDataHash
1151
+ ```
1152
+
1153
+ ***
1154
+
1155
+ ### hash()
1156
+
1157
+ ```ts
1158
+ static hash<T>(payload): Promise<BrandedHash>;
1159
+ ```
1160
+
1161
+ ### Type Parameters
1162
+
1163
+ #### T
1164
+
1165
+ `T` *extends* `Payload`
1166
+
1167
+ ### Parameters
1168
+
1169
+ #### payload
1170
+
1171
+ `T`
1172
+
1173
+ ### Returns
1174
+
1175
+ `Promise`\<`BrandedHash`\>
1176
+
1177
+ ### Inherited from
1178
+
1179
+ ```ts
1180
+ PayloadBuilder.hash
1181
+ ```
1182
+
1183
+ ***
1184
+
1185
+ ### hashPairs()
1186
+
1187
+ ```ts
1188
+ static hashPairs<T>(payloads): Promise<[T, BrandedHash][]>;
1189
+ ```
1190
+
1191
+ Creates an array of payload/hash tuples based on the payloads passed in
1192
+
1193
+ ### Type Parameters
1194
+
1195
+ #### T
1196
+
1197
+ `T` *extends* `Payload`
1198
+
1199
+ ### Parameters
1200
+
1201
+ #### payloads
1202
+
1203
+ `T`[]
1204
+
1205
+ ### Returns
1206
+
1207
+ `Promise`\<\[`T`, `BrandedHash`\][]\>
1208
+
1209
+ An array of payload/hash tuples
1210
+
1211
+ ### Inherited from
1212
+
1213
+ ```ts
1214
+ PayloadBuilder.hashPairs
1215
+ ```
1216
+
1217
+ ***
1218
+
1219
+ ### hashableFields()
1220
+
1221
+ ```ts
1222
+ static hashableFields<T>(payload): WithoutStorageMeta<T>;
1223
+ ```
1224
+
1225
+ ### Type Parameters
1226
+
1227
+ #### T
1228
+
1229
+ `T` *extends* `Payload`
1230
+
1231
+ ### Parameters
1232
+
1233
+ #### payload
1234
+
1235
+ `T`
1236
+
1237
+ ### Returns
1238
+
1239
+ `WithoutStorageMeta`\<`T`\>
1240
+
1241
+ ### Inherited from
1242
+
1243
+ ```ts
1244
+ PayloadBuilder.hashableFields
1245
+ ```
1246
+
1247
+ ***
1248
+
1249
+ ### hashes()
1250
+
1251
+ ### Call Signature
1252
+
1253
+ ```ts
1254
+ static hashes(payloads): Promise<undefined>;
1255
+ ```
1256
+
1257
+ #### Parameters
1258
+
1259
+ ##### payloads
1260
+
1261
+ `undefined`
1262
+
1263
+ #### Returns
1264
+
1265
+ `Promise`\<`undefined`\>
1266
+
1267
+ #### Inherited from
1268
+
1269
+ ```ts
1270
+ PayloadBuilder.hashes
1271
+ ```
1272
+
1273
+ ### Call Signature
1274
+
1275
+ ```ts
1276
+ static hashes<T>(payloads): Promise<BrandedHash[]>;
1277
+ ```
1278
+
1279
+ #### Type Parameters
1280
+
1281
+ ##### T
1282
+
1283
+ `T` *extends* `Payload`
1284
+
1285
+ #### Parameters
1286
+
1287
+ ##### payloads
1288
+
1289
+ `T`[]
1290
+
1291
+ #### Returns
1292
+
1293
+ `Promise`\<`BrandedHash`[]\>
1294
+
1295
+ #### Inherited from
1296
+
1297
+ ```ts
1298
+ PayloadBuilder.hashes
1299
+ ```
1300
+
1301
+ ***
1302
+
1303
+ ### omitClientMeta()
1304
+
1305
+ ### Call Signature
1306
+
1307
+ ```ts
1308
+ static omitClientMeta<T>(payloads, maxDepth?): WithoutClientMeta<T>[];
1309
+ ```
1310
+
1311
+ #### Type Parameters
1312
+
1313
+ ##### T
1314
+
1315
+ `T` *extends* `Payload`
1316
+
1317
+ #### Parameters
1318
+
1319
+ ##### payloads
1320
+
1321
+ `T`[]
1322
+
1323
+ ##### maxDepth?
1324
+
1325
+ `number`
1326
+
1327
+ #### Returns
1328
+
1329
+ `WithoutClientMeta`\<`T`\>[]
1330
+
1331
+ #### Inherited from
1332
+
1333
+ ```ts
1334
+ PayloadBuilder.omitClientMeta
1335
+ ```
1336
+
1337
+ ### Call Signature
1338
+
1339
+ ```ts
1340
+ static omitClientMeta<T>(payloads, maxDepth?): WithoutClientMeta<T>[];
1341
+ ```
1342
+
1343
+ #### Type Parameters
1344
+
1345
+ ##### T
1346
+
1347
+ `T` *extends* `object`
1348
+
1349
+ #### Parameters
1350
+
1351
+ ##### payloads
1352
+
1353
+ `T`[]
1354
+
1355
+ ##### maxDepth?
1356
+
1357
+ `number`
1358
+
1359
+ #### Returns
1360
+
1361
+ `WithoutClientMeta`\<`T`\>[]
1362
+
1363
+ #### Inherited from
1364
+
1365
+ ```ts
1366
+ PayloadBuilder.omitClientMeta
1367
+ ```
1368
+
1369
+ ### Call Signature
1370
+
1371
+ ```ts
1372
+ static omitClientMeta<T>(payload, maxDepth?): WithoutClientMeta<T>;
1373
+ ```
1374
+
1375
+ #### Type Parameters
1376
+
1377
+ ##### T
1378
+
1379
+ `T` *extends* `Payload`
1380
+
1381
+ #### Parameters
1382
+
1383
+ ##### payload
1384
+
1385
+ `T`
1386
+
1387
+ ##### maxDepth?
1388
+
1389
+ `number`
1390
+
1391
+ #### Returns
1392
+
1393
+ `WithoutClientMeta`\<`T`\>
1394
+
1395
+ #### Inherited from
1396
+
1397
+ ```ts
1398
+ PayloadBuilder.omitClientMeta
1399
+ ```
1400
+
1401
+ ### Call Signature
1402
+
1403
+ ```ts
1404
+ static omitClientMeta<T>(payload, maxDepth?): WithoutClientMeta<T>;
1405
+ ```
1406
+
1407
+ #### Type Parameters
1408
+
1409
+ ##### T
1410
+
1411
+ `T` *extends* `object`
1412
+
1413
+ #### Parameters
1414
+
1415
+ ##### payload
1416
+
1417
+ `T`
1418
+
1419
+ ##### maxDepth?
1420
+
1421
+ `number`
1422
+
1423
+ #### Returns
1424
+
1425
+ `WithoutClientMeta`\<`T`\>
1426
+
1427
+ #### Inherited from
1428
+
1429
+ ```ts
1430
+ PayloadBuilder.omitClientMeta
1431
+ ```
1432
+
1433
+ ***
1434
+
1435
+ ### omitMeta()
1436
+
1437
+ ### Call Signature
1438
+
1439
+ ```ts
1440
+ static omitMeta<T>(payloads, maxDepth?): WithoutMeta<T>[];
1441
+ ```
1442
+
1443
+ #### Type Parameters
1444
+
1445
+ ##### T
1446
+
1447
+ `T` *extends* `Payload`
1448
+
1449
+ #### Parameters
1450
+
1451
+ ##### payloads
1452
+
1453
+ `T`[]
1454
+
1455
+ ##### maxDepth?
1456
+
1457
+ `number`
1458
+
1459
+ #### Returns
1460
+
1461
+ `WithoutMeta`\<`T`\>[]
1462
+
1463
+ #### Inherited from
1464
+
1465
+ ```ts
1466
+ PayloadBuilder.omitMeta
1467
+ ```
1468
+
1469
+ ### Call Signature
1470
+
1471
+ ```ts
1472
+ static omitMeta<T>(payloads, maxDepth?): WithoutMeta<T>[];
1473
+ ```
1474
+
1475
+ #### Type Parameters
1476
+
1477
+ ##### T
1478
+
1479
+ `T` *extends* `object`
1480
+
1481
+ #### Parameters
1482
+
1483
+ ##### payloads
1484
+
1485
+ `T`[]
1486
+
1487
+ ##### maxDepth?
1488
+
1489
+ `number`
1490
+
1491
+ #### Returns
1492
+
1493
+ `WithoutMeta`\<`T`\>[]
1494
+
1495
+ #### Inherited from
1496
+
1497
+ ```ts
1498
+ PayloadBuilder.omitMeta
1499
+ ```
1500
+
1501
+ ### Call Signature
1502
+
1503
+ ```ts
1504
+ static omitMeta<T>(payload, maxDepth?): WithoutMeta<T>;
1505
+ ```
1506
+
1507
+ #### Type Parameters
1508
+
1509
+ ##### T
1510
+
1511
+ `T` *extends* `Payload`
1512
+
1513
+ #### Parameters
1514
+
1515
+ ##### payload
1516
+
1517
+ `T`
1518
+
1519
+ ##### maxDepth?
1520
+
1521
+ `number`
1522
+
1523
+ #### Returns
1524
+
1525
+ `WithoutMeta`\<`T`\>
1526
+
1527
+ #### Inherited from
1528
+
1529
+ ```ts
1530
+ PayloadBuilder.omitMeta
1531
+ ```
1532
+
1533
+ ### Call Signature
1534
+
1535
+ ```ts
1536
+ static omitMeta<T>(payload, maxDepth?): WithoutMeta<T>;
1537
+ ```
1538
+
1539
+ #### Type Parameters
1540
+
1541
+ ##### T
1542
+
1543
+ `T` *extends* `object`
1544
+
1545
+ #### Parameters
1546
+
1547
+ ##### payload
1548
+
1549
+ `T`
1550
+
1551
+ ##### maxDepth?
1552
+
1553
+ `number`
1554
+
1555
+ #### Returns
1556
+
1557
+ `WithoutMeta`\<`T`\>
1558
+
1559
+ #### Inherited from
1560
+
1561
+ ```ts
1562
+ PayloadBuilder.omitMeta
1563
+ ```
1564
+
1565
+ ***
1566
+
1567
+ ### omitPrivateStorageMeta()
1568
+
1569
+ ### Call Signature
1570
+
1571
+ ```ts
1572
+ static omitPrivateStorageMeta<T>(payloads, maxDepth?): WithoutPrivateStorageMeta<T>[];
1573
+ ```
1574
+
1575
+ #### Type Parameters
1576
+
1577
+ ##### T
1578
+
1579
+ `T` *extends* `Payload`
1580
+
1581
+ #### Parameters
1582
+
1583
+ ##### payloads
1584
+
1585
+ `T`[]
1586
+
1587
+ ##### maxDepth?
1588
+
1589
+ `number`
1590
+
1591
+ #### Returns
1592
+
1593
+ `WithoutPrivateStorageMeta`\<`T`\>[]
1594
+
1595
+ #### Inherited from
1596
+
1597
+ ```ts
1598
+ PayloadBuilder.omitPrivateStorageMeta
1599
+ ```
1600
+
1601
+ ### Call Signature
1602
+
1603
+ ```ts
1604
+ static omitPrivateStorageMeta<T>(payloads, maxDepth?): WithoutPrivateStorageMeta<T>[];
1605
+ ```
1606
+
1607
+ #### Type Parameters
1608
+
1609
+ ##### T
1610
+
1611
+ `T` *extends* `object`
1612
+
1613
+ #### Parameters
1614
+
1615
+ ##### payloads
1616
+
1617
+ `T`[]
1618
+
1619
+ ##### maxDepth?
1620
+
1621
+ `number`
1622
+
1623
+ #### Returns
1624
+
1625
+ `WithoutPrivateStorageMeta`\<`T`\>[]
1626
+
1627
+ #### Inherited from
1628
+
1629
+ ```ts
1630
+ PayloadBuilder.omitPrivateStorageMeta
1631
+ ```
1632
+
1633
+ ### Call Signature
1634
+
1635
+ ```ts
1636
+ static omitPrivateStorageMeta<T>(payload, maxDepth?): WithoutPrivateStorageMeta<T>;
1637
+ ```
1638
+
1639
+ #### Type Parameters
1640
+
1641
+ ##### T
1642
+
1643
+ `T` *extends* `Payload`
1644
+
1645
+ #### Parameters
1646
+
1647
+ ##### payload
1648
+
1649
+ `T`
1650
+
1651
+ ##### maxDepth?
1652
+
1653
+ `number`
1654
+
1655
+ #### Returns
1656
+
1657
+ `WithoutPrivateStorageMeta`\<`T`\>
1658
+
1659
+ #### Inherited from
1660
+
1661
+ ```ts
1662
+ PayloadBuilder.omitPrivateStorageMeta
1663
+ ```
1664
+
1665
+ ### Call Signature
1666
+
1667
+ ```ts
1668
+ static omitPrivateStorageMeta<T>(payload, maxDepth?): WithoutPrivateStorageMeta<T>;
1669
+ ```
1670
+
1671
+ #### Type Parameters
1672
+
1673
+ ##### T
1674
+
1675
+ `T` *extends* `object`
1676
+
1677
+ #### Parameters
1678
+
1679
+ ##### payload
1680
+
1681
+ `T`
1682
+
1683
+ ##### maxDepth?
1684
+
1685
+ `number`
1686
+
1687
+ #### Returns
1688
+
1689
+ `WithoutPrivateStorageMeta`\<`T`\>
1690
+
1691
+ #### Inherited from
1692
+
1693
+ ```ts
1694
+ PayloadBuilder.omitPrivateStorageMeta
1695
+ ```
1696
+
1697
+ ***
1698
+
1699
+ ### omitStorageMeta()
1700
+
1701
+ ### Call Signature
1702
+
1703
+ ```ts
1704
+ static omitStorageMeta<T>(payloads, maxDepth?): WithoutStorageMeta<T[number]>[];
1705
+ ```
1706
+
1707
+ #### Type Parameters
1708
+
1709
+ ##### T
1710
+
1711
+ `T` *extends* `object`[]
1712
+
1713
+ #### Parameters
1714
+
1715
+ ##### payloads
1716
+
1717
+ `T`
1718
+
1719
+ ##### maxDepth?
1720
+
1721
+ `number`
1722
+
1723
+ #### Returns
1724
+
1725
+ `WithoutStorageMeta`\<`T`\[`number`\]\>[]
1726
+
1727
+ #### Inherited from
1728
+
1729
+ ```ts
1730
+ PayloadBuilder.omitStorageMeta
1731
+ ```
1732
+
1733
+ ### Call Signature
1734
+
1735
+ ```ts
1736
+ static omitStorageMeta<T>(payloads, maxDepth?): WithoutStorageMeta<T[number]>[];
1737
+ ```
1738
+
1739
+ #### Type Parameters
1740
+
1741
+ ##### T
1742
+
1743
+ `T` *extends* `Payload`[]
1744
+
1745
+ #### Parameters
1746
+
1747
+ ##### payloads
1748
+
1749
+ `T`
1750
+
1751
+ ##### maxDepth?
1752
+
1753
+ `number`
1754
+
1755
+ #### Returns
1756
+
1757
+ `WithoutStorageMeta`\<`T`\[`number`\]\>[]
1758
+
1759
+ #### Inherited from
1760
+
1761
+ ```ts
1762
+ PayloadBuilder.omitStorageMeta
1763
+ ```
1764
+
1765
+ ### Call Signature
1766
+
1767
+ ```ts
1768
+ static omitStorageMeta<T>(payload, maxDepth?): WithoutStorageMeta<T>;
1769
+ ```
1770
+
1771
+ #### Type Parameters
1772
+
1773
+ ##### T
1774
+
1775
+ `T` *extends* `object`
1776
+
1777
+ #### Parameters
1778
+
1779
+ ##### payload
1780
+
1781
+ `T`
1782
+
1783
+ ##### maxDepth?
1784
+
1785
+ `number`
1786
+
1787
+ #### Returns
1788
+
1789
+ `WithoutStorageMeta`\<`T`\>
1790
+
1791
+ #### Inherited from
1792
+
1793
+ ```ts
1794
+ PayloadBuilder.omitStorageMeta
1795
+ ```
1796
+
1797
+ ### Call Signature
1798
+
1799
+ ```ts
1800
+ static omitStorageMeta<T>(payload, maxDepth?): WithoutStorageMeta<T>;
1801
+ ```
1802
+
1803
+ #### Type Parameters
1804
+
1805
+ ##### T
1806
+
1807
+ `T` *extends* `Payload`
1808
+
1809
+ #### Parameters
1810
+
1811
+ ##### payload
1812
+
1813
+ `T`
1814
+
1815
+ ##### maxDepth?
1816
+
1817
+ `number`
1818
+
1819
+ #### Returns
1820
+
1821
+ `WithoutStorageMeta`\<`T`\>
1822
+
1823
+ #### Inherited from
1824
+
1825
+ ```ts
1826
+ PayloadBuilder.omitStorageMeta
1827
+ ```
1828
+
1829
+ ***
1830
+
1831
+ ### pickClientMeta()
1832
+
1833
+ ### Call Signature
1834
+
1835
+ ```ts
1836
+ static pickClientMeta<T>(payloads, maxDepth?): WithOnlyClientMeta<T>[];
1837
+ ```
1838
+
1839
+ #### Type Parameters
1840
+
1841
+ ##### T
1842
+
1843
+ `T` *extends* `Payload`
1844
+
1845
+ #### Parameters
1846
+
1847
+ ##### payloads
1848
+
1849
+ `T`[]
1850
+
1851
+ ##### maxDepth?
1852
+
1853
+ `number`
1854
+
1855
+ #### Returns
1856
+
1857
+ `WithOnlyClientMeta`\<`T`\>[]
1858
+
1859
+ #### Inherited from
1860
+
1861
+ ```ts
1862
+ PayloadBuilder.pickClientMeta
1863
+ ```
1864
+
1865
+ ### Call Signature
1866
+
1867
+ ```ts
1868
+ static pickClientMeta<T>(payload, maxDepth?): WithOnlyClientMeta<T>;
1869
+ ```
1870
+
1871
+ #### Type Parameters
1872
+
1873
+ ##### T
1874
+
1875
+ `T` *extends* `Payload`
1876
+
1877
+ #### Parameters
1878
+
1879
+ ##### payload
1880
+
1881
+ `T`
1882
+
1883
+ ##### maxDepth?
1884
+
1885
+ `number`
1886
+
1887
+ #### Returns
1888
+
1889
+ `WithOnlyClientMeta`\<`T`\>
1890
+
1891
+ #### Inherited from
1892
+
1893
+ ```ts
1894
+ PayloadBuilder.pickClientMeta
1895
+ ```
1896
+
1897
+ ***
1898
+
1899
+ ### sortByStorageMeta()
1900
+
1901
+ ```ts
1902
+ static sortByStorageMeta<T>(
1903
+ payloads,
1904
+ direction?,
1905
+ comparer?): WithStorageMeta<T>[];
1906
+ ```
1907
+
1908
+ ### Type Parameters
1909
+
1910
+ #### T
1911
+
1912
+ `T` *extends* `Payload`
1913
+
1914
+ ### Parameters
1915
+
1916
+ #### payloads
1917
+
1918
+ `WithStorageMeta`\<`T`\>[]
1919
+
1920
+ #### direction?
1921
+
1922
+ `1` \| `-1`
1923
+
1924
+ #### comparer?
1925
+
1926
+ `Compare`\<`Sequence`\>
1927
+
1928
+ ### Returns
1929
+
1930
+ `WithStorageMeta`\<`T`\>[]
1931
+
1932
+ ### Inherited from
1933
+
1934
+ ```ts
1935
+ PayloadBuilder.sortByStorageMeta
1936
+ ```
1937
+
1938
+ ***
1939
+
1940
+ ### toAllHashMap()
1941
+
1942
+ ```ts
1943
+ static toAllHashMap<T>(payloads): Promise<Record<BrandedHash, T>>;
1944
+ ```
1945
+
1946
+ ### Type Parameters
1947
+
1948
+ #### T
1949
+
1950
+ `T` *extends* `Payload`
1951
+
1952
+ ### Parameters
1953
+
1954
+ #### payloads
1955
+
1956
+ `T`[]
1957
+
1958
+ ### Returns
1959
+
1960
+ `Promise`\<`Record`\<`BrandedHash`, `T`\>\>
1961
+
1962
+ ### Inherited from
1963
+
1964
+ ```ts
1965
+ PayloadBuilder.toAllHashMap
1966
+ ```
1967
+
1968
+ ***
1969
+
1970
+ ### toDataHashMap()
1971
+
1972
+ ```ts
1973
+ static toDataHashMap<T>(objs): Promise<Record<BrandedHash, T>>;
1974
+ ```
1975
+
1976
+ ### Type Parameters
1977
+
1978
+ #### T
1979
+
1980
+ `T` *extends* `Payload`
1981
+
1982
+ ### Parameters
1983
+
1984
+ #### objs
1985
+
1986
+ `T`[]
1987
+
1988
+ ### Returns
1989
+
1990
+ `Promise`\<`Record`\<`BrandedHash`, `T`\>\>
1991
+
1992
+ ### Inherited from
1993
+
1994
+ ```ts
1995
+ PayloadBuilder.toDataHashMap
1996
+ ```
1997
+
1998
+ ***
1999
+
2000
+ ### toHashMap()
2001
+
2002
+ ```ts
2003
+ static toHashMap<T>(objs): Promise<Record<BrandedHash, T>>;
2004
+ ```
2005
+
2006
+ Creates an object map of payload hashes to payloads based on the payloads passed in
2007
+
2008
+ ### Type Parameters
2009
+
2010
+ #### T
2011
+
2012
+ `T` *extends* `Payload`
2013
+
2014
+ ### Parameters
2015
+
2016
+ #### objs
2017
+
2018
+ `T`[]
2019
+
2020
+ Any array of payloads
2021
+
2022
+ ### Returns
2023
+
2024
+ `Promise`\<`Record`\<`BrandedHash`, `T`\>\>
2025
+
2026
+ A map of hashes to payloads
2027
+
2028
+ ### Inherited from
2029
+
2030
+ ```ts
2031
+ PayloadBuilder.toHashMap
2032
+ ```
2033
+
2034
+ ***
2035
+
2036
+ ### meta()
2037
+
2038
+ ```ts
2039
+ meta(meta): this;
2040
+ ```
2041
+
2042
+ ### Parameters
2043
+
2044
+ #### meta
2045
+
2046
+ `DeepPickStartsWith`\<`TBoundWitness`\>
2047
+
2048
+ ### Returns
2049
+
2050
+ `this`
2051
+
2052
+ ### Inherited from
2053
+
2054
+ ```ts
2055
+ PayloadBuilder.meta
2056
+ ```
2057
+
2058
+ ***
2059
+
2060
+ ### schema()
2061
+
2062
+ ```ts
2063
+ schema(value): void;
2064
+ ```
2065
+
2066
+ ### Parameters
2067
+
2068
+ #### value
2069
+
2070
+ `Schema`
2071
+
2072
+ ### Returns
2073
+
2074
+ `void`
2075
+
2076
+ ### Inherited from
2077
+
2078
+ ```ts
2079
+ PayloadBuilder.schema
2080
+ ```
2081
+
2082
+ ### <a id="QueryBoundWitnessBuilder"></a>QueryBoundWitnessBuilder
2083
+
2084
+ [**@xyo-network/boundwitness-builder**](#../README)
2085
+
2086
+ ***
2087
+
2088
+ ## Extends
2089
+
2090
+ - [`BoundWitnessBuilder`](#BoundWitnessBuilder)\<`TBoundWitness`\>
2091
+
2092
+ ## Type Parameters
2093
+
2094
+ ### TBoundWitness
2095
+
2096
+ `TBoundWitness` *extends* `QueryBoundWitness` = `QueryBoundWitness`
2097
+
2098
+ ### TQuery
2099
+
2100
+ `TQuery` *extends* `Query` = `Query`
2101
+
2102
+ ## Constructors
2103
+
2104
+ ### Constructor
2105
+
2106
+ ```ts
2107
+ new QueryBoundWitnessBuilder<TBoundWitness, TQuery>(options?): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2108
+ ```
2109
+
2110
+ ### Parameters
2111
+
2112
+ #### options?
2113
+
2114
+ `Omit`\<`PayloadBuilderOptions`, `"schema"`\>
2115
+
2116
+ ### Returns
2117
+
2118
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2119
+
2120
+ ### Inherited from
2121
+
2122
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`constructor`](BoundWitnessBuilder.md#constructor)
2123
+
2124
+ ## Properties
2125
+
2126
+ ### options
2127
+
2128
+ ```ts
2129
+ readonly options: PayloadBuilderOptions;
2130
+ ```
2131
+
2132
+ ### Inherited from
2133
+
2134
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`options`](BoundWitnessBuilder.md#options)
2135
+
2136
+ ***
2137
+
2138
+ ### \_fields?
2139
+
2140
+ ```ts
2141
+ protected optional _fields?: WithoutStorageMeta<WithoutClientMeta<WithoutSchema<TBoundWitness>>>;
2142
+ ```
2143
+
2144
+ ### Inherited from
2145
+
2146
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`_fields`](BoundWitnessBuilder.md#_fields)
2147
+
2148
+ ***
2149
+
2150
+ ### \_meta?
2151
+
2152
+ ```ts
2153
+ protected optional _meta?: DeepPickStartsWith<TBoundWitness, "$">;
2154
+ ```
2155
+
2156
+ ### Inherited from
2157
+
2158
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`_meta`](BoundWitnessBuilder.md#_meta)
2159
+
2160
+ ***
2161
+
2162
+ ### \_schema
2163
+
2164
+ ```ts
2165
+ protected _schema: Schema;
2166
+ ```
2167
+
2168
+ ### Inherited from
2169
+
2170
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`_schema`](BoundWitnessBuilder.md#_schema)
2171
+
2172
+ ## Accessors
2173
+
2174
+ ### addresses
2175
+
2176
+ ### Get Signature
2177
+
2178
+ ```ts
2179
+ get protected addresses(): BrandedAddress[];
2180
+ ```
2181
+
2182
+ #### Returns
2183
+
2184
+ `BrandedAddress`[]
2185
+
2186
+ ### Inherited from
2187
+
2188
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`addresses`](BoundWitnessBuilder.md#addresses)
2189
+
2190
+ ***
2191
+
2192
+ ### payloadSchemas
2193
+
2194
+ ### Get Signature
2195
+
2196
+ ```ts
2197
+ get protected payloadSchemas(): string[];
2198
+ ```
2199
+
2200
+ #### Returns
2201
+
2202
+ `string`[]
2203
+
2204
+ ### Inherited from
2205
+
2206
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`payloadSchemas`](BoundWitnessBuilder.md#payloadschemas)
2207
+
2208
+ ***
2209
+
2210
+ ### previousHashBytes
2211
+
2212
+ ### Get Signature
2213
+
2214
+ ```ts
2215
+ get protected previousHashBytes(): (ArrayBufferLike | null)[];
2216
+ ```
2217
+
2218
+ #### Returns
2219
+
2220
+ (`ArrayBufferLike` \| `null`)[]
2221
+
2222
+ ### Inherited from
2223
+
2224
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`previousHashBytes`](BoundWitnessBuilder.md#previoushashbytes)
2225
+
2226
+ ***
2227
+
2228
+ ### previousHashes
2229
+
2230
+ ### Get Signature
2231
+
2232
+ ```ts
2233
+ get protected previousHashes(): (BrandedHash | null)[];
2234
+ ```
2235
+
2236
+ #### Returns
2237
+
2238
+ (`BrandedHash` \| `null`)[]
2239
+
2240
+ ### Inherited from
2241
+
2242
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`previousHashes`](BoundWitnessBuilder.md#previoushashes)
2243
+
2244
+ ## Methods
2245
+
2246
+ ### addressIndex()
2247
+
2248
+ ```ts
2249
+ static addressIndex<T>(payload, address): number;
2250
+ ```
2251
+
2252
+ ### Type Parameters
2253
+
2254
+ #### T
2255
+
2256
+ `T` *extends* `object`
2257
+
2258
+ ### Parameters
2259
+
2260
+ #### payload
2261
+
2262
+ `T`
2263
+
2264
+ #### address
2265
+
2266
+ `BrandedAddress`
2267
+
2268
+ ### Returns
2269
+
2270
+ `number`
2271
+
2272
+ ### Inherited from
2273
+
2274
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`addressIndex`](BoundWitnessBuilder.md#addressindex)
2275
+
2276
+ ***
2277
+
2278
+ ### previousHash()
2279
+
2280
+ ```ts
2281
+ static previousHash<T>(boundWitness, address): string | undefined;
2282
+ ```
2283
+
2284
+ ### Type Parameters
2285
+
2286
+ #### T
2287
+
2288
+ `T` *extends* `object`
2289
+
2290
+ ### Parameters
2291
+
2292
+ #### boundWitness
2293
+
2294
+ `T`
2295
+
2296
+ #### address
2297
+
2298
+ `BrandedAddress`
2299
+
2300
+ ### Returns
2301
+
2302
+ `string` \| `undefined`
2303
+
2304
+ ### Inherited from
2305
+
2306
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`previousHash`](BoundWitnessBuilder.md#previoushash)
2307
+
2308
+ ***
2309
+
2310
+ ### linkingFields()
2311
+
2312
+ ```ts
2313
+ protected static linkingFields<T>(accounts, payloads?): Promise<Pick<T, "addresses" | "payload_hashes" | "payload_schemas" | "previous_hashes">>;
2314
+ ```
2315
+
2316
+ ### Type Parameters
2317
+
2318
+ #### T
2319
+
2320
+ `T` *extends* `object`
2321
+
2322
+ ### Parameters
2323
+
2324
+ #### accounts
2325
+
2326
+ `AccountInstance`[]
2327
+
2328
+ #### payloads?
2329
+
2330
+ `Payload`[]
2331
+
2332
+ ### Returns
2333
+
2334
+ `Promise`\<`Pick`\<`T`, `"addresses"` \| `"payload_hashes"` \| `"payload_schemas"` \| `"previous_hashes"`\>\>
2335
+
2336
+ ### Inherited from
2337
+
2338
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`linkingFields`](BoundWitnessBuilder.md#linkingfields)
2339
+
2340
+ ***
2341
+
2342
+ ### signature()
2343
+
2344
+ ```ts
2345
+ protected static signature<T>(payload, address): BrandedHex | null;
2346
+ ```
2347
+
2348
+ ### Type Parameters
2349
+
2350
+ #### T
2351
+
2352
+ `T` *extends* `object`
2353
+
2354
+ ### Parameters
2355
+
2356
+ #### payload
2357
+
2358
+ `T`
2359
+
2360
+ #### address
2361
+
2362
+ `BrandedAddress`
2363
+
2364
+ ### Returns
2365
+
2366
+ `BrandedHex` \| `null`
2367
+
2368
+ ### Inherited from
2369
+
2370
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`signature`](BoundWitnessBuilder.md#signature)
2371
+
2372
+ ***
2373
+
2374
+ ### signatures()
2375
+
2376
+ ```ts
2377
+ protected static signatures(accounts, dataHash): Promise<string[]>;
2378
+ ```
2379
+
2380
+ ### Parameters
2381
+
2382
+ #### accounts
2383
+
2384
+ `AccountInstance`[]
2385
+
2386
+ #### dataHash
2387
+
2388
+ `BrandedHash`
2389
+
2390
+ ### Returns
2391
+
2392
+ `Promise`\<`string`[]\>
2393
+
2394
+ ### Inherited from
2395
+
2396
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`signatures`](BoundWitnessBuilder.md#signatures)
2397
+
2398
+ ***
2399
+
2400
+ ### build()
2401
+
2402
+ ### Call Signature
2403
+
2404
+ ```ts
2405
+ build(): Promise<[Signed<TBoundWitness>, Payload[], ModuleError[]]>;
2406
+ ```
2407
+
2408
+ #### Returns
2409
+
2410
+ `Promise`\<\[`Signed`\<`TBoundWitness`\>, `Payload`[], `ModuleError`[]\]\>
2411
+
2412
+ #### Inherited from
2413
+
2414
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`build`](BoundWitnessBuilder.md#build)
2415
+
2416
+ ### Call Signature
2417
+
2418
+ ```ts
2419
+ build(sign): Promise<[Unsigned<TBoundWitness>, Payload[], ModuleError[]]>;
2420
+ ```
2421
+
2422
+ #### Parameters
2423
+
2424
+ ##### sign
2425
+
2426
+ `false`
2427
+
2428
+ #### Returns
2429
+
2430
+ `Promise`\<\[`Unsigned`\<`TBoundWitness`\>, `Payload`[], `ModuleError`[]\]\>
2431
+
2432
+ #### Inherited from
2433
+
2434
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`build`](BoundWitnessBuilder.md#build)
2435
+
2436
+ ### Call Signature
2437
+
2438
+ ```ts
2439
+ build(sign): Promise<[Signed<TBoundWitness>, Payload[], ModuleError[]]>;
2440
+ ```
2441
+
2442
+ #### Parameters
2443
+
2444
+ ##### sign
2445
+
2446
+ `true`
2447
+
2448
+ #### Returns
2449
+
2450
+ `Promise`\<\[`Signed`\<`TBoundWitness`\>, `Payload`[], `ModuleError`[]\]\>
2451
+
2452
+ #### Inherited from
2453
+
2454
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`build`](BoundWitnessBuilder.md#build)
2455
+
2456
+ ***
2457
+
2458
+ ### dataHash()
2459
+
2460
+ ```ts
2461
+ dataHash(): Promise<BrandedHash>;
2462
+ ```
2463
+
2464
+ ### Returns
2465
+
2466
+ `Promise`\<`BrandedHash`\>
2467
+
2468
+ ### Inherited from
2469
+
2470
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`dataHash`](BoundWitnessBuilder.md#datahash)
2471
+
2472
+ ***
2473
+
2474
+ ### error()
2475
+
2476
+ ```ts
2477
+ error(payload?): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2478
+ ```
2479
+
2480
+ ### Parameters
2481
+
2482
+ #### payload?
2483
+
2484
+ `ModuleError`
2485
+
2486
+ ### Returns
2487
+
2488
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2489
+
2490
+ ### Inherited from
2491
+
2492
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`error`](BoundWitnessBuilder.md#error)
2493
+
2494
+ ***
2495
+
2496
+ ### errors()
2497
+
2498
+ ```ts
2499
+ errors(errors?): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2500
+ ```
2501
+
2502
+ ### Parameters
2503
+
2504
+ #### errors?
2505
+
2506
+ (`ModuleError` \| `null`)[]
2507
+
2508
+ ### Returns
2509
+
2510
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2511
+
2512
+ ### Inherited from
2513
+
2514
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`errors`](BoundWitnessBuilder.md#errors)
2515
+
2516
+ ***
2517
+
2518
+ ### fields()
2519
+
2520
+ ```ts
2521
+ fields(fields): this;
2522
+ ```
2523
+
2524
+ ### Parameters
2525
+
2526
+ #### fields
2527
+
2528
+ `WithoutSchema`\<`Omit`\<`WithoutStorageMeta`\<`WithoutClientMeta`\<`TBoundWitness`\>\>, `"addresses"` \| `"payload_hashes"` \| `"payload_schemas"` \| `"previous_hashes"`\>\>
2529
+
2530
+ ### Returns
2531
+
2532
+ `this`
2533
+
2534
+ ### Inherited from
2535
+
2536
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`fields`](BoundWitnessBuilder.md#fields)
2537
+
2538
+ ***
2539
+
2540
+ ### hashes()
2541
+
2542
+ ```ts
2543
+ hashes(hashes, schema): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2544
+ ```
2545
+
2546
+ ### Parameters
2547
+
2548
+ #### hashes
2549
+
2550
+ `BrandedHash`[]
2551
+
2552
+ #### schema
2553
+
2554
+ `Schema`[]
2555
+
2556
+ ### Returns
2557
+
2558
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2559
+
2560
+ ### Inherited from
2561
+
2562
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`hashes`](BoundWitnessBuilder.md#hashes)
2563
+
2564
+ ***
2565
+
2566
+ ### payload()
2567
+
2568
+ ```ts
2569
+ payload(payload?): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2570
+ ```
2571
+
2572
+ ### Parameters
2573
+
2574
+ #### payload?
2575
+
2576
+ `Payload`
2577
+
2578
+ ### Returns
2579
+
2580
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2581
+
2582
+ ### Inherited from
2583
+
2584
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`payload`](BoundWitnessBuilder.md#payload)
2585
+
2586
+ ***
2587
+
2588
+ ### payloads()
2589
+
2590
+ ```ts
2591
+ payloads(payloads?): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2592
+ ```
2593
+
2594
+ ### Parameters
2595
+
2596
+ #### payloads?
2597
+
2598
+ (`Payload` \| `null`)[]
2599
+
2600
+ ### Returns
2601
+
2602
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2603
+
2604
+ ### Inherited from
2605
+
2606
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`payloads`](BoundWitnessBuilder.md#payloads)
2607
+
2608
+ ***
2609
+
2610
+ ### signer()
2611
+
2612
+ ```ts
2613
+ signer(account): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2614
+ ```
2615
+
2616
+ ### Parameters
2617
+
2618
+ #### account
2619
+
2620
+ `AccountInstance`
2621
+
2622
+ ### Returns
2623
+
2624
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2625
+
2626
+ ### Inherited from
2627
+
2628
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`signer`](BoundWitnessBuilder.md#signer)
2629
+
2630
+ ***
2631
+
2632
+ ### signers()
2633
+
2634
+ ```ts
2635
+ signers(accounts): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2636
+ ```
2637
+
2638
+ ### Parameters
2639
+
2640
+ #### accounts
2641
+
2642
+ `AccountInstance`[]
2643
+
2644
+ ### Returns
2645
+
2646
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2647
+
2648
+ ### Inherited from
2649
+
2650
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`signers`](BoundWitnessBuilder.md#signers)
2651
+
2652
+ ***
2653
+
2654
+ ### sourceQuery()
2655
+
2656
+ ```ts
2657
+ sourceQuery(sourceQuery): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2658
+ ```
2659
+
2660
+ ### Parameters
2661
+
2662
+ #### sourceQuery
2663
+
2664
+ `BrandedHash`
2665
+
2666
+ ### Returns
2667
+
2668
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2669
+
2670
+ ### Inherited from
2671
+
2672
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`sourceQuery`](BoundWitnessBuilder.md#sourcequery)
2673
+
2674
+ ***
2675
+
2676
+ ### ~~witness()~~
2677
+
2678
+ ```ts
2679
+ witness(account): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2680
+ ```
2681
+
2682
+ ### Parameters
2683
+
2684
+ #### account
2685
+
2686
+ `AccountInstance`
2687
+
2688
+ ### Returns
2689
+
2690
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2691
+
2692
+ ### Deprecated
2693
+
2694
+ use signer instead
2695
+
2696
+ ### Inherited from
2697
+
2698
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`witness`](BoundWitnessBuilder.md#witness)
2699
+
2700
+ ***
2701
+
2702
+ ### ~~witnesses()~~
2703
+
2704
+ ```ts
2705
+ witnesses(accounts): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2706
+ ```
2707
+
2708
+ ### Parameters
2709
+
2710
+ #### accounts
2711
+
2712
+ `AccountInstance`[]
2713
+
2714
+ ### Returns
2715
+
2716
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2717
+
2718
+ ### Deprecated
2719
+
2720
+ use signers instead
2721
+
2722
+ ### Inherited from
2723
+
2724
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`witnesses`](BoundWitnessBuilder.md#witnesses)
2725
+
2726
+ ***
2727
+
2728
+ ### sign()
2729
+
2730
+ ```ts
2731
+ protected sign(): Promise<BrandedHex[]>;
2732
+ ```
2733
+
2734
+ ### Returns
2735
+
2736
+ `Promise`\<`BrandedHex`[]\>
2737
+
2738
+ ### Inherited from
2739
+
2740
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`sign`](BoundWitnessBuilder.md#sign)
2741
+
2742
+ ***
2743
+
2744
+ ### dataHashableFields()
2745
+
2746
+ ```ts
2747
+ dataHashableFields(): Promise<WithoutMeta<TBoundWitness>>;
2748
+ ```
2749
+
2750
+ ### Returns
2751
+
2752
+ `Promise`\<`WithoutMeta`\<`TBoundWitness`\>\>
2753
+
2754
+ ### Overrides
2755
+
2756
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`dataHashableFields`](BoundWitnessBuilder.md#datahashablefields)
2757
+
2758
+ ***
2759
+
2760
+ ### query()
2761
+
2762
+ ```ts
2763
+ query<T>(query): QueryBoundWitnessBuilder<TBoundWitness, TQuery>;
2764
+ ```
2765
+
2766
+ ### Type Parameters
2767
+
2768
+ #### T
2769
+
2770
+ `T` *extends* `Query`
2771
+
2772
+ ### Parameters
2773
+
2774
+ #### query
2775
+
2776
+ `T`
2777
+
2778
+ ### Returns
2779
+
2780
+ `QueryBoundWitnessBuilder`\<`TBoundWitness`, `TQuery`\>
2781
+
2782
+ ***
2783
+
2784
+ ### addHashMeta()
2785
+
2786
+ ### Call Signature
2787
+
2788
+ ```ts
2789
+ static addHashMeta<T>(payload): Promise<WithHashMeta<T>>;
2790
+ ```
2791
+
2792
+ #### Type Parameters
2793
+
2794
+ ##### T
2795
+
2796
+ `T` *extends* `Payload`
2797
+
2798
+ #### Parameters
2799
+
2800
+ ##### payload
2801
+
2802
+ `T`
2803
+
2804
+ #### Returns
2805
+
2806
+ `Promise`\<`WithHashMeta`\<`T`\>\>
2807
+
2808
+ #### Inherited from
2809
+
2810
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`addHashMeta`](BoundWitnessBuilder.md#addhashmeta)
2811
+
2812
+ ### Call Signature
2813
+
2814
+ ```ts
2815
+ static addHashMeta<T>(payloads): Promise<WithHashMeta<T>[]>;
2816
+ ```
2817
+
2818
+ #### Type Parameters
2819
+
2820
+ ##### T
2821
+
2822
+ `T` *extends* `Payload`
2823
+
2824
+ #### Parameters
2825
+
2826
+ ##### payloads
2827
+
2828
+ `T`[]
2829
+
2830
+ #### Returns
2831
+
2832
+ `Promise`\<`WithHashMeta`\<`T`\>[]\>
2833
+
2834
+ #### Inherited from
2835
+
2836
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`addHashMeta`](BoundWitnessBuilder.md#addhashmeta)
2837
+
2838
+ ***
2839
+
2840
+ ### addStorageMeta()
2841
+
2842
+ ### Call Signature
2843
+
2844
+ ```ts
2845
+ static addStorageMeta<T>(payload, index?): Promise<WithStorageMeta<T>>;
2846
+ ```
2847
+
2848
+ #### Type Parameters
2849
+
2850
+ ##### T
2851
+
2852
+ `T` *extends* `Payload`
2853
+
2854
+ #### Parameters
2855
+
2856
+ ##### payload
2857
+
2858
+ `T`
2859
+
2860
+ ##### index?
2861
+
2862
+ `number`
2863
+
2864
+ #### Returns
2865
+
2866
+ `Promise`\<`WithStorageMeta`\<`T`\>\>
2867
+
2868
+ #### Inherited from
2869
+
2870
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`addStorageMeta`](BoundWitnessBuilder.md#addstoragemeta)
2871
+
2872
+ ### Call Signature
2873
+
2874
+ ```ts
2875
+ static addStorageMeta<T>(payloads): Promise<WithStorageMeta<T>[]>;
2876
+ ```
2877
+
2878
+ #### Type Parameters
2879
+
2880
+ ##### T
2881
+
2882
+ `T` *extends* `Payload`
2883
+
2884
+ #### Parameters
2885
+
2886
+ ##### payloads
2887
+
2888
+ `T`[]
2889
+
2890
+ #### Returns
2891
+
2892
+ `Promise`\<`WithStorageMeta`\<`T`\>[]\>
2893
+
2894
+ #### Inherited from
2895
+
2896
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`addStorageMeta`](BoundWitnessBuilder.md#addstoragemeta)
2897
+
2898
+ ***
2899
+
2900
+ ### compareStorageMeta()
2901
+
2902
+ ```ts
2903
+ static compareStorageMeta(
2904
+ a,
2905
+ b,
2906
+ comparer?): number;
2907
+ ```
2908
+
2909
+ ### Parameters
2910
+
2911
+ #### a
2912
+
2913
+ `WithStorageMeta`\<`Payload`\>
2914
+
2915
+ #### b
2916
+
2917
+ `WithStorageMeta`\<`Payload`\>
2918
+
2919
+ #### comparer?
2920
+
2921
+ `Compare`\<`Sequence`\>
2922
+
2923
+ ### Returns
2924
+
2925
+ `number`
2926
+
2927
+ ### Inherited from
2928
+
2929
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`compareStorageMeta`](BoundWitnessBuilder.md#comparestoragemeta)
2930
+
2931
+ ***
2932
+
2933
+ ### dataHash()
2934
+
2935
+ ```ts
2936
+ static dataHash<T>(payload): Promise<BrandedHash>;
2937
+ ```
2938
+
2939
+ ### Type Parameters
2940
+
2941
+ #### T
2942
+
2943
+ `T` *extends* `Payload`
2944
+
2945
+ ### Parameters
2946
+
2947
+ #### payload
2948
+
2949
+ `T`
2950
+
2951
+ ### Returns
2952
+
2953
+ `Promise`\<`BrandedHash`\>
2954
+
2955
+ ### Inherited from
2956
+
2957
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`dataHash`](BoundWitnessBuilder.md#datahash-1)
2958
+
2959
+ ***
2960
+
2961
+ ### dataHashPairs()
2962
+
2963
+ ```ts
2964
+ static dataHashPairs<T>(payloads): Promise<[T, BrandedHash][]>;
2965
+ ```
2966
+
2967
+ ### Type Parameters
2968
+
2969
+ #### T
2970
+
2971
+ `T` *extends* `Payload`
2972
+
2973
+ ### Parameters
2974
+
2975
+ #### payloads
2976
+
2977
+ `T`[]
2978
+
2979
+ ### Returns
2980
+
2981
+ `Promise`\<\[`T`, `BrandedHash`\][]\>
2982
+
2983
+ ### Inherited from
2984
+
2985
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`dataHashPairs`](BoundWitnessBuilder.md#datahashpairs)
2986
+
2987
+ ***
2988
+
2989
+ ### dataHashableFields()
2990
+
2991
+ ```ts
2992
+ static dataHashableFields<T>(schema, payload): Promisable<WithoutMeta<T>>;
2993
+ ```
2994
+
2995
+ ### Type Parameters
2996
+
2997
+ #### T
2998
+
2999
+ `T` *extends* `Payload`
3000
+
3001
+ ### Parameters
3002
+
3003
+ #### schema
3004
+
3005
+ `Schema`
3006
+
3007
+ #### payload
3008
+
3009
+ `WithoutSchema`\<`T`\>
3010
+
3011
+ ### Returns
3012
+
3013
+ `Promisable`\<`WithoutMeta`\<`T`\>\>
3014
+
3015
+ ### Inherited from
3016
+
3017
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`dataHashableFields`](BoundWitnessBuilder.md#datahashablefields-1)
3018
+
3019
+ ***
3020
+
3021
+ ### dataHashes()
3022
+
3023
+ ### Call Signature
3024
+
3025
+ ```ts
3026
+ static dataHashes(payloads): Promise<undefined>;
3027
+ ```
3028
+
3029
+ #### Parameters
3030
+
3031
+ ##### payloads
3032
+
3033
+ `undefined`
3034
+
3035
+ #### Returns
3036
+
3037
+ `Promise`\<`undefined`\>
3038
+
3039
+ #### Inherited from
3040
+
3041
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`dataHashes`](BoundWitnessBuilder.md#datahashes)
3042
+
3043
+ ### Call Signature
3044
+
3045
+ ```ts
3046
+ static dataHashes<T>(payloads): Promise<BrandedHash[]>;
3047
+ ```
3048
+
3049
+ #### Type Parameters
3050
+
3051
+ ##### T
3052
+
3053
+ `T` *extends* `Payload`
3054
+
3055
+ #### Parameters
3056
+
3057
+ ##### payloads
3058
+
3059
+ `T`[]
3060
+
3061
+ #### Returns
3062
+
3063
+ `Promise`\<`BrandedHash`[]\>
3064
+
3065
+ #### Inherited from
3066
+
3067
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`dataHashes`](BoundWitnessBuilder.md#datahashes)
3068
+
3069
+ ***
3070
+
3071
+ ### filterExclude()
3072
+
3073
+ ```ts
3074
+ static filterExclude<T>(payloads, hash): Promise<T[]>;
3075
+ ```
3076
+
3077
+ ### Type Parameters
3078
+
3079
+ #### T
3080
+
3081
+ `T` *extends* `Payload`
3082
+
3083
+ ### Parameters
3084
+
3085
+ #### payloads
3086
+
3087
+ `T`[] \| `undefined`
3088
+
3089
+ #### hash
3090
+
3091
+ `BrandedHash` \| `BrandedHash`[]
3092
+
3093
+ ### Returns
3094
+
3095
+ `Promise`\<`T`[]\>
3096
+
3097
+ ### Inherited from
3098
+
3099
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`filterExclude`](BoundWitnessBuilder.md#filterexclude)
3100
+
3101
+ ***
3102
+
3103
+ ### filterExcludeByDataHash()
3104
+
3105
+ ```ts
3106
+ static filterExcludeByDataHash<T>(payloads, hash): Promise<T[]>;
3107
+ ```
3108
+
3109
+ ### Type Parameters
3110
+
3111
+ #### T
3112
+
3113
+ `T` *extends* `Payload`
3114
+
3115
+ ### Parameters
3116
+
3117
+ #### payloads
3118
+
3119
+ `T`[] \| `undefined`
3120
+
3121
+ #### hash
3122
+
3123
+ `BrandedHash` \| `BrandedHash`[]
3124
+
3125
+ ### Returns
3126
+
3127
+ `Promise`\<`T`[]\>
3128
+
3129
+ ### Inherited from
3130
+
3131
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`filterExcludeByDataHash`](BoundWitnessBuilder.md#filterexcludebydatahash)
3132
+
3133
+ ***
3134
+
3135
+ ### filterIncludeByDataHash()
3136
+
3137
+ ```ts
3138
+ static filterIncludeByDataHash<T>(payloads, hash): Promise<T[]>;
3139
+ ```
3140
+
3141
+ ### Type Parameters
3142
+
3143
+ #### T
3144
+
3145
+ `T` *extends* `Payload`
3146
+
3147
+ ### Parameters
3148
+
3149
+ #### payloads
3150
+
3151
+ `T`[] \| `undefined`
3152
+
3153
+ #### hash
3154
+
3155
+ `BrandedHash` \| `BrandedHash`[]
3156
+
3157
+ ### Returns
3158
+
3159
+ `Promise`\<`T`[]\>
3160
+
3161
+ ### Inherited from
3162
+
3163
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`filterIncludeByDataHash`](BoundWitnessBuilder.md#filterincludebydatahash)
3164
+
3165
+ ***
3166
+
3167
+ ### filterIncludeByEitherHash()
3168
+
3169
+ ```ts
3170
+ static filterIncludeByEitherHash<T>(payloads, hash): Promise<T[]>;
3171
+ ```
3172
+
3173
+ ### Type Parameters
3174
+
3175
+ #### T
3176
+
3177
+ `T` *extends* `Payload`
3178
+
3179
+ ### Parameters
3180
+
3181
+ #### payloads
3182
+
3183
+ `T`[] \| `undefined`
3184
+
3185
+ #### hash
3186
+
3187
+ `BrandedHash` \| `BrandedHash`[]
3188
+
3189
+ ### Returns
3190
+
3191
+ `Promise`\<`T`[]\>
3192
+
3193
+ ### Inherited from
3194
+
3195
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`filterIncludeByEitherHash`](BoundWitnessBuilder.md#filterincludebyeitherhash)
3196
+
3197
+ ***
3198
+
3199
+ ### findByDataHash()
3200
+
3201
+ ```ts
3202
+ static findByDataHash<T>(payloads, hash): Promise<T | undefined>;
3203
+ ```
3204
+
3205
+ ### Type Parameters
3206
+
3207
+ #### T
3208
+
3209
+ `T` *extends* `Payload`
3210
+
3211
+ ### Parameters
3212
+
3213
+ #### payloads
3214
+
3215
+ `T`[] \| `undefined`
3216
+
3217
+ #### hash
3218
+
3219
+ `BrandedHash`
3220
+
3221
+ ### Returns
3222
+
3223
+ `Promise`\<`T` \| `undefined`\>
3224
+
3225
+ ### Inherited from
3226
+
3227
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`findByDataHash`](BoundWitnessBuilder.md#findbydatahash)
3228
+
3229
+ ***
3230
+
3231
+ ### hash()
3232
+
3233
+ ```ts
3234
+ static hash<T>(payload): Promise<BrandedHash>;
3235
+ ```
3236
+
3237
+ ### Type Parameters
3238
+
3239
+ #### T
3240
+
3241
+ `T` *extends* `Payload`
3242
+
3243
+ ### Parameters
3244
+
3245
+ #### payload
3246
+
3247
+ `T`
3248
+
3249
+ ### Returns
3250
+
3251
+ `Promise`\<`BrandedHash`\>
3252
+
3253
+ ### Inherited from
3254
+
3255
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`hash`](BoundWitnessBuilder.md#hash)
3256
+
3257
+ ***
3258
+
3259
+ ### hashPairs()
3260
+
3261
+ ```ts
3262
+ static hashPairs<T>(payloads): Promise<[T, BrandedHash][]>;
3263
+ ```
3264
+
3265
+ Creates an array of payload/hash tuples based on the payloads passed in
3266
+
3267
+ ### Type Parameters
3268
+
3269
+ #### T
3270
+
3271
+ `T` *extends* `Payload`
3272
+
3273
+ ### Parameters
3274
+
3275
+ #### payloads
3276
+
3277
+ `T`[]
3278
+
3279
+ ### Returns
3280
+
3281
+ `Promise`\<\[`T`, `BrandedHash`\][]\>
3282
+
3283
+ An array of payload/hash tuples
3284
+
3285
+ ### Inherited from
3286
+
3287
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`hashPairs`](BoundWitnessBuilder.md#hashpairs)
3288
+
3289
+ ***
3290
+
3291
+ ### hashableFields()
3292
+
3293
+ ```ts
3294
+ static hashableFields<T>(payload): WithoutStorageMeta<T>;
3295
+ ```
3296
+
3297
+ ### Type Parameters
3298
+
3299
+ #### T
3300
+
3301
+ `T` *extends* `Payload`
3302
+
3303
+ ### Parameters
3304
+
3305
+ #### payload
3306
+
3307
+ `T`
3308
+
3309
+ ### Returns
3310
+
3311
+ `WithoutStorageMeta`\<`T`\>
3312
+
3313
+ ### Inherited from
3314
+
3315
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`hashableFields`](BoundWitnessBuilder.md#hashablefields)
3316
+
3317
+ ***
3318
+
3319
+ ### hashes()
3320
+
3321
+ ### Call Signature
3322
+
3323
+ ```ts
3324
+ static hashes(payloads): Promise<undefined>;
3325
+ ```
3326
+
3327
+ #### Parameters
3328
+
3329
+ ##### payloads
3330
+
3331
+ `undefined`
3332
+
3333
+ #### Returns
3334
+
3335
+ `Promise`\<`undefined`\>
3336
+
3337
+ #### Inherited from
3338
+
3339
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`hashes`](BoundWitnessBuilder.md#hashes-1)
3340
+
3341
+ ### Call Signature
3342
+
3343
+ ```ts
3344
+ static hashes<T>(payloads): Promise<BrandedHash[]>;
3345
+ ```
3346
+
3347
+ #### Type Parameters
3348
+
3349
+ ##### T
3350
+
3351
+ `T` *extends* `Payload`
3352
+
3353
+ #### Parameters
3354
+
3355
+ ##### payloads
3356
+
3357
+ `T`[]
3358
+
3359
+ #### Returns
3360
+
3361
+ `Promise`\<`BrandedHash`[]\>
3362
+
3363
+ #### Inherited from
3364
+
3365
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`hashes`](BoundWitnessBuilder.md#hashes-1)
3366
+
3367
+ ***
3368
+
3369
+ ### omitClientMeta()
3370
+
3371
+ ### Call Signature
3372
+
3373
+ ```ts
3374
+ static omitClientMeta<T>(payloads, maxDepth?): WithoutClientMeta<T>[];
3375
+ ```
3376
+
3377
+ #### Type Parameters
3378
+
3379
+ ##### T
3380
+
3381
+ `T` *extends* `Payload`
3382
+
3383
+ #### Parameters
3384
+
3385
+ ##### payloads
3386
+
3387
+ `T`[]
3388
+
3389
+ ##### maxDepth?
3390
+
3391
+ `number`
3392
+
3393
+ #### Returns
3394
+
3395
+ `WithoutClientMeta`\<`T`\>[]
3396
+
3397
+ #### Inherited from
3398
+
3399
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitClientMeta`](BoundWitnessBuilder.md#omitclientmeta)
3400
+
3401
+ ### Call Signature
3402
+
3403
+ ```ts
3404
+ static omitClientMeta<T>(payloads, maxDepth?): WithoutClientMeta<T>[];
3405
+ ```
3406
+
3407
+ #### Type Parameters
3408
+
3409
+ ##### T
3410
+
3411
+ `T` *extends* `object`
3412
+
3413
+ #### Parameters
3414
+
3415
+ ##### payloads
3416
+
3417
+ `T`[]
3418
+
3419
+ ##### maxDepth?
3420
+
3421
+ `number`
3422
+
3423
+ #### Returns
3424
+
3425
+ `WithoutClientMeta`\<`T`\>[]
3426
+
3427
+ #### Inherited from
3428
+
3429
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitClientMeta`](BoundWitnessBuilder.md#omitclientmeta)
3430
+
3431
+ ### Call Signature
3432
+
3433
+ ```ts
3434
+ static omitClientMeta<T>(payload, maxDepth?): WithoutClientMeta<T>;
3435
+ ```
3436
+
3437
+ #### Type Parameters
3438
+
3439
+ ##### T
3440
+
3441
+ `T` *extends* `Payload`
3442
+
3443
+ #### Parameters
3444
+
3445
+ ##### payload
3446
+
3447
+ `T`
3448
+
3449
+ ##### maxDepth?
3450
+
3451
+ `number`
3452
+
3453
+ #### Returns
3454
+
3455
+ `WithoutClientMeta`\<`T`\>
3456
+
3457
+ #### Inherited from
3458
+
3459
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitClientMeta`](BoundWitnessBuilder.md#omitclientmeta)
3460
+
3461
+ ### Call Signature
3462
+
3463
+ ```ts
3464
+ static omitClientMeta<T>(payload, maxDepth?): WithoutClientMeta<T>;
3465
+ ```
3466
+
3467
+ #### Type Parameters
3468
+
3469
+ ##### T
3470
+
3471
+ `T` *extends* `object`
3472
+
3473
+ #### Parameters
3474
+
3475
+ ##### payload
3476
+
3477
+ `T`
3478
+
3479
+ ##### maxDepth?
3480
+
3481
+ `number`
3482
+
3483
+ #### Returns
3484
+
3485
+ `WithoutClientMeta`\<`T`\>
3486
+
3487
+ #### Inherited from
3488
+
3489
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitClientMeta`](BoundWitnessBuilder.md#omitclientmeta)
3490
+
3491
+ ***
3492
+
3493
+ ### omitMeta()
3494
+
3495
+ ### Call Signature
3496
+
3497
+ ```ts
3498
+ static omitMeta<T>(payloads, maxDepth?): WithoutMeta<T>[];
3499
+ ```
3500
+
3501
+ #### Type Parameters
3502
+
3503
+ ##### T
3504
+
3505
+ `T` *extends* `Payload`
3506
+
3507
+ #### Parameters
3508
+
3509
+ ##### payloads
3510
+
3511
+ `T`[]
3512
+
3513
+ ##### maxDepth?
3514
+
3515
+ `number`
3516
+
3517
+ #### Returns
3518
+
3519
+ `WithoutMeta`\<`T`\>[]
3520
+
3521
+ #### Inherited from
3522
+
3523
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitMeta`](BoundWitnessBuilder.md#omitmeta)
3524
+
3525
+ ### Call Signature
3526
+
3527
+ ```ts
3528
+ static omitMeta<T>(payloads, maxDepth?): WithoutMeta<T>[];
3529
+ ```
3530
+
3531
+ #### Type Parameters
3532
+
3533
+ ##### T
3534
+
3535
+ `T` *extends* `object`
3536
+
3537
+ #### Parameters
3538
+
3539
+ ##### payloads
3540
+
3541
+ `T`[]
3542
+
3543
+ ##### maxDepth?
3544
+
3545
+ `number`
3546
+
3547
+ #### Returns
3548
+
3549
+ `WithoutMeta`\<`T`\>[]
3550
+
3551
+ #### Inherited from
3552
+
3553
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitMeta`](BoundWitnessBuilder.md#omitmeta)
3554
+
3555
+ ### Call Signature
3556
+
3557
+ ```ts
3558
+ static omitMeta<T>(payload, maxDepth?): WithoutMeta<T>;
3559
+ ```
3560
+
3561
+ #### Type Parameters
3562
+
3563
+ ##### T
3564
+
3565
+ `T` *extends* `Payload`
3566
+
3567
+ #### Parameters
3568
+
3569
+ ##### payload
3570
+
3571
+ `T`
3572
+
3573
+ ##### maxDepth?
3574
+
3575
+ `number`
3576
+
3577
+ #### Returns
3578
+
3579
+ `WithoutMeta`\<`T`\>
3580
+
3581
+ #### Inherited from
3582
+
3583
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitMeta`](BoundWitnessBuilder.md#omitmeta)
3584
+
3585
+ ### Call Signature
3586
+
3587
+ ```ts
3588
+ static omitMeta<T>(payload, maxDepth?): WithoutMeta<T>;
3589
+ ```
3590
+
3591
+ #### Type Parameters
3592
+
3593
+ ##### T
3594
+
3595
+ `T` *extends* `object`
3596
+
3597
+ #### Parameters
3598
+
3599
+ ##### payload
3600
+
3601
+ `T`
3602
+
3603
+ ##### maxDepth?
3604
+
3605
+ `number`
3606
+
3607
+ #### Returns
3608
+
3609
+ `WithoutMeta`\<`T`\>
3610
+
3611
+ #### Inherited from
3612
+
3613
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitMeta`](BoundWitnessBuilder.md#omitmeta)
3614
+
3615
+ ***
3616
+
3617
+ ### omitPrivateStorageMeta()
3618
+
3619
+ ### Call Signature
3620
+
3621
+ ```ts
3622
+ static omitPrivateStorageMeta<T>(payloads, maxDepth?): WithoutPrivateStorageMeta<T>[];
3623
+ ```
3624
+
3625
+ #### Type Parameters
3626
+
3627
+ ##### T
3628
+
3629
+ `T` *extends* `Payload`
3630
+
3631
+ #### Parameters
3632
+
3633
+ ##### payloads
3634
+
3635
+ `T`[]
3636
+
3637
+ ##### maxDepth?
3638
+
3639
+ `number`
3640
+
3641
+ #### Returns
3642
+
3643
+ `WithoutPrivateStorageMeta`\<`T`\>[]
3644
+
3645
+ #### Inherited from
3646
+
3647
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitPrivateStorageMeta`](BoundWitnessBuilder.md#omitprivatestoragemeta)
3648
+
3649
+ ### Call Signature
3650
+
3651
+ ```ts
3652
+ static omitPrivateStorageMeta<T>(payloads, maxDepth?): WithoutPrivateStorageMeta<T>[];
3653
+ ```
3654
+
3655
+ #### Type Parameters
3656
+
3657
+ ##### T
3658
+
3659
+ `T` *extends* `object`
3660
+
3661
+ #### Parameters
3662
+
3663
+ ##### payloads
3664
+
3665
+ `T`[]
3666
+
3667
+ ##### maxDepth?
3668
+
3669
+ `number`
3670
+
3671
+ #### Returns
3672
+
3673
+ `WithoutPrivateStorageMeta`\<`T`\>[]
3674
+
3675
+ #### Inherited from
3676
+
3677
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitPrivateStorageMeta`](BoundWitnessBuilder.md#omitprivatestoragemeta)
3678
+
3679
+ ### Call Signature
3680
+
3681
+ ```ts
3682
+ static omitPrivateStorageMeta<T>(payload, maxDepth?): WithoutPrivateStorageMeta<T>;
3683
+ ```
3684
+
3685
+ #### Type Parameters
3686
+
3687
+ ##### T
3688
+
3689
+ `T` *extends* `Payload`
3690
+
3691
+ #### Parameters
3692
+
3693
+ ##### payload
3694
+
3695
+ `T`
3696
+
3697
+ ##### maxDepth?
3698
+
3699
+ `number`
3700
+
3701
+ #### Returns
3702
+
3703
+ `WithoutPrivateStorageMeta`\<`T`\>
3704
+
3705
+ #### Inherited from
3706
+
3707
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitPrivateStorageMeta`](BoundWitnessBuilder.md#omitprivatestoragemeta)
3708
+
3709
+ ### Call Signature
3710
+
3711
+ ```ts
3712
+ static omitPrivateStorageMeta<T>(payload, maxDepth?): WithoutPrivateStorageMeta<T>;
3713
+ ```
3714
+
3715
+ #### Type Parameters
3716
+
3717
+ ##### T
3718
+
3719
+ `T` *extends* `object`
3720
+
3721
+ #### Parameters
3722
+
3723
+ ##### payload
3724
+
3725
+ `T`
3726
+
3727
+ ##### maxDepth?
3728
+
3729
+ `number`
3730
+
3731
+ #### Returns
3732
+
3733
+ `WithoutPrivateStorageMeta`\<`T`\>
3734
+
3735
+ #### Inherited from
3736
+
3737
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitPrivateStorageMeta`](BoundWitnessBuilder.md#omitprivatestoragemeta)
3738
+
3739
+ ***
3740
+
3741
+ ### omitStorageMeta()
3742
+
3743
+ ### Call Signature
3744
+
3745
+ ```ts
3746
+ static omitStorageMeta<T>(payloads, maxDepth?): WithoutStorageMeta<T[number]>[];
3747
+ ```
3748
+
3749
+ #### Type Parameters
3750
+
3751
+ ##### T
3752
+
3753
+ `T` *extends* `object`[]
3754
+
3755
+ #### Parameters
3756
+
3757
+ ##### payloads
3758
+
3759
+ `T`
3760
+
3761
+ ##### maxDepth?
3762
+
3763
+ `number`
3764
+
3765
+ #### Returns
3766
+
3767
+ `WithoutStorageMeta`\<`T`\[`number`\]\>[]
3768
+
3769
+ #### Inherited from
3770
+
3771
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitStorageMeta`](BoundWitnessBuilder.md#omitstoragemeta)
3772
+
3773
+ ### Call Signature
3774
+
3775
+ ```ts
3776
+ static omitStorageMeta<T>(payloads, maxDepth?): WithoutStorageMeta<T[number]>[];
3777
+ ```
3778
+
3779
+ #### Type Parameters
3780
+
3781
+ ##### T
3782
+
3783
+ `T` *extends* `Payload`[]
3784
+
3785
+ #### Parameters
3786
+
3787
+ ##### payloads
3788
+
3789
+ `T`
3790
+
3791
+ ##### maxDepth?
3792
+
3793
+ `number`
3794
+
3795
+ #### Returns
3796
+
3797
+ `WithoutStorageMeta`\<`T`\[`number`\]\>[]
3798
+
3799
+ #### Inherited from
3800
+
3801
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitStorageMeta`](BoundWitnessBuilder.md#omitstoragemeta)
3802
+
3803
+ ### Call Signature
3804
+
3805
+ ```ts
3806
+ static omitStorageMeta<T>(payload, maxDepth?): WithoutStorageMeta<T>;
3807
+ ```
3808
+
3809
+ #### Type Parameters
3810
+
3811
+ ##### T
3812
+
3813
+ `T` *extends* `object`
3814
+
3815
+ #### Parameters
3816
+
3817
+ ##### payload
3818
+
3819
+ `T`
3820
+
3821
+ ##### maxDepth?
3822
+
3823
+ `number`
3824
+
3825
+ #### Returns
3826
+
3827
+ `WithoutStorageMeta`\<`T`\>
3828
+
3829
+ #### Inherited from
3830
+
3831
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitStorageMeta`](BoundWitnessBuilder.md#omitstoragemeta)
3832
+
3833
+ ### Call Signature
3834
+
3835
+ ```ts
3836
+ static omitStorageMeta<T>(payload, maxDepth?): WithoutStorageMeta<T>;
3837
+ ```
3838
+
3839
+ #### Type Parameters
3840
+
3841
+ ##### T
3842
+
3843
+ `T` *extends* `Payload`
3844
+
3845
+ #### Parameters
3846
+
3847
+ ##### payload
3848
+
3849
+ `T`
3850
+
3851
+ ##### maxDepth?
3852
+
3853
+ `number`
3854
+
3855
+ #### Returns
3856
+
3857
+ `WithoutStorageMeta`\<`T`\>
3858
+
3859
+ #### Inherited from
3860
+
3861
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`omitStorageMeta`](BoundWitnessBuilder.md#omitstoragemeta)
3862
+
3863
+ ***
3864
+
3865
+ ### pickClientMeta()
3866
+
3867
+ ### Call Signature
3868
+
3869
+ ```ts
3870
+ static pickClientMeta<T>(payloads, maxDepth?): WithOnlyClientMeta<T>[];
3871
+ ```
3872
+
3873
+ #### Type Parameters
3874
+
3875
+ ##### T
3876
+
3877
+ `T` *extends* `Payload`
3878
+
3879
+ #### Parameters
3880
+
3881
+ ##### payloads
3882
+
3883
+ `T`[]
3884
+
3885
+ ##### maxDepth?
3886
+
3887
+ `number`
3888
+
3889
+ #### Returns
3890
+
3891
+ `WithOnlyClientMeta`\<`T`\>[]
3892
+
3893
+ #### Inherited from
3894
+
3895
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`pickClientMeta`](BoundWitnessBuilder.md#pickclientmeta)
3896
+
3897
+ ### Call Signature
3898
+
3899
+ ```ts
3900
+ static pickClientMeta<T>(payload, maxDepth?): WithOnlyClientMeta<T>;
3901
+ ```
3902
+
3903
+ #### Type Parameters
3904
+
3905
+ ##### T
3906
+
3907
+ `T` *extends* `Payload`
3908
+
3909
+ #### Parameters
3910
+
3911
+ ##### payload
3912
+
3913
+ `T`
3914
+
3915
+ ##### maxDepth?
3916
+
3917
+ `number`
3918
+
3919
+ #### Returns
3920
+
3921
+ `WithOnlyClientMeta`\<`T`\>
3922
+
3923
+ #### Inherited from
3924
+
3925
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`pickClientMeta`](BoundWitnessBuilder.md#pickclientmeta)
3926
+
3927
+ ***
3928
+
3929
+ ### sortByStorageMeta()
3930
+
3931
+ ```ts
3932
+ static sortByStorageMeta<T>(
3933
+ payloads,
3934
+ direction?,
3935
+ comparer?): WithStorageMeta<T>[];
3936
+ ```
3937
+
3938
+ ### Type Parameters
3939
+
3940
+ #### T
3941
+
3942
+ `T` *extends* `Payload`
3943
+
3944
+ ### Parameters
3945
+
3946
+ #### payloads
3947
+
3948
+ `WithStorageMeta`\<`T`\>[]
3949
+
3950
+ #### direction?
3951
+
3952
+ `1` \| `-1`
3953
+
3954
+ #### comparer?
3955
+
3956
+ `Compare`\<`Sequence`\>
3957
+
3958
+ ### Returns
3959
+
3960
+ `WithStorageMeta`\<`T`\>[]
3961
+
3962
+ ### Inherited from
3963
+
3964
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`sortByStorageMeta`](BoundWitnessBuilder.md#sortbystoragemeta)
3965
+
3966
+ ***
3967
+
3968
+ ### toAllHashMap()
3969
+
3970
+ ```ts
3971
+ static toAllHashMap<T>(payloads): Promise<Record<BrandedHash, T>>;
3972
+ ```
3973
+
3974
+ ### Type Parameters
3975
+
3976
+ #### T
3977
+
3978
+ `T` *extends* `Payload`
3979
+
3980
+ ### Parameters
3981
+
3982
+ #### payloads
3983
+
3984
+ `T`[]
3985
+
3986
+ ### Returns
3987
+
3988
+ `Promise`\<`Record`\<`BrandedHash`, `T`\>\>
3989
+
3990
+ ### Inherited from
3991
+
3992
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`toAllHashMap`](BoundWitnessBuilder.md#toallhashmap)
3993
+
3994
+ ***
3995
+
3996
+ ### toDataHashMap()
3997
+
3998
+ ```ts
3999
+ static toDataHashMap<T>(objs): Promise<Record<BrandedHash, T>>;
4000
+ ```
4001
+
4002
+ ### Type Parameters
4003
+
4004
+ #### T
4005
+
4006
+ `T` *extends* `Payload`
4007
+
4008
+ ### Parameters
4009
+
4010
+ #### objs
4011
+
4012
+ `T`[]
4013
+
4014
+ ### Returns
4015
+
4016
+ `Promise`\<`Record`\<`BrandedHash`, `T`\>\>
4017
+
4018
+ ### Inherited from
4019
+
4020
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`toDataHashMap`](BoundWitnessBuilder.md#todatahashmap)
4021
+
4022
+ ***
4023
+
4024
+ ### toHashMap()
4025
+
4026
+ ```ts
4027
+ static toHashMap<T>(objs): Promise<Record<BrandedHash, T>>;
4028
+ ```
4029
+
4030
+ Creates an object map of payload hashes to payloads based on the payloads passed in
4031
+
4032
+ ### Type Parameters
4033
+
4034
+ #### T
4035
+
4036
+ `T` *extends* `Payload`
4037
+
4038
+ ### Parameters
4039
+
4040
+ #### objs
4041
+
4042
+ `T`[]
4043
+
4044
+ Any array of payloads
4045
+
4046
+ ### Returns
4047
+
4048
+ `Promise`\<`Record`\<`BrandedHash`, `T`\>\>
4049
+
4050
+ A map of hashes to payloads
4051
+
4052
+ ### Inherited from
4053
+
4054
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`toHashMap`](BoundWitnessBuilder.md#tohashmap)
4055
+
4056
+ ***
4057
+
4058
+ ### meta()
4059
+
4060
+ ```ts
4061
+ meta(meta): this;
4062
+ ```
4063
+
4064
+ ### Parameters
4065
+
4066
+ #### meta
4067
+
4068
+ `DeepPickStartsWith`\<`TBoundWitness`\>
4069
+
4070
+ ### Returns
4071
+
4072
+ `this`
4073
+
4074
+ ### Inherited from
4075
+
4076
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`meta`](BoundWitnessBuilder.md#meta)
4077
+
4078
+ ***
4079
+
4080
+ ### schema()
4081
+
4082
+ ```ts
4083
+ schema(value): void;
4084
+ ```
4085
+
4086
+ ### Parameters
4087
+
4088
+ #### value
4089
+
4090
+ `Schema`
4091
+
4092
+ ### Returns
4093
+
4094
+ `void`
4095
+
4096
+ ### Inherited from
18
4097
 
19
- ## Credits
4098
+ [`BoundWitnessBuilder`](#BoundWitnessBuilder).[`schema`](BoundWitnessBuilder.md#schema)
20
4099
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
4100
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
4101
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
4102
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/boundwitness-builder.svg
4103
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/boundwitness-builder
4104
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/boundwitness-builder.svg
4105
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE