@lifi/types 8.3.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 CHANGED
@@ -2,6 +2,20 @@
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
+
12
+ ## [8.4.0](https://github.com/lifinance/types/compare/v8.3.0...v8.4.0) (2023-08-14)
13
+
14
+
15
+ ### Features
16
+
17
+ * add BASE chain ([#186](https://github.com/lifinance/types/issues/186)) ([7726a93](https://github.com/lifinance/types/commit/7726a93c2fa1dbdef53f359229280c26670fe4c1))
18
+
5
19
  ## [8.3.0](https://github.com/lifinance/types/compare/v8.2.0...v8.3.0) (2023-08-04)
6
20
 
7
21
 
package/dist/base.d.ts CHANGED
@@ -98,6 +98,7 @@ export declare enum ChainKey {
98
98
  ERA = "era",
99
99
  PZE = "pze",
100
100
  LNA = "lna",
101
+ BAS = "bas",
101
102
  GOR = "gor",
102
103
  METT = "mett",
103
104
  DIOT = "diot",
@@ -159,6 +160,7 @@ export declare enum ChainId {
159
160
  ERA = 324,
160
161
  PZE = 1101,
161
162
  LNA = 59144,
163
+ BAS = 8453,
162
164
  GOR = 5,
163
165
  METT = 12,
164
166
  DIOT = 13,
package/dist/base.js CHANGED
@@ -102,6 +102,7 @@ export var ChainKey;
102
102
  ChainKey["ERA"] = "era";
103
103
  ChainKey["PZE"] = "pze";
104
104
  ChainKey["LNA"] = "lna";
105
+ ChainKey["BAS"] = "bas";
105
106
  // Testnets
106
107
  ChainKey["GOR"] = "gor";
107
108
  ChainKey["METT"] = "mett";
@@ -165,6 +166,7 @@ export var ChainId;
165
166
  ChainId[ChainId["ERA"] = 324] = "ERA";
166
167
  ChainId[ChainId["PZE"] = 1101] = "PZE";
167
168
  ChainId[ChainId["LNA"] = 59144] = "LNA";
169
+ ChainId[ChainId["BAS"] = 8453] = "BAS";
168
170
  // Testnets
169
171
  ChainId[ChainId["GOR"] = 5] = "GOR";
170
172
  ChainId[ChainId["METT"] = 12] = "METT";
@@ -808,6 +808,48 @@ export const supportedEVMChains = [
808
808
  rpcUrls: ['https://zkevm-rpc.com'],
809
809
  },
810
810
  },
811
+ {
812
+ key: ChainKey.BAS,
813
+ chainType: ChainType.EVM,
814
+ name: 'BASE',
815
+ coin: CoinKey.ETH,
816
+ id: 8453,
817
+ mainnet: true,
818
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/base.svg',
819
+ multicallAddress: multicallAddresses[ChainId.BAS],
820
+ metamask: {
821
+ chainId: prefixChainId(8453),
822
+ blockExplorerUrls: ['https://basescan.org/'],
823
+ chainName: 'BASE',
824
+ nativeCurrency: {
825
+ name: 'Ethereum',
826
+ symbol: 'ETH',
827
+ decimals: 18,
828
+ },
829
+ rpcUrls: ['https://mainnet.base.org'],
830
+ },
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
+ },
811
853
  // TESTNETS
812
854
  // 5 - Goerli
813
855
  {
@@ -98,6 +98,7 @@ export declare enum ChainKey {
98
98
  ERA = "era",
99
99
  PZE = "pze",
100
100
  LNA = "lna",
101
+ BAS = "bas",
101
102
  GOR = "gor",
102
103
  METT = "mett",
103
104
  DIOT = "diot",
@@ -159,6 +160,7 @@ export declare enum ChainId {
159
160
  ERA = 324,
160
161
  PZE = 1101,
161
162
  LNA = 59144,
163
+ BAS = 8453,
162
164
  GOR = 5,
163
165
  METT = 12,
164
166
  DIOT = 13,
package/dist/cjs/base.js CHANGED
@@ -105,6 +105,7 @@ var ChainKey;
105
105
  ChainKey["ERA"] = "era";
106
106
  ChainKey["PZE"] = "pze";
107
107
  ChainKey["LNA"] = "lna";
108
+ ChainKey["BAS"] = "bas";
108
109
  // Testnets
109
110
  ChainKey["GOR"] = "gor";
110
111
  ChainKey["METT"] = "mett";
@@ -168,6 +169,7 @@ var ChainId;
168
169
  ChainId[ChainId["ERA"] = 324] = "ERA";
169
170
  ChainId[ChainId["PZE"] = 1101] = "PZE";
170
171
  ChainId[ChainId["LNA"] = 59144] = "LNA";
172
+ ChainId[ChainId["BAS"] = 8453] = "BAS";
171
173
  // Testnets
172
174
  ChainId[ChainId["GOR"] = 5] = "GOR";
173
175
  ChainId[ChainId["METT"] = 12] = "METT";
@@ -811,6 +811,48 @@ exports.supportedEVMChains = [
811
811
  rpcUrls: ['https://zkevm-rpc.com'],
812
812
  },
813
813
  },
814
+ {
815
+ key: base_1.ChainKey.BAS,
816
+ chainType: Chain_1.ChainType.EVM,
817
+ name: 'BASE',
818
+ coin: base_1.CoinKey.ETH,
819
+ id: 8453,
820
+ mainnet: true,
821
+ logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/base.svg',
822
+ multicallAddress: multicall_1.multicallAddresses[base_1.ChainId.BAS],
823
+ metamask: {
824
+ chainId: (0, EVMChain_1.prefixChainId)(8453),
825
+ blockExplorerUrls: ['https://basescan.org/'],
826
+ chainName: 'BASE',
827
+ nativeCurrency: {
828
+ name: 'Ethereum',
829
+ symbol: 'ETH',
830
+ decimals: 18,
831
+ },
832
+ rpcUrls: ['https://mainnet.base.org'],
833
+ },
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
+ },
814
856
  // TESTNETS
815
857
  // 5 - Goerli
816
858
  {
package/dist/cjs/coins.js CHANGED
@@ -50,6 +50,14 @@ const basicCoins = [
50
50
  address: '0x0000000000000000000000000000000000000000',
51
51
  decimals: 18,
52
52
  },
53
+ [base_1.ChainId.BAS]: {
54
+ address: '0x0000000000000000000000000000000000000000',
55
+ decimals: 18,
56
+ },
57
+ [base_1.ChainId.LNA]: {
58
+ address: '0x0000000000000000000000000000000000000000',
59
+ decimals: 18,
60
+ },
53
61
  [base_1.ChainId.FTM]: {
54
62
  address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
55
63
  decimals: 18,
@@ -555,6 +563,11 @@ const basicCoins = [
555
563
  decimals: 6,
556
564
  name: 'Multichain USDT',
557
565
  },
566
+ [base_1.ChainId.LNA]: {
567
+ address: '0xa219439258ca9da29e9cc4ce5596924745e12b93',
568
+ decimals: 6,
569
+ name: 'USDT',
570
+ },
558
571
  // Testnets
559
572
  [base_1.ChainId.GOR]: {
560
573
  address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
@@ -760,6 +773,11 @@ const basicCoins = [
760
773
  logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
761
774
  verified: true,
762
775
  chains: {
776
+ [base_1.ChainId.BAS]: {
777
+ address: '0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca',
778
+ decimals: 6,
779
+ name: 'USD Base Coin',
780
+ },
763
781
  [base_1.ChainId.ETH]: {
764
782
  address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
765
783
  decimals: 6,
@@ -855,6 +873,11 @@ const basicCoins = [
855
873
  decimals: 6,
856
874
  name: 'Multichain USDC',
857
875
  },
876
+ [base_1.ChainId.LNA]: {
877
+ address: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
878
+ decimals: 6,
879
+ name: 'USDC.e',
880
+ },
858
881
  // Testnets
859
882
  [base_1.ChainId.GOR]: {
860
883
  address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
@@ -1117,6 +1140,14 @@ const basicCoins = [
1117
1140
  address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
1118
1141
  decimals: 18,
1119
1142
  },
1143
+ [base_1.ChainId.BAS]: {
1144
+ address: '0x4200000000000000000000000000000000000006',
1145
+ decimals: 18,
1146
+ },
1147
+ [base_1.ChainId.LNA]: {
1148
+ address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
1149
+ decimals: 18,
1150
+ },
1120
1151
  [base_1.ChainId.AVA]: {
1121
1152
  address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
1122
1153
  decimals: 18,
@@ -1580,6 +1611,26 @@ exports.wrappedTokens = {
1580
1611
  name: 'Wrapped Ether',
1581
1612
  logoURI: 'https://static.debank.com/image/pze_token/logo_url/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9/61844453e63cf81301f845d7864236f6.png',
1582
1613
  },
1614
+ [base_1.ChainId.BAS]: {
1615
+ // https://basescan.org/address/0x4200000000000000000000000000000000000006
1616
+ address: '0x4200000000000000000000000000000000000006',
1617
+ symbol: 'WETH',
1618
+ decimals: 18,
1619
+ chainId: base_1.ChainId.BAS,
1620
+ coinKey: base_1.CoinKey.WETH,
1621
+ name: 'Wrapped Ether',
1622
+ logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
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
+ },
1583
1634
  [base_1.ChainId.FTM]: {
1584
1635
  //
1585
1636
  address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
@@ -39,6 +39,7 @@ exports.multicallAddresses = {
39
39
  [_1.ChainId.ERA]: '0xF9cda624FBC7e059355ce98a31693d299FACd963',
40
40
  [_1.ChainId.LNA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
41
41
  [_1.ChainId.ARN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
42
+ [_1.ChainId.BAS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
42
43
  // TODO
43
44
  // [ChainId.EXP]: '', // TODO
44
45
  // [ChainId.TCH]: '', // TODO
package/dist/coins.js CHANGED
@@ -47,6 +47,14 @@ const basicCoins = [
47
47
  address: '0x0000000000000000000000000000000000000000',
48
48
  decimals: 18,
49
49
  },
50
+ [ChainId.BAS]: {
51
+ address: '0x0000000000000000000000000000000000000000',
52
+ decimals: 18,
53
+ },
54
+ [ChainId.LNA]: {
55
+ address: '0x0000000000000000000000000000000000000000',
56
+ decimals: 18,
57
+ },
50
58
  [ChainId.FTM]: {
51
59
  address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
52
60
  decimals: 18,
@@ -552,6 +560,11 @@ const basicCoins = [
552
560
  decimals: 6,
553
561
  name: 'Multichain USDT',
554
562
  },
563
+ [ChainId.LNA]: {
564
+ address: '0xa219439258ca9da29e9cc4ce5596924745e12b93',
565
+ decimals: 6,
566
+ name: 'USDT',
567
+ },
555
568
  // Testnets
556
569
  [ChainId.GOR]: {
557
570
  address: '0x509ee0d083ddf8ac028f2a56731412edd63223b9',
@@ -757,6 +770,11 @@ const basicCoins = [
757
770
  logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
758
771
  verified: true,
759
772
  chains: {
773
+ [ChainId.BAS]: {
774
+ address: '0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca',
775
+ decimals: 6,
776
+ name: 'USD Base Coin',
777
+ },
760
778
  [ChainId.ETH]: {
761
779
  address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
762
780
  decimals: 6,
@@ -852,6 +870,11 @@ const basicCoins = [
852
870
  decimals: 6,
853
871
  name: 'Multichain USDC',
854
872
  },
873
+ [ChainId.LNA]: {
874
+ address: '0x176211869ca2b568f2a7d4ee941e073a821ee1ff',
875
+ decimals: 6,
876
+ name: 'USDC.e',
877
+ },
855
878
  // Testnets
856
879
  [ChainId.GOR]: {
857
880
  address: '0xd87ba7a50b2e7e660f678a895e4b72e7cb4ccd9c',
@@ -1114,6 +1137,14 @@ const basicCoins = [
1114
1137
  address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
1115
1138
  decimals: 18,
1116
1139
  },
1140
+ [ChainId.BAS]: {
1141
+ address: '0x4200000000000000000000000000000000000006',
1142
+ decimals: 18,
1143
+ },
1144
+ [ChainId.LNA]: {
1145
+ address: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f',
1146
+ decimals: 18,
1147
+ },
1117
1148
  [ChainId.AVA]: {
1118
1149
  address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
1119
1150
  decimals: 18,
@@ -1577,6 +1608,26 @@ export const wrappedTokens = {
1577
1608
  name: 'Wrapped Ether',
1578
1609
  logoURI: 'https://static.debank.com/image/pze_token/logo_url/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9/61844453e63cf81301f845d7864236f6.png',
1579
1610
  },
1611
+ [ChainId.BAS]: {
1612
+ // https://basescan.org/address/0x4200000000000000000000000000000000000006
1613
+ address: '0x4200000000000000000000000000000000000006',
1614
+ symbol: 'WETH',
1615
+ decimals: 18,
1616
+ chainId: ChainId.BAS,
1617
+ coinKey: CoinKey.WETH,
1618
+ name: 'Wrapped Ether',
1619
+ logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
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
+ },
1580
1631
  [ChainId.FTM]: {
1581
1632
  //
1582
1633
  address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
package/dist/multicall.js CHANGED
@@ -36,6 +36,7 @@ export const multicallAddresses = {
36
36
  [ChainId.ERA]: '0xF9cda624FBC7e059355ce98a31693d299FACd963',
37
37
  [ChainId.LNA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
38
38
  [ChainId.ARN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
39
+ [ChainId.BAS]: '0xcA11bde05977b3631167028862bE2a173976CA11',
39
40
  // TODO
40
41
  // [ChainId.EXP]: '', // TODO
41
42
  // [ChainId.TCH]: '', // TODO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifi/types",
3
- "version": "8.3.0",
3
+ "version": "8.5.0",
4
4
  "description": "Types for the LI.FI stack",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/index.js",