@sonarwatch/portfolio-plugins 0.11.76 → 0.11.78

Sign up to get free protection for your applications and to get access to all the features.
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.11.78](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.77...plugins-0.11.78) (2024-02-14)
6
+
7
+
8
+
9
+ ## [0.11.77](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.76...plugins-0.11.77) (2024-02-14)
10
+
11
+
12
+
5
13
  ## [0.11.76](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.75...plugins-0.11.76) (2024-02-14)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.11.76",
3
+ "version": "0.11.78",
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.76"
44
+ "@sonarwatch/portfolio-core": "0.11.78"
45
45
  },
46
46
  "main": "./src/index.js",
47
47
  "types": "./src/index.d.ts"
package/src/index.js CHANGED
@@ -277,9 +277,9 @@ exports.fetchers = [
277
277
  ...parcl_1.fetchers,
278
278
  ...pyth_1.fetchers,
279
279
  ...circuit_1.fetchers,
280
- // ...ariesFetchers,
281
- // ...flashFetchers,
282
- // ...bonkrewardsFetchers,
280
+ ...aries_1.fetchers,
281
+ ...flash_1.fetchers,
282
+ ...bonkrewards_1.fetchers,
283
283
  ];
284
284
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
285
285
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.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,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,wBAAoB;IACvB,GAAG,sBAAmB;IACtB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,6BAAyB;IAC5B,GAAG,iBAAc;IACjB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,sBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,qBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,cAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,oBAAoB;IACpB,oBAAoB;IACpB,0BAA0B;CAC3B,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AAC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G,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,wBAAoB;IACvB,GAAG,sBAAmB;IACtB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,6BAAyB;IAC5B,GAAG,iBAAc;IACjB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,sBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,qBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,cAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,sBAAmB;CACvB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
@@ -81,26 +81,32 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
81
81
  }
82
82
  }
83
83
  if (season2Rewards) {
84
- const stakingRewardAmount = new bignumber_js_1.default(season2Rewards.staker.mSOLRewards);
85
- if (!stakingRewardAmount.isZero()) {
86
- season2Assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.mndeMint, stakingRewardAmount.dividedBy(Math.pow(10, decimals)).toNumber(), portfolio_core_1.NetworkId.solana, mndeTokenPrice)), { attributes: {
87
- lockedUntil: season2Unlock.getTime(),
88
- tags: ['Staking'],
89
- } }));
84
+ if (season2Rewards.staker.mSOLRewards) {
85
+ const stakingRewardAmount = new bignumber_js_1.default(season2Rewards.staker.mSOLRewards);
86
+ if (!stakingRewardAmount.isZero()) {
87
+ season2Assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.mndeMint, stakingRewardAmount.dividedBy(Math.pow(10, decimals)).toNumber(), portfolio_core_1.NetworkId.solana, mndeTokenPrice)), { attributes: {
88
+ lockedUntil: season2Unlock.getTime(),
89
+ tags: ['Staking'],
90
+ } }));
91
+ }
90
92
  }
91
- const governorRewardAmount = new bignumber_js_1.default(season2Rewards.governor.vemndeDelStratVotesRewards);
92
- if (!governorRewardAmount.isZero()) {
93
- season2Assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.mndeMint, governorRewardAmount.dividedBy(Math.pow(10, decimals)).toNumber(), portfolio_core_1.NetworkId.solana, mndeTokenPrice)), { attributes: {
94
- lockedUntil: season2Unlock.getTime(),
95
- tags: ['Governor'],
96
- } }));
93
+ if (season2Rewards.governor.vemndeDirectedStakeVotesRewards) {
94
+ const governorRewardAmount = new bignumber_js_1.default(season2Rewards.governor.vemndeDirectedStakeVotesRewards);
95
+ if (!governorRewardAmount.isZero()) {
96
+ season2Assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.mndeMint, governorRewardAmount.dividedBy(Math.pow(10, decimals)).toNumber(), portfolio_core_1.NetworkId.solana, mndeTokenPrice)), { attributes: {
97
+ lockedUntil: season2Unlock.getTime(),
98
+ tags: ['Governor'],
99
+ } }));
100
+ }
97
101
  }
98
- const validatorRewardAmount = new bignumber_js_1.default(season2Rewards.validator.algoScoreRewards);
99
- if (!validatorRewardAmount.isZero()) {
100
- season2Assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.mndeMint, validatorRewardAmount.dividedBy(Math.pow(10, decimals)).toNumber(), portfolio_core_1.NetworkId.solana, mndeTokenPrice)), { attributes: {
101
- lockedUntil: season2Unlock.getTime(),
102
- tags: ['Validator'],
103
- } }));
102
+ if (season2Rewards.validator.algoScoreRewards) {
103
+ const validatorRewardAmount = new bignumber_js_1.default(season2Rewards.validator.algoScoreRewards);
104
+ if (!validatorRewardAmount.isZero()) {
105
+ season2Assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.mndeMint, validatorRewardAmount.dividedBy(Math.pow(10, decimals)).toNumber(), portfolio_core_1.NetworkId.solana, mndeTokenPrice)), { attributes: {
106
+ lockedUntil: season2Unlock.getTime(),
107
+ tags: ['Validator'],
108
+ } }));
109
+ }
104
110
  }
105
111
  }
106
112
  if (season2Assets.length > 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"rewardsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/marinade/rewardsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,kDAA6C;AAC7C,gEAAqC;AAGrC,2CAOqB;AAErB,qGAA6E;AAC7E,iDAAsD;AACtD,uCAA8C;AAC9C,uCAAwC;AACxC,kFAA+E;AAE/E,MAAM,QAAQ,GAAG,CAAC,CAAC;AAEnB,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAC7E,IAAI,CAAC,cAAc;QAAE,OAAO,EAAE,CAAC;IAC/B,MAAM,aAAa,GAAG,IAAI,IAAI,CAAC,aAAa,C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,EACvB,oBAAQ,EACR,qBAAqB,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC1D,0BAAS,CAAC,MAAM,EAChB,cAAc,CACf,KACD,UAAU,EAAE;oBACV,WAAW,EAAE,aAAa,CAAC,OAAO,EAAE;oBACpC,IAAI,EAAE,CAAC,WAAW,CAAC;iBACpB,IACD,CAAC;QACL,CAAC;IACH,CAAC;IACD,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC7B,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE;YAC/B,KAAK,EAAE,IAAA,+BAAc,EAAC,aAAa,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SACjE,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"rewardsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/marinade/rewardsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,kDAA6C;AAC7C,gEAAqC;AAGrC,2CAOqB;AAErB,qGAA6E;AAC7E,iDAAsD;AACtD,uCAA8C;AAC9C,uCAAwC;AACxC,kFAA+E;AAE/E,MAAM,QAAQ,GAAG,CAAC,CAAC;AAEnB,MAAM,QAAQ,G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,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -29,11 +29,8 @@ export type Season2Response = {
29
29
  algoScoreRewards: string;
30
30
  };
31
31
  governor: {
32
- vemndeDelStratVotesBalance: string;
33
- vemndeDelStratVotesRewards: string;
34
- };
35
- redelegator: {
36
- stakeAccountRedelegationBalance: string;
37
- stakeAccountRedelegationRewards: string;
32
+ vemndeDirectedStakeVotesBalance: string;
33
+ vemndeDirectedStakeVotesRewards: string;
34
+ latestSolPerDirectedVemnde: string;
38
35
  };
39
36
  };