@lifi/types 8.4.0 → 8.5.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.
- package/CHANGELOG.md +7 -0
- package/dist/chains/supported.chains.js +21 -0
- package/dist/cjs/chains/supported.chains.js +21 -0
- package/dist/cjs/coins.js +28 -0
- package/dist/coins.js +28 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [8.5.0](https://github.com/lifinance/types/compare/v8.4.0...v8.5.0) (2023-08-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add Linea ([#187](https://github.com/lifinance/types/issues/187)) ([806597a](https://github.com/lifinance/types/commit/806597a16fabcd7ded9dc04fdaf131c059b719a5))
|
|
11
|
+
|
|
5
12
|
## [8.4.0](https://github.com/lifinance/types/compare/v8.3.0...v8.4.0) (2023-08-14)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -829,6 +829,27 @@ export const supportedEVMChains = [
|
|
|
829
829
|
rpcUrls: ['https://mainnet.base.org'],
|
|
830
830
|
},
|
|
831
831
|
},
|
|
832
|
+
{
|
|
833
|
+
key: ChainKey.LNA,
|
|
834
|
+
chainType: ChainType.EVM,
|
|
835
|
+
name: 'Linea',
|
|
836
|
+
coin: CoinKey.ETH,
|
|
837
|
+
id: 59144,
|
|
838
|
+
mainnet: true,
|
|
839
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/linea.svg',
|
|
840
|
+
multicallAddress: multicallAddresses[ChainId.LNA],
|
|
841
|
+
metamask: {
|
|
842
|
+
chainId: prefixChainId(59144),
|
|
843
|
+
blockExplorerUrls: ['https://lineascan.build/'],
|
|
844
|
+
chainName: 'LINEA',
|
|
845
|
+
nativeCurrency: {
|
|
846
|
+
name: 'ETH',
|
|
847
|
+
symbol: 'ETH',
|
|
848
|
+
decimals: 18,
|
|
849
|
+
},
|
|
850
|
+
rpcUrls: ['https://rpc.linea.build'],
|
|
851
|
+
},
|
|
852
|
+
},
|
|
832
853
|
// TESTNETS
|
|
833
854
|
// 5 - Goerli
|
|
834
855
|
{
|
|
@@ -832,6 +832,27 @@ exports.supportedEVMChains = [
|
|
|
832
832
|
rpcUrls: ['https://mainnet.base.org'],
|
|
833
833
|
},
|
|
834
834
|
},
|
|
835
|
+
{
|
|
836
|
+
key: base_1.ChainKey.LNA,
|
|
837
|
+
chainType: Chain_1.ChainType.EVM,
|
|
838
|
+
name: 'Linea',
|
|
839
|
+
coin: base_1.CoinKey.ETH,
|
|
840
|
+
id: 59144,
|
|
841
|
+
mainnet: true,
|
|
842
|
+
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/linea.svg',
|
|
843
|
+
multicallAddress: multicall_1.multicallAddresses[base_1.ChainId.LNA],
|
|
844
|
+
metamask: {
|
|
845
|
+
chainId: (0, EVMChain_1.prefixChainId)(59144),
|
|
846
|
+
blockExplorerUrls: ['https://lineascan.build/'],
|
|
847
|
+
chainName: 'LINEA',
|
|
848
|
+
nativeCurrency: {
|
|
849
|
+
name: 'ETH',
|
|
850
|
+
symbol: 'ETH',
|
|
851
|
+
decimals: 18,
|
|
852
|
+
},
|
|
853
|
+
rpcUrls: ['https://rpc.linea.build'],
|
|
854
|
+
},
|
|
855
|
+
},
|
|
835
856
|
// TESTNETS
|
|
836
857
|
// 5 - Goerli
|
|
837
858
|
{
|
package/dist/cjs/coins.js
CHANGED
|
@@ -54,6 +54,10 @@ const basicCoins = [
|
|
|
54
54
|
address: '0x0000000000000000000000000000000000000000',
|
|
55
55
|
decimals: 18,
|
|
56
56
|
},
|
|
57
|
+
[base_1.ChainId.LNA]: {
|
|
58
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
59
|
+
decimals: 18,
|
|
60
|
+
},
|
|
57
61
|
[base_1.ChainId.FTM]: {
|
|
58
62
|
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
|
|
59
63
|
decimals: 18,
|
|
@@ -559,6 +563,11 @@ const basicCoins = [
|
|
|
559
563
|
decimals: 6,
|
|
560
564
|
name: 'Multichain USDT',
|
|
561
565
|
},
|
|
566
|
+
[base_1.ChainId.LNA]: {
|
|
567
|
+
address: '0xa219439258ca9da29e9cc4ce5596924745e12b93',
|
|
568
|
+
decimals: 6,
|
|
569
|
+
name: 'USDT',
|
|
570
|
+
},
|
|
562
571
|
// Testnets
|
|
563
572
|
[base_1.ChainId.GOR]: {
|
|
564
573
|
address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
|
|
@@ -864,6 +873,11 @@ const basicCoins = [
|
|
|
864
873
|
decimals: 6,
|
|
865
874
|
name: 'Multichain USDC',
|
|
866
875
|
},
|
|
876
|
+
[base_1.ChainId.LNA]: {
|
|
877
|
+
address: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
|
|
878
|
+
decimals: 6,
|
|
879
|
+
name: 'USDC.e',
|
|
880
|
+
},
|
|
867
881
|
// Testnets
|
|
868
882
|
[base_1.ChainId.GOR]: {
|
|
869
883
|
address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
|
|
@@ -1130,6 +1144,10 @@ const basicCoins = [
|
|
|
1130
1144
|
address: '0x4200000000000000000000000000000000000006',
|
|
1131
1145
|
decimals: 18,
|
|
1132
1146
|
},
|
|
1147
|
+
[base_1.ChainId.LNA]: {
|
|
1148
|
+
address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
|
|
1149
|
+
decimals: 18,
|
|
1150
|
+
},
|
|
1133
1151
|
[base_1.ChainId.AVA]: {
|
|
1134
1152
|
address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
|
|
1135
1153
|
decimals: 18,
|
|
@@ -1603,6 +1621,16 @@ exports.wrappedTokens = {
|
|
|
1603
1621
|
name: 'Wrapped Ether',
|
|
1604
1622
|
logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
|
|
1605
1623
|
},
|
|
1624
|
+
[base_1.ChainId.LNA]: {
|
|
1625
|
+
// https://lineascan.build/address/0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f
|
|
1626
|
+
address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
|
|
1627
|
+
symbol: 'WETH',
|
|
1628
|
+
decimals: 18,
|
|
1629
|
+
chainId: base_1.ChainId.LNA,
|
|
1630
|
+
coinKey: base_1.CoinKey.WETH,
|
|
1631
|
+
name: 'Wrapped Ether',
|
|
1632
|
+
logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
|
|
1633
|
+
},
|
|
1606
1634
|
[base_1.ChainId.FTM]: {
|
|
1607
1635
|
//
|
|
1608
1636
|
address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
|
package/dist/coins.js
CHANGED
|
@@ -51,6 +51,10 @@ const basicCoins = [
|
|
|
51
51
|
address: '0x0000000000000000000000000000000000000000',
|
|
52
52
|
decimals: 18,
|
|
53
53
|
},
|
|
54
|
+
[ChainId.LNA]: {
|
|
55
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
56
|
+
decimals: 18,
|
|
57
|
+
},
|
|
54
58
|
[ChainId.FTM]: {
|
|
55
59
|
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
|
|
56
60
|
decimals: 18,
|
|
@@ -556,6 +560,11 @@ const basicCoins = [
|
|
|
556
560
|
decimals: 6,
|
|
557
561
|
name: 'Multichain USDT',
|
|
558
562
|
},
|
|
563
|
+
[ChainId.LNA]: {
|
|
564
|
+
address: '0xa219439258ca9da29e9cc4ce5596924745e12b93',
|
|
565
|
+
decimals: 6,
|
|
566
|
+
name: 'USDT',
|
|
567
|
+
},
|
|
559
568
|
// Testnets
|
|
560
569
|
[ChainId.GOR]: {
|
|
561
570
|
address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
|
|
@@ -861,6 +870,11 @@ const basicCoins = [
|
|
|
861
870
|
decimals: 6,
|
|
862
871
|
name: 'Multichain USDC',
|
|
863
872
|
},
|
|
873
|
+
[ChainId.LNA]: {
|
|
874
|
+
address: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
|
|
875
|
+
decimals: 6,
|
|
876
|
+
name: 'USDC.e',
|
|
877
|
+
},
|
|
864
878
|
// Testnets
|
|
865
879
|
[ChainId.GOR]: {
|
|
866
880
|
address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
|
|
@@ -1127,6 +1141,10 @@ const basicCoins = [
|
|
|
1127
1141
|
address: '0x4200000000000000000000000000000000000006',
|
|
1128
1142
|
decimals: 18,
|
|
1129
1143
|
},
|
|
1144
|
+
[ChainId.LNA]: {
|
|
1145
|
+
address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
|
|
1146
|
+
decimals: 18,
|
|
1147
|
+
},
|
|
1130
1148
|
[ChainId.AVA]: {
|
|
1131
1149
|
address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
|
|
1132
1150
|
decimals: 18,
|
|
@@ -1600,6 +1618,16 @@ export const wrappedTokens = {
|
|
|
1600
1618
|
name: 'Wrapped Ether',
|
|
1601
1619
|
logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
|
|
1602
1620
|
},
|
|
1621
|
+
[ChainId.LNA]: {
|
|
1622
|
+
// https://lineascan.build/address/0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f
|
|
1623
|
+
address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
|
|
1624
|
+
symbol: 'WETH',
|
|
1625
|
+
decimals: 18,
|
|
1626
|
+
chainId: ChainId.LNA,
|
|
1627
|
+
coinKey: CoinKey.WETH,
|
|
1628
|
+
name: 'Wrapped Ether',
|
|
1629
|
+
logoURI: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png',
|
|
1630
|
+
},
|
|
1603
1631
|
[ChainId.FTM]: {
|
|
1604
1632
|
//
|
|
1605
1633
|
address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
|