@defisaver/automation-sdk 1.2.1 → 1.2.2

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.
@@ -166,6 +166,7 @@ function parseCompoundV3LeverageManagement(position, parseData) {
166
166
  const subData = subDataService.compoundV3LeverageManagementSubData.decode(subStruct.subData);
167
167
  _position.strategyData.decoded.triggerData = triggerData;
168
168
  _position.strategyData.decoded.subData = subData;
169
+ _position.owner = triggerData.owner;
169
170
  const isRepay = [Strategies.Identifiers.Repay, Strategies.Identifiers.EoaRepay].includes(_position.strategy.strategyId);
170
171
  if (isRepay) {
171
172
  _position.specific = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/automation-sdk",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/index.js",
@@ -14,8 +14,7 @@
14
14
  "document": "npx typedoc --out docs/default",
15
15
  "lint": "node_modules/.bin/eslint ./src",
16
16
  "gtc": "node scripts/generateContractTypes.js",
17
- "prepare": "husky install && npm run gtc",
18
- "cpublish": "yarn build && yarn publish"
17
+ "prepare": "husky install && npm run gtc"
19
18
  },
20
19
  "author": "DeFi Saver",
21
20
  "repository": "https://github.com/defisaver/automation-sdk",
@@ -236,7 +236,7 @@ function parseCompoundV3LeverageManagement(position: Position.Automated, parseDa
236
236
 
237
237
  _position.strategyData.decoded.triggerData = triggerData;
238
238
  _position.strategyData.decoded.subData = subData;
239
-
239
+ _position.owner = triggerData.owner;
240
240
  const isRepay = [Strategies.Identifiers.Repay, Strategies.Identifiers.EoaRepay].includes(_position.strategy.strategyId as Strategies.Identifiers);
241
241
 
242
242
  if (isRepay) {
package/umd/index.js CHANGED
@@ -1537,6 +1537,7 @@ function parseCompoundV3LeverageManagement(position, parseData) {
1537
1537
  var subData = _subDataService__WEBPACK_IMPORTED_MODULE_4__.compoundV3LeverageManagementSubData.decode(subStruct.subData);
1538
1538
  _position.strategyData.decoded.triggerData = triggerData;
1539
1539
  _position.strategyData.decoded.subData = subData;
1540
+ _position.owner = triggerData.owner;
1540
1541
  var isRepay = [_types_enums__WEBPACK_IMPORTED_MODULE_2__.Strategies.Identifiers.Repay, _types_enums__WEBPACK_IMPORTED_MODULE_2__.Strategies.Identifiers.EoaRepay].includes(_position.strategy.strategyId);
1541
1542
  if (isRepay) {
1542
1543
  _position.specific = {