@defisaver/sdk 1.3.15 → 1.3.17-aave-v4-dev

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.
Files changed (60) hide show
  1. package/esm/src/Strategy.d.ts +1 -0
  2. package/esm/src/Strategy.js +3 -0
  3. package/esm/src/actions/aavev4/AaveV4BorrowAction.d.ts +17 -0
  4. package/esm/src/actions/aavev4/AaveV4BorrowAction.js +26 -0
  5. package/esm/src/actions/aavev4/AaveV4CollateralSwitchAction.d.ts +16 -0
  6. package/esm/src/actions/aavev4/AaveV4CollateralSwitchAction.js +24 -0
  7. package/esm/src/actions/aavev4/AaveV4PaybackAction.d.ts +23 -0
  8. package/esm/src/actions/aavev4/AaveV4PaybackAction.js +46 -0
  9. package/esm/src/actions/aavev4/AaveV4StoreRatioAction.d.ts +14 -0
  10. package/esm/src/actions/aavev4/AaveV4StoreRatioAction.js +20 -0
  11. package/esm/src/actions/aavev4/AaveV4SupplyAction.d.ts +25 -0
  12. package/esm/src/actions/aavev4/AaveV4SupplyAction.js +49 -0
  13. package/esm/src/actions/aavev4/AaveV4WithdrawAction.d.ts +17 -0
  14. package/esm/src/actions/aavev4/AaveV4WithdrawAction.js +26 -0
  15. package/esm/src/actions/aavev4/index.d.ts +6 -0
  16. package/esm/src/actions/aavev4/index.js +6 -0
  17. package/esm/src/actions/checkers/AaveV4RatioCheckAction.d.ts +16 -0
  18. package/esm/src/actions/checkers/AaveV4RatioCheckAction.js +24 -0
  19. package/esm/src/actions/checkers/index.d.ts +1 -0
  20. package/esm/src/actions/checkers/index.js +1 -0
  21. package/esm/src/actions/index.d.ts +2 -1
  22. package/esm/src/actions/index.js +2 -1
  23. package/esm/src/actions/summerfi/SummerfiUnsubAction.d.ts +12 -0
  24. package/esm/src/actions/summerfi/SummerfiUnsubAction.js +18 -0
  25. package/esm/src/actions/summerfi/SummerfiUnsubV2Action.d.ts +13 -0
  26. package/esm/src/actions/summerfi/SummerfiUnsubV2Action.js +20 -0
  27. package/esm/src/actions/summerfi/index.d.ts +2 -0
  28. package/esm/src/actions/summerfi/index.js +2 -0
  29. package/esm/src/addresses.d.ts +47 -0
  30. package/esm/src/addresses.js +29 -11
  31. package/esm/src/index.d.ts +188 -0
  32. package/esm/src/triggers/AaveV4QuotePriceRangeTrigger.d.ts +10 -0
  33. package/esm/src/triggers/AaveV4QuotePriceRangeTrigger.js +12 -0
  34. package/esm/src/triggers/AaveV4QuotePriceTrigger.d.ts +10 -0
  35. package/esm/src/triggers/AaveV4QuotePriceTrigger.js +12 -0
  36. package/esm/src/triggers/AaveV4RatioTrigger.d.ts +10 -0
  37. package/esm/src/triggers/AaveV4RatioTrigger.js +12 -0
  38. package/esm/src/triggers/index.d.ts +3 -0
  39. package/esm/src/triggers/index.js +3 -0
  40. package/package.json +1 -1
  41. package/src/Strategy.ts +4 -0
  42. package/src/actions/aavev4/AaveV4BorrowAction.ts +39 -0
  43. package/src/actions/aavev4/AaveV4CollateralSwitchAction.ts +36 -0
  44. package/src/actions/aavev4/AaveV4PaybackAction.ts +51 -0
  45. package/src/actions/aavev4/AaveV4StoreRatioAction.ts +30 -0
  46. package/src/actions/aavev4/AaveV4SupplyAction.ts +55 -0
  47. package/src/actions/aavev4/AaveV4WithdrawAction.ts +39 -0
  48. package/src/actions/aavev4/index.ts +6 -0
  49. package/src/actions/checkers/AaveV4RatioCheckAction.ts +36 -0
  50. package/src/actions/checkers/index.ts +2 -1
  51. package/src/actions/index.ts +2 -0
  52. package/src/actions/summerfi/SummerfiUnsubAction.ts +28 -0
  53. package/src/actions/summerfi/SummerfiUnsubV2Action.ts +31 -0
  54. package/src/actions/summerfi/index.ts +2 -0
  55. package/src/addresses.ts +106 -49
  56. package/src/triggers/AaveV4QuotePriceRangeTrigger.ts +25 -0
  57. package/src/triggers/AaveV4QuotePriceTrigger.ts +25 -0
  58. package/src/triggers/AaveV4RatioTrigger.ts +24 -0
  59. package/src/triggers/index.ts +4 -1
  60. package/umd/index.js +1023 -570
@@ -13,6 +13,7 @@ export declare class Strategy {
13
13
  addSubSlot(name: string, type: string): void;
14
14
  addTrigger(newTrigger: Action): void;
15
15
  addAction(newAction: Action): void;
16
+ addActions(newActions: Array<Action>): void;
16
17
  print(): void;
17
18
  getSubSlots(): any;
18
19
  encodeForDsProxyCall(): (string | string[] | number[][])[];
@@ -20,6 +20,9 @@ export class Strategy {
20
20
  addAction(newAction) {
21
21
  this.actions.push(newAction);
22
22
  }
23
+ addActions(newActions) {
24
+ this.actions.push(...newActions);
25
+ }
23
26
  print() {
24
27
  console.log(`Name: ${this.name}`);
25
28
  console.log(`Slots: ${this.subSlots}`);
@@ -0,0 +1,17 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * AaveV4BorrowAction
5
+ *
6
+ * @category AaveV4
7
+ */
8
+ export declare class AaveV4BorrowAction extends Action {
9
+ /**
10
+ * @param spoke Address of the spoke.
11
+ * @param onBehalf Address to borrow tokens on behalf of. Defaults to the user's wallet if not provided.
12
+ * @param to Address that will receive the borrowed tokens.
13
+ * @param reserveId Reserve id.
14
+ * @param amount Amount of tokens to borrow.
15
+ */
16
+ constructor(spoke: EthAddress, onBehalf: EthAddress, to: EthAddress, reserveId: uint256, amount: uint256);
17
+ }
@@ -0,0 +1,26 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * AaveV4BorrowAction
5
+ *
6
+ * @category AaveV4
7
+ */
8
+ export class AaveV4BorrowAction extends Action {
9
+ /**
10
+ * @param spoke Address of the spoke.
11
+ * @param onBehalf Address to borrow tokens on behalf of. Defaults to the user's wallet if not provided.
12
+ * @param to Address that will receive the borrowed tokens.
13
+ * @param reserveId Reserve id.
14
+ * @param amount Amount of tokens to borrow.
15
+ */
16
+ constructor(spoke, onBehalf, to, reserveId, amount) {
17
+ super('AaveV4Borrow', getAddr('AaveV4Borrow'), ['address', 'address', 'address', 'uint256', 'uint256'], [spoke, onBehalf, to, reserveId, amount]);
18
+ this.mappableArgs = [
19
+ this.args[0],
20
+ this.args[1],
21
+ this.args[2],
22
+ this.args[3],
23
+ this.args[4],
24
+ ];
25
+ }
26
+ }
@@ -0,0 +1,16 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * AaveV4CollateralSwitchAction
5
+ *
6
+ * @category AaveV4
7
+ */
8
+ export declare class AaveV4CollateralSwitchAction extends Action {
9
+ /**
10
+ * @param spoke Address of the spoke.
11
+ * @param onBehalf Address to switch collateral on behalf of. Defaults to the user's wallet if not provided.
12
+ * @param reserveId Reserve id.
13
+ * @param useAsCollateral Whether to use the tokens as collateral.
14
+ */
15
+ constructor(spoke: EthAddress, onBehalf: EthAddress, reserveId: uint256, useAsCollateral: boolean);
16
+ }
@@ -0,0 +1,24 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * AaveV4CollateralSwitchAction
5
+ *
6
+ * @category AaveV4
7
+ */
8
+ export class AaveV4CollateralSwitchAction extends Action {
9
+ /**
10
+ * @param spoke Address of the spoke.
11
+ * @param onBehalf Address to switch collateral on behalf of. Defaults to the user's wallet if not provided.
12
+ * @param reserveId Reserve id.
13
+ * @param useAsCollateral Whether to use the tokens as collateral.
14
+ */
15
+ constructor(spoke, onBehalf, reserveId, useAsCollateral) {
16
+ super('AaveV4CollateralSwitch', getAddr('AaveV4CollateralSwitch'), ['address', 'address', 'uint256', 'bool'], [spoke, onBehalf, reserveId, useAsCollateral]);
17
+ this.mappableArgs = [
18
+ this.args[0],
19
+ this.args[1],
20
+ this.args[2],
21
+ this.args[3],
22
+ ];
23
+ }
24
+ }
@@ -0,0 +1,23 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * AaveV4PaybackAction
5
+ *
6
+ * @category AaveV4
7
+ */
8
+ export declare class AaveV4PaybackAction extends Action {
9
+ tokenForApproval: EthAddress;
10
+ /**
11
+ * @param spoke Address of the spoke.
12
+ * @param onBehalf Address to payback tokens on behalf of. Defaults to the user's wallet if not provided.
13
+ * @param from Address from which to pull the payback tokens.
14
+ * @param reserveId Reserve id.
15
+ * @param amount Amount of tokens to payback. Send type(uint).max to payback whole amount.
16
+ * @param tokenAddress Address of the token to approve. Optional, as it is only used for token approval, not part of encoding.
17
+ */
18
+ constructor(spoke: EthAddress, onBehalf: EthAddress, from: EthAddress, reserveId: uint256, amount: uint256, tokenAddress?: EthAddress);
19
+ getAssetsToApprove(): Promise<{
20
+ asset: string;
21
+ owner: any;
22
+ }[]>;
23
+ }
@@ -0,0 +1,46 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getAssetInfoByAddress } from '@defisaver/tokens';
11
+ import { Action } from '../../Action';
12
+ import { getAddr } from '../../addresses';
13
+ /**
14
+ * AaveV4PaybackAction
15
+ *
16
+ * @category AaveV4
17
+ */
18
+ export class AaveV4PaybackAction extends Action {
19
+ /**
20
+ * @param spoke Address of the spoke.
21
+ * @param onBehalf Address to payback tokens on behalf of. Defaults to the user's wallet if not provided.
22
+ * @param from Address from which to pull the payback tokens.
23
+ * @param reserveId Reserve id.
24
+ * @param amount Amount of tokens to payback. Send type(uint).max to payback whole amount.
25
+ * @param tokenAddress Address of the token to approve. Optional, as it is only used for token approval, not part of encoding.
26
+ */
27
+ constructor(spoke, onBehalf, from, reserveId, amount, tokenAddress = getAddr('Empty')) {
28
+ super('AaveV4Payback', getAddr('AaveV4Payback'), ['address', 'address', 'address', 'uint256', 'uint256'], [spoke, onBehalf, from, reserveId, amount]);
29
+ this.mappableArgs = [
30
+ this.args[0],
31
+ this.args[1],
32
+ this.args[2],
33
+ this.args[3],
34
+ this.args[4],
35
+ ];
36
+ this.tokenForApproval = tokenAddress;
37
+ }
38
+ getAssetsToApprove() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const asset = getAssetInfoByAddress(this.tokenForApproval);
41
+ if (asset.symbol !== 'ETH')
42
+ return [{ asset: this.tokenForApproval, owner: this.args[2] }];
43
+ return [];
44
+ });
45
+ }
46
+ }
@@ -0,0 +1,14 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress } from '../../types';
3
+ /**
4
+ * AaveV4StoreRatioAction - Stores the ratio for a user in transient storage so it can be checked later after strategy execution.
5
+ *
6
+ * @category AaveV4
7
+ */
8
+ export declare class AaveV4StoreRatioAction extends Action {
9
+ /**
10
+ * @param spoke Address of the spoke.
11
+ * @param user Address of the user to store the ratio for.
12
+ */
13
+ constructor(spoke: EthAddress, user: EthAddress);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * AaveV4StoreRatioAction - Stores the ratio for a user in transient storage so it can be checked later after strategy execution.
5
+ *
6
+ * @category AaveV4
7
+ */
8
+ export class AaveV4StoreRatioAction extends Action {
9
+ /**
10
+ * @param spoke Address of the spoke.
11
+ * @param user Address of the user to store the ratio for.
12
+ */
13
+ constructor(spoke, user) {
14
+ super('AaveV4StoreRatio', getAddr('Empty'), ['address', 'address'], [spoke, user]);
15
+ this.mappableArgs = [
16
+ this.args[0],
17
+ this.args[1],
18
+ ];
19
+ }
20
+ }
@@ -0,0 +1,25 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * AaveV4SupplyAction
5
+ *
6
+ * @category AaveV4
7
+ */
8
+ export declare class AaveV4SupplyAction extends Action {
9
+ tokenForApproval: EthAddress;
10
+ /**
11
+ * @param spoke Address of the spoke.
12
+ * @param onBehalf Address to supply tokens on behalf of. Defaults to the user's wallet if not provided.
13
+ * @param from Address from which to pull collateral asset.
14
+ * @param reserveId Reserve id.
15
+ * @param amount Amount of tokens to supply.
16
+ * @param useAsCollateral Whether to use the tokens as collateral.
17
+ * @param tokenAddress Address of the token to approve. Optional, as it is only used for token approval, not part of encoding.
18
+ *
19
+ */
20
+ constructor(spoke: EthAddress, onBehalf: EthAddress, from: EthAddress, reserveId: uint256, amount: uint256, useAsCollateral: boolean, tokenAddress?: EthAddress);
21
+ getAssetsToApprove(): Promise<{
22
+ asset: string;
23
+ owner: any;
24
+ }[]>;
25
+ }
@@ -0,0 +1,49 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getAssetInfoByAddress } from '@defisaver/tokens';
11
+ import { Action } from '../../Action';
12
+ import { getAddr } from '../../addresses';
13
+ /**
14
+ * AaveV4SupplyAction
15
+ *
16
+ * @category AaveV4
17
+ */
18
+ export class AaveV4SupplyAction extends Action {
19
+ /**
20
+ * @param spoke Address of the spoke.
21
+ * @param onBehalf Address to supply tokens on behalf of. Defaults to the user's wallet if not provided.
22
+ * @param from Address from which to pull collateral asset.
23
+ * @param reserveId Reserve id.
24
+ * @param amount Amount of tokens to supply.
25
+ * @param useAsCollateral Whether to use the tokens as collateral.
26
+ * @param tokenAddress Address of the token to approve. Optional, as it is only used for token approval, not part of encoding.
27
+ *
28
+ */
29
+ constructor(spoke, onBehalf, from, reserveId, amount, useAsCollateral, tokenAddress = getAddr('Empty')) {
30
+ super('AaveV4Supply', getAddr('AaveV4Supply'), ['address', 'address', 'address', 'uint256', 'uint256', 'bool'], [spoke, onBehalf, from, reserveId, amount, useAsCollateral]);
31
+ this.mappableArgs = [
32
+ this.args[0],
33
+ this.args[1],
34
+ this.args[2],
35
+ this.args[3],
36
+ this.args[4],
37
+ this.args[5],
38
+ ];
39
+ this.tokenForApproval = tokenAddress;
40
+ }
41
+ getAssetsToApprove() {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ const asset = getAssetInfoByAddress(this.tokenForApproval);
44
+ if (asset.symbol !== 'ETH')
45
+ return [{ asset: this.tokenForApproval, owner: this.args[2] }];
46
+ return [];
47
+ });
48
+ }
49
+ }
@@ -0,0 +1,17 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * AaveV4WithdrawAction
5
+ *
6
+ * @category AaveV4
7
+ */
8
+ export declare class AaveV4WithdrawAction extends Action {
9
+ /**
10
+ * @param spoke Address of the spoke.
11
+ * @param onBehalf Address to withdraw tokens on behalf of. Defaults to the user's wallet if not provided.
12
+ * @param to Address that will receive the withdrawn tokens.
13
+ * @param reserveId Reserve id.
14
+ * @param amount Amount of tokens to withdraw. Send type(uint).max to withdraw whole amount.
15
+ */
16
+ constructor(spoke: EthAddress, onBehalf: EthAddress, to: EthAddress, reserveId: uint256, amount: uint256);
17
+ }
@@ -0,0 +1,26 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * AaveV4WithdrawAction
5
+ *
6
+ * @category AaveV4
7
+ */
8
+ export class AaveV4WithdrawAction extends Action {
9
+ /**
10
+ * @param spoke Address of the spoke.
11
+ * @param onBehalf Address to withdraw tokens on behalf of. Defaults to the user's wallet if not provided.
12
+ * @param to Address that will receive the withdrawn tokens.
13
+ * @param reserveId Reserve id.
14
+ * @param amount Amount of tokens to withdraw. Send type(uint).max to withdraw whole amount.
15
+ */
16
+ constructor(spoke, onBehalf, to, reserveId, amount) {
17
+ super('AaveV4Withdraw', getAddr('AaveV4Withdraw'), ['address', 'address', 'address', 'uint256', 'uint256'], [spoke, onBehalf, to, reserveId, amount]);
18
+ this.mappableArgs = [
19
+ this.args[0],
20
+ this.args[1],
21
+ this.args[2],
22
+ this.args[3],
23
+ this.args[4],
24
+ ];
25
+ }
26
+ }
@@ -0,0 +1,6 @@
1
+ export * from './AaveV4SupplyAction';
2
+ export * from './AaveV4WithdrawAction';
3
+ export * from './AaveV4BorrowAction';
4
+ export * from './AaveV4PaybackAction';
5
+ export * from './AaveV4CollateralSwitchAction';
6
+ export * from './AaveV4StoreRatioAction';
@@ -0,0 +1,6 @@
1
+ export * from './AaveV4SupplyAction';
2
+ export * from './AaveV4WithdrawAction';
3
+ export * from './AaveV4BorrowAction';
4
+ export * from './AaveV4PaybackAction';
5
+ export * from './AaveV4CollateralSwitchAction';
6
+ export * from './AaveV4StoreRatioAction';
@@ -0,0 +1,16 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256, uint8 } from '../../types';
3
+ /**
4
+ * AaveV4RatioCheckAction - Checks aave V4 ratio for user position
5
+ *
6
+ * @category AaveV4RatioCheck
7
+ */
8
+ export declare class AaveV4RatioCheckAction extends Action {
9
+ /**
10
+ * @param ratioState State of the ratio (IN_BOOST or IN_REPAY)
11
+ * @param targetRatio Target ratio.
12
+ * @param spoke Aave V4 spoke address.
13
+ * @param user User address.
14
+ */
15
+ constructor(ratioState: uint8, targetRatio: uint256, spoke: EthAddress, user: EthAddress);
16
+ }
@@ -0,0 +1,24 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * AaveV4RatioCheckAction - Checks aave V4 ratio for user position
5
+ *
6
+ * @category AaveV4RatioCheck
7
+ */
8
+ export class AaveV4RatioCheckAction extends Action {
9
+ /**
10
+ * @param ratioState State of the ratio (IN_BOOST or IN_REPAY)
11
+ * @param targetRatio Target ratio.
12
+ * @param spoke Aave V4 spoke address.
13
+ * @param user User address.
14
+ */
15
+ constructor(ratioState, targetRatio, spoke, user) {
16
+ super('AaveV4RatioCheck', getAddr('Empty'), ['uint8', 'uint256', 'address', 'address'], [ratioState, targetRatio, spoke, user]);
17
+ this.mappableArgs = [
18
+ this.args[0],
19
+ this.args[1],
20
+ this.args[2],
21
+ this.args[3],
22
+ ];
23
+ }
24
+ }
@@ -15,3 +15,4 @@ export * from './LiquityV2RatioCheckAction';
15
15
  export * from './LiquityV2TargetRatioCheckAction';
16
16
  export * from './LiquityV2NewInterestRateCheckerAction';
17
17
  export * from './FluidRatioCheckAction';
18
+ export * from './AaveV4RatioCheckAction';
@@ -15,3 +15,4 @@ export * from './LiquityV2RatioCheckAction';
15
15
  export * from './LiquityV2TargetRatioCheckAction';
16
16
  export * from './LiquityV2NewInterestRateCheckerAction';
17
17
  export * from './FluidRatioCheckAction';
18
+ export * from './AaveV4RatioCheckAction';
@@ -39,4 +39,5 @@ import * as etherfi from './etherfi';
39
39
  import * as fluid from './fluid';
40
40
  import * as pendle from './pendle';
41
41
  import * as umbrella from './umbrella';
42
- export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, umbrella, };
42
+ import * as aaveV4 from './aavev4';
43
+ export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, umbrella, aaveV4, };
@@ -39,4 +39,5 @@ import * as etherfi from './etherfi';
39
39
  import * as fluid from './fluid';
40
40
  import * as pendle from './pendle';
41
41
  import * as umbrella from './umbrella';
42
- export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, umbrella, };
42
+ import * as aaveV4 from './aavev4';
43
+ export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, umbrella, aaveV4, };
@@ -0,0 +1,12 @@
1
+ import { Action } from '../../Action';
2
+ import { uint256 } from '../../types';
3
+ /**
4
+ * @category Summerfi
5
+ */
6
+ export declare class SummerfiUnsubAction extends Action {
7
+ /**
8
+ * @param cdpIds Array of CDP IDs to remove approval for
9
+ * @param triggerIds Array of Trigger IDs that correspond to CDP IDs
10
+ */
11
+ constructor(cdpIds: uint256[], triggerIds: uint256[]);
12
+ }
@@ -0,0 +1,18 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * @category Summerfi
5
+ */
6
+ export class SummerfiUnsubAction extends Action {
7
+ /**
8
+ * @param cdpIds Array of CDP IDs to remove approval for
9
+ * @param triggerIds Array of Trigger IDs that correspond to CDP IDs
10
+ */
11
+ constructor(cdpIds, triggerIds) {
12
+ super('SummerfiUnsub', getAddr('SummerfiUnsub'), ['uint256[]', 'uint256[]'], [cdpIds, triggerIds]);
13
+ this.mappableArgs = [
14
+ this.args[0],
15
+ this.args[1],
16
+ ];
17
+ }
18
+ }
@@ -0,0 +1,13 @@
1
+ import { Action } from '../../Action';
2
+ import { uint256 } from '../../types';
3
+ /**
4
+ * @category Summerfi
5
+ */
6
+ export declare class SummerfiUnsubV2Action extends Action {
7
+ /**
8
+ * @param triggerIds Array of trigger ID arrays to remove
9
+ * @param triggerData Array of trigger data arrays (must match triggerIds length)
10
+ * @param removeAllowance Array of booleans indicating whether to remove allowance for each trigger group
11
+ */
12
+ constructor(triggerIds: uint256[][], triggerData: string[][], removeAllowance: boolean[]);
13
+ }
@@ -0,0 +1,20 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * @category Summerfi
5
+ */
6
+ export class SummerfiUnsubV2Action extends Action {
7
+ /**
8
+ * @param triggerIds Array of trigger ID arrays to remove
9
+ * @param triggerData Array of trigger data arrays (must match triggerIds length)
10
+ * @param removeAllowance Array of booleans indicating whether to remove allowance for each trigger group
11
+ */
12
+ constructor(triggerIds, triggerData, removeAllowance) {
13
+ super('SummerfiUnsubV2', getAddr('SummerfiUnsubV2'), ['uint256[][]', 'bytes[][]', 'bool[]'], [triggerIds, triggerData, removeAllowance]);
14
+ this.mappableArgs = [
15
+ this.args[0],
16
+ this.args[1],
17
+ this.args[2],
18
+ ];
19
+ }
20
+ }
@@ -1 +1,3 @@
1
1
  export * from './SFApproveTokensAction';
2
+ export * from './SummerfiUnsubAction';
3
+ export * from './SummerfiUnsubV2Action';
@@ -1 +1,3 @@
1
1
  export * from './SFApproveTokensAction';
2
+ export * from './SummerfiUnsubAction';
3
+ export * from './SummerfiUnsubV2Action';
@@ -275,6 +275,13 @@ export declare const actionAddresses: {
275
275
  UmbrellaStake: string;
276
276
  UmbrellaUnstake: string;
277
277
  SFApproveTokens: string;
278
+ SummerfiUnsub: string;
279
+ SummerfiUnsubV2: string;
280
+ AaveV4Supply: string;
281
+ AaveV4Withdraw: string;
282
+ AaveV4Borrow: string;
283
+ AaveV4Payback: string;
284
+ AaveV4CollateralSwitch: string;
278
285
  AaveV3DelegateCredit?: undefined;
279
286
  AaveV3RatioTrigger?: undefined;
280
287
  GasFeeTakerL2?: undefined;
@@ -332,6 +339,8 @@ export declare const actionAddresses: {
332
339
  CompV3Transfer: string;
333
340
  CompV3Withdraw: string;
334
341
  SFApproveTokens: string;
342
+ SummerfiUnsub: string;
343
+ SummerfiUnsubV2: string;
335
344
  AutomationV2Unsub?: undefined;
336
345
  TransferNFT?: undefined;
337
346
  SDaiWrap?: undefined;
@@ -559,6 +568,11 @@ export declare const actionAddresses: {
559
568
  UmbrellaClaimRewards?: undefined;
560
569
  UmbrellaStake?: undefined;
561
570
  UmbrellaUnstake?: undefined;
571
+ AaveV4Supply?: undefined;
572
+ AaveV4Withdraw?: undefined;
573
+ AaveV4Borrow?: undefined;
574
+ AaveV4Payback?: undefined;
575
+ AaveV4CollateralSwitch?: undefined;
562
576
  MorphoBlueView?: undefined;
563
577
  } | {
564
578
  DFSSell: string;
@@ -636,6 +650,8 @@ export declare const actionAddresses: {
636
650
  FluidDexPayback: string;
637
651
  FluidDexWithdraw: string;
638
652
  SFApproveTokens: string;
653
+ SummerfiUnsub: string;
654
+ SummerfiUnsubV2: string;
639
655
  MorphoBlueSupply: string;
640
656
  MorphoBlueSupplyCollateral: string;
641
657
  MorphoBlueWithdraw: string;
@@ -838,6 +854,11 @@ export declare const actionAddresses: {
838
854
  UmbrellaClaimRewards?: undefined;
839
855
  UmbrellaStake?: undefined;
840
856
  UmbrellaUnstake?: undefined;
857
+ AaveV4Supply?: undefined;
858
+ AaveV4Withdraw?: undefined;
859
+ AaveV4Borrow?: undefined;
860
+ AaveV4Payback?: undefined;
861
+ AaveV4CollateralSwitch?: undefined;
841
862
  AaveV3DelegateCredit?: undefined;
842
863
  AaveV3RatioTrigger?: undefined;
843
864
  } | {
@@ -909,6 +930,8 @@ export declare const actionAddresses: {
909
930
  FluidDexWithdraw: string;
910
931
  TokenizedVaultAdapter: string;
911
932
  SFApproveTokens: string;
933
+ SummerfiUnsub: string;
934
+ SummerfiUnsubV2: string;
912
935
  AutomationV2Unsub?: undefined;
913
936
  SendTokenAndUnwrap?: undefined;
914
937
  SDaiWrap?: undefined;
@@ -1117,6 +1140,11 @@ export declare const actionAddresses: {
1117
1140
  UmbrellaClaimRewards?: undefined;
1118
1141
  UmbrellaStake?: undefined;
1119
1142
  UmbrellaUnstake?: undefined;
1143
+ AaveV4Supply?: undefined;
1144
+ AaveV4Withdraw?: undefined;
1145
+ AaveV4Borrow?: undefined;
1146
+ AaveV4Payback?: undefined;
1147
+ AaveV4CollateralSwitch?: undefined;
1120
1148
  AaveV3DelegateCredit?: undefined;
1121
1149
  AaveV3RatioTrigger?: undefined;
1122
1150
  AaveV3RatioCheck?: undefined;
@@ -1396,6 +1424,13 @@ export declare const actionAddresses: {
1396
1424
  UmbrellaStake?: undefined;
1397
1425
  UmbrellaUnstake?: undefined;
1398
1426
  SFApproveTokens?: undefined;
1427
+ SummerfiUnsub?: undefined;
1428
+ SummerfiUnsubV2?: undefined;
1429
+ AaveV4Supply?: undefined;
1430
+ AaveV4Withdraw?: undefined;
1431
+ AaveV4Borrow?: undefined;
1432
+ AaveV4Payback?: undefined;
1433
+ AaveV4CollateralSwitch?: undefined;
1399
1434
  AaveV3RatioTrigger?: undefined;
1400
1435
  GasFeeTakerL2?: undefined;
1401
1436
  AaveV3RatioCheck?: undefined;
@@ -1676,6 +1711,13 @@ export declare const actionAddresses: {
1676
1711
  UmbrellaStake?: undefined;
1677
1712
  UmbrellaUnstake?: undefined;
1678
1713
  SFApproveTokens?: undefined;
1714
+ SummerfiUnsub?: undefined;
1715
+ SummerfiUnsubV2?: undefined;
1716
+ AaveV4Supply?: undefined;
1717
+ AaveV4Withdraw?: undefined;
1718
+ AaveV4Borrow?: undefined;
1719
+ AaveV4Payback?: undefined;
1720
+ AaveV4CollateralSwitch?: undefined;
1679
1721
  AaveV3RatioTrigger?: undefined;
1680
1722
  GasFeeTakerL2?: undefined;
1681
1723
  AaveV3RatioCheck?: undefined;
@@ -1689,6 +1731,7 @@ export declare const otherAddresses: {
1689
1731
  DFSRegistry: string;
1690
1732
  DFSProxyRegistry: string;
1691
1733
  ProxyRegistry: string;
1734
+ SFProxyEntryPoint: string;
1692
1735
  McdCdpManager: string;
1693
1736
  BCdpManager: string;
1694
1737
  AaveDefaultMarket: string;
@@ -1710,6 +1753,7 @@ export declare const otherAddresses: {
1710
1753
  RecipeExecutorForTxSaver: string;
1711
1754
  DFSRegistry: string;
1712
1755
  ProxyRegistry: string;
1756
+ SFProxyEntryPoint: string;
1713
1757
  DSGuardFactory: string;
1714
1758
  AdminVault: string;
1715
1759
  DefisaverLogger: string;
@@ -1732,6 +1776,7 @@ export declare const otherAddresses: {
1732
1776
  RecipeExecutorForTxSaver: string;
1733
1777
  DFSRegistry: string;
1734
1778
  ProxyRegistry: string;
1779
+ SFProxyEntryPoint: string;
1735
1780
  DSGuardFactory: string;
1736
1781
  AdminVault: string;
1737
1782
  DefisaverLogger: string;
@@ -1759,6 +1804,7 @@ export declare const otherAddresses: {
1759
1804
  RecipeExecutorForTxSaver?: undefined;
1760
1805
  DFSProxyRegistry?: undefined;
1761
1806
  ProxyRegistry?: undefined;
1807
+ SFProxyEntryPoint?: undefined;
1762
1808
  McdCdpManager?: undefined;
1763
1809
  BCdpManager?: undefined;
1764
1810
  AaveDefaultMarket?: undefined;
@@ -1780,6 +1826,7 @@ export declare const otherAddresses: {
1780
1826
  RecipeExecutorForTxSaver?: undefined;
1781
1827
  DFSProxyRegistry?: undefined;
1782
1828
  ProxyRegistry?: undefined;
1829
+ SFProxyEntryPoint?: undefined;
1783
1830
  McdCdpManager?: undefined;
1784
1831
  BCdpManager?: undefined;
1785
1832
  AaveDefaultMarket?: undefined;