@basedone/core 0.1.5 → 0.1.8
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/dist/index.d.mts +49 -3
- package/dist/index.d.ts +49 -3
- package/dist/index.js +3048 -259
- package/dist/index.mjs +97 -16
- package/dist/{meta-CDVVRMMG.mjs → meta-57AY44US.mjs} +66 -29
- package/dist/{meta-HEOHBPHS.mjs → meta-RSZFFH63.mjs} +102 -72
- package/dist/perpDexs-PBKWKKQU.mjs +201 -0
- package/dist/perpDexs-XSB4Y2BP.mjs +2298 -0
- package/dist/{spotMeta-NK626IKQ.mjs → spotMeta-WQ4PXRNY.mjs} +290 -4
- package/dist/{spotMeta-4LMKHJUT.mjs → spotMeta-Y7G2GI7B.mjs} +551 -3
- package/lib/fee.ts +30 -3
- package/lib/hip3/market-info.ts +13 -21
- package/lib/hip3/utils.ts +75 -1
- package/lib/meta/data/mainnet/meta.json +102 -72
- package/lib/meta/data/mainnet/perpDexs.json +183 -4
- package/lib/meta/data/mainnet/spotMeta.json +290 -4
- package/lib/meta/data/testnet/meta.json +66 -29
- package/lib/meta/data/testnet/perpDexs.json +1755 -136
- package/lib/meta/data/testnet/spotMeta.json +551 -3
- package/lib/utils/formatter.ts +46 -0
- package/package.json +1 -1
- package/dist/perpDexs-G5YWV3II.mjs +0 -22
- package/dist/perpDexs-PGY6VMYS.mjs +0 -679
|
@@ -10385,6 +10385,168 @@
|
|
|
10385
10385
|
"name": "@1343",
|
|
10386
10386
|
"index": 1343,
|
|
10387
10387
|
"isCanonical": false
|
|
10388
|
+
},
|
|
10389
|
+
{
|
|
10390
|
+
"tokens": [
|
|
10391
|
+
1458,
|
|
10392
|
+
0
|
|
10393
|
+
],
|
|
10394
|
+
"name": "@1344",
|
|
10395
|
+
"index": 1344,
|
|
10396
|
+
"isCanonical": false
|
|
10397
|
+
},
|
|
10398
|
+
{
|
|
10399
|
+
"tokens": [
|
|
10400
|
+
1463,
|
|
10401
|
+
0
|
|
10402
|
+
],
|
|
10403
|
+
"name": "@1345",
|
|
10404
|
+
"index": 1345,
|
|
10405
|
+
"isCanonical": false
|
|
10406
|
+
},
|
|
10407
|
+
{
|
|
10408
|
+
"tokens": [
|
|
10409
|
+
1464,
|
|
10410
|
+
0
|
|
10411
|
+
],
|
|
10412
|
+
"name": "@1346",
|
|
10413
|
+
"index": 1346,
|
|
10414
|
+
"isCanonical": false
|
|
10415
|
+
},
|
|
10416
|
+
{
|
|
10417
|
+
"tokens": [
|
|
10418
|
+
1442,
|
|
10419
|
+
0
|
|
10420
|
+
],
|
|
10421
|
+
"name": "@1348",
|
|
10422
|
+
"index": 1348,
|
|
10423
|
+
"isCanonical": false
|
|
10424
|
+
},
|
|
10425
|
+
{
|
|
10426
|
+
"tokens": [
|
|
10427
|
+
1462,
|
|
10428
|
+
0
|
|
10429
|
+
],
|
|
10430
|
+
"name": "@1349",
|
|
10431
|
+
"index": 1349,
|
|
10432
|
+
"isCanonical": false
|
|
10433
|
+
},
|
|
10434
|
+
{
|
|
10435
|
+
"tokens": [
|
|
10436
|
+
1467,
|
|
10437
|
+
0
|
|
10438
|
+
],
|
|
10439
|
+
"name": "@1350",
|
|
10440
|
+
"index": 1350,
|
|
10441
|
+
"isCanonical": false
|
|
10442
|
+
},
|
|
10443
|
+
{
|
|
10444
|
+
"tokens": [
|
|
10445
|
+
1468,
|
|
10446
|
+
0
|
|
10447
|
+
],
|
|
10448
|
+
"name": "@1351",
|
|
10449
|
+
"index": 1351,
|
|
10450
|
+
"isCanonical": false
|
|
10451
|
+
},
|
|
10452
|
+
{
|
|
10453
|
+
"tokens": [
|
|
10454
|
+
1461,
|
|
10455
|
+
0
|
|
10456
|
+
],
|
|
10457
|
+
"name": "@1352",
|
|
10458
|
+
"index": 1352,
|
|
10459
|
+
"isCanonical": false
|
|
10460
|
+
},
|
|
10461
|
+
{
|
|
10462
|
+
"tokens": [
|
|
10463
|
+
1470,
|
|
10464
|
+
1452
|
|
10465
|
+
],
|
|
10466
|
+
"name": "@1354",
|
|
10467
|
+
"index": 1354,
|
|
10468
|
+
"isCanonical": false
|
|
10469
|
+
},
|
|
10470
|
+
{
|
|
10471
|
+
"tokens": [
|
|
10472
|
+
1474,
|
|
10473
|
+
0
|
|
10474
|
+
],
|
|
10475
|
+
"name": "@1357",
|
|
10476
|
+
"index": 1357,
|
|
10477
|
+
"isCanonical": false
|
|
10478
|
+
},
|
|
10479
|
+
{
|
|
10480
|
+
"tokens": [
|
|
10481
|
+
1465,
|
|
10482
|
+
0
|
|
10483
|
+
],
|
|
10484
|
+
"name": "@1358",
|
|
10485
|
+
"index": 1358,
|
|
10486
|
+
"isCanonical": false
|
|
10487
|
+
},
|
|
10488
|
+
{
|
|
10489
|
+
"tokens": [
|
|
10490
|
+
1475,
|
|
10491
|
+
0
|
|
10492
|
+
],
|
|
10493
|
+
"name": "@1359",
|
|
10494
|
+
"index": 1359,
|
|
10495
|
+
"isCanonical": false
|
|
10496
|
+
},
|
|
10497
|
+
{
|
|
10498
|
+
"tokens": [
|
|
10499
|
+
1105,
|
|
10500
|
+
1475
|
|
10501
|
+
],
|
|
10502
|
+
"name": "@1360",
|
|
10503
|
+
"index": 1360,
|
|
10504
|
+
"isCanonical": false
|
|
10505
|
+
},
|
|
10506
|
+
{
|
|
10507
|
+
"tokens": [
|
|
10508
|
+
1476,
|
|
10509
|
+
0
|
|
10510
|
+
],
|
|
10511
|
+
"name": "@1361",
|
|
10512
|
+
"index": 1361,
|
|
10513
|
+
"isCanonical": false
|
|
10514
|
+
},
|
|
10515
|
+
{
|
|
10516
|
+
"tokens": [
|
|
10517
|
+
1456,
|
|
10518
|
+
0
|
|
10519
|
+
],
|
|
10520
|
+
"name": "@1362",
|
|
10521
|
+
"index": 1362,
|
|
10522
|
+
"isCanonical": false
|
|
10523
|
+
},
|
|
10524
|
+
{
|
|
10525
|
+
"tokens": [
|
|
10526
|
+
1478,
|
|
10527
|
+
1452
|
|
10528
|
+
],
|
|
10529
|
+
"name": "@1363",
|
|
10530
|
+
"index": 1363,
|
|
10531
|
+
"isCanonical": false
|
|
10532
|
+
},
|
|
10533
|
+
{
|
|
10534
|
+
"tokens": [
|
|
10535
|
+
1482,
|
|
10536
|
+
1452
|
|
10537
|
+
],
|
|
10538
|
+
"name": "@1365",
|
|
10539
|
+
"index": 1365,
|
|
10540
|
+
"isCanonical": false
|
|
10541
|
+
},
|
|
10542
|
+
{
|
|
10543
|
+
"tokens": [
|
|
10544
|
+
1480,
|
|
10545
|
+
0
|
|
10546
|
+
],
|
|
10547
|
+
"name": "@1366",
|
|
10548
|
+
"index": 1366,
|
|
10549
|
+
"isCanonical": false
|
|
10388
10550
|
}
|
|
10389
10551
|
],
|
|
10390
10552
|
"tokens": [
|
|
@@ -26579,7 +26741,10 @@
|
|
|
26579
26741
|
"index": 1441,
|
|
26580
26742
|
"tokenId": "0x7015af4219a36cc0c269b5fe83c95429",
|
|
26581
26743
|
"isCanonical": false,
|
|
26582
|
-
"evmContract":
|
|
26744
|
+
"evmContract": {
|
|
26745
|
+
"address": "0xe5d86e15b4dcd8bfe1d8f02bcb8a74abd7b50fa5",
|
|
26746
|
+
"evm_extra_wei_decimals": 10
|
|
26747
|
+
},
|
|
26583
26748
|
"fullName": null,
|
|
26584
26749
|
"deployerTradingFeeShare": "1.0"
|
|
26585
26750
|
},
|
|
@@ -26590,7 +26755,10 @@
|
|
|
26590
26755
|
"index": 1442,
|
|
26591
26756
|
"tokenId": "0x80fcf59b90b99e2ce9ad59c3f95d4b10",
|
|
26592
26757
|
"isCanonical": false,
|
|
26593
|
-
"evmContract":
|
|
26758
|
+
"evmContract": {
|
|
26759
|
+
"address": "0x63d9f645f0db956f7209dddfee1bbdef67120689",
|
|
26760
|
+
"evm_extra_wei_decimals": 4
|
|
26761
|
+
},
|
|
26594
26762
|
"fullName": "Tanssi",
|
|
26595
26763
|
"deployerTradingFeeShare": "0.99"
|
|
26596
26764
|
},
|
|
@@ -26765,7 +26933,10 @@
|
|
|
26765
26933
|
"index": 1456,
|
|
26766
26934
|
"tokenId": "0x9739c25f3a7cec4260360d6c9f14d654",
|
|
26767
26935
|
"isCanonical": false,
|
|
26768
|
-
"evmContract":
|
|
26936
|
+
"evmContract": {
|
|
26937
|
+
"address": "0xed9fb2b320cc3050f94ba2cd47a3cd8c5af48e69",
|
|
26938
|
+
"evm_extra_wei_decimals": 10
|
|
26939
|
+
},
|
|
26769
26940
|
"fullName": "Grilled Cheese",
|
|
26770
26941
|
"deployerTradingFeeShare": "1.0"
|
|
26771
26942
|
},
|
|
@@ -26790,6 +26961,383 @@
|
|
|
26790
26961
|
"evmContract": null,
|
|
26791
26962
|
"fullName": "LMYY",
|
|
26792
26963
|
"deployerTradingFeeShare": "1.0"
|
|
26964
|
+
},
|
|
26965
|
+
{
|
|
26966
|
+
"name": "NOAZN",
|
|
26967
|
+
"szDecimals": 2,
|
|
26968
|
+
"weiDecimals": 8,
|
|
26969
|
+
"index": 1459,
|
|
26970
|
+
"tokenId": "0xf19d746122233d38caa0f697b5eb101a",
|
|
26971
|
+
"isCanonical": false,
|
|
26972
|
+
"evmContract": null,
|
|
26973
|
+
"fullName": "EAazdazza",
|
|
26974
|
+
"deployerTradingFeeShare": "1.0"
|
|
26975
|
+
},
|
|
26976
|
+
{
|
|
26977
|
+
"name": "HARMON",
|
|
26978
|
+
"szDecimals": 2,
|
|
26979
|
+
"weiDecimals": 8,
|
|
26980
|
+
"index": 1460,
|
|
26981
|
+
"tokenId": "0x98ad7041dc0fded11d4b1b438d921e6a",
|
|
26982
|
+
"isCanonical": false,
|
|
26983
|
+
"evmContract": null,
|
|
26984
|
+
"fullName": null,
|
|
26985
|
+
"deployerTradingFeeShare": "1.0"
|
|
26986
|
+
},
|
|
26987
|
+
{
|
|
26988
|
+
"name": "XDC",
|
|
26989
|
+
"szDecimals": 2,
|
|
26990
|
+
"weiDecimals": 8,
|
|
26991
|
+
"index": 1461,
|
|
26992
|
+
"tokenId": "0x603b85b92159da52c5ec264c3b575e0f",
|
|
26993
|
+
"isCanonical": false,
|
|
26994
|
+
"evmContract": null,
|
|
26995
|
+
"fullName": null,
|
|
26996
|
+
"deployerTradingFeeShare": "0.1"
|
|
26997
|
+
},
|
|
26998
|
+
{
|
|
26999
|
+
"name": "BZEC",
|
|
27000
|
+
"szDecimals": 2,
|
|
27001
|
+
"weiDecimals": 8,
|
|
27002
|
+
"index": 1462,
|
|
27003
|
+
"tokenId": "0x0900e7a24e6cf2ad47b84d35b46595cb",
|
|
27004
|
+
"isCanonical": false,
|
|
27005
|
+
"evmContract": {
|
|
27006
|
+
"address": "0x5b755872103fe90b43e31adc753f0ddd06796805",
|
|
27007
|
+
"evm_extra_wei_decimals": 10
|
|
27008
|
+
},
|
|
27009
|
+
"fullName": null,
|
|
27010
|
+
"deployerTradingFeeShare": "1.0"
|
|
27011
|
+
},
|
|
27012
|
+
{
|
|
27013
|
+
"name": "PHAT",
|
|
27014
|
+
"szDecimals": 2,
|
|
27015
|
+
"weiDecimals": 9,
|
|
27016
|
+
"index": 1463,
|
|
27017
|
+
"tokenId": "0x3f6f99c13d59b7be581c5031020dbe2e",
|
|
27018
|
+
"isCanonical": false,
|
|
27019
|
+
"evmContract": null,
|
|
27020
|
+
"fullName": "PHAT CAT",
|
|
27021
|
+
"deployerTradingFeeShare": "0.0"
|
|
27022
|
+
},
|
|
27023
|
+
{
|
|
27024
|
+
"name": "SAM",
|
|
27025
|
+
"szDecimals": 2,
|
|
27026
|
+
"weiDecimals": 9,
|
|
27027
|
+
"index": 1464,
|
|
27028
|
+
"tokenId": "0x0d57f359848f7607fdca7ac501bee796",
|
|
27029
|
+
"isCanonical": false,
|
|
27030
|
+
"evmContract": null,
|
|
27031
|
+
"fullName": "Small Autonomous Motherfucker",
|
|
27032
|
+
"deployerTradingFeeShare": "0.0"
|
|
27033
|
+
},
|
|
27034
|
+
{
|
|
27035
|
+
"name": "HARR",
|
|
27036
|
+
"szDecimals": 2,
|
|
27037
|
+
"weiDecimals": 8,
|
|
27038
|
+
"index": 1465,
|
|
27039
|
+
"tokenId": "0xcad0cd8014cedb62424e8a639be45f41",
|
|
27040
|
+
"isCanonical": false,
|
|
27041
|
+
"evmContract": null,
|
|
27042
|
+
"fullName": null,
|
|
27043
|
+
"deployerTradingFeeShare": "1.0"
|
|
27044
|
+
},
|
|
27045
|
+
{
|
|
27046
|
+
"name": "APEXHL",
|
|
27047
|
+
"szDecimals": 2,
|
|
27048
|
+
"weiDecimals": 8,
|
|
27049
|
+
"index": 1466,
|
|
27050
|
+
"tokenId": "0x57affe03885cb0f93eb870df5ac2fccb",
|
|
27051
|
+
"isCanonical": false,
|
|
27052
|
+
"evmContract": null,
|
|
27053
|
+
"fullName": null,
|
|
27054
|
+
"deployerTradingFeeShare": "1.0"
|
|
27055
|
+
},
|
|
27056
|
+
{
|
|
27057
|
+
"name": "HYBR",
|
|
27058
|
+
"szDecimals": 2,
|
|
27059
|
+
"weiDecimals": 8,
|
|
27060
|
+
"index": 1467,
|
|
27061
|
+
"tokenId": "0xf7161131865b78abf5a755e44a9a03f5",
|
|
27062
|
+
"isCanonical": false,
|
|
27063
|
+
"evmContract": {
|
|
27064
|
+
"address": "0xc391834f5090e1094058e332d6c635dc64ca674d",
|
|
27065
|
+
"evm_extra_wei_decimals": 10
|
|
27066
|
+
},
|
|
27067
|
+
"fullName": "HYBRA",
|
|
27068
|
+
"deployerTradingFeeShare": "0.5"
|
|
27069
|
+
},
|
|
27070
|
+
{
|
|
27071
|
+
"name": "MORPP",
|
|
27072
|
+
"szDecimals": 2,
|
|
27073
|
+
"weiDecimals": 8,
|
|
27074
|
+
"index": 1468,
|
|
27075
|
+
"tokenId": "0xa2617c57227af37fd8f3576ca297c603",
|
|
27076
|
+
"isCanonical": false,
|
|
27077
|
+
"evmContract": {
|
|
27078
|
+
"address": "0xa8ae249dd28709bd25dfc2d886479c1c1a8cf605",
|
|
27079
|
+
"evm_extra_wei_decimals": 10
|
|
27080
|
+
},
|
|
27081
|
+
"fullName": "Morpho test1",
|
|
27082
|
+
"deployerTradingFeeShare": "1.0"
|
|
27083
|
+
},
|
|
27084
|
+
{
|
|
27085
|
+
"name": "HARMOX",
|
|
27086
|
+
"szDecimals": 2,
|
|
27087
|
+
"weiDecimals": 8,
|
|
27088
|
+
"index": 1469,
|
|
27089
|
+
"tokenId": "0x8e670650571a3ce604ece184eaaf01c0",
|
|
27090
|
+
"isCanonical": false,
|
|
27091
|
+
"evmContract": null,
|
|
27092
|
+
"fullName": null,
|
|
27093
|
+
"deployerTradingFeeShare": "1.0"
|
|
27094
|
+
},
|
|
27095
|
+
{
|
|
27096
|
+
"name": "STEST",
|
|
27097
|
+
"szDecimals": 2,
|
|
27098
|
+
"weiDecimals": 8,
|
|
27099
|
+
"index": 1470,
|
|
27100
|
+
"tokenId": "0xe383b8a1294f88771f2a1793ace35c85",
|
|
27101
|
+
"isCanonical": false,
|
|
27102
|
+
"evmContract": {
|
|
27103
|
+
"address": "0x96ed91fa046387dfff8b942a8c14f5fbde4a161a",
|
|
27104
|
+
"evm_extra_wei_decimals": 10
|
|
27105
|
+
},
|
|
27106
|
+
"fullName": "TESTSPOT",
|
|
27107
|
+
"deployerTradingFeeShare": "1.0"
|
|
27108
|
+
},
|
|
27109
|
+
{
|
|
27110
|
+
"name": "USDCC",
|
|
27111
|
+
"szDecimals": 2,
|
|
27112
|
+
"weiDecimals": 8,
|
|
27113
|
+
"index": 1471,
|
|
27114
|
+
"tokenId": "0x37371b1c6d6870233e8400c223fc0b1e",
|
|
27115
|
+
"isCanonical": false,
|
|
27116
|
+
"evmContract": null,
|
|
27117
|
+
"fullName": "USDC Coin",
|
|
27118
|
+
"deployerTradingFeeShare": "1.0"
|
|
27119
|
+
},
|
|
27120
|
+
{
|
|
27121
|
+
"name": "MMOVE",
|
|
27122
|
+
"szDecimals": 2,
|
|
27123
|
+
"weiDecimals": 8,
|
|
27124
|
+
"index": 1472,
|
|
27125
|
+
"tokenId": "0x5425d5e77e0119faac1543210688e83b",
|
|
27126
|
+
"isCanonical": false,
|
|
27127
|
+
"evmContract": {
|
|
27128
|
+
"address": "0x431a8f39106dc468dff6ae772c8f121a0443bfa0",
|
|
27129
|
+
"evm_extra_wei_decimals": 0
|
|
27130
|
+
},
|
|
27131
|
+
"fullName": null,
|
|
27132
|
+
"deployerTradingFeeShare": "0.0"
|
|
27133
|
+
},
|
|
27134
|
+
{
|
|
27135
|
+
"name": "HYBRA",
|
|
27136
|
+
"szDecimals": 2,
|
|
27137
|
+
"weiDecimals": 8,
|
|
27138
|
+
"index": 1473,
|
|
27139
|
+
"tokenId": "0x88461aa7919ce13efef0790fb2b68bc0",
|
|
27140
|
+
"isCanonical": false,
|
|
27141
|
+
"evmContract": null,
|
|
27142
|
+
"fullName": null,
|
|
27143
|
+
"deployerTradingFeeShare": "1.0"
|
|
27144
|
+
},
|
|
27145
|
+
{
|
|
27146
|
+
"name": "UUENA",
|
|
27147
|
+
"szDecimals": 1,
|
|
27148
|
+
"weiDecimals": 6,
|
|
27149
|
+
"index": 1474,
|
|
27150
|
+
"tokenId": "0x8580a30d748007793bae9c6b539c04f7",
|
|
27151
|
+
"isCanonical": false,
|
|
27152
|
+
"evmContract": {
|
|
27153
|
+
"address": "0xf5d30ad8d2daa292604ab944f2ae34fc77bf3398",
|
|
27154
|
+
"evm_extra_wei_decimals": 12
|
|
27155
|
+
},
|
|
27156
|
+
"fullName": "Unit Ethena",
|
|
27157
|
+
"deployerTradingFeeShare": "1.0"
|
|
27158
|
+
},
|
|
27159
|
+
{
|
|
27160
|
+
"name": "USDL",
|
|
27161
|
+
"szDecimals": 2,
|
|
27162
|
+
"weiDecimals": 8,
|
|
27163
|
+
"index": 1475,
|
|
27164
|
+
"tokenId": "0x326f3a7591cd868512cbf7328212f958",
|
|
27165
|
+
"isCanonical": false,
|
|
27166
|
+
"evmContract": {
|
|
27167
|
+
"address": "0x9a9b73de940674a54dfde5a16325de4424d291af",
|
|
27168
|
+
"evm_extra_wei_decimals": -2
|
|
27169
|
+
},
|
|
27170
|
+
"fullName": "USDL",
|
|
27171
|
+
"deployerTradingFeeShare": "0.0"
|
|
27172
|
+
},
|
|
27173
|
+
{
|
|
27174
|
+
"name": "LMA",
|
|
27175
|
+
"szDecimals": 2,
|
|
27176
|
+
"weiDecimals": 8,
|
|
27177
|
+
"index": 1476,
|
|
27178
|
+
"tokenId": "0xe9c1bb711a09afb08cd92881faf8badc",
|
|
27179
|
+
"isCanonical": false,
|
|
27180
|
+
"evmContract": {
|
|
27181
|
+
"address": "0x051ac5bfb8e904229acf5d4ce97a2f2aee660e34",
|
|
27182
|
+
"evm_extra_wei_decimals": 10
|
|
27183
|
+
},
|
|
27184
|
+
"fullName": "LMA",
|
|
27185
|
+
"deployerTradingFeeShare": "1.0"
|
|
27186
|
+
},
|
|
27187
|
+
{
|
|
27188
|
+
"name": "ASDFS",
|
|
27189
|
+
"szDecimals": 2,
|
|
27190
|
+
"weiDecimals": 8,
|
|
27191
|
+
"index": 1477,
|
|
27192
|
+
"tokenId": "0xd0118b629315803111315c0bf03d1869",
|
|
27193
|
+
"isCanonical": false,
|
|
27194
|
+
"evmContract": {
|
|
27195
|
+
"address": "0x4b0d60b5cb0cd733cdd3090fcc8652f3760c7e51",
|
|
27196
|
+
"evm_extra_wei_decimals": 10
|
|
27197
|
+
},
|
|
27198
|
+
"fullName": "ASDFSDAS",
|
|
27199
|
+
"deployerTradingFeeShare": "1.0"
|
|
27200
|
+
},
|
|
27201
|
+
{
|
|
27202
|
+
"name": "SLOP",
|
|
27203
|
+
"szDecimals": 2,
|
|
27204
|
+
"weiDecimals": 8,
|
|
27205
|
+
"index": 1478,
|
|
27206
|
+
"tokenId": "0xae9fbd688f95b2c9591c89323a587101",
|
|
27207
|
+
"isCanonical": false,
|
|
27208
|
+
"evmContract": {
|
|
27209
|
+
"address": "0xd17ea84b3cebd526aec68368f8154562b23fab14",
|
|
27210
|
+
"evm_extra_wei_decimals": 10
|
|
27211
|
+
},
|
|
27212
|
+
"fullName": "Test token example",
|
|
27213
|
+
"deployerTradingFeeShare": "1.0"
|
|
27214
|
+
},
|
|
27215
|
+
{
|
|
27216
|
+
"name": "XTESTA",
|
|
27217
|
+
"szDecimals": 2,
|
|
27218
|
+
"weiDecimals": 8,
|
|
27219
|
+
"index": 1479,
|
|
27220
|
+
"tokenId": "0xc994655c02334d84e9cd9d90f8747e1b",
|
|
27221
|
+
"isCanonical": false,
|
|
27222
|
+
"evmContract": null,
|
|
27223
|
+
"fullName": "xxtestxx",
|
|
27224
|
+
"deployerTradingFeeShare": "1.0"
|
|
27225
|
+
},
|
|
27226
|
+
{
|
|
27227
|
+
"name": "XCHAIN",
|
|
27228
|
+
"szDecimals": 2,
|
|
27229
|
+
"weiDecimals": 8,
|
|
27230
|
+
"index": 1480,
|
|
27231
|
+
"tokenId": "0xd26781a908df70a3300ffe6453200731",
|
|
27232
|
+
"isCanonical": false,
|
|
27233
|
+
"evmContract": {
|
|
27234
|
+
"address": "0xa53ea64280dc4e9472f245952e055c7e89de13ef",
|
|
27235
|
+
"evm_extra_wei_decimals": -2
|
|
27236
|
+
},
|
|
27237
|
+
"fullName": "Cross Chain Test",
|
|
27238
|
+
"deployerTradingFeeShare": "1.0"
|
|
27239
|
+
},
|
|
27240
|
+
{
|
|
27241
|
+
"name": "DANCE",
|
|
27242
|
+
"szDecimals": 2,
|
|
27243
|
+
"weiDecimals": 8,
|
|
27244
|
+
"index": 1481,
|
|
27245
|
+
"tokenId": "0x21a4632b44112fe0593fccbe5400a701",
|
|
27246
|
+
"isCanonical": false,
|
|
27247
|
+
"evmContract": null,
|
|
27248
|
+
"fullName": null,
|
|
27249
|
+
"deployerTradingFeeShare": "1.0"
|
|
27250
|
+
},
|
|
27251
|
+
{
|
|
27252
|
+
"name": "AXLT",
|
|
27253
|
+
"szDecimals": 2,
|
|
27254
|
+
"weiDecimals": 8,
|
|
27255
|
+
"index": 1482,
|
|
27256
|
+
"tokenId": "0x8528c5d57c982d214341e05fd5274fa8",
|
|
27257
|
+
"isCanonical": false,
|
|
27258
|
+
"evmContract": {
|
|
27259
|
+
"address": "0xb832407d3f8b10cd6f94172a9820d6f065b66ad1",
|
|
27260
|
+
"evm_extra_wei_decimals": -2
|
|
27261
|
+
},
|
|
27262
|
+
"fullName": "Axelar",
|
|
27263
|
+
"deployerTradingFeeShare": "1.0"
|
|
27264
|
+
},
|
|
27265
|
+
{
|
|
27266
|
+
"name": "HARRR",
|
|
27267
|
+
"szDecimals": 2,
|
|
27268
|
+
"weiDecimals": 8,
|
|
27269
|
+
"index": 1483,
|
|
27270
|
+
"tokenId": "0xdba2779d37628efc3967b98adf04172d",
|
|
27271
|
+
"isCanonical": false,
|
|
27272
|
+
"evmContract": null,
|
|
27273
|
+
"fullName": null,
|
|
27274
|
+
"deployerTradingFeeShare": "1.0"
|
|
27275
|
+
},
|
|
27276
|
+
{
|
|
27277
|
+
"name": "MORPH",
|
|
27278
|
+
"szDecimals": 2,
|
|
27279
|
+
"weiDecimals": 8,
|
|
27280
|
+
"index": 1484,
|
|
27281
|
+
"tokenId": "0x57df584e21097424d758b228e842d2ef",
|
|
27282
|
+
"isCanonical": false,
|
|
27283
|
+
"evmContract": null,
|
|
27284
|
+
"fullName": null,
|
|
27285
|
+
"deployerTradingFeeShare": "1.0"
|
|
27286
|
+
},
|
|
27287
|
+
{
|
|
27288
|
+
"name": "STABLE",
|
|
27289
|
+
"szDecimals": 2,
|
|
27290
|
+
"weiDecimals": 8,
|
|
27291
|
+
"index": 1485,
|
|
27292
|
+
"tokenId": "0x797f444bb03c7be19234b94ca29f3410",
|
|
27293
|
+
"isCanonical": false,
|
|
27294
|
+
"evmContract": null,
|
|
27295
|
+
"fullName": "STABLE",
|
|
27296
|
+
"deployerTradingFeeShare": "1.0"
|
|
27297
|
+
},
|
|
27298
|
+
{
|
|
27299
|
+
"name": "XYZT",
|
|
27300
|
+
"szDecimals": 2,
|
|
27301
|
+
"weiDecimals": 8,
|
|
27302
|
+
"index": 1486,
|
|
27303
|
+
"tokenId": "0x56e59167b6e370bc5dab11da80ed8ed2",
|
|
27304
|
+
"isCanonical": false,
|
|
27305
|
+
"evmContract": null,
|
|
27306
|
+
"fullName": "XYZT",
|
|
27307
|
+
"deployerTradingFeeShare": "1.0"
|
|
27308
|
+
},
|
|
27309
|
+
{
|
|
27310
|
+
"name": "MNRCH",
|
|
27311
|
+
"szDecimals": 2,
|
|
27312
|
+
"weiDecimals": 8,
|
|
27313
|
+
"index": 1487,
|
|
27314
|
+
"tokenId": "0xd55b27dcaed90223bfc3c378b98526bb",
|
|
27315
|
+
"isCanonical": false,
|
|
27316
|
+
"evmContract": null,
|
|
27317
|
+
"fullName": "MONARCH TEST 1",
|
|
27318
|
+
"deployerTradingFeeShare": "1.0"
|
|
27319
|
+
},
|
|
27320
|
+
{
|
|
27321
|
+
"name": "USDXX",
|
|
27322
|
+
"szDecimals": 2,
|
|
27323
|
+
"weiDecimals": 8,
|
|
27324
|
+
"index": 1488,
|
|
27325
|
+
"tokenId": "0xca9fd54c63d925b455d6440c02ed29c5",
|
|
27326
|
+
"isCanonical": false,
|
|
27327
|
+
"evmContract": null,
|
|
27328
|
+
"fullName": "USDXX",
|
|
27329
|
+
"deployerTradingFeeShare": "1.0"
|
|
27330
|
+
},
|
|
27331
|
+
{
|
|
27332
|
+
"name": "BETA",
|
|
27333
|
+
"szDecimals": 2,
|
|
27334
|
+
"weiDecimals": 8,
|
|
27335
|
+
"index": 1489,
|
|
27336
|
+
"tokenId": "0x398e2bab402c7f3c9e214d3862d02ada",
|
|
27337
|
+
"isCanonical": false,
|
|
27338
|
+
"evmContract": null,
|
|
27339
|
+
"fullName": "They HYPE beta",
|
|
27340
|
+
"deployerTradingFeeShare": "1.0"
|
|
26793
27341
|
}
|
|
26794
27342
|
]
|
|
26795
27343
|
}
|
package/lib/utils/formatter.ts
CHANGED
|
@@ -44,6 +44,31 @@ export const formatPriceForOrder = ({
|
|
|
44
44
|
return price;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Formats price for order placement following Hyperliquid rules
|
|
49
|
+
* - Rounded to priceDecimals of the asset
|
|
50
|
+
* @param px - The price to format
|
|
51
|
+
* @param priceDecimals - Price decimals for the asset
|
|
52
|
+
* @returns Formatted price as number (rounded to priceDecimals if exceeds)
|
|
53
|
+
*/
|
|
54
|
+
export const formatPriceForDisplay = ({
|
|
55
|
+
px,
|
|
56
|
+
szDecimals,
|
|
57
|
+
isSpot,
|
|
58
|
+
}: {
|
|
59
|
+
px: number;
|
|
60
|
+
szDecimals: number;
|
|
61
|
+
isSpot: boolean;
|
|
62
|
+
}) => {
|
|
63
|
+
const priceDecimals = getPriceDecimals(px, szDecimals, isSpot);
|
|
64
|
+
|
|
65
|
+
return new Intl.NumberFormat("en-US", {
|
|
66
|
+
style: "decimal",
|
|
67
|
+
minimumFractionDigits: priceDecimals,
|
|
68
|
+
maximumFractionDigits: priceDecimals,
|
|
69
|
+
}).format(px);
|
|
70
|
+
};
|
|
71
|
+
|
|
47
72
|
/**
|
|
48
73
|
* Formats size for order placement following Hyperliquid rules
|
|
49
74
|
* - Rounded to szDecimals of the asset
|
|
@@ -61,6 +86,27 @@ export const formatSizeForOrder = ({
|
|
|
61
86
|
return new Decimal(sz).toDP(szDecimals, Decimal.ROUND_DOWN).toNumber();
|
|
62
87
|
};
|
|
63
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Formats size for order placement following Hyperliquid rules
|
|
91
|
+
* - Rounded to szDecimals of the asset
|
|
92
|
+
* @param sz - The size to format
|
|
93
|
+
* @param szDecimals - Size decimals for the asset
|
|
94
|
+
* @returns Formatted size as number (rounded down to szDecimals if exceeds)
|
|
95
|
+
*/
|
|
96
|
+
export const formatSizeForDisplay = ({
|
|
97
|
+
sz,
|
|
98
|
+
szDecimals,
|
|
99
|
+
}: {
|
|
100
|
+
sz: number;
|
|
101
|
+
szDecimals: number;
|
|
102
|
+
}) => {
|
|
103
|
+
return new Intl.NumberFormat("en-US", {
|
|
104
|
+
style: "decimal",
|
|
105
|
+
minimumFractionDigits: szDecimals,
|
|
106
|
+
maximumFractionDigits: szDecimals,
|
|
107
|
+
}).format(sz);
|
|
108
|
+
};
|
|
109
|
+
|
|
64
110
|
/**
|
|
65
111
|
* Get minimum price decimals for tick size calculations
|
|
66
112
|
* Uses the same logic as internal price formatting
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import "./chunk-4UEJOM6W.mjs";
|
|
2
|
-
|
|
3
|
-
// lib/meta/data/mainnet/perpDexs.json
|
|
4
|
-
var perpDexs_default = [
|
|
5
|
-
null,
|
|
6
|
-
{
|
|
7
|
-
name: "xyz",
|
|
8
|
-
fullName: "XYZ",
|
|
9
|
-
deployer: "0x88806a71d74ad0a510b350545c9ae490912f0888",
|
|
10
|
-
oracleUpdater: "0x1234567890545d1df9ee64b35fdd16966e08acec",
|
|
11
|
-
feeRecipient: null,
|
|
12
|
-
assetToStreamingOiCap: [
|
|
13
|
-
[
|
|
14
|
-
"xyz:XYZ100",
|
|
15
|
-
"30000000.0"
|
|
16
|
-
]
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
];
|
|
20
|
-
export {
|
|
21
|
-
perpDexs_default as default
|
|
22
|
-
};
|