@lifi/data-types 5.4.0 → 5.6.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.
@@ -152,10 +152,6 @@ export const basicCoins: BasicCoin[] = [
152
152
  decimals: 18,
153
153
  name: 'Matic Token',
154
154
  },
155
- [ChainId.POL]: {
156
- address: '0x0000000000000000000000000000000000000000',
157
- decimals: 18,
158
- },
159
155
  [ChainId.DAI]: {
160
156
  address: '0x7122d7661c4564b7c6cd4878b06766489a6028a2',
161
157
  decimals: 18,
@@ -168,6 +164,26 @@ export const basicCoins: BasicCoin[] = [
168
164
  },
169
165
  },
170
166
  },
167
+ // > POL migrated from MATIC
168
+ {
169
+ key: CoinKey.POL,
170
+ name: CoinKey.POL,
171
+ logoURI:
172
+ 'https://static.debank.com/image/matic_token/logo_url/matic/6f5a6b6f0732a7a235131bd7804d357c.png',
173
+ verified: true,
174
+ chains: {
175
+ [ChainId.ETH]: {
176
+ address: '0x455e53CBB86018Ac2B8092FdCd39d8444aFFC3F6',
177
+ decimals: 18,
178
+ name: 'Polygon Ecosystem Token',
179
+ },
180
+ [ChainId.POL]: {
181
+ address: '0x0000000000000000000000000000000000000000',
182
+ decimals: 18,
183
+ name: 'Polygon Ecosystem Token',
184
+ },
185
+ },
186
+ },
171
187
  // > BNB
172
188
  {
173
189
  key: CoinKey.BNB,
@@ -581,6 +597,10 @@ export const basicCoins: BasicCoin[] = [
581
597
  address: '0x816E810f9F787d669FB71932DeabF6c83781Cd48',
582
598
  decimals: 6,
583
599
  },
600
+ [ChainId.IMX]: {
601
+ address: '0x68bcc7F1190AF20e7b572BCfb431c3Ac10A936Ab',
602
+ decimals: 6,
603
+ },
584
604
  },
585
605
  },
586
606
 
@@ -715,6 +735,10 @@ export const basicCoins: BasicCoin[] = [
715
735
  address: '0x07d83526730c7438048D55A4fc0b850e2aaB6f0b',
716
736
  decimals: 6,
717
737
  },
738
+ [ChainId.IMX]: {
739
+ address: '0x6de8aCC0D406837030CE4dd28e7c08C5a96a30d2',
740
+ decimals: 6,
741
+ },
718
742
  },
719
743
  },
720
744
  // USDC.e
@@ -978,6 +1002,10 @@ export const basicCoins: BasicCoin[] = [
978
1002
  address: '0xCAbAE6f6Ea1ecaB08Ad02fE02ce9A44F09aebfA2',
979
1003
  decimals: 8,
980
1004
  },
1005
+ [ChainId.IMX]: {
1006
+ address: '0x235F9A2Dc29E51cE7D103bcC5Dfb4F5c9c3371De',
1007
+ decimals: 8,
1008
+ },
981
1009
  },
982
1010
  },
983
1011
 
@@ -1092,6 +1120,14 @@ export const basicCoins: BasicCoin[] = [
1092
1120
  address: '0x4300000000000000000000000000000000000004',
1093
1121
  decimals: 18,
1094
1122
  },
1123
+ [ChainId.GRA]: {
1124
+ address: '0xf6f832466Cd6C21967E0D954109403f36Bc8ceaA',
1125
+ decimals: 18,
1126
+ },
1127
+ [ChainId.IMX]: {
1128
+ address: '0x52a6c53869ce09a731cd772f245b97a4401d3348',
1129
+ decimals: 18,
1130
+ },
1095
1131
  },
1096
1132
  },
1097
1133
 
@@ -1486,6 +1522,24 @@ export const basicCoins: BasicCoin[] = [
1486
1522
  },
1487
1523
  },
1488
1524
  },
1525
+ // Immutable X
1526
+ {
1527
+ key: CoinKey.IMX,
1528
+ name: CoinKey.IMX,
1529
+ logoURI:
1530
+ 'https://static.debank.com/image/eth_token/logo_url/0xf57e7e7c23978c3caec3c3548e3d615c346e79ff/7a875818146ec0508d3e5f5b14f1b4eb.png',
1531
+ verified: true,
1532
+ chains: {
1533
+ [ChainId.ETH]: {
1534
+ address: '0xf57e7e7c23978c3caec3c3548e3d615c346e79ff',
1535
+ decimals: 18,
1536
+ },
1537
+ [ChainId.IMX]: {
1538
+ address: '0x0000000000000000000000000000000000000000',
1539
+ decimals: 18,
1540
+ },
1541
+ },
1542
+ },
1489
1543
  // > Bitcoin
1490
1544
  {
1491
1545
  key: CoinKey.BTC,
@@ -1608,11 +1662,11 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
1608
1662
  [ChainId.POL]: {
1609
1663
  // https://polygonscan.com/token/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270
1610
1664
  address: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
1611
- symbol: 'WMATIC',
1665
+ symbol: 'WPOL',
1612
1666
  decimals: 18,
1613
1667
  chainId: ChainId.POL,
1614
- coinKey: 'WMATIC' as CoinKey,
1615
- name: 'WMATIC',
1668
+ coinKey: CoinKey.WPOL,
1669
+ name: 'WPOL',
1616
1670
  logoURI:
1617
1671
  'https://static.debank.com/image/matic_token/logo_url/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270/f6e604ba0324726a3d687c618aa4f163.png',
1618
1672
  },
@@ -1913,9 +1967,20 @@ export const wrappedTokens: { [ChainId: string]: StaticToken } = {
1913
1967
  decimals: 18,
1914
1968
  chainId: ChainId.GRA,
1915
1969
  coinKey: CoinKey.WG,
1916
- name: 'WG',
1970
+ name: 'Wrapped G',
1917
1971
  logoURI: 'https://assets.gravity.xyz/token_logo.png',
1918
1972
  },
1973
+ [ChainId.IMX]: {
1974
+ // https://explorer.immutable.com/address/0x3a0c2ba54d6cbd3121f01b96dfd20e99d1696c9d
1975
+ address: '0x3a0c2ba54d6cbd3121f01b96dfd20e99d1696c9d',
1976
+ symbol: 'WIMX',
1977
+ decimals: 18,
1978
+ chainId: ChainId.IMX,
1979
+ coinKey: CoinKey.WIMX,
1980
+ name: 'Wrapped IMX',
1981
+ logoURI:
1982
+ 'https://static.debank.com/image/eth_token/logo_url/0xf57e7e7c23978c3caec3c3548e3d615c346e79ff/7a875818146ec0508d3e5f5b14f1b4eb.png',
1983
+ },
1919
1984
  }
1920
1985
 
1921
1986
  export const findDefaultCoin = (coinKey: CoinKey): Coin => {
package/src/multicall.ts CHANGED
@@ -43,6 +43,7 @@ export const multicallAddresses: { [ChainId: number]: string } = {
43
43
  [ChainId.FRA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
44
44
  [ChainId.TAI]: '0xcA11bde05977b3631167028862bE2a173976CA11',
45
45
  [ChainId.GRA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
46
+ [ChainId.IMX]: '0xcA11bde05977b3631167028862bE2a173976CA11',
46
47
 
47
48
  // TODO
48
49
  // [ChainId.EXP]: '', // TODO