@lifi/data-types 1.0.0-alpha.1 → 1.0.0-alpha.2
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.
|
@@ -823,6 +823,27 @@ export const supportedEVMChains = [
|
|
|
823
823
|
rpcUrls: ['https://mainnet.base.org'],
|
|
824
824
|
},
|
|
825
825
|
},
|
|
826
|
+
{
|
|
827
|
+
key: ChainKey.LNA,
|
|
828
|
+
chainType: ChainType.EVM,
|
|
829
|
+
name: 'Linea',
|
|
830
|
+
coin: CoinKey.ETH,
|
|
831
|
+
id: 59144,
|
|
832
|
+
mainnet: true,
|
|
833
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/linea.svg',
|
|
834
|
+
multicallAddress: multicallAddresses[ChainId.LNA],
|
|
835
|
+
metamask: {
|
|
836
|
+
chainId: prefixChainId(59144),
|
|
837
|
+
blockExplorerUrls: ['https://lineascan.build/'],
|
|
838
|
+
chainName: 'LINEA',
|
|
839
|
+
nativeCurrency: {
|
|
840
|
+
name: 'ETH',
|
|
841
|
+
symbol: 'ETH',
|
|
842
|
+
decimals: 18,
|
|
843
|
+
},
|
|
844
|
+
rpcUrls: ['https://rpc.linea.build'],
|
|
845
|
+
},
|
|
846
|
+
},
|
|
826
847
|
// TESTNETS
|
|
827
848
|
// 5 - Goerli
|
|
828
849
|
{
|
|
@@ -826,6 +826,27 @@ exports.supportedEVMChains = [
|
|
|
826
826
|
rpcUrls: ['https://mainnet.base.org'],
|
|
827
827
|
},
|
|
828
828
|
},
|
|
829
|
+
{
|
|
830
|
+
key: types_1.ChainKey.LNA,
|
|
831
|
+
chainType: types_1.ChainType.EVM,
|
|
832
|
+
name: 'Linea',
|
|
833
|
+
coin: types_1.CoinKey.ETH,
|
|
834
|
+
id: 59144,
|
|
835
|
+
mainnet: true,
|
|
836
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/linea.svg',
|
|
837
|
+
multicallAddress: multicall_1.multicallAddresses[types_1.ChainId.LNA],
|
|
838
|
+
metamask: {
|
|
839
|
+
chainId: (0, utils_1.prefixChainId)(59144),
|
|
840
|
+
blockExplorerUrls: ['https://lineascan.build/'],
|
|
841
|
+
chainName: 'LINEA',
|
|
842
|
+
nativeCurrency: {
|
|
843
|
+
name: 'ETH',
|
|
844
|
+
symbol: 'ETH',
|
|
845
|
+
decimals: 18,
|
|
846
|
+
},
|
|
847
|
+
rpcUrls: ['https://rpc.linea.build'],
|
|
848
|
+
},
|
|
849
|
+
},
|
|
829
850
|
// TESTNETS
|
|
830
851
|
// 5 - Goerli
|
|
831
852
|
{
|
package/dist/cjs/coins/coins.js
CHANGED
|
@@ -55,6 +55,10 @@ exports.basicCoins = [
|
|
|
55
55
|
address: '0x0000000000000000000000000000000000000000',
|
|
56
56
|
decimals: 18,
|
|
57
57
|
},
|
|
58
|
+
[types_1.ChainId.LNA]: {
|
|
59
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
60
|
+
decimals: 18,
|
|
61
|
+
},
|
|
58
62
|
[types_1.ChainId.FTM]: {
|
|
59
63
|
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
|
|
60
64
|
decimals: 18,
|
|
@@ -560,6 +564,11 @@ exports.basicCoins = [
|
|
|
560
564
|
decimals: 6,
|
|
561
565
|
name: 'Multichain USDT',
|
|
562
566
|
},
|
|
567
|
+
[types_1.ChainId.LNA]: {
|
|
568
|
+
address: '0xa219439258ca9da29e9cc4ce5596924745e12b93',
|
|
569
|
+
decimals: 6,
|
|
570
|
+
name: 'USDT',
|
|
571
|
+
},
|
|
563
572
|
// Testnets
|
|
564
573
|
[types_1.ChainId.GOR]: {
|
|
565
574
|
address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
|
|
@@ -865,6 +874,11 @@ exports.basicCoins = [
|
|
|
865
874
|
decimals: 6,
|
|
866
875
|
name: 'Multichain USDC',
|
|
867
876
|
},
|
|
877
|
+
[types_1.ChainId.LNA]: {
|
|
878
|
+
address: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
|
|
879
|
+
decimals: 6,
|
|
880
|
+
name: 'USDC.e',
|
|
881
|
+
},
|
|
868
882
|
// Testnets
|
|
869
883
|
[types_1.ChainId.GOR]: {
|
|
870
884
|
address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
|
|
@@ -1127,6 +1141,10 @@ exports.basicCoins = [
|
|
|
1127
1141
|
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
|
|
1128
1142
|
decimals: 18,
|
|
1129
1143
|
},
|
|
1144
|
+
[types_1.ChainId.LNA]: {
|
|
1145
|
+
address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
|
|
1146
|
+
decimals: 18,
|
|
1147
|
+
},
|
|
1130
1148
|
[types_1.ChainId.AVA]: {
|
|
1131
1149
|
address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
|
|
1132
1150
|
decimals: 18,
|
|
@@ -1604,6 +1622,16 @@ exports.wrappedTokens = {
|
|
|
1604
1622
|
name: 'Wrapped Ether',
|
|
1605
1623
|
logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
|
|
1606
1624
|
},
|
|
1625
|
+
[types_1.ChainId.LNA]: {
|
|
1626
|
+
// https://lineascan.build/address/0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f
|
|
1627
|
+
address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
|
|
1628
|
+
symbol: 'WETH',
|
|
1629
|
+
decimals: 18,
|
|
1630
|
+
chainId: types_1.ChainId.LNA,
|
|
1631
|
+
coinKey: types_1.CoinKey.WETH,
|
|
1632
|
+
name: 'Wrapped Ether',
|
|
1633
|
+
logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
|
|
1634
|
+
},
|
|
1607
1635
|
[types_1.ChainId.FTM]: {
|
|
1608
1636
|
//
|
|
1609
1637
|
address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
|
package/dist/coins/coins.js
CHANGED
|
@@ -52,6 +52,10 @@ export const basicCoins = [
|
|
|
52
52
|
address: '0x0000000000000000000000000000000000000000',
|
|
53
53
|
decimals: 18,
|
|
54
54
|
},
|
|
55
|
+
[ChainId.LNA]: {
|
|
56
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
57
|
+
decimals: 18,
|
|
58
|
+
},
|
|
55
59
|
[ChainId.FTM]: {
|
|
56
60
|
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
|
|
57
61
|
decimals: 18,
|
|
@@ -557,6 +561,11 @@ export const basicCoins = [
|
|
|
557
561
|
decimals: 6,
|
|
558
562
|
name: 'Multichain USDT',
|
|
559
563
|
},
|
|
564
|
+
[ChainId.LNA]: {
|
|
565
|
+
address: '0xa219439258ca9da29e9cc4ce5596924745e12b93',
|
|
566
|
+
decimals: 6,
|
|
567
|
+
name: 'USDT',
|
|
568
|
+
},
|
|
560
569
|
// Testnets
|
|
561
570
|
[ChainId.GOR]: {
|
|
562
571
|
address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
|
|
@@ -862,6 +871,11 @@ export const basicCoins = [
|
|
|
862
871
|
decimals: 6,
|
|
863
872
|
name: 'Multichain USDC',
|
|
864
873
|
},
|
|
874
|
+
[ChainId.LNA]: {
|
|
875
|
+
address: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
|
|
876
|
+
decimals: 6,
|
|
877
|
+
name: 'USDC.e',
|
|
878
|
+
},
|
|
865
879
|
// Testnets
|
|
866
880
|
[ChainId.GOR]: {
|
|
867
881
|
address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
|
|
@@ -1124,6 +1138,10 @@ export const basicCoins = [
|
|
|
1124
1138
|
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
|
|
1125
1139
|
decimals: 18,
|
|
1126
1140
|
},
|
|
1141
|
+
[ChainId.LNA]: {
|
|
1142
|
+
address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
|
|
1143
|
+
decimals: 18,
|
|
1144
|
+
},
|
|
1127
1145
|
[ChainId.AVA]: {
|
|
1128
1146
|
address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
|
|
1129
1147
|
decimals: 18,
|
|
@@ -1601,6 +1619,16 @@ export const wrappedTokens = {
|
|
|
1601
1619
|
name: 'Wrapped Ether',
|
|
1602
1620
|
logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
|
|
1603
1621
|
},
|
|
1622
|
+
[ChainId.LNA]: {
|
|
1623
|
+
// https://lineascan.build/address/0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f
|
|
1624
|
+
address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
|
|
1625
|
+
symbol: 'WETH',
|
|
1626
|
+
decimals: 18,
|
|
1627
|
+
chainId: ChainId.LNA,
|
|
1628
|
+
coinKey: CoinKey.WETH,
|
|
1629
|
+
name: 'Wrapped Ether',
|
|
1630
|
+
logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
|
|
1631
|
+
},
|
|
1604
1632
|
[ChainId.FTM]: {
|
|
1605
1633
|
//
|
|
1606
1634
|
address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/data-types",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.2",
|
|
4
4
|
"description": "Data types for the LI.FI stack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sdk",
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@lifi/types": "^8.
|
|
66
|
+
"@lifi/types": "^8.5.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@commitlint/cli": "^17.7.1",
|
|
70
70
|
"@commitlint/config-conventional": "^17.7.0",
|
|
71
71
|
"@types/jest": "^29.5.4",
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
73
|
-
"@typescript-eslint/parser": "^6.
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
|
73
|
+
"@typescript-eslint/parser": "^6.5.0",
|
|
74
74
|
"eslint": "^8.48.0",
|
|
75
75
|
"eslint-config-prettier": "^9.0.0",
|
|
76
76
|
"eslint-plugin-prettier": "^5.0.0",
|