@defisaver/sdk 1.0.62 → 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/basic/ExecuteSafeTxAction.d.ts +23 -0
- package/esm/src/actions/basic/ExecuteSafeTxAction.js +60 -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 +3 -0
- package/esm/src/actions/basic/index.js +3 -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 +2 -0
- package/esm/src/actions/flashloan/index.js +2 -0
- package/esm/src/actions/index.d.ts +2 -1
- package/esm/src/actions/index.js +2 -1
- package/esm/src/actions/maker/MakerGiveAction.d.ts +1 -2
- package/esm/src/actions/maker/MakerGiveAction.js +2 -3
- 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 +36 -0
- package/esm/src/addresses.js +12 -3
- package/esm/src/index.d.ts +144 -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 +1 -0
- package/esm/src/triggers/index.js +1 -0
- package/esm/src/types.d.ts +20 -20
- package/package.json +1 -1
- package/src/actions/basic/ExecuteSafeTxAction.ts +85 -0
- package/src/actions/basic/LimitSellAction.ts +63 -0
- package/src/actions/basic/RemoveTokenApprovalAction.ts +39 -0
- package/src/actions/basic/index.ts +3 -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 +3 -1
- package/src/actions/index.ts +2 -0
- package/src/actions/maker/MakerGiveAction.ts +2 -3
- 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 +13 -3
- package/src/triggers/OffchainPriceTrigger.ts +14 -0
- package/src/triggers/index.ts +2 -0
- package/umd/index.js +1703 -1086
- 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
|
+
* MorphoBlueSupplyAction - Supply token as a lender on MorphoBlue to earn interest
|
|
14
|
+
*
|
|
15
|
+
* @category MorphoBlue
|
|
16
|
+
*/
|
|
17
|
+
export class MorphoBlueSupplyAction 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 loanToken to supply
|
|
25
|
+
* @param from - Address from which to pull tokens
|
|
26
|
+
* @param onBehalf - on whose behalf to supply the tokens
|
|
27
|
+
*/
|
|
28
|
+
constructor(loanToken, collateralToken, oracle, irm, lltv, supplyAmount, from, onBehalf) {
|
|
29
|
+
super('MorphoBlueSupply', getAddr('MorphoBlueSupply'), [['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][0], owner: this.args[2] }];
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* MorphoBlueSupplyCollateralAction - Supply token to use as collateral on MorphoBlue
|
|
5
|
+
*
|
|
6
|
+
* @category MorphoBlue
|
|
7
|
+
*/
|
|
8
|
+
export declare class MorphoBlueSupplyCollateralAction 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 supplyAmount - Amount of collateral token to supply
|
|
16
|
+
* @param from - Address from which to pull tokens
|
|
17
|
+
* @param onBehalf - On whose behalf to supply tokens as collateral
|
|
18
|
+
*/
|
|
19
|
+
constructor(loanToken: EthAddress, collateralToken: EthAddress, oracle: EthAddress, irm: EthAddress, lltv: uint256, supplyAmount: uint256, from: EthAddress, onBehalf: EthAddress);
|
|
20
|
+
getAssetsToApprove(): Promise<{
|
|
21
|
+
asset: any;
|
|
22
|
+
owner: any;
|
|
23
|
+
}[]>;
|
|
24
|
+
}
|
|
@@ -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
|
@@ -99,6 +99,7 @@ export declare const actionAddresses: {
|
|
|
99
99
|
FLAction: string;
|
|
100
100
|
FLUniV3: string;
|
|
101
101
|
FLGho: string;
|
|
102
|
+
FLMorphoBlue: string;
|
|
102
103
|
UniSupply: string;
|
|
103
104
|
UniWithdraw: string;
|
|
104
105
|
UniCollectV3: string;
|
|
@@ -182,6 +183,14 @@ export declare const actionAddresses: {
|
|
|
182
183
|
CurveUsdGetDebt: string;
|
|
183
184
|
CurveUsdCollRatioTrigger: string;
|
|
184
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;
|
|
185
194
|
AaveV3DelegateCredit?: undefined;
|
|
186
195
|
AaveV3RatioTrigger?: undefined;
|
|
187
196
|
GasFeeTakerL2?: undefined;
|
|
@@ -294,6 +303,7 @@ export declare const actionAddresses: {
|
|
|
294
303
|
FLSpark?: undefined;
|
|
295
304
|
FLUniV3?: undefined;
|
|
296
305
|
FLGho?: undefined;
|
|
306
|
+
FLMorphoBlue?: undefined;
|
|
297
307
|
UniSupply?: undefined;
|
|
298
308
|
UniWithdraw?: undefined;
|
|
299
309
|
DyDxWithdraw?: undefined;
|
|
@@ -372,6 +382,14 @@ export declare const actionAddresses: {
|
|
|
372
382
|
CurveUsdGetDebt?: undefined;
|
|
373
383
|
CurveUsdCollRatioTrigger?: undefined;
|
|
374
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;
|
|
375
393
|
} | {
|
|
376
394
|
DFSSell: string;
|
|
377
395
|
WrapEth: string;
|
|
@@ -485,6 +503,7 @@ export declare const actionAddresses: {
|
|
|
485
503
|
FLSpark?: undefined;
|
|
486
504
|
FLUniV3?: undefined;
|
|
487
505
|
FLGho?: undefined;
|
|
506
|
+
FLMorphoBlue?: undefined;
|
|
488
507
|
UniSupply?: undefined;
|
|
489
508
|
UniWithdraw?: undefined;
|
|
490
509
|
DyDxWithdraw?: undefined;
|
|
@@ -556,6 +575,14 @@ export declare const actionAddresses: {
|
|
|
556
575
|
CurveUsdGetDebt?: undefined;
|
|
557
576
|
CurveUsdCollRatioTrigger?: undefined;
|
|
558
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;
|
|
559
586
|
AaveV3DelegateCredit?: undefined;
|
|
560
587
|
AaveV3RatioTrigger?: undefined;
|
|
561
588
|
} | {
|
|
@@ -664,6 +691,7 @@ export declare const actionAddresses: {
|
|
|
664
691
|
FLSpark?: undefined;
|
|
665
692
|
FLAction?: undefined;
|
|
666
693
|
FLGho?: undefined;
|
|
694
|
+
FLMorphoBlue?: undefined;
|
|
667
695
|
UniSupply?: undefined;
|
|
668
696
|
UniWithdraw?: undefined;
|
|
669
697
|
UniCollectV3?: undefined;
|
|
@@ -740,6 +768,14 @@ export declare const actionAddresses: {
|
|
|
740
768
|
CurveUsdGetDebt?: undefined;
|
|
741
769
|
CurveUsdCollRatioTrigger?: undefined;
|
|
742
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;
|
|
743
779
|
AaveV3DelegateCredit?: undefined;
|
|
744
780
|
AaveV3RatioTrigger?: undefined;
|
|
745
781
|
GasFeeTakerL2?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -21,7 +21,7 @@ export const actionAddresses = {
|
|
|
21
21
|
SDaiUnwrap: '0xe8Cb536BB96075241c4bd8f1831A8577562F2B32',
|
|
22
22
|
TokenizedVaultAdapter: '0x3944364Ce3a273D269707484F3a676fCa17E08b8',
|
|
23
23
|
// exchange
|
|
24
|
-
DFSSell: '
|
|
24
|
+
DFSSell: '0x561013c605A17f5dC5b738C8a3fF9c5F33DbC3d8',
|
|
25
25
|
// maker
|
|
26
26
|
McdGenerate: '0xCb50a91C0f12f439b8bf11E9474B9c1ED62Bf7a3',
|
|
27
27
|
McdGive: '0xf9556A87BF424834FDe7De0547b58E36Cb42EF01',
|
|
@@ -109,9 +109,10 @@ export const actionAddresses = {
|
|
|
109
109
|
FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
|
|
110
110
|
FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
|
|
111
111
|
FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
|
|
112
|
-
FLAction: '
|
|
112
|
+
FLAction: '0x2b10B000292745099Deb15304A247c0816bd8b73',
|
|
113
113
|
FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
|
|
114
114
|
FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
|
|
115
|
+
FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
|
|
115
116
|
// uniswap
|
|
116
117
|
UniSupply: '0x9935e12F0218E61c27D7f23eAC9A9D6881a078eC',
|
|
117
118
|
UniWithdraw: '0xf8bb8F68b0A45DC315F3f7602a60cfb274B00951',
|
|
@@ -212,6 +213,14 @@ export const actionAddresses = {
|
|
|
212
213
|
CurveUsdGetDebt: '0x3Bb41d3f300dA758780fe7696bb4fB93cD7172fB',
|
|
213
214
|
CurveUsdCollRatioTrigger: '0xFCc610809b735BB13E583c5E46595457083D2b0c',
|
|
214
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',
|
|
215
224
|
},
|
|
216
225
|
[NETWORKS.optimism.chainId]: {
|
|
217
226
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
|
@@ -328,7 +337,7 @@ export const actionAddresses = {
|
|
|
328
337
|
};
|
|
329
338
|
export const otherAddresses = {
|
|
330
339
|
[NETWORKS.ethereum.chainId]: {
|
|
331
|
-
RecipeExecutor: '
|
|
340
|
+
RecipeExecutor: '0x10B748Dc504C2515Bb6A9e23CB2F686090b6c584',
|
|
332
341
|
DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
|
|
333
342
|
DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
|
|
334
343
|
ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
|