@sonarwatch/portfolio-plugins 0.8.50 → 0.8.51
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
CHANGED
@@ -2,23 +2,27 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
-
## [0.8.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
## [0.8.49](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.48...plugins-0.8.49) (2023-10-26)
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
## [0.8.48](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.47...plugins-0.8.48) (2023-10-26)
|
14
|
-
|
15
|
-
|
16
|
-
### Reverts
|
17
|
-
|
18
|
-
* Revert "upgrade nx" ([62550ba](https://github.com/sonarwatch/portfolio/commit/62550bab2e60d40b8616465843dad4d3ad612bbd))
|
5
|
+
## [0.8.51](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.50...plugins-0.8.51) (2023-11-01)
|
19
6
|
|
20
7
|
|
21
8
|
|
9
|
+
## [0.8.50](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.49...plugins-0.8.50) (2023-10-27)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [0.8.49](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.48...plugins-0.8.49) (2023-10-26)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## [0.8.48](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.47...plugins-0.8.48) (2023-10-26)
|
18
|
+
|
19
|
+
|
20
|
+
### Reverts
|
21
|
+
|
22
|
+
* Revert "upgrade nx" ([62550ba](https://github.com/sonarwatch/portfolio/commit/62550bab2e60d40b8616465843dad4d3ad612bbd))
|
23
|
+
|
24
|
+
|
25
|
+
|
22
26
|
## [0.8.47](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.46...plugins-0.8.47) (2023-10-24)
|
23
27
|
|
24
28
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.51",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -39,7 +39,7 @@
|
|
39
39
|
"web3-v1": "npm:web3@^1.5.0"
|
40
40
|
},
|
41
41
|
"peerDependencies": {
|
42
|
-
"@sonarwatch/portfolio-core": "0.8.
|
42
|
+
"@sonarwatch/portfolio-core": "0.8.51"
|
43
43
|
},
|
44
44
|
"main": "./src/index.js",
|
45
45
|
"types": "./src/index.d.ts"
|
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
|
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getBalancerPoolsV2(url) {
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
39
|
-
const query = (0, graphql_request_1.gql) `
|
40
|
-
query pools {
|
41
|
-
pools(
|
42
|
-
first: 1000
|
43
|
-
orderBy: totalLiquidity
|
44
|
-
orderDirection: desc
|
45
|
-
where: { totalLiquidity_gt: "500" }
|
46
|
-
) {
|
47
|
-
id
|
48
|
-
address
|
49
|
-
symbol
|
50
|
-
totalLiquidity
|
51
|
-
totalShares
|
52
|
-
tokens {
|
53
|
-
balance
|
54
|
-
decimals
|
55
|
-
symbol
|
56
|
-
address
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
39
|
+
const query = (0, graphql_request_1.gql) `
|
40
|
+
query pools {
|
41
|
+
pools(
|
42
|
+
first: 1000
|
43
|
+
orderBy: totalLiquidity
|
44
|
+
orderDirection: desc
|
45
|
+
where: { totalLiquidity_gt: "500" }
|
46
|
+
) {
|
47
|
+
id
|
48
|
+
address
|
49
|
+
symbol
|
50
|
+
totalLiquidity
|
51
|
+
totalShares
|
52
|
+
tokens {
|
53
|
+
balance
|
54
|
+
decimals
|
55
|
+
symbol
|
56
|
+
address
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
60
|
`;
|
61
61
|
const res = yield (0, graphql_request_1.default)(url, query);
|
62
62
|
const pools = res.pools;
|
@@ -17,7 +17,6 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
|
17
17
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
18
18
|
const constants_1 = require("./constants");
|
19
19
|
const getDecimalsForToken_1 = require("../../utils/misc/getDecimalsForToken");
|
20
|
-
const constants_2 = require("../tokens/constants");
|
21
20
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
21
|
const markets = yield cache.getAllItems({
|
23
22
|
prefix: constants_1.marketsPrefix,
|
@@ -75,7 +74,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
75
74
|
decimals: cDecimals,
|
76
75
|
id: constants_1.platformId,
|
77
76
|
networkId: portfolio_core_1.NetworkId.solana,
|
78
|
-
platformId:
|
77
|
+
platformId: constants_1.platformId,
|
79
78
|
price: cPrice,
|
80
79
|
timestamp: Date.now(),
|
81
80
|
weight: 1,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservesJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/reservesJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAMoC;AACpC,gEAAqC;AACrC,2CAMqB;AAIrB,8EAA2E;
|
1
|
+
{"version":3,"file":"reservesJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/reservesJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAMoC;AACpC,gEAAqC;AACrC,2CAMqB;AAIrB,8EAA2E;AAE3E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,WAAW,C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E,IAAA,yBAAQ,EAAC,UAAU,CAAC;iBAC1B;gBACD,eAAe;gBACf,UAAU,EAAV,sBAAU;gBACV,QAAQ;aACT,CAAC;YAEF,QAAQ,CAAC,IAAI,CACX,KAAK,CAAC,OAAO,CAAC,GAAG,cAAc,IAAI,YAAY,EAAE,EAAE,IAAI,EAAE;gBACvD,MAAM,EAAE,sCAAqB;gBAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;aAC5B,CAAC,CACH,CAAC;SACH;KACF;IACD,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;CACT,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -36,27 +36,27 @@ exports.getPairsV2 = void 0;
|
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getPairsV2(url) {
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
39
|
-
const query = (0, graphql_request_1.gql) `
|
40
|
-
{
|
41
|
-
pairs(
|
42
|
-
orderBy: reserveUSD
|
43
|
-
first: 500
|
44
|
-
orderDirection: desc
|
45
|
-
where: { trackedReserveETH_not: "0" }
|
46
|
-
) {
|
47
|
-
id
|
48
|
-
reserve0
|
49
|
-
reserve1
|
50
|
-
token0 {
|
51
|
-
id
|
52
|
-
decimals
|
53
|
-
}
|
54
|
-
token1 {
|
55
|
-
id
|
56
|
-
decimals
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
39
|
+
const query = (0, graphql_request_1.gql) `
|
40
|
+
{
|
41
|
+
pairs(
|
42
|
+
orderBy: reserveUSD
|
43
|
+
first: 500
|
44
|
+
orderDirection: desc
|
45
|
+
where: { trackedReserveETH_not: "0" }
|
46
|
+
) {
|
47
|
+
id
|
48
|
+
reserve0
|
49
|
+
reserve1
|
50
|
+
token0 {
|
51
|
+
id
|
52
|
+
decimals
|
53
|
+
}
|
54
|
+
token1 {
|
55
|
+
id
|
56
|
+
decimals
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
60
|
`;
|
61
61
|
const res = yield (0, graphql_request_1.default)(url, query);
|
62
62
|
const pairs = res.pairs;
|