@defisaver/sdk 1.0.65 → 1.0.66-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/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/{llamalend/LlamaLendSelfLiquidateAction.js → basic/RemoveTokenApprovalAction.js} +19 -15
- package/esm/src/actions/basic/index.d.ts +3 -0
- package/esm/src/actions/basic/index.js +3 -0
- package/esm/src/actions/checkers/index.d.ts +0 -1
- package/esm/src/actions/checkers/index.js +0 -1
- package/esm/src/actions/index.d.ts +1 -2
- package/esm/src/actions/index.js +1 -2
- package/esm/src/actions/maker/MakerGiveAction.d.ts +1 -2
- package/esm/src/actions/maker/MakerGiveAction.js +2 -3
- package/esm/src/addresses.d.ts +3 -27
- package/esm/src/addresses.js +3 -13
- package/esm/src/index.d.ts +12 -108
- 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 -1
- package/esm/src/triggers/index.js +1 -1
- 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/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/WrapEthAction.ts +4 -3
- package/src/actions/basic/index.ts +3 -0
- package/src/actions/index.ts +0 -2
- package/src/actions/maker/MakerGiveAction.ts +2 -3
- package/src/addresses.ts +3 -11
- package/src/triggers/OffchainPriceTrigger.ts +14 -0
- package/src/triggers/index.ts +2 -0
- package/src/utils/index.ts +0 -2
- package/umd/index.js +631 -821
- package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.d.ts +0 -20
- package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.js +0 -32
- package/esm/src/actions/llamalend/LlamaLendBorrowAction.d.ts +0 -15
- package/esm/src/actions/llamalend/LlamaLendBorrowAction.js +0 -22
- package/esm/src/actions/llamalend/LlamaLendCreateAction.d.ts +0 -22
- package/esm/src/actions/llamalend/LlamaLendCreateAction.js +0 -44
- package/esm/src/actions/llamalend/LlamaLendPaybackAction.d.ts +0 -22
- package/esm/src/actions/llamalend/LlamaLendPaybackAction.js +0 -43
- package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.d.ts +0 -19
- package/esm/src/actions/llamalend/LlamaLendSupplyAction.d.ts +0 -20
- package/esm/src/actions/llamalend/LlamaLendSupplyAction.js +0 -40
- package/esm/src/actions/llamalend/LlamaLendWithdrawAction.d.ts +0 -15
- package/esm/src/actions/llamalend/LlamaLendWithdrawAction.js +0 -22
- package/esm/src/actions/llamalend/index.d.ts +0 -6
- package/esm/src/actions/llamalend/index.js +0 -6
- package/esm/src/triggers/MorphoBlueRatioTrigger.d.ts +0 -10
- package/esm/src/triggers/MorphoBlueRatioTrigger.js +0 -12
- package/esm/src/utils/llamalend-utils.d.ts +0 -10
- package/esm/src/utils/llamalend-utils.js +0 -10
- package/src/actions/llamalend/LlamaLendBorrowAction.ts +0 -34
- package/src/actions/llamalend/LlamaLendCreateAction.ts +0 -49
- package/src/actions/llamalend/LlamaLendPaybackAction.ts +0 -48
- package/src/actions/llamalend/LlamaLendSelfLiquidateAction.ts +0 -41
- package/src/actions/llamalend/LlamaLendSupplyAction.ts +0 -44
- package/src/actions/llamalend/LlamaLendWithdrawAction.ts +0 -34
- package/src/actions/llamalend/index.ts +0 -6
- package/src/utils/llamalend-utils.ts +0 -11
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
import { EthAddress, uint256 } from '../../types';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* LlamaLendWithdrawAction - Action that withdraws collateral from proxy llamalend position
|
|
7
|
-
*
|
|
8
|
-
* @category LlamaLend
|
|
9
|
-
*/
|
|
10
|
-
export class LlamaLendWithdrawAction extends Action {
|
|
11
|
-
/**
|
|
12
|
-
* address controllerAddress - Address of the llamalend market controller
|
|
13
|
-
* address to - Address that will receive the withdrawn collateral, will default to proxy
|
|
14
|
-
* uint256 collateralAmount - Amount of collateral to withdraw
|
|
15
|
-
*/
|
|
16
|
-
/// @dev collateralAmount must be non-zero
|
|
17
|
-
/// @dev if collateralAmount == uintMax will withdraw as much as the debt will allow
|
|
18
|
-
constructor(
|
|
19
|
-
controllerAddress: EthAddress,
|
|
20
|
-
to: EthAddress,
|
|
21
|
-
collateralAmount: uint256,
|
|
22
|
-
) {
|
|
23
|
-
super(
|
|
24
|
-
'LlamaLendWithdraw',
|
|
25
|
-
getAddr('LlamaLendWithdraw'),
|
|
26
|
-
['address', 'address', 'uint256'],
|
|
27
|
-
[controllerAddress, to, collateralAmount],
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
this.mappableArgs = [
|
|
31
|
-
...this.args,
|
|
32
|
-
];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export const controllerToCollateralAssetMap = {
|
|
2
|
-
'0x5E657c5227A596a860621C5551c9735d8f4A8BE3': '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
|
|
3
|
-
'0x7443944962D04720f8c220C0D25f56F869d6EfD4': '0xD533a949740bb3306d119CC777fa900bA034cd52',
|
|
4
|
-
'0x43fc0f246F952ff12B757341A91cF4040711dDE9': '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
|
|
5
|
-
};
|
|
6
|
-
export const controllerToDebtAssetMap = {
|
|
7
|
-
'0x5E657c5227A596a860621C5551c9735d8f4A8BE3': '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
|
|
8
|
-
'0x7443944962D04720f8c220C0D25f56F869d6EfD4': '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
|
|
9
|
-
'0x43fc0f246F952ff12B757341A91cF4040711dDE9': '0xD533a949740bb3306d119CC777fa900bA034cd52',
|
|
10
|
-
};
|
|
11
|
-
|