@lifi/data-types 4.8.2 → 4.9.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.
|
@@ -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
|
];
|
package/dist/cjs/coins/coins.js
CHANGED
|
@@ -798,6 +798,59 @@ exports.basicCoins = [
|
|
|
798
798
|
},
|
|
799
799
|
},
|
|
800
800
|
},
|
|
801
|
+
// Frax
|
|
802
|
+
{
|
|
803
|
+
key: types_1.CoinKey.FRAX,
|
|
804
|
+
name: types_1.CoinKey.FRAX,
|
|
805
|
+
logoURI: 'https://static.debank.com/image/movr_token/logo_url/0x965f84d915a9efa2dd81b653e3ae736555d945f4/1f2c42cba1add081f314ee899ab67816.png',
|
|
806
|
+
verified: true,
|
|
807
|
+
chains: {
|
|
808
|
+
[types_1.ChainId.FRA]: {
|
|
809
|
+
address: '0xfc00000000000000000000000000000000000001',
|
|
810
|
+
decimals: 18,
|
|
811
|
+
},
|
|
812
|
+
[types_1.ChainId.ETH]: {
|
|
813
|
+
address: '0x853d955aCEf822Db058eb8505911ED77F175b99e',
|
|
814
|
+
decimals: 18,
|
|
815
|
+
},
|
|
816
|
+
[types_1.ChainId.ARB]: {
|
|
817
|
+
address: '0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F',
|
|
818
|
+
decimals: 18,
|
|
819
|
+
},
|
|
820
|
+
[types_1.ChainId.OPT]: {
|
|
821
|
+
address: '0x2E3D870790dC77A83DD1d18184Acc7439A53f475',
|
|
822
|
+
decimals: 18,
|
|
823
|
+
},
|
|
824
|
+
[types_1.ChainId.BSC]: {
|
|
825
|
+
address: '0x90C97F71E18723b0Cf0dfa30ee176Ab653E89F40',
|
|
826
|
+
decimals: 18,
|
|
827
|
+
},
|
|
828
|
+
[types_1.ChainId.FTM]: {
|
|
829
|
+
address: '0xdc301622e621166BD8E82f2cA0A26c13Ad0BE355',
|
|
830
|
+
decimals: 18,
|
|
831
|
+
},
|
|
832
|
+
[types_1.ChainId.AVA]: {
|
|
833
|
+
address: '0xdc42728b0ea910349ed3c6e1c9dc06b5fb591f98',
|
|
834
|
+
decimals: 18,
|
|
835
|
+
},
|
|
836
|
+
[types_1.ChainId.MOR]: {
|
|
837
|
+
address: '0x1A93B23281CC1CDE4C4741353F3064709A16197d',
|
|
838
|
+
decimals: 18,
|
|
839
|
+
},
|
|
840
|
+
[types_1.ChainId.POL]: {
|
|
841
|
+
address: '0x45c32fA6DF82ead1e2EF74d17b76547EDdFaFF89',
|
|
842
|
+
decimals: 18,
|
|
843
|
+
},
|
|
844
|
+
[types_1.ChainId.PZE]: {
|
|
845
|
+
address: '0xFf8544feD5379D9ffa8D47a74cE6b91e632AC44D',
|
|
846
|
+
decimals: 18,
|
|
847
|
+
},
|
|
848
|
+
[types_1.ChainId.MOO]: {
|
|
849
|
+
address: '0x322E86852e492a7Ee17f28a78c663da38FB33bfb',
|
|
850
|
+
decimals: 18,
|
|
851
|
+
},
|
|
852
|
+
},
|
|
853
|
+
},
|
|
801
854
|
// > WBTC
|
|
802
855
|
{
|
|
803
856
|
key: types_1.CoinKey.WBTC,
|
|
@@ -1247,6 +1300,10 @@ exports.basicCoins = [
|
|
|
1247
1300
|
logoURI: 'https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png',
|
|
1248
1301
|
verified: true,
|
|
1249
1302
|
chains: {
|
|
1303
|
+
[types_1.ChainId.FRA]: {
|
|
1304
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
1305
|
+
decimals: 18,
|
|
1306
|
+
},
|
|
1250
1307
|
[types_1.ChainId.POL]: {
|
|
1251
1308
|
address: '0x01e91A094f5559f211e4ad4bED01468aBb64Bde3',
|
|
1252
1309
|
decimals: 18,
|
|
@@ -1724,6 +1781,16 @@ exports.wrappedTokens = {
|
|
|
1724
1781
|
name: 'Wrapped SEI',
|
|
1725
1782
|
logoURI: 'https://cdn.sei.io/sei-app/sei-icon.png',
|
|
1726
1783
|
},
|
|
1784
|
+
[types_1.ChainId.FRA]: {
|
|
1785
|
+
// https://fraxscan.com/token/0xfc00000000000000000000000000000000000006
|
|
1786
|
+
address: '0xfc00000000000000000000000000000000000006',
|
|
1787
|
+
symbol: 'wfrxETH',
|
|
1788
|
+
decimals: 18,
|
|
1789
|
+
chainId: types_1.ChainId.FRA,
|
|
1790
|
+
coinKey: types_1.CoinKey.wfrxETH,
|
|
1791
|
+
name: 'Wrapped Frax ETH',
|
|
1792
|
+
logoURI: 'https://static.debank.com/image/frax_token/logo_url/0xfc00000000000000000000000000000000000006/4313f25f6c5196e8fce2c80fa34c73d0.png',
|
|
1793
|
+
},
|
|
1727
1794
|
};
|
|
1728
1795
|
const findDefaultCoin = (coinKey) => {
|
|
1729
1796
|
const coin = exports.defaultCoins.find((coin) => coin.key === coinKey);
|
package/dist/cjs/multicall.js
CHANGED
|
@@ -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
|
package/dist/coins/coins.js
CHANGED
|
@@ -795,6 +795,59 @@ export const basicCoins = [
|
|
|
795
795
|
},
|
|
796
796
|
},
|
|
797
797
|
},
|
|
798
|
+
// Frax
|
|
799
|
+
{
|
|
800
|
+
key: CoinKey.FRAX,
|
|
801
|
+
name: CoinKey.FRAX,
|
|
802
|
+
logoURI: 'https://static.debank.com/image/movr_token/logo_url/0x965f84d915a9efa2dd81b653e3ae736555d945f4/1f2c42cba1add081f314ee899ab67816.png',
|
|
803
|
+
verified: true,
|
|
804
|
+
chains: {
|
|
805
|
+
[ChainId.FRA]: {
|
|
806
|
+
address: '0xfc00000000000000000000000000000000000001',
|
|
807
|
+
decimals: 18,
|
|
808
|
+
},
|
|
809
|
+
[ChainId.ETH]: {
|
|
810
|
+
address: '0x853d955aCEf822Db058eb8505911ED77F175b99e',
|
|
811
|
+
decimals: 18,
|
|
812
|
+
},
|
|
813
|
+
[ChainId.ARB]: {
|
|
814
|
+
address: '0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F',
|
|
815
|
+
decimals: 18,
|
|
816
|
+
},
|
|
817
|
+
[ChainId.OPT]: {
|
|
818
|
+
address: '0x2E3D870790dC77A83DD1d18184Acc7439A53f475',
|
|
819
|
+
decimals: 18,
|
|
820
|
+
},
|
|
821
|
+
[ChainId.BSC]: {
|
|
822
|
+
address: '0x90C97F71E18723b0Cf0dfa30ee176Ab653E89F40',
|
|
823
|
+
decimals: 18,
|
|
824
|
+
},
|
|
825
|
+
[ChainId.FTM]: {
|
|
826
|
+
address: '0xdc301622e621166BD8E82f2cA0A26c13Ad0BE355',
|
|
827
|
+
decimals: 18,
|
|
828
|
+
},
|
|
829
|
+
[ChainId.AVA]: {
|
|
830
|
+
address: '0xdc42728b0ea910349ed3c6e1c9dc06b5fb591f98',
|
|
831
|
+
decimals: 18,
|
|
832
|
+
},
|
|
833
|
+
[ChainId.MOR]: {
|
|
834
|
+
address: '0x1A93B23281CC1CDE4C4741353F3064709A16197d',
|
|
835
|
+
decimals: 18,
|
|
836
|
+
},
|
|
837
|
+
[ChainId.POL]: {
|
|
838
|
+
address: '0x45c32fA6DF82ead1e2EF74d17b76547EDdFaFF89',
|
|
839
|
+
decimals: 18,
|
|
840
|
+
},
|
|
841
|
+
[ChainId.PZE]: {
|
|
842
|
+
address: '0xFf8544feD5379D9ffa8D47a74cE6b91e632AC44D',
|
|
843
|
+
decimals: 18,
|
|
844
|
+
},
|
|
845
|
+
[ChainId.MOO]: {
|
|
846
|
+
address: '0x322E86852e492a7Ee17f28a78c663da38FB33bfb',
|
|
847
|
+
decimals: 18,
|
|
848
|
+
},
|
|
849
|
+
},
|
|
850
|
+
},
|
|
798
851
|
// > WBTC
|
|
799
852
|
{
|
|
800
853
|
key: CoinKey.WBTC,
|
|
@@ -1244,6 +1297,10 @@ export const basicCoins = [
|
|
|
1244
1297
|
logoURI: 'https://assets.coingecko.com/coins/images/28284/standard/frxETH_icon.png',
|
|
1245
1298
|
verified: true,
|
|
1246
1299
|
chains: {
|
|
1300
|
+
[ChainId.FRA]: {
|
|
1301
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
1302
|
+
decimals: 18,
|
|
1303
|
+
},
|
|
1247
1304
|
[ChainId.POL]: {
|
|
1248
1305
|
address: '0x01e91A094f5559f211e4ad4bED01468aBb64Bde3',
|
|
1249
1306
|
decimals: 18,
|
|
@@ -1721,6 +1778,16 @@ export const wrappedTokens = {
|
|
|
1721
1778
|
name: 'Wrapped SEI',
|
|
1722
1779
|
logoURI: 'https://cdn.sei.io/sei-app/sei-icon.png',
|
|
1723
1780
|
},
|
|
1781
|
+
[ChainId.FRA]: {
|
|
1782
|
+
// https://fraxscan.com/token/0xfc00000000000000000000000000000000000006
|
|
1783
|
+
address: '0xfc00000000000000000000000000000000000006',
|
|
1784
|
+
symbol: 'wfrxETH',
|
|
1785
|
+
decimals: 18,
|
|
1786
|
+
chainId: ChainId.FRA,
|
|
1787
|
+
coinKey: CoinKey.wfrxETH,
|
|
1788
|
+
name: 'Wrapped Frax ETH',
|
|
1789
|
+
logoURI: 'https://static.debank.com/image/frax_token/logo_url/0xfc00000000000000000000000000000000000006/4313f25f6c5196e8fce2c80fa34c73d0.png',
|
|
1790
|
+
},
|
|
1724
1791
|
};
|
|
1725
1792
|
export const findDefaultCoin = (coinKey) => {
|
|
1726
1793
|
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.
|
|
3
|
+
"version": "4.9.0",
|
|
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.
|
|
66
|
+
"@lifi/types": "^13.17.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@commitlint/cli": "^17.7.1",
|