@lifi/data-types 4.8.2 → 4.9.1

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.
@@ -946,4 +946,26 @@ export const supportedEVMChains = [
946
946
  rpcUrls: ['https://evm-rpc.sei-apis.com', 'https://rpc.ankr.com/sei'],
947
947
  },
948
948
  },
949
+ // 252 - Fraxtal
950
+ {
951
+ key: ChainKey.FRA,
952
+ chainType: ChainType.EVM,
953
+ name: 'Fraxtal',
954
+ coin: CoinKey.frxETH,
955
+ id: 252,
956
+ mainnet: true,
957
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/fraxtal.svg',
958
+ multicallAddress: multicallAddresses[ChainId.FRA],
959
+ metamask: {
960
+ chainId: prefixChainId(252),
961
+ blockExplorerUrls: ['https://fraxscan.com/'],
962
+ chainName: 'Fraxtal',
963
+ nativeCurrency: {
964
+ name: 'Frax Ethereum',
965
+ symbol: 'frxETH',
966
+ decimals: 18,
967
+ },
968
+ rpcUrls: ['https://rpc.frax.com/'],
969
+ },
970
+ },
949
971
  ];
@@ -949,4 +949,26 @@ exports.supportedEVMChains = [
949
949
  rpcUrls: ['https://evm-rpc.sei-apis.com', 'https://rpc.ankr.com/sei'],
950
950
  },
951
951
  },
952
+ // 252 - Fraxtal
953
+ {
954
+ key: types_1.ChainKey.FRA,
955
+ chainType: types_1.ChainType.EVM,
956
+ name: 'Fraxtal',
957
+ coin: types_1.CoinKey.frxETH,
958
+ id: 252,
959
+ mainnet: true,
960
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/fraxtal.svg',
961
+ multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.FRA],
962
+ metamask: {
963
+ chainId: (0, utils_1.prefixChainId)(252),
964
+ blockExplorerUrls: ['https://fraxscan.com/'],
965
+ chainName: 'Fraxtal',
966
+ nativeCurrency: {
967
+ name: 'Frax Ethereum',
968
+ symbol: 'frxETH',
969
+ decimals: 18,
970
+ },
971
+ rpcUrls: ['https://rpc.frax.com/'],
972
+ },
973
+ },
952
974
  ];
@@ -736,6 +736,12 @@ exports.basicCoins = [
736
736
  name: 'USD Base Coin',
737
737
  symbol: 'USDbC',
738
738
  },
739
+ [types_1.ChainId.DAI]: {
740
+ address: '0x2a22f9c3b484c3629090feed35f17ff8f88f76f0',
741
+ decimals: 6,
742
+ name: 'Bridged USDC Coin',
743
+ symbol: 'USDC.e',
744
+ },
739
745
  },
740
746
  },
741
747
  // BUSD
@@ -798,6 +804,59 @@ exports.basicCoins = [
798
804
  },
799
805
  },
800
806
  },
807
+ // Frax
808
+ {
809
+ key: types_1.CoinKey.FRAX,
810
+ name: types_1.CoinKey.FRAX,
811
+ logoURI: 'https://static.debank.com/image/movr_token/logo_url/0x965f84d915a9efa2dd81b653e3ae736555d945f4/1f2c42cba1add081f314ee899ab67816.png',
812
+ verified: true,
813
+ chains: {
814
+ [types_1.ChainId.FRA]: {
815
+ address: '0xfc00000000000000000000000000000000000001',
816
+ decimals: 18,
817
+ },
818
+ [types_1.ChainId.ETH]: {
819
+ address: '0x853d955aCEf822Db058eb8505911ED77F175b99e',
820
+ decimals: 18,
821
+ },
822
+ [types_1.ChainId.ARB]: {
823
+ address: '0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F',
824
+ decimals: 18,
825
+ },
826
+ [types_1.ChainId.OPT]: {
827
+ address: '0x2E3D870790dC77A83DD1d18184Acc7439A53f475',
828
+ decimals: 18,
829
+ },
830
+ [types_1.ChainId.BSC]: {
831
+ address: '0x90C97F71E18723b0Cf0dfa30ee176Ab653E89F40',
832
+ decimals: 18,
833
+ },
834
+ [types_1.ChainId.FTM]: {
835
+ address: '0xdc301622e621166BD8E82f2cA0A26c13Ad0BE355',
836
+ decimals: 18,
837
+ },
838
+ [types_1.ChainId.AVA]: {
839
+ address: '0xdc42728b0ea910349ed3c6e1c9dc06b5fb591f98',
840
+ decimals: 18,
841
+ },
842
+ [types_1.ChainId.MOR]: {
843
+ address: '0x1A93B23281CC1CDE4C4741353F3064709A16197d',
844
+ decimals: 18,
845
+ },
846
+ [types_1.ChainId.POL]: {
847
+ address: '0x45c32fA6DF82ead1e2EF74d17b76547EDdFaFF89',
848
+ decimals: 18,
849
+ },
850
+ [types_1.ChainId.PZE]: {
851
+ address: '0xFf8544feD5379D9ffa8D47a74cE6b91e632AC44D',
852
+ decimals: 18,
853
+ },
854
+ [types_1.ChainId.MOO]: {
855
+ address: '0x322E86852e492a7Ee17f28a78c663da38FB33bfb',
856
+ decimals: 18,
857
+ },
858
+ },
859
+ },
801
860
  // > WBTC
802
861
  {
803
862
  key: types_1.CoinKey.WBTC,
@@ -1247,6 +1306,10 @@ exports.basicCoins = [
1247
1306
  logoURI: 'https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png',
1248
1307
  verified: true,
1249
1308
  chains: {
1309
+ [types_1.ChainId.FRA]: {
1310
+ address: '0x0000000000000000000000000000000000000000',
1311
+ decimals: 18,
1312
+ },
1250
1313
  [types_1.ChainId.POL]: {
1251
1314
  address: '0x01e91A094f5559f211e4ad4bED01468aBb64Bde3',
1252
1315
  decimals: 18,
@@ -1724,6 +1787,16 @@ exports.wrappedTokens = {
1724
1787
  name: 'Wrapped SEI',
1725
1788
  logoURI: 'https://cdn.sei.io/sei-app/sei-icon.png',
1726
1789
  },
1790
+ [types_1.ChainId.FRA]: {
1791
+ // https://fraxscan.com/token/0xfc00000000000000000000000000000000000006
1792
+ address: '0xfc00000000000000000000000000000000000006',
1793
+ symbol: 'wfrxETH',
1794
+ decimals: 18,
1795
+ chainId: types_1.ChainId.FRA,
1796
+ coinKey: types_1.CoinKey.wfrxETH,
1797
+ name: 'Wrapped Frax ETH',
1798
+ logoURI: 'https://static.debank.com/image/frax_token/logo_url/0xfc00000000000000000000000000000000000006/4313f25f6c5196e8fce2c80fa34c73d0.png',
1799
+ },
1727
1800
  };
1728
1801
  const findDefaultCoin = (coinKey) => {
1729
1802
  const coin = exports.defaultCoins.find((coin) => coin.key === coinKey);
@@ -44,6 +44,7 @@ exports.multicallAddresses = {
44
44
  [types_1.ChainId.MNT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
45
45
  [types_1.ChainId.BLS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
46
46
  [types_1.ChainId.SEI]: '0xcA11bde05977b3631167028862bE2a173976CA11',
47
+ [types_1.ChainId.FRA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
47
48
  // TODO
48
49
  // [ChainId.EXP]: '', // TODO
49
50
  // [ChainId.TCH]: '', // TODO
@@ -733,6 +733,12 @@ export const basicCoins = [
733
733
  name: 'USD Base Coin',
734
734
  symbol: 'USDbC',
735
735
  },
736
+ [ChainId.DAI]: {
737
+ address: '0x2a22f9c3b484c3629090feed35f17ff8f88f76f0',
738
+ decimals: 6,
739
+ name: 'Bridged USDC Coin',
740
+ symbol: 'USDC.e',
741
+ },
736
742
  },
737
743
  },
738
744
  // BUSD
@@ -795,6 +801,59 @@ export const basicCoins = [
795
801
  },
796
802
  },
797
803
  },
804
+ // Frax
805
+ {
806
+ key: CoinKey.FRAX,
807
+ name: CoinKey.FRAX,
808
+ logoURI: 'https://static.debank.com/image/movr_token/logo_url/0x965f84d915a9efa2dd81b653e3ae736555d945f4/1f2c42cba1add081f314ee899ab67816.png',
809
+ verified: true,
810
+ chains: {
811
+ [ChainId.FRA]: {
812
+ address: '0xfc00000000000000000000000000000000000001',
813
+ decimals: 18,
814
+ },
815
+ [ChainId.ETH]: {
816
+ address: '0x853d955aCEf822Db058eb8505911ED77F175b99e',
817
+ decimals: 18,
818
+ },
819
+ [ChainId.ARB]: {
820
+ address: '0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F',
821
+ decimals: 18,
822
+ },
823
+ [ChainId.OPT]: {
824
+ address: '0x2E3D870790dC77A83DD1d18184Acc7439A53f475',
825
+ decimals: 18,
826
+ },
827
+ [ChainId.BSC]: {
828
+ address: '0x90C97F71E18723b0Cf0dfa30ee176Ab653E89F40',
829
+ decimals: 18,
830
+ },
831
+ [ChainId.FTM]: {
832
+ address: '0xdc301622e621166BD8E82f2cA0A26c13Ad0BE355',
833
+ decimals: 18,
834
+ },
835
+ [ChainId.AVA]: {
836
+ address: '0xdc42728b0ea910349ed3c6e1c9dc06b5fb591f98',
837
+ decimals: 18,
838
+ },
839
+ [ChainId.MOR]: {
840
+ address: '0x1A93B23281CC1CDE4C4741353F3064709A16197d',
841
+ decimals: 18,
842
+ },
843
+ [ChainId.POL]: {
844
+ address: '0x45c32fA6DF82ead1e2EF74d17b76547EDdFaFF89',
845
+ decimals: 18,
846
+ },
847
+ [ChainId.PZE]: {
848
+ address: '0xFf8544feD5379D9ffa8D47a74cE6b91e632AC44D',
849
+ decimals: 18,
850
+ },
851
+ [ChainId.MOO]: {
852
+ address: '0x322E86852e492a7Ee17f28a78c663da38FB33bfb',
853
+ decimals: 18,
854
+ },
855
+ },
856
+ },
798
857
  // > WBTC
799
858
  {
800
859
  key: CoinKey.WBTC,
@@ -1244,6 +1303,10 @@ export const basicCoins = [
1244
1303
  logoURI: 'https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png',
1245
1304
  verified: true,
1246
1305
  chains: {
1306
+ [ChainId.FRA]: {
1307
+ address: '0x0000000000000000000000000000000000000000',
1308
+ decimals: 18,
1309
+ },
1247
1310
  [ChainId.POL]: {
1248
1311
  address: '0x01e91A094f5559f211e4ad4bED01468aBb64Bde3',
1249
1312
  decimals: 18,
@@ -1721,6 +1784,16 @@ export const wrappedTokens = {
1721
1784
  name: 'Wrapped SEI',
1722
1785
  logoURI: 'https://cdn.sei.io/sei-app/sei-icon.png',
1723
1786
  },
1787
+ [ChainId.FRA]: {
1788
+ // https://fraxscan.com/token/0xfc00000000000000000000000000000000000006
1789
+ address: '0xfc00000000000000000000000000000000000006',
1790
+ symbol: 'wfrxETH',
1791
+ decimals: 18,
1792
+ chainId: ChainId.FRA,
1793
+ coinKey: CoinKey.wfrxETH,
1794
+ name: 'Wrapped Frax ETH',
1795
+ logoURI: 'https://static.debank.com/image/frax_token/logo_url/0xfc00000000000000000000000000000000000006/4313f25f6c5196e8fce2c80fa34c73d0.png',
1796
+ },
1724
1797
  };
1725
1798
  export const findDefaultCoin = (coinKey) => {
1726
1799
  const coin = defaultCoins.find((coin) => coin.key === coinKey);
package/dist/multicall.js CHANGED
@@ -41,6 +41,7 @@ export const multicallAddresses = {
41
41
  [ChainId.MNT]: '0xcA11bde05977b3631167028862bE2a173976CA11',
42
42
  [ChainId.BLS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
43
43
  [ChainId.SEI]: '0xcA11bde05977b3631167028862bE2a173976CA11',
44
+ [ChainId.FRA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
44
45
  // TODO
45
46
  // [ChainId.EXP]: '', // TODO
46
47
  // [ChainId.TCH]: '', // TODO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/data-types",
3
- "version": "4.8.2",
3
+ "version": "4.9.1",
4
4
  "description": "Data types for the LI.FI stack",
5
5
  "keywords": [
6
6
  "sdk",
@@ -63,7 +63,7 @@
63
63
  ]
64
64
  },
65
65
  "dependencies": {
66
- "@lifi/types": "^13.13.0"
66
+ "@lifi/types": "^13.17.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@commitlint/cli": "^17.7.1",