@defisaver/sdk 1.0.52 → 1.0.54

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.
@@ -30,7 +30,7 @@ export class CurveUsdSelfLiquidateAction extends Action {
30
30
  getAssetsToApprove() {
31
31
  return __awaiter(this, void 0, void 0, function* () {
32
32
  return [{
33
- owner: this.args[1],
33
+ owner: this.args[2],
34
34
  asset: getAssetInfo('crvUSD').address,
35
35
  }];
36
36
  });
@@ -40,9 +40,9 @@ export class MakerBoostCompositeAction extends Action {
40
40
  this.args[0],
41
41
  this.args[1],
42
42
  this.args[4],
43
- this.args[5][0],
44
- this.args[5][1],
45
- this.args[5][2],
43
+ this.args[7][0],
44
+ this.args[7][1],
45
+ this.args[7][2],
46
46
  ];
47
47
  }
48
48
  }
@@ -40,9 +40,9 @@ export class MakerRepayCompositeAction extends Action {
40
40
  this.args[0],
41
41
  this.args[1],
42
42
  this.args[4],
43
- this.args[5][0],
44
- this.args[5][1],
45
- this.args[5][2],
43
+ this.args[7][0],
44
+ this.args[7][1],
45
+ this.args[7][2],
46
46
  ];
47
47
  }
48
48
  }
@@ -531,6 +531,7 @@ export declare const actionAddresses: {
531
531
  UnwrapEth: string;
532
532
  SendToken: string;
533
533
  PullToken: string;
534
+ TokenBalance: string;
534
535
  FLAaveV3: string;
535
536
  FLBalancer: string;
536
537
  FLUniV3: string;
@@ -554,7 +555,6 @@ export declare const actionAddresses: {
554
555
  SumInputs?: undefined;
555
556
  SubInputs?: undefined;
556
557
  ChangeProxyOwner?: undefined;
557
- TokenBalance?: undefined;
558
558
  AutomationV2Unsub?: undefined;
559
559
  SendTokenAndUnwrap?: undefined;
560
560
  ToggleSub?: undefined;
@@ -279,6 +279,7 @@ export const actionAddresses = {
279
279
  UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
280
280
  SendToken: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
281
281
  PullToken: '0x5B0B7E38C2a8e46CfAe13c360BC5927570BeEe94',
282
+ TokenBalance: '0xc44bcE580B1b3339fE9272D3bC3d6566083ea59C',
282
283
  // Flashloan
283
284
  FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
284
285
  FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
@@ -542,6 +542,7 @@ declare const actionAddressesAllChains: {
542
542
  UnwrapEth: string;
543
543
  SendToken: string;
544
544
  PullToken: string;
545
+ TokenBalance: string;
545
546
  FLAaveV3: string;
546
547
  FLBalancer: string;
547
548
  FLUniV3: string;
@@ -565,7 +566,6 @@ declare const actionAddressesAllChains: {
565
566
  SumInputs?: undefined;
566
567
  SubInputs?: undefined;
567
568
  ChangeProxyOwner?: undefined;
568
- TokenBalance?: undefined;
569
569
  AutomationV2Unsub?: undefined;
570
570
  SendTokenAndUnwrap?: undefined;
571
571
  ToggleSub?: undefined;
@@ -1244,6 +1244,7 @@ declare const actionAddresses: (chainId?: null) => {
1244
1244
  UnwrapEth: string;
1245
1245
  SendToken: string;
1246
1246
  PullToken: string;
1247
+ TokenBalance: string;
1247
1248
  FLAaveV3: string;
1248
1249
  FLBalancer: string;
1249
1250
  FLUniV3: string;
@@ -1267,7 +1268,6 @@ declare const actionAddresses: (chainId?: null) => {
1267
1268
  SumInputs?: undefined;
1268
1269
  SubInputs?: undefined;
1269
1270
  ChangeProxyOwner?: undefined;
1270
- TokenBalance?: undefined;
1271
1271
  AutomationV2Unsub?: undefined;
1272
1272
  SendTokenAndUnwrap?: undefined;
1273
1273
  ToggleSub?: undefined;
@@ -2089,6 +2089,7 @@ declare const _default: {
2089
2089
  UnwrapEth: string;
2090
2090
  SendToken: string;
2091
2091
  PullToken: string;
2092
+ TokenBalance: string;
2092
2093
  FLAaveV3: string;
2093
2094
  FLBalancer: string;
2094
2095
  FLUniV3: string;
@@ -2112,7 +2113,6 @@ declare const _default: {
2112
2113
  SumInputs?: undefined;
2113
2114
  SubInputs?: undefined;
2114
2115
  ChangeProxyOwner?: undefined;
2115
- TokenBalance?: undefined;
2116
2116
  AutomationV2Unsub?: undefined;
2117
2117
  SendTokenAndUnwrap?: undefined;
2118
2118
  ToggleSub?: undefined;
@@ -2791,6 +2791,7 @@ declare const _default: {
2791
2791
  UnwrapEth: string;
2792
2792
  SendToken: string;
2793
2793
  PullToken: string;
2794
+ TokenBalance: string;
2794
2795
  FLAaveV3: string;
2795
2796
  FLBalancer: string;
2796
2797
  FLUniV3: string;
@@ -2814,7 +2815,6 @@ declare const _default: {
2814
2815
  SumInputs?: undefined;
2815
2816
  SubInputs?: undefined;
2816
2817
  ChangeProxyOwner?: undefined;
2817
- TokenBalance?: undefined;
2818
2818
  AutomationV2Unsub?: undefined;
2819
2819
  SendTokenAndUnwrap?: undefined;
2820
2820
  ToggleSub?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -34,7 +34,7 @@ export class CurveUsdSelfLiquidateAction extends Action {
34
34
 
35
35
  async getAssetsToApprove() {
36
36
  return [{
37
- owner: this.args[1],
37
+ owner: this.args[2],
38
38
  asset: getAssetInfo('crvUSD').address,
39
39
  }];
40
40
  }
@@ -47,9 +47,9 @@ export class MakerBoostCompositeAction extends Action {
47
47
  this.args[0],
48
48
  this.args[1],
49
49
  this.args[4],
50
- this.args[5][0],
51
- this.args[5][1],
52
- this.args[5][2],
50
+ this.args[7][0],
51
+ this.args[7][1],
52
+ this.args[7][2],
53
53
  ];
54
54
  }
55
55
  }
@@ -47,9 +47,9 @@ export class MakerRepayCompositeAction extends Action {
47
47
  this.args[0],
48
48
  this.args[1],
49
49
  this.args[4],
50
- this.args[5][0],
51
- this.args[5][1],
52
- this.args[5][2],
50
+ this.args[7][0],
51
+ this.args[7][1],
52
+ this.args[7][2],
53
53
  ];
54
54
  }
55
55
  }
package/src/addresses.ts CHANGED
@@ -324,6 +324,7 @@ export const actionAddresses = {
324
324
  UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
325
325
  SendToken: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
326
326
  PullToken: '0x5B0B7E38C2a8e46CfAe13c360BC5927570BeEe94',
327
+ TokenBalance: '0xc44bcE580B1b3339fE9272D3bC3d6566083ea59C',
327
328
 
328
329
  // Flashloan
329
330
  FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
package/umd/index.js CHANGED
@@ -1535,6 +1535,7 @@ var actionAddresses = {
1535
1535
  UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
1536
1536
  SendToken: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
1537
1537
  PullToken: '0x5B0B7E38C2a8e46CfAe13c360BC5927570BeEe94',
1538
+ TokenBalance: '0xc44bcE580B1b3339fE9272D3bC3d6566083ea59C',
1538
1539
  // Flashloan
1539
1540
  FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
1540
1541
  FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
@@ -2398,7 +2399,7 @@ class MakerBoostCompositeAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Act
2398
2399
  */
2399
2400
  constructor(vaultId, joinAddr, gasUsed, flAddress, flAmount, nextPrice, targetRatio, exchangeParams) {
2400
2401
  super('McdBoostComposite', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('McdBoostComposite'), ['uint256', 'address', 'uint256', 'address', 'uint256', 'uint256', 'uint256', ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']]], [vaultId, joinAddr, gasUsed, flAddress, flAmount, nextPrice, targetRatio, exchangeParams]);
2401
- this.mappableArgs = [this.args[0], this.args[1], this.args[4], this.args[5][0], this.args[5][1], this.args[5][2]];
2402
+ this.mappableArgs = [this.args[0], this.args[1], this.args[4], this.args[7][0], this.args[7][1], this.args[7][2]];
2402
2403
  }
2403
2404
  }
2404
2405
 
@@ -2432,7 +2433,7 @@ class MakerRepayCompositeAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Act
2432
2433
  */
2433
2434
  constructor(vaultId, joinAddr, gasUsed, flAddress, flAmount, nextPrice, targetRatio, exchangeParams) {
2434
2435
  super('McdRepayComposite', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('McdRepayComposite'), ['uint256', 'address', 'uint256', 'address', 'uint256', 'uint256', 'uint256', ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']]], [vaultId, joinAddr, gasUsed, flAddress, flAmount, nextPrice, targetRatio, exchangeParams]);
2435
- this.mappableArgs = [this.args[0], this.args[1], this.args[4], this.args[5][0], this.args[5][1], this.args[5][2]];
2436
+ this.mappableArgs = [this.args[0], this.args[1], this.args[4], this.args[7][0], this.args[7][1], this.args[7][2]];
2436
2437
  }
2437
2438
  }
2438
2439
 
@@ -10240,7 +10241,7 @@ class CurveUsdSelfLiquidateAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.A
10240
10241
  var _this = this;
10241
10242
  return _asyncToGenerator(function* () {
10242
10243
  return [{
10243
- owner: _this.args[1],
10244
+ owner: _this.args[2],
10244
10245
  asset: (0,_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__.getAssetInfo)('crvUSD').address
10245
10246
  }];
10246
10247
  })();