@lifi/types 3.2.1 → 3.2.3
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 +14 -0
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/chains/supported.chains.js +8 -8
- package/dist/cjs/base.d.ts +2 -2
- package/dist/cjs/base.js +2 -2
- package/dist/cjs/chains/supported.chains.js +8 -8
- package/dist/cjs/coins.js +10 -11
- package/dist/coins.js +10 -11
- package/package.json +1 -1
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
|
+
### [3.2.3](https://github.com/lifinance/types/compare/v3.2.2...v3.2.3) (2023-04-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add Linea Test token ([#157](https://github.com/lifinance/types/issues/157)) ([c448503](https://github.com/lifinance/types/commit/c448503bd84db9aefc8b1d4275950764fbff03a9))
|
|
11
|
+
|
|
12
|
+
### [3.2.2](https://github.com/lifinance/types/compare/v3.2.1...v3.2.2) (2023-04-12)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* rename CZKT to LNA (Linea) ([#156](https://github.com/lifinance/types/issues/156)) ([b414277](https://github.com/lifinance/types/commit/b414277a37ebeefa37871f2e766915d9d75dd65b))
|
|
18
|
+
|
|
5
19
|
### [3.2.1](https://github.com/lifinance/types/compare/v3.2.0...v3.2.1) (2023-04-11)
|
|
6
20
|
|
|
7
21
|
|
package/dist/base.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export declare enum ChainKey {
|
|
|
107
107
|
EVMT = "evmt",
|
|
108
108
|
MORT = "mort",
|
|
109
109
|
FTMT = "ftmt",
|
|
110
|
-
|
|
110
|
+
LNAT = "lnat"
|
|
111
111
|
}
|
|
112
112
|
export declare enum ChainId {
|
|
113
113
|
ETH = 1,
|
|
@@ -170,7 +170,7 @@ export declare enum ChainId {
|
|
|
170
170
|
EVMT = 9000,
|
|
171
171
|
MORT = 1287,
|
|
172
172
|
FTMT = 4002,
|
|
173
|
-
|
|
173
|
+
LNAT = 59140
|
|
174
174
|
}
|
|
175
175
|
export interface Token {
|
|
176
176
|
address: string;
|
package/dist/base.js
CHANGED
|
@@ -111,7 +111,7 @@ export var ChainKey;
|
|
|
111
111
|
ChainKey["EVMT"] = "evmt";
|
|
112
112
|
ChainKey["MORT"] = "mort";
|
|
113
113
|
ChainKey["FTMT"] = "ftmt";
|
|
114
|
-
ChainKey["
|
|
114
|
+
ChainKey["LNAT"] = "lnat";
|
|
115
115
|
})(ChainKey || (ChainKey = {}));
|
|
116
116
|
export var ChainId;
|
|
117
117
|
(function (ChainId) {
|
|
@@ -176,5 +176,5 @@ export var ChainId;
|
|
|
176
176
|
ChainId[ChainId["EVMT"] = 9000] = "EVMT";
|
|
177
177
|
ChainId[ChainId["MORT"] = 1287] = "MORT";
|
|
178
178
|
ChainId[ChainId["FTMT"] = 4002] = "FTMT";
|
|
179
|
-
ChainId[ChainId["
|
|
179
|
+
ChainId[ChainId["LNAT"] = 59140] = "LNAT";
|
|
180
180
|
})(ChainId || (ChainId = {}));
|
|
@@ -1187,27 +1187,27 @@ export const supportedEVMChains = [
|
|
|
1187
1187
|
rpcUrls: ['https://api.avax-test.network/ext/bc/C/rpc'],
|
|
1188
1188
|
},
|
|
1189
1189
|
},
|
|
1190
|
-
// 59140 - ConsenSys zkEVM Testnet
|
|
1190
|
+
// 59140 - Linea (formerly ConsenSys zkEVM) Testnet
|
|
1191
1191
|
{
|
|
1192
|
-
key: ChainKey.
|
|
1192
|
+
key: ChainKey.LNAT,
|
|
1193
1193
|
chainType: ChainType.EVM,
|
|
1194
|
-
name: '
|
|
1194
|
+
name: 'Linea Testnet',
|
|
1195
1195
|
coin: CoinKey.ETH,
|
|
1196
1196
|
id: 59140,
|
|
1197
1197
|
mainnet: false,
|
|
1198
1198
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/consensys_zkevm_test.png',
|
|
1199
|
-
// multicallAddress: multicallAddresses[ChainId.
|
|
1200
|
-
faucetUrls: ['https://
|
|
1199
|
+
// multicallAddress: multicallAddresses[ChainId.LNAT], // Not deployed yet
|
|
1200
|
+
faucetUrls: ['https://faucetlink.to/goerli'],
|
|
1201
1201
|
metamask: {
|
|
1202
1202
|
chainId: prefixChainId(59140),
|
|
1203
|
-
blockExplorerUrls: ['https://explorer.goerli.
|
|
1204
|
-
chainName: '
|
|
1203
|
+
blockExplorerUrls: ['https://explorer.goerli.linea.build/'],
|
|
1204
|
+
chainName: 'Linea Testnet',
|
|
1205
1205
|
nativeCurrency: {
|
|
1206
1206
|
name: 'crETH',
|
|
1207
1207
|
symbol: 'crETH',
|
|
1208
1208
|
decimals: 18,
|
|
1209
1209
|
},
|
|
1210
|
-
rpcUrls: [],
|
|
1210
|
+
rpcUrls: ['https://rpc.goerli.linea.build'],
|
|
1211
1211
|
},
|
|
1212
1212
|
},
|
|
1213
1213
|
// TODO: Add
|
package/dist/cjs/base.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export declare enum ChainKey {
|
|
|
107
107
|
EVMT = "evmt",
|
|
108
108
|
MORT = "mort",
|
|
109
109
|
FTMT = "ftmt",
|
|
110
|
-
|
|
110
|
+
LNAT = "lnat"
|
|
111
111
|
}
|
|
112
112
|
export declare enum ChainId {
|
|
113
113
|
ETH = 1,
|
|
@@ -170,7 +170,7 @@ export declare enum ChainId {
|
|
|
170
170
|
EVMT = 9000,
|
|
171
171
|
MORT = 1287,
|
|
172
172
|
FTMT = 4002,
|
|
173
|
-
|
|
173
|
+
LNAT = 59140
|
|
174
174
|
}
|
|
175
175
|
export interface Token {
|
|
176
176
|
address: string;
|
package/dist/cjs/base.js
CHANGED
|
@@ -114,7 +114,7 @@ var ChainKey;
|
|
|
114
114
|
ChainKey["EVMT"] = "evmt";
|
|
115
115
|
ChainKey["MORT"] = "mort";
|
|
116
116
|
ChainKey["FTMT"] = "ftmt";
|
|
117
|
-
ChainKey["
|
|
117
|
+
ChainKey["LNAT"] = "lnat";
|
|
118
118
|
})(ChainKey = exports.ChainKey || (exports.ChainKey = {}));
|
|
119
119
|
var ChainId;
|
|
120
120
|
(function (ChainId) {
|
|
@@ -179,5 +179,5 @@ var ChainId;
|
|
|
179
179
|
ChainId[ChainId["EVMT"] = 9000] = "EVMT";
|
|
180
180
|
ChainId[ChainId["MORT"] = 1287] = "MORT";
|
|
181
181
|
ChainId[ChainId["FTMT"] = 4002] = "FTMT";
|
|
182
|
-
ChainId[ChainId["
|
|
182
|
+
ChainId[ChainId["LNAT"] = 59140] = "LNAT";
|
|
183
183
|
})(ChainId = exports.ChainId || (exports.ChainId = {}));
|
|
@@ -1190,27 +1190,27 @@ exports.supportedEVMChains = [
|
|
|
1190
1190
|
rpcUrls: ['https://api.avax-test.network/ext/bc/C/rpc'],
|
|
1191
1191
|
},
|
|
1192
1192
|
},
|
|
1193
|
-
// 59140 - ConsenSys zkEVM Testnet
|
|
1193
|
+
// 59140 - Linea (formerly ConsenSys zkEVM) Testnet
|
|
1194
1194
|
{
|
|
1195
|
-
key: base_1.ChainKey.
|
|
1195
|
+
key: base_1.ChainKey.LNAT,
|
|
1196
1196
|
chainType: Chain_1.ChainType.EVM,
|
|
1197
|
-
name: '
|
|
1197
|
+
name: 'Linea Testnet',
|
|
1198
1198
|
coin: base_1.CoinKey.ETH,
|
|
1199
1199
|
id: 59140,
|
|
1200
1200
|
mainnet: false,
|
|
1201
1201
|
logoURI: 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/consensys_zkevm_test.png',
|
|
1202
|
-
// multicallAddress: multicallAddresses[ChainId.
|
|
1203
|
-
faucetUrls: ['https://
|
|
1202
|
+
// multicallAddress: multicallAddresses[ChainId.LNAT], // Not deployed yet
|
|
1203
|
+
faucetUrls: ['https://faucetlink.to/goerli'],
|
|
1204
1204
|
metamask: {
|
|
1205
1205
|
chainId: (0, EVMChain_1.prefixChainId)(59140),
|
|
1206
|
-
blockExplorerUrls: ['https://explorer.goerli.
|
|
1207
|
-
chainName: '
|
|
1206
|
+
blockExplorerUrls: ['https://explorer.goerli.linea.build/'],
|
|
1207
|
+
chainName: 'Linea Testnet',
|
|
1208
1208
|
nativeCurrency: {
|
|
1209
1209
|
name: 'crETH',
|
|
1210
1210
|
symbol: 'crETH',
|
|
1211
1211
|
decimals: 18,
|
|
1212
1212
|
},
|
|
1213
|
-
rpcUrls: [],
|
|
1213
|
+
rpcUrls: ['https://rpc.goerli.linea.build'],
|
|
1214
1214
|
},
|
|
1215
1215
|
},
|
|
1216
1216
|
// TODO: Add
|
package/dist/cjs/coins.js
CHANGED
|
@@ -130,7 +130,7 @@ const basicCoins = [
|
|
|
130
130
|
address: '0x0000000000000000000000000000000000000000',
|
|
131
131
|
decimals: 18,
|
|
132
132
|
},
|
|
133
|
-
[base_1.ChainId.
|
|
133
|
+
[base_1.ChainId.LNAT]: {
|
|
134
134
|
address: '0x0000000000000000000000000000000000000000',
|
|
135
135
|
decimals: 18,
|
|
136
136
|
},
|
|
@@ -694,10 +694,10 @@ const basicCoins = [
|
|
|
694
694
|
address: '0x6d4dd09982853f08d9966ac3ca4eb5885f16f2b2',
|
|
695
695
|
decimals: 6,
|
|
696
696
|
},
|
|
697
|
-
[base_1.ChainId.
|
|
697
|
+
[base_1.ChainId.LNAT]: {
|
|
698
698
|
address: '0x964FF70695da981027c81020B1c58d833D49A640',
|
|
699
699
|
decimals: 6,
|
|
700
|
-
name: '
|
|
700
|
+
name: 'Linea USD Coin',
|
|
701
701
|
},
|
|
702
702
|
// 42, 0xb7a4f3e9097c08da09517b5ab877f7a917224ede, 6
|
|
703
703
|
},
|
|
@@ -782,6 +782,10 @@ const basicCoins = [
|
|
|
782
782
|
address: '0xe71678794fff8846bff855f716b0ce9d9a78e844',
|
|
783
783
|
decimals: 18,
|
|
784
784
|
},
|
|
785
|
+
[base_1.ChainId.LNAT]: {
|
|
786
|
+
address: '0xb706319d37b945727e71ae0d4353699d19112576',
|
|
787
|
+
decimals: 18,
|
|
788
|
+
},
|
|
785
789
|
},
|
|
786
790
|
},
|
|
787
791
|
// > WBTC
|
|
@@ -981,7 +985,7 @@ const basicCoins = [
|
|
|
981
985
|
address: '0x4200000000000000000000000000000000000006',
|
|
982
986
|
decimals: 18,
|
|
983
987
|
},
|
|
984
|
-
[base_1.ChainId.
|
|
988
|
+
[base_1.ChainId.LNAT]: {
|
|
985
989
|
address: '0x2C1b868d6596a18e32E61B901E4060C872647b6C',
|
|
986
990
|
decimals: 18,
|
|
987
991
|
},
|
|
@@ -1275,11 +1279,6 @@ const basicCoins = [
|
|
|
1275
1279
|
symbol: 'WSOL',
|
|
1276
1280
|
name: 'Token Wrapped SOL (Wormhole)',
|
|
1277
1281
|
},
|
|
1278
|
-
// Testnet
|
|
1279
|
-
[base_1.ChainId.SOL]: {
|
|
1280
|
-
address: 'So11111111111111111111111111111111111111112',
|
|
1281
|
-
decimals: 9,
|
|
1282
|
-
},
|
|
1283
1282
|
},
|
|
1284
1283
|
},
|
|
1285
1284
|
];
|
|
@@ -1621,12 +1620,12 @@ exports.wrappedTokens = {
|
|
|
1621
1620
|
name: 'WBNB',
|
|
1622
1621
|
logoURI: 'https://zapper.fi/images/networks/binance-smart-chain/0x0000000000000000000000000000000000000000.png',
|
|
1623
1622
|
},
|
|
1624
|
-
[base_1.ChainId.
|
|
1623
|
+
[base_1.ChainId.LNAT]: {
|
|
1625
1624
|
// https://explorer.prealpha.zkevm.consensys.net/address/0x2C1b868d6596a18e32E61B901E4060C872647b6C
|
|
1626
1625
|
address: '0x2C1b868d6596a18e32E61B901E4060C872647b6C',
|
|
1627
1626
|
symbol: 'WETH',
|
|
1628
1627
|
decimals: 18,
|
|
1629
|
-
chainId: base_1.ChainId.
|
|
1628
|
+
chainId: base_1.ChainId.LNAT,
|
|
1630
1629
|
coinKey: base_1.CoinKey.WETH,
|
|
1631
1630
|
name: 'WETH',
|
|
1632
1631
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
package/dist/coins.js
CHANGED
|
@@ -127,7 +127,7 @@ const basicCoins = [
|
|
|
127
127
|
address: '0x0000000000000000000000000000000000000000',
|
|
128
128
|
decimals: 18,
|
|
129
129
|
},
|
|
130
|
-
[ChainId.
|
|
130
|
+
[ChainId.LNAT]: {
|
|
131
131
|
address: '0x0000000000000000000000000000000000000000',
|
|
132
132
|
decimals: 18,
|
|
133
133
|
},
|
|
@@ -691,10 +691,10 @@ const basicCoins = [
|
|
|
691
691
|
address: '0x6d4dd09982853f08d9966ac3ca4eb5885f16f2b2',
|
|
692
692
|
decimals: 6,
|
|
693
693
|
},
|
|
694
|
-
[ChainId.
|
|
694
|
+
[ChainId.LNAT]: {
|
|
695
695
|
address: '0x964FF70695da981027c81020B1c58d833D49A640',
|
|
696
696
|
decimals: 6,
|
|
697
|
-
name: '
|
|
697
|
+
name: 'Linea USD Coin',
|
|
698
698
|
},
|
|
699
699
|
// 42, 0xb7a4f3e9097c08da09517b5ab877f7a917224ede, 6
|
|
700
700
|
},
|
|
@@ -779,6 +779,10 @@ const basicCoins = [
|
|
|
779
779
|
address: '0xe71678794fff8846bff855f716b0ce9d9a78e844',
|
|
780
780
|
decimals: 18,
|
|
781
781
|
},
|
|
782
|
+
[ChainId.LNAT]: {
|
|
783
|
+
address: '0xb706319d37b945727e71ae0d4353699d19112576',
|
|
784
|
+
decimals: 18,
|
|
785
|
+
},
|
|
782
786
|
},
|
|
783
787
|
},
|
|
784
788
|
// > WBTC
|
|
@@ -978,7 +982,7 @@ const basicCoins = [
|
|
|
978
982
|
address: '0x4200000000000000000000000000000000000006',
|
|
979
983
|
decimals: 18,
|
|
980
984
|
},
|
|
981
|
-
[ChainId.
|
|
985
|
+
[ChainId.LNAT]: {
|
|
982
986
|
address: '0x2C1b868d6596a18e32E61B901E4060C872647b6C',
|
|
983
987
|
decimals: 18,
|
|
984
988
|
},
|
|
@@ -1272,11 +1276,6 @@ const basicCoins = [
|
|
|
1272
1276
|
symbol: 'WSOL',
|
|
1273
1277
|
name: 'Token Wrapped SOL (Wormhole)',
|
|
1274
1278
|
},
|
|
1275
|
-
// Testnet
|
|
1276
|
-
[ChainId.SOL]: {
|
|
1277
|
-
address: 'So11111111111111111111111111111111111111112',
|
|
1278
|
-
decimals: 9,
|
|
1279
|
-
},
|
|
1280
1279
|
},
|
|
1281
1280
|
},
|
|
1282
1281
|
];
|
|
@@ -1618,12 +1617,12 @@ export const wrappedTokens = {
|
|
|
1618
1617
|
name: 'WBNB',
|
|
1619
1618
|
logoURI: 'https://zapper.fi/images/networks/binance-smart-chain/0x0000000000000000000000000000000000000000.png',
|
|
1620
1619
|
},
|
|
1621
|
-
[ChainId.
|
|
1620
|
+
[ChainId.LNAT]: {
|
|
1622
1621
|
// https://explorer.prealpha.zkevm.consensys.net/address/0x2C1b868d6596a18e32E61B901E4060C872647b6C
|
|
1623
1622
|
address: '0x2C1b868d6596a18e32E61B901E4060C872647b6C',
|
|
1624
1623
|
symbol: 'WETH',
|
|
1625
1624
|
decimals: 18,
|
|
1626
|
-
chainId: ChainId.
|
|
1625
|
+
chainId: ChainId.LNAT,
|
|
1627
1626
|
coinKey: CoinKey.WETH,
|
|
1628
1627
|
name: 'WETH',
|
|
1629
1628
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|