@defisaver/sdk 1.0.33 → 1.0.35
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/actions/aave/AaveFinalizeUnstakeAction.d.ts +14 -0
- package/esm/src/actions/aave/AaveFinalizeUnstakeAction.js +22 -0
- package/esm/src/actions/aave/AaveStartUnstakeAction.d.ts +9 -0
- package/esm/src/actions/aave/AaveStartUnstakeAction.js +12 -0
- package/esm/src/actions/aave/index.d.ts +2 -0
- package/esm/src/actions/aave/index.js +2 -0
- package/esm/src/actions/flashloan/FLAction.js +1 -1
- package/esm/src/actions/flashloan/GhoFlashLoanAction.d.ts +15 -0
- package/esm/src/actions/flashloan/GhoFlashLoanAction.js +17 -0
- package/esm/src/actions/flashloan/GhoFlashLoanPaybackAction.d.ts +13 -0
- package/esm/src/actions/flashloan/GhoFlashLoanPaybackAction.js +15 -0
- package/esm/src/actions/flashloan/UniV3FlashLoanAction.d.ts +19 -0
- package/esm/src/actions/flashloan/UniV3FlashLoanAction.js +21 -0
- package/esm/src/actions/flashloan/UniV3FlashLoanPaybackAction.d.ts +16 -0
- package/esm/src/actions/flashloan/UniV3FlashLoanPaybackAction.js +18 -0
- package/esm/src/actions/flashloan/index.d.ts +4 -0
- package/esm/src/actions/flashloan/index.js +4 -0
- package/esm/src/actions/index.d.ts +1 -2
- package/esm/src/actions/index.js +1 -2
- package/esm/src/addresses.d.ts +11 -30
- package/esm/src/addresses.js +4 -11
- package/esm/src/index.d.ts +44 -120
- package/esm/src/types.d.ts +1 -3
- package/esm/src/utils/index.d.ts +1 -2
- package/esm/src/utils/index.js +1 -2
- package/package.json +1 -1
- package/src/actions/aave/AaveFinalizeUnstakeAction.ts +29 -0
- package/src/actions/aave/AaveStartUnstakeAction.ts +18 -0
- package/src/actions/aave/index.ts +3 -1
- package/src/actions/flashloan/FLAction.ts +1 -1
- package/src/actions/flashloan/GhoFlashLoanAction.ts +24 -0
- package/src/actions/flashloan/GhoFlashLoanPaybackAction.ts +17 -0
- package/src/actions/flashloan/UniV3FlashLoanAction.ts +28 -0
- package/src/actions/flashloan/UniV3FlashLoanPaybackAction.ts +20 -0
- package/src/actions/flashloan/index.ts +4 -0
- package/src/actions/index.ts +0 -2
- package/src/addresses.ts +4 -12
- package/src/types.ts +1 -3
- package/src/utils/index.ts +0 -2
- package/umd/index.js +596 -806
- package/esm/src/actions/curveusd/CurveUsdBorrowAction.d.ts +0 -15
- package/esm/src/actions/curveusd/CurveUsdBorrowAction.js +0 -22
- package/esm/src/actions/curveusd/CurveUsdCreateAction.d.ts +0 -22
- package/esm/src/actions/curveusd/CurveUsdCreateAction.js +0 -44
- package/esm/src/actions/curveusd/CurveUsdLevCreateAction.d.ts +0 -9
- package/esm/src/actions/curveusd/CurveUsdLevCreateAction.js +0 -16
- package/esm/src/actions/curveusd/CurveUsdPaybackAction.d.ts +0 -22
- package/esm/src/actions/curveusd/CurveUsdPaybackAction.js +0 -43
- package/esm/src/actions/curveusd/CurveUsdRepayAction.d.ts +0 -9
- package/esm/src/actions/curveusd/CurveUsdRepayAction.js +0 -14
- package/esm/src/actions/curveusd/CurveUsdSelfLiquidateAction.d.ts +0 -19
- package/esm/src/actions/curveusd/CurveUsdSelfLiquidateAction.js +0 -38
- package/esm/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.d.ts +0 -9
- package/esm/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.js +0 -16
- package/esm/src/actions/curveusd/CurveUsdSupplyAction.d.ts +0 -20
- package/esm/src/actions/curveusd/CurveUsdSupplyAction.js +0 -40
- package/esm/src/actions/curveusd/CurveUsdWithdrawAction.d.ts +0 -15
- package/esm/src/actions/curveusd/CurveUsdWithdrawAction.js +0 -22
- package/esm/src/actions/curveusd/index.d.ts +0 -9
- package/esm/src/actions/curveusd/index.js +0 -9
- package/esm/src/utils/curveusd-utils.d.ts +0 -20
- package/esm/src/utils/curveusd-utils.js +0 -12
- package/src/actions/curveusd/CurveUsdBorrowAction.ts +0 -34
- package/src/actions/curveusd/CurveUsdCreateAction.ts +0 -49
- package/src/actions/curveusd/CurveUsdLevCreateAction.ts +0 -40
- package/src/actions/curveusd/CurveUsdPaybackAction.ts +0 -48
- package/src/actions/curveusd/CurveUsdRepayAction.ts +0 -36
- package/src/actions/curveusd/CurveUsdSelfLiquidateAction.ts +0 -41
- package/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.ts +0 -40
- package/src/actions/curveusd/CurveUsdSupplyAction.ts +0 -44
- package/src/actions/curveusd/CurveUsdWithdrawAction.ts +0 -34
- package/src/actions/curveusd/index.ts +0 -10
- package/src/utils/curveusd-utils.ts +0 -15
- package/yarn-error.log +0 -3976
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* AaveFinalizeUnstakeAction - finalizes the unstaking AAVE process
|
|
5
|
+
*
|
|
6
|
+
* @category Aave
|
|
7
|
+
*/
|
|
8
|
+
export declare class AaveFinalizeUnstakeAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param amount - Amount to unstake (max.uint for whole balance)
|
|
11
|
+
* @param to - Address to receive AAVE tokens
|
|
12
|
+
*/
|
|
13
|
+
constructor(amount: uint256, to: EthAddress);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { requireAddress } from '../../utils/general';
|
|
3
|
+
import { getAddr } from '../../addresses';
|
|
4
|
+
/**
|
|
5
|
+
* AaveFinalizeUnstakeAction - finalizes the unstaking AAVE process
|
|
6
|
+
*
|
|
7
|
+
* @category Aave
|
|
8
|
+
*/
|
|
9
|
+
export class AaveFinalizeUnstakeAction extends Action {
|
|
10
|
+
/**
|
|
11
|
+
* @param amount - Amount to unstake (max.uint for whole balance)
|
|
12
|
+
* @param to - Address to receive AAVE tokens
|
|
13
|
+
*/
|
|
14
|
+
constructor(amount, to) {
|
|
15
|
+
requireAddress(to);
|
|
16
|
+
super('AaveUnstake', getAddr('AaveUnstake'), ['uint256', 'address'], [amount, to]);
|
|
17
|
+
this.mappableArgs = [
|
|
18
|
+
this.args[1],
|
|
19
|
+
this.args[2],
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* AaveStartUnstakeAction - begins the process of unstaking AAVE tokens for a proxy
|
|
5
|
+
*
|
|
6
|
+
* @category Aave
|
|
7
|
+
*/
|
|
8
|
+
export class AaveStartUnstakeAction extends Action {
|
|
9
|
+
constructor() {
|
|
10
|
+
super('AaveUnstake', getAddr('AaveUnstake'), ['uint256', 'address'], [0, getAddr('Empty')]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -41,7 +41,7 @@ _FLAction_instances = new WeakSet(), _FLAction_handleArgs = function _FLAction_h
|
|
|
41
41
|
if (specificFLAction.constructor.name === 'MakerFlashLoanAction') {
|
|
42
42
|
argsToReturn[5] = [4];
|
|
43
43
|
}
|
|
44
|
-
if (specificFLAction.constructor.name === '
|
|
44
|
+
if (specificFLAction.constructor.name === 'AaveV3FlashLoanNoFeeAction') {
|
|
45
45
|
argsToReturn[5] = [5];
|
|
46
46
|
}
|
|
47
47
|
return argsToReturn;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256, bytes } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Gets a GHO flashloan from GHO Flash Minter
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export declare class GhoFlashLoanAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param amount
|
|
11
|
+
* @param flParamGetterAddr
|
|
12
|
+
* @param flParamGetterData
|
|
13
|
+
*/
|
|
14
|
+
constructor(amount: uint256, flParamGetterAddr?: EthAddress, flParamGetterData?: bytes);
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* Gets a GHO flashloan from GHO Flash Minter
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export class GhoFlashLoanAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param amount
|
|
11
|
+
* @param flParamGetterAddr
|
|
12
|
+
* @param flParamGetterData
|
|
13
|
+
*/
|
|
14
|
+
constructor(amount, flParamGetterAddr = getAddr('Empty'), flParamGetterData = []) {
|
|
15
|
+
super('FLGho', getAddr('FLGho'), ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'], [[], [amount], [], getAddr('Empty'), flParamGetterAddr, flParamGetterData, []]);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SendTokenAction } from '../basic';
|
|
2
|
+
import { uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Pays back a flashloan from GHO
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export declare class GhoFlashLoanPaybackAction extends SendTokenAction {
|
|
9
|
+
/**
|
|
10
|
+
* @param loanAmount
|
|
11
|
+
*/
|
|
12
|
+
constructor(loanAmount: uint256);
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SendTokenAction } from '../basic';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* Pays back a flashloan from GHO
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export class GhoFlashLoanPaybackAction extends SendTokenAction {
|
|
9
|
+
/**
|
|
10
|
+
* @param loanAmount
|
|
11
|
+
*/
|
|
12
|
+
constructor(loanAmount) {
|
|
13
|
+
super(getAddr('GHO'), getAddr('FLGho'), loanAmount);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256, bytes } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Gets a flashloan from UniV3 pool
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export declare class UniV3FlashLoanAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param token0
|
|
11
|
+
* @param token1
|
|
12
|
+
* @param pool
|
|
13
|
+
* @param amount0
|
|
14
|
+
* @param amount1
|
|
15
|
+
* @param flParamGetterAddr
|
|
16
|
+
* @param flParamGetterData
|
|
17
|
+
*/
|
|
18
|
+
constructor(token0: EthAddress, token1: EthAddress, pool: EthAddress, amount0: uint256, amount1: uint256, flParamGetterAddr?: EthAddress, flParamGetterData?: bytes);
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* Gets a flashloan from UniV3 pool
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export class UniV3FlashLoanAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param token0
|
|
11
|
+
* @param token1
|
|
12
|
+
* @param pool
|
|
13
|
+
* @param amount0
|
|
14
|
+
* @param amount1
|
|
15
|
+
* @param flParamGetterAddr
|
|
16
|
+
* @param flParamGetterData
|
|
17
|
+
*/
|
|
18
|
+
constructor(token0, token1, pool, amount0, amount1, flParamGetterAddr = getAddr('Empty'), flParamGetterData = []) {
|
|
19
|
+
super('FLUniV3', getAddr('FLUniV3'), ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'], [[token0, token1, pool], [amount0, amount1], [], getAddr('Empty'), flParamGetterAddr, flParamGetterData, []]);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EthAddress, uint256 } from '../../types';
|
|
2
|
+
import { SendTokensAction } from '../basic';
|
|
3
|
+
/**
|
|
4
|
+
* Pays back a flashloan from UniV3
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export declare class UniV3FlashLoanPaybackAction extends SendTokensAction {
|
|
9
|
+
/**
|
|
10
|
+
* @param token0
|
|
11
|
+
* @param token1
|
|
12
|
+
* @param amount0
|
|
13
|
+
* @param amount1
|
|
14
|
+
*/
|
|
15
|
+
constructor(token0: EthAddress, token1: EthAddress, amount0: uint256, amount1: uint256);
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SendTokensAction } from '../basic';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* Pays back a flashloan from UniV3
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export class UniV3FlashLoanPaybackAction extends SendTokensAction {
|
|
9
|
+
/**
|
|
10
|
+
* @param token0
|
|
11
|
+
* @param token1
|
|
12
|
+
* @param amount0
|
|
13
|
+
* @param amount1
|
|
14
|
+
*/
|
|
15
|
+
constructor(token0, token1, amount0, amount1) {
|
|
16
|
+
super([token0, token1], [getAddr('FLUniV3'), getAddr('FLUniV3')], [amount0, amount1]);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -13,3 +13,7 @@ export * from './BalancerFlashLoanPaybackAction';
|
|
|
13
13
|
export * from './EulerFlashLoanAction';
|
|
14
14
|
export * from './EulerFlashLoanPaybackAction';
|
|
15
15
|
export * from './FLAction';
|
|
16
|
+
export * from './UniV3FlashLoanAction';
|
|
17
|
+
export * from './UniV3FlashLoanPaybackAction';
|
|
18
|
+
export * from './GhoFlashLoanAction';
|
|
19
|
+
export * from './GhoFlashLoanPaybackAction';
|
|
@@ -13,3 +13,7 @@ export * from './BalancerFlashLoanPaybackAction';
|
|
|
13
13
|
export * from './EulerFlashLoanAction';
|
|
14
14
|
export * from './EulerFlashLoanPaybackAction';
|
|
15
15
|
export * from './FLAction';
|
|
16
|
+
export * from './UniV3FlashLoanAction';
|
|
17
|
+
export * from './UniV3FlashLoanPaybackAction';
|
|
18
|
+
export * from './GhoFlashLoanAction';
|
|
19
|
+
export * from './GhoFlashLoanPaybackAction';
|
|
@@ -23,5 +23,4 @@ import * as chickenBonds from './chickenBonds';
|
|
|
23
23
|
import * as compoundV3 from './compoundV3';
|
|
24
24
|
import * as morpho from './morpho';
|
|
25
25
|
import * as bprotocol from './bprotocol';
|
|
26
|
-
|
|
27
|
-
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, curveusd, };
|
|
26
|
+
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, };
|
package/esm/src/actions/index.js
CHANGED
|
@@ -23,5 +23,4 @@ import * as chickenBonds from './chickenBonds';
|
|
|
23
23
|
import * as compoundV3 from './compoundV3';
|
|
24
24
|
import * as morpho from './morpho';
|
|
25
25
|
import * as bprotocol from './bprotocol';
|
|
26
|
-
|
|
27
|
-
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, curveusd, };
|
|
26
|
+
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, };
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export declare const actionAddresses: {
|
|
|
39
39
|
AaveSupply: string;
|
|
40
40
|
AaveWithdraw: string;
|
|
41
41
|
AaveCollateralSwitch: string;
|
|
42
|
+
AaveUnstake: string;
|
|
42
43
|
AaveV3Withdraw: string;
|
|
43
44
|
AaveV3SwapBorrowRateMode: string;
|
|
44
45
|
AaveV3Supply: string;
|
|
@@ -72,6 +73,8 @@ export declare const actionAddresses: {
|
|
|
72
73
|
FLMaker: string;
|
|
73
74
|
FLBalancer: string;
|
|
74
75
|
FLAction: string;
|
|
76
|
+
FLUniV3: string;
|
|
77
|
+
FLGho: string;
|
|
75
78
|
UniSupply: string;
|
|
76
79
|
UniWithdraw: string;
|
|
77
80
|
UniCollectV3: string;
|
|
@@ -141,16 +144,6 @@ export declare const actionAddresses: {
|
|
|
141
144
|
CompV3Supply: string;
|
|
142
145
|
CompV3Transfer: string;
|
|
143
146
|
CompV3Withdraw: string;
|
|
144
|
-
CurveUsdBorrow: string;
|
|
145
|
-
CurveUsdCreate: string;
|
|
146
|
-
CurveUsdPayback: string;
|
|
147
|
-
CurveUsdSupply: string;
|
|
148
|
-
CurveUsdWithdraw: string;
|
|
149
|
-
CurveUsdLevCreate: string;
|
|
150
|
-
CurveUsdRepay: string;
|
|
151
|
-
CurveUsdSwapper: string;
|
|
152
|
-
CurveUsdSelfLiquidate: string;
|
|
153
|
-
CurveUsdSelfLiquidateWithColl: string;
|
|
154
147
|
AaveV3RatioTrigger?: undefined;
|
|
155
148
|
GasFeeTakerL2?: undefined;
|
|
156
149
|
AaveV3RatioCheck?: undefined;
|
|
@@ -214,6 +207,7 @@ export declare const actionAddresses: {
|
|
|
214
207
|
AaveSupply?: undefined;
|
|
215
208
|
AaveWithdraw?: undefined;
|
|
216
209
|
AaveCollateralSwitch?: undefined;
|
|
210
|
+
AaveUnstake?: undefined;
|
|
217
211
|
AaveV3View?: undefined;
|
|
218
212
|
MorphoAaveV2Borrow?: undefined;
|
|
219
213
|
MorphoAaveV2Payback?: undefined;
|
|
@@ -234,6 +228,8 @@ export declare const actionAddresses: {
|
|
|
234
228
|
FLAaveV2?: undefined;
|
|
235
229
|
FLDyDx?: undefined;
|
|
236
230
|
FLMaker?: undefined;
|
|
231
|
+
FLUniV3?: undefined;
|
|
232
|
+
FLGho?: undefined;
|
|
237
233
|
UniSupply?: undefined;
|
|
238
234
|
UniWithdraw?: undefined;
|
|
239
235
|
DyDxWithdraw?: undefined;
|
|
@@ -298,16 +294,6 @@ export declare const actionAddresses: {
|
|
|
298
294
|
CompV3Supply?: undefined;
|
|
299
295
|
CompV3Transfer?: undefined;
|
|
300
296
|
CompV3Withdraw?: undefined;
|
|
301
|
-
CurveUsdBorrow?: undefined;
|
|
302
|
-
CurveUsdCreate?: undefined;
|
|
303
|
-
CurveUsdPayback?: undefined;
|
|
304
|
-
CurveUsdSupply?: undefined;
|
|
305
|
-
CurveUsdWithdraw?: undefined;
|
|
306
|
-
CurveUsdLevCreate?: undefined;
|
|
307
|
-
CurveUsdRepay?: undefined;
|
|
308
|
-
CurveUsdSwapper?: undefined;
|
|
309
|
-
CurveUsdSelfLiquidate?: undefined;
|
|
310
|
-
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
311
297
|
} | {
|
|
312
298
|
DFSSell: string;
|
|
313
299
|
WrapEth: string;
|
|
@@ -366,6 +352,7 @@ export declare const actionAddresses: {
|
|
|
366
352
|
AaveSupply?: undefined;
|
|
367
353
|
AaveWithdraw?: undefined;
|
|
368
354
|
AaveCollateralSwitch?: undefined;
|
|
355
|
+
AaveUnstake?: undefined;
|
|
369
356
|
AaveV3ClaimRewards?: undefined;
|
|
370
357
|
AaveV3View?: undefined;
|
|
371
358
|
MorphoAaveV2Borrow?: undefined;
|
|
@@ -387,6 +374,8 @@ export declare const actionAddresses: {
|
|
|
387
374
|
FLAaveV2?: undefined;
|
|
388
375
|
FLDyDx?: undefined;
|
|
389
376
|
FLMaker?: undefined;
|
|
377
|
+
FLUniV3?: undefined;
|
|
378
|
+
FLGho?: undefined;
|
|
390
379
|
UniSupply?: undefined;
|
|
391
380
|
UniWithdraw?: undefined;
|
|
392
381
|
DyDxWithdraw?: undefined;
|
|
@@ -451,16 +440,6 @@ export declare const actionAddresses: {
|
|
|
451
440
|
CompV3Supply?: undefined;
|
|
452
441
|
CompV3Transfer?: undefined;
|
|
453
442
|
CompV3Withdraw?: undefined;
|
|
454
|
-
CurveUsdBorrow?: undefined;
|
|
455
|
-
CurveUsdCreate?: undefined;
|
|
456
|
-
CurveUsdPayback?: undefined;
|
|
457
|
-
CurveUsdSupply?: undefined;
|
|
458
|
-
CurveUsdWithdraw?: undefined;
|
|
459
|
-
CurveUsdLevCreate?: undefined;
|
|
460
|
-
CurveUsdRepay?: undefined;
|
|
461
|
-
CurveUsdSwapper?: undefined;
|
|
462
|
-
CurveUsdSelfLiquidate?: undefined;
|
|
463
|
-
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
464
443
|
AaveV3RatioTrigger?: undefined;
|
|
465
444
|
};
|
|
466
445
|
};
|
|
@@ -479,6 +458,7 @@ export declare const otherAddresses: {
|
|
|
479
458
|
CrvToken: string;
|
|
480
459
|
CvxToken: string;
|
|
481
460
|
DAI: string;
|
|
461
|
+
GHO: string;
|
|
482
462
|
LUSD: string;
|
|
483
463
|
BLUSD: string;
|
|
484
464
|
Empty: string;
|
|
@@ -503,6 +483,7 @@ export declare const otherAddresses: {
|
|
|
503
483
|
CrvToken?: undefined;
|
|
504
484
|
CvxToken?: undefined;
|
|
505
485
|
DAI?: undefined;
|
|
486
|
+
GHO?: undefined;
|
|
506
487
|
LUSD?: undefined;
|
|
507
488
|
BLUSD?: undefined;
|
|
508
489
|
};
|
package/esm/src/addresses.js
CHANGED
|
@@ -45,6 +45,7 @@ export const actionAddresses = {
|
|
|
45
45
|
AaveSupply: '0xEbB200a529058B561B42Eab510DA157a63243CEc',
|
|
46
46
|
AaveWithdraw: '0x754C58fA92246414a448c1ed44ea3D1AD446d482',
|
|
47
47
|
AaveCollateralSwitch: '0xFf5dfF1B90bd5Aa6E12768AB497dB90cc9DE6F5d',
|
|
48
|
+
AaveUnstake: '0x2FE4024e350cD2c64D2fd0Db5d16F5cE54Ca0E09',
|
|
48
49
|
// aave v3
|
|
49
50
|
AaveV3Withdraw: '0x9D4e4b26A5E2e6Dad30C5d95F5cE78A8310F04C2',
|
|
50
51
|
AaveV3SwapBorrowRateMode: '0x630F530Ac523C935cf2528E62D0A06F8900C5b1B',
|
|
@@ -83,6 +84,8 @@ export const actionAddresses = {
|
|
|
83
84
|
FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
|
|
84
85
|
FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
|
|
85
86
|
FLAction: '0x72915D41982DfCAf30b871290618E59C45Edba7F',
|
|
87
|
+
FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
|
|
88
|
+
FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
|
|
86
89
|
// uniswap
|
|
87
90
|
UniSupply: '0x9935e12F0218E61c27D7f23eAC9A9D6881a078eC',
|
|
88
91
|
UniWithdraw: '0xf8bb8F68b0A45DC315F3f7602a60cfb274B00951',
|
|
@@ -168,17 +171,6 @@ export const actionAddresses = {
|
|
|
168
171
|
CompV3Supply: '0xaF36Eca43bb26468078B8163fe5Bc1fCFc292095',
|
|
169
172
|
CompV3Transfer: '0xeD7450e9C17146476137b77198DFfB17857906c4',
|
|
170
173
|
CompV3Withdraw: '0x0b0F21EDE32DE4243D9145a899E97FC2366Aec46',
|
|
171
|
-
// crvUSD
|
|
172
|
-
CurveUsdBorrow: '0x2512A976227a82Ef0F6bDdb463cBcD5B732596BF',
|
|
173
|
-
CurveUsdCreate: '0x715B40970dac1cfAf0bB85C4Fe64921b44b3f73e',
|
|
174
|
-
CurveUsdPayback: '0xbcAd628159ab0f3d7F391dBb4c3553aFCD61CA80',
|
|
175
|
-
CurveUsdSupply: '0xa55B3CE5ae7E59002f53b2153ABe326823ccCDE2',
|
|
176
|
-
CurveUsdWithdraw: '0x54B8D984fc79B000D7B6F6E0f52CD054E965120f',
|
|
177
|
-
CurveUsdLevCreate: '0x8B5ACd4ce0a43327aaDfc5c42be029898e242393',
|
|
178
|
-
CurveUsdRepay: '0xDaDFC60207C17be005ECf2B03f3B31885D22F908',
|
|
179
|
-
CurveUsdSwapper: '0xef8Aa00f824360236b6F586CeF8e4071Bd4448b6',
|
|
180
|
-
CurveUsdSelfLiquidate: '0xd90d8a4955DfE9D4f45F7f60595313B0925ee1da',
|
|
181
|
-
CurveUsdSelfLiquidateWithColl: '0x6d02300C1A68c63C60AFD713b744bA750aB33aB0',
|
|
182
174
|
},
|
|
183
175
|
[NETWORKS.optimism.chainId]: {
|
|
184
176
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
|
@@ -264,6 +256,7 @@ export const otherAddresses = {
|
|
|
264
256
|
CrvToken: '0xD533a949740bb3306d119CC777fa900bA034cd52',
|
|
265
257
|
CvxToken: '0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B',
|
|
266
258
|
DAI: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
259
|
+
GHO: '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f',
|
|
267
260
|
LUSD: '0x5f98805A4E8be255a32880FDeC7F6728C6568bA0',
|
|
268
261
|
BLUSD: '0x76F7774139bf0097d2882C41AF5A37717e3641A7',
|
|
269
262
|
Empty: '0x0000000000000000000000000000000000000000',
|