@sonarwatch/portfolio-plugins 0.12.189 → 0.13.0
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/Fetcher.js +2 -0
- package/src/Fetcher.js.map +1 -1
- package/src/plugins/aave/index.js +4 -2
- package/src/plugins/aave/index.js.map +1 -1
- package/src/plugins/clone/index.js +8 -7
- package/src/plugins/clone/index.js.map +1 -1
- package/src/plugins/deepbook/constants.js +2 -1
- package/src/plugins/deepbook/constants.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.13.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.190...plugins-0.13.0) (2024-10-14)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.12.190](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.189...plugins-0.12.190) (2024-10-14)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.12.189](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.188...plugins-0.12.189) (2024-10-14)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
package/src/Fetcher.js
CHANGED
@@ -22,6 +22,7 @@ function runFetchers(owner, addressSystem, fetchers, cache) {
|
|
22
22
|
const isFetchersValids = fetchers.every((f) => portfolio_core_1.networks[f.networkId].addressSystem === addressSystem);
|
23
23
|
if (!isFetchersValids)
|
24
24
|
throw new Error(`Not all fetchers have the right address system: ${addressSystem}`);
|
25
|
+
const startDate = Date.now();
|
25
26
|
const promises = fetchers.map((f) => runFetcher(fOwner, f, cache));
|
26
27
|
const result = yield Promise.allSettled(promises);
|
27
28
|
const fReports = [];
|
@@ -55,6 +56,7 @@ function runFetchers(owner, addressSystem, fetchers, cache) {
|
|
55
56
|
fetcherReports: fReports,
|
56
57
|
value: (0, portfolio_core_1.getUsdValueSum)(elements.map((e) => e.value)),
|
57
58
|
elements,
|
59
|
+
duration: Date.now() - startDate,
|
58
60
|
};
|
59
61
|
});
|
60
62
|
}
|
package/src/Fetcher.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Fetcher.js","sourceRoot":"","sources":["../../../../packages/plugins/src/Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAYoC;AAEpC,iFAAyD;AAEzD,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAahC,SAAsB,WAAW,CAC/B,KAAa,EACb,aAAgC,EAChC,QAAmB,EACnB,KAAY;;QAEZ,MAAM,MAAM,GAAG,IAAA,8BAAa,EAAC,KAAK,EAAE,aAAa,CAAC,CAAC;QACnD,MAAM,gBAAgB,GAAG,QAAQ,CAAC,KAAK,CACrC,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,aAAa,KAAK,aAAa,CAC7D,CAAC;QACF,IAAI,CAAC,gBAAgB;YACnB,MAAM,IAAI,KAAK,CACb,mDAAmD,aAAa,EAAE,CACnE,CAAC;QAEJ,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAElD,MAAM,QAAQ,GAAoB,EAAE,CAAC;QACrC,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;YAC3C,IAAI,OAAsB,CAAC;YAC3B,IAAI,CAAC,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;gBAC7B,OAAO,GAAG;oBACR,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;oBACtB,MAAM,EAAE,WAAW;oBACnB,QAAQ,EAAE,CAAC,CAA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,SAAS;YAChC,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,qCAAoB,EAAC,CAAC,CAAC,CAAC;SACvD,CAAC,CACH,CAAC;QACF,OAAO,IAAA,wBAAc,EACnB,cAAc,EACd,iBAAiB,EACjB,sBAAsB,OAAO,CAAC,EAAE,EAAE,CACnC,CAAC;IACJ,CAAC;CAAA;AArBD,gCAqBC"}
|
@@ -5,14 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.fetchers = exports.jobs = exports.services = exports.platforms = void 0;
|
7
7
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
8
|
-
|
8
|
+
// import lendingPoolsJob from './lendingPoolsJob';
|
9
9
|
const getLendingFetcherExecutor_1 = __importDefault(require("./getLendingFetcherExecutor"));
|
10
10
|
const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
|
11
11
|
const constants_1 = require("./constants");
|
12
12
|
const services_1 = require("./services");
|
13
13
|
exports.platforms = [constants_1.platform];
|
14
14
|
exports.services = [services_1.lendingV2, services_1.lendingV3];
|
15
|
-
exports.jobs = [
|
15
|
+
exports.jobs = [
|
16
|
+
// lendingPoolsJob,
|
17
|
+
];
|
16
18
|
exports.fetchers = [
|
17
19
|
{
|
18
20
|
id: `${constants_1.platformId}-${portfolio_core_1.NetworkId.ethereum}-lending`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAA0E;AAG1E,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAA0E;AAG1E,mDAAmD;AACnD,4FAAoE;AACpE,sEAA8C;AAC9C,2CAAmD;AACnD,yCAAkD;AAErC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc,CAAC,oBAAS,EAAE,oBAAS,CAAC,CAAC;AAC7C,QAAA,IAAI,GAAU;AACzB,mBAAmB;CACpB,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC;QACE,EAAE,EAAE,GAAG,sBAAU,IAAI,0BAAS,CAAC,QAAQ,UAAU;QACjD,SAAS,EAAE,0BAAS,CAAC,QAAQ;QAC7B,QAAQ,EAAE,IAAA,mCAAyB,EAAC,0BAAS,CAAC,QAAQ,CAAC;KACxD;IACD;QACE,EAAE,EAAE,GAAG,sBAAU,IAAI,0BAAS,CAAC,OAAO,UAAU;QAChD,SAAS,EAAE,0BAAS,CAAC,OAAO;QAC5B,QAAQ,EAAE,IAAA,mCAAyB,EAAC,0BAAS,CAAC,OAAO,CAAC;KACvD;IACD;QACE,EAAE,EAAE,GAAG,sBAAU,IAAI,0BAAS,CAAC,SAAS,UAAU;QAClD,SAAS,EAAE,0BAAS,CAAC,SAAS;QAC9B,QAAQ,EAAE,IAAA,mCAAyB,EAAC,0BAAS,CAAC,SAAS,CAAC;KACzD;IACD,wBAAc;CACf,CAAC"}
|
@@ -1,13 +1,14 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
4
|
const constants_1 = require("./constants");
|
8
|
-
|
9
|
-
|
5
|
+
// import depositsFetcher from './depositsFetcher';
|
6
|
+
// import poolsJob from './poolsJob';
|
10
7
|
exports.platforms = [constants_1.platform];
|
11
|
-
exports.jobs = [
|
12
|
-
|
8
|
+
exports.jobs = [
|
9
|
+
// poolsJob,
|
10
|
+
];
|
11
|
+
exports.fetchers = [
|
12
|
+
// depositsFetcher,
|
13
|
+
];
|
13
14
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/clone/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/clone/index.ts"],"names":[],"mappings":";;;AAGA,2CAAuC;AACvC,mDAAmD;AACnD,qCAAqC;AAExB,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU;AACzB,YAAY;CACb,CAAC;AACW,QAAA,QAAQ,GAAc;AACjC,mBAAmB;CACpB,CAAC"}
|
@@ -12,11 +12,12 @@ exports.platform = {
|
|
12
12
|
};
|
13
13
|
exports.airdropStatics = {
|
14
14
|
emitterLink: 'https://deepbook.tech',
|
15
|
+
claimLink: 'https://claim.deepbook.tech/',
|
15
16
|
emitterName: 'DeepBook',
|
16
17
|
id: `${exports.platformId}-token-launch`,
|
17
18
|
image: 'https://sonar.watch/img/platforms/deepbook.webp',
|
18
19
|
claimEnd: undefined,
|
19
|
-
claimStart:
|
20
|
+
claimStart: 1728907200000,
|
20
21
|
};
|
21
22
|
exports.deepMint = '0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP';
|
22
23
|
exports.deepDecimals = 6;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,UAAU,EAAE,sCAAsC;CAChE,CAAC;AACW,QAAA,cAAc,GAAmB;IAC5C,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE,UAAU;IACvB,EAAE,EAAE,GAAG,kBAAU,eAAe;IAChC,KAAK,EAAE,iDAAiD;IACxD,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,UAAU,EAAE,sCAAsC;CAChE,CAAC;AACW,QAAA,cAAc,GAAmB;IAC5C,WAAW,EAAE,uBAAuB;IACpC,SAAS,EAAE,8BAA8B;IACzC,WAAW,EAAE,UAAU;IACvB,EAAE,EAAE,GAAG,kBAAU,eAAe;IAChC,KAAK,EAAE,iDAAiD;IACxD,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,aAAa;CAC1B,CAAC;AAEW,QAAA,QAAQ,GACnB,gFAAgF,CAAC;AACtE,QAAA,YAAY,GAAG,CAAC,CAAC;AAEjB,QAAA,UAAU,GAAG,QAAQ,CAAC;AAEtB,QAAA,WAAW,GAAG,SAAS,CAAC;AAExB,QAAA,aAAa,GAAG,OAAO,CAAC"}
|