@sonarwatch/portfolio-plugins 0.14.120 → 0.14.122

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,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.14.122](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.121...plugins-0.14.122) (2025-02-21)
6
+
7
+
8
+
9
+ ## [0.14.121](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.120...plugins-0.14.121) (2025-02-21)
10
+
11
+
12
+
5
13
  ## [0.14.120](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.119...plugins-0.14.120) (2025-02-21)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.14.120",
3
+ "version": "0.14.122",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
@@ -2,5 +2,5 @@ import { Platform } from '@sonarwatch/portfolio-core';
2
2
  export declare const platformId = "joule";
3
3
  export declare const platform: Platform;
4
4
  export declare const marketsCacheKey = "markets";
5
- export declare const api = "https://app.joule.finance/api/market";
5
+ export declare const api = "https://price-api.joule.finance/api/market";
6
6
  export declare const userPositionMapType = "0x2fe576faa841347a9b1b32c869685deb75a15e3f62dfe37cbd6d52cc403a16f6::pool::UserPositionsMap";
@@ -11,6 +11,6 @@ exports.platform = {
11
11
  defiLlamaId: 'joule-finance', // from https://defillama.com/docs/api
12
12
  };
13
13
  exports.marketsCacheKey = `markets`;
14
- exports.api = 'https://app.joule.finance/api/market';
14
+ exports.api = 'https://price-api.joule.finance/api/market';
15
15
  exports.userPositionMapType = '0x2fe576faa841347a9b1b32c869685deb75a15e3f62dfe37cbd6d52cc403a16f6::pool::UserPositionsMap';
16
16
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/joule/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,eAAe,EAAE,sCAAsC;CACrE,CAAC;AAEW,QAAA,eAAe,GAAG,SAAS,CAAC;AAC5B,QAAA,GAAG,GAAG,sCAAsC,CAAC;AAC7C,QAAA,mBAAmB,GAC9B,4FAA4F,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/joule/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,eAAe,EAAE,sCAAsC;CACrE,CAAC;AAEW,QAAA,eAAe,GAAG,SAAS,CAAC;AAC5B,QAAA,GAAG,GAAG,4CAA4C,CAAC;AACnD,QAAA,mBAAmB,GAC9B,4FAA4F,CAAC"}
@@ -32,7 +32,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
32
32
  name: position.value.position_name,
33
33
  });
34
34
  for (const lendingPos of position.value.lend_positions.data) {
35
- const market = markets.find((m) => lendingPos.key.includes(m.assetsName));
35
+ const market = markets.find((m) => lendingPos.key.includes(m.asset.assetName));
36
36
  element.addSuppliedAsset({
37
37
  address: lendingPos.key,
38
38
  amount: Number(lendingPos.value),
@@ -46,7 +46,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
46
46
  ]);
47
47
  }
48
48
  for (const borrowPos of position.value.borrow_positions.data) {
49
- const market = markets.find((m) => borrowPos.key.includes(m.assetsName));
49
+ const market = markets.find((m) => borrowPos.key.includes(m.asset.assetName));
50
50
  element.addBorrowedAsset({
51
51
  address: borrowPos.key,
52
52
  amount: Number(borrowPos.value.borrow_amount),
@@ -1 +1 @@
1
- {"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/joule/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAiE;AAGjE,2CAA+E;AAE/E,6CAAuD;AACvD,iDAAqD;AACrD,gFAA6E;AAC7E,kEAA+D;AAE/D,MAAM,WAAW,GAAG,IAAI,6BAAa,CAAW,2BAAe,EAAE;IAC/D,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,KAAK;CAC3B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;IAEhC,MAAM,WAAW,GAAG,MAAM,IAAA,0BAAkB,EAC1C,MAAM,EACN,KAAK,EACL,+BAAmB,CACpB,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAEjD,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAE5B,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,KAAK,EAAE,sBAAU,CAAC,CAAC;IAElE,KAAK,MAAM,QAAQ,IAAI,WAAW,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;QACtD,MAAM,OAAO,GAAG,QAAQ,CAAC,oBAAoB,CAAC;YAC5C,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa;SACnC,CAAC,CAAC;QACH,KAAK,MAAM,UAAU,IAAI,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CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -19,7 +19,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
19
19
  const markets = yield axios_1.default.get(constants_1.api);
20
20
  if (!markets.data)
21
21
  return;
22
- yield cache.setItem(constants_1.marketsCacheKey, markets.data.res, {
22
+ yield cache.setItem(constants_1.marketsCacheKey, markets.data.data, {
23
23
  prefix: constants_1.platformId,
24
24
  networkId: portfolio_core_1.NetworkId.aptos,
25
25
  });
@@ -1 +1 @@
1
- {"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/joule/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAG7C,2CAA+D;AAG/D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,OAAO,GAAmC,MAAM,eAAK,CAAC,GAAG,CAAC,eAAG,CAAC,CAAC;IAErE,IAAI,CAAC,OAAO,CAAC,IAAI;QAAE,OAAO;IAE1B,MAAM,KAAK,CAAC,OAAO,CAAC,2BAAe,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE;QACrD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,KAAK;KAC3B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/joule/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAG7C,2CAA+D;AAG/D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,OAAO,GAAmC,MAAM,eAAK,CAAC,GAAG,CAAC,eAAG,CAAC,CAAC;IAErE,IAAI,CAAC,OAAO,CAAC,IAAI;QAAE,OAAO;IAE1B,MAAM,KAAK,CAAC,OAAO,CAAC,2BAAe,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE;QACtD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,KAAK;KAC3B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -38,13 +38,45 @@ export type LendPositionsDatum = {
38
38
  value: string;
39
39
  };
40
40
  export type MarketsResponse = {
41
- res: Market[];
41
+ data: MarketDatum[];
42
+ status: string;
43
+ timestamp: string;
42
44
  };
43
- export type Market = {
44
- assetsName: string;
45
+ export type MarketDatum = {
46
+ asset: {
47
+ assetName: string;
48
+ pythId: string;
49
+ resource?: string;
50
+ efficiencyMode: number;
51
+ efficiencyLtv: number;
52
+ ltv: number;
53
+ icon: string;
54
+ decimals: number;
55
+ liquidationFactor: number;
56
+ efficientLiquidationFactor: number;
57
+ type: string;
58
+ provider: string;
59
+ displayName: string;
60
+ isFungible: boolean;
61
+ coingeckoId: string;
62
+ faAddress?: string;
63
+ };
45
64
  ltv: string;
46
65
  marketSize: string;
47
66
  totalBorrowed: string;
48
67
  depositApy: number;
49
68
  borrowApy: number;
69
+ priceInfo: {
70
+ price: number;
71
+ currency: string;
72
+ tokenAddress: string;
73
+ chain: string;
74
+ timestamp: string;
75
+ cached: boolean;
76
+ };
77
+ extraAPY: {
78
+ depositAPY: string;
79
+ borrowAPY: string;
80
+ stakingAPY: string;
81
+ };
50
82
  };
@@ -1,3 +1,3 @@
1
1
  import { Job } from '../../Job';
2
- declare const job: Job;
3
- export default job;
2
+ import { StgConfig } from './types';
3
+ export declare function getFarmsJob(config: StgConfig): Job;
@@ -9,13 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getFarmsJob = void 0;
12
13
  const viem_1 = require("viem");
13
14
  const clients_1 = require("../../utils/clients");
14
15
  const abis_1 = require("./abis");
15
16
  const constants_1 = require("./constants");
16
- const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
17
- for (const info of constants_1.stargateNetworksConfigs) {
18
- const { farmsContract: address, networkId } = info;
17
+ function getFarmsJob(config) {
18
+ const { farmsContract: address, networkId } = config;
19
+ const executor = (cache) => __awaiter(this, void 0, void 0, function* () {
19
20
  const client = (0, clients_1.getEvmClient)(networkId);
20
21
  const contract = {
21
22
  address,
@@ -38,12 +39,13 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
38
39
  prefix: constants_1.platformId,
39
40
  networkId,
40
41
  });
41
- }
42
- });
43
- const job = {
44
- id: `${constants_1.platformId}-farms`,
45
- executor,
46
- labels: ['normal'],
47
- };
48
- exports.default = job;
42
+ });
43
+ const job = {
44
+ id: `${constants_1.platformId}-${networkId}-farms`,
45
+ executor,
46
+ labels: ['normal', 'evm', networkId],
47
+ };
48
+ return job;
49
+ }
50
+ exports.getFarmsJob = getFarmsJob;
49
51
  //# sourceMappingURL=farmsJob.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"farmsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/farmsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+BAAmC;AAGnC,iDAAmD;AACnD,iCAAoD;AACpD,2CAA4E;AAE5E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE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,EAAE,KAAK,EAAE;YACnC,MAAM,EAAE,sBAAU;YAClB,SAAS;SACV,CAAC,CAAC;IACL,CAAC,CAAA,CAAC;IAEF,MAAM,GAAG,GAAQ;QACf,EAAE,EAAE,GAAG,sBAAU,IAAI,SAAS,QAAQ;QACtC,QAAQ;QACR,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,CAAC;KACrC,CAAC;IACF,OAAO,GAAG,CAAC;AACb,CAAC;AArCD,kCAqCC"}
@@ -1,18 +1,15 @@
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.platforms = exports.fetchers = exports.jobs = void 0;
7
4
  const gePoolPositionsFetcher_1 = require("./gePoolPositionsFetcher");
8
5
  const getPoolsJob_1 = require("./getPoolsJob");
9
- const farmsJob_1 = __importDefault(require("./farmsJob"));
6
+ const farmsJob_1 = require("./farmsJob");
10
7
  const constants_1 = require("./constants");
11
8
  const getFarmPositionsFetcher_1 = require("./getFarmPositionsFetcher");
12
9
  const getVoteTokensFetcher_1 = require("./getVoteTokensFetcher");
13
10
  exports.jobs = [
14
11
  ...constants_1.stargateNetworksConfigs.map((config) => (0, getPoolsJob_1.getPoolsJob)(config)),
15
- farmsJob_1.default,
12
+ ...constants_1.stargateNetworksConfigs.map((config) => (0, farmsJob_1.getFarmsJob)(config)),
16
13
  ];
17
14
  exports.fetchers = [
18
15
  ...constants_1.stargateNetworksConfigs
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/index.ts"],"names":[],"mappings":";;;;;;AAGA,qEAAoE;AACpE,+CAA4C;AAC5C,0DAAkC;AAClC,2CAAgE;AAChE,uEAAqE;AACrE,iEAA8D;AAEjD,QAAA,IAAI,GAAU;IACzB,GAAG,mCAAuB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC;IAC/D,kBAAQ;CACT,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,GAAG,mCAAuB;SACvB,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;QACf,IAAA,iDAAwB,EAAC,MAAM,CAAC;QAChC,IAAA,kDAAwB,EAAC,MAAM,CAAC;QAChC,IAAA,2CAAoB,EAAC,MAAM,CAAC;KAC7B,CAAC;SACD,IAAI,EAAE;CACV,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/index.ts"],"names":[],"mappings":";;;AAGA,qEAAoE;AACpE,+CAA4C;AAC5C,yCAAyC;AACzC,2CAAgE;AAChE,uEAAqE;AACrE,iEAA8D;AAEjD,QAAA,IAAI,GAAU;IACzB,GAAG,mCAAuB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC;IAC/D,GAAG,mCAAuB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAA,sBAAW,EAAC,MAAM,CAAC,CAAC;CAChE,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,GAAG,mCAAuB;SACvB,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;QACf,IAAA,iDAAwB,EAAC,MAAM,CAAC;QAChC,IAAA,kDAAwB,EAAC,MAAM,CAAC;QAChC,IAAA,2CAAoB,EAAC,MAAM,CAAC;KAC7B,CAAC;SACD,IAAI,EAAE;CACV,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}