@lifi/data-types 6.12.0 → 6.14.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.
@@ -601,7 +601,6 @@ export const supportedEVMChains: EVMChain[] = [
601
601
  decimals: 18,
602
602
  },
603
603
  rpcUrls: [
604
- 'https://evmos.lava.build',
605
604
  'https://evmos-evm-rpc.publicnode.com',
606
605
  'https://evmos.drpc.org',
607
606
  ],
@@ -1421,4 +1420,54 @@ export const supportedEVMChains: EVMChain[] = [
1421
1420
  rpcUrls: ['https://hyperliquid-json-rpc.stakely.io'],
1422
1421
  },
1423
1422
  },
1423
+
1424
+ {
1425
+ key: ChainKey.XDC,
1426
+ chainType: ChainType.EVM,
1427
+ name: 'XDC',
1428
+ coin: CoinKey.XDC,
1429
+ id: ChainId.XDC,
1430
+ mainnet: true,
1431
+ logoURI:
1432
+ 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/xdc.svg',
1433
+ multicallAddress: multicallAddresses[ChainId.XDC],
1434
+ relayerSupported: false,
1435
+
1436
+ metamask: {
1437
+ chainId: prefixChainId(ChainId.XDC),
1438
+ blockExplorerUrls: ['https://xdcscan.com/'],
1439
+ chainName: 'XDC',
1440
+ nativeCurrency: {
1441
+ name: 'XDC',
1442
+ symbol: 'XDC',
1443
+ decimals: 18,
1444
+ },
1445
+ rpcUrls: ['https://erpc.xinfin.network'],
1446
+ },
1447
+ },
1448
+
1449
+ {
1450
+ key: ChainKey.BOC, // BOB was taken by Boba Chain already
1451
+ chainType: ChainType.EVM,
1452
+ name: 'BOB',
1453
+ coin: CoinKey.ETH,
1454
+ id: ChainId.BOC,
1455
+ mainnet: true,
1456
+ logoURI:
1457
+ 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/bob.svg',
1458
+ multicallAddress: multicallAddresses[ChainId.BOC],
1459
+ relayerSupported: false,
1460
+
1461
+ metamask: {
1462
+ chainId: prefixChainId(ChainId.BOC),
1463
+ blockExplorerUrls: ['https://explorer.gobob.xyz/'],
1464
+ chainName: 'BOB',
1465
+ nativeCurrency: {
1466
+ name: 'ETH',
1467
+ symbol: 'ETH',
1468
+ decimals: 18,
1469
+ },
1470
+ rpcUrls: ['https://rpc.gobob.xyz'],
1471
+ },
1472
+ },
1424
1473
  ]
@@ -163,6 +163,10 @@ export const basicCoins: BasicCoin[] = [
163
163
  address: '0x0000000000000000000000000000000000000000',
164
164
  decimals: 18,
165
165
  },
166
+ [ChainId.BOC]: {
167
+ address: '0x0000000000000000000000000000000000000000',
168
+ decimals: 18,
169
+ },
166
170
  },
167
171
  },
168
172
  // > MATIC
@@ -509,6 +513,21 @@ export const basicCoins: BasicCoin[] = [
509
513
  },
510
514
  },
511
515
 
516
+ // > XDC
517
+ {
518
+ key: CoinKey.XDC,
519
+ name: 'XDC',
520
+ logoURI:
521
+ 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/xdc.svg',
522
+ verified: true,
523
+ chains: {
524
+ [ChainId.XDC]: {
525
+ address: '0x0000000000000000000000000000000000000000',
526
+ decimals: 18,
527
+ },
528
+ },
529
+ },
530
+
512
531
  // > RSK
513
532
  {
514
533
  key: CoinKey.RBTC,
@@ -1011,6 +1030,16 @@ export const basicCoins: BasicCoin[] = [
1011
1030
  decimals: 6,
1012
1031
  name: 'Bridged USDC (Superposition)',
1013
1032
  },
1033
+ [ChainId.XDC]: {
1034
+ address: '0xCc0587aeBDa397146cc828b445dB130a94486e74',
1035
+ decimals: 6,
1036
+ name: 'USDC.e (Stargate)',
1037
+ },
1038
+ [ChainId.BOC]: {
1039
+ address: '0xe75D0fB2C24A55cA1e3F96781a2bCC7bdba058F0',
1040
+ decimals: 6,
1041
+ name: 'Bridged USDC (BOB)',
1042
+ },
1014
1043
  },
1015
1044
  },
1016
1045
  // axlUSDC
@@ -1379,6 +1408,10 @@ export const basicCoins: BasicCoin[] = [
1379
1408
  address: '0x0555E30da8f98308EdB960aa94C0Db47230d2B9c',
1380
1409
  decimals: 8,
1381
1410
  },
1411
+ [ChainId.BOC]: {
1412
+ address: '0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3',
1413
+ decimals: 8,
1414
+ },
1382
1415
  },
1383
1416
  },
1384
1417
 
@@ -1567,6 +1600,29 @@ export const basicCoins: BasicCoin[] = [
1567
1600
  address: '0x1fB719f10b56d7a85DCD32f27f897375fB21cfdd',
1568
1601
  decimals: 18,
1569
1602
  },
1603
+ [ChainId.XDC]: {
1604
+ address: '0xa7348290de5cf01772479c48D50dec791c3fC212',
1605
+ decimals: 18,
1606
+ },
1607
+ [ChainId.BOC]: {
1608
+ address: '0x4200000000000000000000000000000000000006',
1609
+ decimals: 18,
1610
+ },
1611
+ },
1612
+ },
1613
+
1614
+ // > WXDC
1615
+ {
1616
+ key: CoinKey.WXDC,
1617
+ name: CoinKey.WXDC,
1618
+ logoURI:
1619
+ 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/xdc.svg',
1620
+ verified: true,
1621
+ chains: {
1622
+ [ChainId.XDC]: {
1623
+ address: '0x951857744785E80e2De051c32EE7b25f9c458C42',
1624
+ decimals: 18,
1625
+ },
1570
1626
  },
1571
1627
  },
1572
1628
 
@@ -2869,6 +2925,26 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
2869
2925
  logoURI:
2870
2926
  'https://static.debank.com/image/hyper_token/logo_url/0x5555555555555555555555555555555555555555/752e760ec0b1a17b81c7535e09e76ef8.png',
2871
2927
  },
2928
+ [ChainId.XDC]: {
2929
+ address: '0x951857744785E80e2De051c32EE7b25f9c458C42',
2930
+ symbol: CoinKey.WXDC,
2931
+ decimals: 18,
2932
+ chainId: ChainId.XDC,
2933
+ coinKey: CoinKey.WXDC,
2934
+ name: CoinKey.WXDC,
2935
+ logoURI:
2936
+ 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/xdc.svg',
2937
+ },
2938
+ [ChainId.BOC]: {
2939
+ address: '0x4200000000000000000000000000000000000006',
2940
+ symbol: CoinKey.WETH,
2941
+ decimals: 18,
2942
+ chainId: ChainId.BOC,
2943
+ coinKey: CoinKey.WETH,
2944
+ name: CoinKey.WETH,
2945
+ logoURI:
2946
+ 'https://static.debank.com/image/eth_token/logo_url/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/61844453e63cf81301f845d7864236f6.png',
2947
+ },
2872
2948
  }
2873
2949
  export const findDefaultCoin = (coinKey: CoinKey): Coin => {
2874
2950
  const coin = defaultCoins.find((coin) => coin.key === coinKey)
package/src/multicall.ts CHANGED
@@ -61,6 +61,8 @@ export const multicallAddresses: { [ChainId: number]: string } = {
61
61
  [ChainId.CRN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
62
62
  [ChainId.SUP]: '0xcA11bde05977b3631167028862bE2a173976CA11',
63
63
  [ChainId.HYP]: '0xcA11bde05977b3631167028862bE2a173976CA11',
64
+ [ChainId.XDC]: '0x0b1795cca8e4ec4df02346a082df54d437f8d9af',
65
+ [ChainId.BOC]: '0xcA11bde05977b3631167028862bE2a173976CA11',
64
66
 
65
67
  // TODO
66
68
  // [ChainId.EXP]: '', // TODO