@lifi/data-types 6.11.6 → 6.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/_cjs/chains/supportedChains.evm.js +44 -0
- package/src/_cjs/chains/supportedChains.evm.js.map +1 -1
- package/src/_cjs/coins/coins.js +87 -0
- package/src/_cjs/coins/coins.js.map +1 -1
- package/src/_cjs/multicall.js +2 -0
- package/src/_cjs/multicall.js.map +1 -1
- package/src/_esm/chains/supportedChains.evm.js +44 -0
- package/src/_esm/chains/supportedChains.evm.js.map +1 -1
- package/src/_esm/coins/coins.js +91 -1
- package/src/_esm/coins/coins.js.map +1 -1
- package/src/_esm/multicall.js +2 -0
- package/src/_esm/multicall.js.map +1 -1
- package/src/_types/chains/supportedChains.evm.d.ts.map +1 -1
- package/src/_types/coins/coins.d.ts.map +1 -1
- package/src/_types/multicall.d.ts.map +1 -1
- package/src/chains/supportedChains.evm.ts +50 -0
- package/src/coins/coins.ts +101 -1
- package/src/multicall.ts +2 -0
|
@@ -1396,4 +1396,54 @@ export const supportedEVMChains: EVMChain[] = [
|
|
|
1396
1396
|
rpcUrls: ['https://rpc.superposition.so'],
|
|
1397
1397
|
},
|
|
1398
1398
|
},
|
|
1399
|
+
|
|
1400
|
+
{
|
|
1401
|
+
key: ChainKey.HYP,
|
|
1402
|
+
chainType: ChainType.EVM,
|
|
1403
|
+
name: 'HyperEVM',
|
|
1404
|
+
coin: CoinKey.HYPE,
|
|
1405
|
+
id: ChainId.HYP,
|
|
1406
|
+
mainnet: true,
|
|
1407
|
+
logoURI:
|
|
1408
|
+
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/hyperliquid.svg',
|
|
1409
|
+
multicallAddress: multicallAddresses[ChainId.HYP],
|
|
1410
|
+
relayerSupported: true,
|
|
1411
|
+
|
|
1412
|
+
metamask: {
|
|
1413
|
+
chainId: prefixChainId(ChainId.HYP),
|
|
1414
|
+
blockExplorerUrls: ['https://www.hyperscan.com//'],
|
|
1415
|
+
chainName: 'HyperEVM',
|
|
1416
|
+
nativeCurrency: {
|
|
1417
|
+
name: 'HYPE',
|
|
1418
|
+
symbol: 'HYPE',
|
|
1419
|
+
decimals: 18,
|
|
1420
|
+
},
|
|
1421
|
+
rpcUrls: ['https://hyperliquid-json-rpc.stakely.io'],
|
|
1422
|
+
},
|
|
1423
|
+
},
|
|
1424
|
+
|
|
1425
|
+
{
|
|
1426
|
+
key: ChainKey.XDC,
|
|
1427
|
+
chainType: ChainType.EVM,
|
|
1428
|
+
name: 'XDC',
|
|
1429
|
+
coin: CoinKey.XDC,
|
|
1430
|
+
id: ChainId.XDC,
|
|
1431
|
+
mainnet: true,
|
|
1432
|
+
logoURI:
|
|
1433
|
+
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/xdc.svg',
|
|
1434
|
+
multicallAddress: multicallAddresses[ChainId.XDC],
|
|
1435
|
+
relayerSupported: false,
|
|
1436
|
+
|
|
1437
|
+
metamask: {
|
|
1438
|
+
chainId: prefixChainId(ChainId.XDC),
|
|
1439
|
+
blockExplorerUrls: ['https://xdcscan.com/'],
|
|
1440
|
+
chainName: 'XDC',
|
|
1441
|
+
nativeCurrency: {
|
|
1442
|
+
name: 'XDC',
|
|
1443
|
+
symbol: 'XDC',
|
|
1444
|
+
decimals: 18,
|
|
1445
|
+
},
|
|
1446
|
+
rpcUrls: ['https://erpc.xinfin.network'],
|
|
1447
|
+
},
|
|
1448
|
+
},
|
|
1399
1449
|
]
|
package/src/coins/coins.ts
CHANGED
|
@@ -503,7 +503,22 @@ export const basicCoins: BasicCoin[] = [
|
|
|
503
503
|
verified: true,
|
|
504
504
|
chains: {
|
|
505
505
|
[ChainId.CRN]: {
|
|
506
|
-
address: '0x0000000000000000000000000000000000000000',
|
|
506
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
507
|
+
decimals: 18,
|
|
508
|
+
},
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
|
|
512
|
+
// > XDC
|
|
513
|
+
{
|
|
514
|
+
key: CoinKey.XDC,
|
|
515
|
+
name: 'XDC',
|
|
516
|
+
logoURI:
|
|
517
|
+
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/xdc.svg',
|
|
518
|
+
verified: true,
|
|
519
|
+
chains: {
|
|
520
|
+
[ChainId.XDC]: {
|
|
521
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
507
522
|
decimals: 18,
|
|
508
523
|
},
|
|
509
524
|
},
|
|
@@ -1011,6 +1026,11 @@ export const basicCoins: BasicCoin[] = [
|
|
|
1011
1026
|
decimals: 6,
|
|
1012
1027
|
name: 'Bridged USDC (Superposition)',
|
|
1013
1028
|
},
|
|
1029
|
+
[ChainId.XDC]: {
|
|
1030
|
+
address: '0xCc0587aeBDa397146cc828b445dB130a94486e74',
|
|
1031
|
+
decimals: 6,
|
|
1032
|
+
name: 'USDC.e (Stargate)',
|
|
1033
|
+
},
|
|
1014
1034
|
},
|
|
1015
1035
|
},
|
|
1016
1036
|
// axlUSDC
|
|
@@ -1215,6 +1235,47 @@ export const basicCoins: BasicCoin[] = [
|
|
|
1215
1235
|
},
|
|
1216
1236
|
},
|
|
1217
1237
|
|
|
1238
|
+
// > HyperEVM
|
|
1239
|
+
{
|
|
1240
|
+
key: CoinKey.HYPE,
|
|
1241
|
+
name: 'HYPE',
|
|
1242
|
+
logoURI:
|
|
1243
|
+
'https://static.debank.com/image/hyper_token/logo_url/hyper/0b3e288cfe418e9ce69eef4c96374583.png',
|
|
1244
|
+
verified: true,
|
|
1245
|
+
chains: {
|
|
1246
|
+
[ChainId.HYP]: {
|
|
1247
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
1248
|
+
decimals: 18,
|
|
1249
|
+
},
|
|
1250
|
+
},
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
key: CoinKey.FEUSD,
|
|
1254
|
+
name: 'feUSD',
|
|
1255
|
+
logoURI:
|
|
1256
|
+
'https://static.debank.com/image/hyper_token/logo_url/0x02c6a2fa58cc01a18b8d9e00ea48d65e4df26c70/81c56750c2a60e7e63a76a224c40ddb5.png',
|
|
1257
|
+
verified: true,
|
|
1258
|
+
chains: {
|
|
1259
|
+
[ChainId.HYP]: {
|
|
1260
|
+
address: '0x02c6a2fa58cc01a18b8d9e00ea48d65e4df26c70',
|
|
1261
|
+
decimals: 18,
|
|
1262
|
+
},
|
|
1263
|
+
},
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
key: CoinKey.WHYPE,
|
|
1267
|
+
name: 'Wrapped HYPE',
|
|
1268
|
+
logoURI:
|
|
1269
|
+
'https://static.debank.com/image/hyper_token/logo_url/0x5555555555555555555555555555555555555555/752e760ec0b1a17b81c7535e09e76ef8.png',
|
|
1270
|
+
verified: true,
|
|
1271
|
+
chains: {
|
|
1272
|
+
[ChainId.HYP]: {
|
|
1273
|
+
address: '0x5555555555555555555555555555555555555555',
|
|
1274
|
+
decimals: 18,
|
|
1275
|
+
},
|
|
1276
|
+
},
|
|
1277
|
+
},
|
|
1278
|
+
|
|
1218
1279
|
// > WBTC
|
|
1219
1280
|
{
|
|
1220
1281
|
key: CoinKey.WBTC,
|
|
@@ -1526,6 +1587,25 @@ export const basicCoins: BasicCoin[] = [
|
|
|
1526
1587
|
address: '0x1fB719f10b56d7a85DCD32f27f897375fB21cfdd',
|
|
1527
1588
|
decimals: 18,
|
|
1528
1589
|
},
|
|
1590
|
+
[ChainId.XDC]: {
|
|
1591
|
+
address: '0xa7348290de5cf01772479c48D50dec791c3fC212',
|
|
1592
|
+
decimals: 18,
|
|
1593
|
+
},
|
|
1594
|
+
},
|
|
1595
|
+
},
|
|
1596
|
+
|
|
1597
|
+
// > WXDC
|
|
1598
|
+
{
|
|
1599
|
+
key: CoinKey.WXDC,
|
|
1600
|
+
name: CoinKey.WXDC,
|
|
1601
|
+
logoURI:
|
|
1602
|
+
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/xdc.svg',
|
|
1603
|
+
verified: true,
|
|
1604
|
+
chains: {
|
|
1605
|
+
[ChainId.XDC]: {
|
|
1606
|
+
address: '0x951857744785E80e2De051c32EE7b25f9c458C42',
|
|
1607
|
+
decimals: 18,
|
|
1608
|
+
},
|
|
1529
1609
|
},
|
|
1530
1610
|
},
|
|
1531
1611
|
|
|
@@ -2818,6 +2898,26 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
|
|
|
2818
2898
|
logoURI:
|
|
2819
2899
|
'https://static.debank.com/image/eth_token/logo_url/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/61844453e63cf81301f845d7864236f6.png',
|
|
2820
2900
|
},
|
|
2901
|
+
[ChainId.HYP]: {
|
|
2902
|
+
address: '0x5555555555555555555555555555555555555555',
|
|
2903
|
+
symbol: CoinKey.WHYPE,
|
|
2904
|
+
decimals: 18,
|
|
2905
|
+
chainId: ChainId.HYP,
|
|
2906
|
+
coinKey: CoinKey.WHYPE,
|
|
2907
|
+
name: 'Wrapped HYPE',
|
|
2908
|
+
logoURI:
|
|
2909
|
+
'https://static.debank.com/image/hyper_token/logo_url/0x5555555555555555555555555555555555555555/752e760ec0b1a17b81c7535e09e76ef8.png',
|
|
2910
|
+
},
|
|
2911
|
+
[ChainId.XDC]: {
|
|
2912
|
+
address: '0x951857744785E80e2De051c32EE7b25f9c458C42',
|
|
2913
|
+
symbol: CoinKey.WXDC,
|
|
2914
|
+
decimals: 18,
|
|
2915
|
+
chainId: ChainId.XDC,
|
|
2916
|
+
coinKey: CoinKey.WXDC,
|
|
2917
|
+
name: CoinKey.WXDC,
|
|
2918
|
+
logoURI:
|
|
2919
|
+
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/xdc.svg',
|
|
2920
|
+
},
|
|
2821
2921
|
}
|
|
2822
2922
|
export const findDefaultCoin = (coinKey: CoinKey): Coin => {
|
|
2823
2923
|
const coin = defaultCoins.find((coin) => coin.key === coinKey)
|
package/src/multicall.ts
CHANGED
|
@@ -60,6 +60,8 @@ export const multicallAddresses: { [ChainId: number]: string } = {
|
|
|
60
60
|
[ChainId.SWL]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
61
61
|
[ChainId.CRN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
62
62
|
[ChainId.SUP]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
63
|
+
[ChainId.HYP]: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
64
|
+
[ChainId.XDC]: '0x0b1795cca8e4ec4df02346a082df54d437f8d9af',
|
|
63
65
|
|
|
64
66
|
// TODO
|
|
65
67
|
// [ChainId.EXP]: '', // TODO
|