@xyo-network/xl1-wrappers 1.7.15
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/LICENSE +165 -0
- package/README.md +2531 -0
- package/dist/neutral/Base.d.ts +17 -0
- package/dist/neutral/Base.d.ts.map +1 -0
- package/dist/neutral/Fees.d.ts +14 -0
- package/dist/neutral/Fees.d.ts.map +1 -0
- package/dist/neutral/Signature.d.ts +11 -0
- package/dist/neutral/Signature.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +6 -0
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/index.mjs +257 -0
- package/dist/neutral/index.mjs.map +1 -0
- package/dist/neutral/lib/createSignatureWrappers.d.ts +4 -0
- package/dist/neutral/lib/createSignatureWrappers.d.ts.map +1 -0
- package/dist/neutral/lib/index.d.ts +2 -0
- package/dist/neutral/lib/index.d.ts.map +1 -0
- package/dist/neutral/transaction/HydratedTransaction.d.ts +37 -0
- package/dist/neutral/transaction/HydratedTransaction.d.ts.map +1 -0
- package/dist/neutral/transaction/index.d.ts +2 -0
- package/dist/neutral/transaction/index.d.ts.map +1 -0
- package/package.json +65 -0
- package/src/Base.ts +42 -0
- package/src/Fees.ts +55 -0
- package/src/Signature.ts +26 -0
- package/src/index.ts +5 -0
- package/src/lib/createSignatureWrappers.ts +16 -0
- package/src/lib/index.ts +1 -0
- package/src/transaction/HydratedTransaction.ts +172 -0
- package/src/transaction/index.ts +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,2531 @@
|
|
|
1
|
+
# @xyo-network/chain-wrappers
|
|
2
|
+
|
|
3
|
+
[![logo][]](https://xyo.network)
|
|
4
|
+
|
|
5
|
+
[![npm-badge][]][npm-link]
|
|
6
|
+
[![npm-downloads-badge][]][npm-link]
|
|
7
|
+
[![jsdelivr-badge][]][jsdelivr-link]
|
|
8
|
+
[![npm-license-badge][]](LICENSE)
|
|
9
|
+
[![socket-badge][]][socket-link]
|
|
10
|
+
|
|
11
|
+
XYO Layer One SDK Wrappers
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Reference
|
|
16
|
+
|
|
17
|
+
**@xyo-network/chain-wrappers**
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
## Classes
|
|
22
|
+
|
|
23
|
+
- [FeesWrapper](#classes/FeesWrapper)
|
|
24
|
+
- [SignatureWrapper](#classes/SignatureWrapper)
|
|
25
|
+
- [ShiftedBigInt](#classes/ShiftedBigInt)
|
|
26
|
+
- [XL1Amount](#classes/XL1Amount)
|
|
27
|
+
- [HydratedBlockWrapper](#classes/HydratedBlockWrapper)
|
|
28
|
+
- [IndexedHydratedBlockRangeStore](#classes/IndexedHydratedBlockRangeStore)
|
|
29
|
+
- [HydratedTransactionWrapper](#classes/HydratedTransactionWrapper)
|
|
30
|
+
|
|
31
|
+
## Interfaces
|
|
32
|
+
|
|
33
|
+
- [XL1AmountInstance](#interfaces/XL1AmountInstance)
|
|
34
|
+
- [HydratedBlockStoreInstance](#interfaces/HydratedBlockStoreInstance)
|
|
35
|
+
- [IndexedHydratedBlockStoreInstance](#interfaces/IndexedHydratedBlockStoreInstance)
|
|
36
|
+
- [HydratedBlockRangeStoreParams](#interfaces/HydratedBlockRangeStoreParams)
|
|
37
|
+
- [IndexedHydratedBlockRangeStoreInstance](#interfaces/IndexedHydratedBlockRangeStoreInstance)
|
|
38
|
+
|
|
39
|
+
## Type Aliases
|
|
40
|
+
|
|
41
|
+
- [HydratedBlockStoreParams](#type-aliases/HydratedBlockStoreParams)
|
|
42
|
+
|
|
43
|
+
## Functions
|
|
44
|
+
|
|
45
|
+
- [splitOnDecimal](#functions/splitOnDecimal)
|
|
46
|
+
- [splitOnDecimalToString](#functions/splitOnDecimalToString)
|
|
47
|
+
|
|
48
|
+
### classes
|
|
49
|
+
|
|
50
|
+
### <a id="FeesWrapper"></a>FeesWrapper
|
|
51
|
+
|
|
52
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
53
|
+
|
|
54
|
+
***
|
|
55
|
+
|
|
56
|
+
## Implements
|
|
57
|
+
|
|
58
|
+
- `TransactionFeesInstance`
|
|
59
|
+
|
|
60
|
+
## Constructors
|
|
61
|
+
|
|
62
|
+
### Constructor
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
new FeesWrapper(__namedParameters): FeesWrapper;
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Parameters
|
|
69
|
+
|
|
70
|
+
#### \_\_namedParameters
|
|
71
|
+
|
|
72
|
+
`TransactionFeesHex` | `TransactionFeesBigInt`
|
|
73
|
+
|
|
74
|
+
### Returns
|
|
75
|
+
|
|
76
|
+
`FeesWrapper`
|
|
77
|
+
|
|
78
|
+
## Properties
|
|
79
|
+
|
|
80
|
+
### base
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
base: AttoXL1;
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Implementation of
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
TransactionFeesInstance.base
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
***
|
|
93
|
+
|
|
94
|
+
### gasLimit
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
gasLimit: AttoXL1;
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Implementation of
|
|
101
|
+
|
|
102
|
+
```ts
|
|
103
|
+
TransactionFeesInstance.gasLimit
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
***
|
|
107
|
+
|
|
108
|
+
### gasPrice
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
gasPrice: AttoXL1;
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Implementation of
|
|
115
|
+
|
|
116
|
+
```ts
|
|
117
|
+
TransactionFeesInstance.gasPrice
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
***
|
|
121
|
+
|
|
122
|
+
### priority
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
priority: AttoXL1;
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Implementation of
|
|
129
|
+
|
|
130
|
+
```ts
|
|
131
|
+
TransactionFeesInstance.priority
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Methods
|
|
135
|
+
|
|
136
|
+
### validate()
|
|
137
|
+
|
|
138
|
+
```ts
|
|
139
|
+
static validate(__namedParameters): Promisable<Error[]>;
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
#### \_\_namedParameters
|
|
145
|
+
|
|
146
|
+
`TransactionFeesHex` | `TransactionFeesBigInt`
|
|
147
|
+
|
|
148
|
+
### Returns
|
|
149
|
+
|
|
150
|
+
`Promisable`\<`Error`[]\>
|
|
151
|
+
|
|
152
|
+
***
|
|
153
|
+
|
|
154
|
+
### validate()
|
|
155
|
+
|
|
156
|
+
```ts
|
|
157
|
+
validate(): Promise<Error[]>;
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Returns
|
|
161
|
+
|
|
162
|
+
`Promise`\<`Error`[]\>
|
|
163
|
+
|
|
164
|
+
### Implementation of
|
|
165
|
+
|
|
166
|
+
```ts
|
|
167
|
+
TransactionFeesInstance.validate
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### <a id="HydratedBlockWrapper"></a>HydratedBlockWrapper
|
|
171
|
+
|
|
172
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
173
|
+
|
|
174
|
+
***
|
|
175
|
+
|
|
176
|
+
## Type Parameters
|
|
177
|
+
|
|
178
|
+
### T
|
|
179
|
+
|
|
180
|
+
`T` *extends* `HydratedBlock`
|
|
181
|
+
|
|
182
|
+
## Implements
|
|
183
|
+
|
|
184
|
+
- `HydratedBlockInstance`\<\[`WithHashStorageMeta`\<`T`\[`0`\]\>, `WithHashStorageMeta`\<`T`\[`1`\]\[`number`\]\>[]\]\>
|
|
185
|
+
|
|
186
|
+
## Constructors
|
|
187
|
+
|
|
188
|
+
### Constructor
|
|
189
|
+
|
|
190
|
+
```ts
|
|
191
|
+
protected new HydratedBlockWrapper<T>(data): HydratedBlockWrapper<T>;
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Parameters
|
|
195
|
+
|
|
196
|
+
#### data
|
|
197
|
+
|
|
198
|
+
\[`WithHashStorageMeta`\<`T`\[`0`\]\>, `WithHashStorageMeta`\<`T`\[`1`\]\[`number`\]\>[]\]
|
|
199
|
+
|
|
200
|
+
### Returns
|
|
201
|
+
|
|
202
|
+
`HydratedBlockWrapper`\<`T`\>
|
|
203
|
+
|
|
204
|
+
## Properties
|
|
205
|
+
|
|
206
|
+
### data
|
|
207
|
+
|
|
208
|
+
```ts
|
|
209
|
+
data: [WithHashStorageMeta<T[0]>, WithHashStorageMeta<T[1][number]>[]];
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Implementation of
|
|
213
|
+
|
|
214
|
+
```ts
|
|
215
|
+
HydratedBlockInstance.data
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
***
|
|
219
|
+
|
|
220
|
+
### allPayloadsCache
|
|
221
|
+
|
|
222
|
+
```ts
|
|
223
|
+
protected allPayloadsCache: WithHashStorageMeta<WithHashStorageMeta<T[1][number]>>[] = [];
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
***
|
|
227
|
+
|
|
228
|
+
### transactionsCache
|
|
229
|
+
|
|
230
|
+
```ts
|
|
231
|
+
protected transactionsCache: HydratedTransactionInstance<HydratedTransaction, AllowedBlockPayload>[] = [];
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## Accessors
|
|
235
|
+
|
|
236
|
+
### block
|
|
237
|
+
|
|
238
|
+
### Get Signature
|
|
239
|
+
|
|
240
|
+
```ts
|
|
241
|
+
get block(): number;
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
#### Returns
|
|
245
|
+
|
|
246
|
+
`number`
|
|
247
|
+
|
|
248
|
+
***
|
|
249
|
+
|
|
250
|
+
### boundWitness
|
|
251
|
+
|
|
252
|
+
### Get Signature
|
|
253
|
+
|
|
254
|
+
```ts
|
|
255
|
+
get boundWitness(): WithHashStorageMeta<T[0]>;
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
#### Returns
|
|
259
|
+
|
|
260
|
+
`WithHashStorageMeta`\<`T`\[`0`\]\>
|
|
261
|
+
|
|
262
|
+
### Implementation of
|
|
263
|
+
|
|
264
|
+
```ts
|
|
265
|
+
HydratedBlockInstance.boundWitness
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
***
|
|
269
|
+
|
|
270
|
+
### chain
|
|
271
|
+
|
|
272
|
+
### Get Signature
|
|
273
|
+
|
|
274
|
+
```ts
|
|
275
|
+
get chain(): Lowercase<string>;
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
#### Returns
|
|
279
|
+
|
|
280
|
+
`Lowercase`\<`string`\>
|
|
281
|
+
|
|
282
|
+
***
|
|
283
|
+
|
|
284
|
+
### payloadCount
|
|
285
|
+
|
|
286
|
+
### Get Signature
|
|
287
|
+
|
|
288
|
+
```ts
|
|
289
|
+
get payloadCount(): number;
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
#### Returns
|
|
293
|
+
|
|
294
|
+
`number`
|
|
295
|
+
|
|
296
|
+
### Implementation of
|
|
297
|
+
|
|
298
|
+
```ts
|
|
299
|
+
HydratedBlockInstance.payloadCount
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
***
|
|
303
|
+
|
|
304
|
+
### payloads
|
|
305
|
+
|
|
306
|
+
### Get Signature
|
|
307
|
+
|
|
308
|
+
```ts
|
|
309
|
+
get payloads(): T[1][number][];
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
#### Returns
|
|
313
|
+
|
|
314
|
+
`T`\[`1`\]\[`number`\][]
|
|
315
|
+
|
|
316
|
+
### Implementation of
|
|
317
|
+
|
|
318
|
+
```ts
|
|
319
|
+
HydratedBlockInstance.payloads
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
***
|
|
323
|
+
|
|
324
|
+
### reward
|
|
325
|
+
|
|
326
|
+
### Get Signature
|
|
327
|
+
|
|
328
|
+
```ts
|
|
329
|
+
get reward(): bigint;
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
#### Returns
|
|
333
|
+
|
|
334
|
+
`bigint`
|
|
335
|
+
|
|
336
|
+
### Implementation of
|
|
337
|
+
|
|
338
|
+
```ts
|
|
339
|
+
HydratedBlockInstance.reward
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
***
|
|
343
|
+
|
|
344
|
+
### signatureCount
|
|
345
|
+
|
|
346
|
+
### Get Signature
|
|
347
|
+
|
|
348
|
+
```ts
|
|
349
|
+
get signatureCount(): number;
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
#### Returns
|
|
353
|
+
|
|
354
|
+
`number`
|
|
355
|
+
|
|
356
|
+
### Implementation of
|
|
357
|
+
|
|
358
|
+
```ts
|
|
359
|
+
HydratedBlockInstance.signatureCount
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
***
|
|
363
|
+
|
|
364
|
+
### signatures
|
|
365
|
+
|
|
366
|
+
### Get Signature
|
|
367
|
+
|
|
368
|
+
```ts
|
|
369
|
+
get signatures(): SignatureInstance[];
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
#### Returns
|
|
373
|
+
|
|
374
|
+
`SignatureInstance`[]
|
|
375
|
+
|
|
376
|
+
### Implementation of
|
|
377
|
+
|
|
378
|
+
```ts
|
|
379
|
+
HydratedBlockInstance.signatures
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
***
|
|
383
|
+
|
|
384
|
+
### stepHashes
|
|
385
|
+
|
|
386
|
+
### Get Signature
|
|
387
|
+
|
|
388
|
+
```ts
|
|
389
|
+
get stepHashes(): Lowercase<string>[];
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
#### Returns
|
|
393
|
+
|
|
394
|
+
`Lowercase`\<`string`\>[]
|
|
395
|
+
|
|
396
|
+
***
|
|
397
|
+
|
|
398
|
+
### transactionCount
|
|
399
|
+
|
|
400
|
+
### Get Signature
|
|
401
|
+
|
|
402
|
+
```ts
|
|
403
|
+
get transactionCount(): number;
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
#### Returns
|
|
407
|
+
|
|
408
|
+
`number`
|
|
409
|
+
|
|
410
|
+
### Implementation of
|
|
411
|
+
|
|
412
|
+
```ts
|
|
413
|
+
HydratedBlockInstance.transactionCount
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
***
|
|
417
|
+
|
|
418
|
+
### transactions
|
|
419
|
+
|
|
420
|
+
### Get Signature
|
|
421
|
+
|
|
422
|
+
```ts
|
|
423
|
+
get transactions(): HydratedTransactionInstance<HydratedTransaction, AllowedBlockPayload>[];
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
#### Returns
|
|
427
|
+
|
|
428
|
+
`HydratedTransactionInstance`\<`HydratedTransaction`, `AllowedBlockPayload`\>[]
|
|
429
|
+
|
|
430
|
+
### Implementation of
|
|
431
|
+
|
|
432
|
+
```ts
|
|
433
|
+
HydratedBlockInstance.transactions
|
|
434
|
+
```
|
|
435
|
+
|
|
436
|
+
## Methods
|
|
437
|
+
|
|
438
|
+
### parse()
|
|
439
|
+
|
|
440
|
+
```ts
|
|
441
|
+
static parse<T>(block, validate): Promise<HydratedBlockInstance<HydratedBlock>>;
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
### Type Parameters
|
|
445
|
+
|
|
446
|
+
#### T
|
|
447
|
+
|
|
448
|
+
`T` *extends* `HydratedBlock`
|
|
449
|
+
|
|
450
|
+
### Parameters
|
|
451
|
+
|
|
452
|
+
#### block
|
|
453
|
+
|
|
454
|
+
`T`
|
|
455
|
+
|
|
456
|
+
#### validate
|
|
457
|
+
|
|
458
|
+
`boolean` = `false`
|
|
459
|
+
|
|
460
|
+
### Returns
|
|
461
|
+
|
|
462
|
+
`Promise`\<`HydratedBlockInstance`\<`HydratedBlock`\>\>
|
|
463
|
+
|
|
464
|
+
***
|
|
465
|
+
|
|
466
|
+
### payload()
|
|
467
|
+
|
|
468
|
+
```ts
|
|
469
|
+
payload(index): undefined | WithHashStorageMeta<T[1][number]>;
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
### Parameters
|
|
473
|
+
|
|
474
|
+
#### index
|
|
475
|
+
|
|
476
|
+
`number`
|
|
477
|
+
|
|
478
|
+
### Returns
|
|
479
|
+
|
|
480
|
+
`undefined` \| `WithHashStorageMeta`\<`T`\[`1`\]\[`number`\]\>
|
|
481
|
+
|
|
482
|
+
### Implementation of
|
|
483
|
+
|
|
484
|
+
```ts
|
|
485
|
+
HydratedBlockInstance.payload
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
***
|
|
489
|
+
|
|
490
|
+
### signature()
|
|
491
|
+
|
|
492
|
+
```ts
|
|
493
|
+
signature(index): undefined | SignatureInstance;
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
### Parameters
|
|
497
|
+
|
|
498
|
+
#### index
|
|
499
|
+
|
|
500
|
+
`number`
|
|
501
|
+
|
|
502
|
+
### Returns
|
|
503
|
+
|
|
504
|
+
`undefined` \| `SignatureInstance`
|
|
505
|
+
|
|
506
|
+
### Implementation of
|
|
507
|
+
|
|
508
|
+
```ts
|
|
509
|
+
HydratedBlockInstance.signature
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
***
|
|
513
|
+
|
|
514
|
+
### transaction()
|
|
515
|
+
|
|
516
|
+
```ts
|
|
517
|
+
transaction(index):
|
|
518
|
+
| undefined
|
|
519
|
+
| HydratedTransactionInstance<HydratedTransaction, AllowedBlockPayload>;
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
### Parameters
|
|
523
|
+
|
|
524
|
+
#### index
|
|
525
|
+
|
|
526
|
+
`number`
|
|
527
|
+
|
|
528
|
+
### Returns
|
|
529
|
+
|
|
530
|
+
\| `undefined`
|
|
531
|
+
\| `HydratedTransactionInstance`\<`HydratedTransaction`, `AllowedBlockPayload`\>
|
|
532
|
+
|
|
533
|
+
### Implementation of
|
|
534
|
+
|
|
535
|
+
```ts
|
|
536
|
+
HydratedBlockInstance.transaction
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
***
|
|
540
|
+
|
|
541
|
+
### validate()
|
|
542
|
+
|
|
543
|
+
```ts
|
|
544
|
+
validate(): Promise<Error[]>;
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
### Returns
|
|
548
|
+
|
|
549
|
+
`Promise`\<`Error`[]\>
|
|
550
|
+
|
|
551
|
+
### Implementation of
|
|
552
|
+
|
|
553
|
+
```ts
|
|
554
|
+
HydratedBlockInstance.validate
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
***
|
|
558
|
+
|
|
559
|
+
### validateState()
|
|
560
|
+
|
|
561
|
+
```ts
|
|
562
|
+
validateState(services): Promise<Error[]>;
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
### Parameters
|
|
566
|
+
|
|
567
|
+
#### services
|
|
568
|
+
|
|
569
|
+
##### accountBalance
|
|
570
|
+
|
|
571
|
+
`AccountBalanceServiceV2`
|
|
572
|
+
|
|
573
|
+
### Returns
|
|
574
|
+
|
|
575
|
+
`Promise`\<`Error`[]\>
|
|
576
|
+
|
|
577
|
+
***
|
|
578
|
+
|
|
579
|
+
### parse()
|
|
580
|
+
|
|
581
|
+
```ts
|
|
582
|
+
protected parse(validate): Promise<HydratedBlockInstance<[WithHashStorageMeta<T[0]>, WithHashStorageMeta<T[1][number]>[]]>>;
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
### Parameters
|
|
586
|
+
|
|
587
|
+
#### validate
|
|
588
|
+
|
|
589
|
+
`boolean` = `false`
|
|
590
|
+
|
|
591
|
+
### Returns
|
|
592
|
+
|
|
593
|
+
`Promise`\<`HydratedBlockInstance`\<\[`WithHashStorageMeta`\<`T`\[`0`\]\>, `WithHashStorageMeta`\<`T`\[`1`\]\[`number`\]\>[]\]\>\>
|
|
594
|
+
|
|
595
|
+
### <a id="HydratedTransactionWrapper"></a>HydratedTransactionWrapper
|
|
596
|
+
|
|
597
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
598
|
+
|
|
599
|
+
***
|
|
600
|
+
|
|
601
|
+
## Type Parameters
|
|
602
|
+
|
|
603
|
+
### T
|
|
604
|
+
|
|
605
|
+
`T` *extends* `HydratedTransaction`
|
|
606
|
+
|
|
607
|
+
## Implements
|
|
608
|
+
|
|
609
|
+
- `HydratedTransactionInstance`\<\[`T`\[`0`\], `T`\[`1`\]\[`number`\][]\]\>
|
|
610
|
+
|
|
611
|
+
## Constructors
|
|
612
|
+
|
|
613
|
+
### Constructor
|
|
614
|
+
|
|
615
|
+
```ts
|
|
616
|
+
protected new HydratedTransactionWrapper<T>(data): HydratedTransactionWrapper<T>;
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
### Parameters
|
|
620
|
+
|
|
621
|
+
#### data
|
|
622
|
+
|
|
623
|
+
`T`
|
|
624
|
+
|
|
625
|
+
### Returns
|
|
626
|
+
|
|
627
|
+
`HydratedTransactionWrapper`\<`T`\>
|
|
628
|
+
|
|
629
|
+
## Properties
|
|
630
|
+
|
|
631
|
+
### data
|
|
632
|
+
|
|
633
|
+
```ts
|
|
634
|
+
data: T;
|
|
635
|
+
```
|
|
636
|
+
|
|
637
|
+
### Implementation of
|
|
638
|
+
|
|
639
|
+
```ts
|
|
640
|
+
HydratedTransactionInstance.data
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
***
|
|
644
|
+
|
|
645
|
+
### fees
|
|
646
|
+
|
|
647
|
+
```ts
|
|
648
|
+
fees: TransactionFeesInstance;
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
### Implementation of
|
|
652
|
+
|
|
653
|
+
```ts
|
|
654
|
+
HydratedTransactionInstance.fees
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
***
|
|
658
|
+
|
|
659
|
+
### payloadsCache
|
|
660
|
+
|
|
661
|
+
```ts
|
|
662
|
+
protected payloadsCache: WithStorageMeta<Payload>[] = [];
|
|
663
|
+
```
|
|
664
|
+
|
|
665
|
+
## Accessors
|
|
666
|
+
|
|
667
|
+
### boundWitness
|
|
668
|
+
|
|
669
|
+
### Get Signature
|
|
670
|
+
|
|
671
|
+
```ts
|
|
672
|
+
get boundWitness(): T[0];
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
#### Returns
|
|
676
|
+
|
|
677
|
+
`T`\[`0`\]
|
|
678
|
+
|
|
679
|
+
### Implementation of
|
|
680
|
+
|
|
681
|
+
```ts
|
|
682
|
+
HydratedTransactionInstance.boundWitness
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
***
|
|
686
|
+
|
|
687
|
+
### elevatedPayloadCount
|
|
688
|
+
|
|
689
|
+
### Get Signature
|
|
690
|
+
|
|
691
|
+
```ts
|
|
692
|
+
get elevatedPayloadCount(): number;
|
|
693
|
+
```
|
|
694
|
+
|
|
695
|
+
#### Returns
|
|
696
|
+
|
|
697
|
+
`number`
|
|
698
|
+
|
|
699
|
+
### Implementation of
|
|
700
|
+
|
|
701
|
+
```ts
|
|
702
|
+
HydratedTransactionInstance.elevatedPayloadCount
|
|
703
|
+
```
|
|
704
|
+
|
|
705
|
+
***
|
|
706
|
+
|
|
707
|
+
### elevatedPayloads
|
|
708
|
+
|
|
709
|
+
### Get Signature
|
|
710
|
+
|
|
711
|
+
```ts
|
|
712
|
+
get elevatedPayloads(): WithStorageMeta<AllowedBlockPayload>[];
|
|
713
|
+
```
|
|
714
|
+
|
|
715
|
+
#### Returns
|
|
716
|
+
|
|
717
|
+
`WithStorageMeta`\<`AllowedBlockPayload`\>[]
|
|
718
|
+
|
|
719
|
+
### Implementation of
|
|
720
|
+
|
|
721
|
+
```ts
|
|
722
|
+
HydratedTransactionInstance.elevatedPayloads
|
|
723
|
+
```
|
|
724
|
+
|
|
725
|
+
***
|
|
726
|
+
|
|
727
|
+
### externalPayloads
|
|
728
|
+
|
|
729
|
+
### Get Signature
|
|
730
|
+
|
|
731
|
+
```ts
|
|
732
|
+
get externalPayloads(): Record<Hash, Schema | Payload>;
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
#### Returns
|
|
736
|
+
|
|
737
|
+
`Record`\<`Hash`, `Schema` \| `Payload`\>
|
|
738
|
+
|
|
739
|
+
### Implementation of
|
|
740
|
+
|
|
741
|
+
```ts
|
|
742
|
+
HydratedTransactionInstance.externalPayloads
|
|
743
|
+
```
|
|
744
|
+
|
|
745
|
+
***
|
|
746
|
+
|
|
747
|
+
### from
|
|
748
|
+
|
|
749
|
+
### Get Signature
|
|
750
|
+
|
|
751
|
+
```ts
|
|
752
|
+
get from(): Lowercase<string>;
|
|
753
|
+
```
|
|
754
|
+
|
|
755
|
+
#### Returns
|
|
756
|
+
|
|
757
|
+
`Lowercase`\<`string`\>
|
|
758
|
+
|
|
759
|
+
***
|
|
760
|
+
|
|
761
|
+
### payloadCount
|
|
762
|
+
|
|
763
|
+
### Get Signature
|
|
764
|
+
|
|
765
|
+
```ts
|
|
766
|
+
get payloadCount(): number;
|
|
767
|
+
```
|
|
768
|
+
|
|
769
|
+
#### Returns
|
|
770
|
+
|
|
771
|
+
`number`
|
|
772
|
+
|
|
773
|
+
### Implementation of
|
|
774
|
+
|
|
775
|
+
```ts
|
|
776
|
+
HydratedTransactionInstance.payloadCount
|
|
777
|
+
```
|
|
778
|
+
|
|
779
|
+
***
|
|
780
|
+
|
|
781
|
+
### payloads
|
|
782
|
+
|
|
783
|
+
### Get Signature
|
|
784
|
+
|
|
785
|
+
```ts
|
|
786
|
+
get payloads(): WithHashStorageMeta<WithStorageMeta<T[1][number]>>[];
|
|
787
|
+
```
|
|
788
|
+
|
|
789
|
+
#### Returns
|
|
790
|
+
|
|
791
|
+
`WithHashStorageMeta`\<`WithStorageMeta`\<`T`\[`1`\]\[`number`\]\>\>[]
|
|
792
|
+
|
|
793
|
+
### Implementation of
|
|
794
|
+
|
|
795
|
+
```ts
|
|
796
|
+
HydratedTransactionInstance.payloads
|
|
797
|
+
```
|
|
798
|
+
|
|
799
|
+
***
|
|
800
|
+
|
|
801
|
+
### privateExternalPayloads
|
|
802
|
+
|
|
803
|
+
### Get Signature
|
|
804
|
+
|
|
805
|
+
```ts
|
|
806
|
+
get privateExternalPayloads(): Record<Hash, Schema>;
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
#### Returns
|
|
810
|
+
|
|
811
|
+
`Record`\<`Hash`, `Schema`\>
|
|
812
|
+
|
|
813
|
+
### Implementation of
|
|
814
|
+
|
|
815
|
+
```ts
|
|
816
|
+
HydratedTransactionInstance.privateExternalPayloads
|
|
817
|
+
```
|
|
818
|
+
|
|
819
|
+
***
|
|
820
|
+
|
|
821
|
+
### publicExternalPayloads
|
|
822
|
+
|
|
823
|
+
### Get Signature
|
|
824
|
+
|
|
825
|
+
```ts
|
|
826
|
+
get publicExternalPayloads(): Payload[];
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
#### Returns
|
|
830
|
+
|
|
831
|
+
`Payload`[]
|
|
832
|
+
|
|
833
|
+
### Implementation of
|
|
834
|
+
|
|
835
|
+
```ts
|
|
836
|
+
HydratedTransactionInstance.publicExternalPayloads
|
|
837
|
+
```
|
|
838
|
+
|
|
839
|
+
***
|
|
840
|
+
|
|
841
|
+
### signatureCount
|
|
842
|
+
|
|
843
|
+
### Get Signature
|
|
844
|
+
|
|
845
|
+
```ts
|
|
846
|
+
get signatureCount(): number;
|
|
847
|
+
```
|
|
848
|
+
|
|
849
|
+
#### Returns
|
|
850
|
+
|
|
851
|
+
`number`
|
|
852
|
+
|
|
853
|
+
### Implementation of
|
|
854
|
+
|
|
855
|
+
```ts
|
|
856
|
+
HydratedTransactionInstance.signatureCount
|
|
857
|
+
```
|
|
858
|
+
|
|
859
|
+
***
|
|
860
|
+
|
|
861
|
+
### signatures
|
|
862
|
+
|
|
863
|
+
### Get Signature
|
|
864
|
+
|
|
865
|
+
```ts
|
|
866
|
+
get signatures(): SignatureInstance[];
|
|
867
|
+
```
|
|
868
|
+
|
|
869
|
+
#### Returns
|
|
870
|
+
|
|
871
|
+
`SignatureInstance`[]
|
|
872
|
+
|
|
873
|
+
### Implementation of
|
|
874
|
+
|
|
875
|
+
```ts
|
|
876
|
+
HydratedTransactionInstance.signatures
|
|
877
|
+
```
|
|
878
|
+
|
|
879
|
+
## Methods
|
|
880
|
+
|
|
881
|
+
### parse()
|
|
882
|
+
|
|
883
|
+
```ts
|
|
884
|
+
static parse<T>(transaction, validate): Promise<HydratedTransactionInstance<[T[0], T[1][number][]], AllowedBlockPayload>>;
|
|
885
|
+
```
|
|
886
|
+
|
|
887
|
+
### Type Parameters
|
|
888
|
+
|
|
889
|
+
#### T
|
|
890
|
+
|
|
891
|
+
`T` *extends* `HydratedTransaction`
|
|
892
|
+
|
|
893
|
+
### Parameters
|
|
894
|
+
|
|
895
|
+
#### transaction
|
|
896
|
+
|
|
897
|
+
`T`
|
|
898
|
+
|
|
899
|
+
#### validate
|
|
900
|
+
|
|
901
|
+
`boolean` = `false`
|
|
902
|
+
|
|
903
|
+
### Returns
|
|
904
|
+
|
|
905
|
+
`Promise`\<`HydratedTransactionInstance`\<\[`T`\[`0`\], `T`\[`1`\]\[`number`\][]\], `AllowedBlockPayload`\>\>
|
|
906
|
+
|
|
907
|
+
***
|
|
908
|
+
|
|
909
|
+
### elevatedPayload()
|
|
910
|
+
|
|
911
|
+
```ts
|
|
912
|
+
elevatedPayload(index):
|
|
913
|
+
| undefined
|
|
914
|
+
| WithHashStorageMeta<AllowedBlockPayload & T[1][number]>;
|
|
915
|
+
```
|
|
916
|
+
|
|
917
|
+
### Parameters
|
|
918
|
+
|
|
919
|
+
#### index
|
|
920
|
+
|
|
921
|
+
`number`
|
|
922
|
+
|
|
923
|
+
### Returns
|
|
924
|
+
|
|
925
|
+
\| `undefined`
|
|
926
|
+
\| `WithHashStorageMeta`\<AllowedBlockPayload & T\[1\]\[number\]\>
|
|
927
|
+
|
|
928
|
+
### Implementation of
|
|
929
|
+
|
|
930
|
+
```ts
|
|
931
|
+
HydratedTransactionInstance.elevatedPayload
|
|
932
|
+
```
|
|
933
|
+
|
|
934
|
+
***
|
|
935
|
+
|
|
936
|
+
### gasRequired()
|
|
937
|
+
|
|
938
|
+
```ts
|
|
939
|
+
gasRequired(): bigint;
|
|
940
|
+
```
|
|
941
|
+
|
|
942
|
+
### Returns
|
|
943
|
+
|
|
944
|
+
`bigint`
|
|
945
|
+
|
|
946
|
+
***
|
|
947
|
+
|
|
948
|
+
### payload()
|
|
949
|
+
|
|
950
|
+
```ts
|
|
951
|
+
payload(index): undefined | WithStorageMeta<Payload>;
|
|
952
|
+
```
|
|
953
|
+
|
|
954
|
+
### Parameters
|
|
955
|
+
|
|
956
|
+
#### index
|
|
957
|
+
|
|
958
|
+
`number`
|
|
959
|
+
|
|
960
|
+
### Returns
|
|
961
|
+
|
|
962
|
+
`undefined` \| `WithStorageMeta`\<`Payload`\>
|
|
963
|
+
|
|
964
|
+
### Implementation of
|
|
965
|
+
|
|
966
|
+
```ts
|
|
967
|
+
HydratedTransactionInstance.payload
|
|
968
|
+
```
|
|
969
|
+
|
|
970
|
+
***
|
|
971
|
+
|
|
972
|
+
### reward()
|
|
973
|
+
|
|
974
|
+
```ts
|
|
975
|
+
reward(): bigint;
|
|
976
|
+
```
|
|
977
|
+
|
|
978
|
+
### Returns
|
|
979
|
+
|
|
980
|
+
`bigint`
|
|
981
|
+
|
|
982
|
+
### Implementation of
|
|
983
|
+
|
|
984
|
+
```ts
|
|
985
|
+
HydratedTransactionInstance.reward
|
|
986
|
+
```
|
|
987
|
+
|
|
988
|
+
***
|
|
989
|
+
|
|
990
|
+
### signature()
|
|
991
|
+
|
|
992
|
+
```ts
|
|
993
|
+
signature(index): undefined | SignatureInstance;
|
|
994
|
+
```
|
|
995
|
+
|
|
996
|
+
### Parameters
|
|
997
|
+
|
|
998
|
+
#### index
|
|
999
|
+
|
|
1000
|
+
`number`
|
|
1001
|
+
|
|
1002
|
+
### Returns
|
|
1003
|
+
|
|
1004
|
+
`undefined` \| `SignatureInstance`
|
|
1005
|
+
|
|
1006
|
+
### Implementation of
|
|
1007
|
+
|
|
1008
|
+
```ts
|
|
1009
|
+
HydratedTransactionInstance.signature
|
|
1010
|
+
```
|
|
1011
|
+
|
|
1012
|
+
***
|
|
1013
|
+
|
|
1014
|
+
### validate()
|
|
1015
|
+
|
|
1016
|
+
```ts
|
|
1017
|
+
validate(): Promise<Error[]>;
|
|
1018
|
+
```
|
|
1019
|
+
|
|
1020
|
+
### Returns
|
|
1021
|
+
|
|
1022
|
+
`Promise`\<`Error`[]\>
|
|
1023
|
+
|
|
1024
|
+
### Implementation of
|
|
1025
|
+
|
|
1026
|
+
```ts
|
|
1027
|
+
HydratedTransactionInstance.validate
|
|
1028
|
+
```
|
|
1029
|
+
|
|
1030
|
+
***
|
|
1031
|
+
|
|
1032
|
+
### parse()
|
|
1033
|
+
|
|
1034
|
+
```ts
|
|
1035
|
+
protected parse(validate): Promise<HydratedTransactionInstance<[WithHashStorageMeta<T[0]>, WithHashStorageMeta<T[1][number]>[]], AllowedBlockPayload>>;
|
|
1036
|
+
```
|
|
1037
|
+
|
|
1038
|
+
### Parameters
|
|
1039
|
+
|
|
1040
|
+
#### validate
|
|
1041
|
+
|
|
1042
|
+
`boolean` = `false`
|
|
1043
|
+
|
|
1044
|
+
### Returns
|
|
1045
|
+
|
|
1046
|
+
`Promise`\<`HydratedTransactionInstance`\<\[`WithHashStorageMeta`\<`T`\[`0`\]\>, `WithHashStorageMeta`\<`T`\[`1`\]\[`number`\]\>[]\], `AllowedBlockPayload`\>\>
|
|
1047
|
+
|
|
1048
|
+
### <a id="IndexedHydratedBlockRangeStore"></a>IndexedHydratedBlockRangeStore
|
|
1049
|
+
|
|
1050
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
1051
|
+
|
|
1052
|
+
***
|
|
1053
|
+
|
|
1054
|
+
## Extends
|
|
1055
|
+
|
|
1056
|
+
- `BaseEmitter`\<[`HydratedBlockRangeStoreParams`](#../interfaces/HydratedBlockRangeStoreParams)\>
|
|
1057
|
+
|
|
1058
|
+
## Implements
|
|
1059
|
+
|
|
1060
|
+
- [`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance)
|
|
1061
|
+
|
|
1062
|
+
## Constructors
|
|
1063
|
+
|
|
1064
|
+
### Constructor
|
|
1065
|
+
|
|
1066
|
+
```ts
|
|
1067
|
+
protected new IndexedHydratedBlockRangeStore(
|
|
1068
|
+
params,
|
|
1069
|
+
firstNumber,
|
|
1070
|
+
lastNumber): IndexedHydratedBlockRangeStore;
|
|
1071
|
+
```
|
|
1072
|
+
|
|
1073
|
+
### Parameters
|
|
1074
|
+
|
|
1075
|
+
#### params
|
|
1076
|
+
|
|
1077
|
+
[`HydratedBlockRangeStoreParams`](#../interfaces/HydratedBlockRangeStoreParams)
|
|
1078
|
+
|
|
1079
|
+
#### firstNumber
|
|
1080
|
+
|
|
1081
|
+
`number`
|
|
1082
|
+
|
|
1083
|
+
#### lastNumber
|
|
1084
|
+
|
|
1085
|
+
`number`
|
|
1086
|
+
|
|
1087
|
+
### Returns
|
|
1088
|
+
|
|
1089
|
+
`IndexedHydratedBlockRangeStore`
|
|
1090
|
+
|
|
1091
|
+
### Overrides
|
|
1092
|
+
|
|
1093
|
+
```ts
|
|
1094
|
+
BaseEmitter<HydratedBlockRangeStoreParams>.constructor
|
|
1095
|
+
```
|
|
1096
|
+
|
|
1097
|
+
## Accessors
|
|
1098
|
+
|
|
1099
|
+
### count
|
|
1100
|
+
|
|
1101
|
+
### Get Signature
|
|
1102
|
+
|
|
1103
|
+
```ts
|
|
1104
|
+
get count(): number;
|
|
1105
|
+
```
|
|
1106
|
+
|
|
1107
|
+
#### Returns
|
|
1108
|
+
|
|
1109
|
+
`number`
|
|
1110
|
+
|
|
1111
|
+
### Implementation of
|
|
1112
|
+
|
|
1113
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`count`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#count)
|
|
1114
|
+
|
|
1115
|
+
***
|
|
1116
|
+
|
|
1117
|
+
### numberRange
|
|
1118
|
+
|
|
1119
|
+
### Get Signature
|
|
1120
|
+
|
|
1121
|
+
```ts
|
|
1122
|
+
get numberRange(): [number, number];
|
|
1123
|
+
```
|
|
1124
|
+
|
|
1125
|
+
#### Returns
|
|
1126
|
+
|
|
1127
|
+
\[`number`, `number`\]
|
|
1128
|
+
|
|
1129
|
+
### Implementation of
|
|
1130
|
+
|
|
1131
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`numberRange`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#numberrange)
|
|
1132
|
+
|
|
1133
|
+
***
|
|
1134
|
+
|
|
1135
|
+
### range
|
|
1136
|
+
|
|
1137
|
+
### Get Signature
|
|
1138
|
+
|
|
1139
|
+
```ts
|
|
1140
|
+
get range(): [Lowercase<string>, Lowercase<string>];
|
|
1141
|
+
```
|
|
1142
|
+
|
|
1143
|
+
#### Returns
|
|
1144
|
+
|
|
1145
|
+
\[`Lowercase`\<`string`\>, `Lowercase`\<`string`\>\]
|
|
1146
|
+
|
|
1147
|
+
### Implementation of
|
|
1148
|
+
|
|
1149
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`range`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#range)
|
|
1150
|
+
|
|
1151
|
+
## Methods
|
|
1152
|
+
|
|
1153
|
+
### create()
|
|
1154
|
+
|
|
1155
|
+
```ts
|
|
1156
|
+
static create(params): Promise<IndexedHydratedBlockRangeStore>;
|
|
1157
|
+
```
|
|
1158
|
+
|
|
1159
|
+
### Parameters
|
|
1160
|
+
|
|
1161
|
+
#### params
|
|
1162
|
+
|
|
1163
|
+
[`HydratedBlockRangeStoreParams`](#../interfaces/HydratedBlockRangeStoreParams)
|
|
1164
|
+
|
|
1165
|
+
### Returns
|
|
1166
|
+
|
|
1167
|
+
`Promise`\<`IndexedHydratedBlockRangeStore`\>
|
|
1168
|
+
|
|
1169
|
+
***
|
|
1170
|
+
|
|
1171
|
+
### first()
|
|
1172
|
+
|
|
1173
|
+
```ts
|
|
1174
|
+
first(): Promise<HydratedBlock>;
|
|
1175
|
+
```
|
|
1176
|
+
|
|
1177
|
+
### Returns
|
|
1178
|
+
|
|
1179
|
+
`Promise`\<`HydratedBlock`\>
|
|
1180
|
+
|
|
1181
|
+
### Implementation of
|
|
1182
|
+
|
|
1183
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`first`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#first)
|
|
1184
|
+
|
|
1185
|
+
***
|
|
1186
|
+
|
|
1187
|
+
### fromHash()
|
|
1188
|
+
|
|
1189
|
+
```ts
|
|
1190
|
+
fromHash(hash): Promise<undefined | HydratedBlock>;
|
|
1191
|
+
```
|
|
1192
|
+
|
|
1193
|
+
### Parameters
|
|
1194
|
+
|
|
1195
|
+
#### hash
|
|
1196
|
+
|
|
1197
|
+
`Lowercase`\<`string`\>
|
|
1198
|
+
|
|
1199
|
+
### Returns
|
|
1200
|
+
|
|
1201
|
+
`Promise`\<`undefined` \| `HydratedBlock`\>
|
|
1202
|
+
|
|
1203
|
+
### Implementation of
|
|
1204
|
+
|
|
1205
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`fromHash`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#fromhash)
|
|
1206
|
+
|
|
1207
|
+
***
|
|
1208
|
+
|
|
1209
|
+
### fromNumber()
|
|
1210
|
+
|
|
1211
|
+
```ts
|
|
1212
|
+
fromNumber(number): Promisable<undefined | HydratedBlock>;
|
|
1213
|
+
```
|
|
1214
|
+
|
|
1215
|
+
### Parameters
|
|
1216
|
+
|
|
1217
|
+
#### number
|
|
1218
|
+
|
|
1219
|
+
`number`
|
|
1220
|
+
|
|
1221
|
+
### Returns
|
|
1222
|
+
|
|
1223
|
+
`Promisable`\<`undefined` \| `HydratedBlock`\>
|
|
1224
|
+
|
|
1225
|
+
### Implementation of
|
|
1226
|
+
|
|
1227
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`fromNumber`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#fromnumber)
|
|
1228
|
+
|
|
1229
|
+
***
|
|
1230
|
+
|
|
1231
|
+
### last()
|
|
1232
|
+
|
|
1233
|
+
```ts
|
|
1234
|
+
last(): Promise<HydratedBlock>;
|
|
1235
|
+
```
|
|
1236
|
+
|
|
1237
|
+
### Returns
|
|
1238
|
+
|
|
1239
|
+
`Promise`\<`HydratedBlock`\>
|
|
1240
|
+
|
|
1241
|
+
### Implementation of
|
|
1242
|
+
|
|
1243
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`last`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#last)
|
|
1244
|
+
|
|
1245
|
+
***
|
|
1246
|
+
|
|
1247
|
+
### next()
|
|
1248
|
+
|
|
1249
|
+
### Call Signature
|
|
1250
|
+
|
|
1251
|
+
```ts
|
|
1252
|
+
next(from): Promise<undefined | HydratedBlock>;
|
|
1253
|
+
```
|
|
1254
|
+
|
|
1255
|
+
#### Parameters
|
|
1256
|
+
|
|
1257
|
+
##### from
|
|
1258
|
+
|
|
1259
|
+
`HydratedBlock`
|
|
1260
|
+
|
|
1261
|
+
#### Returns
|
|
1262
|
+
|
|
1263
|
+
`Promise`\<`undefined` \| `HydratedBlock`\>
|
|
1264
|
+
|
|
1265
|
+
#### Implementation of
|
|
1266
|
+
|
|
1267
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`next`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#next)
|
|
1268
|
+
|
|
1269
|
+
### Call Signature
|
|
1270
|
+
|
|
1271
|
+
```ts
|
|
1272
|
+
next(from, count): Promise<HydratedBlock[]>;
|
|
1273
|
+
```
|
|
1274
|
+
|
|
1275
|
+
#### Parameters
|
|
1276
|
+
|
|
1277
|
+
##### from
|
|
1278
|
+
|
|
1279
|
+
`HydratedBlock`
|
|
1280
|
+
|
|
1281
|
+
##### count
|
|
1282
|
+
|
|
1283
|
+
`number`
|
|
1284
|
+
|
|
1285
|
+
#### Returns
|
|
1286
|
+
|
|
1287
|
+
`Promise`\<`HydratedBlock`[]\>
|
|
1288
|
+
|
|
1289
|
+
#### Implementation of
|
|
1290
|
+
|
|
1291
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`next`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#next)
|
|
1292
|
+
|
|
1293
|
+
***
|
|
1294
|
+
|
|
1295
|
+
### prev()
|
|
1296
|
+
|
|
1297
|
+
### Call Signature
|
|
1298
|
+
|
|
1299
|
+
```ts
|
|
1300
|
+
prev(from): Promise<undefined | HydratedBlock>;
|
|
1301
|
+
```
|
|
1302
|
+
|
|
1303
|
+
#### Parameters
|
|
1304
|
+
|
|
1305
|
+
##### from
|
|
1306
|
+
|
|
1307
|
+
`HydratedBlock`
|
|
1308
|
+
|
|
1309
|
+
#### Returns
|
|
1310
|
+
|
|
1311
|
+
`Promise`\<`undefined` \| `HydratedBlock`\>
|
|
1312
|
+
|
|
1313
|
+
#### Implementation of
|
|
1314
|
+
|
|
1315
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`prev`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#prev)
|
|
1316
|
+
|
|
1317
|
+
### Call Signature
|
|
1318
|
+
|
|
1319
|
+
```ts
|
|
1320
|
+
prev(from, count): Promise<HydratedBlock[]>;
|
|
1321
|
+
```
|
|
1322
|
+
|
|
1323
|
+
#### Parameters
|
|
1324
|
+
|
|
1325
|
+
##### from
|
|
1326
|
+
|
|
1327
|
+
`HydratedBlock`
|
|
1328
|
+
|
|
1329
|
+
##### count
|
|
1330
|
+
|
|
1331
|
+
`number`
|
|
1332
|
+
|
|
1333
|
+
#### Returns
|
|
1334
|
+
|
|
1335
|
+
`Promise`\<`HydratedBlock`[]\>
|
|
1336
|
+
|
|
1337
|
+
#### Implementation of
|
|
1338
|
+
|
|
1339
|
+
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`prev`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#prev)
|
|
1340
|
+
|
|
1341
|
+
### <a id="ShiftedBigInt"></a>ShiftedBigInt
|
|
1342
|
+
|
|
1343
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
1344
|
+
|
|
1345
|
+
***
|
|
1346
|
+
|
|
1347
|
+
## Constructors
|
|
1348
|
+
|
|
1349
|
+
### Constructor
|
|
1350
|
+
|
|
1351
|
+
```ts
|
|
1352
|
+
new ShiftedBigInt(value, config): ShiftedBigInt;
|
|
1353
|
+
```
|
|
1354
|
+
|
|
1355
|
+
### Parameters
|
|
1356
|
+
|
|
1357
|
+
#### value
|
|
1358
|
+
|
|
1359
|
+
`bigint` | `ShiftedBigInt`
|
|
1360
|
+
|
|
1361
|
+
#### config
|
|
1362
|
+
|
|
1363
|
+
`Partial`\<`ShiftedBigIntConfig`\> = `{}`
|
|
1364
|
+
|
|
1365
|
+
### Returns
|
|
1366
|
+
|
|
1367
|
+
`ShiftedBigInt`
|
|
1368
|
+
|
|
1369
|
+
## Properties
|
|
1370
|
+
|
|
1371
|
+
### defaultConfig
|
|
1372
|
+
|
|
1373
|
+
```ts
|
|
1374
|
+
readonly static defaultConfig: ShiftedBigIntConfig;
|
|
1375
|
+
```
|
|
1376
|
+
|
|
1377
|
+
***
|
|
1378
|
+
|
|
1379
|
+
### config
|
|
1380
|
+
|
|
1381
|
+
```ts
|
|
1382
|
+
config: ShiftedBigIntConfig;
|
|
1383
|
+
```
|
|
1384
|
+
|
|
1385
|
+
***
|
|
1386
|
+
|
|
1387
|
+
### value
|
|
1388
|
+
|
|
1389
|
+
```ts
|
|
1390
|
+
value: bigint;
|
|
1391
|
+
```
|
|
1392
|
+
|
|
1393
|
+
## Accessors
|
|
1394
|
+
|
|
1395
|
+
### locale
|
|
1396
|
+
|
|
1397
|
+
### Get Signature
|
|
1398
|
+
|
|
1399
|
+
```ts
|
|
1400
|
+
get locale(): LocalesArgument;
|
|
1401
|
+
```
|
|
1402
|
+
|
|
1403
|
+
#### Returns
|
|
1404
|
+
|
|
1405
|
+
`LocalesArgument`
|
|
1406
|
+
|
|
1407
|
+
***
|
|
1408
|
+
|
|
1409
|
+
### maxCharacters
|
|
1410
|
+
|
|
1411
|
+
### Get Signature
|
|
1412
|
+
|
|
1413
|
+
```ts
|
|
1414
|
+
get maxCharacters(): number;
|
|
1415
|
+
```
|
|
1416
|
+
|
|
1417
|
+
#### Returns
|
|
1418
|
+
|
|
1419
|
+
`number`
|
|
1420
|
+
|
|
1421
|
+
***
|
|
1422
|
+
|
|
1423
|
+
### maxDecimal
|
|
1424
|
+
|
|
1425
|
+
### Get Signature
|
|
1426
|
+
|
|
1427
|
+
```ts
|
|
1428
|
+
get maxDecimal(): number;
|
|
1429
|
+
```
|
|
1430
|
+
|
|
1431
|
+
#### Returns
|
|
1432
|
+
|
|
1433
|
+
`number`
|
|
1434
|
+
|
|
1435
|
+
***
|
|
1436
|
+
|
|
1437
|
+
### minDecimals
|
|
1438
|
+
|
|
1439
|
+
### Get Signature
|
|
1440
|
+
|
|
1441
|
+
```ts
|
|
1442
|
+
get minDecimals(): number;
|
|
1443
|
+
```
|
|
1444
|
+
|
|
1445
|
+
#### Returns
|
|
1446
|
+
|
|
1447
|
+
`number`
|
|
1448
|
+
|
|
1449
|
+
***
|
|
1450
|
+
|
|
1451
|
+
### places
|
|
1452
|
+
|
|
1453
|
+
### Get Signature
|
|
1454
|
+
|
|
1455
|
+
```ts
|
|
1456
|
+
get places(): number;
|
|
1457
|
+
```
|
|
1458
|
+
|
|
1459
|
+
#### Returns
|
|
1460
|
+
|
|
1461
|
+
`number`
|
|
1462
|
+
|
|
1463
|
+
## Methods
|
|
1464
|
+
|
|
1465
|
+
### toFullString()
|
|
1466
|
+
|
|
1467
|
+
```ts
|
|
1468
|
+
toFullString(): string;
|
|
1469
|
+
```
|
|
1470
|
+
|
|
1471
|
+
### Returns
|
|
1472
|
+
|
|
1473
|
+
`string`
|
|
1474
|
+
|
|
1475
|
+
***
|
|
1476
|
+
|
|
1477
|
+
### toShortString()
|
|
1478
|
+
|
|
1479
|
+
```ts
|
|
1480
|
+
toShortString(): string;
|
|
1481
|
+
```
|
|
1482
|
+
|
|
1483
|
+
### Returns
|
|
1484
|
+
|
|
1485
|
+
`string`
|
|
1486
|
+
|
|
1487
|
+
***
|
|
1488
|
+
|
|
1489
|
+
### toString()
|
|
1490
|
+
|
|
1491
|
+
```ts
|
|
1492
|
+
toString(): string;
|
|
1493
|
+
```
|
|
1494
|
+
|
|
1495
|
+
### Returns
|
|
1496
|
+
|
|
1497
|
+
`string`
|
|
1498
|
+
|
|
1499
|
+
### <a id="SignatureWrapper"></a>SignatureWrapper
|
|
1500
|
+
|
|
1501
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
1502
|
+
|
|
1503
|
+
***
|
|
1504
|
+
|
|
1505
|
+
## Implements
|
|
1506
|
+
|
|
1507
|
+
- `SignatureInstance`
|
|
1508
|
+
|
|
1509
|
+
## Constructors
|
|
1510
|
+
|
|
1511
|
+
### Constructor
|
|
1512
|
+
|
|
1513
|
+
```ts
|
|
1514
|
+
new SignatureWrapper(
|
|
1515
|
+
signature,
|
|
1516
|
+
address,
|
|
1517
|
+
hash): SignatureWrapper;
|
|
1518
|
+
```
|
|
1519
|
+
|
|
1520
|
+
### Parameters
|
|
1521
|
+
|
|
1522
|
+
#### signature
|
|
1523
|
+
|
|
1524
|
+
`Lowercase`\<`string`\>
|
|
1525
|
+
|
|
1526
|
+
#### address
|
|
1527
|
+
|
|
1528
|
+
`Lowercase`\<`string`\>
|
|
1529
|
+
|
|
1530
|
+
#### hash
|
|
1531
|
+
|
|
1532
|
+
`Lowercase`\<`string`\>
|
|
1533
|
+
|
|
1534
|
+
### Returns
|
|
1535
|
+
|
|
1536
|
+
`SignatureWrapper`
|
|
1537
|
+
|
|
1538
|
+
## Properties
|
|
1539
|
+
|
|
1540
|
+
### address
|
|
1541
|
+
|
|
1542
|
+
```ts
|
|
1543
|
+
address: Lowercase<string>;
|
|
1544
|
+
```
|
|
1545
|
+
|
|
1546
|
+
### Implementation of
|
|
1547
|
+
|
|
1548
|
+
```ts
|
|
1549
|
+
SignatureInstance.address
|
|
1550
|
+
```
|
|
1551
|
+
|
|
1552
|
+
***
|
|
1553
|
+
|
|
1554
|
+
### hash
|
|
1555
|
+
|
|
1556
|
+
```ts
|
|
1557
|
+
hash: Lowercase<string>;
|
|
1558
|
+
```
|
|
1559
|
+
|
|
1560
|
+
### Implementation of
|
|
1561
|
+
|
|
1562
|
+
```ts
|
|
1563
|
+
SignatureInstance.hash
|
|
1564
|
+
```
|
|
1565
|
+
|
|
1566
|
+
***
|
|
1567
|
+
|
|
1568
|
+
### signature
|
|
1569
|
+
|
|
1570
|
+
```ts
|
|
1571
|
+
signature: Lowercase<string>;
|
|
1572
|
+
```
|
|
1573
|
+
|
|
1574
|
+
### Implementation of
|
|
1575
|
+
|
|
1576
|
+
```ts
|
|
1577
|
+
SignatureInstance.signature
|
|
1578
|
+
```
|
|
1579
|
+
|
|
1580
|
+
## Methods
|
|
1581
|
+
|
|
1582
|
+
### validate()
|
|
1583
|
+
|
|
1584
|
+
```ts
|
|
1585
|
+
static validate(
|
|
1586
|
+
hash,
|
|
1587
|
+
address,
|
|
1588
|
+
signature): Promise<Error[]>;
|
|
1589
|
+
```
|
|
1590
|
+
|
|
1591
|
+
### Parameters
|
|
1592
|
+
|
|
1593
|
+
#### hash
|
|
1594
|
+
|
|
1595
|
+
`Lowercase`\<`string`\>
|
|
1596
|
+
|
|
1597
|
+
#### address
|
|
1598
|
+
|
|
1599
|
+
`Lowercase`\<`string`\>
|
|
1600
|
+
|
|
1601
|
+
#### signature
|
|
1602
|
+
|
|
1603
|
+
`Lowercase`\<`string`\>
|
|
1604
|
+
|
|
1605
|
+
### Returns
|
|
1606
|
+
|
|
1607
|
+
`Promise`\<`Error`[]\>
|
|
1608
|
+
|
|
1609
|
+
***
|
|
1610
|
+
|
|
1611
|
+
### validate()
|
|
1612
|
+
|
|
1613
|
+
```ts
|
|
1614
|
+
validate(): Promise<Error[]>;
|
|
1615
|
+
```
|
|
1616
|
+
|
|
1617
|
+
### Returns
|
|
1618
|
+
|
|
1619
|
+
`Promise`\<`Error`[]\>
|
|
1620
|
+
|
|
1621
|
+
### Implementation of
|
|
1622
|
+
|
|
1623
|
+
```ts
|
|
1624
|
+
SignatureInstance.validate
|
|
1625
|
+
```
|
|
1626
|
+
|
|
1627
|
+
### <a id="XL1Amount"></a>XL1Amount
|
|
1628
|
+
|
|
1629
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
1630
|
+
|
|
1631
|
+
***
|
|
1632
|
+
|
|
1633
|
+
## Implements
|
|
1634
|
+
|
|
1635
|
+
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance)
|
|
1636
|
+
|
|
1637
|
+
## Constructors
|
|
1638
|
+
|
|
1639
|
+
### Constructor
|
|
1640
|
+
|
|
1641
|
+
```ts
|
|
1642
|
+
new XL1Amount(value, locale): XL1Amount;
|
|
1643
|
+
```
|
|
1644
|
+
|
|
1645
|
+
### Parameters
|
|
1646
|
+
|
|
1647
|
+
#### value
|
|
1648
|
+
|
|
1649
|
+
`bigint`
|
|
1650
|
+
|
|
1651
|
+
#### locale
|
|
1652
|
+
|
|
1653
|
+
`LocalesArgument` = `'en-US'`
|
|
1654
|
+
|
|
1655
|
+
### Returns
|
|
1656
|
+
|
|
1657
|
+
`XL1Amount`
|
|
1658
|
+
|
|
1659
|
+
## Properties
|
|
1660
|
+
|
|
1661
|
+
### value
|
|
1662
|
+
|
|
1663
|
+
```ts
|
|
1664
|
+
value: AttoXL1;
|
|
1665
|
+
```
|
|
1666
|
+
|
|
1667
|
+
### Implementation of
|
|
1668
|
+
|
|
1669
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`value`](../interfaces/XL1AmountInstance.md#value)
|
|
1670
|
+
|
|
1671
|
+
## Accessors
|
|
1672
|
+
|
|
1673
|
+
### milli
|
|
1674
|
+
|
|
1675
|
+
### Get Signature
|
|
1676
|
+
|
|
1677
|
+
```ts
|
|
1678
|
+
get milli(): MilliXL1;
|
|
1679
|
+
```
|
|
1680
|
+
|
|
1681
|
+
#### Returns
|
|
1682
|
+
|
|
1683
|
+
`MilliXL1`
|
|
1684
|
+
|
|
1685
|
+
### Implementation of
|
|
1686
|
+
|
|
1687
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`milli`](../interfaces/XL1AmountInstance.md#milli)
|
|
1688
|
+
|
|
1689
|
+
***
|
|
1690
|
+
|
|
1691
|
+
### micro
|
|
1692
|
+
|
|
1693
|
+
### Get Signature
|
|
1694
|
+
|
|
1695
|
+
```ts
|
|
1696
|
+
get micro(): MicroXL1;
|
|
1697
|
+
```
|
|
1698
|
+
|
|
1699
|
+
#### Returns
|
|
1700
|
+
|
|
1701
|
+
`MicroXL1`
|
|
1702
|
+
|
|
1703
|
+
### Implementation of
|
|
1704
|
+
|
|
1705
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`micro`](../interfaces/XL1AmountInstance.md#micro)
|
|
1706
|
+
|
|
1707
|
+
***
|
|
1708
|
+
|
|
1709
|
+
### nano
|
|
1710
|
+
|
|
1711
|
+
### Get Signature
|
|
1712
|
+
|
|
1713
|
+
```ts
|
|
1714
|
+
get nano(): NanoXL1;
|
|
1715
|
+
```
|
|
1716
|
+
|
|
1717
|
+
#### Returns
|
|
1718
|
+
|
|
1719
|
+
`NanoXL1`
|
|
1720
|
+
|
|
1721
|
+
### Implementation of
|
|
1722
|
+
|
|
1723
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`nano`](../interfaces/XL1AmountInstance.md#nano)
|
|
1724
|
+
|
|
1725
|
+
***
|
|
1726
|
+
|
|
1727
|
+
### pico
|
|
1728
|
+
|
|
1729
|
+
### Get Signature
|
|
1730
|
+
|
|
1731
|
+
```ts
|
|
1732
|
+
get pico(): PicoXL1;
|
|
1733
|
+
```
|
|
1734
|
+
|
|
1735
|
+
#### Returns
|
|
1736
|
+
|
|
1737
|
+
`PicoXL1`
|
|
1738
|
+
|
|
1739
|
+
### Implementation of
|
|
1740
|
+
|
|
1741
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`pico`](../interfaces/XL1AmountInstance.md#pico)
|
|
1742
|
+
|
|
1743
|
+
***
|
|
1744
|
+
|
|
1745
|
+
### femto
|
|
1746
|
+
|
|
1747
|
+
### Get Signature
|
|
1748
|
+
|
|
1749
|
+
```ts
|
|
1750
|
+
get femto(): FemtoXL1;
|
|
1751
|
+
```
|
|
1752
|
+
|
|
1753
|
+
#### Returns
|
|
1754
|
+
|
|
1755
|
+
`FemtoXL1`
|
|
1756
|
+
|
|
1757
|
+
### Implementation of
|
|
1758
|
+
|
|
1759
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`femto`](../interfaces/XL1AmountInstance.md#femto)
|
|
1760
|
+
|
|
1761
|
+
***
|
|
1762
|
+
|
|
1763
|
+
### atto
|
|
1764
|
+
|
|
1765
|
+
### Get Signature
|
|
1766
|
+
|
|
1767
|
+
```ts
|
|
1768
|
+
get atto(): AttoXL1;
|
|
1769
|
+
```
|
|
1770
|
+
|
|
1771
|
+
#### Returns
|
|
1772
|
+
|
|
1773
|
+
`AttoXL1`
|
|
1774
|
+
|
|
1775
|
+
### Implementation of
|
|
1776
|
+
|
|
1777
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`atto`](../interfaces/XL1AmountInstance.md#atto)
|
|
1778
|
+
|
|
1779
|
+
## Methods
|
|
1780
|
+
|
|
1781
|
+
### from()
|
|
1782
|
+
|
|
1783
|
+
```ts
|
|
1784
|
+
static from(value, places): XL1Amount;
|
|
1785
|
+
```
|
|
1786
|
+
|
|
1787
|
+
### Parameters
|
|
1788
|
+
|
|
1789
|
+
#### value
|
|
1790
|
+
|
|
1791
|
+
`bigint`
|
|
1792
|
+
|
|
1793
|
+
#### places
|
|
1794
|
+
|
|
1795
|
+
`bigint` = `XL1Places.atto`
|
|
1796
|
+
|
|
1797
|
+
### Returns
|
|
1798
|
+
|
|
1799
|
+
`XL1Amount`
|
|
1800
|
+
|
|
1801
|
+
***
|
|
1802
|
+
|
|
1803
|
+
### fromMilli()
|
|
1804
|
+
|
|
1805
|
+
```ts
|
|
1806
|
+
static fromMilli(value): XL1Amount;
|
|
1807
|
+
```
|
|
1808
|
+
|
|
1809
|
+
### Parameters
|
|
1810
|
+
|
|
1811
|
+
#### value
|
|
1812
|
+
|
|
1813
|
+
`MilliXL1`
|
|
1814
|
+
|
|
1815
|
+
### Returns
|
|
1816
|
+
|
|
1817
|
+
`XL1Amount`
|
|
1818
|
+
|
|
1819
|
+
***
|
|
1820
|
+
|
|
1821
|
+
### fromMicro()
|
|
1822
|
+
|
|
1823
|
+
```ts
|
|
1824
|
+
static fromMicro(value): XL1Amount;
|
|
1825
|
+
```
|
|
1826
|
+
|
|
1827
|
+
### Parameters
|
|
1828
|
+
|
|
1829
|
+
#### value
|
|
1830
|
+
|
|
1831
|
+
`MicroXL1`
|
|
1832
|
+
|
|
1833
|
+
### Returns
|
|
1834
|
+
|
|
1835
|
+
`XL1Amount`
|
|
1836
|
+
|
|
1837
|
+
***
|
|
1838
|
+
|
|
1839
|
+
### fromNano()
|
|
1840
|
+
|
|
1841
|
+
```ts
|
|
1842
|
+
static fromNano(value): XL1Amount;
|
|
1843
|
+
```
|
|
1844
|
+
|
|
1845
|
+
### Parameters
|
|
1846
|
+
|
|
1847
|
+
#### value
|
|
1848
|
+
|
|
1849
|
+
`NanoXL1`
|
|
1850
|
+
|
|
1851
|
+
### Returns
|
|
1852
|
+
|
|
1853
|
+
`XL1Amount`
|
|
1854
|
+
|
|
1855
|
+
***
|
|
1856
|
+
|
|
1857
|
+
### fromPico()
|
|
1858
|
+
|
|
1859
|
+
```ts
|
|
1860
|
+
static fromPico(value): XL1Amount;
|
|
1861
|
+
```
|
|
1862
|
+
|
|
1863
|
+
### Parameters
|
|
1864
|
+
|
|
1865
|
+
#### value
|
|
1866
|
+
|
|
1867
|
+
`PicoXL1`
|
|
1868
|
+
|
|
1869
|
+
### Returns
|
|
1870
|
+
|
|
1871
|
+
`XL1Amount`
|
|
1872
|
+
|
|
1873
|
+
***
|
|
1874
|
+
|
|
1875
|
+
### fromFemto()
|
|
1876
|
+
|
|
1877
|
+
```ts
|
|
1878
|
+
static fromFemto(value): XL1Amount;
|
|
1879
|
+
```
|
|
1880
|
+
|
|
1881
|
+
### Parameters
|
|
1882
|
+
|
|
1883
|
+
#### value
|
|
1884
|
+
|
|
1885
|
+
`FemtoXL1`
|
|
1886
|
+
|
|
1887
|
+
### Returns
|
|
1888
|
+
|
|
1889
|
+
`XL1Amount`
|
|
1890
|
+
|
|
1891
|
+
***
|
|
1892
|
+
|
|
1893
|
+
### fromAtto()
|
|
1894
|
+
|
|
1895
|
+
```ts
|
|
1896
|
+
static fromAtto(value): XL1Amount;
|
|
1897
|
+
```
|
|
1898
|
+
|
|
1899
|
+
### Parameters
|
|
1900
|
+
|
|
1901
|
+
#### value
|
|
1902
|
+
|
|
1903
|
+
`AttoXL1`
|
|
1904
|
+
|
|
1905
|
+
### Returns
|
|
1906
|
+
|
|
1907
|
+
`XL1Amount`
|
|
1908
|
+
|
|
1909
|
+
***
|
|
1910
|
+
|
|
1911
|
+
### to()
|
|
1912
|
+
|
|
1913
|
+
```ts
|
|
1914
|
+
to(places): bigint;
|
|
1915
|
+
```
|
|
1916
|
+
|
|
1917
|
+
### Parameters
|
|
1918
|
+
|
|
1919
|
+
#### places
|
|
1920
|
+
|
|
1921
|
+
`number` | `bigint`
|
|
1922
|
+
|
|
1923
|
+
### Returns
|
|
1924
|
+
|
|
1925
|
+
`bigint`
|
|
1926
|
+
|
|
1927
|
+
### Implementation of
|
|
1928
|
+
|
|
1929
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`to`](../interfaces/XL1AmountInstance.md#to)
|
|
1930
|
+
|
|
1931
|
+
***
|
|
1932
|
+
|
|
1933
|
+
### toString()
|
|
1934
|
+
|
|
1935
|
+
```ts
|
|
1936
|
+
toString(places, config): string;
|
|
1937
|
+
```
|
|
1938
|
+
|
|
1939
|
+
### Parameters
|
|
1940
|
+
|
|
1941
|
+
#### places
|
|
1942
|
+
|
|
1943
|
+
`number` = `...`
|
|
1944
|
+
|
|
1945
|
+
#### config
|
|
1946
|
+
|
|
1947
|
+
`Partial`\<`ShiftedBigIntConfig`\> = `{}`
|
|
1948
|
+
|
|
1949
|
+
### Returns
|
|
1950
|
+
|
|
1951
|
+
`string`
|
|
1952
|
+
|
|
1953
|
+
### Implementation of
|
|
1954
|
+
|
|
1955
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`toString`](../interfaces/XL1AmountInstance.md#tostring)
|
|
1956
|
+
|
|
1957
|
+
### functions
|
|
1958
|
+
|
|
1959
|
+
### <a id="splitOnDecimal"></a>splitOnDecimal
|
|
1960
|
+
|
|
1961
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
1962
|
+
|
|
1963
|
+
***
|
|
1964
|
+
|
|
1965
|
+
```ts
|
|
1966
|
+
function splitOnDecimal(value, places): [bigint, bigint];
|
|
1967
|
+
```
|
|
1968
|
+
|
|
1969
|
+
## Parameters
|
|
1970
|
+
|
|
1971
|
+
### value
|
|
1972
|
+
|
|
1973
|
+
`bigint`
|
|
1974
|
+
|
|
1975
|
+
### places
|
|
1976
|
+
|
|
1977
|
+
`number` = `18`
|
|
1978
|
+
|
|
1979
|
+
## Returns
|
|
1980
|
+
|
|
1981
|
+
\[`bigint`, `bigint`\]
|
|
1982
|
+
|
|
1983
|
+
### <a id="splitOnDecimalToString"></a>splitOnDecimalToString
|
|
1984
|
+
|
|
1985
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
1986
|
+
|
|
1987
|
+
***
|
|
1988
|
+
|
|
1989
|
+
```ts
|
|
1990
|
+
function splitOnDecimalToString(
|
|
1991
|
+
value,
|
|
1992
|
+
places,
|
|
1993
|
+
maxDecimal,
|
|
1994
|
+
maxCharacters,
|
|
1995
|
+
minDecimals,
|
|
1996
|
+
locale): string;
|
|
1997
|
+
```
|
|
1998
|
+
|
|
1999
|
+
## Parameters
|
|
2000
|
+
|
|
2001
|
+
### value
|
|
2002
|
+
|
|
2003
|
+
`bigint`
|
|
2004
|
+
|
|
2005
|
+
### places
|
|
2006
|
+
|
|
2007
|
+
`number` = `18`
|
|
2008
|
+
|
|
2009
|
+
### maxDecimal
|
|
2010
|
+
|
|
2011
|
+
`number` = `places`
|
|
2012
|
+
|
|
2013
|
+
### maxCharacters
|
|
2014
|
+
|
|
2015
|
+
`number` = `9`
|
|
2016
|
+
|
|
2017
|
+
### minDecimals
|
|
2018
|
+
|
|
2019
|
+
`number` = `1`
|
|
2020
|
+
|
|
2021
|
+
### locale
|
|
2022
|
+
|
|
2023
|
+
`LocalesArgument` = `'en-US'`
|
|
2024
|
+
|
|
2025
|
+
## Returns
|
|
2026
|
+
|
|
2027
|
+
`string`
|
|
2028
|
+
|
|
2029
|
+
### interfaces
|
|
2030
|
+
|
|
2031
|
+
### <a id="HydratedBlockRangeStoreParams"></a>HydratedBlockRangeStoreParams
|
|
2032
|
+
|
|
2033
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
2034
|
+
|
|
2035
|
+
***
|
|
2036
|
+
|
|
2037
|
+
## Extends
|
|
2038
|
+
|
|
2039
|
+
- [`HydratedBlockStoreParams`](#../type-aliases/HydratedBlockStoreParams)\<\{
|
|
2040
|
+
`first`: `Hash`;
|
|
2041
|
+
`last`: `Hash`;
|
|
2042
|
+
`snapshotArchivist`: `ArchivistInstance`;
|
|
2043
|
+
\}\>
|
|
2044
|
+
|
|
2045
|
+
## Properties
|
|
2046
|
+
|
|
2047
|
+
### sourceArchivist
|
|
2048
|
+
|
|
2049
|
+
```ts
|
|
2050
|
+
sourceArchivist: ArchivistInstance;
|
|
2051
|
+
```
|
|
2052
|
+
|
|
2053
|
+
### Inherited from
|
|
2054
|
+
|
|
2055
|
+
```ts
|
|
2056
|
+
HydratedBlockStoreParams.sourceArchivist
|
|
2057
|
+
```
|
|
2058
|
+
|
|
2059
|
+
***
|
|
2060
|
+
|
|
2061
|
+
### first
|
|
2062
|
+
|
|
2063
|
+
```ts
|
|
2064
|
+
first: Lowercase<string>;
|
|
2065
|
+
```
|
|
2066
|
+
|
|
2067
|
+
### Inherited from
|
|
2068
|
+
|
|
2069
|
+
```ts
|
|
2070
|
+
HydratedBlockStoreParams.first
|
|
2071
|
+
```
|
|
2072
|
+
|
|
2073
|
+
***
|
|
2074
|
+
|
|
2075
|
+
### last
|
|
2076
|
+
|
|
2077
|
+
```ts
|
|
2078
|
+
last: Lowercase<string>;
|
|
2079
|
+
```
|
|
2080
|
+
|
|
2081
|
+
### Inherited from
|
|
2082
|
+
|
|
2083
|
+
```ts
|
|
2084
|
+
HydratedBlockStoreParams.last
|
|
2085
|
+
```
|
|
2086
|
+
|
|
2087
|
+
***
|
|
2088
|
+
|
|
2089
|
+
### snapshotArchivist
|
|
2090
|
+
|
|
2091
|
+
```ts
|
|
2092
|
+
snapshotArchivist: ArchivistInstance;
|
|
2093
|
+
```
|
|
2094
|
+
|
|
2095
|
+
### Inherited from
|
|
2096
|
+
|
|
2097
|
+
```ts
|
|
2098
|
+
HydratedBlockStoreParams.snapshotArchivist
|
|
2099
|
+
```
|
|
2100
|
+
|
|
2101
|
+
### <a id="HydratedBlockStoreInstance"></a>HydratedBlockStoreInstance
|
|
2102
|
+
|
|
2103
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
2104
|
+
|
|
2105
|
+
***
|
|
2106
|
+
|
|
2107
|
+
## Extended by
|
|
2108
|
+
|
|
2109
|
+
- [`IndexedHydratedBlockStoreInstance`](#IndexedHydratedBlockStoreInstance)
|
|
2110
|
+
|
|
2111
|
+
## Methods
|
|
2112
|
+
|
|
2113
|
+
### fromHash()
|
|
2114
|
+
|
|
2115
|
+
```ts
|
|
2116
|
+
fromHash(hash): Promisable<undefined | HydratedBlock>;
|
|
2117
|
+
```
|
|
2118
|
+
|
|
2119
|
+
### Parameters
|
|
2120
|
+
|
|
2121
|
+
#### hash
|
|
2122
|
+
|
|
2123
|
+
`Lowercase`\<`string`\>
|
|
2124
|
+
|
|
2125
|
+
### Returns
|
|
2126
|
+
|
|
2127
|
+
`Promisable`\<`undefined` \| `HydratedBlock`\>
|
|
2128
|
+
|
|
2129
|
+
### <a id="IndexedHydratedBlockRangeStoreInstance"></a>IndexedHydratedBlockRangeStoreInstance
|
|
2130
|
+
|
|
2131
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
2132
|
+
|
|
2133
|
+
***
|
|
2134
|
+
|
|
2135
|
+
## Extends
|
|
2136
|
+
|
|
2137
|
+
- `BlockWindowInstance`.[`IndexedHydratedBlockStoreInstance`](#IndexedHydratedBlockStoreInstance)
|
|
2138
|
+
|
|
2139
|
+
## Properties
|
|
2140
|
+
|
|
2141
|
+
### count
|
|
2142
|
+
|
|
2143
|
+
```ts
|
|
2144
|
+
count: number;
|
|
2145
|
+
```
|
|
2146
|
+
|
|
2147
|
+
### Inherited from
|
|
2148
|
+
|
|
2149
|
+
```ts
|
|
2150
|
+
BlockWindowInstance.count
|
|
2151
|
+
```
|
|
2152
|
+
|
|
2153
|
+
***
|
|
2154
|
+
|
|
2155
|
+
### numberRange
|
|
2156
|
+
|
|
2157
|
+
```ts
|
|
2158
|
+
numberRange: [number, number];
|
|
2159
|
+
```
|
|
2160
|
+
|
|
2161
|
+
### Inherited from
|
|
2162
|
+
|
|
2163
|
+
```ts
|
|
2164
|
+
BlockWindowInstance.numberRange
|
|
2165
|
+
```
|
|
2166
|
+
|
|
2167
|
+
***
|
|
2168
|
+
|
|
2169
|
+
### range
|
|
2170
|
+
|
|
2171
|
+
```ts
|
|
2172
|
+
range: [Lowercase<string>, Lowercase<string>];
|
|
2173
|
+
```
|
|
2174
|
+
|
|
2175
|
+
### Inherited from
|
|
2176
|
+
|
|
2177
|
+
```ts
|
|
2178
|
+
BlockWindowInstance.range
|
|
2179
|
+
```
|
|
2180
|
+
|
|
2181
|
+
## Methods
|
|
2182
|
+
|
|
2183
|
+
### fromHash()
|
|
2184
|
+
|
|
2185
|
+
```ts
|
|
2186
|
+
fromHash(hash): Promisable<undefined | HydratedBlock>;
|
|
2187
|
+
```
|
|
2188
|
+
|
|
2189
|
+
### Parameters
|
|
2190
|
+
|
|
2191
|
+
#### hash
|
|
2192
|
+
|
|
2193
|
+
`Lowercase`\<`string`\>
|
|
2194
|
+
|
|
2195
|
+
### Returns
|
|
2196
|
+
|
|
2197
|
+
`Promisable`\<`undefined` \| `HydratedBlock`\>
|
|
2198
|
+
|
|
2199
|
+
### Inherited from
|
|
2200
|
+
|
|
2201
|
+
[`IndexedHydratedBlockStoreInstance`](#IndexedHydratedBlockStoreInstance).[`fromHash`](IndexedHydratedBlockStoreInstance.md#fromhash)
|
|
2202
|
+
|
|
2203
|
+
***
|
|
2204
|
+
|
|
2205
|
+
### fromNumber()
|
|
2206
|
+
|
|
2207
|
+
```ts
|
|
2208
|
+
fromNumber(number): Promisable<undefined | HydratedBlock>;
|
|
2209
|
+
```
|
|
2210
|
+
|
|
2211
|
+
### Parameters
|
|
2212
|
+
|
|
2213
|
+
#### number
|
|
2214
|
+
|
|
2215
|
+
`number`
|
|
2216
|
+
|
|
2217
|
+
### Returns
|
|
2218
|
+
|
|
2219
|
+
`Promisable`\<`undefined` \| `HydratedBlock`\>
|
|
2220
|
+
|
|
2221
|
+
### Inherited from
|
|
2222
|
+
|
|
2223
|
+
[`IndexedHydratedBlockStoreInstance`](#IndexedHydratedBlockStoreInstance).[`fromNumber`](IndexedHydratedBlockStoreInstance.md#fromnumber)
|
|
2224
|
+
|
|
2225
|
+
***
|
|
2226
|
+
|
|
2227
|
+
### first()
|
|
2228
|
+
|
|
2229
|
+
```ts
|
|
2230
|
+
first(): Promisable<HydratedBlock>;
|
|
2231
|
+
```
|
|
2232
|
+
|
|
2233
|
+
### Returns
|
|
2234
|
+
|
|
2235
|
+
`Promisable`\<`HydratedBlock`\>
|
|
2236
|
+
|
|
2237
|
+
***
|
|
2238
|
+
|
|
2239
|
+
### last()
|
|
2240
|
+
|
|
2241
|
+
```ts
|
|
2242
|
+
last(): Promisable<HydratedBlock>;
|
|
2243
|
+
```
|
|
2244
|
+
|
|
2245
|
+
### Returns
|
|
2246
|
+
|
|
2247
|
+
`Promisable`\<`HydratedBlock`\>
|
|
2248
|
+
|
|
2249
|
+
***
|
|
2250
|
+
|
|
2251
|
+
### next()
|
|
2252
|
+
|
|
2253
|
+
### Call Signature
|
|
2254
|
+
|
|
2255
|
+
```ts
|
|
2256
|
+
next(from): Promisable<undefined | HydratedBlock>;
|
|
2257
|
+
```
|
|
2258
|
+
|
|
2259
|
+
#### Parameters
|
|
2260
|
+
|
|
2261
|
+
##### from
|
|
2262
|
+
|
|
2263
|
+
`HydratedBlock`
|
|
2264
|
+
|
|
2265
|
+
#### Returns
|
|
2266
|
+
|
|
2267
|
+
`Promisable`\<`undefined` \| `HydratedBlock`\>
|
|
2268
|
+
|
|
2269
|
+
### Call Signature
|
|
2270
|
+
|
|
2271
|
+
```ts
|
|
2272
|
+
next(from, count): Promisable<HydratedBlock[]>;
|
|
2273
|
+
```
|
|
2274
|
+
|
|
2275
|
+
#### Parameters
|
|
2276
|
+
|
|
2277
|
+
##### from
|
|
2278
|
+
|
|
2279
|
+
`HydratedBlock`
|
|
2280
|
+
|
|
2281
|
+
##### count
|
|
2282
|
+
|
|
2283
|
+
`number`
|
|
2284
|
+
|
|
2285
|
+
#### Returns
|
|
2286
|
+
|
|
2287
|
+
`Promisable`\<`HydratedBlock`[]\>
|
|
2288
|
+
|
|
2289
|
+
***
|
|
2290
|
+
|
|
2291
|
+
### prev()
|
|
2292
|
+
|
|
2293
|
+
### Call Signature
|
|
2294
|
+
|
|
2295
|
+
```ts
|
|
2296
|
+
prev(from): Promisable<undefined | HydratedBlock>;
|
|
2297
|
+
```
|
|
2298
|
+
|
|
2299
|
+
#### Parameters
|
|
2300
|
+
|
|
2301
|
+
##### from
|
|
2302
|
+
|
|
2303
|
+
`HydratedBlock`
|
|
2304
|
+
|
|
2305
|
+
#### Returns
|
|
2306
|
+
|
|
2307
|
+
`Promisable`\<`undefined` \| `HydratedBlock`\>
|
|
2308
|
+
|
|
2309
|
+
### Call Signature
|
|
2310
|
+
|
|
2311
|
+
```ts
|
|
2312
|
+
prev(from, count): Promisable<HydratedBlock[]>;
|
|
2313
|
+
```
|
|
2314
|
+
|
|
2315
|
+
#### Parameters
|
|
2316
|
+
|
|
2317
|
+
##### from
|
|
2318
|
+
|
|
2319
|
+
`HydratedBlock`
|
|
2320
|
+
|
|
2321
|
+
##### count
|
|
2322
|
+
|
|
2323
|
+
`number`
|
|
2324
|
+
|
|
2325
|
+
#### Returns
|
|
2326
|
+
|
|
2327
|
+
`Promisable`\<`HydratedBlock`[]\>
|
|
2328
|
+
|
|
2329
|
+
### <a id="IndexedHydratedBlockStoreInstance"></a>IndexedHydratedBlockStoreInstance
|
|
2330
|
+
|
|
2331
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
2332
|
+
|
|
2333
|
+
***
|
|
2334
|
+
|
|
2335
|
+
## Extends
|
|
2336
|
+
|
|
2337
|
+
- [`HydratedBlockStoreInstance`](#HydratedBlockStoreInstance)
|
|
2338
|
+
|
|
2339
|
+
## Extended by
|
|
2340
|
+
|
|
2341
|
+
- [`IndexedHydratedBlockRangeStoreInstance`](#IndexedHydratedBlockRangeStoreInstance)
|
|
2342
|
+
|
|
2343
|
+
## Methods
|
|
2344
|
+
|
|
2345
|
+
### fromHash()
|
|
2346
|
+
|
|
2347
|
+
```ts
|
|
2348
|
+
fromHash(hash): Promisable<undefined | HydratedBlock>;
|
|
2349
|
+
```
|
|
2350
|
+
|
|
2351
|
+
### Parameters
|
|
2352
|
+
|
|
2353
|
+
#### hash
|
|
2354
|
+
|
|
2355
|
+
`Lowercase`\<`string`\>
|
|
2356
|
+
|
|
2357
|
+
### Returns
|
|
2358
|
+
|
|
2359
|
+
`Promisable`\<`undefined` \| `HydratedBlock`\>
|
|
2360
|
+
|
|
2361
|
+
### Inherited from
|
|
2362
|
+
|
|
2363
|
+
[`HydratedBlockStoreInstance`](#HydratedBlockStoreInstance).[`fromHash`](HydratedBlockStoreInstance.md#fromhash)
|
|
2364
|
+
|
|
2365
|
+
***
|
|
2366
|
+
|
|
2367
|
+
### fromNumber()
|
|
2368
|
+
|
|
2369
|
+
```ts
|
|
2370
|
+
fromNumber(number): Promisable<undefined | HydratedBlock>;
|
|
2371
|
+
```
|
|
2372
|
+
|
|
2373
|
+
### Parameters
|
|
2374
|
+
|
|
2375
|
+
#### number
|
|
2376
|
+
|
|
2377
|
+
`number`
|
|
2378
|
+
|
|
2379
|
+
### Returns
|
|
2380
|
+
|
|
2381
|
+
`Promisable`\<`undefined` \| `HydratedBlock`\>
|
|
2382
|
+
|
|
2383
|
+
### <a id="XL1AmountInstance"></a>XL1AmountInstance
|
|
2384
|
+
|
|
2385
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
2386
|
+
|
|
2387
|
+
***
|
|
2388
|
+
|
|
2389
|
+
## Properties
|
|
2390
|
+
|
|
2391
|
+
### value
|
|
2392
|
+
|
|
2393
|
+
```ts
|
|
2394
|
+
value: AttoXL1;
|
|
2395
|
+
```
|
|
2396
|
+
|
|
2397
|
+
***
|
|
2398
|
+
|
|
2399
|
+
### milli
|
|
2400
|
+
|
|
2401
|
+
```ts
|
|
2402
|
+
milli: MilliXL1;
|
|
2403
|
+
```
|
|
2404
|
+
|
|
2405
|
+
***
|
|
2406
|
+
|
|
2407
|
+
### micro
|
|
2408
|
+
|
|
2409
|
+
```ts
|
|
2410
|
+
micro: MicroXL1;
|
|
2411
|
+
```
|
|
2412
|
+
|
|
2413
|
+
***
|
|
2414
|
+
|
|
2415
|
+
### nano
|
|
2416
|
+
|
|
2417
|
+
```ts
|
|
2418
|
+
nano: NanoXL1;
|
|
2419
|
+
```
|
|
2420
|
+
|
|
2421
|
+
***
|
|
2422
|
+
|
|
2423
|
+
### pico
|
|
2424
|
+
|
|
2425
|
+
```ts
|
|
2426
|
+
pico: PicoXL1;
|
|
2427
|
+
```
|
|
2428
|
+
|
|
2429
|
+
***
|
|
2430
|
+
|
|
2431
|
+
### femto
|
|
2432
|
+
|
|
2433
|
+
```ts
|
|
2434
|
+
femto: FemtoXL1;
|
|
2435
|
+
```
|
|
2436
|
+
|
|
2437
|
+
***
|
|
2438
|
+
|
|
2439
|
+
### atto
|
|
2440
|
+
|
|
2441
|
+
```ts
|
|
2442
|
+
atto: AttoXL1;
|
|
2443
|
+
```
|
|
2444
|
+
|
|
2445
|
+
## Methods
|
|
2446
|
+
|
|
2447
|
+
### to()
|
|
2448
|
+
|
|
2449
|
+
```ts
|
|
2450
|
+
to(places): bigint;
|
|
2451
|
+
```
|
|
2452
|
+
|
|
2453
|
+
### Parameters
|
|
2454
|
+
|
|
2455
|
+
#### places
|
|
2456
|
+
|
|
2457
|
+
`number` | `bigint`
|
|
2458
|
+
|
|
2459
|
+
### Returns
|
|
2460
|
+
|
|
2461
|
+
`bigint`
|
|
2462
|
+
|
|
2463
|
+
***
|
|
2464
|
+
|
|
2465
|
+
### toString()
|
|
2466
|
+
|
|
2467
|
+
```ts
|
|
2468
|
+
toString(places, config): string;
|
|
2469
|
+
```
|
|
2470
|
+
|
|
2471
|
+
### Parameters
|
|
2472
|
+
|
|
2473
|
+
#### places
|
|
2474
|
+
|
|
2475
|
+
`number`
|
|
2476
|
+
|
|
2477
|
+
#### config
|
|
2478
|
+
|
|
2479
|
+
`Partial`\<`ShiftedBigIntConfig`\>
|
|
2480
|
+
|
|
2481
|
+
### Returns
|
|
2482
|
+
|
|
2483
|
+
`string`
|
|
2484
|
+
|
|
2485
|
+
### type-aliases
|
|
2486
|
+
|
|
2487
|
+
### <a id="HydratedBlockStoreParams"></a>HydratedBlockStoreParams
|
|
2488
|
+
|
|
2489
|
+
[**@xyo-network/chain-wrappers**](#../README)
|
|
2490
|
+
|
|
2491
|
+
***
|
|
2492
|
+
|
|
2493
|
+
```ts
|
|
2494
|
+
type HydratedBlockStoreParams<TAdditionalParams> = BaseParams<object & TAdditionalParams>;
|
|
2495
|
+
```
|
|
2496
|
+
|
|
2497
|
+
## Type Parameters
|
|
2498
|
+
|
|
2499
|
+
### TAdditionalParams
|
|
2500
|
+
|
|
2501
|
+
`TAdditionalParams` *extends* `EmptyObject` = `EmptyObject`
|
|
2502
|
+
|
|
2503
|
+
|
|
2504
|
+
## Maintainers
|
|
2505
|
+
|
|
2506
|
+
- [Arie Trouw](https://github.com/arietrouw) ([arietrouw.com](https://arietrouw.com))
|
|
2507
|
+
- [Matt Jones](https://github.com/jonesmac)
|
|
2508
|
+
- [Joel Carter](https://github.com/JoelBCarter)
|
|
2509
|
+
- [Jordan Trouw](https://github.com/jordantrouw)
|
|
2510
|
+
|
|
2511
|
+
## License
|
|
2512
|
+
|
|
2513
|
+
> See the [LICENSE](LICENSE) file for license details
|
|
2514
|
+
|
|
2515
|
+
## Credits
|
|
2516
|
+
|
|
2517
|
+
[Made with 🔥 and ❄️ by XYO](https://xyo.network)
|
|
2518
|
+
|
|
2519
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
2520
|
+
|
|
2521
|
+
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/chain-wrappers.svg
|
|
2522
|
+
[npm-link]: https://www.npmjs.com/package/@xyo-network/chain-wrappers
|
|
2523
|
+
|
|
2524
|
+
[npm-downloads-badge]: https://img.shields.io/npm/dw/@xyo-network/chain-wrappers
|
|
2525
|
+
[npm-license-badge]: https://img.shields.io/npm/l/@xyo-network/chain-wrappers
|
|
2526
|
+
|
|
2527
|
+
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xyo-network/chain-wrappers/badge
|
|
2528
|
+
[jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xyo-network/chain-wrappers
|
|
2529
|
+
|
|
2530
|
+
[socket-badge]: https://socket.dev/api/badge/npm/package/@xyo-network/chain-wrappers
|
|
2531
|
+
[socket-link]: https://socket.dev/npm/package/@xyo-network/chain-wrappers
|