@lifi/types 8.3.0 → 8.4.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/base.d.ts +2 -0
- package/dist/base.js +2 -0
- package/dist/chains/supported.chains.js +21 -0
- package/dist/cjs/base.d.ts +2 -0
- package/dist/cjs/base.js +2 -0
- package/dist/cjs/chains/supported.chains.js +21 -0
- package/dist/cjs/coins.js +23 -0
- package/dist/cjs/multicall.js +1 -0
- package/dist/coins.js +23 -0
- package/dist/multicall.js +1 -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.4.0](https://github.com/lifinance/types/compare/v8.3.0...v8.4.0) (2023-08-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add BASE chain ([#186](https://github.com/lifinance/types/issues/186)) ([7726a93](https://github.com/lifinance/types/commit/7726a93c2fa1dbdef53f359229280c26670fe4c1))
|
|
11
|
+
|
|
5
12
|
## [8.3.0](https://github.com/lifinance/types/compare/v8.2.0...v8.3.0) (2023-08-04)
|
|
6
13
|
|
|
7
14
|
|
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,27 @@ 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
|
+
},
|
|
811
832
|
// TESTNETS
|
|
812
833
|
// 5 - Goerli
|
|
813
834
|
{
|
package/dist/cjs/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/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,27 @@ 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
|
+
},
|
|
814
835
|
// TESTNETS
|
|
815
836
|
// 5 - Goerli
|
|
816
837
|
{
|
package/dist/cjs/coins.js
CHANGED
|
@@ -50,6 +50,10 @@ const basicCoins = [
|
|
|
50
50
|
address: '0x0000000000000000000000000000000000000000',
|
|
51
51
|
decimals: 18,
|
|
52
52
|
},
|
|
53
|
+
[base_1.ChainId.BAS]: {
|
|
54
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
55
|
+
decimals: 18,
|
|
56
|
+
},
|
|
53
57
|
[base_1.ChainId.FTM]: {
|
|
54
58
|
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
|
|
55
59
|
decimals: 18,
|
|
@@ -760,6 +764,11 @@ const basicCoins = [
|
|
|
760
764
|
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
761
765
|
verified: true,
|
|
762
766
|
chains: {
|
|
767
|
+
[base_1.ChainId.BAS]: {
|
|
768
|
+
address: '0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca',
|
|
769
|
+
decimals: 6,
|
|
770
|
+
name: 'USD Base Coin',
|
|
771
|
+
},
|
|
763
772
|
[base_1.ChainId.ETH]: {
|
|
764
773
|
address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
|
|
765
774
|
decimals: 6,
|
|
@@ -1117,6 +1126,10 @@ const basicCoins = [
|
|
|
1117
1126
|
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
|
|
1118
1127
|
decimals: 18,
|
|
1119
1128
|
},
|
|
1129
|
+
[base_1.ChainId.BAS]: {
|
|
1130
|
+
address: '0x4200000000000000000000000000000000000006',
|
|
1131
|
+
decimals: 18,
|
|
1132
|
+
},
|
|
1120
1133
|
[base_1.ChainId.AVA]: {
|
|
1121
1134
|
address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
|
|
1122
1135
|
decimals: 18,
|
|
@@ -1580,6 +1593,16 @@ exports.wrappedTokens = {
|
|
|
1580
1593
|
name: 'Wrapped Ether',
|
|
1581
1594
|
logoURI: 'https://static.debank.com/image/pze_token/logo_url/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9/61844453e63cf81301f845d7864236f6.png',
|
|
1582
1595
|
},
|
|
1596
|
+
[base_1.ChainId.BAS]: {
|
|
1597
|
+
// https://basescan.org/address/0x4200000000000000000000000000000000000006
|
|
1598
|
+
address: '0x4200000000000000000000000000000000000006',
|
|
1599
|
+
symbol: 'WETH',
|
|
1600
|
+
decimals: 18,
|
|
1601
|
+
chainId: base_1.ChainId.BAS,
|
|
1602
|
+
coinKey: base_1.CoinKey.WETH,
|
|
1603
|
+
name: 'Wrapped Ether',
|
|
1604
|
+
logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
|
|
1605
|
+
},
|
|
1583
1606
|
[base_1.ChainId.FTM]: {
|
|
1584
1607
|
//
|
|
1585
1608
|
address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
|
package/dist/cjs/multicall.js
CHANGED
|
@@ -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,10 @@ const basicCoins = [
|
|
|
47
47
|
address: '0x0000000000000000000000000000000000000000',
|
|
48
48
|
decimals: 18,
|
|
49
49
|
},
|
|
50
|
+
[ChainId.BAS]: {
|
|
51
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
52
|
+
decimals: 18,
|
|
53
|
+
},
|
|
50
54
|
[ChainId.FTM]: {
|
|
51
55
|
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
|
|
52
56
|
decimals: 18,
|
|
@@ -757,6 +761,11 @@ const basicCoins = [
|
|
|
757
761
|
logoURI: 'https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png',
|
|
758
762
|
verified: true,
|
|
759
763
|
chains: {
|
|
764
|
+
[ChainId.BAS]: {
|
|
765
|
+
address: '0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca',
|
|
766
|
+
decimals: 6,
|
|
767
|
+
name: 'USD Base Coin',
|
|
768
|
+
},
|
|
760
769
|
[ChainId.ETH]: {
|
|
761
770
|
address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
|
|
762
771
|
decimals: 6,
|
|
@@ -1114,6 +1123,10 @@ const basicCoins = [
|
|
|
1114
1123
|
address: '0x74b23882a30290451a17c44f4f05243b6b58c76d',
|
|
1115
1124
|
decimals: 18,
|
|
1116
1125
|
},
|
|
1126
|
+
[ChainId.BAS]: {
|
|
1127
|
+
address: '0x4200000000000000000000000000000000000006',
|
|
1128
|
+
decimals: 18,
|
|
1129
|
+
},
|
|
1117
1130
|
[ChainId.AVA]: {
|
|
1118
1131
|
address: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab',
|
|
1119
1132
|
decimals: 18,
|
|
@@ -1577,6 +1590,16 @@ export const wrappedTokens = {
|
|
|
1577
1590
|
name: 'Wrapped Ether',
|
|
1578
1591
|
logoURI: 'https://static.debank.com/image/pze_token/logo_url/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9/61844453e63cf81301f845d7864236f6.png',
|
|
1579
1592
|
},
|
|
1593
|
+
[ChainId.BAS]: {
|
|
1594
|
+
// https://basescan.org/address/0x4200000000000000000000000000000000000006
|
|
1595
|
+
address: '0x4200000000000000000000000000000000000006',
|
|
1596
|
+
symbol: 'WETH',
|
|
1597
|
+
decimals: 18,
|
|
1598
|
+
chainId: ChainId.BAS,
|
|
1599
|
+
coinKey: CoinKey.WETH,
|
|
1600
|
+
name: 'Wrapped Ether',
|
|
1601
|
+
logoURI: 'https://static.debank.com/image/coin/logo_url/eth/d61441782d4a08a7479d54aea211679e.png',
|
|
1602
|
+
},
|
|
1580
1603
|
[ChainId.FTM]: {
|
|
1581
1604
|
//
|
|
1582
1605
|
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
|