@lifi/types 1.2.0 → 1.2.1
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/coins.js +32 -45
- 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
|
+
### [1.2.1](https://github.com/lifinance/types/compare/v1.2.0...v1.2.1) (2022-07-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **coins:** remove duplicated ETH definition on AUR ([b264800](https://github.com/lifinance/types/commit/b26480088c3d5e5c4a1f442c9e15d251565416b8))
|
|
11
|
+
|
|
5
12
|
## [1.2.0](https://github.com/lifinance/types/compare/v1.1.1...v1.2.0) (2022-07-21)
|
|
6
13
|
|
|
7
14
|
|
package/dist/coins.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3
|
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.findTokenByChainIdAndAddress = exports.findWrappedGasOnChain = exports.findDefaultToken = exports.findDefaultCoin = exports.wrappedTokens = exports.defaultCoins = void 0;
|
|
5
5
|
var base_1 = require("./base");
|
|
@@ -1061,19 +1061,6 @@ var basicCoins = [
|
|
|
1061
1061
|
},
|
|
1062
1062
|
_2),
|
|
1063
1063
|
},
|
|
1064
|
-
// > AURORA
|
|
1065
|
-
{
|
|
1066
|
-
key: base_1.CoinKey.ETH,
|
|
1067
|
-
name: 'AETH',
|
|
1068
|
-
logoURI: 'https://static.debank.com/image/aurora_token/logo_url/aurora/d61441782d4a08a7479d54aea211679e.png',
|
|
1069
|
-
verified: true,
|
|
1070
|
-
chains: (_3 = {},
|
|
1071
|
-
_3[base_1.ChainId.AUR] = {
|
|
1072
|
-
address: '0x0000000000000000000000000000000000000000',
|
|
1073
|
-
decimals: 18,
|
|
1074
|
-
},
|
|
1075
|
-
_3),
|
|
1076
|
-
},
|
|
1077
1064
|
];
|
|
1078
1065
|
exports.defaultCoins = basicCoins.map(function (coin) {
|
|
1079
1066
|
var _a, _b;
|
|
@@ -1099,8 +1086,8 @@ exports.defaultCoins = basicCoins.map(function (coin) {
|
|
|
1099
1086
|
return defaultCoin;
|
|
1100
1087
|
});
|
|
1101
1088
|
// Wrapped version of gas on chain
|
|
1102
|
-
exports.wrappedTokens = (
|
|
1103
|
-
|
|
1089
|
+
exports.wrappedTokens = (_3 = {},
|
|
1090
|
+
_3[base_1.ChainId.ETH] = {
|
|
1104
1091
|
// https://ww7.etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
|
|
1105
1092
|
address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
|
|
1106
1093
|
symbol: 'WETH',
|
|
@@ -1110,7 +1097,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1110
1097
|
name: 'WETH',
|
|
1111
1098
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1112
1099
|
},
|
|
1113
|
-
|
|
1100
|
+
_3[base_1.ChainId.BSC] = {
|
|
1114
1101
|
// https://bscscan.com/token/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
|
|
1115
1102
|
address: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c',
|
|
1116
1103
|
symbol: 'WBNB',
|
|
@@ -1120,7 +1107,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1120
1107
|
name: 'WBNB',
|
|
1121
1108
|
logoURI: 'https://zapper.fi/images/networks/binance-smart-chain/0x0000000000000000000000000000000000000000.png',
|
|
1122
1109
|
},
|
|
1123
|
-
|
|
1110
|
+
_3[base_1.ChainId.POL] = {
|
|
1124
1111
|
// https://polygonscan.com/token/0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270
|
|
1125
1112
|
address: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
|
|
1126
1113
|
symbol: 'WMATIC',
|
|
@@ -1130,7 +1117,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1130
1117
|
name: 'WMATIC',
|
|
1131
1118
|
logoURI: 'https://zapper.fi/images/networks/polygon/0x0000000000000000000000000000000000000000.png',
|
|
1132
1119
|
},
|
|
1133
|
-
|
|
1120
|
+
_3[base_1.ChainId.DAI] = {
|
|
1134
1121
|
// https://blockscout.com/xdai/mainnet/address/0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d
|
|
1135
1122
|
address: '0xe91d153e0b41518a2ce8dd3d7944fa863463a97d',
|
|
1136
1123
|
symbol: 'WXDAI',
|
|
@@ -1140,7 +1127,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1140
1127
|
name: 'WXDAI',
|
|
1141
1128
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x6b175474e89094c44da98b954eedeac495271d0f.png',
|
|
1142
1129
|
},
|
|
1143
|
-
|
|
1130
|
+
_3[base_1.ChainId.OPT] = {
|
|
1144
1131
|
// https://optimistic.etherscan.io/token/0x4200000000000000000000000000000000000006
|
|
1145
1132
|
address: '0x4200000000000000000000000000000000000006',
|
|
1146
1133
|
symbol: 'WETH',
|
|
@@ -1150,7 +1137,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1150
1137
|
name: 'Wrapped ETH',
|
|
1151
1138
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1152
1139
|
},
|
|
1153
|
-
|
|
1140
|
+
_3[base_1.ChainId.FTM] = {
|
|
1154
1141
|
//
|
|
1155
1142
|
address: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
|
|
1156
1143
|
symbol: 'wFTM',
|
|
@@ -1160,7 +1147,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1160
1147
|
name: 'wFTM',
|
|
1161
1148
|
logoURI: 'https://assets.spookyswap.finance/coins/0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83.png',
|
|
1162
1149
|
},
|
|
1163
|
-
|
|
1150
|
+
_3[base_1.ChainId.ONE] = {
|
|
1164
1151
|
address: '0xcf664087a5bb0237a0bad6742852ec6c8d69a27a',
|
|
1165
1152
|
symbol: 'WONE',
|
|
1166
1153
|
decimals: 18,
|
|
@@ -1169,7 +1156,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1169
1156
|
name: 'WRAPPED ONE',
|
|
1170
1157
|
logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png',
|
|
1171
1158
|
},
|
|
1172
|
-
|
|
1159
|
+
_3[base_1.ChainId.AVA] = {
|
|
1173
1160
|
address: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7',
|
|
1174
1161
|
symbol: 'WAVAX',
|
|
1175
1162
|
decimals: 18,
|
|
@@ -1178,7 +1165,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1178
1165
|
name: 'Wrapped AVAX',
|
|
1179
1166
|
logoURI: '',
|
|
1180
1167
|
},
|
|
1181
|
-
|
|
1168
|
+
_3[base_1.ChainId.ARB] = {
|
|
1182
1169
|
address: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1',
|
|
1183
1170
|
symbol: 'WETH',
|
|
1184
1171
|
decimals: 18,
|
|
@@ -1187,7 +1174,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1187
1174
|
name: 'WETH',
|
|
1188
1175
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1189
1176
|
},
|
|
1190
|
-
|
|
1177
|
+
_3[base_1.ChainId.MOR] = {
|
|
1191
1178
|
address: '0x98878b06940ae243284ca214f92bb71a2b032b8a',
|
|
1192
1179
|
symbol: 'WMOVR',
|
|
1193
1180
|
decimals: 18,
|
|
@@ -1196,7 +1183,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1196
1183
|
name: 'WMOVR',
|
|
1197
1184
|
logoURI: 'https://assets.coingecko.com/coins/images/17984/small/9285.png',
|
|
1198
1185
|
},
|
|
1199
|
-
|
|
1186
|
+
_3[base_1.ChainId.OKT] = {
|
|
1200
1187
|
address: '0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15',
|
|
1201
1188
|
symbol: 'wOKT',
|
|
1202
1189
|
decimals: 18,
|
|
@@ -1205,7 +1192,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1205
1192
|
name: 'wOKT',
|
|
1206
1193
|
logoURI: 'https://static.debank.com/image/okt_token/logo_url/okt/1228cd92320b3d33769bd08eecfb5391.png',
|
|
1207
1194
|
},
|
|
1208
|
-
|
|
1195
|
+
_3[base_1.ChainId.HEC] = {
|
|
1209
1196
|
address: '0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f',
|
|
1210
1197
|
symbol: 'wHT',
|
|
1211
1198
|
decimals: 18,
|
|
@@ -1214,7 +1201,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1214
1201
|
name: 'wHT',
|
|
1215
1202
|
logoURI: 'https://static.debank.com/image/heco_token/logo_url/heco/c399dcddde07e1944c4dd8f922832b53.png',
|
|
1216
1203
|
},
|
|
1217
|
-
|
|
1204
|
+
_3[base_1.ChainId.CRO] = {
|
|
1218
1205
|
address: '0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23',
|
|
1219
1206
|
symbol: 'WCRO',
|
|
1220
1207
|
decimals: 18,
|
|
@@ -1223,7 +1210,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1223
1210
|
name: 'WCRO',
|
|
1224
1211
|
logoURI: 'https://raw.githubusercontent.com/cronaswap/default-token-list/main/assets/tokens/cronos/0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23/logo.png',
|
|
1225
1212
|
},
|
|
1226
|
-
|
|
1213
|
+
_3[base_1.ChainId.FUS] = {
|
|
1227
1214
|
address: '0x0be9e53fd7edac9f859882afdda116645287c629',
|
|
1228
1215
|
symbol: 'WFUSE',
|
|
1229
1216
|
decimals: 18,
|
|
@@ -1232,7 +1219,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1232
1219
|
name: 'Wrapped Fuse',
|
|
1233
1220
|
logoURI: 'https://fuselogo.s3.eu-central-1.amazonaws.com/wfuse.png',
|
|
1234
1221
|
},
|
|
1235
|
-
|
|
1222
|
+
_3[base_1.ChainId.MOO] = {
|
|
1236
1223
|
address: '0xacc15dc74880c9944775448304b263d191c6077f',
|
|
1237
1224
|
symbol: 'WGLMR',
|
|
1238
1225
|
decimals: 18,
|
|
@@ -1241,7 +1228,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1241
1228
|
name: 'Wrapped GLMR',
|
|
1242
1229
|
logoURI: 'https://static.debank.com/image/mobm_token/logo_url/0xacc15dc74880c9944775448304b263d191c6077f/a8442077d76b258297181c3e6eb8c9cc.png',
|
|
1243
1230
|
},
|
|
1244
|
-
|
|
1231
|
+
_3[base_1.ChainId.MAM] = {
|
|
1245
1232
|
address: '0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481',
|
|
1246
1233
|
symbol: 'WMETIS',
|
|
1247
1234
|
decimals: 18,
|
|
@@ -1250,7 +1237,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1250
1237
|
name: 'Wrapped Metis',
|
|
1251
1238
|
logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/9640.png',
|
|
1252
1239
|
},
|
|
1253
|
-
|
|
1240
|
+
_3[base_1.ChainId.BOB] = {
|
|
1254
1241
|
address: '0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000',
|
|
1255
1242
|
symbol: 'WETH',
|
|
1256
1243
|
decimals: 18,
|
|
@@ -1259,7 +1246,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1259
1246
|
name: 'Wrapped ETH',
|
|
1260
1247
|
logoURI: 'https://static.debank.com/image/boba_token/logo_url/0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000/b1947b38a90e559eb950453965714be4.png',
|
|
1261
1248
|
},
|
|
1262
|
-
|
|
1249
|
+
_3[base_1.ChainId.CEL] = {
|
|
1263
1250
|
address: '0x471ece3750da237f93b8e339c536989b8978a438',
|
|
1264
1251
|
symbol: 'CELO',
|
|
1265
1252
|
decimals: 18,
|
|
@@ -1268,7 +1255,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1268
1255
|
name: 'Celo native asset',
|
|
1269
1256
|
logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/5567.png',
|
|
1270
1257
|
},
|
|
1271
|
-
|
|
1258
|
+
_3[base_1.ChainId.EVM] = {
|
|
1272
1259
|
address: '0xd4949664cd82660aae99bedc034a0dea8a0bd517',
|
|
1273
1260
|
symbol: 'WEVMOS',
|
|
1274
1261
|
decimals: 18,
|
|
@@ -1277,7 +1264,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1277
1264
|
name: 'Wrapped Evmos',
|
|
1278
1265
|
logoURI: 'https://raw.githubusercontent.com/cronus-finance/token-list/main/assets/evmos/0xD4949664cD82660AaE99bEdc034a0deA8A0bd517/logo.png',
|
|
1279
1266
|
},
|
|
1280
|
-
|
|
1267
|
+
_3[base_1.ChainId.AUR] = {
|
|
1281
1268
|
address: '0x0000000000000000000000000000000000000000',
|
|
1282
1269
|
symbol: 'AETH',
|
|
1283
1270
|
decimals: 18,
|
|
@@ -1287,7 +1274,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1287
1274
|
logoURI: 'https://static.debank.com/image/aurora_token/logo_url/aurora/d61441782d4a08a7479d54aea211679e.png',
|
|
1288
1275
|
},
|
|
1289
1276
|
// Testnets
|
|
1290
|
-
|
|
1277
|
+
_3[base_1.ChainId.ROP] = {
|
|
1291
1278
|
// https://ropsten.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab
|
|
1292
1279
|
address: '0xc778417e063141139fce010982780140aa0cd5ab',
|
|
1293
1280
|
symbol: 'WETH',
|
|
@@ -1297,7 +1284,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1297
1284
|
name: 'WETH',
|
|
1298
1285
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1299
1286
|
},
|
|
1300
|
-
|
|
1287
|
+
_3[base_1.ChainId.RIN] = {
|
|
1301
1288
|
// https://rinkeby.etherscan.io/token/0xc778417e063141139fce010982780140aa0cd5ab
|
|
1302
1289
|
address: '0xc778417e063141139fce010982780140aa0cd5ab',
|
|
1303
1290
|
symbol: 'WETH',
|
|
@@ -1307,7 +1294,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1307
1294
|
name: 'WETH',
|
|
1308
1295
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1309
1296
|
},
|
|
1310
|
-
|
|
1297
|
+
_3[base_1.ChainId.GOR] = {
|
|
1311
1298
|
// https://goerli.etherscan.io/token/0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6
|
|
1312
1299
|
address: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6',
|
|
1313
1300
|
symbol: 'WETH',
|
|
@@ -1317,7 +1304,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1317
1304
|
name: 'WETH',
|
|
1318
1305
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1319
1306
|
},
|
|
1320
|
-
|
|
1307
|
+
_3[base_1.ChainId.KOV] = {
|
|
1321
1308
|
// https://kovan.etherscan.io/address/0xd0a1e359811322d97991e03f863a0c30c2cf029c
|
|
1322
1309
|
address: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
|
|
1323
1310
|
symbol: 'WETH',
|
|
@@ -1327,7 +1314,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1327
1314
|
name: 'WETH',
|
|
1328
1315
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1329
1316
|
},
|
|
1330
|
-
|
|
1317
|
+
_3[base_1.ChainId.MUM] = {
|
|
1331
1318
|
// https://mumbai.polygonscan.com/token/0x9c3c9283d3e44854697cd22d3faa240cfb032889
|
|
1332
1319
|
address: '0x9c3c9283d3e44854697cd22d3faa240cfb032889',
|
|
1333
1320
|
symbol: 'WMATIC',
|
|
@@ -1337,7 +1324,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1337
1324
|
name: 'WMATIC',
|
|
1338
1325
|
logoURI: 'https://zapper.fi/images/networks/polygon/0x0000000000000000000000000000000000000000.png',
|
|
1339
1326
|
},
|
|
1340
|
-
|
|
1327
|
+
_3[base_1.ChainId.ONET] = {
|
|
1341
1328
|
address: '0x7466d7d0c21fa05f32f5a0fa27e12bdc06348ce2',
|
|
1342
1329
|
symbol: 'WONE',
|
|
1343
1330
|
decimals: 18,
|
|
@@ -1346,7 +1333,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1346
1333
|
name: 'WRAPPED ONE',
|
|
1347
1334
|
logoURI: 'https://d1xrz6ki9z98vb.cloudfront.net/venomswap/tokens/WONE.png',
|
|
1348
1335
|
},
|
|
1349
|
-
|
|
1336
|
+
_3[base_1.ChainId.ARBT] = {
|
|
1350
1337
|
// https://testnet.arbiscan.io/token/0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681
|
|
1351
1338
|
address: '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681',
|
|
1352
1339
|
symbol: 'WETH',
|
|
@@ -1356,7 +1343,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1356
1343
|
name: 'WETH',
|
|
1357
1344
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1358
1345
|
},
|
|
1359
|
-
|
|
1346
|
+
_3[base_1.ChainId.OPTT] = {
|
|
1360
1347
|
// https://kovan-optimistic.etherscan.io/token/0x4200000000000000000000000000000000000006
|
|
1361
1348
|
address: '0x4200000000000000000000000000000000000006',
|
|
1362
1349
|
symbol: 'WETH',
|
|
@@ -1366,7 +1353,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1366
1353
|
name: 'WETH',
|
|
1367
1354
|
logoURI: 'https://zapper.fi/images/networks/ethereum/0x0000000000000000000000000000000000000000.png',
|
|
1368
1355
|
},
|
|
1369
|
-
|
|
1356
|
+
_3[base_1.ChainId.BSCT] = {
|
|
1370
1357
|
// https://testnet.bscscan.com/token/0xae13d989dac2f0debff460ac112a837c89baa7cd
|
|
1371
1358
|
address: '0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd',
|
|
1372
1359
|
symbol: 'WBNB',
|
|
@@ -1376,7 +1363,7 @@ exports.wrappedTokens = (_4 = {},
|
|
|
1376
1363
|
name: 'WBNB',
|
|
1377
1364
|
logoURI: 'https://zapper.fi/images/networks/binance-smart-chain/0x0000000000000000000000000000000000000000.png',
|
|
1378
1365
|
},
|
|
1379
|
-
|
|
1366
|
+
_3);
|
|
1380
1367
|
var findDefaultCoin = function (coinKey) {
|
|
1381
1368
|
var coin = exports.defaultCoins.find(function (coin) { return coin.key === coinKey; });
|
|
1382
1369
|
if (!coin) {
|