@lifi/data-types 5.13.2 → 5.15.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.
@@ -469,22 +469,21 @@ export const supportedEVMChains: EVMChain[] = [
469
469
  logoURI:
470
470
  'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/cronos.svg',
471
471
  tokenlistUrl:
472
- 'https://raw.githubusercontent.com/cronaswap/cronaswap-tokenlists/main/cronaswap-default.tokenlist.json',
472
+ 'https://raw.githubusercontent.com/cronaswap/default-token-list/refs/heads/main/assets/tokens/cronos.json',
473
473
  multicallAddress: multicallAddresses[ChainId.CRO],
474
474
  metamask: {
475
475
  chainId: prefixChainId(25),
476
- blockExplorerUrls: ['https://cronos.org/explorer/'],
476
+ blockExplorerUrls: [
477
+ 'https://explorer.cronos.org/',
478
+ 'https://cronoscan.com/',
479
+ ],
477
480
  chainName: 'Cronos Mainnet',
478
481
  nativeCurrency: {
479
- name: 'Crypto.org Coin',
482
+ name: 'Cronos',
480
483
  symbol: 'CRO',
481
484
  decimals: 18,
482
485
  },
483
- rpcUrls: [
484
- 'https://evm.cronos.org',
485
- 'https://evm-cronos.crypto.org',
486
- 'https://cronos.drpc.org',
487
- ],
486
+ rpcUrls: ['https://evm.cronos.org', 'https://cronos.drpc.org'],
488
487
  },
489
488
  },
490
489
  // 288 Boba Network
@@ -1038,4 +1037,35 @@ export const supportedEVMChains: EVMChain[] = [
1038
1037
  rpcUrls: ['https://rpc.xlayer.tech/', 'https://xlayerrpc.okx.com'],
1039
1038
  },
1040
1039
  },
1040
+
1041
+ // 204 - opBNB
1042
+ {
1043
+ key: ChainKey.OPB,
1044
+ chainType: ChainType.EVM,
1045
+ name: 'opBNB',
1046
+ coin: CoinKey.BNB,
1047
+ id: 204,
1048
+ mainnet: true,
1049
+ logoURI:
1050
+ 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/opbnb.svg',
1051
+ multicallAddress: multicallAddresses[ChainId.OPB],
1052
+
1053
+ metamask: {
1054
+ chainId: prefixChainId(204),
1055
+ blockExplorerUrls: [
1056
+ 'https://opbnb.bscscan.com/',
1057
+ 'https://opbnbscan.com/',
1058
+ ],
1059
+ chainName: 'opBNB Mainnet',
1060
+ nativeCurrency: {
1061
+ name: 'BNB',
1062
+ symbol: 'BNB',
1063
+ decimals: 18,
1064
+ },
1065
+ rpcUrls: [
1066
+ 'https://opbnb-mainnet-rpc.bnbchain.org',
1067
+ 'https://1rpc.io/opbnb',
1068
+ ],
1069
+ },
1070
+ },
1041
1071
  ]
@@ -127,6 +127,10 @@ export const basicCoins: BasicCoin[] = [
127
127
  address: '0x0000000000000000000000000000000000000000',
128
128
  decimals: 18,
129
129
  },
130
+ [ChainId.OPB]: {
131
+ address: '0xE7798f023fC62146e8Aa1b36Da45fb70855a77Ea',
132
+ decimals: 18,
133
+ },
130
134
  },
131
135
  },
132
136
  // > MATIC
@@ -205,16 +209,6 @@ export const basicCoins: BasicCoin[] = [
205
209
  address: '0x0000000000000000000000000000000000000000',
206
210
  decimals: 18,
207
211
  },
208
- [ChainId.POL]: {
209
- address: '0xa649325aa7c5093d12d6f98eb4378deae68ce23f',
210
- decimals: 18,
211
- },
212
- [ChainId.DAI]: {
213
- address: '0xca8d20f3e0144a72c6b5d576e9bd3fd8557e2b04',
214
- decimals: 18,
215
- symbol: 'WBNB',
216
- name: 'Wrapped BNB',
217
- },
218
212
  [ChainId.ONE]: {
219
213
  address: '0xb1f6e61e1e113625593a22fa6aa94f8052bc39e0',
220
214
  decimals: 18,
@@ -229,6 +223,22 @@ export const basicCoins: BasicCoin[] = [
229
223
  address: '0x2b8e9cd44c9e09d936149549a8d207c918ecb5c4',
230
224
  decimals: 18,
231
225
  },
226
+ [ChainId.OPB]: {
227
+ address: '0x0000000000000000000000000000000000000000',
228
+ decimals: 18,
229
+ },
230
+ [ChainId.CRO]: {
231
+ address: '0xfA9343C3897324496A05fC75abeD6bAC29f8A40f',
232
+ decimals: 18,
233
+ },
234
+ [ChainId.ERA]: {
235
+ address: '0x7400793aad94c8ca801aa036357d10f5fd0ce08f',
236
+ decimals: 18,
237
+ },
238
+ [ChainId.LNA]: {
239
+ address: '0xf5C6825015280CdfD0b56903F9F8B5A2233476F5',
240
+ decimals: 18,
241
+ },
232
242
  },
233
243
  },
234
244
  // > DAI
@@ -375,6 +385,10 @@ export const basicCoins: BasicCoin[] = [
375
385
  decimals: 8,
376
386
  name: 'Avalanche (Wormhole)',
377
387
  },
388
+ [ChainId.CRO]: {
389
+ address: '0x8d58088D4E8Ffe75A8b6357ba5ff17B93B912640',
390
+ decimals: 9,
391
+ },
378
392
  },
379
393
  },
380
394
  // > ONE
@@ -613,6 +627,10 @@ export const basicCoins: BasicCoin[] = [
613
627
  address: '0x1e4a5963abfd975d8c9021ce480b42188849d41d',
614
628
  decimals: 6,
615
629
  },
630
+ [ChainId.OPB]: {
631
+ address: '0x9e5aac1ba1a2e6aed6b32689dfcf62a509ca96f3',
632
+ decimals: 6,
633
+ },
616
634
  },
617
635
  },
618
636
 
@@ -1622,6 +1640,11 @@ export const basicCoins: BasicCoin[] = [
1622
1640
  symbol: 'WSOL',
1623
1641
  name: 'Token Wrapped SOL (Wormhole)',
1624
1642
  },
1643
+ [ChainId.CRO]: {
1644
+ address: '0xc9DE0F3e08162312528FF72559db82590b481800',
1645
+ decimals: 9,
1646
+ symbol: 'SOL',
1647
+ },
1625
1648
  },
1626
1649
  },
1627
1650
  {
@@ -1715,6 +1738,65 @@ export const basicCoins: BasicCoin[] = [
1715
1738
  },
1716
1739
  },
1717
1740
 
1741
+ // WBNB
1742
+ {
1743
+ key: CoinKey.WBNB,
1744
+ name: CoinKey.WBNB,
1745
+ logoURI:
1746
+ 'https://static.debank.com/image/coin/logo_url/bnb/9784283a36f23a58982fc964574ea530.png',
1747
+ verified: true,
1748
+ chains: {
1749
+ [ChainId.BSC]: {
1750
+ address: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c',
1751
+ decimals: 18,
1752
+ },
1753
+ [ChainId.OPB]: {
1754
+ address: '0x4200000000000000000000000000000000000006',
1755
+ decimals: 18,
1756
+ },
1757
+ [ChainId.DAI]: {
1758
+ address: '0xca8d20f3e0144a72c6b5d576e9bd3fd8557e2b04',
1759
+ decimals: 18,
1760
+ },
1761
+ [ChainId.ETH]: {
1762
+ address: '0x418D75f65a02b3D53B2418FB8E1fe493759c7605',
1763
+ decimals: 18,
1764
+ name: 'Wormhole: WBNB Token',
1765
+ },
1766
+ [ChainId.POL]: {
1767
+ address: '0xecdcb5b88f8e3c15f95c720c51c71c9e2080525d',
1768
+ decimals: 18,
1769
+ },
1770
+ [ChainId.AVA]: {
1771
+ address: '0x442F7f22b1EE2c842bEAFf52880d4573E9201158',
1772
+ decimals: 18,
1773
+ },
1774
+ [ChainId.AUR]: {
1775
+ address: '0x2bF9b864cdc97b08B6D79ad4663e71B8aB65c45c',
1776
+ decimals: 18,
1777
+ },
1778
+ },
1779
+ },
1780
+
1781
+ // FDUSD
1782
+ {
1783
+ key: CoinKey.FDUSD,
1784
+ name: CoinKey.FDUSD,
1785
+ logoURI:
1786
+ 'https://static.debank.com/image/eth_token/logo_url/0xc5f0f7b66764f6ec8c8dff7ba683102295e16409/9c61b134f82d8780005895d8fb6b19ab.png',
1787
+ verified: true,
1788
+ chains: {
1789
+ [ChainId.ETH]: {
1790
+ address: '0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409',
1791
+ decimals: 18,
1792
+ },
1793
+ [ChainId.BSC]: {
1794
+ address: '0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409',
1795
+ decimals: 18,
1796
+ },
1797
+ },
1798
+ },
1799
+
1718
1800
  // > Bitcoin
1719
1801
  {
1720
1802
  key: CoinKey.BTC,
@@ -1829,7 +1911,7 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
1829
1911
  symbol: 'WBNB',
1830
1912
  decimals: 18,
1831
1913
  chainId: ChainId.BSC,
1832
- coinKey: 'WBNB' as CoinKey,
1914
+ coinKey: CoinKey.WBNB,
1833
1915
  name: 'WBNB',
1834
1916
  logoURI:
1835
1917
  'https://static.debank.com/image/coin/logo_url/bnb/9784283a36f23a58982fc964574ea530.png',
@@ -1966,8 +2048,8 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
1966
2048
  symbol: 'WCRO',
1967
2049
  decimals: 18,
1968
2050
  chainId: ChainId.CRO,
1969
- coinKey: 'WCRO' as CoinKey,
1970
- name: 'WCRO',
2051
+ coinKey: CoinKey.WCRO,
2052
+ name: 'Wrapped Cronos',
1971
2053
  logoURI:
1972
2054
  'https://raw.githubusercontent.com/cronaswap/default-token-list/main/assets/tokens/cronos/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23/logo.png',
1973
2055
  },
@@ -2178,8 +2260,18 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
2178
2260
  logoURI:
2179
2261
  'https://static.debank.com/image/xlayer_token/logo_url/0xe538905cf8410324e03a5a23c1c177a474d59b2b/b58d6980429c56560d9241765bdf9c2b.png',
2180
2262
  },
2263
+ [ChainId.OPB]: {
2264
+ // https://opbnb.bscscan.com/token/0x4200000000000000000000000000000000000006
2265
+ address: '0x4200000000000000000000000000000000000006',
2266
+ symbol: 'WBNB',
2267
+ decimals: 18,
2268
+ chainId: ChainId.OPB,
2269
+ coinKey: CoinKey.WBNB,
2270
+ name: 'Wrapped BNB',
2271
+ logoURI:
2272
+ 'https://static.debank.com/image/bsc_token/logo_url/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c/1177dec1b9b7f58a799c3f22d93b04e1.png',
2273
+ },
2181
2274
  }
2182
-
2183
2275
  export const findDefaultCoin = (coinKey: CoinKey): Coin => {
2184
2276
  const coin = defaultCoins.find((coin) => coin.key === coinKey)
2185
2277
  if (!coin) {
package/src/multicall.ts CHANGED
@@ -46,6 +46,7 @@ export const multicallAddresses: { [ChainId: number]: string } = {
46
46
  [ChainId.IMX]: '0xcA11bde05977b3631167028862bE2a173976CA11',
47
47
  [ChainId.KAI]: '0xcA11bde05977b3631167028862bE2a173976CA11',
48
48
  [ChainId.XLY]: '0xcA11bde05977b3631167028862bE2a173976CA11',
49
+ [ChainId.OPB]: '0xcA11bde05977b3631167028862bE2a173976CA11',
49
50
 
50
51
  // TODO
51
52
  // [ChainId.EXP]: '', // TODO