@sonarwatch/portfolio-plugins 0.12.100 → 0.12.102
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/Cache.js +3 -3
- package/src/Cache.js.map +1 -1
- package/src/plugins/native-stake/solana/solanaValidatorsJob.js +1 -1
- package/src/plugins/native-stake/solana/solanaValidatorsJob.js.map +1 -1
- package/src/plugins/tokens/getTokenListsJob.js +13 -10
- package/src/plugins/tokens/getTokenListsJob.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.102](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.101...plugins-0.12.102) (2024-07-28)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.12.101](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.100...plugins-0.12.101) (2024-07-28)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.12.100](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.99...plugins-0.12.100) (2024-07-28)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
package/src/Cache.js
CHANGED
@@ -259,10 +259,10 @@ function getDriverFromCacheConfig(cacheConfig) {
|
|
259
259
|
tls: cacheConfig.params.tls ? {} : undefined,
|
260
260
|
db: cacheConfig.params.db,
|
261
261
|
ttl: cacheConfig.params.ttl,
|
262
|
-
connectTimeout:
|
262
|
+
connectTimeout: 60000,
|
263
263
|
keepAlive: 10000,
|
264
|
-
retryStrategy: (
|
265
|
-
const delay =
|
264
|
+
retryStrategy: () => {
|
265
|
+
const delay = 2000;
|
266
266
|
// eslint-disable-next-line no-console
|
267
267
|
console.error(`PortfolioCache redis reconnecting in ${delay} ms...`);
|
268
268
|
return delay;
|
package/src/Cache.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Cache.js","sourceRoot":"","sources":["../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gBACL,IAAI,EAAE,OAAO;gBACb,MAAM,EAAE;oBACN,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,gBAAgB;oBAC9D,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,KAAK,MAAM;oBACrD,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,GAAG,EAAE,EAAE,CAAC;oBAC7D,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;wBACxC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC;wBACrD,CAAC,CAAC,SAAS;iBACd;aACF,CAAC;QACJ,KAAK,MAAM;YACT,OAAO;gBACL,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE;oBACN,IAAI,EACF,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;wBACrC,6DAA6D;oBAC/D,OAAO,EAAE;wBACP,aAAa,EAAE,UACb,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,IAAI,kCAC7C,EAAE;qBACH;iBACF;aACF,CAAC;QACJ;YACE,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,EAAE;aACX,CAAC;IACN,CAAC;AACH,CAAC;AAlED,wCAkEC;AAED,SAAgB,QAAQ;IACtB,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,OAAO,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC;AAHD,4BAGC"}
|
@@ -19,7 +19,7 @@ const constants_2 = require("./constants");
|
|
19
19
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
20
20
|
const res = yield axios_1.default
|
21
21
|
.get(constants_2.stakewizApi, {
|
22
|
-
timeout:
|
22
|
+
timeout: 10000,
|
23
23
|
})
|
24
24
|
.catch((err) => {
|
25
25
|
throw Error(`STAKEWIZ_API ERR: ${err}`);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solanaValidatorsJob.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/solanaValidatorsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAG7C,4CAAyD;AACzD,2CAA0C;AAG1C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAgD,uBAAW,EAAE;QAC/D,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"solanaValidatorsJob.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/solanaValidatorsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAG7C,4CAAyD;AACzD,2CAA0C;AAG1C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAgD,uBAAW,EAAE;QAC/D,OAAO,EAAE,KAAK;KACf,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,KAAK,CAAC,qBAAqB,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,GAAG,CAAC,IAAI;QAAE,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAEnD,MAAM,UAAU,GAAgB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACnD,KAAK,EAAE,CAAC,CAAC,aAAa;QACtB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,QAAQ,EAAE,CAAC,CAAC,KAAK;KAClB,CAAC,CAAC,CAAC;IAEJ,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,UAAU,EAAE;QAC7C,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,oBAAoB;IACrC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -32,16 +32,19 @@ function getTokenListsJob(networkId) {
|
|
32
32
|
!(0, helpers_1.isLatestVersion)(cachedTokenList.version, tokenList.data.version)) {
|
33
33
|
return;
|
34
34
|
}
|
35
|
-
for (let i = 0; i < tokenList.data.tokens.length; i++) {
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
35
|
+
// for (let i = 0; i < tokenList.data.tokens.length; i++) {
|
36
|
+
// const token = tokenList.data.tokens[i];
|
37
|
+
// const address = formatTokenAddress(token.address, networkId);
|
38
|
+
// const fToken = {
|
39
|
+
// ...token,
|
40
|
+
// address,
|
41
|
+
// };
|
42
|
+
// await cache.setItem(address, fToken, {
|
43
|
+
// prefix: tokenListsDetailsPrefix,
|
44
|
+
// networkId,
|
45
|
+
// ttl,
|
46
|
+
// });
|
47
|
+
// }
|
45
48
|
yield cache.setItem(networkId, tokenList.data, {
|
46
49
|
prefix: constants_1.tokenListsPrefix,
|
47
50
|
ttl,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getTokenListsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tokens/getTokenListsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"getTokenListsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tokens/getTokenListsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,kDAA6C;AAG7C,2CAA+C;AAC/C,uCAA4C;AAE5C,MAAM,GAAG,GAAG,IAA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