@sonarwatch/portfolio-plugins 0.12.16 → 0.12.17

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.12.17](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.16...plugins-0.12.17) (2024-06-05)
6
+
7
+
8
+
5
9
  ## [0.12.16](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.15...plugins-0.12.16) (2024-06-05)
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.12.16",
3
+ "version": "0.12.17",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
7
7
  "@sonarwatch/portfolio-core": "^0.12.0"
8
8
  },
9
9
  "dependencies": {
10
- "@aave/contract-helpers": "^1.18.3",
11
- "@aave/math-utils": "^1.18.3",
10
+ "@aave/contract-helpers": "^1.28.2",
11
+ "@aave/math-utils": "^1.28.2",
12
12
  "@aptos-labs/ts-sdk": "^1.11.0",
13
13
  "@bonfida/spl-name-service": "^1.0.10",
14
14
  "@cosmjs/cosmwasm-stargate": "^0.31.1",
@@ -120,7 +120,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
120
120
  const underlyingAssetPrice = underlyingAssetPrices[j];
121
121
  if (!underlyingAssetPrice)
122
122
  continue;
123
- yield cache.setTokenPriceSource({
123
+ const source = {
124
124
  id: constants_1.platformId,
125
125
  weight: 1,
126
126
  address: aTokenAddress,
@@ -139,7 +139,8 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
139
139
  ],
140
140
  elementName,
141
141
  timestamp: Date.now(),
142
- });
142
+ };
143
+ yield cache.setTokenPriceSource(source);
143
144
  }
144
145
  }
145
146
  });
@@ -1 +1 @@
1
- {"version":3,"file":"lendingPoolsJob.js","sourceRoot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AAa;gBAAE,SAAS;YAE7B,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;YACtD,IAAI,CAAC,oBAAoB;gBAAE,SAAS;YAEpC,MAAM,KAAK,CAAC,mBAAmB,CAAC;gBAC9B,EAAE,EAAE,sBAAU;gBACd,MAAM,EAAE,CAAC;gBACT,OAAO,EAAE,aAAa;gBACtB,SAAS;gBACT,UAAU,EAAV,sBAAU;gBACV,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;gBACnC,KAAK,EAAE,oBAAoB,CAAC,KAAK;gBACjC,WAAW,EAAE;oBACX;wBACE,OAAO,EAAE,gBAAgB,CAAC,eAAe;wBACzC,WAAW,EAAE,CAAC;wBACd,QAAQ,EAAE,gBAAgB,CAAC,QAAQ;wBACnC,SAAS;wBACT,KAAK,EAAE,oBAAoB,CAAC,KAAK;qBAClC;iBACF;gBACD,WAAW;gBACX,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;aACtB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;AACH,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"lendingPoolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/lendingPoolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,wDAAiE;AACjE,4BAA0B;AAC1B,6DAGgC;AAChC,iDAA+D;AAC/D,+DAMoC;AAGpC,2CAAyD;AAEzD,6DAA+D;AAC/D,uCAA+C;AAE/C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,mBAAmB,GAAG,KAAK,CAAC,IAAI,CAAC,0BAAc,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAEvE,KAAK,IAAI,CAAC,GAAG,C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