@xyo-network/core 5.3.30 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1962
- package/package.json +15 -19
package/README.md
CHANGED
|
@@ -38,1968 +38,6 @@ bun add {{name}}
|
|
|
38
38
|
|
|
39
39
|
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
40
|
|
|
41
|
-
## Reference
|
|
42
|
-
|
|
43
|
-
### packages
|
|
44
|
-
|
|
45
|
-
### protocol
|
|
46
|
-
|
|
47
|
-
### packages
|
|
48
|
-
|
|
49
|
-
### core
|
|
50
|
-
|
|
51
|
-
### .temp-typedoc
|
|
52
|
-
|
|
53
|
-
### classes
|
|
54
|
-
|
|
55
|
-
### <a id="AbstractData"></a>AbstractData
|
|
56
|
-
|
|
57
|
-
[**@xyo-network/core**](#../README)
|
|
58
|
-
|
|
59
|
-
***
|
|
60
|
-
|
|
61
|
-
## Extended by
|
|
62
|
-
|
|
63
|
-
- [`Data`](#Data)
|
|
64
|
-
|
|
65
|
-
## Implements
|
|
66
|
-
|
|
67
|
-
- [`DataInstance`](#../interfaces/DataInstance)
|
|
68
|
-
|
|
69
|
-
## Constructors
|
|
70
|
-
|
|
71
|
-
### Constructor
|
|
72
|
-
|
|
73
|
-
```ts
|
|
74
|
-
new AbstractData(): AbstractData;
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### Returns
|
|
78
|
-
|
|
79
|
-
`AbstractData`
|
|
80
|
-
|
|
81
|
-
## Accessors
|
|
82
|
-
|
|
83
|
-
### length
|
|
84
|
-
|
|
85
|
-
### Get Signature
|
|
86
|
-
|
|
87
|
-
```ts
|
|
88
|
-
get length(): number;
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
#### Returns
|
|
92
|
-
|
|
93
|
-
`number`
|
|
94
|
-
|
|
95
|
-
***
|
|
96
|
-
|
|
97
|
-
### base58
|
|
98
|
-
|
|
99
|
-
### Get Signature
|
|
100
|
-
|
|
101
|
-
```ts
|
|
102
|
-
get abstract base58(): string;
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
#### Returns
|
|
106
|
-
|
|
107
|
-
`string`
|
|
108
|
-
|
|
109
|
-
### Implementation of
|
|
110
|
-
|
|
111
|
-
[`DataInstance`](#../interfaces/DataInstance).[`base58`](../interfaces/DataInstance.md#base58)
|
|
112
|
-
|
|
113
|
-
***
|
|
114
|
-
|
|
115
|
-
### bytes
|
|
116
|
-
|
|
117
|
-
### Get Signature
|
|
118
|
-
|
|
119
|
-
```ts
|
|
120
|
-
get abstract bytes(): ArrayBufferLike;
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
#### Returns
|
|
124
|
-
|
|
125
|
-
`ArrayBufferLike`
|
|
126
|
-
|
|
127
|
-
### Implementation of
|
|
128
|
-
|
|
129
|
-
[`DataInstance`](#../interfaces/DataInstance).[`bytes`](../interfaces/DataInstance.md#bytes)
|
|
130
|
-
|
|
131
|
-
***
|
|
132
|
-
|
|
133
|
-
### hex
|
|
134
|
-
|
|
135
|
-
### Get Signature
|
|
136
|
-
|
|
137
|
-
```ts
|
|
138
|
-
get abstract hex(): BrandedHex;
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
#### Returns
|
|
142
|
-
|
|
143
|
-
`BrandedHex`
|
|
144
|
-
|
|
145
|
-
### Implementation of
|
|
146
|
-
|
|
147
|
-
[`DataInstance`](#../interfaces/DataInstance).[`hex`](../interfaces/DataInstance.md#hex)
|
|
148
|
-
|
|
149
|
-
***
|
|
150
|
-
|
|
151
|
-
### keccak256
|
|
152
|
-
|
|
153
|
-
### Get Signature
|
|
154
|
-
|
|
155
|
-
```ts
|
|
156
|
-
get abstract keccak256(): ArrayBufferLike;
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
#### Returns
|
|
160
|
-
|
|
161
|
-
`ArrayBufferLike`
|
|
162
|
-
|
|
163
|
-
### Implementation of
|
|
164
|
-
|
|
165
|
-
[`DataInstance`](#../interfaces/DataInstance).[`keccak256`](../interfaces/DataInstance.md#keccak256)
|
|
166
|
-
|
|
167
|
-
## Methods
|
|
168
|
-
|
|
169
|
-
### is()
|
|
170
|
-
|
|
171
|
-
```ts
|
|
172
|
-
static is(value): value is AbstractData;
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
### Parameters
|
|
176
|
-
|
|
177
|
-
#### value
|
|
178
|
-
|
|
179
|
-
`unknown`
|
|
180
|
-
|
|
181
|
-
### Returns
|
|
182
|
-
|
|
183
|
-
`value is AbstractData`
|
|
184
|
-
|
|
185
|
-
### <a id="Data"></a>Data
|
|
186
|
-
|
|
187
|
-
[**@xyo-network/core**](#../README)
|
|
188
|
-
|
|
189
|
-
***
|
|
190
|
-
|
|
191
|
-
## Extends
|
|
192
|
-
|
|
193
|
-
- [`AbstractData`](#AbstractData)
|
|
194
|
-
|
|
195
|
-
## Constructors
|
|
196
|
-
|
|
197
|
-
### Constructor
|
|
198
|
-
|
|
199
|
-
```ts
|
|
200
|
-
new Data(
|
|
201
|
-
length,
|
|
202
|
-
bytes?,
|
|
203
|
-
base?): Data;
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
### Parameters
|
|
207
|
-
|
|
208
|
-
#### length
|
|
209
|
-
|
|
210
|
-
`number`
|
|
211
|
-
|
|
212
|
-
#### bytes?
|
|
213
|
-
|
|
214
|
-
`ArrayBufferLike`
|
|
215
|
-
|
|
216
|
-
#### base?
|
|
217
|
-
|
|
218
|
-
`number`
|
|
219
|
-
|
|
220
|
-
### Returns
|
|
221
|
-
|
|
222
|
-
`Data`
|
|
223
|
-
|
|
224
|
-
### Overrides
|
|
225
|
-
|
|
226
|
-
[`AbstractData`](#AbstractData).[`constructor`](AbstractData.md#constructor)
|
|
227
|
-
|
|
228
|
-
## Accessors
|
|
229
|
-
|
|
230
|
-
### length
|
|
231
|
-
|
|
232
|
-
### Get Signature
|
|
233
|
-
|
|
234
|
-
```ts
|
|
235
|
-
get length(): number;
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
#### Returns
|
|
239
|
-
|
|
240
|
-
`number`
|
|
241
|
-
|
|
242
|
-
### Inherited from
|
|
243
|
-
|
|
244
|
-
[`AbstractData`](#AbstractData).[`length`](AbstractData.md#length)
|
|
245
|
-
|
|
246
|
-
***
|
|
247
|
-
|
|
248
|
-
### base58
|
|
249
|
-
|
|
250
|
-
### Get Signature
|
|
251
|
-
|
|
252
|
-
```ts
|
|
253
|
-
get base58(): string;
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
#### Returns
|
|
257
|
-
|
|
258
|
-
`string`
|
|
259
|
-
|
|
260
|
-
### Overrides
|
|
261
|
-
|
|
262
|
-
[`AbstractData`](#AbstractData).[`base58`](AbstractData.md#base58)
|
|
263
|
-
|
|
264
|
-
***
|
|
265
|
-
|
|
266
|
-
### bytes
|
|
267
|
-
|
|
268
|
-
### Get Signature
|
|
269
|
-
|
|
270
|
-
```ts
|
|
271
|
-
get bytes(): ArrayBuffer | SharedArrayBuffer;
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
#### Returns
|
|
275
|
-
|
|
276
|
-
`ArrayBuffer` \| `SharedArrayBuffer`
|
|
277
|
-
|
|
278
|
-
### Overrides
|
|
279
|
-
|
|
280
|
-
[`AbstractData`](#AbstractData).[`bytes`](AbstractData.md#bytes)
|
|
281
|
-
|
|
282
|
-
***
|
|
283
|
-
|
|
284
|
-
### hex
|
|
285
|
-
|
|
286
|
-
### Get Signature
|
|
287
|
-
|
|
288
|
-
```ts
|
|
289
|
-
get hex(): BrandedHex;
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
#### Returns
|
|
293
|
-
|
|
294
|
-
`BrandedHex`
|
|
295
|
-
|
|
296
|
-
### Overrides
|
|
297
|
-
|
|
298
|
-
[`AbstractData`](#AbstractData).[`hex`](AbstractData.md#hex)
|
|
299
|
-
|
|
300
|
-
***
|
|
301
|
-
|
|
302
|
-
### keccak256
|
|
303
|
-
|
|
304
|
-
### Get Signature
|
|
305
|
-
|
|
306
|
-
```ts
|
|
307
|
-
get keccak256(): ArrayBufferLike;
|
|
308
|
-
```
|
|
309
|
-
|
|
310
|
-
#### Returns
|
|
311
|
-
|
|
312
|
-
`ArrayBufferLike`
|
|
313
|
-
|
|
314
|
-
### Overrides
|
|
315
|
-
|
|
316
|
-
[`AbstractData`](#AbstractData).[`keccak256`](AbstractData.md#keccak256)
|
|
317
|
-
|
|
318
|
-
## Methods
|
|
319
|
-
|
|
320
|
-
### is()
|
|
321
|
-
|
|
322
|
-
```ts
|
|
323
|
-
static is(value): value is AbstractData;
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
### Parameters
|
|
327
|
-
|
|
328
|
-
#### value
|
|
329
|
-
|
|
330
|
-
`unknown`
|
|
331
|
-
|
|
332
|
-
### Returns
|
|
333
|
-
|
|
334
|
-
`value is AbstractData`
|
|
335
|
-
|
|
336
|
-
### Inherited from
|
|
337
|
-
|
|
338
|
-
[`AbstractData`](#AbstractData).[`is`](AbstractData.md#is)
|
|
339
|
-
|
|
340
|
-
***
|
|
341
|
-
|
|
342
|
-
### from()
|
|
343
|
-
|
|
344
|
-
```ts
|
|
345
|
-
static from(data): Data | undefined;
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
### Parameters
|
|
349
|
-
|
|
350
|
-
#### data
|
|
351
|
-
|
|
352
|
-
`ArrayBuffer` \| `undefined`
|
|
353
|
-
|
|
354
|
-
### Returns
|
|
355
|
-
|
|
356
|
-
`Data` \| `undefined`
|
|
357
|
-
|
|
358
|
-
### <a id="ObjectHasher"></a>ObjectHasher
|
|
359
|
-
|
|
360
|
-
[**@xyo-network/core**](#../README)
|
|
361
|
-
|
|
362
|
-
***
|
|
363
|
-
|
|
364
|
-
## Extends
|
|
365
|
-
|
|
366
|
-
- `ObjectHasher`\<`T`\>
|
|
367
|
-
|
|
368
|
-
## Type Parameters
|
|
369
|
-
|
|
370
|
-
### T
|
|
371
|
-
|
|
372
|
-
`T` *extends* `EmptyObject` = `EmptyObject`
|
|
373
|
-
|
|
374
|
-
## Constructors
|
|
375
|
-
|
|
376
|
-
### Constructor
|
|
377
|
-
|
|
378
|
-
```ts
|
|
379
|
-
new ObjectHasher<T>(obj): NodeObjectHasher<T>;
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
### Parameters
|
|
383
|
-
|
|
384
|
-
#### obj
|
|
385
|
-
|
|
386
|
-
`T`
|
|
387
|
-
|
|
388
|
-
### Returns
|
|
389
|
-
|
|
390
|
-
`NodeObjectHasher`\<`T`\>
|
|
391
|
-
|
|
392
|
-
### Inherited from
|
|
393
|
-
|
|
394
|
-
```ts
|
|
395
|
-
ObjectHasher<T>.constructor
|
|
396
|
-
```
|
|
397
|
-
|
|
398
|
-
## Properties
|
|
399
|
-
|
|
400
|
-
### createNodeWorker
|
|
401
|
-
|
|
402
|
-
```ts
|
|
403
|
-
readonly static createNodeWorker: (func?) => Worker;
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
### Parameters
|
|
407
|
-
|
|
408
|
-
#### func?
|
|
409
|
-
|
|
410
|
-
() => `unknown`
|
|
411
|
-
|
|
412
|
-
### Returns
|
|
413
|
-
|
|
414
|
-
`Worker`
|
|
415
|
-
|
|
416
|
-
### Overrides
|
|
417
|
-
|
|
418
|
-
```ts
|
|
419
|
-
ObjectHasher.createNodeWorker
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
***
|
|
423
|
-
|
|
424
|
-
### allowHashPooling
|
|
425
|
-
|
|
426
|
-
```ts
|
|
427
|
-
static allowHashPooling: boolean;
|
|
428
|
-
```
|
|
429
|
-
|
|
430
|
-
### Inherited from
|
|
431
|
-
|
|
432
|
-
```ts
|
|
433
|
-
ObjectHasher.allowHashPooling
|
|
434
|
-
```
|
|
435
|
-
|
|
436
|
-
***
|
|
437
|
-
|
|
438
|
-
### allowSubtle
|
|
439
|
-
|
|
440
|
-
```ts
|
|
441
|
-
static allowSubtle: boolean;
|
|
442
|
-
```
|
|
443
|
-
|
|
444
|
-
### Inherited from
|
|
445
|
-
|
|
446
|
-
```ts
|
|
447
|
-
ObjectHasher.allowSubtle
|
|
448
|
-
```
|
|
449
|
-
|
|
450
|
-
***
|
|
451
|
-
|
|
452
|
-
### createBrowserWorker?
|
|
453
|
-
|
|
454
|
-
```ts
|
|
455
|
-
static optional createBrowserWorker?: (url?) => Worker | undefined;
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
### Parameters
|
|
459
|
-
|
|
460
|
-
#### url?
|
|
461
|
-
|
|
462
|
-
`URL`
|
|
463
|
-
|
|
464
|
-
### Returns
|
|
465
|
-
|
|
466
|
-
`Worker` \| `undefined`
|
|
467
|
-
|
|
468
|
-
### Inherited from
|
|
469
|
-
|
|
470
|
-
```ts
|
|
471
|
-
ObjectHasher.createBrowserWorker
|
|
472
|
-
```
|
|
473
|
-
|
|
474
|
-
***
|
|
475
|
-
|
|
476
|
-
### subtleHashWorkerUrl?
|
|
477
|
-
|
|
478
|
-
```ts
|
|
479
|
-
readonly static optional subtleHashWorkerUrl?: URL;
|
|
480
|
-
```
|
|
481
|
-
|
|
482
|
-
### Inherited from
|
|
483
|
-
|
|
484
|
-
```ts
|
|
485
|
-
ObjectHasher.subtleHashWorkerUrl
|
|
486
|
-
```
|
|
487
|
-
|
|
488
|
-
***
|
|
489
|
-
|
|
490
|
-
### warnIfUsingJsHash
|
|
491
|
-
|
|
492
|
-
```ts
|
|
493
|
-
static warnIfUsingJsHash: boolean;
|
|
494
|
-
```
|
|
495
|
-
|
|
496
|
-
### Inherited from
|
|
497
|
-
|
|
498
|
-
```ts
|
|
499
|
-
ObjectHasher.warnIfUsingJsHash
|
|
500
|
-
```
|
|
501
|
-
|
|
502
|
-
***
|
|
503
|
-
|
|
504
|
-
### wasmHashWorkerUrl?
|
|
505
|
-
|
|
506
|
-
```ts
|
|
507
|
-
readonly static optional wasmHashWorkerUrl?: URL;
|
|
508
|
-
```
|
|
509
|
-
|
|
510
|
-
### Inherited from
|
|
511
|
-
|
|
512
|
-
```ts
|
|
513
|
-
ObjectHasher.wasmHashWorkerUrl
|
|
514
|
-
```
|
|
515
|
-
|
|
516
|
-
***
|
|
517
|
-
|
|
518
|
-
### wasmInitialized
|
|
519
|
-
|
|
520
|
-
```ts
|
|
521
|
-
readonly static wasmInitialized: Promise<void>;
|
|
522
|
-
```
|
|
523
|
-
|
|
524
|
-
### Inherited from
|
|
525
|
-
|
|
526
|
-
```ts
|
|
527
|
-
ObjectHasher.wasmInitialized
|
|
528
|
-
```
|
|
529
|
-
|
|
530
|
-
***
|
|
531
|
-
|
|
532
|
-
### wasmSupport
|
|
533
|
-
|
|
534
|
-
```ts
|
|
535
|
-
readonly static wasmSupport: WasmSupport;
|
|
536
|
-
```
|
|
537
|
-
|
|
538
|
-
### Inherited from
|
|
539
|
-
|
|
540
|
-
```ts
|
|
541
|
-
ObjectHasher.wasmSupport
|
|
542
|
-
```
|
|
543
|
-
|
|
544
|
-
## Methods
|
|
545
|
-
|
|
546
|
-
### createWorker()
|
|
547
|
-
|
|
548
|
-
```ts
|
|
549
|
-
static createWorker(url?, func?): Worker;
|
|
550
|
-
```
|
|
551
|
-
|
|
552
|
-
### Parameters
|
|
553
|
-
|
|
554
|
-
#### url?
|
|
555
|
-
|
|
556
|
-
`URL`
|
|
557
|
-
|
|
558
|
-
#### func?
|
|
559
|
-
|
|
560
|
-
() => `unknown`
|
|
561
|
-
|
|
562
|
-
### Returns
|
|
563
|
-
|
|
564
|
-
`Worker`
|
|
565
|
-
|
|
566
|
-
### Inherited from
|
|
567
|
-
|
|
568
|
-
```ts
|
|
569
|
-
ObjectHasher.createWorker
|
|
570
|
-
```
|
|
571
|
-
|
|
572
|
-
***
|
|
573
|
-
|
|
574
|
-
### filterExcludeByHash()
|
|
575
|
-
|
|
576
|
-
```ts
|
|
577
|
-
static filterExcludeByHash<T>(objs, hash): Promise<T[]>;
|
|
578
|
-
```
|
|
579
|
-
|
|
580
|
-
### Type Parameters
|
|
581
|
-
|
|
582
|
-
#### T
|
|
583
|
-
|
|
584
|
-
`T` *extends* `object`
|
|
585
|
-
|
|
586
|
-
### Parameters
|
|
587
|
-
|
|
588
|
-
#### objs
|
|
589
|
-
|
|
590
|
-
`T`[] \| `undefined`
|
|
591
|
-
|
|
592
|
-
#### hash
|
|
593
|
-
|
|
594
|
-
`BrandedHash` \| `BrandedHash`[]
|
|
595
|
-
|
|
596
|
-
### Returns
|
|
597
|
-
|
|
598
|
-
`Promise`\<`T`[]\>
|
|
599
|
-
|
|
600
|
-
### Inherited from
|
|
601
|
-
|
|
602
|
-
```ts
|
|
603
|
-
ObjectHasher.filterExcludeByHash
|
|
604
|
-
```
|
|
605
|
-
|
|
606
|
-
***
|
|
607
|
-
|
|
608
|
-
### filterIncludeByHash()
|
|
609
|
-
|
|
610
|
-
```ts
|
|
611
|
-
static filterIncludeByHash<T>(objs, hash): Promise<T[]>;
|
|
612
|
-
```
|
|
613
|
-
|
|
614
|
-
### Type Parameters
|
|
615
|
-
|
|
616
|
-
#### T
|
|
617
|
-
|
|
618
|
-
`T` *extends* `object`
|
|
619
|
-
|
|
620
|
-
### Parameters
|
|
621
|
-
|
|
622
|
-
#### objs
|
|
623
|
-
|
|
624
|
-
`T`[] \| `undefined`
|
|
625
|
-
|
|
626
|
-
#### hash
|
|
627
|
-
|
|
628
|
-
`BrandedHash` \| `BrandedHash`[]
|
|
629
|
-
|
|
630
|
-
### Returns
|
|
631
|
-
|
|
632
|
-
`Promise`\<`T`[]\>
|
|
633
|
-
|
|
634
|
-
### Inherited from
|
|
635
|
-
|
|
636
|
-
```ts
|
|
637
|
-
ObjectHasher.filterIncludeByHash
|
|
638
|
-
```
|
|
639
|
-
|
|
640
|
-
***
|
|
641
|
-
|
|
642
|
-
### findByHash()
|
|
643
|
-
|
|
644
|
-
```ts
|
|
645
|
-
static findByHash<T>(objs, hash): Promise<T | undefined>;
|
|
646
|
-
```
|
|
647
|
-
|
|
648
|
-
### Type Parameters
|
|
649
|
-
|
|
650
|
-
#### T
|
|
651
|
-
|
|
652
|
-
`T` *extends* `object`
|
|
653
|
-
|
|
654
|
-
### Parameters
|
|
655
|
-
|
|
656
|
-
#### objs
|
|
657
|
-
|
|
658
|
-
`T`[] \| `undefined`
|
|
659
|
-
|
|
660
|
-
#### hash
|
|
661
|
-
|
|
662
|
-
`BrandedHash`
|
|
663
|
-
|
|
664
|
-
### Returns
|
|
665
|
-
|
|
666
|
-
`Promise`\<`T` \| `undefined`\>
|
|
667
|
-
|
|
668
|
-
### Inherited from
|
|
669
|
-
|
|
670
|
-
```ts
|
|
671
|
-
ObjectHasher.findByHash
|
|
672
|
-
```
|
|
673
|
-
|
|
674
|
-
***
|
|
675
|
-
|
|
676
|
-
### hash()
|
|
677
|
-
|
|
678
|
-
```ts
|
|
679
|
-
static hash<T>(obj): Promise<BrandedHash>;
|
|
680
|
-
```
|
|
681
|
-
|
|
682
|
-
Asynchronously hashes a payload
|
|
683
|
-
|
|
684
|
-
### Type Parameters
|
|
685
|
-
|
|
686
|
-
#### T
|
|
687
|
-
|
|
688
|
-
`T` *extends* `object`
|
|
689
|
-
|
|
690
|
-
### Parameters
|
|
691
|
-
|
|
692
|
-
#### obj
|
|
693
|
-
|
|
694
|
-
`T`
|
|
695
|
-
|
|
696
|
-
A payload
|
|
697
|
-
|
|
698
|
-
### Returns
|
|
699
|
-
|
|
700
|
-
`Promise`\<`BrandedHash`\>
|
|
701
|
-
|
|
702
|
-
The payload hash
|
|
703
|
-
|
|
704
|
-
### Inherited from
|
|
705
|
-
|
|
706
|
-
```ts
|
|
707
|
-
ObjectHasher.hash
|
|
708
|
-
```
|
|
709
|
-
|
|
710
|
-
***
|
|
711
|
-
|
|
712
|
-
### hashBytes()
|
|
713
|
-
|
|
714
|
-
```ts
|
|
715
|
-
static hashBytes(bytes): Promise<BrandedHash>;
|
|
716
|
-
```
|
|
717
|
-
|
|
718
|
-
### Parameters
|
|
719
|
-
|
|
720
|
-
#### bytes
|
|
721
|
-
|
|
722
|
-
`ArrayBuffer` \| `Uint8Array`\<`ArrayBufferLike`\>
|
|
723
|
-
|
|
724
|
-
### Returns
|
|
725
|
-
|
|
726
|
-
`Promise`\<`BrandedHash`\>
|
|
727
|
-
|
|
728
|
-
### Inherited from
|
|
729
|
-
|
|
730
|
-
```ts
|
|
731
|
-
ObjectHasher.hashBytes
|
|
732
|
-
```
|
|
733
|
-
|
|
734
|
-
***
|
|
735
|
-
|
|
736
|
-
### hashFields()
|
|
737
|
-
|
|
738
|
-
```ts
|
|
739
|
-
static hashFields<T>(obj): T;
|
|
740
|
-
```
|
|
741
|
-
|
|
742
|
-
### Type Parameters
|
|
743
|
-
|
|
744
|
-
#### T
|
|
745
|
-
|
|
746
|
-
`T` *extends* `object`
|
|
747
|
-
|
|
748
|
-
### Parameters
|
|
749
|
-
|
|
750
|
-
#### obj
|
|
751
|
-
|
|
752
|
-
`T`
|
|
753
|
-
|
|
754
|
-
### Returns
|
|
755
|
-
|
|
756
|
-
`T`
|
|
757
|
-
|
|
758
|
-
### Inherited from
|
|
759
|
-
|
|
760
|
-
```ts
|
|
761
|
-
ObjectHasher.hashFields
|
|
762
|
-
```
|
|
763
|
-
|
|
764
|
-
***
|
|
765
|
-
|
|
766
|
-
### hashPairs()
|
|
767
|
-
|
|
768
|
-
```ts
|
|
769
|
-
static hashPairs<T>(objs): Promise<[T, BrandedHash][]>;
|
|
770
|
-
```
|
|
771
|
-
|
|
772
|
-
Creates an array of payload/hash tuples based on the payloads passed in
|
|
773
|
-
|
|
774
|
-
### Type Parameters
|
|
775
|
-
|
|
776
|
-
#### T
|
|
777
|
-
|
|
778
|
-
`T` *extends* `object`
|
|
779
|
-
|
|
780
|
-
### Parameters
|
|
781
|
-
|
|
782
|
-
#### objs
|
|
783
|
-
|
|
784
|
-
`T`[]
|
|
785
|
-
|
|
786
|
-
Any array of payloads
|
|
787
|
-
|
|
788
|
-
### Returns
|
|
789
|
-
|
|
790
|
-
`Promise`\<\[`T`, `BrandedHash`\][]\>
|
|
791
|
-
|
|
792
|
-
An array of payload/hash tuples
|
|
793
|
-
|
|
794
|
-
### Inherited from
|
|
795
|
-
|
|
796
|
-
```ts
|
|
797
|
-
ObjectHasher.hashPairs
|
|
798
|
-
```
|
|
799
|
-
|
|
800
|
-
***
|
|
801
|
-
|
|
802
|
-
### hashes()
|
|
803
|
-
|
|
804
|
-
```ts
|
|
805
|
-
static hashes<T>(objs?): Promise<BrandedHash[] | undefined>;
|
|
806
|
-
```
|
|
807
|
-
|
|
808
|
-
Creates an array of payload hashes based on the payloads passed in
|
|
809
|
-
|
|
810
|
-
### Type Parameters
|
|
811
|
-
|
|
812
|
-
#### T
|
|
813
|
-
|
|
814
|
-
`T` *extends* `object`
|
|
815
|
-
|
|
816
|
-
### Parameters
|
|
817
|
-
|
|
818
|
-
#### objs?
|
|
819
|
-
|
|
820
|
-
`T`[]
|
|
821
|
-
|
|
822
|
-
Any array of payloads
|
|
823
|
-
|
|
824
|
-
### Returns
|
|
825
|
-
|
|
826
|
-
`Promise`\<`BrandedHash`[] \| `undefined`\>
|
|
827
|
-
|
|
828
|
-
An array of payload hashes
|
|
829
|
-
|
|
830
|
-
### Inherited from
|
|
831
|
-
|
|
832
|
-
```ts
|
|
833
|
-
ObjectHasher.hashes
|
|
834
|
-
```
|
|
835
|
-
|
|
836
|
-
***
|
|
837
|
-
|
|
838
|
-
### json()
|
|
839
|
-
|
|
840
|
-
```ts
|
|
841
|
-
static json<T>(payload, meta?): T;
|
|
842
|
-
```
|
|
843
|
-
|
|
844
|
-
Returns a clone of the payload that is JSON safe
|
|
845
|
-
|
|
846
|
-
### Type Parameters
|
|
847
|
-
|
|
848
|
-
#### T
|
|
849
|
-
|
|
850
|
-
`T` *extends* `object`
|
|
851
|
-
|
|
852
|
-
### Parameters
|
|
853
|
-
|
|
854
|
-
#### payload
|
|
855
|
-
|
|
856
|
-
`T`
|
|
857
|
-
|
|
858
|
-
#### meta?
|
|
859
|
-
|
|
860
|
-
`boolean`
|
|
861
|
-
|
|
862
|
-
Keeps underscore (meta) fields if set to true
|
|
863
|
-
|
|
864
|
-
### Returns
|
|
865
|
-
|
|
866
|
-
`T`
|
|
867
|
-
|
|
868
|
-
Returns a clone of the payload that is JSON safe
|
|
869
|
-
|
|
870
|
-
### Inherited from
|
|
871
|
-
|
|
872
|
-
```ts
|
|
873
|
-
ObjectHasher.json
|
|
874
|
-
```
|
|
875
|
-
|
|
876
|
-
***
|
|
877
|
-
|
|
878
|
-
### ~~jsonPayload()~~
|
|
879
|
-
|
|
880
|
-
```ts
|
|
881
|
-
static jsonPayload<T>(payload, meta?): T;
|
|
882
|
-
```
|
|
883
|
-
|
|
884
|
-
### Type Parameters
|
|
885
|
-
|
|
886
|
-
#### T
|
|
887
|
-
|
|
888
|
-
`T` *extends* `object`
|
|
889
|
-
|
|
890
|
-
### Parameters
|
|
891
|
-
|
|
892
|
-
#### payload
|
|
893
|
-
|
|
894
|
-
`T`
|
|
895
|
-
|
|
896
|
-
#### meta?
|
|
897
|
-
|
|
898
|
-
`boolean`
|
|
899
|
-
|
|
900
|
-
### Returns
|
|
901
|
-
|
|
902
|
-
`T`
|
|
903
|
-
|
|
904
|
-
### Deprecated
|
|
905
|
-
|
|
906
|
-
us json instead
|
|
907
|
-
|
|
908
|
-
### Inherited from
|
|
909
|
-
|
|
910
|
-
```ts
|
|
911
|
-
ObjectHasher.jsonPayload
|
|
912
|
-
```
|
|
913
|
-
|
|
914
|
-
***
|
|
915
|
-
|
|
916
|
-
### stringifyHashFields()
|
|
917
|
-
|
|
918
|
-
```ts
|
|
919
|
-
static stringifyHashFields<T>(obj): string;
|
|
920
|
-
```
|
|
921
|
-
|
|
922
|
-
### Type Parameters
|
|
923
|
-
|
|
924
|
-
#### T
|
|
925
|
-
|
|
926
|
-
`T` *extends* `object`
|
|
927
|
-
|
|
928
|
-
### Parameters
|
|
929
|
-
|
|
930
|
-
#### obj
|
|
931
|
-
|
|
932
|
-
`T`
|
|
933
|
-
|
|
934
|
-
### Returns
|
|
935
|
-
|
|
936
|
-
`string`
|
|
937
|
-
|
|
938
|
-
### Inherited from
|
|
939
|
-
|
|
940
|
-
```ts
|
|
941
|
-
ObjectHasher.stringifyHashFields
|
|
942
|
-
```
|
|
943
|
-
|
|
944
|
-
***
|
|
945
|
-
|
|
946
|
-
### subtleHash()
|
|
947
|
-
|
|
948
|
-
```ts
|
|
949
|
-
static subtleHash(data): Promise<ArrayBuffer>;
|
|
950
|
-
```
|
|
951
|
-
|
|
952
|
-
### Parameters
|
|
953
|
-
|
|
954
|
-
#### data
|
|
955
|
-
|
|
956
|
-
`Uint8Array`\<`ArrayBuffer`\>
|
|
957
|
-
|
|
958
|
-
### Returns
|
|
959
|
-
|
|
960
|
-
`Promise`\<`ArrayBuffer`\>
|
|
961
|
-
|
|
962
|
-
### Inherited from
|
|
963
|
-
|
|
964
|
-
```ts
|
|
965
|
-
ObjectHasher.subtleHash
|
|
966
|
-
```
|
|
967
|
-
|
|
968
|
-
***
|
|
969
|
-
|
|
970
|
-
### wasmHash()
|
|
971
|
-
|
|
972
|
-
```ts
|
|
973
|
-
static wasmHash(data): Promise<BrandedHash>;
|
|
974
|
-
```
|
|
975
|
-
|
|
976
|
-
### Parameters
|
|
977
|
-
|
|
978
|
-
#### data
|
|
979
|
-
|
|
980
|
-
`Uint8Array`
|
|
981
|
-
|
|
982
|
-
### Returns
|
|
983
|
-
|
|
984
|
-
`Promise`\<`BrandedHash`\>
|
|
985
|
-
|
|
986
|
-
### Inherited from
|
|
987
|
-
|
|
988
|
-
```ts
|
|
989
|
-
ObjectHasher.wasmHash
|
|
990
|
-
```
|
|
991
|
-
|
|
992
|
-
***
|
|
993
|
-
|
|
994
|
-
### hash()
|
|
995
|
-
|
|
996
|
-
```ts
|
|
997
|
-
hash(): Promise<BrandedHash>;
|
|
998
|
-
```
|
|
999
|
-
|
|
1000
|
-
### Returns
|
|
1001
|
-
|
|
1002
|
-
`Promise`\<`BrandedHash`\>
|
|
1003
|
-
|
|
1004
|
-
### Inherited from
|
|
1005
|
-
|
|
1006
|
-
```ts
|
|
1007
|
-
ObjectHasher.hash
|
|
1008
|
-
```
|
|
1009
|
-
|
|
1010
|
-
***
|
|
1011
|
-
|
|
1012
|
-
### json()
|
|
1013
|
-
|
|
1014
|
-
```ts
|
|
1015
|
-
json(meta?): T;
|
|
1016
|
-
```
|
|
1017
|
-
|
|
1018
|
-
Returns a clone of the payload that is JSON safe
|
|
1019
|
-
|
|
1020
|
-
### Parameters
|
|
1021
|
-
|
|
1022
|
-
#### meta?
|
|
1023
|
-
|
|
1024
|
-
`boolean`
|
|
1025
|
-
|
|
1026
|
-
Keeps underscore (meta) fields if set to true
|
|
1027
|
-
|
|
1028
|
-
### Returns
|
|
1029
|
-
|
|
1030
|
-
`T`
|
|
1031
|
-
|
|
1032
|
-
Returns a clone of the payload that is JSON safe
|
|
1033
|
-
|
|
1034
|
-
### Inherited from
|
|
1035
|
-
|
|
1036
|
-
```ts
|
|
1037
|
-
ObjectHasher.json
|
|
1038
|
-
```
|
|
1039
|
-
|
|
1040
|
-
### <a id="WasmSupport"></a>WasmSupport
|
|
1041
|
-
|
|
1042
|
-
[**@xyo-network/core**](#../README)
|
|
1043
|
-
|
|
1044
|
-
***
|
|
1045
|
-
|
|
1046
|
-
## Constructors
|
|
1047
|
-
|
|
1048
|
-
### Constructor
|
|
1049
|
-
|
|
1050
|
-
```ts
|
|
1051
|
-
new WasmSupport(desiredFeatures): WasmSupport;
|
|
1052
|
-
```
|
|
1053
|
-
|
|
1054
|
-
Instance constructor for use where async instantiation
|
|
1055
|
-
is not possible. Where possible, prefer the static
|
|
1056
|
-
create method over use of this constructor directly
|
|
1057
|
-
as no initialization (feature detection) is able to
|
|
1058
|
-
be done here
|
|
1059
|
-
|
|
1060
|
-
### Parameters
|
|
1061
|
-
|
|
1062
|
-
#### desiredFeatures
|
|
1063
|
-
|
|
1064
|
-
(
|
|
1065
|
-
\| `"bigInt"`
|
|
1066
|
-
\| `"bulkMemory"`
|
|
1067
|
-
\| `"exceptions"`
|
|
1068
|
-
\| `"extendedConst"`
|
|
1069
|
-
\| `"gc"`
|
|
1070
|
-
\| `"memory64"`
|
|
1071
|
-
\| `"multiValue"`
|
|
1072
|
-
\| `"mutableGlobals"`
|
|
1073
|
-
\| `"referenceTypes"`
|
|
1074
|
-
\| `"relaxedSimd"`
|
|
1075
|
-
\| `"saturatedFloatToInt"`
|
|
1076
|
-
\| `"signExtensions"`
|
|
1077
|
-
\| `"simd"`
|
|
1078
|
-
\| `"streamingCompilation"`
|
|
1079
|
-
\| `"tailCall"`
|
|
1080
|
-
\| `"threads"`)[]
|
|
1081
|
-
|
|
1082
|
-
The desired feature set
|
|
1083
|
-
|
|
1084
|
-
### Returns
|
|
1085
|
-
|
|
1086
|
-
`WasmSupport`
|
|
1087
|
-
|
|
1088
|
-
## Properties
|
|
1089
|
-
|
|
1090
|
-
### desiredFeatures
|
|
1091
|
-
|
|
1092
|
-
```ts
|
|
1093
|
-
protected desiredFeatures: (
|
|
1094
|
-
| "bigInt"
|
|
1095
|
-
| "bulkMemory"
|
|
1096
|
-
| "exceptions"
|
|
1097
|
-
| "extendedConst"
|
|
1098
|
-
| "gc"
|
|
1099
|
-
| "memory64"
|
|
1100
|
-
| "multiValue"
|
|
1101
|
-
| "mutableGlobals"
|
|
1102
|
-
| "referenceTypes"
|
|
1103
|
-
| "relaxedSimd"
|
|
1104
|
-
| "saturatedFloatToInt"
|
|
1105
|
-
| "signExtensions"
|
|
1106
|
-
| "simd"
|
|
1107
|
-
| "streamingCompilation"
|
|
1108
|
-
| "tailCall"
|
|
1109
|
-
| "threads")[];
|
|
1110
|
-
```
|
|
1111
|
-
|
|
1112
|
-
## Accessors
|
|
1113
|
-
|
|
1114
|
-
### allowWasm
|
|
1115
|
-
|
|
1116
|
-
### Get Signature
|
|
1117
|
-
|
|
1118
|
-
```ts
|
|
1119
|
-
get allowWasm(): boolean;
|
|
1120
|
-
```
|
|
1121
|
-
|
|
1122
|
-
Is Wasm allowed
|
|
1123
|
-
|
|
1124
|
-
#### Returns
|
|
1125
|
-
|
|
1126
|
-
`boolean`
|
|
1127
|
-
|
|
1128
|
-
### Set Signature
|
|
1129
|
-
|
|
1130
|
-
```ts
|
|
1131
|
-
set allowWasm(v): void;
|
|
1132
|
-
```
|
|
1133
|
-
|
|
1134
|
-
Whether or not to allow WASM usage
|
|
1135
|
-
|
|
1136
|
-
#### Parameters
|
|
1137
|
-
|
|
1138
|
-
##### v
|
|
1139
|
-
|
|
1140
|
-
`boolean`
|
|
1141
|
-
|
|
1142
|
-
#### Returns
|
|
1143
|
-
|
|
1144
|
-
`void`
|
|
1145
|
-
|
|
1146
|
-
***
|
|
1147
|
-
|
|
1148
|
-
### canUseWasm
|
|
1149
|
-
|
|
1150
|
-
### Get Signature
|
|
1151
|
-
|
|
1152
|
-
```ts
|
|
1153
|
-
get canUseWasm(): boolean;
|
|
1154
|
-
```
|
|
1155
|
-
|
|
1156
|
-
Whether or not Wasm should be used based on the desired
|
|
1157
|
-
feature set, initialization state, or force-use settings
|
|
1158
|
-
|
|
1159
|
-
#### Returns
|
|
1160
|
-
|
|
1161
|
-
`boolean`
|
|
1162
|
-
|
|
1163
|
-
***
|
|
1164
|
-
|
|
1165
|
-
### featureSupport
|
|
1166
|
-
|
|
1167
|
-
### Get Signature
|
|
1168
|
-
|
|
1169
|
-
```ts
|
|
1170
|
-
get featureSupport(): Readonly<Partial<Record<WasmFeature, boolean>>>;
|
|
1171
|
-
```
|
|
1172
|
-
|
|
1173
|
-
Returns a object containing a property for each desired wasm feature
|
|
1174
|
-
with a boolean value indicating whether or not the feature is supported
|
|
1175
|
-
|
|
1176
|
-
#### Returns
|
|
1177
|
-
|
|
1178
|
-
`Readonly`\<`Partial`\<`Record`\<[`WasmFeature`](#../type-aliases/WasmFeature), `boolean`\>\>\>
|
|
1179
|
-
|
|
1180
|
-
***
|
|
1181
|
-
|
|
1182
|
-
### forceWasm
|
|
1183
|
-
|
|
1184
|
-
### Get Signature
|
|
1185
|
-
|
|
1186
|
-
```ts
|
|
1187
|
-
get forceWasm(): boolean;
|
|
1188
|
-
```
|
|
1189
|
-
|
|
1190
|
-
Force use of Wasm
|
|
1191
|
-
|
|
1192
|
-
#### Returns
|
|
1193
|
-
|
|
1194
|
-
`boolean`
|
|
1195
|
-
|
|
1196
|
-
### Set Signature
|
|
1197
|
-
|
|
1198
|
-
```ts
|
|
1199
|
-
set forceWasm(v): void;
|
|
1200
|
-
```
|
|
1201
|
-
|
|
1202
|
-
Whether or not to force Wasm usage
|
|
1203
|
-
|
|
1204
|
-
#### Parameters
|
|
1205
|
-
|
|
1206
|
-
##### v
|
|
1207
|
-
|
|
1208
|
-
`boolean`
|
|
1209
|
-
|
|
1210
|
-
#### Returns
|
|
1211
|
-
|
|
1212
|
-
`void`
|
|
1213
|
-
|
|
1214
|
-
***
|
|
1215
|
-
|
|
1216
|
-
### isDesiredFeatureSetSupported
|
|
1217
|
-
|
|
1218
|
-
### Get Signature
|
|
1219
|
-
|
|
1220
|
-
```ts
|
|
1221
|
-
get isDesiredFeatureSetSupported(): boolean;
|
|
1222
|
-
```
|
|
1223
|
-
|
|
1224
|
-
Whether or not Wasm is supported based
|
|
1225
|
-
on the desired feature set
|
|
1226
|
-
|
|
1227
|
-
#### Returns
|
|
1228
|
-
|
|
1229
|
-
`boolean`
|
|
1230
|
-
|
|
1231
|
-
***
|
|
1232
|
-
|
|
1233
|
-
### isInitialized
|
|
1234
|
-
|
|
1235
|
-
### Get Signature
|
|
1236
|
-
|
|
1237
|
-
```ts
|
|
1238
|
-
get isInitialized(): boolean;
|
|
1239
|
-
```
|
|
1240
|
-
|
|
1241
|
-
Whether or not Wasm detection has been run
|
|
1242
|
-
for the desired feature set
|
|
1243
|
-
|
|
1244
|
-
#### Returns
|
|
1245
|
-
|
|
1246
|
-
`boolean`
|
|
1247
|
-
|
|
1248
|
-
## Methods
|
|
1249
|
-
|
|
1250
|
-
### create()
|
|
1251
|
-
|
|
1252
|
-
```ts
|
|
1253
|
-
static create(desiredFeatures): Promise<WasmSupport>;
|
|
1254
|
-
```
|
|
1255
|
-
|
|
1256
|
-
Static creation & async initialization for use where
|
|
1257
|
-
async instantiation is possible
|
|
1258
|
-
|
|
1259
|
-
### Parameters
|
|
1260
|
-
|
|
1261
|
-
#### desiredFeatures
|
|
1262
|
-
|
|
1263
|
-
(
|
|
1264
|
-
\| `"bigInt"`
|
|
1265
|
-
\| `"bulkMemory"`
|
|
1266
|
-
\| `"exceptions"`
|
|
1267
|
-
\| `"extendedConst"`
|
|
1268
|
-
\| `"gc"`
|
|
1269
|
-
\| `"memory64"`
|
|
1270
|
-
\| `"multiValue"`
|
|
1271
|
-
\| `"mutableGlobals"`
|
|
1272
|
-
\| `"referenceTypes"`
|
|
1273
|
-
\| `"relaxedSimd"`
|
|
1274
|
-
\| `"saturatedFloatToInt"`
|
|
1275
|
-
\| `"signExtensions"`
|
|
1276
|
-
\| `"simd"`
|
|
1277
|
-
\| `"streamingCompilation"`
|
|
1278
|
-
\| `"tailCall"`
|
|
1279
|
-
\| `"threads"`)[]
|
|
1280
|
-
|
|
1281
|
-
The desired feature set
|
|
1282
|
-
|
|
1283
|
-
### Returns
|
|
1284
|
-
|
|
1285
|
-
`Promise`\<`WasmSupport`\>
|
|
1286
|
-
|
|
1287
|
-
An initialized instance of the class with detection
|
|
1288
|
-
for the desired feature set
|
|
1289
|
-
|
|
1290
|
-
***
|
|
1291
|
-
|
|
1292
|
-
### featureCheck()
|
|
1293
|
-
|
|
1294
|
-
```ts
|
|
1295
|
-
featureCheck(features): Promise<boolean>;
|
|
1296
|
-
```
|
|
1297
|
-
|
|
1298
|
-
Checks for specific wasm features
|
|
1299
|
-
|
|
1300
|
-
### Parameters
|
|
1301
|
-
|
|
1302
|
-
#### features
|
|
1303
|
-
|
|
1304
|
-
(
|
|
1305
|
-
\| `"bigInt"`
|
|
1306
|
-
\| `"bulkMemory"`
|
|
1307
|
-
\| `"exceptions"`
|
|
1308
|
-
\| `"extendedConst"`
|
|
1309
|
-
\| `"gc"`
|
|
1310
|
-
\| `"memory64"`
|
|
1311
|
-
\| `"multiValue"`
|
|
1312
|
-
\| `"mutableGlobals"`
|
|
1313
|
-
\| `"referenceTypes"`
|
|
1314
|
-
\| `"relaxedSimd"`
|
|
1315
|
-
\| `"saturatedFloatToInt"`
|
|
1316
|
-
\| `"signExtensions"`
|
|
1317
|
-
\| `"simd"`
|
|
1318
|
-
\| `"streamingCompilation"`
|
|
1319
|
-
\| `"tailCall"`
|
|
1320
|
-
\| `"threads"`)[]
|
|
1321
|
-
|
|
1322
|
-
The list of features to check for
|
|
1323
|
-
|
|
1324
|
-
### Returns
|
|
1325
|
-
|
|
1326
|
-
`Promise`\<`boolean`\>
|
|
1327
|
-
|
|
1328
|
-
True if all the features are supported, false otherwise
|
|
1329
|
-
|
|
1330
|
-
***
|
|
1331
|
-
|
|
1332
|
-
### initialize()
|
|
1333
|
-
|
|
1334
|
-
```ts
|
|
1335
|
-
initialize(): Promise<void>;
|
|
1336
|
-
```
|
|
1337
|
-
|
|
1338
|
-
Does feature detection for the desired feature set
|
|
1339
|
-
|
|
1340
|
-
### Returns
|
|
1341
|
-
|
|
1342
|
-
`Promise`\<`void`\>
|
|
1343
|
-
|
|
1344
|
-
***
|
|
1345
|
-
|
|
1346
|
-
### detectDesiredFeatures()
|
|
1347
|
-
|
|
1348
|
-
```ts
|
|
1349
|
-
protected detectDesiredFeatures(): Promise<void>;
|
|
1350
|
-
```
|
|
1351
|
-
|
|
1352
|
-
### Returns
|
|
1353
|
-
|
|
1354
|
-
`Promise`\<`void`\>
|
|
1355
|
-
|
|
1356
|
-
### interfaces
|
|
1357
|
-
|
|
1358
|
-
### <a id="DataInstance"></a>DataInstance
|
|
1359
|
-
|
|
1360
|
-
[**@xyo-network/core**](#../README)
|
|
1361
|
-
|
|
1362
|
-
***
|
|
1363
|
-
|
|
1364
|
-
## Properties
|
|
1365
|
-
|
|
1366
|
-
### base58
|
|
1367
|
-
|
|
1368
|
-
```ts
|
|
1369
|
-
base58: string;
|
|
1370
|
-
```
|
|
1371
|
-
|
|
1372
|
-
***
|
|
1373
|
-
|
|
1374
|
-
### bytes
|
|
1375
|
-
|
|
1376
|
-
```ts
|
|
1377
|
-
bytes: ArrayBufferLike;
|
|
1378
|
-
```
|
|
1379
|
-
|
|
1380
|
-
***
|
|
1381
|
-
|
|
1382
|
-
### hex
|
|
1383
|
-
|
|
1384
|
-
```ts
|
|
1385
|
-
hex: BrandedHex;
|
|
1386
|
-
```
|
|
1387
|
-
|
|
1388
|
-
***
|
|
1389
|
-
|
|
1390
|
-
### keccak256
|
|
1391
|
-
|
|
1392
|
-
```ts
|
|
1393
|
-
keccak256: ArrayBufferLike;
|
|
1394
|
-
```
|
|
1395
|
-
|
|
1396
|
-
### type-aliases
|
|
1397
|
-
|
|
1398
|
-
### <a id="WasmFeature"></a>WasmFeature
|
|
1399
|
-
|
|
1400
|
-
[**@xyo-network/core**](#../README)
|
|
1401
|
-
|
|
1402
|
-
***
|
|
1403
|
-
|
|
1404
|
-
```ts
|
|
1405
|
-
type WasmFeature = keyof typeof WasmFeatureDetectors;
|
|
1406
|
-
```
|
|
1407
|
-
|
|
1408
|
-
### variables
|
|
1409
|
-
|
|
1410
|
-
### <a id="WasmFeatureDetectors"></a>WasmFeatureDetectors
|
|
1411
|
-
|
|
1412
|
-
[**@xyo-network/core**](#../README)
|
|
1413
|
-
|
|
1414
|
-
***
|
|
1415
|
-
|
|
1416
|
-
```ts
|
|
1417
|
-
const WasmFeatureDetectors: object;
|
|
1418
|
-
```
|
|
1419
|
-
|
|
1420
|
-
## Type Declaration
|
|
1421
|
-
|
|
1422
|
-
### bigInt
|
|
1423
|
-
|
|
1424
|
-
```ts
|
|
1425
|
-
readonly bigInt: () => Promise<boolean>;
|
|
1426
|
-
```
|
|
1427
|
-
|
|
1428
|
-
### Returns
|
|
1429
|
-
|
|
1430
|
-
`Promise`\<`boolean`\>
|
|
1431
|
-
|
|
1432
|
-
### bulkMemory
|
|
1433
|
-
|
|
1434
|
-
```ts
|
|
1435
|
-
readonly bulkMemory: () => Promise<boolean>;
|
|
1436
|
-
```
|
|
1437
|
-
|
|
1438
|
-
### Returns
|
|
1439
|
-
|
|
1440
|
-
`Promise`\<`boolean`\>
|
|
1441
|
-
|
|
1442
|
-
### exceptions
|
|
1443
|
-
|
|
1444
|
-
```ts
|
|
1445
|
-
readonly exceptions: () => Promise<boolean>;
|
|
1446
|
-
```
|
|
1447
|
-
|
|
1448
|
-
### Returns
|
|
1449
|
-
|
|
1450
|
-
`Promise`\<`boolean`\>
|
|
1451
|
-
|
|
1452
|
-
### extendedConst
|
|
1453
|
-
|
|
1454
|
-
```ts
|
|
1455
|
-
readonly extendedConst: () => Promise<boolean>;
|
|
1456
|
-
```
|
|
1457
|
-
|
|
1458
|
-
### Returns
|
|
1459
|
-
|
|
1460
|
-
`Promise`\<`boolean`\>
|
|
1461
|
-
|
|
1462
|
-
### gc
|
|
1463
|
-
|
|
1464
|
-
```ts
|
|
1465
|
-
readonly gc: () => Promise<boolean>;
|
|
1466
|
-
```
|
|
1467
|
-
|
|
1468
|
-
### Returns
|
|
1469
|
-
|
|
1470
|
-
`Promise`\<`boolean`\>
|
|
1471
|
-
|
|
1472
|
-
### memory64
|
|
1473
|
-
|
|
1474
|
-
```ts
|
|
1475
|
-
readonly memory64: () => Promise<boolean>;
|
|
1476
|
-
```
|
|
1477
|
-
|
|
1478
|
-
### Returns
|
|
1479
|
-
|
|
1480
|
-
`Promise`\<`boolean`\>
|
|
1481
|
-
|
|
1482
|
-
### multiValue
|
|
1483
|
-
|
|
1484
|
-
```ts
|
|
1485
|
-
readonly multiValue: () => Promise<boolean>;
|
|
1486
|
-
```
|
|
1487
|
-
|
|
1488
|
-
### Returns
|
|
1489
|
-
|
|
1490
|
-
`Promise`\<`boolean`\>
|
|
1491
|
-
|
|
1492
|
-
### mutableGlobals
|
|
1493
|
-
|
|
1494
|
-
```ts
|
|
1495
|
-
readonly mutableGlobals: () => Promise<boolean>;
|
|
1496
|
-
```
|
|
1497
|
-
|
|
1498
|
-
### Returns
|
|
1499
|
-
|
|
1500
|
-
`Promise`\<`boolean`\>
|
|
1501
|
-
|
|
1502
|
-
### referenceTypes
|
|
1503
|
-
|
|
1504
|
-
```ts
|
|
1505
|
-
readonly referenceTypes: () => {
|
|
1506
|
-
(executor): Promise<boolean>;
|
|
1507
|
-
all: Promise<Awaited<T>[]>;
|
|
1508
|
-
race: Promise<Awaited<T>>;
|
|
1509
|
-
prototype: Promise<any>;
|
|
1510
|
-
reject: Promise<T>;
|
|
1511
|
-
resolve: Promise<void>;
|
|
1512
|
-
allSettled: Promise<{ -readonly [P in string | number | symbol]: PromiseSettledResult<Awaited<T[P]>> }>;
|
|
1513
|
-
any: Promise<Awaited<T[number]>>;
|
|
1514
|
-
withResolvers: PromiseWithResolvers<T>;
|
|
1515
|
-
try: Promise<Awaited<T>>;
|
|
1516
|
-
[species]: PromiseConstructor;
|
|
1517
|
-
};
|
|
1518
|
-
```
|
|
1519
|
-
|
|
1520
|
-
### Returns
|
|
1521
|
-
|
|
1522
|
-
\{
|
|
1523
|
-
(`executor`): `Promise`\<`boolean`\>;
|
|
1524
|
-
`all`: `Promise`\<`Awaited`\<`T`\>[]\>;
|
|
1525
|
-
`race`: `Promise`\<`Awaited`\<`T`\>\>;
|
|
1526
|
-
`prototype`: `Promise`\<`any`\>;
|
|
1527
|
-
`reject`: `Promise`\<`T`\>;
|
|
1528
|
-
`resolve`: `Promise`\<`void`\>;
|
|
1529
|
-
`allSettled`: `Promise`\<\{ -readonly \[P in string \| number \| symbol\]: PromiseSettledResult\<Awaited\<T\[P\]\>\> \}\>;
|
|
1530
|
-
`any`: `Promise`\<`Awaited`\<`T`\[`number`\]\>\>;
|
|
1531
|
-
`withResolvers`: `PromiseWithResolvers`\<`T`\>;
|
|
1532
|
-
`try`: `Promise`\<`Awaited`\<`T`\>\>;
|
|
1533
|
-
`[species]`: `PromiseConstructor`;
|
|
1534
|
-
\}
|
|
1535
|
-
|
|
1536
|
-
#### all()
|
|
1537
|
-
|
|
1538
|
-
##### Call Signature
|
|
1539
|
-
|
|
1540
|
-
```ts
|
|
1541
|
-
all<T>(values): Promise<Awaited<T>[]>;
|
|
1542
|
-
```
|
|
1543
|
-
|
|
1544
|
-
##### Type Parameters
|
|
1545
|
-
|
|
1546
|
-
##### T
|
|
1547
|
-
|
|
1548
|
-
`T`
|
|
1549
|
-
|
|
1550
|
-
##### Parameters
|
|
1551
|
-
|
|
1552
|
-
##### values
|
|
1553
|
-
|
|
1554
|
-
`Iterable`\<`T` \| `PromiseLike`\<`T`\>\>
|
|
1555
|
-
|
|
1556
|
-
##### Returns
|
|
1557
|
-
|
|
1558
|
-
`Promise`\<`Awaited`\<`T`\>[]\>
|
|
1559
|
-
|
|
1560
|
-
##### Call Signature
|
|
1561
|
-
|
|
1562
|
-
```ts
|
|
1563
|
-
all<T>(values): Promise<{ -readonly [P in string | number | symbol]: Awaited<T[P]> }>;
|
|
1564
|
-
```
|
|
1565
|
-
|
|
1566
|
-
##### Type Parameters
|
|
1567
|
-
|
|
1568
|
-
##### T
|
|
1569
|
-
|
|
1570
|
-
`T` *extends* readonly `unknown`[] \| \[\]
|
|
1571
|
-
|
|
1572
|
-
##### Parameters
|
|
1573
|
-
|
|
1574
|
-
##### values
|
|
1575
|
-
|
|
1576
|
-
`T`
|
|
1577
|
-
|
|
1578
|
-
##### Returns
|
|
1579
|
-
|
|
1580
|
-
`Promise`\<\{ -readonly \[P in string \| number \| symbol\]: Awaited\<T\[P\]\> \}\>
|
|
1581
|
-
|
|
1582
|
-
#### race()
|
|
1583
|
-
|
|
1584
|
-
##### Call Signature
|
|
1585
|
-
|
|
1586
|
-
```ts
|
|
1587
|
-
race<T>(values): Promise<Awaited<T>>;
|
|
1588
|
-
```
|
|
1589
|
-
|
|
1590
|
-
##### Type Parameters
|
|
1591
|
-
|
|
1592
|
-
##### T
|
|
1593
|
-
|
|
1594
|
-
`T`
|
|
1595
|
-
|
|
1596
|
-
##### Parameters
|
|
1597
|
-
|
|
1598
|
-
##### values
|
|
1599
|
-
|
|
1600
|
-
`Iterable`\<`T` \| `PromiseLike`\<`T`\>\>
|
|
1601
|
-
|
|
1602
|
-
##### Returns
|
|
1603
|
-
|
|
1604
|
-
`Promise`\<`Awaited`\<`T`\>\>
|
|
1605
|
-
|
|
1606
|
-
##### Call Signature
|
|
1607
|
-
|
|
1608
|
-
```ts
|
|
1609
|
-
race<T>(values): Promise<Awaited<T[number]>>;
|
|
1610
|
-
```
|
|
1611
|
-
|
|
1612
|
-
##### Type Parameters
|
|
1613
|
-
|
|
1614
|
-
##### T
|
|
1615
|
-
|
|
1616
|
-
`T` *extends* readonly `unknown`[] \| \[\]
|
|
1617
|
-
|
|
1618
|
-
##### Parameters
|
|
1619
|
-
|
|
1620
|
-
##### values
|
|
1621
|
-
|
|
1622
|
-
`T`
|
|
1623
|
-
|
|
1624
|
-
##### Returns
|
|
1625
|
-
|
|
1626
|
-
`Promise`\<`Awaited`\<`T`\[`number`\]\>\>
|
|
1627
|
-
|
|
1628
|
-
#### prototype
|
|
1629
|
-
|
|
1630
|
-
```ts
|
|
1631
|
-
readonly prototype: Promise<any>;
|
|
1632
|
-
```
|
|
1633
|
-
|
|
1634
|
-
#### reject()
|
|
1635
|
-
|
|
1636
|
-
```ts
|
|
1637
|
-
reject<T>(reason?): Promise<T>;
|
|
1638
|
-
```
|
|
1639
|
-
|
|
1640
|
-
##### Type Parameters
|
|
1641
|
-
|
|
1642
|
-
##### T
|
|
1643
|
-
|
|
1644
|
-
`T` = `never`
|
|
1645
|
-
|
|
1646
|
-
##### Parameters
|
|
1647
|
-
|
|
1648
|
-
##### reason?
|
|
1649
|
-
|
|
1650
|
-
`any`
|
|
1651
|
-
|
|
1652
|
-
##### Returns
|
|
1653
|
-
|
|
1654
|
-
`Promise`\<`T`\>
|
|
1655
|
-
|
|
1656
|
-
#### resolve()
|
|
1657
|
-
|
|
1658
|
-
##### Call Signature
|
|
1659
|
-
|
|
1660
|
-
```ts
|
|
1661
|
-
resolve(): Promise<void>;
|
|
1662
|
-
```
|
|
1663
|
-
|
|
1664
|
-
##### Returns
|
|
1665
|
-
|
|
1666
|
-
`Promise`\<`void`\>
|
|
1667
|
-
|
|
1668
|
-
##### Call Signature
|
|
1669
|
-
|
|
1670
|
-
```ts
|
|
1671
|
-
resolve<T>(value): Promise<Awaited<T>>;
|
|
1672
|
-
```
|
|
1673
|
-
|
|
1674
|
-
##### Type Parameters
|
|
1675
|
-
|
|
1676
|
-
##### T
|
|
1677
|
-
|
|
1678
|
-
`T`
|
|
1679
|
-
|
|
1680
|
-
##### Parameters
|
|
1681
|
-
|
|
1682
|
-
##### value
|
|
1683
|
-
|
|
1684
|
-
`T`
|
|
1685
|
-
|
|
1686
|
-
##### Returns
|
|
1687
|
-
|
|
1688
|
-
`Promise`\<`Awaited`\<`T`\>\>
|
|
1689
|
-
|
|
1690
|
-
##### Call Signature
|
|
1691
|
-
|
|
1692
|
-
```ts
|
|
1693
|
-
resolve<T>(value): Promise<Awaited<T>>;
|
|
1694
|
-
```
|
|
1695
|
-
|
|
1696
|
-
##### Type Parameters
|
|
1697
|
-
|
|
1698
|
-
##### T
|
|
1699
|
-
|
|
1700
|
-
`T`
|
|
1701
|
-
|
|
1702
|
-
##### Parameters
|
|
1703
|
-
|
|
1704
|
-
##### value
|
|
1705
|
-
|
|
1706
|
-
`T` \| `PromiseLike`\<`T`\>
|
|
1707
|
-
|
|
1708
|
-
##### Returns
|
|
1709
|
-
|
|
1710
|
-
`Promise`\<`Awaited`\<`T`\>\>
|
|
1711
|
-
|
|
1712
|
-
#### allSettled()
|
|
1713
|
-
|
|
1714
|
-
##### Call Signature
|
|
1715
|
-
|
|
1716
|
-
```ts
|
|
1717
|
-
allSettled<T>(values): Promise<{ -readonly [P in string | number | symbol]: PromiseSettledResult<Awaited<T[P]>> }>;
|
|
1718
|
-
```
|
|
1719
|
-
|
|
1720
|
-
##### Type Parameters
|
|
1721
|
-
|
|
1722
|
-
##### T
|
|
1723
|
-
|
|
1724
|
-
`T` *extends* readonly `unknown`[] \| \[\]
|
|
1725
|
-
|
|
1726
|
-
##### Parameters
|
|
1727
|
-
|
|
1728
|
-
##### values
|
|
1729
|
-
|
|
1730
|
-
`T`
|
|
1731
|
-
|
|
1732
|
-
##### Returns
|
|
1733
|
-
|
|
1734
|
-
`Promise`\<\{ -readonly \[P in string \| number \| symbol\]: PromiseSettledResult\<Awaited\<T\[P\]\>\> \}\>
|
|
1735
|
-
|
|
1736
|
-
##### Call Signature
|
|
1737
|
-
|
|
1738
|
-
```ts
|
|
1739
|
-
allSettled<T>(values): Promise<PromiseSettledResult<Awaited<T>>[]>;
|
|
1740
|
-
```
|
|
1741
|
-
|
|
1742
|
-
##### Type Parameters
|
|
1743
|
-
|
|
1744
|
-
##### T
|
|
1745
|
-
|
|
1746
|
-
`T`
|
|
1747
|
-
|
|
1748
|
-
##### Parameters
|
|
1749
|
-
|
|
1750
|
-
##### values
|
|
1751
|
-
|
|
1752
|
-
`Iterable`\<`T` \| `PromiseLike`\<`T`\>\>
|
|
1753
|
-
|
|
1754
|
-
##### Returns
|
|
1755
|
-
|
|
1756
|
-
`Promise`\<`PromiseSettledResult`\<`Awaited`\<`T`\>\>[]\>
|
|
1757
|
-
|
|
1758
|
-
#### any()
|
|
1759
|
-
|
|
1760
|
-
##### Call Signature
|
|
1761
|
-
|
|
1762
|
-
```ts
|
|
1763
|
-
any<T>(values): Promise<Awaited<T[number]>>;
|
|
1764
|
-
```
|
|
1765
|
-
|
|
1766
|
-
##### Type Parameters
|
|
1767
|
-
|
|
1768
|
-
##### T
|
|
1769
|
-
|
|
1770
|
-
`T` *extends* readonly `unknown`[] \| \[\]
|
|
1771
|
-
|
|
1772
|
-
##### Parameters
|
|
1773
|
-
|
|
1774
|
-
##### values
|
|
1775
|
-
|
|
1776
|
-
`T`
|
|
1777
|
-
|
|
1778
|
-
##### Returns
|
|
1779
|
-
|
|
1780
|
-
`Promise`\<`Awaited`\<`T`\[`number`\]\>\>
|
|
1781
|
-
|
|
1782
|
-
##### Call Signature
|
|
1783
|
-
|
|
1784
|
-
```ts
|
|
1785
|
-
any<T>(values): Promise<Awaited<T>>;
|
|
1786
|
-
```
|
|
1787
|
-
|
|
1788
|
-
##### Type Parameters
|
|
1789
|
-
|
|
1790
|
-
##### T
|
|
1791
|
-
|
|
1792
|
-
`T`
|
|
1793
|
-
|
|
1794
|
-
##### Parameters
|
|
1795
|
-
|
|
1796
|
-
##### values
|
|
1797
|
-
|
|
1798
|
-
`Iterable`\<`T` \| `PromiseLike`\<`T`\>\>
|
|
1799
|
-
|
|
1800
|
-
##### Returns
|
|
1801
|
-
|
|
1802
|
-
`Promise`\<`Awaited`\<`T`\>\>
|
|
1803
|
-
|
|
1804
|
-
#### withResolvers()
|
|
1805
|
-
|
|
1806
|
-
```ts
|
|
1807
|
-
withResolvers<T>(): PromiseWithResolvers<T>;
|
|
1808
|
-
```
|
|
1809
|
-
|
|
1810
|
-
##### Type Parameters
|
|
1811
|
-
|
|
1812
|
-
##### T
|
|
1813
|
-
|
|
1814
|
-
`T`
|
|
1815
|
-
|
|
1816
|
-
##### Returns
|
|
1817
|
-
|
|
1818
|
-
`PromiseWithResolvers`\<`T`\>
|
|
1819
|
-
|
|
1820
|
-
#### try()
|
|
1821
|
-
|
|
1822
|
-
```ts
|
|
1823
|
-
try<T, U>(callbackFn, ...args): Promise<Awaited<T>>;
|
|
1824
|
-
```
|
|
1825
|
-
|
|
1826
|
-
##### Type Parameters
|
|
1827
|
-
|
|
1828
|
-
##### T
|
|
1829
|
-
|
|
1830
|
-
`T`
|
|
1831
|
-
|
|
1832
|
-
##### U
|
|
1833
|
-
|
|
1834
|
-
`U` *extends* `unknown`[]
|
|
1835
|
-
|
|
1836
|
-
##### Parameters
|
|
1837
|
-
|
|
1838
|
-
##### callbackFn
|
|
1839
|
-
|
|
1840
|
-
(...`args`) => `T` \| `PromiseLike`\<`T`\>
|
|
1841
|
-
|
|
1842
|
-
##### args
|
|
1843
|
-
|
|
1844
|
-
...`U`
|
|
1845
|
-
|
|
1846
|
-
##### Returns
|
|
1847
|
-
|
|
1848
|
-
`Promise`\<`Awaited`\<`T`\>\>
|
|
1849
|
-
|
|
1850
|
-
#### \[species\]
|
|
1851
|
-
|
|
1852
|
-
```ts
|
|
1853
|
-
readonly [species]: PromiseConstructor;
|
|
1854
|
-
```
|
|
1855
|
-
|
|
1856
|
-
### relaxedSimd
|
|
1857
|
-
|
|
1858
|
-
```ts
|
|
1859
|
-
readonly relaxedSimd: () => Promise<boolean>;
|
|
1860
|
-
```
|
|
1861
|
-
|
|
1862
|
-
### Returns
|
|
1863
|
-
|
|
1864
|
-
`Promise`\<`boolean`\>
|
|
1865
|
-
|
|
1866
|
-
### saturatedFloatToInt
|
|
1867
|
-
|
|
1868
|
-
```ts
|
|
1869
|
-
readonly saturatedFloatToInt: () => Promise<boolean>;
|
|
1870
|
-
```
|
|
1871
|
-
|
|
1872
|
-
### Returns
|
|
1873
|
-
|
|
1874
|
-
`Promise`\<`boolean`\>
|
|
1875
|
-
|
|
1876
|
-
### signExtensions
|
|
1877
|
-
|
|
1878
|
-
```ts
|
|
1879
|
-
readonly signExtensions: () => Promise<boolean>;
|
|
1880
|
-
```
|
|
1881
|
-
|
|
1882
|
-
### Returns
|
|
1883
|
-
|
|
1884
|
-
`Promise`\<`boolean`\>
|
|
1885
|
-
|
|
1886
|
-
### simd
|
|
1887
|
-
|
|
1888
|
-
```ts
|
|
1889
|
-
readonly simd: () => Promise<boolean>;
|
|
1890
|
-
```
|
|
1891
|
-
|
|
1892
|
-
### Returns
|
|
1893
|
-
|
|
1894
|
-
`Promise`\<`boolean`\>
|
|
1895
|
-
|
|
1896
|
-
### streamingCompilation
|
|
1897
|
-
|
|
1898
|
-
```ts
|
|
1899
|
-
readonly streamingCompilation: () => Promise<boolean>;
|
|
1900
|
-
```
|
|
1901
|
-
|
|
1902
|
-
### Returns
|
|
1903
|
-
|
|
1904
|
-
`Promise`\<`boolean`\>
|
|
1905
|
-
|
|
1906
|
-
### tailCall
|
|
1907
|
-
|
|
1908
|
-
```ts
|
|
1909
|
-
readonly tailCall: () => Promise<boolean>;
|
|
1910
|
-
```
|
|
1911
|
-
|
|
1912
|
-
### Returns
|
|
1913
|
-
|
|
1914
|
-
`Promise`\<`boolean`\>
|
|
1915
|
-
|
|
1916
|
-
### threads
|
|
1917
|
-
|
|
1918
|
-
```ts
|
|
1919
|
-
readonly threads: () => Promise<boolean>;
|
|
1920
|
-
```
|
|
1921
|
-
|
|
1922
|
-
### Returns
|
|
1923
|
-
|
|
1924
|
-
`Promise`\<`boolean`\>
|
|
1925
|
-
|
|
1926
|
-
### <a id="hasEmptyFields"></a>hasEmptyFields
|
|
1927
|
-
|
|
1928
|
-
[**@xyo-network/core**](#../README)
|
|
1929
|
-
|
|
1930
|
-
***
|
|
1931
|
-
|
|
1932
|
-
```ts
|
|
1933
|
-
const hasEmptyFields: <T>(obj) => boolean;
|
|
1934
|
-
```
|
|
1935
|
-
|
|
1936
|
-
## Type Parameters
|
|
1937
|
-
|
|
1938
|
-
### T
|
|
1939
|
-
|
|
1940
|
-
`T` *extends* `EmptyObject`
|
|
1941
|
-
|
|
1942
|
-
## Parameters
|
|
1943
|
-
|
|
1944
|
-
### obj
|
|
1945
|
-
|
|
1946
|
-
`T`
|
|
1947
|
-
|
|
1948
|
-
## Returns
|
|
1949
|
-
|
|
1950
|
-
`boolean`
|
|
1951
|
-
|
|
1952
|
-
### <a id="removeEmptyFields"></a>removeEmptyFields
|
|
1953
|
-
|
|
1954
|
-
[**@xyo-network/core**](#../README)
|
|
1955
|
-
|
|
1956
|
-
***
|
|
1957
|
-
|
|
1958
|
-
```ts
|
|
1959
|
-
const removeEmptyFields: <T>(obj) => T;
|
|
1960
|
-
```
|
|
1961
|
-
|
|
1962
|
-
## Type Parameters
|
|
1963
|
-
|
|
1964
|
-
### T
|
|
1965
|
-
|
|
1966
|
-
`T` *extends* `EmptyObject`
|
|
1967
|
-
|
|
1968
|
-
## Parameters
|
|
1969
|
-
|
|
1970
|
-
### obj
|
|
1971
|
-
|
|
1972
|
-
`T`
|
|
1973
|
-
|
|
1974
|
-
## Returns
|
|
1975
|
-
|
|
1976
|
-
`T`
|
|
1977
|
-
|
|
1978
|
-
### <a id="sortFields"></a>sortFields
|
|
1979
|
-
|
|
1980
|
-
[**@xyo-network/core**](#../README)
|
|
1981
|
-
|
|
1982
|
-
***
|
|
1983
|
-
|
|
1984
|
-
```ts
|
|
1985
|
-
const sortFields: <T>(obj) => T;
|
|
1986
|
-
```
|
|
1987
|
-
|
|
1988
|
-
## Type Parameters
|
|
1989
|
-
|
|
1990
|
-
### T
|
|
1991
|
-
|
|
1992
|
-
`T` *extends* `EmptyObject`
|
|
1993
|
-
|
|
1994
|
-
## Parameters
|
|
1995
|
-
|
|
1996
|
-
### obj
|
|
1997
|
-
|
|
1998
|
-
`T`
|
|
1999
|
-
|
|
2000
|
-
## Returns
|
|
2001
|
-
|
|
2002
|
-
`T`
|
|
2003
41
|
|
|
2004
42
|
|
|
2005
43
|
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|