@sonarwatch/portfolio-plugins 0.11.95 → 0.11.96
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.11.96](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.95...plugins-0.11.96) (2024-03-05)
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
## [0.11.95](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.94...plugins-0.11.95) (2024-03-05)
|
6
10
|
|
7
11
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.11.
|
3
|
+
"version": "0.11.96",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"web3-v1": "npm:web3@^1.5.0"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
|
-
"@sonarwatch/portfolio-core": "0.11.
|
44
|
+
"@sonarwatch/portfolio-core": "0.11.96"
|
45
45
|
},
|
46
46
|
"main": "./src/index.js",
|
47
47
|
"types": "./src/index.d.ts"
|
@@ -14,6 +14,7 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
|
14
14
|
const clients_1 = require("../../utils/clients");
|
15
15
|
const solana_1 = require("../../utils/solana");
|
16
16
|
const constants_1 = require("./constants");
|
17
|
+
const constants_2 = require("../tokens/constants");
|
17
18
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
18
19
|
const client = (0, clients_1.getClientSolana)();
|
19
20
|
const vaultsAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, solana_1.tokenAccountStruct, constants_1.xStakingConfigs.map((conf) => new web3_js_1.PublicKey(conf.vault)));
|
@@ -33,7 +34,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
34
|
decimals: config.xDecimals,
|
34
35
|
id: config.vault,
|
35
36
|
networkId: portfolio_core_1.NetworkId.solana,
|
36
|
-
platformId:
|
37
|
+
platformId: constants_2.walletTokensPlatform.id,
|
37
38
|
price: xPrice.toNumber(),
|
38
39
|
timestamp: Date.now(),
|
39
40
|
weight: 1,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/stakingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA4C;AAC5C,+DAAuD;AAGvD,iDAAsD;AACtD,+CAI4B;AAC5B,2CAA8C;
|
1
|
+
{"version":3,"file":"stakingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/stakingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA4C;AAC5C,+DAAuD;AAGvD,iDAAsD;AACtD,+CAI4B;AAC5B,2CAA8C;AAC9C,mDAA2D;AAE3D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,MAAM,IAAA,sCAA6B,EACxD,MAAM,EACN,2BAAkB,EAClB,2BAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,mBAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CACzD,CAAC;IAEF,MAAM,WAAW,GAAG,MAAM,IAAA,sCAA6B,EACrD,MAAM,EACN,0BAAiB,EACjB,2BAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,mBAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CACzD,CAAC;IAEF,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACrD,2BAAe,CAAC,GAAG,CAAC,CAAC,IAAI,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