@lifi/types 8.0.2 → 8.0.4
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 +16 -0
- package/dist/chains/supported.chains.js +3 -3
- package/dist/cjs/base.js +3 -3
- package/dist/cjs/bridges.js +1 -1
- package/dist/cjs/chains/Chain.js +1 -1
- package/dist/cjs/chains/supported.chains.js +3 -3
- package/dist/cjs/coins.js +3 -3
- package/dist/cjs/exchanges.js +1 -1
- package/dist/coins.js +3 -3
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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.0.4](https://github.com/lifinance/types/compare/v8.0.3...v8.0.4) (2023-07-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **chains:** update zkEVM rpc ([#181](https://github.com/lifinance/types/issues/181)) ([55b45fa](https://github.com/lifinance/types/commit/55b45fa6f6b76c65f5a9b71da7cbe97c37b828bb))
|
|
11
|
+
|
|
12
|
+
### [8.0.3](https://github.com/lifinance/types/compare/v8.0.2...v8.0.3) (2023-07-04)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* remove unused and failing install script ([#177](https://github.com/lifinance/types/issues/177)) ([334b69b](https://github.com/lifinance/types/commit/334b69bd462f60dd36fdc43a54228d08b9a43b8a))
|
|
18
|
+
* set right polygon zkevm WETH address ([67d39bb](https://github.com/lifinance/types/commit/67d39bb60423f96f142d38e3ff2e6466d2f8f0a8))
|
|
19
|
+
* validate chains with custom matchers ([#178](https://github.com/lifinance/types/issues/178)) ([780a6d0](https://github.com/lifinance/types/commit/780a6d0fabb3b07464b63d0fc1132c462d3d63de))
|
|
20
|
+
|
|
5
21
|
### [8.0.2](https://github.com/lifinance/types/compare/v8.0.1...v8.0.2) (2023-06-30)
|
|
6
22
|
|
|
7
23
|
|
|
@@ -797,14 +797,14 @@ export const supportedEVMChains = [
|
|
|
797
797
|
multicallAddress: multicallAddresses[ChainId.PZE],
|
|
798
798
|
metamask: {
|
|
799
799
|
chainId: prefixChainId(1101),
|
|
800
|
-
blockExplorerUrls: ['https://zkevm.polygonscan.com'],
|
|
800
|
+
blockExplorerUrls: ['https://zkevm.polygonscan.com/'],
|
|
801
801
|
chainName: 'Polygon zkEVM',
|
|
802
802
|
nativeCurrency: {
|
|
803
803
|
name: 'ETH',
|
|
804
804
|
symbol: 'ETH',
|
|
805
805
|
decimals: 18,
|
|
806
806
|
},
|
|
807
|
-
rpcUrls: ['https://
|
|
807
|
+
rpcUrls: ['https://zkevm-rpc.com'],
|
|
808
808
|
},
|
|
809
809
|
},
|
|
810
810
|
// TESTNETS
|
|
@@ -932,7 +932,7 @@ export const supportedEVMChains = [
|
|
|
932
932
|
faucetUrls: ['https://gateway.optimism.io/'],
|
|
933
933
|
multicallAddress: multicallAddresses[ChainId.OPTG],
|
|
934
934
|
metamask: {
|
|
935
|
-
chainId: prefixChainId(
|
|
935
|
+
chainId: prefixChainId(420),
|
|
936
936
|
blockExplorerUrls: ['https://blockscout.com/optimism/goerli/'],
|
|
937
937
|
chainName: 'Optimistic Ethereum Testnet Goerli',
|
|
938
938
|
nativeCurrency: {
|
package/dist/cjs/base.js
CHANGED
|
@@ -63,7 +63,7 @@ var CoinKey;
|
|
|
63
63
|
CoinKey["MCB"] = "MCB";
|
|
64
64
|
CoinKey["CELR"] = "CELR";
|
|
65
65
|
CoinKey["IF"] = "IF";
|
|
66
|
-
})(CoinKey
|
|
66
|
+
})(CoinKey = exports.CoinKey || (exports.CoinKey = {}));
|
|
67
67
|
var ChainKey;
|
|
68
68
|
(function (ChainKey) {
|
|
69
69
|
ChainKey["ETH"] = "eth";
|
|
@@ -125,7 +125,7 @@ var ChainKey;
|
|
|
125
125
|
ChainKey["MORT"] = "mort";
|
|
126
126
|
ChainKey["FTMT"] = "ftmt";
|
|
127
127
|
ChainKey["LNAT"] = "lnat";
|
|
128
|
-
})(ChainKey
|
|
128
|
+
})(ChainKey = exports.ChainKey || (exports.ChainKey = {}));
|
|
129
129
|
var ChainId;
|
|
130
130
|
(function (ChainId) {
|
|
131
131
|
ChainId[ChainId["ETH"] = 1] = "ETH";
|
|
@@ -187,4 +187,4 @@ var ChainId;
|
|
|
187
187
|
ChainId[ChainId["MORT"] = 1287] = "MORT";
|
|
188
188
|
ChainId[ChainId["FTMT"] = 4002] = "FTMT";
|
|
189
189
|
ChainId[ChainId["LNAT"] = 59140] = "LNAT";
|
|
190
|
-
})(ChainId
|
|
190
|
+
})(ChainId = exports.ChainId || (exports.ChainId = {}));
|
package/dist/cjs/bridges.js
CHANGED
|
@@ -19,7 +19,7 @@ var BridgeTool;
|
|
|
19
19
|
BridgeTool["across"] = "across";
|
|
20
20
|
BridgeTool["portal"] = "portal";
|
|
21
21
|
BridgeTool["stargate"] = "stargate";
|
|
22
|
-
})(BridgeTool
|
|
22
|
+
})(BridgeTool = exports.BridgeTool || (exports.BridgeTool = {}));
|
|
23
23
|
/**
|
|
24
24
|
* @deprecated
|
|
25
25
|
* These values are now obtainable from the LI.FI API
|
package/dist/cjs/chains/Chain.js
CHANGED
|
@@ -800,14 +800,14 @@ exports.supportedEVMChains = [
|
|
|
800
800
|
multicallAddress: multicall_1.multicallAddresses[base_1.ChainId.PZE],
|
|
801
801
|
metamask: {
|
|
802
802
|
chainId: (0, EVMChain_1.prefixChainId)(1101),
|
|
803
|
-
blockExplorerUrls: ['https://zkevm.polygonscan.com'],
|
|
803
|
+
blockExplorerUrls: ['https://zkevm.polygonscan.com/'],
|
|
804
804
|
chainName: 'Polygon zkEVM',
|
|
805
805
|
nativeCurrency: {
|
|
806
806
|
name: 'ETH',
|
|
807
807
|
symbol: 'ETH',
|
|
808
808
|
decimals: 18,
|
|
809
809
|
},
|
|
810
|
-
rpcUrls: ['https://
|
|
810
|
+
rpcUrls: ['https://zkevm-rpc.com'],
|
|
811
811
|
},
|
|
812
812
|
},
|
|
813
813
|
// TESTNETS
|
|
@@ -935,7 +935,7 @@ exports.supportedEVMChains = [
|
|
|
935
935
|
faucetUrls: ['https://gateway.optimism.io/'],
|
|
936
936
|
multicallAddress: multicall_1.multicallAddresses[base_1.ChainId.OPTG],
|
|
937
937
|
metamask: {
|
|
938
|
-
chainId: (0, EVMChain_1.prefixChainId)(
|
|
938
|
+
chainId: (0, EVMChain_1.prefixChainId)(420),
|
|
939
939
|
blockExplorerUrls: ['https://blockscout.com/optimism/goerli/'],
|
|
940
940
|
chainName: 'Optimistic Ethereum Testnet Goerli',
|
|
941
941
|
nativeCurrency: {
|
package/dist/cjs/coins.js
CHANGED
|
@@ -338,7 +338,7 @@ const basicCoins = [
|
|
|
338
338
|
{
|
|
339
339
|
key: base_1.CoinKey.FTM,
|
|
340
340
|
name: base_1.CoinKey.FTM,
|
|
341
|
-
logoURI: 'https://
|
|
341
|
+
logoURI: 'https://static.debank.com/image/ftm_token/logo_url/ftm/33fdb9c5067e94f3a1b9e78f6fa86984.png',
|
|
342
342
|
verified: true,
|
|
343
343
|
chains: {
|
|
344
344
|
[base_1.ChainId.FTM]: {
|
|
@@ -1572,7 +1572,7 @@ exports.wrappedTokens = {
|
|
|
1572
1572
|
},
|
|
1573
1573
|
[base_1.ChainId.PZE]: {
|
|
1574
1574
|
// https://zkevm.polygonscan.com/token/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9
|
|
1575
|
-
address: '
|
|
1575
|
+
address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9',
|
|
1576
1576
|
symbol: 'WETH',
|
|
1577
1577
|
decimals: 18,
|
|
1578
1578
|
chainId: base_1.ChainId.PZE,
|
|
@@ -1783,7 +1783,7 @@ exports.wrappedTokens = {
|
|
|
1783
1783
|
chainId: base_1.ChainId.BSCT,
|
|
1784
1784
|
coinKey: 'WBNB',
|
|
1785
1785
|
name: 'WBNB',
|
|
1786
|
-
logoURI: 'https://
|
|
1786
|
+
logoURI: 'https://static.debank.com/image/coin/logo_url/bnb/9784283a36f23a58982fc964574ea530.png',
|
|
1787
1787
|
},
|
|
1788
1788
|
[base_1.ChainId.LNAT]: {
|
|
1789
1789
|
// https://explorer.prealpha.zkevm.consensys.net/address/0x2C1b868d6596a18e32E61B901E4060C872647b6C
|
package/dist/cjs/exchanges.js
CHANGED
|
@@ -13,7 +13,7 @@ var ExchangeTool;
|
|
|
13
13
|
ExchangeTool["openocean"] = "openocean";
|
|
14
14
|
ExchangeTool["zerox"] = "0x";
|
|
15
15
|
ExchangeTool["dodo"] = "dodo";
|
|
16
|
-
})(ExchangeTool
|
|
16
|
+
})(ExchangeTool = exports.ExchangeTool || (exports.ExchangeTool = {}));
|
|
17
17
|
/**
|
|
18
18
|
* @deprecated
|
|
19
19
|
* These values are now obtainable from the LI.FI API
|
package/dist/coins.js
CHANGED
|
@@ -335,7 +335,7 @@ const basicCoins = [
|
|
|
335
335
|
{
|
|
336
336
|
key: CoinKey.FTM,
|
|
337
337
|
name: CoinKey.FTM,
|
|
338
|
-
logoURI: 'https://
|
|
338
|
+
logoURI: 'https://static.debank.com/image/ftm_token/logo_url/ftm/33fdb9c5067e94f3a1b9e78f6fa86984.png',
|
|
339
339
|
verified: true,
|
|
340
340
|
chains: {
|
|
341
341
|
[ChainId.FTM]: {
|
|
@@ -1569,7 +1569,7 @@ export const wrappedTokens = {
|
|
|
1569
1569
|
},
|
|
1570
1570
|
[ChainId.PZE]: {
|
|
1571
1571
|
// https://zkevm.polygonscan.com/token/0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9
|
|
1572
|
-
address: '
|
|
1572
|
+
address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9',
|
|
1573
1573
|
symbol: 'WETH',
|
|
1574
1574
|
decimals: 18,
|
|
1575
1575
|
chainId: ChainId.PZE,
|
|
@@ -1780,7 +1780,7 @@ export const wrappedTokens = {
|
|
|
1780
1780
|
chainId: ChainId.BSCT,
|
|
1781
1781
|
coinKey: 'WBNB',
|
|
1782
1782
|
name: 'WBNB',
|
|
1783
|
-
logoURI: 'https://
|
|
1783
|
+
logoURI: 'https://static.debank.com/image/coin/logo_url/bnb/9784283a36f23a58982fc964574ea530.png',
|
|
1784
1784
|
},
|
|
1785
1785
|
[ChainId.LNAT]: {
|
|
1786
1786
|
// https://explorer.prealpha.zkevm.consensys.net/address/0x2C1b868d6596a18e32E61B901E4060C872647b6C
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/types",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.4",
|
|
4
4
|
"description": "Types for the LI.FI stack",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"import": "./dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"install": "node -e \"if (!require('fs').existsSync('./dist')){process.exit(1)}\" || npm run build",
|
|
14
13
|
"watch": "tsc -w -p ./tsconfig.json",
|
|
15
14
|
"build": "node tools/cleanup types && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json",
|
|
16
15
|
"clean": "node tools/cleanup",
|