@xyo-network/xl1-wrappers 1.16.13 → 1.16.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.
Files changed (2) hide show
  1. package/README.md +49 -741
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -23,20 +23,15 @@ XYO Layer One SDK Wrappers
23
23
  - [BaseWrapper](#classes/BaseWrapper)
24
24
  - [FeesWrapper](#classes/FeesWrapper)
25
25
  - [SignatureWrapper](#classes/SignatureWrapper)
26
- - [~~ShiftedBigInt~~](#classes/ShiftedBigInt)
27
- - [~~XL1Amount~~](#classes/XL1Amount)
28
26
  - [ChainWrapper](#classes/ChainWrapper)
29
27
  - [HydratedTransactionWrapper](#classes/HydratedTransactionWrapper)
30
28
 
31
29
  ## Interfaces
32
30
 
33
31
  - [BaseWrapperConfig](#interfaces/BaseWrapperConfig)
34
- - [~~XL1AmountInstance~~](#interfaces/XL1AmountInstance)
35
32
 
36
33
  ## Functions
37
34
 
38
- - [~~splitOnDecimal~~](#functions/splitOnDecimal)
39
- - [~~splitOnDecimalToString~~](#functions/splitOnDecimalToString)
40
35
  - [createSignatureWrappers](#functions/createSignatureWrappers)
41
36
 
42
37
  ### classes
@@ -106,12 +101,12 @@ protected readonly value: T;
106
101
  ### Get Signature
107
102
 
108
103
  ```ts
109
- get provider(): undefined | XyoConnection;
104
+ get provider(): XyoConnection | undefined;
110
105
  ```
111
106
 
112
107
  #### Returns
113
108
 
114
- `undefined` \| `XyoConnection`
109
+ `XyoConnection` \| `undefined`
115
110
 
116
111
  ## Methods
117
112
 
@@ -215,7 +210,7 @@ protected new ChainWrapper(value, config): ChainWrapper;
215
210
 
216
211
  #### value
217
212
 
218
- `Brand`
213
+ `Address`
219
214
 
220
215
  #### config
221
216
 
@@ -246,7 +241,7 @@ protected readonly config: Partial<C>;
246
241
  ### value
247
242
 
248
243
  ```ts
249
- protected readonly value: Brand;
244
+ protected readonly value: Address;
250
245
  ```
251
246
 
252
247
  ### Inherited from
@@ -260,12 +255,12 @@ protected readonly value: Brand;
260
255
  ### Get Signature
261
256
 
262
257
  ```ts
263
- get provider(): undefined | XyoConnection;
258
+ get provider(): XyoConnection | undefined;
264
259
  ```
265
260
 
266
261
  #### Returns
267
262
 
268
- `undefined` \| `XyoConnection`
263
+ `XyoConnection` \| `undefined`
269
264
 
270
265
  ### Inherited from
271
266
 
@@ -278,12 +273,12 @@ get provider(): undefined | XyoConnection;
278
273
  ### Get Signature
279
274
 
280
275
  ```ts
281
- get id(): Brand;
276
+ get id(): Address;
282
277
  ```
283
278
 
284
279
  #### Returns
285
280
 
286
- `Brand`
281
+ `Address`
287
282
 
288
283
  ## Methods
289
284
 
@@ -658,16 +653,12 @@ HydratedTransactionInstance.externalPayloads
658
653
  ### Get Signature
659
654
 
660
655
  ```ts
661
- get from(): Brand<Brand<Lowercase<string>, {
662
- }>, {
663
- }>;
656
+ get from(): Address;
664
657
  ```
665
658
 
666
659
  #### Returns
667
660
 
668
- `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
669
- \}\>, \{
670
- \}\>
661
+ `Address`
671
662
 
672
663
  ***
673
664
 
@@ -696,12 +687,12 @@ HydratedTransactionInstance.payloadCount
696
687
  ### Get Signature
697
688
 
698
689
  ```ts
699
- get payloads(): WithHashStorageMeta<WithStorageMeta<T[1][number]>>[];
690
+ get payloads(): WithHashMeta<WithStorageMeta<T[1][number]>>[];
700
691
  ```
701
692
 
702
693
  #### Returns
703
694
 
704
- `WithHashStorageMeta`\<`WithStorageMeta`\<`T`\[`1`\]\[`number`\]\>\>[]
695
+ `WithHashMeta`\<`WithStorageMeta`\<`T`\[`1`\]\[`number`\]\>\>[]
705
696
 
706
697
  ### Implementation of
707
698
 
@@ -822,9 +813,7 @@ static parse<T>(transaction, validate): Promise<HydratedTransactionInstance<[T[0
822
813
  ### elevatedPayload()
823
814
 
824
815
  ```ts
825
- elevatedPayload(index):
826
- | undefined
827
- | WithHashStorageMeta<AllowedBlockPayload & T[1][number]>;
816
+ elevatedPayload(index): WithHashMeta<AllowedBlockPayload & T[1][number]> | undefined;
828
817
  ```
829
818
 
830
819
  ### Parameters
@@ -835,8 +824,7 @@ elevatedPayload(index):
835
824
 
836
825
  ### Returns
837
826
 
838
- \| `undefined`
839
- \| `WithHashStorageMeta`\<AllowedBlockPayload & T\[1\]\[number\]\>
827
+ `WithHashMeta`\<AllowedBlockPayload & T\[1\]\[number\]\> \| `undefined`
840
828
 
841
829
  ### Implementation of
842
830
 
@@ -861,7 +849,7 @@ gasRequired(): bigint;
861
849
  ### payload()
862
850
 
863
851
  ```ts
864
- payload(index): undefined | WithStorageMeta<Payload>;
852
+ payload(index): WithStorageMeta<Payload> | undefined;
865
853
  ```
866
854
 
867
855
  ### Parameters
@@ -872,7 +860,7 @@ payload(index): undefined | WithStorageMeta<Payload>;
872
860
 
873
861
  ### Returns
874
862
 
875
- `undefined` \| `WithStorageMeta`\<`Payload`\>
863
+ `WithStorageMeta`\<`Payload`\> \| `undefined`
876
864
 
877
865
  ### Implementation of
878
866
 
@@ -903,7 +891,7 @@ HydratedTransactionInstance.reward
903
891
  ### signature()
904
892
 
905
893
  ```ts
906
- signature(index): undefined | SignatureInstance;
894
+ signature(index): SignatureInstance | undefined;
907
895
  ```
908
896
 
909
897
  ### Parameters
@@ -914,7 +902,7 @@ signature(index): undefined | SignatureInstance;
914
902
 
915
903
  ### Returns
916
904
 
917
- `undefined` \| `SignatureInstance`
905
+ `SignatureInstance` \| `undefined`
918
906
 
919
907
  ### Implementation of
920
908
 
@@ -945,7 +933,7 @@ HydratedTransactionInstance.validate
945
933
  ### parse()
946
934
 
947
935
  ```ts
948
- protected parse(validate): Promise<HydratedTransactionInstance<[WithHashStorageMeta<T[0]>, WithHashStorageMeta<T[1][number]>[]], AllowedBlockPayload>>;
936
+ protected parse(validate): Promise<HydratedTransactionInstance<[WithHashMeta<T[0]>, WithHashMeta<T[1][number]>[]], AllowedBlockPayload>>;
949
937
  ```
950
938
 
951
939
  ### Parameters
@@ -956,169 +944,7 @@ protected parse(validate): Promise<HydratedTransactionInstance<[WithHashStorageM
956
944
 
957
945
  ### Returns
958
946
 
959
- `Promise`\<`HydratedTransactionInstance`\<\[`WithHashStorageMeta`\<`T`\[`0`\]\>, `WithHashStorageMeta`\<`T`\[`1`\]\[`number`\]\>[]\], `AllowedBlockPayload`\>\>
960
-
961
- ### <a id="ShiftedBigInt"></a>ShiftedBigInt
962
-
963
- [**@xyo-network/xl1-wrappers**](#../README)
964
-
965
- ***
966
-
967
- ## Deprecated
968
-
969
- use from @xyo-network/xl1-protocol instead
970
-
971
- ## Constructors
972
-
973
- ### Constructor
974
-
975
- ```ts
976
- new ShiftedBigInt(value, config): ShiftedBigInt;
977
- ```
978
-
979
- ### Parameters
980
-
981
- #### value
982
-
983
- `bigint` | `ShiftedBigInt`
984
-
985
- #### config
986
-
987
- `Partial`\<`ShiftedBigIntConfig`\> = `{}`
988
-
989
- ### Returns
990
-
991
- `ShiftedBigInt`
992
-
993
- ## Properties
994
-
995
- ### ~~defaultConfig~~
996
-
997
- ```ts
998
- readonly static defaultConfig: ShiftedBigIntConfig;
999
- ```
1000
-
1001
- ***
1002
-
1003
- ### ~~config~~
1004
-
1005
- ```ts
1006
- config: ShiftedBigIntConfig;
1007
- ```
1008
-
1009
- ***
1010
-
1011
- ### ~~value~~
1012
-
1013
- ```ts
1014
- value: bigint;
1015
- ```
1016
-
1017
- ## Accessors
1018
-
1019
- ### ~~locale~~
1020
-
1021
- ### Get Signature
1022
-
1023
- ```ts
1024
- get locale(): LocalesArgument;
1025
- ```
1026
-
1027
- #### Returns
1028
-
1029
- `LocalesArgument`
1030
-
1031
- ***
1032
-
1033
- ### ~~maxCharacters~~
1034
-
1035
- ### Get Signature
1036
-
1037
- ```ts
1038
- get maxCharacters(): number;
1039
- ```
1040
-
1041
- #### Returns
1042
-
1043
- `number`
1044
-
1045
- ***
1046
-
1047
- ### ~~maxDecimal~~
1048
-
1049
- ### Get Signature
1050
-
1051
- ```ts
1052
- get maxDecimal(): number;
1053
- ```
1054
-
1055
- #### Returns
1056
-
1057
- `number`
1058
-
1059
- ***
1060
-
1061
- ### ~~minDecimals~~
1062
-
1063
- ### Get Signature
1064
-
1065
- ```ts
1066
- get minDecimals(): number;
1067
- ```
1068
-
1069
- #### Returns
1070
-
1071
- `number`
1072
-
1073
- ***
1074
-
1075
- ### ~~places~~
1076
-
1077
- ### Get Signature
1078
-
1079
- ```ts
1080
- get places(): number;
1081
- ```
1082
-
1083
- #### Returns
1084
-
1085
- `number`
1086
-
1087
- ## Methods
1088
-
1089
- ### ~~toFullString()~~
1090
-
1091
- ```ts
1092
- toFullString(): string;
1093
- ```
1094
-
1095
- ### Returns
1096
-
1097
- `string`
1098
-
1099
- ***
1100
-
1101
- ### ~~toShortString()~~
1102
-
1103
- ```ts
1104
- toShortString(): string;
1105
- ```
1106
-
1107
- ### Returns
1108
-
1109
- `string`
1110
-
1111
- ***
1112
-
1113
- ### ~~toString()~~
1114
-
1115
- ```ts
1116
- toString(): string;
1117
- ```
1118
-
1119
- ### Returns
1120
-
1121
- `string`
947
+ `Promise`\<`HydratedTransactionInstance`\<\[`WithHashMeta`\<`T`\[`0`\]\>, `WithHashMeta`\<`T`\[`1`\]\[`number`\]\>[]\], `AllowedBlockPayload`\>\>
1122
948
 
1123
949
  ### <a id="SignatureWrapper"></a>SignatureWrapper
1124
950
 
@@ -1145,15 +971,15 @@ new SignatureWrapper(
1145
971
 
1146
972
  #### signature
1147
973
 
1148
- `Brand`
974
+ `Hex`
1149
975
 
1150
976
  #### address
1151
977
 
1152
- `Brand`
978
+ `Address`
1153
979
 
1154
980
  #### hash
1155
981
 
1156
- `Brand`
982
+ `Hash`
1157
983
 
1158
984
  ### Returns
1159
985
 
@@ -1164,7 +990,7 @@ new SignatureWrapper(
1164
990
  ### address
1165
991
 
1166
992
  ```ts
1167
- address: Brand;
993
+ address: Address;
1168
994
  ```
1169
995
 
1170
996
  ### Implementation of
@@ -1178,7 +1004,7 @@ SignatureInstance.address
1178
1004
  ### hash
1179
1005
 
1180
1006
  ```ts
1181
- hash: Brand;
1007
+ hash: Hash;
1182
1008
  ```
1183
1009
 
1184
1010
  ### Implementation of
@@ -1192,7 +1018,7 @@ SignatureInstance.hash
1192
1018
  ### signature
1193
1019
 
1194
1020
  ```ts
1195
- signature: Brand;
1021
+ signature: Hex;
1196
1022
  ```
1197
1023
 
1198
1024
  ### Implementation of
@@ -1216,15 +1042,15 @@ signature): Promise<Error[]>;
1216
1042
 
1217
1043
  #### hash
1218
1044
 
1219
- `Brand`
1045
+ `Hash`
1220
1046
 
1221
1047
  #### address
1222
1048
 
1223
- `Brand`
1049
+ `Address`
1224
1050
 
1225
1051
  #### signature
1226
1052
 
1227
- `Brand`
1053
+ `Hex`
1228
1054
 
1229
1055
  ### Returns
1230
1056
 
@@ -1248,576 +1074,58 @@ validate(): Promise<Error[]>;
1248
1074
  SignatureInstance.validate
1249
1075
  ```
1250
1076
 
1251
- ### <a id="XL1Amount"></a>XL1Amount
1252
-
1253
- [**@xyo-network/xl1-wrappers**](#../README)
1254
-
1255
- ***
1256
-
1257
- ## Deprecated
1258
-
1259
- use from @xyo-network/xl1-protocol instead
1260
-
1261
- ## Implements
1262
-
1263
- - [`XL1AmountInstance`](#../interfaces/XL1AmountInstance)
1264
-
1265
- ## Constructors
1266
-
1267
- ### Constructor
1268
-
1269
- ```ts
1270
- new XL1Amount(value, locale): XL1Amount;
1271
- ```
1272
-
1273
- ### Parameters
1274
-
1275
- #### value
1276
-
1277
- `bigint`
1278
-
1279
- #### locale
1280
-
1281
- `LocalesArgument` = `'en-US'`
1282
-
1283
- ### Returns
1284
-
1285
- `XL1Amount`
1286
-
1287
- ## Properties
1288
-
1289
- ### ~~value~~
1290
-
1291
- ```ts
1292
- value: AttoXL1;
1293
- ```
1294
-
1295
- ### Implementation of
1296
-
1297
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`value`](../interfaces/XL1AmountInstance.md#value)
1298
-
1299
- ## Accessors
1300
-
1301
- ### ~~milli~~
1302
-
1303
- ### Get Signature
1304
-
1305
- ```ts
1306
- get milli(): MilliXL1;
1307
- ```
1308
-
1309
- #### Returns
1310
-
1311
- `MilliXL1`
1077
+ ### functions
1312
1078
 
1313
- ### Implementation of
1079
+ ### <a id="createSignatureWrappers"></a>createSignatureWrappers
1314
1080
 
1315
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`milli`](../interfaces/XL1AmountInstance.md#milli)
1081
+ [**@xyo-network/xl1-wrappers**](#../README)
1316
1082
 
1317
1083
  ***
1318
1084
 
1319
- ### ~~micro~~
1320
-
1321
- ### Get Signature
1322
-
1323
1085
  ```ts
1324
- get micro(): MicroXL1;
1086
+ function createSignatureWrappers(bw): Promise<SignatureInstance[]>;
1325
1087
  ```
1326
1088
 
1327
- #### Returns
1328
-
1329
- `MicroXL1`
1330
-
1331
- ### Implementation of
1332
-
1333
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`micro`](../interfaces/XL1AmountInstance.md#micro)
1334
-
1335
- ***
1089
+ ## Parameters
1336
1090
 
1337
- ### ~~nano~~
1091
+ ### bw
1338
1092
 
1339
- ### Get Signature
1093
+ `BoundWitness`
1340
1094
 
1341
- ```ts
1342
- get nano(): NanoXL1;
1343
- ```
1095
+ ## Returns
1344
1096
 
1345
- #### Returns
1097
+ `Promise`\<`SignatureInstance`[]\>
1346
1098
 
1347
- `NanoXL1`
1099
+ ### interfaces
1348
1100
 
1349
- ### Implementation of
1101
+ ### <a id="BaseWrapperConfig"></a>BaseWrapperConfig
1350
1102
 
1351
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`nano`](../interfaces/XL1AmountInstance.md#nano)
1103
+ [**@xyo-network/xl1-wrappers**](#../README)
1352
1104
 
1353
1105
  ***
1354
1106
 
1355
- ### ~~pico~~
1356
-
1357
- ### Get Signature
1358
-
1359
- ```ts
1360
- get pico(): PicoXL1;
1361
- ```
1362
-
1363
- #### Returns
1364
-
1365
- `PicoXL1`
1366
-
1367
- ### Implementation of
1107
+ ## Type Parameters
1368
1108
 
1369
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`pico`](../interfaces/XL1AmountInstance.md#pico)
1109
+ ### T
1370
1110
 
1371
- ***
1111
+ `T`
1372
1112
 
1373
- ### ~~femto~~
1113
+ ## Properties
1374
1114
 
1375
- ### Get Signature
1115
+ ### provider
1376
1116
 
1377
1117
  ```ts
1378
- get femto(): FemtoXL1;
1118
+ provider: XyoConnection;
1379
1119
  ```
1380
1120
 
1381
- #### Returns
1382
-
1383
- `FemtoXL1`
1384
-
1385
- ### Implementation of
1386
-
1387
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`femto`](../interfaces/XL1AmountInstance.md#femto)
1388
-
1389
1121
  ***
1390
1122
 
1391
- ### ~~atto~~
1392
-
1393
- ### Get Signature
1394
-
1395
- ```ts
1396
- get atto(): AttoXL1;
1397
- ```
1398
-
1399
- #### Returns
1400
-
1401
- `AttoXL1`
1402
-
1403
- ### Implementation of
1404
-
1405
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`atto`](../interfaces/XL1AmountInstance.md#atto)
1406
-
1407
- ## Methods
1408
-
1409
- ### ~~from()~~
1123
+ ### value
1410
1124
 
1411
1125
  ```ts
1412
- static from(value, places): XL1Amount;
1126
+ value: T;
1413
1127
  ```
1414
1128
 
1415
- ### Parameters
1416
-
1417
- #### value
1418
-
1419
- `bigint`
1420
-
1421
- #### places
1422
-
1423
- `bigint` = `XL1Places.atto`
1424
-
1425
- ### Returns
1426
-
1427
- `XL1Amount`
1428
-
1429
- ***
1430
-
1431
- ### ~~fromMilli()~~
1432
-
1433
- ```ts
1434
- static fromMilli(value): XL1Amount;
1435
- ```
1436
-
1437
- ### Parameters
1438
-
1439
- #### value
1440
-
1441
- `MilliXL1`
1442
-
1443
- ### Returns
1444
-
1445
- `XL1Amount`
1446
-
1447
- ***
1448
-
1449
- ### ~~fromMicro()~~
1450
-
1451
- ```ts
1452
- static fromMicro(value): XL1Amount;
1453
- ```
1454
-
1455
- ### Parameters
1456
-
1457
- #### value
1458
-
1459
- `MicroXL1`
1460
-
1461
- ### Returns
1462
-
1463
- `XL1Amount`
1464
-
1465
- ***
1466
-
1467
- ### ~~fromNano()~~
1468
-
1469
- ```ts
1470
- static fromNano(value): XL1Amount;
1471
- ```
1472
-
1473
- ### Parameters
1474
-
1475
- #### value
1476
-
1477
- `NanoXL1`
1478
-
1479
- ### Returns
1480
-
1481
- `XL1Amount`
1482
-
1483
- ***
1484
-
1485
- ### ~~fromPico()~~
1486
-
1487
- ```ts
1488
- static fromPico(value): XL1Amount;
1489
- ```
1490
-
1491
- ### Parameters
1492
-
1493
- #### value
1494
-
1495
- `PicoXL1`
1496
-
1497
- ### Returns
1498
-
1499
- `XL1Amount`
1500
-
1501
- ***
1502
-
1503
- ### ~~fromFemto()~~
1504
-
1505
- ```ts
1506
- static fromFemto(value): XL1Amount;
1507
- ```
1508
-
1509
- ### Parameters
1510
-
1511
- #### value
1512
-
1513
- `FemtoXL1`
1514
-
1515
- ### Returns
1516
-
1517
- `XL1Amount`
1518
-
1519
- ***
1520
-
1521
- ### ~~fromAtto()~~
1522
-
1523
- ```ts
1524
- static fromAtto(value): XL1Amount;
1525
- ```
1526
-
1527
- ### Parameters
1528
-
1529
- #### value
1530
-
1531
- `AttoXL1`
1532
-
1533
- ### Returns
1534
-
1535
- `XL1Amount`
1536
-
1537
- ***
1538
-
1539
- ### ~~to()~~
1540
-
1541
- ```ts
1542
- to(places): bigint;
1543
- ```
1544
-
1545
- ### Parameters
1546
-
1547
- #### places
1548
-
1549
- `number` | `bigint`
1550
-
1551
- ### Returns
1552
-
1553
- `bigint`
1554
-
1555
- ### Implementation of
1556
-
1557
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`to`](../interfaces/XL1AmountInstance.md#to)
1558
-
1559
- ***
1560
-
1561
- ### ~~toString()~~
1562
-
1563
- ```ts
1564
- toString(places, config): string;
1565
- ```
1566
-
1567
- ### Parameters
1568
-
1569
- #### places
1570
-
1571
- `number` = `...`
1572
-
1573
- #### config
1574
-
1575
- `Partial`\<`ShiftedBigIntConfig`\> = `{}`
1576
-
1577
- ### Returns
1578
-
1579
- `string`
1580
-
1581
- ### Implementation of
1582
-
1583
- [`XL1AmountInstance`](#../interfaces/XL1AmountInstance).[`toString`](../interfaces/XL1AmountInstance.md#tostring)
1584
-
1585
- ### functions
1586
-
1587
- ### <a id="createSignatureWrappers"></a>createSignatureWrappers
1588
-
1589
- [**@xyo-network/xl1-wrappers**](#../README)
1590
-
1591
- ***
1592
-
1593
- ```ts
1594
- function createSignatureWrappers(bw): Promise<SignatureInstance[]>;
1595
- ```
1596
-
1597
- ## Parameters
1598
-
1599
- ### bw
1600
-
1601
- `BoundWitness`
1602
-
1603
- ## Returns
1604
-
1605
- `Promise`\<`SignatureInstance`[]\>
1606
-
1607
- ### <a id="splitOnDecimal"></a>splitOnDecimal
1608
-
1609
- [**@xyo-network/xl1-wrappers**](#../README)
1610
-
1611
- ***
1612
-
1613
- ```ts
1614
- function splitOnDecimal(value, places): [bigint, bigint];
1615
- ```
1616
-
1617
- ## Parameters
1618
-
1619
- ### value
1620
-
1621
- `bigint`
1622
-
1623
- ### places
1624
-
1625
- `number` = `18`
1626
-
1627
- ## Returns
1628
-
1629
- \[`bigint`, `bigint`\]
1630
-
1631
- ## Deprecated
1632
-
1633
- use from @xyo-network/xl1-protocol instead
1634
-
1635
- ### <a id="splitOnDecimalToString"></a>splitOnDecimalToString
1636
-
1637
- [**@xyo-network/xl1-wrappers**](#../README)
1638
-
1639
- ***
1640
-
1641
- ```ts
1642
- function splitOnDecimalToString(
1643
- value,
1644
- places,
1645
- maxDecimal,
1646
- maxCharacters,
1647
- minDecimals,
1648
- locale): string;
1649
- ```
1650
-
1651
- ## Parameters
1652
-
1653
- ### value
1654
-
1655
- `bigint`
1656
-
1657
- ### places
1658
-
1659
- `number` = `18`
1660
-
1661
- ### maxDecimal
1662
-
1663
- `number` = `places`
1664
-
1665
- ### maxCharacters
1666
-
1667
- `number` = `9`
1668
-
1669
- ### minDecimals
1670
-
1671
- `number` = `1`
1672
-
1673
- ### locale
1674
-
1675
- `LocalesArgument` = `'en-US'`
1676
-
1677
- ## Returns
1678
-
1679
- `string`
1680
-
1681
- ## Deprecated
1682
-
1683
- use from @xyo-network/xl1-protocol instead
1684
-
1685
- ### interfaces
1686
-
1687
- ### <a id="BaseWrapperConfig"></a>BaseWrapperConfig
1688
-
1689
- [**@xyo-network/xl1-wrappers**](#../README)
1690
-
1691
- ***
1692
-
1693
- ## Type Parameters
1694
-
1695
- ### T
1696
-
1697
- `T`
1698
-
1699
- ## Properties
1700
-
1701
- ### provider
1702
-
1703
- ```ts
1704
- provider: XyoConnection;
1705
- ```
1706
-
1707
- ***
1708
-
1709
- ### value
1710
-
1711
- ```ts
1712
- value: T;
1713
- ```
1714
-
1715
- ### <a id="XL1AmountInstance"></a>XL1AmountInstance
1716
-
1717
- [**@xyo-network/xl1-wrappers**](#../README)
1718
-
1719
- ***
1720
-
1721
- ## Deprecated
1722
-
1723
- use from @xyo-network/xl1-protocol instead
1724
-
1725
- ## Properties
1726
-
1727
- ### ~~value~~
1728
-
1729
- ```ts
1730
- value: AttoXL1;
1731
- ```
1732
-
1733
- ***
1734
-
1735
- ### ~~milli~~
1736
-
1737
- ```ts
1738
- milli: MilliXL1;
1739
- ```
1740
-
1741
- ***
1742
-
1743
- ### ~~micro~~
1744
-
1745
- ```ts
1746
- micro: MicroXL1;
1747
- ```
1748
-
1749
- ***
1750
-
1751
- ### ~~nano~~
1752
-
1753
- ```ts
1754
- nano: NanoXL1;
1755
- ```
1756
-
1757
- ***
1758
-
1759
- ### ~~pico~~
1760
-
1761
- ```ts
1762
- pico: PicoXL1;
1763
- ```
1764
-
1765
- ***
1766
-
1767
- ### ~~femto~~
1768
-
1769
- ```ts
1770
- femto: FemtoXL1;
1771
- ```
1772
-
1773
- ***
1774
-
1775
- ### ~~atto~~
1776
-
1777
- ```ts
1778
- atto: AttoXL1;
1779
- ```
1780
-
1781
- ## Methods
1782
-
1783
- ### ~~to()~~
1784
-
1785
- ```ts
1786
- to(places): bigint;
1787
- ```
1788
-
1789
- ### Parameters
1790
-
1791
- #### places
1792
-
1793
- `number` | `bigint`
1794
-
1795
- ### Returns
1796
-
1797
- `bigint`
1798
-
1799
- ***
1800
-
1801
- ### ~~toString()~~
1802
-
1803
- ```ts
1804
- toString(places, config): string;
1805
- ```
1806
-
1807
- ### Parameters
1808
-
1809
- #### places
1810
-
1811
- `number`
1812
-
1813
- #### config
1814
-
1815
- `Partial`\<`ShiftedBigIntConfig`\>
1816
-
1817
- ### Returns
1818
-
1819
- `string`
1820
-
1821
1129
 
1822
1130
  ## Maintainers
1823
1131
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/xl1-wrappers",
4
- "version": "1.16.13",
4
+ "version": "1.16.15",
5
5
  "description": "XYO Layer One SDK Wrappers",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -36,14 +36,14 @@
36
36
  "src"
37
37
  ],
38
38
  "dependencies": {
39
- "@xylabs/sdk-js": "~5.0.33",
40
- "@xyo-network/boundwitness-model": "~5.1.22",
41
- "@xyo-network/boundwitness-validator": "~5.1.22",
42
- "@xyo-network/payload-builder": "~5.1.22",
43
- "@xyo-network/payload-model": "~5.1.22",
39
+ "@xylabs/sdk-js": "~5.0.34",
40
+ "@xyo-network/boundwitness-model": "~5.1.23",
41
+ "@xyo-network/boundwitness-validator": "~5.1.23",
42
+ "@xyo-network/payload-builder": "~5.1.23",
43
+ "@xyo-network/payload-model": "~5.1.23",
44
44
  "@xyo-network/xl1-protocol": "~1.13.11",
45
- "@xyo-network/xl1-protocol-sdk": "~1.16.13",
46
- "@xyo-network/xl1-validation": "~1.16.13"
45
+ "@xyo-network/xl1-protocol-sdk": "~1.16.15",
46
+ "@xyo-network/xl1-validation": "~1.16.15"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "~24.10.1",