@defisaver/sdk 1.0.53 → 1.0.55

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.
@@ -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
  }
@@ -44,6 +44,7 @@ export declare const actionAddresses: {
44
44
  AaveCollateralSwitch: string;
45
45
  AaveUnstake: string;
46
46
  AaveClaimAAVE: string;
47
+ AaveClaimStkAave: string;
47
48
  AaveV3Withdraw: string;
48
49
  AaveV3SwapBorrowRateMode: string;
49
50
  AaveV3Supply: string;
@@ -242,6 +243,7 @@ export declare const actionAddresses: {
242
243
  AaveCollateralSwitch?: undefined;
243
244
  AaveUnstake?: undefined;
244
245
  AaveClaimAAVE?: undefined;
246
+ AaveClaimStkAave?: undefined;
245
247
  AaveV3View?: undefined;
246
248
  MorphoAaveV2Borrow?: undefined;
247
249
  MorphoAaveV2Payback?: undefined;
@@ -413,6 +415,7 @@ export declare const actionAddresses: {
413
415
  AaveCollateralSwitch?: undefined;
414
416
  AaveUnstake?: undefined;
415
417
  AaveClaimAAVE?: undefined;
418
+ AaveClaimStkAave?: undefined;
416
419
  AaveV3ClaimRewards?: undefined;
417
420
  AaveV3View?: undefined;
418
421
  MorphoAaveV2Borrow?: undefined;
@@ -531,6 +534,7 @@ export declare const actionAddresses: {
531
534
  UnwrapEth: string;
532
535
  SendToken: string;
533
536
  PullToken: string;
537
+ TokenBalance: string;
534
538
  FLAaveV3: string;
535
539
  FLBalancer: string;
536
540
  FLUniV3: string;
@@ -554,7 +558,6 @@ export declare const actionAddresses: {
554
558
  SumInputs?: undefined;
555
559
  SubInputs?: undefined;
556
560
  ChangeProxyOwner?: undefined;
557
- TokenBalance?: undefined;
558
561
  AutomationV2Unsub?: undefined;
559
562
  SendTokenAndUnwrap?: undefined;
560
563
  ToggleSub?: undefined;
@@ -589,6 +592,7 @@ export declare const actionAddresses: {
589
592
  AaveCollateralSwitch?: undefined;
590
593
  AaveUnstake?: undefined;
591
594
  AaveClaimAAVE?: undefined;
595
+ AaveClaimStkAave?: undefined;
592
596
  MorphoAaveV2Borrow?: undefined;
593
597
  MorphoAaveV2Payback?: undefined;
594
598
  MorphoAaveV2Supply?: undefined;
@@ -50,6 +50,7 @@ export const actionAddresses = {
50
50
  AaveCollateralSwitch: '0xFf5dfF1B90bd5Aa6E12768AB497dB90cc9DE6F5d',
51
51
  AaveUnstake: '0x2FE4024e350cD2c64D2fd0Db5d16F5cE54Ca0E09',
52
52
  AaveClaimAAVE: '0xd52855bD011F3D87565f9040DdE2A59fB1b27b15',
53
+ AaveClaimStkAave: '0x5Dcd9Dc0185a6Ab07a31e5284D16Ce9f0A79Ce99',
53
54
  // aave v3
54
55
  AaveV3Withdraw: '0x9D4e4b26A5E2e6Dad30C5d95F5cE78A8310F04C2',
55
56
  AaveV3SwapBorrowRateMode: '0x630F530Ac523C935cf2528E62D0A06F8900C5b1B',
@@ -279,6 +280,7 @@ export const actionAddresses = {
279
280
  UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
280
281
  SendToken: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
281
282
  PullToken: '0x5B0B7E38C2a8e46CfAe13c360BC5927570BeEe94',
283
+ TokenBalance: '0xc44bcE580B1b3339fE9272D3bC3d6566083ea59C',
282
284
  // Flashloan
283
285
  FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
284
286
  FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
@@ -55,6 +55,7 @@ declare const actionAddressesAllChains: {
55
55
  AaveCollateralSwitch: string;
56
56
  AaveUnstake: string;
57
57
  AaveClaimAAVE: string;
58
+ AaveClaimStkAave: string;
58
59
  AaveV3Withdraw: string;
59
60
  AaveV3SwapBorrowRateMode: string;
60
61
  AaveV3Supply: string;
@@ -253,6 +254,7 @@ declare const actionAddressesAllChains: {
253
254
  AaveCollateralSwitch?: undefined;
254
255
  AaveUnstake?: undefined;
255
256
  AaveClaimAAVE?: undefined;
257
+ AaveClaimStkAave?: undefined;
256
258
  AaveV3View?: undefined;
257
259
  MorphoAaveV2Borrow?: undefined;
258
260
  MorphoAaveV2Payback?: undefined;
@@ -424,6 +426,7 @@ declare const actionAddressesAllChains: {
424
426
  AaveCollateralSwitch?: undefined;
425
427
  AaveUnstake?: undefined;
426
428
  AaveClaimAAVE?: undefined;
429
+ AaveClaimStkAave?: undefined;
427
430
  AaveV3ClaimRewards?: undefined;
428
431
  AaveV3View?: undefined;
429
432
  MorphoAaveV2Borrow?: undefined;
@@ -542,6 +545,7 @@ declare const actionAddressesAllChains: {
542
545
  UnwrapEth: string;
543
546
  SendToken: string;
544
547
  PullToken: string;
548
+ TokenBalance: string;
545
549
  FLAaveV3: string;
546
550
  FLBalancer: string;
547
551
  FLUniV3: string;
@@ -565,7 +569,6 @@ declare const actionAddressesAllChains: {
565
569
  SumInputs?: undefined;
566
570
  SubInputs?: undefined;
567
571
  ChangeProxyOwner?: undefined;
568
- TokenBalance?: undefined;
569
572
  AutomationV2Unsub?: undefined;
570
573
  SendTokenAndUnwrap?: undefined;
571
574
  ToggleSub?: undefined;
@@ -600,6 +603,7 @@ declare const actionAddressesAllChains: {
600
603
  AaveCollateralSwitch?: undefined;
601
604
  AaveUnstake?: undefined;
602
605
  AaveClaimAAVE?: undefined;
606
+ AaveClaimStkAave?: undefined;
603
607
  MorphoAaveV2Borrow?: undefined;
604
608
  MorphoAaveV2Payback?: undefined;
605
609
  MorphoAaveV2Supply?: undefined;
@@ -757,6 +761,7 @@ declare const actionAddresses: (chainId?: null) => {
757
761
  AaveCollateralSwitch: string;
758
762
  AaveUnstake: string;
759
763
  AaveClaimAAVE: string;
764
+ AaveClaimStkAave: string;
760
765
  AaveV3Withdraw: string;
761
766
  AaveV3SwapBorrowRateMode: string;
762
767
  AaveV3Supply: string;
@@ -955,6 +960,7 @@ declare const actionAddresses: (chainId?: null) => {
955
960
  AaveCollateralSwitch?: undefined;
956
961
  AaveUnstake?: undefined;
957
962
  AaveClaimAAVE?: undefined;
963
+ AaveClaimStkAave?: undefined;
958
964
  AaveV3View?: undefined;
959
965
  MorphoAaveV2Borrow?: undefined;
960
966
  MorphoAaveV2Payback?: undefined;
@@ -1126,6 +1132,7 @@ declare const actionAddresses: (chainId?: null) => {
1126
1132
  AaveCollateralSwitch?: undefined;
1127
1133
  AaveUnstake?: undefined;
1128
1134
  AaveClaimAAVE?: undefined;
1135
+ AaveClaimStkAave?: undefined;
1129
1136
  AaveV3ClaimRewards?: undefined;
1130
1137
  AaveV3View?: undefined;
1131
1138
  MorphoAaveV2Borrow?: undefined;
@@ -1244,6 +1251,7 @@ declare const actionAddresses: (chainId?: null) => {
1244
1251
  UnwrapEth: string;
1245
1252
  SendToken: string;
1246
1253
  PullToken: string;
1254
+ TokenBalance: string;
1247
1255
  FLAaveV3: string;
1248
1256
  FLBalancer: string;
1249
1257
  FLUniV3: string;
@@ -1267,7 +1275,6 @@ declare const actionAddresses: (chainId?: null) => {
1267
1275
  SumInputs?: undefined;
1268
1276
  SubInputs?: undefined;
1269
1277
  ChangeProxyOwner?: undefined;
1270
- TokenBalance?: undefined;
1271
1278
  AutomationV2Unsub?: undefined;
1272
1279
  SendTokenAndUnwrap?: undefined;
1273
1280
  ToggleSub?: undefined;
@@ -1302,6 +1309,7 @@ declare const actionAddresses: (chainId?: null) => {
1302
1309
  AaveCollateralSwitch?: undefined;
1303
1310
  AaveUnstake?: undefined;
1304
1311
  AaveClaimAAVE?: undefined;
1312
+ AaveClaimStkAave?: undefined;
1305
1313
  MorphoAaveV2Borrow?: undefined;
1306
1314
  MorphoAaveV2Payback?: undefined;
1307
1315
  MorphoAaveV2Supply?: undefined;
@@ -1602,6 +1610,7 @@ declare const _default: {
1602
1610
  AaveCollateralSwitch: string;
1603
1611
  AaveUnstake: string;
1604
1612
  AaveClaimAAVE: string;
1613
+ AaveClaimStkAave: string;
1605
1614
  AaveV3Withdraw: string;
1606
1615
  AaveV3SwapBorrowRateMode: string;
1607
1616
  AaveV3Supply: string;
@@ -1800,6 +1809,7 @@ declare const _default: {
1800
1809
  AaveCollateralSwitch?: undefined;
1801
1810
  AaveUnstake?: undefined;
1802
1811
  AaveClaimAAVE?: undefined;
1812
+ AaveClaimStkAave?: undefined;
1803
1813
  AaveV3View?: undefined;
1804
1814
  MorphoAaveV2Borrow?: undefined;
1805
1815
  MorphoAaveV2Payback?: undefined;
@@ -1971,6 +1981,7 @@ declare const _default: {
1971
1981
  AaveCollateralSwitch?: undefined;
1972
1982
  AaveUnstake?: undefined;
1973
1983
  AaveClaimAAVE?: undefined;
1984
+ AaveClaimStkAave?: undefined;
1974
1985
  AaveV3ClaimRewards?: undefined;
1975
1986
  AaveV3View?: undefined;
1976
1987
  MorphoAaveV2Borrow?: undefined;
@@ -2089,6 +2100,7 @@ declare const _default: {
2089
2100
  UnwrapEth: string;
2090
2101
  SendToken: string;
2091
2102
  PullToken: string;
2103
+ TokenBalance: string;
2092
2104
  FLAaveV3: string;
2093
2105
  FLBalancer: string;
2094
2106
  FLUniV3: string;
@@ -2112,7 +2124,6 @@ declare const _default: {
2112
2124
  SumInputs?: undefined;
2113
2125
  SubInputs?: undefined;
2114
2126
  ChangeProxyOwner?: undefined;
2115
- TokenBalance?: undefined;
2116
2127
  AutomationV2Unsub?: undefined;
2117
2128
  SendTokenAndUnwrap?: undefined;
2118
2129
  ToggleSub?: undefined;
@@ -2147,6 +2158,7 @@ declare const _default: {
2147
2158
  AaveCollateralSwitch?: undefined;
2148
2159
  AaveUnstake?: undefined;
2149
2160
  AaveClaimAAVE?: undefined;
2161
+ AaveClaimStkAave?: undefined;
2150
2162
  MorphoAaveV2Borrow?: undefined;
2151
2163
  MorphoAaveV2Payback?: undefined;
2152
2164
  MorphoAaveV2Supply?: undefined;
@@ -2304,6 +2316,7 @@ declare const _default: {
2304
2316
  AaveCollateralSwitch: string;
2305
2317
  AaveUnstake: string;
2306
2318
  AaveClaimAAVE: string;
2319
+ AaveClaimStkAave: string;
2307
2320
  AaveV3Withdraw: string;
2308
2321
  AaveV3SwapBorrowRateMode: string;
2309
2322
  AaveV3Supply: string;
@@ -2502,6 +2515,7 @@ declare const _default: {
2502
2515
  AaveCollateralSwitch?: undefined;
2503
2516
  AaveUnstake?: undefined;
2504
2517
  AaveClaimAAVE?: undefined;
2518
+ AaveClaimStkAave?: undefined;
2505
2519
  AaveV3View?: undefined;
2506
2520
  MorphoAaveV2Borrow?: undefined;
2507
2521
  MorphoAaveV2Payback?: undefined;
@@ -2673,6 +2687,7 @@ declare const _default: {
2673
2687
  AaveCollateralSwitch?: undefined;
2674
2688
  AaveUnstake?: undefined;
2675
2689
  AaveClaimAAVE?: undefined;
2690
+ AaveClaimStkAave?: undefined;
2676
2691
  AaveV3ClaimRewards?: undefined;
2677
2692
  AaveV3View?: undefined;
2678
2693
  MorphoAaveV2Borrow?: undefined;
@@ -2791,6 +2806,7 @@ declare const _default: {
2791
2806
  UnwrapEth: string;
2792
2807
  SendToken: string;
2793
2808
  PullToken: string;
2809
+ TokenBalance: string;
2794
2810
  FLAaveV3: string;
2795
2811
  FLBalancer: string;
2796
2812
  FLUniV3: string;
@@ -2814,7 +2830,6 @@ declare const _default: {
2814
2830
  SumInputs?: undefined;
2815
2831
  SubInputs?: undefined;
2816
2832
  ChangeProxyOwner?: undefined;
2817
- TokenBalance?: undefined;
2818
2833
  AutomationV2Unsub?: undefined;
2819
2834
  SendTokenAndUnwrap?: undefined;
2820
2835
  ToggleSub?: undefined;
@@ -2849,6 +2864,7 @@ declare const _default: {
2849
2864
  AaveCollateralSwitch?: undefined;
2850
2865
  AaveUnstake?: undefined;
2851
2866
  AaveClaimAAVE?: undefined;
2867
+ AaveClaimStkAave?: undefined;
2852
2868
  MorphoAaveV2Borrow?: undefined;
2853
2869
  MorphoAaveV2Payback?: undefined;
2854
2870
  MorphoAaveV2Supply?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -20,7 +20,7 @@
20
20
  "license": "ISC",
21
21
  "dependencies": {
22
22
  "@defisaver/eslint-config": "^1.0.0",
23
- "@defisaver/tokens": "^1.5.0",
23
+ "@defisaver/tokens": "^1.5.2",
24
24
  "@ethersproject/address": "^5.0.10",
25
25
  "@ethersproject/solidity": "^5.0.9",
26
26
  "@types/web3-eth-abi": "^1.2.2",
@@ -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
@@ -57,6 +57,7 @@ export const actionAddresses = {
57
57
  AaveCollateralSwitch: '0xFf5dfF1B90bd5Aa6E12768AB497dB90cc9DE6F5d',
58
58
  AaveUnstake: '0x2FE4024e350cD2c64D2fd0Db5d16F5cE54Ca0E09',
59
59
  AaveClaimAAVE: '0xd52855bD011F3D87565f9040DdE2A59fB1b27b15',
60
+ AaveClaimStkAave: '0x5Dcd9Dc0185a6Ab07a31e5284D16Ce9f0A79Ce99',
60
61
  // aave v3
61
62
  AaveV3Withdraw: '0x9D4e4b26A5E2e6Dad30C5d95F5cE78A8310F04C2',
62
63
  AaveV3SwapBorrowRateMode: '0x630F530Ac523C935cf2528E62D0A06F8900C5b1B',
@@ -324,6 +325,7 @@ export const actionAddresses = {
324
325
  UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
325
326
  SendToken: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
326
327
  PullToken: '0x5B0B7E38C2a8e46CfAe13c360BC5927570BeEe94',
328
+ TokenBalance: '0xc44bcE580B1b3339fE9272D3bC3d6566083ea59C',
327
329
 
328
330
  // Flashloan
329
331
  FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
package/umd/index.js CHANGED
@@ -1306,6 +1306,7 @@ var actionAddresses = {
1306
1306
  AaveCollateralSwitch: '0xFf5dfF1B90bd5Aa6E12768AB497dB90cc9DE6F5d',
1307
1307
  AaveUnstake: '0x2FE4024e350cD2c64D2fd0Db5d16F5cE54Ca0E09',
1308
1308
  AaveClaimAAVE: '0xd52855bD011F3D87565f9040DdE2A59fB1b27b15',
1309
+ AaveClaimStkAave: '0x5Dcd9Dc0185a6Ab07a31e5284D16Ce9f0A79Ce99',
1309
1310
  // aave v3
1310
1311
  AaveV3Withdraw: '0x9D4e4b26A5E2e6Dad30C5d95F5cE78A8310F04C2',
1311
1312
  AaveV3SwapBorrowRateMode: '0x630F530Ac523C935cf2528E62D0A06F8900C5b1B',
@@ -1535,6 +1536,7 @@ var actionAddresses = {
1535
1536
  UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
1536
1537
  SendToken: '0x1420f4977E7B71AFddccBFc6F6e1505CefdF99F0',
1537
1538
  PullToken: '0x5B0B7E38C2a8e46CfAe13c360BC5927570BeEe94',
1539
+ TokenBalance: '0xc44bcE580B1b3339fE9272D3bC3d6566083ea59C',
1538
1540
  // Flashloan
1539
1541
  FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
1540
1542
  FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
@@ -2398,7 +2400,7 @@ class MakerBoostCompositeAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Act
2398
2400
  */
2399
2401
  constructor(vaultId, joinAddr, gasUsed, flAddress, flAmount, nextPrice, targetRatio, exchangeParams) {
2400
2402
  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]];
2403
+ this.mappableArgs = [this.args[0], this.args[1], this.args[4], this.args[7][0], this.args[7][1], this.args[7][2]];
2402
2404
  }
2403
2405
  }
2404
2406
 
@@ -2432,7 +2434,7 @@ class MakerRepayCompositeAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Act
2432
2434
  */
2433
2435
  constructor(vaultId, joinAddr, gasUsed, flAddress, flAmount, nextPrice, targetRatio, exchangeParams) {
2434
2436
  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]];
2437
+ this.mappableArgs = [this.args[0], this.args[1], this.args[4], this.args[7][0], this.args[7][1], this.args[7][2]];
2436
2438
  }
2437
2439
  }
2438
2440