@xyo-network/xl1-wrappers 1.15.2 → 1.15.4
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 +586 -1268
- package/dist/neutral/amount/ShiftedBigInt.d.ts +1 -1
- package/dist/neutral/amount/ShiftedBigInt.d.ts.map +1 -1
- package/dist/neutral/amount/Xl1Amount.d.ts +2 -2
- package/dist/neutral/amount/Xl1Amount.d.ts.map +1 -1
- package/dist/neutral/amount/splitOnDecimal.d.ts +1 -1
- package/dist/neutral/amount/splitOnDecimal.d.ts.map +1 -1
- package/dist/neutral/amount/splitOnDecimalToString.d.ts +1 -1
- package/dist/neutral/amount/splitOnDecimalToString.d.ts.map +1 -1
- package/dist/neutral/index.mjs +1 -1
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +18 -18
- package/src/amount/ShiftedBigInt.ts +1 -1
- package/src/amount/Xl1Amount.ts +3 -3
- package/src/amount/splitOnDecimal.ts +1 -1
- package/src/amount/splitOnDecimalToString.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @xyo-network/
|
|
1
|
+
# @xyo-network/xl1-wrappers
|
|
2
2
|
|
|
3
3
|
[![logo][]](https://xyo.network)
|
|
4
4
|
|
|
@@ -14,527 +14,474 @@ XYO Layer One SDK Wrappers
|
|
|
14
14
|
|
|
15
15
|
## Reference
|
|
16
16
|
|
|
17
|
-
**@xyo-network/
|
|
17
|
+
**@xyo-network/xl1-wrappers**
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
21
|
## Classes
|
|
22
22
|
|
|
23
|
+
- [BaseWrapper](#classes/BaseWrapper)
|
|
23
24
|
- [FeesWrapper](#classes/FeesWrapper)
|
|
24
25
|
- [SignatureWrapper](#classes/SignatureWrapper)
|
|
25
|
-
- [ShiftedBigInt](#classes/ShiftedBigInt)
|
|
26
|
-
- [XL1Amount](#classes/XL1Amount)
|
|
27
|
-
- [
|
|
28
|
-
- [IndexedHydratedBlockRangeStore](#classes/IndexedHydratedBlockRangeStore)
|
|
26
|
+
- [~~ShiftedBigInt~~](#classes/ShiftedBigInt)
|
|
27
|
+
- [~~XL1Amount~~](#classes/XL1Amount)
|
|
28
|
+
- [ChainWrapper](#classes/ChainWrapper)
|
|
29
29
|
- [HydratedTransactionWrapper](#classes/HydratedTransactionWrapper)
|
|
30
30
|
|
|
31
31
|
## Interfaces
|
|
32
32
|
|
|
33
|
-
- [
|
|
34
|
-
- [
|
|
35
|
-
- [IndexedHydratedBlockStoreInstance](#interfaces/IndexedHydratedBlockStoreInstance)
|
|
36
|
-
- [HydratedBlockRangeStoreParams](#interfaces/HydratedBlockRangeStoreParams)
|
|
37
|
-
- [IndexedHydratedBlockRangeStoreInstance](#interfaces/IndexedHydratedBlockRangeStoreInstance)
|
|
38
|
-
|
|
39
|
-
## Type Aliases
|
|
40
|
-
|
|
41
|
-
- [HydratedBlockStoreParams](#type-aliases/HydratedBlockStoreParams)
|
|
33
|
+
- [BaseWrapperConfig](#interfaces/BaseWrapperConfig)
|
|
34
|
+
- [~~XL1AmountInstance~~](#interfaces/XL1AmountInstance)
|
|
42
35
|
|
|
43
36
|
## Functions
|
|
44
37
|
|
|
45
|
-
- [splitOnDecimal](#functions/splitOnDecimal)
|
|
46
|
-
- [splitOnDecimalToString](#functions/splitOnDecimalToString)
|
|
38
|
+
- [~~splitOnDecimal~~](#functions/splitOnDecimal)
|
|
39
|
+
- [~~splitOnDecimalToString~~](#functions/splitOnDecimalToString)
|
|
40
|
+
- [createSignatureWrappers](#functions/createSignatureWrappers)
|
|
47
41
|
|
|
48
42
|
### classes
|
|
49
43
|
|
|
50
|
-
### <a id="
|
|
44
|
+
### <a id="BaseWrapper"></a>BaseWrapper
|
|
51
45
|
|
|
52
|
-
[**@xyo-network/
|
|
46
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
53
47
|
|
|
54
48
|
***
|
|
55
49
|
|
|
56
|
-
##
|
|
50
|
+
## Extended by
|
|
57
51
|
|
|
58
|
-
- `
|
|
52
|
+
- [`ChainWrapper`](#ChainWrapper)
|
|
53
|
+
|
|
54
|
+
## Type Parameters
|
|
55
|
+
|
|
56
|
+
### T
|
|
57
|
+
|
|
58
|
+
`T`
|
|
59
|
+
|
|
60
|
+
### C
|
|
61
|
+
|
|
62
|
+
`C` *extends* [`BaseWrapperConfig`](#../interfaces/BaseWrapperConfig)\<`T`\> = [`BaseWrapperConfig`](#../interfaces/BaseWrapperConfig)\<`T`\>
|
|
59
63
|
|
|
60
64
|
## Constructors
|
|
61
65
|
|
|
62
66
|
### Constructor
|
|
63
67
|
|
|
64
68
|
```ts
|
|
65
|
-
new
|
|
69
|
+
protected new BaseWrapper<T, C>(value, config): BaseWrapper<T, C>;
|
|
66
70
|
```
|
|
67
71
|
|
|
68
72
|
### Parameters
|
|
69
73
|
|
|
70
|
-
####
|
|
74
|
+
#### value
|
|
71
75
|
|
|
72
|
-
`
|
|
76
|
+
`T`
|
|
77
|
+
|
|
78
|
+
#### config
|
|
79
|
+
|
|
80
|
+
`Partial`\<`C`\> = `{}`
|
|
73
81
|
|
|
74
82
|
### Returns
|
|
75
83
|
|
|
76
|
-
`
|
|
84
|
+
`BaseWrapper`\<`T`, `C`\>
|
|
77
85
|
|
|
78
86
|
## Properties
|
|
79
87
|
|
|
80
|
-
###
|
|
88
|
+
### config
|
|
81
89
|
|
|
82
90
|
```ts
|
|
83
|
-
|
|
91
|
+
protected readonly config: Partial<C>;
|
|
84
92
|
```
|
|
85
93
|
|
|
86
|
-
|
|
94
|
+
***
|
|
95
|
+
|
|
96
|
+
### value
|
|
87
97
|
|
|
88
98
|
```ts
|
|
89
|
-
|
|
99
|
+
protected readonly value: T;
|
|
90
100
|
```
|
|
91
101
|
|
|
92
|
-
|
|
102
|
+
## Accessors
|
|
93
103
|
|
|
94
|
-
###
|
|
104
|
+
### provider
|
|
105
|
+
|
|
106
|
+
### Get Signature
|
|
95
107
|
|
|
96
108
|
```ts
|
|
97
|
-
|
|
109
|
+
get provider(): undefined | XyoConnection;
|
|
98
110
|
```
|
|
99
111
|
|
|
100
|
-
|
|
112
|
+
#### Returns
|
|
101
113
|
|
|
102
|
-
|
|
103
|
-
TransactionFeesInstance.gasLimit
|
|
104
|
-
```
|
|
114
|
+
`undefined` \| `XyoConnection`
|
|
105
115
|
|
|
106
|
-
|
|
116
|
+
## Methods
|
|
107
117
|
|
|
108
|
-
###
|
|
118
|
+
### create()
|
|
109
119
|
|
|
110
120
|
```ts
|
|
111
|
-
|
|
121
|
+
static create<T, C>(value, config): Promise<BaseWrapper<T, BaseWrapperConfig<T>>>;
|
|
112
122
|
```
|
|
113
123
|
|
|
114
|
-
###
|
|
124
|
+
### Type Parameters
|
|
115
125
|
|
|
116
|
-
|
|
117
|
-
TransactionFeesInstance.gasPrice
|
|
118
|
-
```
|
|
126
|
+
#### T
|
|
119
127
|
|
|
120
|
-
|
|
128
|
+
`T`
|
|
121
129
|
|
|
122
|
-
|
|
130
|
+
#### C
|
|
123
131
|
|
|
124
|
-
|
|
125
|
-
priority: AttoXL1;
|
|
126
|
-
```
|
|
132
|
+
`C` *extends* [`BaseWrapperConfig`](#../interfaces/BaseWrapperConfig)\<`T`\> = [`BaseWrapperConfig`](#../interfaces/BaseWrapperConfig)\<`T`\>
|
|
127
133
|
|
|
128
|
-
###
|
|
134
|
+
### Parameters
|
|
129
135
|
|
|
130
|
-
|
|
131
|
-
TransactionFeesInstance.priority
|
|
132
|
-
```
|
|
136
|
+
#### value
|
|
133
137
|
|
|
134
|
-
|
|
138
|
+
`T`
|
|
135
139
|
|
|
136
|
-
|
|
140
|
+
#### config
|
|
141
|
+
|
|
142
|
+
`Partial`\<`C`\> = `{}`
|
|
143
|
+
|
|
144
|
+
### Returns
|
|
145
|
+
|
|
146
|
+
`Promise`\<`BaseWrapper`\<`T`, [`BaseWrapperConfig`](#../interfaces/BaseWrapperConfig)\<`T`\>\>\>
|
|
147
|
+
|
|
148
|
+
***
|
|
149
|
+
|
|
150
|
+
### validateConfig()
|
|
137
151
|
|
|
138
152
|
```ts
|
|
139
|
-
static
|
|
153
|
+
static validateConfig(_config): PromisableArray<Error>;
|
|
140
154
|
```
|
|
141
155
|
|
|
142
156
|
### Parameters
|
|
143
157
|
|
|
144
|
-
#### \
|
|
158
|
+
#### \_config
|
|
145
159
|
|
|
146
|
-
`
|
|
160
|
+
`unknown`
|
|
147
161
|
|
|
148
162
|
### Returns
|
|
149
163
|
|
|
150
|
-
`
|
|
164
|
+
`PromisableArray`\<`Error`\>
|
|
151
165
|
|
|
152
166
|
***
|
|
153
167
|
|
|
154
|
-
###
|
|
168
|
+
### validateValue()
|
|
155
169
|
|
|
156
170
|
```ts
|
|
157
|
-
|
|
171
|
+
static validateValue(_value): PromisableArray<Error>;
|
|
158
172
|
```
|
|
159
173
|
|
|
174
|
+
### Parameters
|
|
175
|
+
|
|
176
|
+
#### \_value
|
|
177
|
+
|
|
178
|
+
`unknown`
|
|
179
|
+
|
|
160
180
|
### Returns
|
|
161
181
|
|
|
162
|
-
`
|
|
182
|
+
`PromisableArray`\<`Error`\>
|
|
163
183
|
|
|
164
|
-
|
|
184
|
+
***
|
|
185
|
+
|
|
186
|
+
### validate()
|
|
165
187
|
|
|
166
188
|
```ts
|
|
167
|
-
|
|
189
|
+
validate(): PromisableArray<Error>;
|
|
168
190
|
```
|
|
169
191
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
[**@xyo-network/chain-wrappers**](#../README)
|
|
192
|
+
### Returns
|
|
173
193
|
|
|
174
|
-
|
|
194
|
+
`PromisableArray`\<`Error`\>
|
|
175
195
|
|
|
176
|
-
|
|
196
|
+
### <a id="ChainWrapper"></a>ChainWrapper
|
|
177
197
|
|
|
178
|
-
|
|
198
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
179
199
|
|
|
180
|
-
|
|
200
|
+
***
|
|
181
201
|
|
|
182
|
-
##
|
|
202
|
+
## Extends
|
|
183
203
|
|
|
184
|
-
-
|
|
204
|
+
- [`BaseWrapper`](#BaseWrapper)\<`Address`, [`BaseWrapperConfig`](#../interfaces/BaseWrapperConfig)\<`Address`\>\>
|
|
185
205
|
|
|
186
206
|
## Constructors
|
|
187
207
|
|
|
188
208
|
### Constructor
|
|
189
209
|
|
|
190
210
|
```ts
|
|
191
|
-
protected new
|
|
211
|
+
protected new ChainWrapper(value, config): ChainWrapper;
|
|
192
212
|
```
|
|
193
213
|
|
|
194
214
|
### Parameters
|
|
195
215
|
|
|
196
|
-
####
|
|
216
|
+
#### value
|
|
217
|
+
|
|
218
|
+
`Brand`
|
|
219
|
+
|
|
220
|
+
#### config
|
|
197
221
|
|
|
198
|
-
|
|
222
|
+
`Partial`\<`C`\> = `{}`
|
|
199
223
|
|
|
200
224
|
### Returns
|
|
201
225
|
|
|
202
|
-
`
|
|
226
|
+
`ChainWrapper`
|
|
227
|
+
|
|
228
|
+
### Inherited from
|
|
229
|
+
|
|
230
|
+
[`BaseWrapper`](#BaseWrapper).[`constructor`](BaseWrapper.md#constructor)
|
|
203
231
|
|
|
204
232
|
## Properties
|
|
205
233
|
|
|
206
|
-
###
|
|
234
|
+
### config
|
|
207
235
|
|
|
208
236
|
```ts
|
|
209
|
-
|
|
237
|
+
protected readonly config: Partial<C>;
|
|
210
238
|
```
|
|
211
239
|
|
|
212
|
-
###
|
|
240
|
+
### Inherited from
|
|
213
241
|
|
|
214
|
-
|
|
215
|
-
HydratedBlockInstance.data
|
|
216
|
-
```
|
|
242
|
+
[`BaseWrapper`](#BaseWrapper).[`config`](BaseWrapper.md#config)
|
|
217
243
|
|
|
218
244
|
***
|
|
219
245
|
|
|
220
|
-
###
|
|
246
|
+
### value
|
|
221
247
|
|
|
222
248
|
```ts
|
|
223
|
-
protected
|
|
249
|
+
protected readonly value: Brand;
|
|
224
250
|
```
|
|
225
251
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
### transactionsCache
|
|
252
|
+
### Inherited from
|
|
229
253
|
|
|
230
|
-
|
|
231
|
-
protected transactionsCache: HydratedTransactionInstance<HydratedTransaction, AllowedBlockPayload>[] = [];
|
|
232
|
-
```
|
|
254
|
+
[`BaseWrapper`](#BaseWrapper).[`value`](BaseWrapper.md#value)
|
|
233
255
|
|
|
234
256
|
## Accessors
|
|
235
257
|
|
|
236
|
-
###
|
|
258
|
+
### provider
|
|
237
259
|
|
|
238
260
|
### Get Signature
|
|
239
261
|
|
|
240
262
|
```ts
|
|
241
|
-
get
|
|
263
|
+
get provider(): undefined | XyoConnection;
|
|
242
264
|
```
|
|
243
265
|
|
|
244
266
|
#### Returns
|
|
245
267
|
|
|
246
|
-
`
|
|
268
|
+
`undefined` \| `XyoConnection`
|
|
269
|
+
|
|
270
|
+
### Inherited from
|
|
271
|
+
|
|
272
|
+
[`BaseWrapper`](#BaseWrapper).[`provider`](BaseWrapper.md#provider)
|
|
247
273
|
|
|
248
274
|
***
|
|
249
275
|
|
|
250
|
-
###
|
|
276
|
+
### id
|
|
251
277
|
|
|
252
278
|
### Get Signature
|
|
253
279
|
|
|
254
280
|
```ts
|
|
255
|
-
get
|
|
281
|
+
get id(): Brand;
|
|
256
282
|
```
|
|
257
283
|
|
|
258
284
|
#### Returns
|
|
259
285
|
|
|
260
|
-
`
|
|
286
|
+
`Brand`
|
|
261
287
|
|
|
262
|
-
|
|
288
|
+
## Methods
|
|
289
|
+
|
|
290
|
+
### create()
|
|
263
291
|
|
|
264
292
|
```ts
|
|
265
|
-
|
|
293
|
+
static create<T, C>(value, config): Promise<BaseWrapper<T, BaseWrapperConfig<T>>>;
|
|
266
294
|
```
|
|
267
295
|
|
|
268
|
-
|
|
296
|
+
### Type Parameters
|
|
269
297
|
|
|
270
|
-
|
|
298
|
+
#### T
|
|
271
299
|
|
|
272
|
-
|
|
300
|
+
`T`
|
|
273
301
|
|
|
274
|
-
|
|
275
|
-
get chain(): Lowercase<string>;
|
|
276
|
-
```
|
|
302
|
+
#### C
|
|
277
303
|
|
|
278
|
-
|
|
304
|
+
`C` *extends* [`BaseWrapperConfig`](#../interfaces/BaseWrapperConfig)\<`T`\> = [`BaseWrapperConfig`](#../interfaces/BaseWrapperConfig)\<`T`\>
|
|
279
305
|
|
|
280
|
-
|
|
306
|
+
### Parameters
|
|
281
307
|
|
|
282
|
-
|
|
308
|
+
#### value
|
|
283
309
|
|
|
284
|
-
|
|
310
|
+
`T`
|
|
285
311
|
|
|
286
|
-
|
|
312
|
+
#### config
|
|
287
313
|
|
|
288
|
-
|
|
289
|
-
get payloadCount(): number;
|
|
290
|
-
```
|
|
314
|
+
`Partial`\<`C`\> = `{}`
|
|
291
315
|
|
|
292
|
-
|
|
316
|
+
### Returns
|
|
293
317
|
|
|
294
|
-
`
|
|
318
|
+
`Promise`\<[`BaseWrapper`](#BaseWrapper)\<`T`, [`BaseWrapperConfig`](#../interfaces/BaseWrapperConfig)\<`T`\>\>\>
|
|
295
319
|
|
|
296
|
-
###
|
|
320
|
+
### Inherited from
|
|
297
321
|
|
|
298
|
-
|
|
299
|
-
HydratedBlockInstance.payloadCount
|
|
300
|
-
```
|
|
322
|
+
[`BaseWrapper`](#BaseWrapper).[`create`](BaseWrapper.md#create)
|
|
301
323
|
|
|
302
324
|
***
|
|
303
325
|
|
|
304
|
-
###
|
|
305
|
-
|
|
306
|
-
### Get Signature
|
|
326
|
+
### validateConfig()
|
|
307
327
|
|
|
308
328
|
```ts
|
|
309
|
-
|
|
329
|
+
static validateConfig(_config): PromisableArray<Error>;
|
|
310
330
|
```
|
|
311
331
|
|
|
312
|
-
|
|
332
|
+
### Parameters
|
|
313
333
|
|
|
314
|
-
|
|
334
|
+
#### \_config
|
|
315
335
|
|
|
316
|
-
|
|
336
|
+
`unknown`
|
|
317
337
|
|
|
318
|
-
|
|
319
|
-
HydratedBlockInstance.payloads
|
|
320
|
-
```
|
|
338
|
+
### Returns
|
|
321
339
|
|
|
322
|
-
|
|
340
|
+
`PromisableArray`\<`Error`\>
|
|
323
341
|
|
|
324
|
-
###
|
|
342
|
+
### Inherited from
|
|
325
343
|
|
|
326
|
-
|
|
344
|
+
[`BaseWrapper`](#BaseWrapper).[`validateConfig`](BaseWrapper.md#validateconfig)
|
|
345
|
+
|
|
346
|
+
***
|
|
347
|
+
|
|
348
|
+
### validateValue()
|
|
327
349
|
|
|
328
350
|
```ts
|
|
329
|
-
|
|
351
|
+
static validateValue(_value): PromisableArray<Error>;
|
|
330
352
|
```
|
|
331
353
|
|
|
332
|
-
|
|
354
|
+
### Parameters
|
|
333
355
|
|
|
334
|
-
|
|
356
|
+
#### \_value
|
|
335
357
|
|
|
336
|
-
|
|
358
|
+
`unknown`
|
|
337
359
|
|
|
338
|
-
|
|
339
|
-
HydratedBlockInstance.reward
|
|
340
|
-
```
|
|
360
|
+
### Returns
|
|
341
361
|
|
|
342
|
-
|
|
362
|
+
`PromisableArray`\<`Error`\>
|
|
343
363
|
|
|
344
|
-
###
|
|
364
|
+
### Inherited from
|
|
345
365
|
|
|
346
|
-
|
|
366
|
+
[`BaseWrapper`](#BaseWrapper).[`validateValue`](BaseWrapper.md#validatevalue)
|
|
367
|
+
|
|
368
|
+
***
|
|
369
|
+
|
|
370
|
+
### validate()
|
|
347
371
|
|
|
348
372
|
```ts
|
|
349
|
-
|
|
373
|
+
validate(): PromisableArray<Error>;
|
|
350
374
|
```
|
|
351
375
|
|
|
352
|
-
|
|
376
|
+
### Returns
|
|
353
377
|
|
|
354
|
-
`
|
|
378
|
+
`PromisableArray`\<`Error`\>
|
|
355
379
|
|
|
356
|
-
###
|
|
380
|
+
### Inherited from
|
|
357
381
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
382
|
+
[`BaseWrapper`](#BaseWrapper).[`validate`](BaseWrapper.md#validate)
|
|
383
|
+
|
|
384
|
+
### <a id="FeesWrapper"></a>FeesWrapper
|
|
385
|
+
|
|
386
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
361
387
|
|
|
362
388
|
***
|
|
363
389
|
|
|
364
|
-
|
|
390
|
+
## Implements
|
|
365
391
|
|
|
366
|
-
|
|
392
|
+
- `TransactionFeesInstance`
|
|
393
|
+
|
|
394
|
+
## Constructors
|
|
395
|
+
|
|
396
|
+
### Constructor
|
|
367
397
|
|
|
368
398
|
```ts
|
|
369
|
-
|
|
399
|
+
new FeesWrapper(__namedParameters): FeesWrapper;
|
|
370
400
|
```
|
|
371
401
|
|
|
372
|
-
|
|
402
|
+
### Parameters
|
|
373
403
|
|
|
374
|
-
|
|
404
|
+
#### \_\_namedParameters
|
|
375
405
|
|
|
376
|
-
|
|
406
|
+
`TransactionFeesHex` | `TransactionFeesBigInt`
|
|
377
407
|
|
|
378
|
-
|
|
379
|
-
HydratedBlockInstance.signatures
|
|
380
|
-
```
|
|
408
|
+
### Returns
|
|
381
409
|
|
|
382
|
-
|
|
410
|
+
`FeesWrapper`
|
|
383
411
|
|
|
384
|
-
|
|
412
|
+
## Properties
|
|
385
413
|
|
|
386
|
-
###
|
|
414
|
+
### base
|
|
387
415
|
|
|
388
416
|
```ts
|
|
389
|
-
|
|
417
|
+
base: AttoXL1;
|
|
390
418
|
```
|
|
391
419
|
|
|
392
|
-
|
|
420
|
+
### Implementation of
|
|
393
421
|
|
|
394
|
-
|
|
422
|
+
```ts
|
|
423
|
+
TransactionFeesInstance.base
|
|
424
|
+
```
|
|
395
425
|
|
|
396
426
|
***
|
|
397
427
|
|
|
398
|
-
###
|
|
399
|
-
|
|
400
|
-
### Get Signature
|
|
428
|
+
### gasLimit
|
|
401
429
|
|
|
402
430
|
```ts
|
|
403
|
-
|
|
431
|
+
gasLimit: AttoXL1;
|
|
404
432
|
```
|
|
405
433
|
|
|
406
|
-
#### Returns
|
|
407
|
-
|
|
408
|
-
`number`
|
|
409
|
-
|
|
410
434
|
### Implementation of
|
|
411
435
|
|
|
412
436
|
```ts
|
|
413
|
-
|
|
437
|
+
TransactionFeesInstance.gasLimit
|
|
414
438
|
```
|
|
415
439
|
|
|
416
440
|
***
|
|
417
441
|
|
|
418
|
-
###
|
|
442
|
+
### gasPrice
|
|
419
443
|
|
|
420
|
-
|
|
444
|
+
```ts
|
|
445
|
+
gasPrice: AttoXL1;
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
### Implementation of
|
|
421
449
|
|
|
422
450
|
```ts
|
|
423
|
-
|
|
451
|
+
TransactionFeesInstance.gasPrice
|
|
424
452
|
```
|
|
425
453
|
|
|
426
|
-
|
|
454
|
+
***
|
|
427
455
|
|
|
428
|
-
|
|
456
|
+
### priority
|
|
457
|
+
|
|
458
|
+
```ts
|
|
459
|
+
priority: AttoXL1;
|
|
460
|
+
```
|
|
429
461
|
|
|
430
462
|
### Implementation of
|
|
431
463
|
|
|
432
464
|
```ts
|
|
433
|
-
|
|
465
|
+
TransactionFeesInstance.priority
|
|
434
466
|
```
|
|
435
467
|
|
|
436
468
|
## Methods
|
|
437
469
|
|
|
438
|
-
###
|
|
470
|
+
### validate()
|
|
439
471
|
|
|
440
472
|
```ts
|
|
441
|
-
static
|
|
473
|
+
static validate(__namedParameters): Promisable<Error[]>;
|
|
442
474
|
```
|
|
443
475
|
|
|
444
|
-
###
|
|
476
|
+
### Parameters
|
|
445
477
|
|
|
446
|
-
####
|
|
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
|
|
478
|
+
#### \_\_namedParameters
|
|
525
479
|
|
|
526
|
-
`
|
|
480
|
+
`TransactionFeesHex` | `TransactionFeesBigInt`
|
|
527
481
|
|
|
528
482
|
### Returns
|
|
529
483
|
|
|
530
|
-
|
|
531
|
-
\| `HydratedTransactionInstance`\<`HydratedTransaction`, `AllowedBlockPayload`\>
|
|
532
|
-
|
|
533
|
-
### Implementation of
|
|
534
|
-
|
|
535
|
-
```ts
|
|
536
|
-
HydratedBlockInstance.transaction
|
|
537
|
-
```
|
|
484
|
+
`Promisable`\<`Error`[]\>
|
|
538
485
|
|
|
539
486
|
***
|
|
540
487
|
|
|
@@ -551,50 +498,12 @@ validate(): Promise<Error[]>;
|
|
|
551
498
|
### Implementation of
|
|
552
499
|
|
|
553
500
|
```ts
|
|
554
|
-
|
|
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]>[]]>>;
|
|
501
|
+
TransactionFeesInstance.validate
|
|
583
502
|
```
|
|
584
503
|
|
|
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
504
|
### <a id="HydratedTransactionWrapper"></a>HydratedTransactionWrapper
|
|
596
505
|
|
|
597
|
-
[**@xyo-network/
|
|
506
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
598
507
|
|
|
599
508
|
***
|
|
600
509
|
|
|
@@ -602,7 +511,7 @@ protected parse(validate): Promise<HydratedBlockInstance<[WithHashStorageMeta<T[
|
|
|
602
511
|
|
|
603
512
|
### T
|
|
604
513
|
|
|
605
|
-
`T` *extends* `
|
|
514
|
+
`T` *extends* `HydratedTransactionWithStorageMeta`
|
|
606
515
|
|
|
607
516
|
## Implements
|
|
608
517
|
|
|
@@ -749,12 +658,16 @@ HydratedTransactionInstance.externalPayloads
|
|
|
749
658
|
### Get Signature
|
|
750
659
|
|
|
751
660
|
```ts
|
|
752
|
-
get from(): Lowercase<string
|
|
661
|
+
get from(): Brand<Brand<Lowercase<string>, {
|
|
662
|
+
}>, {
|
|
663
|
+
}>;
|
|
753
664
|
```
|
|
754
665
|
|
|
755
666
|
#### Returns
|
|
756
667
|
|
|
757
|
-
`Lowercase`\<`string
|
|
668
|
+
`Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
669
|
+
\}\>, \{
|
|
670
|
+
\}\>
|
|
758
671
|
|
|
759
672
|
***
|
|
760
673
|
|
|
@@ -888,7 +801,7 @@ static parse<T>(transaction, validate): Promise<HydratedTransactionInstance<[T[0
|
|
|
888
801
|
|
|
889
802
|
#### T
|
|
890
803
|
|
|
891
|
-
`T` *extends* `
|
|
804
|
+
`T` *extends* `HydratedTransactionWithStorageMeta`
|
|
892
805
|
|
|
893
806
|
### Parameters
|
|
894
807
|
|
|
@@ -1045,1350 +958,773 @@ protected parse(validate): Promise<HydratedTransactionInstance<[WithHashStorageM
|
|
|
1045
958
|
|
|
1046
959
|
`Promise`\<`HydratedTransactionInstance`\<\[`WithHashStorageMeta`\<`T`\[`0`\]\>, `WithHashStorageMeta`\<`T`\[`1`\]\[`number`\]\>[]\], `AllowedBlockPayload`\>\>
|
|
1047
960
|
|
|
1048
|
-
### <a id="
|
|
961
|
+
### <a id="ShiftedBigInt"></a>ShiftedBigInt
|
|
1049
962
|
|
|
1050
|
-
[**@xyo-network/
|
|
963
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
1051
964
|
|
|
1052
965
|
***
|
|
1053
966
|
|
|
1054
|
-
##
|
|
1055
|
-
|
|
1056
|
-
- `BaseEmitter`\<[`HydratedBlockRangeStoreParams`](#../interfaces/HydratedBlockRangeStoreParams)\>
|
|
1057
|
-
|
|
1058
|
-
## Implements
|
|
967
|
+
## Deprecated
|
|
1059
968
|
|
|
1060
|
-
-
|
|
969
|
+
use from @xyo-network/xl1-protocol instead
|
|
1061
970
|
|
|
1062
971
|
## Constructors
|
|
1063
972
|
|
|
1064
973
|
### Constructor
|
|
1065
974
|
|
|
1066
975
|
```ts
|
|
1067
|
-
|
|
1068
|
-
params,
|
|
1069
|
-
firstNumber,
|
|
1070
|
-
lastNumber): IndexedHydratedBlockRangeStore;
|
|
976
|
+
new ShiftedBigInt(value, config): ShiftedBigInt;
|
|
1071
977
|
```
|
|
1072
978
|
|
|
1073
979
|
### Parameters
|
|
1074
980
|
|
|
1075
|
-
####
|
|
981
|
+
#### value
|
|
982
|
+
|
|
983
|
+
`bigint` | `ShiftedBigInt`
|
|
1076
984
|
|
|
1077
|
-
|
|
985
|
+
#### config
|
|
1078
986
|
|
|
1079
|
-
|
|
987
|
+
`Partial`\<`ShiftedBigIntConfig`\> = `{}`
|
|
1080
988
|
|
|
1081
|
-
|
|
989
|
+
### Returns
|
|
1082
990
|
|
|
1083
|
-
|
|
991
|
+
`ShiftedBigInt`
|
|
1084
992
|
|
|
1085
|
-
|
|
993
|
+
## Properties
|
|
1086
994
|
|
|
1087
|
-
###
|
|
995
|
+
### ~~defaultConfig~~
|
|
1088
996
|
|
|
1089
|
-
|
|
997
|
+
```ts
|
|
998
|
+
readonly static defaultConfig: ShiftedBigIntConfig;
|
|
999
|
+
```
|
|
1000
|
+
|
|
1001
|
+
***
|
|
1002
|
+
|
|
1003
|
+
### ~~config~~
|
|
1004
|
+
|
|
1005
|
+
```ts
|
|
1006
|
+
config: ShiftedBigIntConfig;
|
|
1007
|
+
```
|
|
1008
|
+
|
|
1009
|
+
***
|
|
1090
1010
|
|
|
1091
|
-
###
|
|
1011
|
+
### ~~value~~
|
|
1092
1012
|
|
|
1093
1013
|
```ts
|
|
1094
|
-
|
|
1014
|
+
value: bigint;
|
|
1095
1015
|
```
|
|
1096
1016
|
|
|
1097
1017
|
## Accessors
|
|
1098
1018
|
|
|
1099
|
-
###
|
|
1019
|
+
### ~~locale~~
|
|
1100
1020
|
|
|
1101
1021
|
### Get Signature
|
|
1102
1022
|
|
|
1103
1023
|
```ts
|
|
1104
|
-
get
|
|
1024
|
+
get locale(): LocalesArgument;
|
|
1105
1025
|
```
|
|
1106
1026
|
|
|
1107
1027
|
#### Returns
|
|
1108
1028
|
|
|
1109
|
-
`
|
|
1110
|
-
|
|
1111
|
-
### Implementation of
|
|
1112
|
-
|
|
1113
|
-
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`count`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#count)
|
|
1029
|
+
`LocalesArgument`
|
|
1114
1030
|
|
|
1115
1031
|
***
|
|
1116
1032
|
|
|
1117
|
-
###
|
|
1033
|
+
### ~~maxCharacters~~
|
|
1118
1034
|
|
|
1119
1035
|
### Get Signature
|
|
1120
1036
|
|
|
1121
1037
|
```ts
|
|
1122
|
-
get
|
|
1038
|
+
get maxCharacters(): number;
|
|
1123
1039
|
```
|
|
1124
1040
|
|
|
1125
1041
|
#### Returns
|
|
1126
1042
|
|
|
1127
|
-
|
|
1043
|
+
`number`
|
|
1128
1044
|
|
|
1129
|
-
|
|
1045
|
+
***
|
|
1046
|
+
|
|
1047
|
+
### ~~maxDecimal~~
|
|
1048
|
+
|
|
1049
|
+
### Get Signature
|
|
1050
|
+
|
|
1051
|
+
```ts
|
|
1052
|
+
get maxDecimal(): number;
|
|
1053
|
+
```
|
|
1054
|
+
|
|
1055
|
+
#### Returns
|
|
1130
1056
|
|
|
1131
|
-
|
|
1057
|
+
`number`
|
|
1132
1058
|
|
|
1133
1059
|
***
|
|
1134
1060
|
|
|
1135
|
-
###
|
|
1061
|
+
### ~~minDecimals~~
|
|
1136
1062
|
|
|
1137
1063
|
### Get Signature
|
|
1138
1064
|
|
|
1139
1065
|
```ts
|
|
1140
|
-
get
|
|
1066
|
+
get minDecimals(): number;
|
|
1141
1067
|
```
|
|
1142
1068
|
|
|
1143
1069
|
#### Returns
|
|
1144
1070
|
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
### Implementation of
|
|
1071
|
+
`number`
|
|
1148
1072
|
|
|
1149
|
-
|
|
1073
|
+
***
|
|
1150
1074
|
|
|
1151
|
-
|
|
1075
|
+
### ~~places~~
|
|
1152
1076
|
|
|
1153
|
-
###
|
|
1077
|
+
### Get Signature
|
|
1154
1078
|
|
|
1155
1079
|
```ts
|
|
1156
|
-
|
|
1080
|
+
get places(): number;
|
|
1157
1081
|
```
|
|
1158
1082
|
|
|
1159
|
-
|
|
1083
|
+
#### Returns
|
|
1084
|
+
|
|
1085
|
+
`number`
|
|
1086
|
+
|
|
1087
|
+
## Methods
|
|
1160
1088
|
|
|
1161
|
-
|
|
1089
|
+
### ~~toFullString()~~
|
|
1162
1090
|
|
|
1163
|
-
|
|
1091
|
+
```ts
|
|
1092
|
+
toFullString(): string;
|
|
1093
|
+
```
|
|
1164
1094
|
|
|
1165
1095
|
### Returns
|
|
1166
1096
|
|
|
1167
|
-
`
|
|
1097
|
+
`string`
|
|
1168
1098
|
|
|
1169
1099
|
***
|
|
1170
1100
|
|
|
1171
|
-
###
|
|
1101
|
+
### ~~toShortString()~~
|
|
1172
1102
|
|
|
1173
1103
|
```ts
|
|
1174
|
-
|
|
1104
|
+
toShortString(): string;
|
|
1175
1105
|
```
|
|
1176
1106
|
|
|
1177
1107
|
### Returns
|
|
1178
1108
|
|
|
1179
|
-
`
|
|
1180
|
-
|
|
1181
|
-
### Implementation of
|
|
1182
|
-
|
|
1183
|
-
[`IndexedHydratedBlockRangeStoreInstance`](#../interfaces/IndexedHydratedBlockRangeStoreInstance).[`first`](../interfaces/IndexedHydratedBlockRangeStoreInstance.md#first)
|
|
1109
|
+
`string`
|
|
1184
1110
|
|
|
1185
1111
|
***
|
|
1186
1112
|
|
|
1187
|
-
###
|
|
1113
|
+
### ~~toString()~~
|
|
1188
1114
|
|
|
1189
1115
|
```ts
|
|
1190
|
-
|
|
1116
|
+
toString(): string;
|
|
1191
1117
|
```
|
|
1192
1118
|
|
|
1193
|
-
###
|
|
1119
|
+
### Returns
|
|
1194
1120
|
|
|
1195
|
-
|
|
1121
|
+
`string`
|
|
1196
1122
|
|
|
1197
|
-
|
|
1123
|
+
### <a id="SignatureWrapper"></a>SignatureWrapper
|
|
1198
1124
|
|
|
1199
|
-
|
|
1125
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
1200
1126
|
|
|
1201
|
-
|
|
1127
|
+
***
|
|
1202
1128
|
|
|
1203
|
-
|
|
1129
|
+
## Implements
|
|
1204
1130
|
|
|
1205
|
-
|
|
1131
|
+
- `SignatureInstance`
|
|
1206
1132
|
|
|
1207
|
-
|
|
1133
|
+
## Constructors
|
|
1208
1134
|
|
|
1209
|
-
###
|
|
1135
|
+
### Constructor
|
|
1210
1136
|
|
|
1211
1137
|
```ts
|
|
1212
|
-
|
|
1138
|
+
new SignatureWrapper(
|
|
1139
|
+
signature,
|
|
1140
|
+
address,
|
|
1141
|
+
hash): SignatureWrapper;
|
|
1213
1142
|
```
|
|
1214
1143
|
|
|
1215
1144
|
### Parameters
|
|
1216
1145
|
|
|
1217
|
-
####
|
|
1146
|
+
#### signature
|
|
1218
1147
|
|
|
1219
|
-
`
|
|
1148
|
+
`Brand`
|
|
1220
1149
|
|
|
1221
|
-
|
|
1150
|
+
#### address
|
|
1222
1151
|
|
|
1223
|
-
`
|
|
1152
|
+
`Brand`
|
|
1224
1153
|
|
|
1225
|
-
|
|
1154
|
+
#### hash
|
|
1226
1155
|
|
|
1227
|
-
|
|
1156
|
+
`Brand`
|
|
1228
1157
|
|
|
1229
|
-
|
|
1158
|
+
### Returns
|
|
1230
1159
|
|
|
1231
|
-
|
|
1160
|
+
`SignatureWrapper`
|
|
1232
1161
|
|
|
1233
|
-
|
|
1234
|
-
last(): Promise<HydratedBlock>;
|
|
1235
|
-
```
|
|
1162
|
+
## Properties
|
|
1236
1163
|
|
|
1237
|
-
###
|
|
1164
|
+
### address
|
|
1238
1165
|
|
|
1239
|
-
|
|
1166
|
+
```ts
|
|
1167
|
+
address: Brand;
|
|
1168
|
+
```
|
|
1240
1169
|
|
|
1241
1170
|
### Implementation of
|
|
1242
1171
|
|
|
1243
|
-
|
|
1172
|
+
```ts
|
|
1173
|
+
SignatureInstance.address
|
|
1174
|
+
```
|
|
1244
1175
|
|
|
1245
1176
|
***
|
|
1246
1177
|
|
|
1247
|
-
###
|
|
1248
|
-
|
|
1249
|
-
### Call Signature
|
|
1178
|
+
### hash
|
|
1250
1179
|
|
|
1251
1180
|
```ts
|
|
1252
|
-
|
|
1181
|
+
hash: Brand;
|
|
1253
1182
|
```
|
|
1254
1183
|
|
|
1255
|
-
|
|
1184
|
+
### Implementation of
|
|
1185
|
+
|
|
1186
|
+
```ts
|
|
1187
|
+
SignatureInstance.hash
|
|
1188
|
+
```
|
|
1256
1189
|
|
|
1257
|
-
|
|
1190
|
+
***
|
|
1258
1191
|
|
|
1259
|
-
|
|
1192
|
+
### signature
|
|
1260
1193
|
|
|
1261
|
-
|
|
1194
|
+
```ts
|
|
1195
|
+
signature: Brand;
|
|
1196
|
+
```
|
|
1262
1197
|
|
|
1263
|
-
|
|
1198
|
+
### Implementation of
|
|
1264
1199
|
|
|
1265
|
-
|
|
1200
|
+
```ts
|
|
1201
|
+
SignatureInstance.signature
|
|
1202
|
+
```
|
|
1266
1203
|
|
|
1267
|
-
|
|
1204
|
+
## Methods
|
|
1268
1205
|
|
|
1269
|
-
###
|
|
1206
|
+
### validate()
|
|
1270
1207
|
|
|
1271
1208
|
```ts
|
|
1272
|
-
|
|
1209
|
+
static validate(
|
|
1210
|
+
hash,
|
|
1211
|
+
address,
|
|
1212
|
+
signature): Promise<Error[]>;
|
|
1273
1213
|
```
|
|
1274
1214
|
|
|
1275
|
-
|
|
1215
|
+
### Parameters
|
|
1276
1216
|
|
|
1277
|
-
|
|
1217
|
+
#### hash
|
|
1278
1218
|
|
|
1279
|
-
`
|
|
1219
|
+
`Brand`
|
|
1280
1220
|
|
|
1281
|
-
|
|
1221
|
+
#### address
|
|
1282
1222
|
|
|
1283
|
-
`
|
|
1223
|
+
`Brand`
|
|
1284
1224
|
|
|
1285
|
-
####
|
|
1225
|
+
#### signature
|
|
1286
1226
|
|
|
1287
|
-
`
|
|
1227
|
+
`Brand`
|
|
1288
1228
|
|
|
1289
|
-
|
|
1229
|
+
### Returns
|
|
1290
1230
|
|
|
1291
|
-
|
|
1231
|
+
`Promise`\<`Error`[]\>
|
|
1292
1232
|
|
|
1293
1233
|
***
|
|
1294
1234
|
|
|
1295
|
-
###
|
|
1296
|
-
|
|
1297
|
-
### Call Signature
|
|
1235
|
+
### validate()
|
|
1298
1236
|
|
|
1299
1237
|
```ts
|
|
1300
|
-
|
|
1238
|
+
validate(): Promise<Error[]>;
|
|
1301
1239
|
```
|
|
1302
1240
|
|
|
1303
|
-
|
|
1241
|
+
### Returns
|
|
1304
1242
|
|
|
1305
|
-
|
|
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)
|
|
1243
|
+
`Promise`\<`Error`[]\>
|
|
1316
1244
|
|
|
1317
|
-
###
|
|
1245
|
+
### Implementation of
|
|
1318
1246
|
|
|
1319
1247
|
```ts
|
|
1320
|
-
|
|
1248
|
+
SignatureInstance.validate
|
|
1321
1249
|
```
|
|
1322
1250
|
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
##### from
|
|
1326
|
-
|
|
1327
|
-
`HydratedBlock`
|
|
1328
|
-
|
|
1329
|
-
##### count
|
|
1330
|
-
|
|
1331
|
-
`number`
|
|
1332
|
-
|
|
1333
|
-
#### Returns
|
|
1251
|
+
### <a id="XL1Amount"></a>XL1Amount
|
|
1334
1252
|
|
|
1335
|
-
|
|
1253
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
1336
1254
|
|
|
1337
|
-
|
|
1255
|
+
***
|
|
1338
1256
|
|
|
1339
|
-
|
|
1257
|
+
## Deprecated
|
|
1340
1258
|
|
|
1341
|
-
|
|
1259
|
+
use from @xyo-network/xl1-protocol instead
|
|
1342
1260
|
|
|
1343
|
-
|
|
1261
|
+
## Implements
|
|
1344
1262
|
|
|
1345
|
-
|
|
1263
|
+
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance)
|
|
1346
1264
|
|
|
1347
1265
|
## Constructors
|
|
1348
1266
|
|
|
1349
1267
|
### Constructor
|
|
1350
1268
|
|
|
1351
1269
|
```ts
|
|
1352
|
-
new
|
|
1270
|
+
new XL1Amount(value, locale): XL1Amount;
|
|
1353
1271
|
```
|
|
1354
1272
|
|
|
1355
1273
|
### Parameters
|
|
1356
1274
|
|
|
1357
1275
|
#### value
|
|
1358
1276
|
|
|
1359
|
-
`bigint`
|
|
1277
|
+
`bigint`
|
|
1360
1278
|
|
|
1361
|
-
####
|
|
1279
|
+
#### locale
|
|
1362
1280
|
|
|
1363
|
-
`
|
|
1281
|
+
`LocalesArgument` = `'en-US'`
|
|
1364
1282
|
|
|
1365
1283
|
### Returns
|
|
1366
1284
|
|
|
1367
|
-
`
|
|
1285
|
+
`XL1Amount`
|
|
1368
1286
|
|
|
1369
1287
|
## Properties
|
|
1370
1288
|
|
|
1371
|
-
###
|
|
1289
|
+
### ~~value~~
|
|
1372
1290
|
|
|
1373
1291
|
```ts
|
|
1374
|
-
|
|
1375
|
-
```
|
|
1376
|
-
|
|
1377
|
-
***
|
|
1378
|
-
|
|
1379
|
-
### config
|
|
1380
|
-
|
|
1381
|
-
```ts
|
|
1382
|
-
config: ShiftedBigIntConfig;
|
|
1292
|
+
value: AttoXL1;
|
|
1383
1293
|
```
|
|
1384
1294
|
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
### value
|
|
1295
|
+
### Implementation of
|
|
1388
1296
|
|
|
1389
|
-
|
|
1390
|
-
value: bigint;
|
|
1391
|
-
```
|
|
1297
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`value`](../interfaces/XL1AmountInstance.md#value)
|
|
1392
1298
|
|
|
1393
1299
|
## Accessors
|
|
1394
1300
|
|
|
1395
|
-
###
|
|
1301
|
+
### ~~milli~~
|
|
1396
1302
|
|
|
1397
1303
|
### Get Signature
|
|
1398
1304
|
|
|
1399
1305
|
```ts
|
|
1400
|
-
get
|
|
1306
|
+
get milli(): MilliXL1;
|
|
1401
1307
|
```
|
|
1402
1308
|
|
|
1403
1309
|
#### Returns
|
|
1404
1310
|
|
|
1405
|
-
`
|
|
1406
|
-
|
|
1407
|
-
***
|
|
1408
|
-
|
|
1409
|
-
### maxCharacters
|
|
1410
|
-
|
|
1411
|
-
### Get Signature
|
|
1412
|
-
|
|
1413
|
-
```ts
|
|
1414
|
-
get maxCharacters(): number;
|
|
1415
|
-
```
|
|
1311
|
+
`MilliXL1`
|
|
1416
1312
|
|
|
1417
|
-
|
|
1313
|
+
### Implementation of
|
|
1418
1314
|
|
|
1419
|
-
`
|
|
1315
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`milli`](../interfaces/XL1AmountInstance.md#milli)
|
|
1420
1316
|
|
|
1421
1317
|
***
|
|
1422
1318
|
|
|
1423
|
-
###
|
|
1319
|
+
### ~~micro~~
|
|
1424
1320
|
|
|
1425
1321
|
### Get Signature
|
|
1426
1322
|
|
|
1427
1323
|
```ts
|
|
1428
|
-
get
|
|
1324
|
+
get micro(): MicroXL1;
|
|
1429
1325
|
```
|
|
1430
1326
|
|
|
1431
1327
|
#### Returns
|
|
1432
1328
|
|
|
1433
|
-
`
|
|
1434
|
-
|
|
1435
|
-
***
|
|
1436
|
-
|
|
1437
|
-
### minDecimals
|
|
1438
|
-
|
|
1439
|
-
### Get Signature
|
|
1440
|
-
|
|
1441
|
-
```ts
|
|
1442
|
-
get minDecimals(): number;
|
|
1443
|
-
```
|
|
1329
|
+
`MicroXL1`
|
|
1444
1330
|
|
|
1445
|
-
|
|
1331
|
+
### Implementation of
|
|
1446
1332
|
|
|
1447
|
-
`
|
|
1333
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`micro`](../interfaces/XL1AmountInstance.md#micro)
|
|
1448
1334
|
|
|
1449
1335
|
***
|
|
1450
1336
|
|
|
1451
|
-
###
|
|
1337
|
+
### ~~nano~~
|
|
1452
1338
|
|
|
1453
1339
|
### Get Signature
|
|
1454
1340
|
|
|
1455
1341
|
```ts
|
|
1456
|
-
get
|
|
1342
|
+
get nano(): NanoXL1;
|
|
1457
1343
|
```
|
|
1458
1344
|
|
|
1459
1345
|
#### Returns
|
|
1460
1346
|
|
|
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
1347
|
`NanoXL1`
|
|
1850
1348
|
|
|
1851
|
-
###
|
|
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`
|
|
1349
|
+
### Implementation of
|
|
2004
1350
|
|
|
2005
|
-
|
|
1351
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`nano`](../interfaces/XL1AmountInstance.md#nano)
|
|
2006
1352
|
|
|
2007
|
-
|
|
1353
|
+
***
|
|
2008
1354
|
|
|
2009
|
-
###
|
|
1355
|
+
### ~~pico~~
|
|
2010
1356
|
|
|
2011
|
-
|
|
1357
|
+
### Get Signature
|
|
2012
1358
|
|
|
2013
|
-
|
|
1359
|
+
```ts
|
|
1360
|
+
get pico(): PicoXL1;
|
|
1361
|
+
```
|
|
2014
1362
|
|
|
2015
|
-
|
|
1363
|
+
#### Returns
|
|
2016
1364
|
|
|
2017
|
-
|
|
1365
|
+
`PicoXL1`
|
|
2018
1366
|
|
|
2019
|
-
|
|
1367
|
+
### Implementation of
|
|
2020
1368
|
|
|
2021
|
-
|
|
1369
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`pico`](../interfaces/XL1AmountInstance.md#pico)
|
|
2022
1370
|
|
|
2023
|
-
|
|
1371
|
+
***
|
|
2024
1372
|
|
|
2025
|
-
|
|
1373
|
+
### ~~femto~~
|
|
2026
1374
|
|
|
2027
|
-
|
|
1375
|
+
### Get Signature
|
|
2028
1376
|
|
|
2029
|
-
|
|
1377
|
+
```ts
|
|
1378
|
+
get femto(): FemtoXL1;
|
|
1379
|
+
```
|
|
2030
1380
|
|
|
2031
|
-
|
|
1381
|
+
#### Returns
|
|
2032
1382
|
|
|
2033
|
-
|
|
1383
|
+
`FemtoXL1`
|
|
2034
1384
|
|
|
2035
|
-
|
|
1385
|
+
### Implementation of
|
|
2036
1386
|
|
|
2037
|
-
|
|
1387
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`femto`](../interfaces/XL1AmountInstance.md#femto)
|
|
2038
1388
|
|
|
2039
|
-
|
|
2040
|
-
`first`: `Hash`;
|
|
2041
|
-
`last`: `Hash`;
|
|
2042
|
-
`snapshotArchivist`: `ArchivistInstance`;
|
|
2043
|
-
\}\>
|
|
1389
|
+
***
|
|
2044
1390
|
|
|
2045
|
-
|
|
1391
|
+
### ~~atto~~
|
|
2046
1392
|
|
|
2047
|
-
###
|
|
1393
|
+
### Get Signature
|
|
2048
1394
|
|
|
2049
1395
|
```ts
|
|
2050
|
-
|
|
1396
|
+
get atto(): AttoXL1;
|
|
2051
1397
|
```
|
|
2052
1398
|
|
|
2053
|
-
|
|
1399
|
+
#### Returns
|
|
2054
1400
|
|
|
2055
|
-
|
|
2056
|
-
HydratedBlockStoreParams.sourceArchivist
|
|
2057
|
-
```
|
|
1401
|
+
`AttoXL1`
|
|
2058
1402
|
|
|
2059
|
-
|
|
1403
|
+
### Implementation of
|
|
2060
1404
|
|
|
2061
|
-
|
|
1405
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`atto`](../interfaces/XL1AmountInstance.md#atto)
|
|
2062
1406
|
|
|
2063
|
-
|
|
2064
|
-
first: Lowercase<string>;
|
|
2065
|
-
```
|
|
1407
|
+
## Methods
|
|
2066
1408
|
|
|
2067
|
-
###
|
|
1409
|
+
### ~~from()~~
|
|
2068
1410
|
|
|
2069
1411
|
```ts
|
|
2070
|
-
|
|
1412
|
+
static from(value, places): XL1Amount;
|
|
2071
1413
|
```
|
|
2072
1414
|
|
|
2073
|
-
|
|
1415
|
+
### Parameters
|
|
2074
1416
|
|
|
2075
|
-
|
|
1417
|
+
#### value
|
|
2076
1418
|
|
|
2077
|
-
|
|
2078
|
-
last: Lowercase<string>;
|
|
2079
|
-
```
|
|
1419
|
+
`bigint`
|
|
2080
1420
|
|
|
2081
|
-
|
|
1421
|
+
#### places
|
|
2082
1422
|
|
|
2083
|
-
|
|
2084
|
-
HydratedBlockStoreParams.last
|
|
2085
|
-
```
|
|
1423
|
+
`bigint` = `XL1Places.atto`
|
|
2086
1424
|
|
|
2087
|
-
|
|
1425
|
+
### Returns
|
|
2088
1426
|
|
|
2089
|
-
|
|
1427
|
+
`XL1Amount`
|
|
2090
1428
|
|
|
2091
|
-
|
|
2092
|
-
snapshotArchivist: ArchivistInstance;
|
|
2093
|
-
```
|
|
1429
|
+
***
|
|
2094
1430
|
|
|
2095
|
-
###
|
|
1431
|
+
### ~~fromMilli()~~
|
|
2096
1432
|
|
|
2097
1433
|
```ts
|
|
2098
|
-
|
|
1434
|
+
static fromMilli(value): XL1Amount;
|
|
2099
1435
|
```
|
|
2100
1436
|
|
|
2101
|
-
|
|
1437
|
+
### Parameters
|
|
2102
1438
|
|
|
2103
|
-
|
|
1439
|
+
#### value
|
|
2104
1440
|
|
|
2105
|
-
|
|
1441
|
+
`MilliXL1`
|
|
2106
1442
|
|
|
2107
|
-
|
|
1443
|
+
### Returns
|
|
2108
1444
|
|
|
2109
|
-
|
|
1445
|
+
`XL1Amount`
|
|
2110
1446
|
|
|
2111
|
-
|
|
1447
|
+
***
|
|
2112
1448
|
|
|
2113
|
-
###
|
|
1449
|
+
### ~~fromMicro()~~
|
|
2114
1450
|
|
|
2115
1451
|
```ts
|
|
2116
|
-
|
|
1452
|
+
static fromMicro(value): XL1Amount;
|
|
2117
1453
|
```
|
|
2118
1454
|
|
|
2119
1455
|
### Parameters
|
|
2120
1456
|
|
|
2121
|
-
####
|
|
1457
|
+
#### value
|
|
2122
1458
|
|
|
2123
|
-
`
|
|
1459
|
+
`MicroXL1`
|
|
2124
1460
|
|
|
2125
1461
|
### Returns
|
|
2126
1462
|
|
|
2127
|
-
`
|
|
2128
|
-
|
|
2129
|
-
### <a id="IndexedHydratedBlockRangeStoreInstance"></a>IndexedHydratedBlockRangeStoreInstance
|
|
2130
|
-
|
|
2131
|
-
[**@xyo-network/chain-wrappers**](#../README)
|
|
1463
|
+
`XL1Amount`
|
|
2132
1464
|
|
|
2133
1465
|
***
|
|
2134
1466
|
|
|
2135
|
-
|
|
1467
|
+
### ~~fromNano()~~
|
|
2136
1468
|
|
|
2137
|
-
|
|
1469
|
+
```ts
|
|
1470
|
+
static fromNano(value): XL1Amount;
|
|
1471
|
+
```
|
|
2138
1472
|
|
|
2139
|
-
|
|
1473
|
+
### Parameters
|
|
2140
1474
|
|
|
2141
|
-
|
|
1475
|
+
#### value
|
|
2142
1476
|
|
|
2143
|
-
|
|
2144
|
-
count: number;
|
|
2145
|
-
```
|
|
1477
|
+
`NanoXL1`
|
|
2146
1478
|
|
|
2147
|
-
###
|
|
1479
|
+
### Returns
|
|
2148
1480
|
|
|
2149
|
-
|
|
2150
|
-
BlockWindowInstance.count
|
|
2151
|
-
```
|
|
1481
|
+
`XL1Amount`
|
|
2152
1482
|
|
|
2153
1483
|
***
|
|
2154
1484
|
|
|
2155
|
-
###
|
|
1485
|
+
### ~~fromPico()~~
|
|
2156
1486
|
|
|
2157
1487
|
```ts
|
|
2158
|
-
|
|
1488
|
+
static fromPico(value): XL1Amount;
|
|
2159
1489
|
```
|
|
2160
1490
|
|
|
2161
|
-
###
|
|
1491
|
+
### Parameters
|
|
2162
1492
|
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
1493
|
+
#### value
|
|
1494
|
+
|
|
1495
|
+
`PicoXL1`
|
|
1496
|
+
|
|
1497
|
+
### Returns
|
|
1498
|
+
|
|
1499
|
+
`XL1Amount`
|
|
2166
1500
|
|
|
2167
1501
|
***
|
|
2168
1502
|
|
|
2169
|
-
###
|
|
1503
|
+
### ~~fromFemto()~~
|
|
2170
1504
|
|
|
2171
1505
|
```ts
|
|
2172
|
-
|
|
1506
|
+
static fromFemto(value): XL1Amount;
|
|
2173
1507
|
```
|
|
2174
1508
|
|
|
2175
|
-
###
|
|
1509
|
+
### Parameters
|
|
2176
1510
|
|
|
2177
|
-
|
|
2178
|
-
BlockWindowInstance.range
|
|
2179
|
-
```
|
|
1511
|
+
#### value
|
|
2180
1512
|
|
|
2181
|
-
|
|
1513
|
+
`FemtoXL1`
|
|
1514
|
+
|
|
1515
|
+
### Returns
|
|
1516
|
+
|
|
1517
|
+
`XL1Amount`
|
|
2182
1518
|
|
|
2183
|
-
|
|
1519
|
+
***
|
|
1520
|
+
|
|
1521
|
+
### ~~fromAtto()~~
|
|
2184
1522
|
|
|
2185
1523
|
```ts
|
|
2186
|
-
|
|
1524
|
+
static fromAtto(value): XL1Amount;
|
|
2187
1525
|
```
|
|
2188
1526
|
|
|
2189
1527
|
### Parameters
|
|
2190
1528
|
|
|
2191
|
-
####
|
|
1529
|
+
#### value
|
|
2192
1530
|
|
|
2193
|
-
`
|
|
1531
|
+
`AttoXL1`
|
|
2194
1532
|
|
|
2195
1533
|
### Returns
|
|
2196
1534
|
|
|
2197
|
-
`
|
|
2198
|
-
|
|
2199
|
-
### Inherited from
|
|
2200
|
-
|
|
2201
|
-
[`IndexedHydratedBlockStoreInstance`](#IndexedHydratedBlockStoreInstance).[`fromHash`](IndexedHydratedBlockStoreInstance.md#fromhash)
|
|
1535
|
+
`XL1Amount`
|
|
2202
1536
|
|
|
2203
1537
|
***
|
|
2204
1538
|
|
|
2205
|
-
###
|
|
1539
|
+
### ~~to()~~
|
|
2206
1540
|
|
|
2207
1541
|
```ts
|
|
2208
|
-
|
|
1542
|
+
to(places): bigint;
|
|
2209
1543
|
```
|
|
2210
1544
|
|
|
2211
1545
|
### Parameters
|
|
2212
1546
|
|
|
2213
|
-
####
|
|
1547
|
+
#### places
|
|
2214
1548
|
|
|
2215
|
-
`number`
|
|
1549
|
+
`number` | `bigint`
|
|
2216
1550
|
|
|
2217
1551
|
### Returns
|
|
2218
1552
|
|
|
2219
|
-
`
|
|
1553
|
+
`bigint`
|
|
2220
1554
|
|
|
2221
|
-
###
|
|
1555
|
+
### Implementation of
|
|
2222
1556
|
|
|
2223
|
-
[`
|
|
1557
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`to`](../interfaces/XL1AmountInstance.md#to)
|
|
2224
1558
|
|
|
2225
1559
|
***
|
|
2226
1560
|
|
|
2227
|
-
###
|
|
1561
|
+
### ~~toString()~~
|
|
2228
1562
|
|
|
2229
1563
|
```ts
|
|
2230
|
-
|
|
1564
|
+
toString(places, config): string;
|
|
2231
1565
|
```
|
|
2232
1566
|
|
|
2233
|
-
###
|
|
1567
|
+
### Parameters
|
|
2234
1568
|
|
|
2235
|
-
|
|
1569
|
+
#### places
|
|
2236
1570
|
|
|
2237
|
-
|
|
1571
|
+
`number` = `...`
|
|
2238
1572
|
|
|
2239
|
-
|
|
1573
|
+
#### config
|
|
2240
1574
|
|
|
2241
|
-
|
|
2242
|
-
last(): Promisable<HydratedBlock>;
|
|
2243
|
-
```
|
|
1575
|
+
`Partial`\<`ShiftedBigIntConfig`\> = `{}`
|
|
2244
1576
|
|
|
2245
1577
|
### Returns
|
|
2246
1578
|
|
|
2247
|
-
`
|
|
1579
|
+
`string`
|
|
2248
1580
|
|
|
2249
|
-
|
|
1581
|
+
### Implementation of
|
|
2250
1582
|
|
|
2251
|
-
|
|
1583
|
+
[`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`toString`](../interfaces/XL1AmountInstance.md#tostring)
|
|
2252
1584
|
|
|
2253
|
-
###
|
|
1585
|
+
### functions
|
|
2254
1586
|
|
|
2255
|
-
|
|
2256
|
-
next(from): Promisable<undefined | HydratedBlock>;
|
|
2257
|
-
```
|
|
1587
|
+
### <a id="createSignatureWrappers"></a>createSignatureWrappers
|
|
2258
1588
|
|
|
2259
|
-
|
|
1589
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
2260
1590
|
|
|
2261
|
-
|
|
1591
|
+
***
|
|
2262
1592
|
|
|
2263
|
-
|
|
1593
|
+
```ts
|
|
1594
|
+
function createSignatureWrappers(bw): Promise<SignatureInstance[]>;
|
|
1595
|
+
```
|
|
2264
1596
|
|
|
2265
|
-
|
|
1597
|
+
## Parameters
|
|
2266
1598
|
|
|
2267
|
-
|
|
1599
|
+
### bw
|
|
2268
1600
|
|
|
2269
|
-
|
|
1601
|
+
`BoundWitness`
|
|
2270
1602
|
|
|
2271
|
-
|
|
2272
|
-
next(from, count): Promisable<HydratedBlock[]>;
|
|
2273
|
-
```
|
|
1603
|
+
## Returns
|
|
2274
1604
|
|
|
2275
|
-
|
|
1605
|
+
`Promise`\<`SignatureInstance`[]\>
|
|
2276
1606
|
|
|
2277
|
-
|
|
1607
|
+
### <a id="splitOnDecimal"></a>splitOnDecimal
|
|
2278
1608
|
|
|
2279
|
-
|
|
1609
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
2280
1610
|
|
|
2281
|
-
|
|
1611
|
+
***
|
|
2282
1612
|
|
|
2283
|
-
|
|
1613
|
+
```ts
|
|
1614
|
+
function splitOnDecimal(value, places): [bigint, bigint];
|
|
1615
|
+
```
|
|
2284
1616
|
|
|
2285
|
-
|
|
1617
|
+
## Parameters
|
|
2286
1618
|
|
|
2287
|
-
|
|
1619
|
+
### value
|
|
2288
1620
|
|
|
2289
|
-
|
|
1621
|
+
`bigint`
|
|
2290
1622
|
|
|
2291
|
-
###
|
|
1623
|
+
### places
|
|
2292
1624
|
|
|
2293
|
-
|
|
1625
|
+
`number` = `18`
|
|
2294
1626
|
|
|
2295
|
-
|
|
2296
|
-
prev(from): Promisable<undefined | HydratedBlock>;
|
|
2297
|
-
```
|
|
1627
|
+
## Returns
|
|
2298
1628
|
|
|
2299
|
-
|
|
1629
|
+
\[`bigint`, `bigint`\]
|
|
2300
1630
|
|
|
2301
|
-
|
|
1631
|
+
## Deprecated
|
|
2302
1632
|
|
|
2303
|
-
|
|
1633
|
+
use from @xyo-network/xl1-protocol instead
|
|
2304
1634
|
|
|
2305
|
-
|
|
1635
|
+
### <a id="splitOnDecimalToString"></a>splitOnDecimalToString
|
|
2306
1636
|
|
|
2307
|
-
|
|
1637
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
2308
1638
|
|
|
2309
|
-
|
|
1639
|
+
***
|
|
2310
1640
|
|
|
2311
1641
|
```ts
|
|
2312
|
-
|
|
1642
|
+
function splitOnDecimalToString(
|
|
1643
|
+
value,
|
|
1644
|
+
places,
|
|
1645
|
+
maxDecimal,
|
|
1646
|
+
maxCharacters,
|
|
1647
|
+
minDecimals,
|
|
1648
|
+
locale): string;
|
|
2313
1649
|
```
|
|
2314
1650
|
|
|
2315
|
-
|
|
1651
|
+
## Parameters
|
|
2316
1652
|
|
|
2317
|
-
|
|
1653
|
+
### value
|
|
2318
1654
|
|
|
2319
|
-
`
|
|
1655
|
+
`bigint`
|
|
2320
1656
|
|
|
2321
|
-
|
|
1657
|
+
### places
|
|
2322
1658
|
|
|
2323
|
-
`number`
|
|
1659
|
+
`number` = `18`
|
|
2324
1660
|
|
|
2325
|
-
|
|
1661
|
+
### maxDecimal
|
|
2326
1662
|
|
|
2327
|
-
`
|
|
1663
|
+
`number` = `places`
|
|
2328
1664
|
|
|
2329
|
-
|
|
1665
|
+
### maxCharacters
|
|
2330
1666
|
|
|
2331
|
-
|
|
1667
|
+
`number` = `9`
|
|
2332
1668
|
|
|
2333
|
-
|
|
1669
|
+
### minDecimals
|
|
2334
1670
|
|
|
2335
|
-
|
|
1671
|
+
`number` = `1`
|
|
2336
1672
|
|
|
2337
|
-
|
|
1673
|
+
### locale
|
|
2338
1674
|
|
|
2339
|
-
|
|
1675
|
+
`LocalesArgument` = `'en-US'`
|
|
2340
1676
|
|
|
2341
|
-
|
|
1677
|
+
## Returns
|
|
2342
1678
|
|
|
2343
|
-
|
|
1679
|
+
`string`
|
|
2344
1680
|
|
|
2345
|
-
|
|
1681
|
+
## Deprecated
|
|
2346
1682
|
|
|
2347
|
-
|
|
2348
|
-
fromHash(hash): Promisable<undefined | HydratedBlock>;
|
|
2349
|
-
```
|
|
1683
|
+
use from @xyo-network/xl1-protocol instead
|
|
2350
1684
|
|
|
2351
|
-
###
|
|
1685
|
+
### interfaces
|
|
2352
1686
|
|
|
2353
|
-
|
|
1687
|
+
### <a id="BaseWrapperConfig"></a>BaseWrapperConfig
|
|
2354
1688
|
|
|
2355
|
-
|
|
1689
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
2356
1690
|
|
|
2357
|
-
|
|
1691
|
+
***
|
|
2358
1692
|
|
|
2359
|
-
|
|
1693
|
+
## Type Parameters
|
|
2360
1694
|
|
|
2361
|
-
###
|
|
1695
|
+
### T
|
|
2362
1696
|
|
|
2363
|
-
|
|
1697
|
+
`T`
|
|
2364
1698
|
|
|
2365
|
-
|
|
1699
|
+
## Properties
|
|
2366
1700
|
|
|
2367
|
-
###
|
|
1701
|
+
### provider
|
|
2368
1702
|
|
|
2369
1703
|
```ts
|
|
2370
|
-
|
|
1704
|
+
provider: XyoConnection;
|
|
2371
1705
|
```
|
|
2372
1706
|
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
#### number
|
|
2376
|
-
|
|
2377
|
-
`number`
|
|
1707
|
+
***
|
|
2378
1708
|
|
|
2379
|
-
###
|
|
1709
|
+
### value
|
|
2380
1710
|
|
|
2381
|
-
|
|
1711
|
+
```ts
|
|
1712
|
+
value: T;
|
|
1713
|
+
```
|
|
2382
1714
|
|
|
2383
1715
|
### <a id="XL1AmountInstance"></a>XL1AmountInstance
|
|
2384
1716
|
|
|
2385
|
-
[**@xyo-network/
|
|
1717
|
+
[**@xyo-network/xl1-wrappers**](#../README)
|
|
2386
1718
|
|
|
2387
1719
|
***
|
|
2388
1720
|
|
|
1721
|
+
## Deprecated
|
|
1722
|
+
|
|
1723
|
+
use from @xyo-network/xl1-protocol instead
|
|
1724
|
+
|
|
2389
1725
|
## Properties
|
|
2390
1726
|
|
|
2391
|
-
### value
|
|
1727
|
+
### ~~value~~
|
|
2392
1728
|
|
|
2393
1729
|
```ts
|
|
2394
1730
|
value: AttoXL1;
|
|
@@ -2396,7 +1732,7 @@ value: AttoXL1;
|
|
|
2396
1732
|
|
|
2397
1733
|
***
|
|
2398
1734
|
|
|
2399
|
-
### milli
|
|
1735
|
+
### ~~milli~~
|
|
2400
1736
|
|
|
2401
1737
|
```ts
|
|
2402
1738
|
milli: MilliXL1;
|
|
@@ -2404,7 +1740,7 @@ milli: MilliXL1;
|
|
|
2404
1740
|
|
|
2405
1741
|
***
|
|
2406
1742
|
|
|
2407
|
-
### micro
|
|
1743
|
+
### ~~micro~~
|
|
2408
1744
|
|
|
2409
1745
|
```ts
|
|
2410
1746
|
micro: MicroXL1;
|
|
@@ -2412,7 +1748,7 @@ micro: MicroXL1;
|
|
|
2412
1748
|
|
|
2413
1749
|
***
|
|
2414
1750
|
|
|
2415
|
-
### nano
|
|
1751
|
+
### ~~nano~~
|
|
2416
1752
|
|
|
2417
1753
|
```ts
|
|
2418
1754
|
nano: NanoXL1;
|
|
@@ -2420,7 +1756,7 @@ nano: NanoXL1;
|
|
|
2420
1756
|
|
|
2421
1757
|
***
|
|
2422
1758
|
|
|
2423
|
-
### pico
|
|
1759
|
+
### ~~pico~~
|
|
2424
1760
|
|
|
2425
1761
|
```ts
|
|
2426
1762
|
pico: PicoXL1;
|
|
@@ -2428,7 +1764,7 @@ pico: PicoXL1;
|
|
|
2428
1764
|
|
|
2429
1765
|
***
|
|
2430
1766
|
|
|
2431
|
-
### femto
|
|
1767
|
+
### ~~femto~~
|
|
2432
1768
|
|
|
2433
1769
|
```ts
|
|
2434
1770
|
femto: FemtoXL1;
|
|
@@ -2436,7 +1772,7 @@ femto: FemtoXL1;
|
|
|
2436
1772
|
|
|
2437
1773
|
***
|
|
2438
1774
|
|
|
2439
|
-
### atto
|
|
1775
|
+
### ~~atto~~
|
|
2440
1776
|
|
|
2441
1777
|
```ts
|
|
2442
1778
|
atto: AttoXL1;
|
|
@@ -2444,7 +1780,7 @@ atto: AttoXL1;
|
|
|
2444
1780
|
|
|
2445
1781
|
## Methods
|
|
2446
1782
|
|
|
2447
|
-
### to()
|
|
1783
|
+
### ~~to()~~
|
|
2448
1784
|
|
|
2449
1785
|
```ts
|
|
2450
1786
|
to(places): bigint;
|
|
@@ -2462,7 +1798,7 @@ to(places): bigint;
|
|
|
2462
1798
|
|
|
2463
1799
|
***
|
|
2464
1800
|
|
|
2465
|
-
### toString()
|
|
1801
|
+
### ~~toString()~~
|
|
2466
1802
|
|
|
2467
1803
|
```ts
|
|
2468
1804
|
toString(places, config): string;
|
|
@@ -2482,24 +1818,6 @@ toString(places, config): string;
|
|
|
2482
1818
|
|
|
2483
1819
|
`string`
|
|
2484
1820
|
|
|
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
1821
|
|
|
2504
1822
|
## Maintainers
|
|
2505
1823
|
|
|
@@ -2518,14 +1836,14 @@ type HydratedBlockStoreParams<TAdditionalParams> = BaseParams<object & TAddition
|
|
|
2518
1836
|
|
|
2519
1837
|
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
2520
1838
|
|
|
2521
|
-
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/
|
|
2522
|
-
[npm-link]: https://www.npmjs.com/package/@xyo-network/
|
|
1839
|
+
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/xl1-wrappers.svg
|
|
1840
|
+
[npm-link]: https://www.npmjs.com/package/@xyo-network/xl1-wrappers
|
|
2523
1841
|
|
|
2524
|
-
[npm-downloads-badge]: https://img.shields.io/npm/dw/@xyo-network/
|
|
2525
|
-
[npm-license-badge]: https://img.shields.io/npm/l/@xyo-network/
|
|
1842
|
+
[npm-downloads-badge]: https://img.shields.io/npm/dw/@xyo-network/xl1-wrappers
|
|
1843
|
+
[npm-license-badge]: https://img.shields.io/npm/l/@xyo-network/xl1-wrappers
|
|
2526
1844
|
|
|
2527
|
-
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xyo-network/
|
|
2528
|
-
[jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xyo-network/
|
|
1845
|
+
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xyo-network/xl1-wrappers/badge
|
|
1846
|
+
[jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xyo-network/xl1-wrappers
|
|
2529
1847
|
|
|
2530
|
-
[socket-badge]: https://socket.dev/api/badge/npm/package/@xyo-network/
|
|
2531
|
-
[socket-link]: https://socket.dev/npm/package/@xyo-network/
|
|
1848
|
+
[socket-badge]: https://socket.dev/api/badge/npm/package/@xyo-network/xl1-wrappers
|
|
1849
|
+
[socket-link]: https://socket.dev/npm/package/@xyo-network/xl1-wrappers
|