@defisaver/sdk 1.0.61 → 1.0.63-dev-1
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.
- package/esm/src/Action.d.ts +2 -2
- package/esm/src/actions/aave/AaveBorrowAction.js +8 -0
- package/esm/src/actions/basic/ApproveTokenAction.js +5 -0
- package/esm/src/actions/basic/ExecuteSafeTxAction.d.ts +23 -0
- package/esm/src/actions/basic/ExecuteSafeTxAction.js +60 -0
- package/esm/src/actions/basic/LSVSellAction.d.ts +23 -0
- package/esm/src/actions/basic/LSVSellAction.js +61 -0
- package/esm/src/actions/basic/LimitSellAction.d.ts +24 -0
- package/esm/src/actions/basic/LimitSellAction.js +63 -0
- package/esm/src/actions/basic/RemoveTokenApprovalAction.d.ts +15 -0
- package/esm/src/actions/basic/RemoveTokenApprovalAction.js +42 -0
- package/esm/src/actions/basic/index.d.ts +5 -1
- package/esm/src/actions/basic/index.js +5 -1
- package/esm/src/actions/checkers/AaveV2RatioCheckAction.d.ts +14 -0
- package/esm/src/actions/checkers/AaveV2RatioCheckAction.js +20 -0
- package/esm/src/actions/checkers/CompoundV2RatioCheckAction.d.ts +14 -0
- package/esm/src/actions/checkers/CompoundV2RatioCheckAction.js +20 -0
- package/esm/src/actions/checkers/CurveUsdCollRatioCheck.d.ts +15 -0
- package/esm/src/actions/checkers/CurveUsdCollRatioCheck.js +22 -0
- package/esm/src/actions/checkers/index.d.ts +4 -1
- package/esm/src/actions/checkers/index.js +4 -1
- package/esm/src/actions/curveusd/CurveUsdGetDebtAction.d.ts +8 -0
- package/esm/src/actions/curveusd/CurveUsdGetDebtAction.js +13 -0
- package/esm/src/actions/curveusd/index.d.ts +1 -0
- package/esm/src/actions/curveusd/index.js +1 -0
- package/esm/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.d.ts +18 -0
- package/esm/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.js +28 -0
- package/esm/src/actions/flashloan/FLAction.js +3 -0
- package/esm/src/actions/flashloan/MorphoBlueFlashLoanAction.d.ts +16 -0
- package/esm/src/actions/flashloan/MorphoBlueFlashLoanAction.js +18 -0
- package/esm/src/actions/flashloan/MorphoBlueFlashLoanPaybackAction.d.ts +14 -0
- package/esm/src/actions/flashloan/MorphoBlueFlashLoanPaybackAction.js +16 -0
- package/esm/src/actions/flashloan/index.d.ts +3 -0
- package/esm/src/actions/flashloan/index.js +3 -0
- package/esm/src/actions/index.d.ts +3 -1
- package/esm/src/actions/index.js +3 -1
- package/esm/src/actions/lsv/LSVBorrowAction.d.ts +14 -0
- package/esm/src/actions/lsv/LSVBorrowAction.js +19 -0
- package/esm/src/actions/lsv/LSVPaybackAction.d.ts +13 -0
- package/esm/src/actions/lsv/LSVPaybackAction.js +18 -0
- package/esm/src/actions/lsv/LSVSupplyAction.d.ts +15 -0
- package/esm/src/actions/lsv/LSVSupplyAction.js +21 -0
- package/esm/src/actions/lsv/LSVWithdrawAction.d.ts +15 -0
- package/esm/src/actions/lsv/LSVWithdrawAction.js +21 -0
- package/esm/src/actions/lsv/index.d.ts +4 -0
- package/esm/src/actions/lsv/index.js +4 -0
- package/esm/src/actions/maker/MakerGiveAction.d.ts +1 -2
- package/esm/src/actions/maker/MakerGiveAction.js +2 -3
- package/esm/src/actions/morpho/aaveV3/MorphoAaveV3SetManagerAction.d.ts +14 -0
- package/esm/src/actions/morpho/aaveV3/MorphoAaveV3SetManagerAction.js +24 -0
- package/esm/src/actions/morpho/index.d.ts +1 -0
- package/esm/src/actions/morpho/index.js +1 -0
- package/esm/src/actions/morpho-blue/MorphoBlueBorrowAction.d.ts +21 -0
- package/esm/src/actions/morpho-blue/MorphoBlueBorrowAction.js +46 -0
- package/esm/src/actions/morpho-blue/MorphoBluePaybackAction.d.ts +24 -0
- package/esm/src/actions/morpho-blue/MorphoBluePaybackAction.js +46 -0
- package/esm/src/actions/morpho-blue/MorphoBlueSetAuthAction.d.ts +12 -0
- package/esm/src/actions/morpho-blue/MorphoBlueSetAuthAction.js +18 -0
- package/esm/src/actions/morpho-blue/MorphoBlueSetAuthWithSigAction.d.ts +12 -0
- package/esm/src/actions/morpho-blue/MorphoBlueSetAuthWithSigAction.js +21 -0
- package/esm/src/actions/morpho-blue/MorphoBlueSupplyAction.d.ts +24 -0
- package/esm/src/actions/morpho-blue/MorphoBlueSupplyAction.js +46 -0
- package/esm/src/actions/morpho-blue/MorphoBlueSupplyCollateralAction.d.ts +24 -0
- package/esm/src/actions/morpho-blue/MorphoBlueSupplyCollateralAction.js +46 -0
- package/esm/src/actions/morpho-blue/MorphoBlueWithdrawAction.d.ts +21 -0
- package/esm/src/actions/morpho-blue/MorphoBlueWithdrawAction.js +46 -0
- package/esm/src/actions/morpho-blue/MorphoBlueWithdrawCollateralAction.d.ts +21 -0
- package/esm/src/actions/morpho-blue/MorphoBlueWithdrawCollateralAction.js +46 -0
- package/esm/src/actions/morpho-blue/index.d.ts +8 -0
- package/esm/src/actions/morpho-blue/index.js +8 -0
- package/esm/src/addresses.d.ts +79 -3
- package/esm/src/addresses.js +24 -3
- package/esm/src/index.d.ts +316 -12
- package/esm/src/triggers/AaveV2RatioTrigger.d.ts +10 -0
- package/esm/src/triggers/AaveV2RatioTrigger.js +12 -0
- package/esm/src/triggers/CurveUsdCollRatioTrigger.d.ts +10 -0
- package/esm/src/triggers/CurveUsdCollRatioTrigger.js +12 -0
- package/esm/src/triggers/OffchainPriceTrigger.d.ts +10 -0
- package/esm/src/triggers/OffchainPriceTrigger.js +12 -0
- package/esm/src/triggers/index.d.ts +3 -0
- package/esm/src/triggers/index.js +3 -0
- package/esm/src/types.d.ts +20 -20
- package/esm/src/utils/curveusd-utils.d.ts +10 -0
- package/esm/src/utils/curveusd-utils.js +7 -3
- package/package.json +1 -1
- package/src/actions/aave/AaveBorrowAction.ts +9 -0
- package/src/actions/basic/ApproveTokenAction.ts +5 -0
- package/src/actions/basic/ExecuteSafeTxAction.ts +85 -0
- package/src/actions/basic/LSVSellAction.ts +61 -0
- package/src/actions/basic/LimitSellAction.ts +63 -0
- package/src/actions/basic/RemoveTokenApprovalAction.ts +39 -0
- package/src/actions/basic/index.ts +5 -1
- package/src/actions/checkers/AaveV2RatioCheckAction.ts +23 -0
- package/src/actions/checkers/CompoundV2RatioCheckAction.ts +23 -0
- package/src/actions/checkers/CurveUsdCollRatioCheck.ts +25 -0
- package/src/actions/checkers/index.ts +4 -1
- package/src/actions/curveusd/CurveUsdGetDebtAction.ts +21 -0
- package/src/actions/curveusd/index.ts +2 -1
- package/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.ts +35 -0
- package/src/actions/flashloan/FLAction.ts +3 -0
- package/src/actions/flashloan/MorphoBlueFlashLoanAction.ts +25 -0
- package/src/actions/flashloan/MorphoBlueFlashLoanPaybackAction.ts +18 -0
- package/src/actions/flashloan/index.ts +4 -1
- package/src/actions/index.ts +4 -0
- package/src/actions/lsv/LSVBorrowAction.ts +21 -0
- package/src/actions/lsv/LSVPaybackAction.ts +20 -0
- package/src/actions/lsv/LSVSupplyAction.ts +23 -0
- package/src/actions/lsv/LSVWithdrawAction.ts +23 -0
- package/src/actions/lsv/index.ts +4 -0
- package/src/actions/maker/MakerGiveAction.ts +2 -3
- package/src/actions/morpho/aaveV3/MorphoAaveV3SetManagerAction.ts +32 -0
- package/src/actions/morpho/index.ts +1 -0
- package/src/actions/morpho-blue/MorphoBlueBorrowAction.ts +54 -0
- package/src/actions/morpho-blue/MorphoBluePaybackAction.ts +54 -0
- package/src/actions/morpho-blue/MorphoBlueSetAuthAction.ts +25 -0
- package/src/actions/morpho-blue/MorphoBlueSetAuthWithSigAction.ts +39 -0
- package/src/actions/morpho-blue/MorphoBlueSupplyAction.ts +54 -0
- package/src/actions/morpho-blue/MorphoBlueSupplyCollateralAction.ts +54 -0
- package/src/actions/morpho-blue/MorphoBlueWithdrawAction.ts +54 -0
- package/src/actions/morpho-blue/MorphoBlueWithdrawCollateralAction.ts +54 -0
- package/src/actions/morpho-blue/index.ts +8 -0
- package/src/addresses.ts +26 -3
- package/src/triggers/AaveV2RatioTrigger.ts +14 -0
- package/src/triggers/CurveUsdCollRatioTrigger.ts +14 -0
- package/src/triggers/OffchainPriceTrigger.ts +14 -0
- package/src/triggers/index.ts +4 -0
- package/src/utils/basic-utils.ts +1 -1
- package/src/utils/curveusd-utils.ts +7 -3
- package/umd/index.js +1627 -584
- package/yarn-error.log +0 -3976
|
@@ -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 { Action } from '../../Action';
|
|
11
|
+
import { getAddr } from '../../addresses';
|
|
12
|
+
/**
|
|
13
|
+
* MorphoBlueSupplyCollateralAction - Supply token to use as collateral on MorphoBlue
|
|
14
|
+
*
|
|
15
|
+
* @category MorphoBlue
|
|
16
|
+
*/
|
|
17
|
+
export class MorphoBlueSupplyCollateralAction extends Action {
|
|
18
|
+
/**
|
|
19
|
+
* @param loanToken - MarketParams loanToken
|
|
20
|
+
* @param collateralToken - MarketParams collateralToken
|
|
21
|
+
* @param oracle - MarketParams oracle
|
|
22
|
+
* @param irm - MarketParams irm
|
|
23
|
+
* @param lltv - MarketParams lltv
|
|
24
|
+
* @param supplyAmount - Amount of collateral token to supply
|
|
25
|
+
* @param from - Address from which to pull tokens
|
|
26
|
+
* @param onBehalf - On whose behalf to supply tokens as collateral
|
|
27
|
+
*/
|
|
28
|
+
constructor(loanToken, collateralToken, oracle, irm, lltv, supplyAmount, from, onBehalf) {
|
|
29
|
+
super('MorphoBlueSupplyCollateral', getAddr('MorphoBlueSupplyCollateral'), [['address', 'address', 'address', 'address', 'uint256'], 'uint256', 'address', 'address'], [[loanToken, collateralToken, oracle, irm, lltv], supplyAmount, from, onBehalf]);
|
|
30
|
+
this.mappableArgs = [
|
|
31
|
+
this.args[0][0],
|
|
32
|
+
this.args[0][1],
|
|
33
|
+
this.args[0][2],
|
|
34
|
+
this.args[0][3],
|
|
35
|
+
this.args[0][4],
|
|
36
|
+
this.args[1],
|
|
37
|
+
this.args[2],
|
|
38
|
+
this.args[3],
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
getAssetsToApprove() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return [{ asset: this.args[0][1], owner: this.args[2] }];
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* MorphoBlueWithdrawAction - Withdraw interest earning tokens from MorphoBlue
|
|
5
|
+
*
|
|
6
|
+
* @category MorphoBlue
|
|
7
|
+
*/
|
|
8
|
+
export declare class MorphoBlueWithdrawAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param loanToken - MarketParams loanToken
|
|
11
|
+
* @param collateralToken - MarketParams collateralToken
|
|
12
|
+
* @param oracle - MarketParams oracle
|
|
13
|
+
* @param irm - MarketParams irm
|
|
14
|
+
* @param lltv - MarketParams lltv
|
|
15
|
+
* @param withdrawAmount - Amount of tokens to withdraw (uint.max for full withdrawal)
|
|
16
|
+
* @param onBehalf - From whose position should we withdraw tokens
|
|
17
|
+
* @param to - address which will receive withdrawn tokens
|
|
18
|
+
*/
|
|
19
|
+
constructor(loanToken: EthAddress, collateralToken: EthAddress, oracle: EthAddress, irm: EthAddress, lltv: uint256, withdrawAmount: uint256, onBehalf: EthAddress, to: EthAddress);
|
|
20
|
+
getAssetsToApprove(): Promise<never[]>;
|
|
21
|
+
}
|
|
@@ -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 { Action } from '../../Action';
|
|
11
|
+
import { getAddr } from '../../addresses';
|
|
12
|
+
/**
|
|
13
|
+
* MorphoBlueWithdrawAction - Withdraw interest earning tokens from MorphoBlue
|
|
14
|
+
*
|
|
15
|
+
* @category MorphoBlue
|
|
16
|
+
*/
|
|
17
|
+
export class MorphoBlueWithdrawAction extends Action {
|
|
18
|
+
/**
|
|
19
|
+
* @param loanToken - MarketParams loanToken
|
|
20
|
+
* @param collateralToken - MarketParams collateralToken
|
|
21
|
+
* @param oracle - MarketParams oracle
|
|
22
|
+
* @param irm - MarketParams irm
|
|
23
|
+
* @param lltv - MarketParams lltv
|
|
24
|
+
* @param withdrawAmount - Amount of tokens to withdraw (uint.max for full withdrawal)
|
|
25
|
+
* @param onBehalf - From whose position should we withdraw tokens
|
|
26
|
+
* @param to - address which will receive withdrawn tokens
|
|
27
|
+
*/
|
|
28
|
+
constructor(loanToken, collateralToken, oracle, irm, lltv, withdrawAmount, onBehalf, to) {
|
|
29
|
+
super('MorphoBlueWithdraw', getAddr('MorphoBlueWithdraw'), [['address', 'address', 'address', 'address', 'uint256'], 'uint256', 'address', 'address'], [[loanToken, collateralToken, oracle, irm, lltv], withdrawAmount, onBehalf, to]);
|
|
30
|
+
this.mappableArgs = [
|
|
31
|
+
this.args[0][0],
|
|
32
|
+
this.args[0][1],
|
|
33
|
+
this.args[0][2],
|
|
34
|
+
this.args[0][3],
|
|
35
|
+
this.args[0][4],
|
|
36
|
+
this.args[1],
|
|
37
|
+
this.args[2],
|
|
38
|
+
this.args[3],
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
getAssetsToApprove() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return [];
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* MorphoBlueWithdrawCollateralAction - Withdraw tokens that are used as collateral on MorphoBlue
|
|
5
|
+
*
|
|
6
|
+
* @category MorphoBlue
|
|
7
|
+
*/
|
|
8
|
+
export declare class MorphoBlueWithdrawCollateralAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param loanToken - MarketParams loanToken
|
|
11
|
+
* @param collateralToken - MarketParams collateralToken
|
|
12
|
+
* @param oracle - MarketParams oracle
|
|
13
|
+
* @param irm - MarketParams irm
|
|
14
|
+
* @param lltv - MarketParams lltv
|
|
15
|
+
* @param withdrawAmount - Amount of tokens to withdraw
|
|
16
|
+
* @param onBehalf - From whose position should we withdraw tokens
|
|
17
|
+
* @param to - address which will receive withdrawn tokens
|
|
18
|
+
*/
|
|
19
|
+
constructor(loanToken: EthAddress, collateralToken: EthAddress, oracle: EthAddress, irm: EthAddress, lltv: uint256, withdrawAmount: uint256, onBehalf: EthAddress, to: EthAddress);
|
|
20
|
+
getAssetsToApprove(): Promise<never[]>;
|
|
21
|
+
}
|
|
@@ -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 { Action } from '../../Action';
|
|
11
|
+
import { getAddr } from '../../addresses';
|
|
12
|
+
/**
|
|
13
|
+
* MorphoBlueWithdrawCollateralAction - Withdraw tokens that are used as collateral on MorphoBlue
|
|
14
|
+
*
|
|
15
|
+
* @category MorphoBlue
|
|
16
|
+
*/
|
|
17
|
+
export class MorphoBlueWithdrawCollateralAction extends Action {
|
|
18
|
+
/**
|
|
19
|
+
* @param loanToken - MarketParams loanToken
|
|
20
|
+
* @param collateralToken - MarketParams collateralToken
|
|
21
|
+
* @param oracle - MarketParams oracle
|
|
22
|
+
* @param irm - MarketParams irm
|
|
23
|
+
* @param lltv - MarketParams lltv
|
|
24
|
+
* @param withdrawAmount - Amount of tokens to withdraw
|
|
25
|
+
* @param onBehalf - From whose position should we withdraw tokens
|
|
26
|
+
* @param to - address which will receive withdrawn tokens
|
|
27
|
+
*/
|
|
28
|
+
constructor(loanToken, collateralToken, oracle, irm, lltv, withdrawAmount, onBehalf, to) {
|
|
29
|
+
super('MorphoBlueWithdrawCollateral', getAddr('MorphoBlueWithdrawCollateral'), [['address', 'address', 'address', 'address', 'uint256'], 'uint256', 'address', 'address'], [[loanToken, collateralToken, oracle, irm, lltv], withdrawAmount, onBehalf, to]);
|
|
30
|
+
this.mappableArgs = [
|
|
31
|
+
this.args[0][0],
|
|
32
|
+
this.args[0][1],
|
|
33
|
+
this.args[0][2],
|
|
34
|
+
this.args[0][3],
|
|
35
|
+
this.args[0][4],
|
|
36
|
+
this.args[1],
|
|
37
|
+
this.args[2],
|
|
38
|
+
this.args[3],
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
getAssetsToApprove() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return [];
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './MorphoBlueSupplyAction';
|
|
2
|
+
export * from './MorphoBlueSupplyCollateralAction';
|
|
3
|
+
export * from './MorphoBlueBorrowAction';
|
|
4
|
+
export * from './MorphoBluePaybackAction';
|
|
5
|
+
export * from './MorphoBlueWithdrawCollateralAction';
|
|
6
|
+
export * from './MorphoBlueWithdrawAction';
|
|
7
|
+
export * from './MorphoBlueSetAuthAction';
|
|
8
|
+
export * from './MorphoBlueSetAuthWithSigAction';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './MorphoBlueSupplyAction';
|
|
2
|
+
export * from './MorphoBlueSupplyCollateralAction';
|
|
3
|
+
export * from './MorphoBlueBorrowAction';
|
|
4
|
+
export * from './MorphoBluePaybackAction';
|
|
5
|
+
export * from './MorphoBlueWithdrawCollateralAction';
|
|
6
|
+
export * from './MorphoBlueWithdrawAction';
|
|
7
|
+
export * from './MorphoBlueSetAuthAction';
|
|
8
|
+
export * from './MorphoBlueSetAuthWithSigAction';
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const actionAddresses: {
|
|
|
15
15
|
UpdateSub: string;
|
|
16
16
|
TransferNFT: string;
|
|
17
17
|
CreateSub: string;
|
|
18
|
+
ApproveToken: string;
|
|
18
19
|
SDaiWrap: string;
|
|
19
20
|
SDaiUnwrap: string;
|
|
20
21
|
TokenizedVaultAdapter: string;
|
|
@@ -55,6 +56,11 @@ export declare const actionAddresses: {
|
|
|
55
56
|
AaveV3Borrow: string;
|
|
56
57
|
AaveV3ATokenPayback: string;
|
|
57
58
|
AaveV3View: string;
|
|
59
|
+
LSVWithdraw: string;
|
|
60
|
+
LSVBorrow: string;
|
|
61
|
+
LSVSupply: string;
|
|
62
|
+
LSVPayback: string;
|
|
63
|
+
LSVSell: string;
|
|
58
64
|
MorphoAaveV2Borrow: string;
|
|
59
65
|
MorphoAaveV2Payback: string;
|
|
60
66
|
MorphoAaveV2Supply: string;
|
|
@@ -64,6 +70,7 @@ export declare const actionAddresses: {
|
|
|
64
70
|
MorphoAaveV3Payback: string;
|
|
65
71
|
MorphoAaveV3Supply: string;
|
|
66
72
|
MorphoAaveV3Withdraw: string;
|
|
73
|
+
MorphoAaveV3SetManager: string;
|
|
67
74
|
SparkBorrow: string;
|
|
68
75
|
SparkClaimRewards: string;
|
|
69
76
|
SparkCollateralSwitch: string;
|
|
@@ -83,6 +90,7 @@ export declare const actionAddresses: {
|
|
|
83
90
|
CompCollateralSwitch: string;
|
|
84
91
|
FLAaveV2: string;
|
|
85
92
|
FLAaveV3NoFee: string;
|
|
93
|
+
FLAaveV3CarryDebt: string;
|
|
86
94
|
FLAaveV3: string;
|
|
87
95
|
FLDyDx: string;
|
|
88
96
|
FLMaker: string;
|
|
@@ -91,6 +99,7 @@ export declare const actionAddresses: {
|
|
|
91
99
|
FLAction: string;
|
|
92
100
|
FLUniV3: string;
|
|
93
101
|
FLGho: string;
|
|
102
|
+
FLMorphoBlue: string;
|
|
94
103
|
UniSupply: string;
|
|
95
104
|
UniWithdraw: string;
|
|
96
105
|
UniCollectV3: string;
|
|
@@ -171,7 +180,17 @@ export declare const actionAddresses: {
|
|
|
171
180
|
CurveUsdSwapper: string;
|
|
172
181
|
CurveUsdSelfLiquidate: string;
|
|
173
182
|
CurveUsdSelfLiquidateWithColl: string;
|
|
174
|
-
|
|
183
|
+
CurveUsdGetDebt: string;
|
|
184
|
+
CurveUsdCollRatioTrigger: string;
|
|
185
|
+
CurveUsdCollRatioCheck: string;
|
|
186
|
+
MorphoBlueSupply: string;
|
|
187
|
+
MorphoBlueSupplyCollateral: string;
|
|
188
|
+
MorphoBlueWithdraw: string;
|
|
189
|
+
MorphoBlueWithdrawCollateral: string;
|
|
190
|
+
MorphoBlueBorrow: string;
|
|
191
|
+
MorphoBluePayback: string;
|
|
192
|
+
MorphoBlueSetAuth: string;
|
|
193
|
+
MorphoBlueSetAuthWithSig: string;
|
|
175
194
|
AaveV3DelegateCredit?: undefined;
|
|
176
195
|
AaveV3RatioTrigger?: undefined;
|
|
177
196
|
GasFeeTakerL2?: undefined;
|
|
@@ -245,6 +264,11 @@ export declare const actionAddresses: {
|
|
|
245
264
|
AaveClaimAAVE?: undefined;
|
|
246
265
|
AaveClaimStkAave?: undefined;
|
|
247
266
|
AaveV3View?: undefined;
|
|
267
|
+
LSVWithdraw?: undefined;
|
|
268
|
+
LSVBorrow?: undefined;
|
|
269
|
+
LSVSupply?: undefined;
|
|
270
|
+
LSVPayback?: undefined;
|
|
271
|
+
LSVSell?: undefined;
|
|
248
272
|
MorphoAaveV2Borrow?: undefined;
|
|
249
273
|
MorphoAaveV2Payback?: undefined;
|
|
250
274
|
MorphoAaveV2Supply?: undefined;
|
|
@@ -254,6 +278,7 @@ export declare const actionAddresses: {
|
|
|
254
278
|
MorphoAaveV3Payback?: undefined;
|
|
255
279
|
MorphoAaveV3Supply?: undefined;
|
|
256
280
|
MorphoAaveV3Withdraw?: undefined;
|
|
281
|
+
MorphoAaveV3SetManager?: undefined;
|
|
257
282
|
SparkBorrow?: undefined;
|
|
258
283
|
SparkClaimRewards?: undefined;
|
|
259
284
|
SparkCollateralSwitch?: undefined;
|
|
@@ -272,11 +297,13 @@ export declare const actionAddresses: {
|
|
|
272
297
|
CompGetDebt?: undefined;
|
|
273
298
|
CompCollateralSwitch?: undefined;
|
|
274
299
|
FLAaveV2?: undefined;
|
|
300
|
+
FLAaveV3CarryDebt?: undefined;
|
|
275
301
|
FLDyDx?: undefined;
|
|
276
302
|
FLMaker?: undefined;
|
|
277
303
|
FLSpark?: undefined;
|
|
278
304
|
FLUniV3?: undefined;
|
|
279
305
|
FLGho?: undefined;
|
|
306
|
+
FLMorphoBlue?: undefined;
|
|
280
307
|
UniSupply?: undefined;
|
|
281
308
|
UniWithdraw?: undefined;
|
|
282
309
|
DyDxWithdraw?: undefined;
|
|
@@ -352,6 +379,17 @@ export declare const actionAddresses: {
|
|
|
352
379
|
CurveUsdSwapper?: undefined;
|
|
353
380
|
CurveUsdSelfLiquidate?: undefined;
|
|
354
381
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
382
|
+
CurveUsdGetDebt?: undefined;
|
|
383
|
+
CurveUsdCollRatioTrigger?: undefined;
|
|
384
|
+
CurveUsdCollRatioCheck?: undefined;
|
|
385
|
+
MorphoBlueSupply?: undefined;
|
|
386
|
+
MorphoBlueSupplyCollateral?: undefined;
|
|
387
|
+
MorphoBlueWithdraw?: undefined;
|
|
388
|
+
MorphoBlueWithdrawCollateral?: undefined;
|
|
389
|
+
MorphoBlueBorrow?: undefined;
|
|
390
|
+
MorphoBluePayback?: undefined;
|
|
391
|
+
MorphoBlueSetAuth?: undefined;
|
|
392
|
+
MorphoBlueSetAuthWithSig?: undefined;
|
|
355
393
|
} | {
|
|
356
394
|
DFSSell: string;
|
|
357
395
|
WrapEth: string;
|
|
@@ -395,6 +433,7 @@ export declare const actionAddresses: {
|
|
|
395
433
|
UpdateSub?: undefined;
|
|
396
434
|
TransferNFT?: undefined;
|
|
397
435
|
CreateSub?: undefined;
|
|
436
|
+
ApproveToken?: undefined;
|
|
398
437
|
SDaiWrap?: undefined;
|
|
399
438
|
SDaiUnwrap?: undefined;
|
|
400
439
|
McdGenerate?: undefined;
|
|
@@ -425,6 +464,11 @@ export declare const actionAddresses: {
|
|
|
425
464
|
AaveClaimStkAave?: undefined;
|
|
426
465
|
AaveV3ClaimRewards?: undefined;
|
|
427
466
|
AaveV3View?: undefined;
|
|
467
|
+
LSVWithdraw?: undefined;
|
|
468
|
+
LSVBorrow?: undefined;
|
|
469
|
+
LSVSupply?: undefined;
|
|
470
|
+
LSVPayback?: undefined;
|
|
471
|
+
LSVSell?: undefined;
|
|
428
472
|
MorphoAaveV2Borrow?: undefined;
|
|
429
473
|
MorphoAaveV2Payback?: undefined;
|
|
430
474
|
MorphoAaveV2Supply?: undefined;
|
|
@@ -434,6 +478,7 @@ export declare const actionAddresses: {
|
|
|
434
478
|
MorphoAaveV3Payback?: undefined;
|
|
435
479
|
MorphoAaveV3Supply?: undefined;
|
|
436
480
|
MorphoAaveV3Withdraw?: undefined;
|
|
481
|
+
MorphoAaveV3SetManager?: undefined;
|
|
437
482
|
SparkBorrow?: undefined;
|
|
438
483
|
SparkClaimRewards?: undefined;
|
|
439
484
|
SparkCollateralSwitch?: undefined;
|
|
@@ -452,11 +497,13 @@ export declare const actionAddresses: {
|
|
|
452
497
|
CompGetDebt?: undefined;
|
|
453
498
|
CompCollateralSwitch?: undefined;
|
|
454
499
|
FLAaveV2?: undefined;
|
|
500
|
+
FLAaveV3CarryDebt?: undefined;
|
|
455
501
|
FLDyDx?: undefined;
|
|
456
502
|
FLMaker?: undefined;
|
|
457
503
|
FLSpark?: undefined;
|
|
458
504
|
FLUniV3?: undefined;
|
|
459
505
|
FLGho?: undefined;
|
|
506
|
+
FLMorphoBlue?: undefined;
|
|
460
507
|
UniSupply?: undefined;
|
|
461
508
|
UniWithdraw?: undefined;
|
|
462
509
|
DyDxWithdraw?: undefined;
|
|
@@ -525,7 +572,17 @@ export declare const actionAddresses: {
|
|
|
525
572
|
CurveUsdSwapper?: undefined;
|
|
526
573
|
CurveUsdSelfLiquidate?: undefined;
|
|
527
574
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
528
|
-
|
|
575
|
+
CurveUsdGetDebt?: undefined;
|
|
576
|
+
CurveUsdCollRatioTrigger?: undefined;
|
|
577
|
+
CurveUsdCollRatioCheck?: undefined;
|
|
578
|
+
MorphoBlueSupply?: undefined;
|
|
579
|
+
MorphoBlueSupplyCollateral?: undefined;
|
|
580
|
+
MorphoBlueWithdraw?: undefined;
|
|
581
|
+
MorphoBlueWithdrawCollateral?: undefined;
|
|
582
|
+
MorphoBlueBorrow?: undefined;
|
|
583
|
+
MorphoBluePayback?: undefined;
|
|
584
|
+
MorphoBlueSetAuth?: undefined;
|
|
585
|
+
MorphoBlueSetAuthWithSig?: undefined;
|
|
529
586
|
AaveV3DelegateCredit?: undefined;
|
|
530
587
|
AaveV3RatioTrigger?: undefined;
|
|
531
588
|
} | {
|
|
@@ -564,6 +621,7 @@ export declare const actionAddresses: {
|
|
|
564
621
|
UpdateSub?: undefined;
|
|
565
622
|
TransferNFT?: undefined;
|
|
566
623
|
CreateSub?: undefined;
|
|
624
|
+
ApproveToken?: undefined;
|
|
567
625
|
SDaiWrap?: undefined;
|
|
568
626
|
SDaiUnwrap?: undefined;
|
|
569
627
|
TokenizedVaultAdapter?: undefined;
|
|
@@ -593,6 +651,11 @@ export declare const actionAddresses: {
|
|
|
593
651
|
AaveUnstake?: undefined;
|
|
594
652
|
AaveClaimAAVE?: undefined;
|
|
595
653
|
AaveClaimStkAave?: undefined;
|
|
654
|
+
LSVWithdraw?: undefined;
|
|
655
|
+
LSVBorrow?: undefined;
|
|
656
|
+
LSVSupply?: undefined;
|
|
657
|
+
LSVPayback?: undefined;
|
|
658
|
+
LSVSell?: undefined;
|
|
596
659
|
MorphoAaveV2Borrow?: undefined;
|
|
597
660
|
MorphoAaveV2Payback?: undefined;
|
|
598
661
|
MorphoAaveV2Supply?: undefined;
|
|
@@ -602,6 +665,7 @@ export declare const actionAddresses: {
|
|
|
602
665
|
MorphoAaveV3Payback?: undefined;
|
|
603
666
|
MorphoAaveV3Supply?: undefined;
|
|
604
667
|
MorphoAaveV3Withdraw?: undefined;
|
|
668
|
+
MorphoAaveV3SetManager?: undefined;
|
|
605
669
|
SparkBorrow?: undefined;
|
|
606
670
|
SparkClaimRewards?: undefined;
|
|
607
671
|
SparkCollateralSwitch?: undefined;
|
|
@@ -621,11 +685,13 @@ export declare const actionAddresses: {
|
|
|
621
685
|
CompCollateralSwitch?: undefined;
|
|
622
686
|
FLAaveV2?: undefined;
|
|
623
687
|
FLAaveV3NoFee?: undefined;
|
|
688
|
+
FLAaveV3CarryDebt?: undefined;
|
|
624
689
|
FLDyDx?: undefined;
|
|
625
690
|
FLMaker?: undefined;
|
|
626
691
|
FLSpark?: undefined;
|
|
627
692
|
FLAction?: undefined;
|
|
628
693
|
FLGho?: undefined;
|
|
694
|
+
FLMorphoBlue?: undefined;
|
|
629
695
|
UniSupply?: undefined;
|
|
630
696
|
UniWithdraw?: undefined;
|
|
631
697
|
UniCollectV3?: undefined;
|
|
@@ -699,7 +765,17 @@ export declare const actionAddresses: {
|
|
|
699
765
|
CurveUsdSwapper?: undefined;
|
|
700
766
|
CurveUsdSelfLiquidate?: undefined;
|
|
701
767
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
702
|
-
|
|
768
|
+
CurveUsdGetDebt?: undefined;
|
|
769
|
+
CurveUsdCollRatioTrigger?: undefined;
|
|
770
|
+
CurveUsdCollRatioCheck?: undefined;
|
|
771
|
+
MorphoBlueSupply?: undefined;
|
|
772
|
+
MorphoBlueSupplyCollateral?: undefined;
|
|
773
|
+
MorphoBlueWithdraw?: undefined;
|
|
774
|
+
MorphoBlueWithdrawCollateral?: undefined;
|
|
775
|
+
MorphoBlueBorrow?: undefined;
|
|
776
|
+
MorphoBluePayback?: undefined;
|
|
777
|
+
MorphoBlueSetAuth?: undefined;
|
|
778
|
+
MorphoBlueSetAuthWithSig?: undefined;
|
|
703
779
|
AaveV3DelegateCredit?: undefined;
|
|
704
780
|
AaveV3RatioTrigger?: undefined;
|
|
705
781
|
GasFeeTakerL2?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -16,11 +16,12 @@ export const actionAddresses = {
|
|
|
16
16
|
UpdateSub: '0xF6Cb8f7e61a64075ec8FAC3f298745605E543233',
|
|
17
17
|
TransferNFT: '0x861e893E1796F81248e75F06C0b09Abdc8fe2f6F',
|
|
18
18
|
CreateSub: '0x7308e88BB21B934478E75bB6A2143b8cfDFf2961',
|
|
19
|
+
ApproveToken: '0xA4161cED7A29F0a3424e464a4a2dBf75888c5BF9',
|
|
19
20
|
SDaiWrap: '0xac7Ac294F29d818D26Bd9DF86d36904B1Ed346Ae',
|
|
20
21
|
SDaiUnwrap: '0xe8Cb536BB96075241c4bd8f1831A8577562F2B32',
|
|
21
22
|
TokenizedVaultAdapter: '0x3944364Ce3a273D269707484F3a676fCa17E08b8',
|
|
22
23
|
// exchange
|
|
23
|
-
DFSSell: '
|
|
24
|
+
DFSSell: '0x561013c605A17f5dC5b738C8a3fF9c5F33DbC3d8',
|
|
24
25
|
// maker
|
|
25
26
|
McdGenerate: '0xCb50a91C0f12f439b8bf11E9474B9c1ED62Bf7a3',
|
|
26
27
|
McdGive: '0xf9556A87BF424834FDe7De0547b58E36Cb42EF01',
|
|
@@ -62,6 +63,12 @@ export const actionAddresses = {
|
|
|
62
63
|
AaveV3Borrow: '0x7079ba1Bd00EeFCD2a260BbD6D088230505e3858',
|
|
63
64
|
AaveV3ATokenPayback: '0xDe5c012cd1878D86E91309593764895a3adb380E',
|
|
64
65
|
AaveV3View: '0x9ECB0645b357fDD7B92789B91595160862Bd45d0',
|
|
66
|
+
// LSV action
|
|
67
|
+
LSVWithdraw: '0x0A4Ef5ADf759064b546441a50109eCbC2528A455',
|
|
68
|
+
LSVBorrow: '0x7dFB434527Fdb39854156cDBa9bF4799E36E7e82',
|
|
69
|
+
LSVSupply: '0x984c00DC098c98bed1CDfe2Ed786Fe1443da6671',
|
|
70
|
+
LSVPayback: '0x10749CE97583dBcEb54a083386CC8438C4e0FE65',
|
|
71
|
+
LSVSell: '0x0c1bb9A39d4A0EF4215Ade19Ce4F954E8419Dfd7',
|
|
65
72
|
// morpho aave v2
|
|
66
73
|
MorphoAaveV2Borrow: '0xa85C3E41Bf9F75a381927e1Aa9b00f77C4631109',
|
|
67
74
|
MorphoAaveV2Payback: '0x5dd0E0835acbb08aa4A4599d70fB2d93969fa7b7',
|
|
@@ -73,6 +80,7 @@ export const actionAddresses = {
|
|
|
73
80
|
MorphoAaveV3Payback: '0x36b8b968c81D97cBfAa642e206b634A6f378d287',
|
|
74
81
|
MorphoAaveV3Supply: '0x51fA8FBc6F0aDEfe2FBA06104FCA39f5beD69291',
|
|
75
82
|
MorphoAaveV3Withdraw: '0xdc3e74C4cD577275296ceFE36A3D082223AfF206',
|
|
83
|
+
MorphoAaveV3SetManager: '0x1082AE0565504E3617BD5b6E80f91B59b81a82D9',
|
|
76
84
|
// spark
|
|
77
85
|
SparkBorrow: '0x3E2C366065bA0f6f9936C2C6A802D72F250b27AA',
|
|
78
86
|
SparkClaimRewards: '0x9C3E31f42a46676785C72401cD4F2287b355b003',
|
|
@@ -95,14 +103,16 @@ export const actionAddresses = {
|
|
|
95
103
|
// flashloan
|
|
96
104
|
FLAaveV2: '0xEA55576383C96A69B3E8beD51Ce0d0294001bc5F',
|
|
97
105
|
FLAaveV3NoFee: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
|
|
106
|
+
FLAaveV3CarryDebt: '0x7BdD8ACE8a48B7032Df68B7f53E0D6D9Ea9411A7',
|
|
98
107
|
FLAaveV3: '0x5021d70aB7D757D61E0230c472ff89b8B2B8705e',
|
|
99
108
|
FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
|
|
100
109
|
FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
|
|
101
110
|
FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
|
|
102
111
|
FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
|
|
103
|
-
FLAction: '
|
|
112
|
+
FLAction: '0x2b10B000292745099Deb15304A247c0816bd8b73',
|
|
104
113
|
FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
|
|
105
114
|
FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
|
|
115
|
+
FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
|
|
106
116
|
// uniswap
|
|
107
117
|
UniSupply: '0x9935e12F0218E61c27D7f23eAC9A9D6881a078eC',
|
|
108
118
|
UniWithdraw: '0xf8bb8F68b0A45DC315F3f7602a60cfb274B00951',
|
|
@@ -200,6 +210,17 @@ export const actionAddresses = {
|
|
|
200
210
|
CurveUsdSwapper: '0xFA8c594b903651F97b27aCADEa83b720cfD7F80b',
|
|
201
211
|
CurveUsdSelfLiquidate: '0xd90d8a4955DfE9D4f45F7f60595313B0925ee1da',
|
|
202
212
|
CurveUsdSelfLiquidateWithColl: '0x7cE305FC2A18c6820a533AD418dC0A549aFeDcAF',
|
|
213
|
+
CurveUsdGetDebt: '0x3Bb41d3f300dA758780fe7696bb4fB93cD7172fB',
|
|
214
|
+
CurveUsdCollRatioTrigger: '0xFCc610809b735BB13E583c5E46595457083D2b0c',
|
|
215
|
+
CurveUsdCollRatioCheck: '0x8c65f37ca216de1625886431249be13ead051388',
|
|
216
|
+
MorphoBlueSupply: '0x1D0F6027Eeb118dEc06055735eE840E3Fe3E6f9a',
|
|
217
|
+
MorphoBlueSupplyCollateral: '0x1cdAC5D4b207e8DBd308504BbedD5D1BD19D26ac',
|
|
218
|
+
MorphoBlueWithdraw: '0xE97c7D2838D068C967B7c40080e09A08B9b11fca',
|
|
219
|
+
MorphoBlueWithdrawCollateral: '0xF339F5272E48f9b2c074dcCF7e169259465A4872',
|
|
220
|
+
MorphoBlueBorrow: '0xcc05A3e06DA9Bd2827C7e86a96C63EAda3935AA0',
|
|
221
|
+
MorphoBluePayback: '0x9f437E5F705E02d77adC2e72C34926978776b085',
|
|
222
|
+
MorphoBlueSetAuth: '0xf30935e20c6357c7bcecd5e58ad6de26d54b9f64',
|
|
223
|
+
MorphoBlueSetAuthWithSig: '0xE2d5fCDBf73BAd24A0FCAf6B2733933A98021808',
|
|
203
224
|
},
|
|
204
225
|
[NETWORKS.optimism.chainId]: {
|
|
205
226
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
|
@@ -316,7 +337,7 @@ export const actionAddresses = {
|
|
|
316
337
|
};
|
|
317
338
|
export const otherAddresses = {
|
|
318
339
|
[NETWORKS.ethereum.chainId]: {
|
|
319
|
-
RecipeExecutor: '
|
|
340
|
+
RecipeExecutor: '0x10B748Dc504C2515Bb6A9e23CB2F686090b6c584',
|
|
320
341
|
DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
|
|
321
342
|
DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
|
|
322
343
|
ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
|