@defisaver/sdk 1.0.0 → 1.0.2
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/.babelrc +3 -0
- package/.eslintrc.js +100 -0
- package/esm/AccessLists/AaveAccessLists.d.ts +2 -0
- package/esm/AccessLists/AaveAccessLists.js +19 -0
- package/esm/AccessLists/BalancerAccessLists.d.ts +2 -0
- package/esm/AccessLists/BalancerAccessLists.js +14 -0
- package/esm/AccessLists/CompoundAccessLists.d.ts +2 -0
- package/esm/AccessLists/CompoundAccessLists.js +23 -0
- package/esm/AccessLists/DyDxAccessLists.d.ts +2 -0
- package/esm/AccessLists/DyDxAccessLists.js +6 -0
- package/esm/AccessLists/FlashLoanAccessLists.d.ts +2 -0
- package/esm/AccessLists/FlashLoanAccessLists.js +20 -0
- package/esm/AccessLists/GuniAccessLists.d.ts +2 -0
- package/esm/AccessLists/GuniAccessLists.js +10 -0
- package/esm/AccessLists/InstaAccessLists.d.ts +2 -0
- package/esm/AccessLists/InstaAccessLists.js +5 -0
- package/esm/AccessLists/LidoAccessLists.d.ts +2 -0
- package/esm/AccessLists/LidoAccessLists.js +15 -0
- package/esm/AccessLists/LiquityAccessLists.d.ts +2 -0
- package/esm/AccessLists/LiquityAccessLists.js +65 -0
- package/esm/AccessLists/MStableAccessLists.d.ts +2 -0
- package/esm/AccessLists/MStableAccessLists.js +12 -0
- package/esm/AccessLists/MakerAccessLists.d.ts +2 -0
- package/esm/AccessLists/MakerAccessLists.js +34 -0
- package/esm/AccessLists/RariAccessLists.d.ts +2 -0
- package/esm/AccessLists/RariAccessLists.js +8 -0
- package/esm/AccessLists/ReflexerAccessLists.d.ts +2 -0
- package/esm/AccessLists/ReflexerAccessLists.js +42 -0
- package/esm/AccessLists/UniswapAccessLists.d.ts +2 -0
- package/esm/AccessLists/UniswapAccessLists.js +31 -0
- package/esm/AccessLists/UtilsAccessLists.d.ts +2 -0
- package/esm/AccessLists/UtilsAccessLists.js +23 -0
- package/esm/AccessLists/YearnAccessLists.d.ts +2 -0
- package/esm/AccessLists/YearnAccessLists.js +9 -0
- package/esm/AccessLists/index.d.ts +3 -0
- package/esm/AccessLists/index.js +17 -0
- package/esm/src/Action.d.ts +77 -0
- package/esm/src/Action.js +193 -0
- package/esm/src/ActionWithL2.d.ts +20 -0
- package/esm/src/ActionWithL2.js +49 -0
- package/esm/src/DfsWeb3.d.ts +31 -0
- package/esm/src/DfsWeb3.js +124 -0
- package/esm/src/Recipe.d.ts +49 -0
- package/esm/src/Recipe.js +135 -0
- package/esm/src/Strategy.d.ts +19 -0
- package/esm/src/Strategy.js +47 -0
- package/esm/src/abis/Action.json +247 -0
- package/esm/src/abis/DFSProxyRegistry.json +193 -0
- package/esm/src/abis/DsProxy.json +218 -0
- package/esm/src/abis/Erc20.json +222 -0
- package/esm/src/abis/ProxyRegistry.json +65 -0
- package/esm/src/abis/Recipe.json +254 -0
- package/esm/src/actions/aave/AaveBorrowAction.d.ts +18 -0
- package/esm/src/actions/aave/AaveBorrowAction.js +22 -0
- package/esm/src/actions/aave/AaveClaimStkAaveAction.d.ts +15 -0
- package/esm/src/actions/aave/AaveClaimStkAaveAction.js +23 -0
- package/esm/src/actions/aave/AaveCollateralSwitchAction.d.ts +15 -0
- package/esm/src/actions/aave/AaveCollateralSwitchAction.js +18 -0
- package/esm/src/actions/aave/AavePaybackAction.d.ts +22 -0
- package/esm/src/actions/aave/AavePaybackAction.js +38 -0
- package/esm/src/actions/aave/AaveSupplyAction.d.ts +22 -0
- package/esm/src/actions/aave/AaveSupplyAction.js +45 -0
- package/esm/src/actions/aave/AaveWithdrawAction.d.ts +16 -0
- package/esm/src/actions/aave/AaveWithdrawAction.js +20 -0
- package/esm/src/actions/aave/index.d.ts +6 -0
- package/esm/src/actions/aave/index.js +6 -0
- package/esm/src/actions/aaveV3/AaveV3ATokenPaybackAction.d.ts +25 -0
- package/esm/src/actions/aaveV3/AaveV3ATokenPaybackAction.js +64 -0
- package/esm/src/actions/aaveV3/AaveV3BorrowAction.d.ts +21 -0
- package/esm/src/actions/aaveV3/AaveV3BorrowAction.js +59 -0
- package/esm/src/actions/aaveV3/AaveV3ClaimRewardsAction.d.ts +18 -0
- package/esm/src/actions/aaveV3/AaveV3ClaimRewardsAction.js +40 -0
- package/esm/src/actions/aaveV3/AaveV3CollateralSwitchAction.d.ts +18 -0
- package/esm/src/actions/aaveV3/AaveV3CollateralSwitchAction.js +39 -0
- package/esm/src/actions/aaveV3/AaveV3PaybackAction.d.ts +27 -0
- package/esm/src/actions/aaveV3/AaveV3PaybackAction.js +77 -0
- package/esm/src/actions/aaveV3/AaveV3SetEModeAction.d.ts +16 -0
- package/esm/src/actions/aaveV3/AaveV3SetEModeAction.js +33 -0
- package/esm/src/actions/aaveV3/AaveV3SupplyAction.d.ts +27 -0
- package/esm/src/actions/aaveV3/AaveV3SupplyAction.js +77 -0
- package/esm/src/actions/aaveV3/AaveV3SwapBorrowRateModeAction.d.ts +18 -0
- package/esm/src/actions/aaveV3/AaveV3SwapBorrowRateModeAction.js +38 -0
- package/esm/src/actions/aaveV3/AaveV3WithdrawAction.d.ts +18 -0
- package/esm/src/actions/aaveV3/AaveV3WithdrawAction.js +45 -0
- package/esm/src/actions/aaveV3/index.d.ts +9 -0
- package/esm/src/actions/aaveV3/index.js +9 -0
- package/esm/src/actions/balancer/BalancerV2ClaimAction.d.ts +20 -0
- package/esm/src/actions/balancer/BalancerV2ClaimAction.js +49 -0
- package/esm/src/actions/balancer/BalancerV2SupplyAction.d.ts +22 -0
- package/esm/src/actions/balancer/BalancerV2SupplyAction.js +52 -0
- package/esm/src/actions/balancer/BalancerV2WithdrawAction.d.ts +24 -0
- package/esm/src/actions/balancer/BalancerV2WithdrawAction.js +56 -0
- package/esm/src/actions/balancer/index.d.ts +3 -0
- package/esm/src/actions/balancer/index.js +3 -0
- package/esm/src/actions/basic/AutomationV2Unsub.d.ts +9 -0
- package/esm/src/actions/basic/AutomationV2Unsub.js +11 -0
- package/esm/src/actions/basic/ChangeProxyOwnerAction.d.ts +13 -0
- package/esm/src/actions/basic/ChangeProxyOwnerAction.js +15 -0
- package/esm/src/actions/basic/GasFeeAction.d.ts +14 -0
- package/esm/src/actions/basic/GasFeeAction.js +21 -0
- package/esm/src/actions/basic/GasFeeActionL2.d.ts +15 -0
- package/esm/src/actions/basic/GasFeeActionL2.js +22 -0
- package/esm/src/actions/basic/PullTokenAction.d.ts +19 -0
- package/esm/src/actions/basic/PullTokenAction.js +41 -0
- package/esm/src/actions/basic/SellAction.d.ts +23 -0
- package/esm/src/actions/basic/SellAction.js +61 -0
- package/esm/src/actions/basic/SendTokenAction.d.ts +15 -0
- package/esm/src/actions/basic/SendTokenAction.js +23 -0
- package/esm/src/actions/basic/SendTokenAndUnwrapAction.d.ts +15 -0
- package/esm/src/actions/basic/SendTokenAndUnwrapAction.js +23 -0
- package/esm/src/actions/basic/SubInputsAction.d.ts +10 -0
- package/esm/src/actions/basic/SubInputsAction.js +15 -0
- package/esm/src/actions/basic/SumInputsAction.d.ts +10 -0
- package/esm/src/actions/basic/SumInputsAction.js +15 -0
- package/esm/src/actions/basic/ToggleSubAction.d.ts +14 -0
- package/esm/src/actions/basic/ToggleSubAction.js +16 -0
- package/esm/src/actions/basic/TokenBalanceAction.d.ts +8 -0
- package/esm/src/actions/basic/TokenBalanceAction.js +13 -0
- package/esm/src/actions/basic/TransferNFTAction.d.ts +8 -0
- package/esm/src/actions/basic/TransferNFTAction.js +17 -0
- package/esm/src/actions/basic/UnwrapEthAction.d.ts +15 -0
- package/esm/src/actions/basic/UnwrapEthAction.js +30 -0
- package/esm/src/actions/basic/UpdateSubAction.d.ts +14 -0
- package/esm/src/actions/basic/UpdateSubAction.js +16 -0
- package/esm/src/actions/basic/WrapEthAction.d.ts +15 -0
- package/esm/src/actions/basic/WrapEthAction.js +36 -0
- package/esm/src/actions/basic/index.d.ts +16 -0
- package/esm/src/actions/basic/index.js +16 -0
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.d.ts +14 -0
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.js +20 -0
- package/esm/src/actions/checkers/CompoundV3RatioCheckAction.d.ts +16 -0
- package/esm/src/actions/checkers/CompoundV3RatioCheckAction.js +24 -0
- package/esm/src/actions/checkers/MakerRatioCheckAction.d.ts +17 -0
- package/esm/src/actions/checkers/MakerRatioCheckAction.js +25 -0
- package/esm/src/actions/checkers/index.d.ts +3 -0
- package/esm/src/actions/checkers/index.js +3 -0
- package/esm/src/actions/chickenBonds/CBChickenInAction.d.ts +14 -0
- package/esm/src/actions/chickenBonds/CBChickenInAction.js +18 -0
- package/esm/src/actions/chickenBonds/CBChickenOutAction.d.ts +15 -0
- package/esm/src/actions/chickenBonds/CBChickenOutAction.js +19 -0
- package/esm/src/actions/chickenBonds/CBCreateAction.d.ts +18 -0
- package/esm/src/actions/chickenBonds/CBCreateAction.js +32 -0
- package/esm/src/actions/chickenBonds/CBRedeemAction.d.ts +20 -0
- package/esm/src/actions/chickenBonds/CBRedeemAction.js +35 -0
- package/esm/src/actions/chickenBonds/index.d.ts +4 -0
- package/esm/src/actions/chickenBonds/index.js +4 -0
- package/esm/src/actions/compound/CompoundBorrowAction.d.ts +15 -0
- package/esm/src/actions/compound/CompoundBorrowAction.js +19 -0
- package/esm/src/actions/compound/CompoundClaimAction.d.ts +16 -0
- package/esm/src/actions/compound/CompoundClaimAction.js +24 -0
- package/esm/src/actions/compound/CompoundCollateralSwitchAction.d.ts +10 -0
- package/esm/src/actions/compound/CompoundCollateralSwitchAction.js +12 -0
- package/esm/src/actions/compound/CompoundGetDebtAction.d.ts +8 -0
- package/esm/src/actions/compound/CompoundGetDebtAction.js +13 -0
- package/esm/src/actions/compound/CompoundPaybackAction.d.ts +20 -0
- package/esm/src/actions/compound/CompoundPaybackAction.js +38 -0
- package/esm/src/actions/compound/CompoundSupplyAction.d.ts +20 -0
- package/esm/src/actions/compound/CompoundSupplyAction.js +43 -0
- package/esm/src/actions/compound/CompoundWithdrawAction.d.ts +15 -0
- package/esm/src/actions/compound/CompoundWithdrawAction.js +19 -0
- package/esm/src/actions/compound/index.d.ts +7 -0
- package/esm/src/actions/compound/index.js +7 -0
- package/esm/src/actions/compoundV3/CompoundV3AllowAction.d.ts +15 -0
- package/esm/src/actions/compoundV3/CompoundV3AllowAction.js +24 -0
- package/esm/src/actions/compoundV3/CompoundV3BorrowAction.d.ts +16 -0
- package/esm/src/actions/compoundV3/CompoundV3BorrowAction.js +26 -0
- package/esm/src/actions/compoundV3/CompoundV3ClaimAction.d.ts +16 -0
- package/esm/src/actions/compoundV3/CompoundV3ClaimAction.js +27 -0
- package/esm/src/actions/compoundV3/CompoundV3PaybackAction.d.ts +22 -0
- package/esm/src/actions/compoundV3/CompoundV3PaybackAction.js +48 -0
- package/esm/src/actions/compoundV3/CompoundV3SupplyAction.d.ts +22 -0
- package/esm/src/actions/compoundV3/CompoundV3SupplyAction.js +45 -0
- package/esm/src/actions/compoundV3/CompoundV3TransferAction.d.ts +17 -0
- package/esm/src/actions/compoundV3/CompoundV3TransferAction.js +30 -0
- package/esm/src/actions/compoundV3/CompoundV3WithdrawAction.d.ts +17 -0
- package/esm/src/actions/compoundV3/CompoundV3WithdrawAction.js +29 -0
- package/esm/src/actions/compoundV3/index.d.ts +7 -0
- package/esm/src/actions/compoundV3/index.js +7 -0
- package/esm/src/actions/convex/ConvexClaimAction.d.ts +17 -0
- package/esm/src/actions/convex/ConvexClaimAction.js +59 -0
- package/esm/src/actions/convex/ConvexDepositAction.d.ts +22 -0
- package/esm/src/actions/convex/ConvexDepositAction.js +66 -0
- package/esm/src/actions/convex/ConvexWithdrawAction.d.ts +22 -0
- package/esm/src/actions/convex/ConvexWithdrawAction.js +63 -0
- package/esm/src/actions/convex/index.d.ts +3 -0
- package/esm/src/actions/convex/index.js +3 -0
- package/esm/src/actions/curve/CurveClaimFeesAction.d.ts +13 -0
- package/esm/src/actions/curve/CurveClaimFeesAction.js +22 -0
- package/esm/src/actions/curve/CurveDepositAction.d.ts +18 -0
- package/esm/src/actions/curve/CurveDepositAction.js +78 -0
- package/esm/src/actions/curve/CurveGaugeDepositAction.d.ts +20 -0
- package/esm/src/actions/curve/CurveGaugeDepositAction.js +40 -0
- package/esm/src/actions/curve/CurveGaugeWithdrawAction.d.ts +14 -0
- package/esm/src/actions/curve/CurveGaugeWithdrawAction.js +22 -0
- package/esm/src/actions/curve/CurveMintCrvAction.d.ts +12 -0
- package/esm/src/actions/curve/CurveMintCrvAction.js +19 -0
- package/esm/src/actions/curve/CurveStethPoolDepositAction.d.ts +16 -0
- package/esm/src/actions/curve/CurveStethPoolDepositAction.js +27 -0
- package/esm/src/actions/curve/CurveStethPoolWithdrawAction.d.ts +17 -0
- package/esm/src/actions/curve/CurveStethPoolWithdrawAction.js +28 -0
- package/esm/src/actions/curve/CurveSwapAction.d.ts +22 -0
- package/esm/src/actions/curve/CurveSwapAction.js +43 -0
- package/esm/src/actions/curve/CurveWithdrawAction.d.ts +22 -0
- package/esm/src/actions/curve/CurveWithdrawAction.js +72 -0
- package/esm/src/actions/curve/index.d.ts +9 -0
- package/esm/src/actions/curve/index.js +9 -0
- package/esm/src/actions/dydx/DyDxWithdrawAction.d.ts +15 -0
- package/esm/src/actions/dydx/DyDxWithdrawAction.js +19 -0
- package/esm/src/actions/dydx/index.d.ts +1 -0
- package/esm/src/actions/dydx/index.js +1 -0
- package/esm/src/actions/flashloan/AaveV2FlashLoanAction.d.ts +18 -0
- package/esm/src/actions/flashloan/AaveV2FlashLoanAction.js +20 -0
- package/esm/src/actions/flashloan/AaveV2FlashLoanPaybackAction.d.ts +14 -0
- package/esm/src/actions/flashloan/AaveV2FlashLoanPaybackAction.js +16 -0
- package/esm/src/actions/flashloan/AaveV3FlashLoanAction.d.ts +18 -0
- package/esm/src/actions/flashloan/AaveV3FlashLoanAction.js +20 -0
- package/esm/src/actions/flashloan/AaveV3FlashLoanPaybackAction.d.ts +14 -0
- package/esm/src/actions/flashloan/AaveV3FlashLoanPaybackAction.js +16 -0
- package/esm/src/actions/flashloan/BalancerFlashLoanAction.d.ts +16 -0
- package/esm/src/actions/flashloan/BalancerFlashLoanAction.js +18 -0
- package/esm/src/actions/flashloan/BalancerFlashLoanPaybackAction.d.ts +14 -0
- package/esm/src/actions/flashloan/BalancerFlashLoanPaybackAction.js +16 -0
- package/esm/src/actions/flashloan/DyDxFlashLoanAction.d.ts +16 -0
- package/esm/src/actions/flashloan/DyDxFlashLoanAction.js +18 -0
- package/esm/src/actions/flashloan/DyDxFlashLoanPaybackAction.d.ts +14 -0
- package/esm/src/actions/flashloan/DyDxFlashLoanPaybackAction.js +16 -0
- package/esm/src/actions/flashloan/EulerFlashLoanAction.d.ts +16 -0
- package/esm/src/actions/flashloan/EulerFlashLoanAction.js +18 -0
- package/esm/src/actions/flashloan/EulerFlashLoanPaybackAction.d.ts +13 -0
- package/esm/src/actions/flashloan/EulerFlashLoanPaybackAction.js +15 -0
- package/esm/src/actions/flashloan/MakerFlashLoanAction.d.ts +15 -0
- package/esm/src/actions/flashloan/MakerFlashLoanAction.js +17 -0
- package/esm/src/actions/flashloan/MakerFlashLoanPaybackAction.d.ts +13 -0
- package/esm/src/actions/flashloan/MakerFlashLoanPaybackAction.js +15 -0
- package/esm/src/actions/flashloan/index.d.ts +12 -0
- package/esm/src/actions/flashloan/index.js +12 -0
- package/esm/src/actions/guni/GUniDeposit.d.ts +24 -0
- package/esm/src/actions/guni/GUniDeposit.js +47 -0
- package/esm/src/actions/guni/GUniWithdraw.d.ts +22 -0
- package/esm/src/actions/guni/GUniWithdraw.js +39 -0
- package/esm/src/actions/guni/index.d.ts +2 -0
- package/esm/src/actions/guni/index.js +2 -0
- package/esm/src/actions/index.d.ts +24 -0
- package/esm/src/actions/index.js +24 -0
- package/esm/src/actions/insta/InstPullTokensAction.d.ts +18 -0
- package/esm/src/actions/insta/InstPullTokensAction.js +36 -0
- package/esm/src/actions/insta/index.d.ts +1 -0
- package/esm/src/actions/insta/index.js +1 -0
- package/esm/src/actions/lido/LidoStakeAction.d.ts +19 -0
- package/esm/src/actions/lido/LidoStakeAction.js +34 -0
- package/esm/src/actions/lido/LidoUnwrapAction.d.ts +19 -0
- package/esm/src/actions/lido/LidoUnwrapAction.js +33 -0
- package/esm/src/actions/lido/LidoWrapAction.d.ts +20 -0
- package/esm/src/actions/lido/LidoWrapAction.js +45 -0
- package/esm/src/actions/lido/index.d.ts +3 -0
- package/esm/src/actions/lido/index.js +3 -0
- package/esm/src/actions/liquity/LiquityBorrowAction.d.ts +15 -0
- package/esm/src/actions/liquity/LiquityBorrowAction.js +24 -0
- package/esm/src/actions/liquity/LiquityClaimAction.d.ts +13 -0
- package/esm/src/actions/liquity/LiquityClaimAction.js +20 -0
- package/esm/src/actions/liquity/LiquityClaimSPRewardsAction.d.ts +14 -0
- package/esm/src/actions/liquity/LiquityClaimSPRewardsAction.js +18 -0
- package/esm/src/actions/liquity/LiquityClaimStakingRewardsAction.d.ts +14 -0
- package/esm/src/actions/liquity/LiquityClaimStakingRewardsAction.js +18 -0
- package/esm/src/actions/liquity/LiquityCloseAction.d.ts +18 -0
- package/esm/src/actions/liquity/LiquityCloseAction.js +38 -0
- package/esm/src/actions/liquity/LiquityEthGainToTroveAction.d.ts +13 -0
- package/esm/src/actions/liquity/LiquityEthGainToTroveAction.js +20 -0
- package/esm/src/actions/liquity/LiquityOpenAction.d.ts +21 -0
- package/esm/src/actions/liquity/LiquityOpenAction.js +44 -0
- package/esm/src/actions/liquity/LiquityPaybackAction.d.ts +18 -0
- package/esm/src/actions/liquity/LiquityPaybackAction.js +37 -0
- package/esm/src/actions/liquity/LiquityRedeemAction.d.ts +20 -0
- package/esm/src/actions/liquity/LiquityRedeemAction.js +42 -0
- package/esm/src/actions/liquity/LiquitySPDepositAction.d.ts +20 -0
- package/esm/src/actions/liquity/LiquitySPDepositAction.js +43 -0
- package/esm/src/actions/liquity/LiquitySPWithdrawAction.d.ts +16 -0
- package/esm/src/actions/liquity/LiquitySPWithdrawAction.js +28 -0
- package/esm/src/actions/liquity/LiquityStakeAction.d.ts +20 -0
- package/esm/src/actions/liquity/LiquityStakeAction.js +43 -0
- package/esm/src/actions/liquity/LiquitySupplyAction.d.ts +18 -0
- package/esm/src/actions/liquity/LiquitySupplyAction.js +37 -0
- package/esm/src/actions/liquity/LiquityUnstakeAction.d.ts +16 -0
- package/esm/src/actions/liquity/LiquityUnstakeAction.js +28 -0
- package/esm/src/actions/liquity/LiquityWithdrawAction.d.ts +14 -0
- package/esm/src/actions/liquity/LiquityWithdrawAction.js +22 -0
- package/esm/src/actions/liquity/index.d.ts +15 -0
- package/esm/src/actions/liquity/index.js +15 -0
- package/esm/src/actions/maker/MakerClaimAction.d.ts +15 -0
- package/esm/src/actions/maker/MakerClaimAction.js +24 -0
- package/esm/src/actions/maker/MakerGenerateAction.d.ts +16 -0
- package/esm/src/actions/maker/MakerGenerateAction.js +20 -0
- package/esm/src/actions/maker/MakerGiveAction.d.ts +16 -0
- package/esm/src/actions/maker/MakerGiveAction.js +25 -0
- package/esm/src/actions/maker/MakerMergeAction.d.ts +15 -0
- package/esm/src/actions/maker/MakerMergeAction.js +17 -0
- package/esm/src/actions/maker/MakerOpenVaultAction.d.ts +14 -0
- package/esm/src/actions/maker/MakerOpenVaultAction.js +16 -0
- package/esm/src/actions/maker/MakerPaybackAction.d.ts +20 -0
- package/esm/src/actions/maker/MakerPaybackAction.js +33 -0
- package/esm/src/actions/maker/MakerRatioAction.d.ts +13 -0
- package/esm/src/actions/maker/MakerRatioAction.js +15 -0
- package/esm/src/actions/maker/MakerSupplyAction.d.ts +21 -0
- package/esm/src/actions/maker/MakerSupplyAction.js +37 -0
- package/esm/src/actions/maker/MakerWithdrawAction.d.ts +17 -0
- package/esm/src/actions/maker/MakerWithdrawAction.js +21 -0
- package/esm/src/actions/maker/index.d.ts +9 -0
- package/esm/src/actions/maker/index.js +9 -0
- package/esm/src/actions/mstable/MStableClaimAction.d.ts +16 -0
- package/esm/src/actions/mstable/MStableClaimAction.js +25 -0
- package/esm/src/actions/mstable/MStableDepositAction.d.ts +25 -0
- package/esm/src/actions/mstable/MStableDepositAction.js +75 -0
- package/esm/src/actions/mstable/MStableWithdrawAction.d.ts +25 -0
- package/esm/src/actions/mstable/MStableWithdrawAction.js +74 -0
- package/esm/src/actions/mstable/index.d.ts +3 -0
- package/esm/src/actions/mstable/index.js +3 -0
- package/esm/src/actions/rari/RariDepositAction.d.ts +22 -0
- package/esm/src/actions/rari/RariDepositAction.js +41 -0
- package/esm/src/actions/rari/RariWithdrawAction.d.ts +23 -0
- package/esm/src/actions/rari/RariWithdrawAction.js +43 -0
- package/esm/src/actions/rari/index.d.ts +2 -0
- package/esm/src/actions/rari/index.js +2 -0
- package/esm/src/actions/reflexer/ReflexerGenerateAction.d.ts +15 -0
- package/esm/src/actions/reflexer/ReflexerGenerateAction.js +19 -0
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourDepositAction.d.ts +19 -0
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourDepositAction.js +37 -0
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourGetReservesAction.d.ts +14 -0
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourGetReservesAction.js +21 -0
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourWithdrawAction.d.ts +15 -0
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourWithdrawAction.js +23 -0
- package/esm/src/actions/reflexer/ReflexerOpenSafeAction.d.ts +13 -0
- package/esm/src/actions/reflexer/ReflexerOpenSafeAction.js +15 -0
- package/esm/src/actions/reflexer/ReflexerPaybackAction.d.ts +19 -0
- package/esm/src/actions/reflexer/ReflexerPaybackAction.js +32 -0
- package/esm/src/actions/reflexer/ReflexerSupplyAction.d.ts +21 -0
- package/esm/src/actions/reflexer/ReflexerSupplyAction.js +44 -0
- package/esm/src/actions/reflexer/ReflexerWithdrawAction.d.ts +16 -0
- package/esm/src/actions/reflexer/ReflexerWithdrawAction.js +20 -0
- package/esm/src/actions/reflexer/index.d.ts +8 -0
- package/esm/src/actions/reflexer/index.js +8 -0
- package/esm/src/actions/uniswap/UniswapSupplyAction.d.ts +26 -0
- package/esm/src/actions/uniswap/UniswapSupplyAction.js +65 -0
- package/esm/src/actions/uniswap/UniswapWithdrawAction.d.ts +25 -0
- package/esm/src/actions/uniswap/UniswapWithdrawAction.js +56 -0
- package/esm/src/actions/uniswap/index.d.ts +2 -0
- package/esm/src/actions/uniswap/index.js +2 -0
- package/esm/src/actions/uniswapV3/UniswapV3CollectAction.d.ts +24 -0
- package/esm/src/actions/uniswapV3/UniswapV3CollectAction.js +47 -0
- package/esm/src/actions/uniswapV3/UniswapV3CreatePoolAction.d.ts +30 -0
- package/esm/src/actions/uniswapV3/UniswapV3CreatePoolAction.js +69 -0
- package/esm/src/actions/uniswapV3/UniswapV3MintAction.d.ts +29 -0
- package/esm/src/actions/uniswapV3/UniswapV3MintAction.js +67 -0
- package/esm/src/actions/uniswapV3/UniswapV3SupplyAction.d.ts +26 -0
- package/esm/src/actions/uniswapV3/UniswapV3SupplyAction.js +60 -0
- package/esm/src/actions/uniswapV3/UniswapV3WithdrawAction.d.ts +28 -0
- package/esm/src/actions/uniswapV3/UniswapV3WithdrawAction.js +58 -0
- package/esm/src/actions/uniswapV3/index.d.ts +5 -0
- package/esm/src/actions/uniswapV3/index.js +5 -0
- package/esm/src/actions/yearn/YearnSupplyAction.d.ts +21 -0
- package/esm/src/actions/yearn/YearnSupplyAction.js +43 -0
- package/esm/src/actions/yearn/YearnWithdrawAction.d.ts +21 -0
- package/esm/src/actions/yearn/YearnWithdrawAction.js +43 -0
- package/esm/src/actions/yearn/index.d.ts +2 -0
- package/esm/src/actions/yearn/index.js +2 -0
- package/esm/src/addresses.d.ts +410 -0
- package/esm/src/addresses.js +257 -0
- package/esm/src/config.d.ts +20 -0
- package/esm/src/config.js +69 -0
- package/esm/src/index.d.ts +1549 -0
- package/esm/src/index.js +22 -0
- package/esm/src/triggers/AaveV3RatioTrigger.d.ts +10 -0
- package/esm/src/triggers/AaveV3RatioTrigger.js +12 -0
- package/esm/src/triggers/ChainLinkPriceTrigger.d.ts +10 -0
- package/esm/src/triggers/ChainLinkPriceTrigger.js +12 -0
- package/esm/src/triggers/CompV3RatioTrigger.d.ts +10 -0
- package/esm/src/triggers/CompV3RatioTrigger.js +12 -0
- package/esm/src/triggers/CompoundRatioTrigger.d.ts +10 -0
- package/esm/src/triggers/CompoundRatioTrigger.js +12 -0
- package/esm/src/triggers/GasPriceTrigger.d.ts +10 -0
- package/esm/src/triggers/GasPriceTrigger.js +12 -0
- package/esm/src/triggers/LiquityRatioTrigger.d.ts +10 -0
- package/esm/src/triggers/LiquityRatioTrigger.js +12 -0
- package/esm/src/triggers/MakerRatioTrigger.d.ts +10 -0
- package/esm/src/triggers/MakerRatioTrigger.js +12 -0
- package/esm/src/triggers/ReflexerRatioTrigger.d.ts +10 -0
- package/esm/src/triggers/ReflexerRatioTrigger.js +12 -0
- package/esm/src/triggers/TimestampTrigger.d.ts +10 -0
- package/esm/src/triggers/TimestampTrigger.js +12 -0
- package/esm/src/triggers/TrailingStopTrigger.d.ts +10 -0
- package/esm/src/triggers/TrailingStopTrigger.js +12 -0
- package/esm/src/triggers/UniV3CurrentTickTrigger.d.ts +10 -0
- package/esm/src/triggers/UniV3CurrentTickTrigger.js +12 -0
- package/esm/src/triggers/index.d.ts +11 -0
- package/esm/src/triggers/index.js +11 -0
- package/esm/src/types.d.ts +43 -0
- package/esm/src/types.js +1 -0
- package/esm/src/utils/convex-utils.d.ts +42 -0
- package/esm/src/utils/convex-utils.js +16 -0
- package/esm/src/utils/convexPoolInfo.json +1039 -0
- package/esm/src/utils/curve-utils.d.ts +4 -0
- package/esm/src/utils/curve-utils.js +6 -0
- package/esm/src/utils/curvePoolInfo.json +203 -0
- package/esm/src/utils/general.d.ts +17 -0
- package/esm/src/utils/general.js +39 -0
- package/esm/src/utils/index.d.ts +5 -0
- package/esm/src/utils/index.js +5 -0
- package/esm/src/utils/mstableAssetPairs.d.ts +9 -0
- package/esm/src/utils/mstableAssetPairs.js +8 -0
- package/esm/src/utils/uniswapLP.d.ts +19 -0
- package/esm/src/utils/uniswapLP.js +33 -0
- package/esm/src/utils/zeroExExchange.d.ts +39 -0
- package/esm/src/utils/zeroExExchange.js +169 -0
- package/package.json +10 -5
- package/src/Action.ts +47 -42
- package/src/ActionWithL2.ts +6 -6
- package/src/DfsWeb3.ts +20 -25
- package/src/Recipe.ts +18 -16
- package/src/Strategy.ts +10 -8
- package/src/actions/aave/AaveBorrowAction.ts +4 -4
- package/src/actions/aave/AaveClaimStkAaveAction.ts +5 -5
- package/src/actions/aave/AaveCollateralSwitchAction.ts +7 -7
- package/src/actions/aave/AavePaybackAction.ts +6 -6
- package/src/actions/aave/AaveSupplyAction.ts +7 -7
- package/src/actions/aave/AaveWithdrawAction.ts +6 -6
- package/src/actions/aaveV3/AaveV3ATokenPaybackAction.ts +13 -11
- package/src/actions/aaveV3/AaveV3BorrowAction.ts +11 -9
- package/src/actions/aaveV3/AaveV3ClaimRewardsAction.ts +7 -6
- package/src/actions/aaveV3/AaveV3CollateralSwitchAction.ts +8 -7
- package/src/actions/aaveV3/AaveV3PaybackAction.ts +20 -19
- package/src/actions/aaveV3/AaveV3SetEModeAction.ts +6 -6
- package/src/actions/aaveV3/AaveV3SupplyAction.ts +17 -18
- package/src/actions/aaveV3/AaveV3SwapBorrowRateModeAction.ts +10 -9
- package/src/actions/aaveV3/AaveV3WithdrawAction.ts +14 -13
- package/src/actions/balancer/BalancerV2ClaimAction.ts +14 -15
- package/src/actions/balancer/BalancerV2SupplyAction.ts +16 -14
- package/src/actions/balancer/BalancerV2WithdrawAction.ts +16 -14
- package/src/actions/balancer/index.ts +3 -3
- package/src/actions/basic/AutomationV2Unsub.ts +6 -6
- package/src/actions/basic/ChangeProxyOwnerAction.ts +5 -5
- package/src/actions/basic/GasFeeAction.ts +6 -7
- package/src/actions/basic/GasFeeActionL2.ts +6 -6
- package/src/actions/basic/PullTokenAction.ts +11 -11
- package/src/actions/basic/SellAction.ts +11 -12
- package/src/actions/basic/SendTokenAction.ts +8 -8
- package/src/actions/basic/SendTokenAndUnwrapAction.ts +8 -8
- package/src/actions/basic/SubInputsAction.ts +6 -6
- package/src/actions/basic/SumInputsAction.ts +6 -6
- package/src/actions/basic/ToggleSubAction.ts +5 -7
- package/src/actions/basic/TokenBalanceAction.ts +5 -5
- package/src/actions/basic/TransferNFTAction.ts +8 -8
- package/src/actions/basic/UnwrapEthAction.ts +11 -10
- package/src/actions/basic/UpdateSubAction.ts +8 -8
- package/src/actions/basic/WrapEthAction.ts +6 -6
- package/src/actions/checkers/AaveV3RatioCheckAction.ts +5 -5
- package/src/actions/checkers/CompoundV3RatioCheckAction.ts +6 -6
- package/src/actions/checkers/MakerRatioCheckAction.ts +5 -5
- package/src/actions/chickenBonds/CBChickenInAction.ts +6 -6
- package/src/actions/chickenBonds/CBChickenOutAction.ts +7 -7
- package/src/actions/chickenBonds/CBCreateAction.ts +6 -6
- package/src/actions/chickenBonds/CBRedeemAction.ts +6 -7
- package/src/actions/compound/CompoundBorrowAction.ts +5 -5
- package/src/actions/compound/CompoundClaimAction.ts +6 -6
- package/src/actions/compound/CompoundCollateralSwitchAction.ts +4 -4
- package/src/actions/compound/CompoundGetDebtAction.ts +5 -5
- package/src/actions/compound/CompoundPaybackAction.ts +8 -9
- package/src/actions/compound/CompoundSupplyAction.ts +8 -9
- package/src/actions/compound/CompoundWithdrawAction.ts +5 -5
- package/src/actions/compoundV3/CompoundV3AllowAction.ts +16 -16
- package/src/actions/compoundV3/CompoundV3BorrowAction.ts +17 -17
- package/src/actions/compoundV3/CompoundV3ClaimAction.ts +9 -9
- package/src/actions/compoundV3/CompoundV3PaybackAction.ts +32 -33
- package/src/actions/compoundV3/CompoundV3SupplyAction.ts +24 -25
- package/src/actions/compoundV3/CompoundV3TransferAction.ts +25 -25
- package/src/actions/compoundV3/CompoundV3WithdrawAction.ts +9 -9
- package/src/actions/compoundV3/index.ts +1 -1
- package/src/actions/convex/ConvexClaimAction.ts +51 -52
- package/src/actions/convex/ConvexDepositAction.ts +58 -59
- package/src/actions/convex/ConvexWithdrawAction.ts +55 -56
- package/src/actions/curve/CurveClaimFeesAction.ts +18 -19
- package/src/actions/curve/CurveDepositAction.ts +61 -62
- package/src/actions/curve/CurveGaugeDepositAction.ts +20 -21
- package/src/actions/curve/CurveGaugeWithdrawAction.ts +15 -16
- package/src/actions/curve/CurveMintCrvAction.ts +14 -15
- package/src/actions/curve/CurveStethPoolDepositAction.ts +27 -27
- package/src/actions/curve/CurveStethPoolWithdrawAction.ts +26 -26
- package/src/actions/curve/CurveSwapAction.ts +20 -21
- package/src/actions/curve/CurveWithdrawAction.ts +56 -57
- package/src/actions/dydx/DyDxWithdrawAction.ts +6 -6
- package/src/actions/flashloan/AaveV2FlashLoanAction.ts +6 -6
- package/src/actions/flashloan/AaveV2FlashLoanPaybackAction.ts +5 -5
- package/src/actions/flashloan/AaveV3FlashLoanAction.ts +6 -6
- package/src/actions/flashloan/AaveV3FlashLoanPaybackAction.ts +5 -5
- package/src/actions/flashloan/BalancerFlashLoanAction.ts +6 -6
- package/src/actions/flashloan/BalancerFlashLoanPaybackAction.ts +8 -8
- package/src/actions/flashloan/DyDxFlashLoanAction.ts +7 -7
- package/src/actions/flashloan/DyDxFlashLoanPaybackAction.ts +5 -5
- package/src/actions/flashloan/EulerFlashLoanAction.ts +6 -6
- package/src/actions/flashloan/EulerFlashLoanPaybackAction.ts +6 -5
- package/src/actions/flashloan/FLAction.ts +51 -0
- package/src/actions/flashloan/MakerFlashLoanAction.ts +6 -6
- package/src/actions/flashloan/MakerFlashLoanPaybackAction.ts +4 -4
- package/src/actions/flashloan/index.ts +3 -2
- package/src/actions/guni/GUniDeposit.ts +15 -15
- package/src/actions/guni/GUniWithdraw.ts +11 -11
- package/src/actions/index.ts +24 -24
- package/src/actions/insta/InstPullTokensAction.ts +9 -9
- package/src/actions/lido/LidoStakeAction.ts +7 -7
- package/src/actions/lido/LidoUnwrapAction.ts +6 -6
- package/src/actions/lido/LidoWrapAction.ts +9 -10
- package/src/actions/liquity/LiquityBorrowAction.ts +19 -17
- package/src/actions/liquity/LiquityClaimAction.ts +14 -14
- package/src/actions/liquity/LiquityClaimSPRewardsAction.ts +9 -9
- package/src/actions/liquity/LiquityClaimStakingRewardsAction.ts +9 -9
- package/src/actions/liquity/LiquityCloseAction.ts +19 -19
- package/src/actions/liquity/LiquityEthGainToTroveAction.ts +19 -17
- package/src/actions/liquity/LiquityOpenAction.ts +25 -23
- package/src/actions/liquity/LiquityPaybackAction.ts +21 -19
- package/src/actions/liquity/LiquityRedeemAction.ts +42 -37
- package/src/actions/liquity/LiquitySPDepositAction.ts +22 -22
- package/src/actions/liquity/LiquitySPWithdrawAction.ts +19 -19
- package/src/actions/liquity/LiquityStakeAction.ts +22 -22
- package/src/actions/liquity/LiquitySupplyAction.ts +21 -19
- package/src/actions/liquity/LiquityUnstakeAction.ts +19 -19
- package/src/actions/liquity/LiquityWithdrawAction.ts +18 -16
- package/src/actions/maker/MakerClaimAction.ts +8 -8
- package/src/actions/maker/MakerGenerateAction.ts +5 -5
- package/src/actions/maker/MakerGiveAction.ts +6 -6
- package/src/actions/maker/MakerMergeAction.ts +4 -4
- package/src/actions/maker/MakerOpenVaultAction.ts +4 -4
- package/src/actions/maker/MakerPaybackAction.ts +6 -6
- package/src/actions/maker/MakerRatioAction.ts +3 -3
- package/src/actions/maker/MakerSupplyAction.ts +6 -6
- package/src/actions/maker/MakerWithdrawAction.ts +5 -5
- package/src/actions/mstable/MStableClaimAction.ts +23 -23
- package/src/actions/mstable/MStableDepositAction.ts +60 -60
- package/src/actions/mstable/MStableWithdrawAction.ts +59 -59
- package/src/actions/rari/RariDepositAction.ts +4 -4
- package/src/actions/rari/RariWithdrawAction.ts +4 -4
- package/src/actions/reflexer/ReflexerGenerateAction.ts +6 -6
- package/src/actions/reflexer/ReflexerNativeUniV2SaviourDepositAction.ts +10 -11
- package/src/actions/reflexer/ReflexerNativeUniV2SaviourGetReservesAction.ts +7 -7
- package/src/actions/reflexer/ReflexerNativeUniV2SaviourWithdrawAction.ts +8 -8
- package/src/actions/reflexer/ReflexerOpenSafeAction.ts +3 -3
- package/src/actions/reflexer/ReflexerPaybackAction.ts +6 -6
- package/src/actions/reflexer/ReflexerSupplyAction.ts +6 -6
- package/src/actions/reflexer/ReflexerWithdrawAction.ts +5 -5
- package/src/actions/uniswap/UniswapSupplyAction.ts +18 -18
- package/src/actions/uniswap/UniswapWithdrawAction.ts +16 -16
- package/src/actions/uniswapV3/UniswapV3CollectAction.ts +9 -10
- package/src/actions/uniswapV3/UniswapV3CreatePoolAction.ts +22 -20
- package/src/actions/uniswapV3/UniswapV3MintAction.ts +21 -19
- package/src/actions/uniswapV3/UniswapV3SupplyAction.ts +15 -15
- package/src/actions/uniswapV3/UniswapV3WithdrawAction.ts +14 -15
- package/src/actions/yearn/YearnSupplyAction.ts +7 -7
- package/src/actions/yearn/YearnWithdrawAction.ts +7 -7
- package/src/addresses.ts +10 -7
- package/src/config.ts +6 -6
- package/{index.ts → src/index.ts} +36 -21
- package/src/triggers/AaveV3RatioTrigger.ts +6 -7
- package/src/triggers/ChainLinkPriceTrigger.ts +6 -8
- package/src/triggers/CompV3RatioTrigger.ts +6 -7
- package/src/triggers/CompoundRatioTrigger.ts +6 -7
- package/src/triggers/GasPriceTrigger.ts +6 -7
- package/src/triggers/LiquityRatioTrigger.ts +9 -10
- package/src/triggers/MakerRatioTrigger.ts +6 -7
- package/src/triggers/ReflexerRatioTrigger.ts +6 -7
- package/src/triggers/TimestampTrigger.ts +6 -7
- package/src/triggers/TrailingStopTrigger.ts +6 -7
- package/src/triggers/UniV3CurrentTickTrigger.ts +6 -6
- package/src/types.ts +9 -7
- package/src/utils/convex-utils.ts +9 -9
- package/src/utils/curve-utils.ts +11 -8
- package/src/utils/general.ts +4 -5
- package/src/utils/index.ts +7 -5
- package/src/utils/mstableAssetPairs.ts +6 -6
- package/src/utils/uniswapLP.ts +14 -16
- package/src/utils/uniswapV3LP.ts +5 -4
- package/src/utils/zeroExExchange.ts +9 -8
- package/tsconfig.json +1 -2
- package/umd/index.js +8639 -0
- package/webpack.umd.js +1 -1
- package/.eslintrc +0 -14
- package/src/triggers/CompV3Trigger.ts +0 -15
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
2
|
+
import { EthAddress, uint256, uint128 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Burns liquidity, and returns underlying tokens to recipient
|
|
5
|
+
*
|
|
6
|
+
* @category UniswapV3
|
|
7
|
+
*/
|
|
8
|
+
export declare class UniswapV3WithdrawAction extends ActionWithL2 {
|
|
9
|
+
from: EthAddress;
|
|
10
|
+
/**
|
|
11
|
+
* @param tokenId
|
|
12
|
+
* @param liquidity
|
|
13
|
+
* @param amount0Min
|
|
14
|
+
* @param amount1Min
|
|
15
|
+
* @param deadline
|
|
16
|
+
* @param recipient
|
|
17
|
+
* @param amount0Max
|
|
18
|
+
* @param amount1Max
|
|
19
|
+
* @param from
|
|
20
|
+
*/
|
|
21
|
+
constructor(tokenId: uint256, liquidity: uint128, amount0Min: uint256, amount1Min: uint256, deadline: uint256, recipient: EthAddress, amount0Max: uint128, amount1Max: uint128, from: EthAddress);
|
|
22
|
+
getAssetsToApprove(): Promise<{
|
|
23
|
+
nft: string;
|
|
24
|
+
tokenId: any;
|
|
25
|
+
owner: string;
|
|
26
|
+
specialApproveLabel: string;
|
|
27
|
+
}[]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { ActionWithL2 } from '../../ActionWithL2';
|
|
11
|
+
import { getAddr } from '../../addresses';
|
|
12
|
+
import { requireAddress } from "../../utils/general";
|
|
13
|
+
/**
|
|
14
|
+
* Burns liquidity, and returns underlying tokens to recipient
|
|
15
|
+
*
|
|
16
|
+
* @category UniswapV3
|
|
17
|
+
*/
|
|
18
|
+
export class UniswapV3WithdrawAction extends ActionWithL2 {
|
|
19
|
+
/**
|
|
20
|
+
* @param tokenId
|
|
21
|
+
* @param liquidity
|
|
22
|
+
* @param amount0Min
|
|
23
|
+
* @param amount1Min
|
|
24
|
+
* @param deadline
|
|
25
|
+
* @param recipient
|
|
26
|
+
* @param amount0Max
|
|
27
|
+
* @param amount1Max
|
|
28
|
+
* @param from
|
|
29
|
+
*/
|
|
30
|
+
constructor(tokenId, liquidity, amount0Min, amount1Min, deadline, recipient, amount0Max, amount1Max, from) {
|
|
31
|
+
requireAddress(recipient);
|
|
32
|
+
super('UniWithdrawV3', getAddr('UniWithdrawV3'), [
|
|
33
|
+
"uint256",
|
|
34
|
+
"uint128",
|
|
35
|
+
"uint256",
|
|
36
|
+
"uint256",
|
|
37
|
+
"uint256",
|
|
38
|
+
"address",
|
|
39
|
+
"uint128",
|
|
40
|
+
"uint128",
|
|
41
|
+
], [tokenId, liquidity, amount0Min, amount1Min, deadline, recipient, amount0Max, amount1Max]);
|
|
42
|
+
this.from = from;
|
|
43
|
+
this.mappableArgs = [
|
|
44
|
+
this.args[0],
|
|
45
|
+
this.args[1],
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
getAssetsToApprove() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return [{
|
|
51
|
+
nft: getAddr('UniswapV3PositionManager'),
|
|
52
|
+
tokenId: this.args[0],
|
|
53
|
+
owner: this.from,
|
|
54
|
+
specialApproveLabel: 'uniswap v3'
|
|
55
|
+
}];
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Action } from "../../Action";
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* YearnSupplyAction - Supply token to a Yearn vault
|
|
5
|
+
*
|
|
6
|
+
* @category Yearn
|
|
7
|
+
*/
|
|
8
|
+
export declare class YearnSupplyAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param tokenAddr token address
|
|
11
|
+
* @param amount amount of tokens to supply
|
|
12
|
+
* @param from Tokens will be supplied from this address
|
|
13
|
+
* @param to yTokens will be sent to this address
|
|
14
|
+
*/
|
|
15
|
+
constructor(tokenAddr: EthAddress, amount: uint256, from: EthAddress, to: EthAddress);
|
|
16
|
+
getAssetsToApprove(): Promise<{
|
|
17
|
+
asset: any;
|
|
18
|
+
owner: any;
|
|
19
|
+
specialApproveLabel: string;
|
|
20
|
+
}[]>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { getAssetInfoByAddress } from "@defisaver/tokens";
|
|
12
|
+
import { getAddr } from '../../addresses';
|
|
13
|
+
import { requireAddress } from "../../utils/general";
|
|
14
|
+
/**
|
|
15
|
+
* YearnSupplyAction - Supply token to a Yearn vault
|
|
16
|
+
*
|
|
17
|
+
* @category Yearn
|
|
18
|
+
*/
|
|
19
|
+
export class YearnSupplyAction extends Action {
|
|
20
|
+
/**
|
|
21
|
+
* @param tokenAddr token address
|
|
22
|
+
* @param amount amount of tokens to supply
|
|
23
|
+
* @param from Tokens will be supplied from this address
|
|
24
|
+
* @param to yTokens will be sent to this address
|
|
25
|
+
*/
|
|
26
|
+
constructor(tokenAddr, amount, from, to) {
|
|
27
|
+
requireAddress(to);
|
|
28
|
+
super('YearnSupply', getAddr('YearnSupply'), ['address', 'uint256', 'address', 'address'], [tokenAddr, amount, from, to]);
|
|
29
|
+
this.mappableArgs = [
|
|
30
|
+
this.args[1],
|
|
31
|
+
this.args[2],
|
|
32
|
+
this.args[3],
|
|
33
|
+
];
|
|
34
|
+
}
|
|
35
|
+
getAssetsToApprove() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const asset = getAssetInfoByAddress(this.args[0]);
|
|
38
|
+
if (asset.symbol !== 'ETH')
|
|
39
|
+
return [{ asset: this.args[0], owner: this.args[2], specialApproveLabel: 'yearn' }];
|
|
40
|
+
return [];
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Action } from "../../Action";
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* YearnWithdrawAction - Burns yTokens and receive underlying tokens in return
|
|
5
|
+
*
|
|
6
|
+
* @category Yearn
|
|
7
|
+
*/
|
|
8
|
+
export declare class YearnWithdrawAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param tokenAddr yToken address
|
|
11
|
+
* @param amount amount of yTokens to burn
|
|
12
|
+
* @param from yTokens will be taken from this address
|
|
13
|
+
* @param to underlying tokens will be sent to this address
|
|
14
|
+
*/
|
|
15
|
+
constructor(tokenAddr: EthAddress, amount: uint256, from: EthAddress, to: EthAddress);
|
|
16
|
+
getAssetsToApprove(): Promise<{
|
|
17
|
+
asset: any;
|
|
18
|
+
owner: any;
|
|
19
|
+
specialApproveLabel: string;
|
|
20
|
+
}[]>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { getAssetInfoByAddress } from "@defisaver/tokens";
|
|
12
|
+
import { getAddr } from '../../addresses';
|
|
13
|
+
import { requireAddress } from "../../utils/general";
|
|
14
|
+
/**
|
|
15
|
+
* YearnWithdrawAction - Burns yTokens and receive underlying tokens in return
|
|
16
|
+
*
|
|
17
|
+
* @category Yearn
|
|
18
|
+
*/
|
|
19
|
+
export class YearnWithdrawAction extends Action {
|
|
20
|
+
/**
|
|
21
|
+
* @param tokenAddr yToken address
|
|
22
|
+
* @param amount amount of yTokens to burn
|
|
23
|
+
* @param from yTokens will be taken from this address
|
|
24
|
+
* @param to underlying tokens will be sent to this address
|
|
25
|
+
*/
|
|
26
|
+
constructor(tokenAddr, amount, from, to) {
|
|
27
|
+
requireAddress(to);
|
|
28
|
+
super('YearnWithdraw', getAddr('YearnWithdraw'), ['address', 'uint256', 'address', 'address'], [tokenAddr, amount, from, to]);
|
|
29
|
+
this.mappableArgs = [
|
|
30
|
+
this.args[1],
|
|
31
|
+
this.args[2],
|
|
32
|
+
this.args[3],
|
|
33
|
+
];
|
|
34
|
+
}
|
|
35
|
+
getAssetsToApprove() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const asset = getAssetInfoByAddress(this.args[0]);
|
|
38
|
+
if (asset.symbol !== 'ETH')
|
|
39
|
+
return [{ asset: this.args[0], owner: this.args[2], specialApproveLabel: 'yearn' }];
|
|
40
|
+
return [];
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
import { EthAddress } from './types';
|
|
2
|
+
export declare const actionAddresses: {
|
|
3
|
+
[x: number]: {
|
|
4
|
+
WrapEth: string;
|
|
5
|
+
UnwrapEth: string;
|
|
6
|
+
PullToken: string;
|
|
7
|
+
SendToken: string;
|
|
8
|
+
SumInputs: string;
|
|
9
|
+
SubInputs: string;
|
|
10
|
+
ChangeProxyOwner: string;
|
|
11
|
+
TokenBalance: string;
|
|
12
|
+
AutomationV2Unsub: string;
|
|
13
|
+
SendTokenAndUnwrap: string;
|
|
14
|
+
ToggleSub: string;
|
|
15
|
+
UpdateSub: string;
|
|
16
|
+
TransferNFT: string;
|
|
17
|
+
DFSSell: string;
|
|
18
|
+
McdGenerate: string;
|
|
19
|
+
McdGive: string;
|
|
20
|
+
McdMerge: string;
|
|
21
|
+
McdOpen: string;
|
|
22
|
+
McdPayback: string;
|
|
23
|
+
McdSupply: string;
|
|
24
|
+
McdWithdraw: string;
|
|
25
|
+
McdClaim: string;
|
|
26
|
+
ReflexerSupply: string;
|
|
27
|
+
ReflexerWithdraw: string;
|
|
28
|
+
ReflexerPayback: string;
|
|
29
|
+
ReflexerGenerate: string;
|
|
30
|
+
ReflexerOpen: string;
|
|
31
|
+
ReflexerNativeUniV2SaviourDeposit: string;
|
|
32
|
+
ReflexerNativeUniV2SaviourGetReserves: string;
|
|
33
|
+
ReflexerNativeUniV2SaviourWithdraw: string;
|
|
34
|
+
AaveBorrow: string;
|
|
35
|
+
AavePayback: string;
|
|
36
|
+
AaveSupply: string;
|
|
37
|
+
AaveWithdraw: string;
|
|
38
|
+
AaveCollateralSwitch: string;
|
|
39
|
+
CompBorrow: string;
|
|
40
|
+
CompClaim: string;
|
|
41
|
+
CompPayback: string;
|
|
42
|
+
CompSupply: string;
|
|
43
|
+
CompWithdraw: string;
|
|
44
|
+
CompGetDebt: string;
|
|
45
|
+
CompCollateralSwitch: string;
|
|
46
|
+
FLAaveV2: string;
|
|
47
|
+
FLDyDx: string;
|
|
48
|
+
FLMaker: string;
|
|
49
|
+
FLBalancer: string;
|
|
50
|
+
UniSupply: string;
|
|
51
|
+
UniWithdraw: string;
|
|
52
|
+
UniCollectV3: string;
|
|
53
|
+
UniMintV3: string;
|
|
54
|
+
UniSupplyV3: string;
|
|
55
|
+
UniWithdrawV3: string;
|
|
56
|
+
UniCreatePoolV3: string;
|
|
57
|
+
DyDxWithdraw: string;
|
|
58
|
+
YearnSupply: string;
|
|
59
|
+
YearnWithdraw: string;
|
|
60
|
+
LiquityClose: string;
|
|
61
|
+
LiquityBorrow: string;
|
|
62
|
+
LiquityOpen: string;
|
|
63
|
+
LiquityPayback: string;
|
|
64
|
+
LiquityWithdraw: string;
|
|
65
|
+
LiquitySupply: string;
|
|
66
|
+
LiquitySPDeposit: string;
|
|
67
|
+
LiquitySPWithdraw: string;
|
|
68
|
+
LiquityStake: string;
|
|
69
|
+
LiquityUnstake: string;
|
|
70
|
+
LiquityEthGainToTrove: string;
|
|
71
|
+
LiquityClaim: string;
|
|
72
|
+
LiquityRedeem: string;
|
|
73
|
+
LidoStake: string;
|
|
74
|
+
LidoWrap: string;
|
|
75
|
+
LidoUnwrap: string;
|
|
76
|
+
InstPullTokens: string;
|
|
77
|
+
BalancerV2Supply: string;
|
|
78
|
+
BalancerV2Withdraw: string;
|
|
79
|
+
BalancerV2Claim: string;
|
|
80
|
+
GUniWithdraw: string;
|
|
81
|
+
GUniDeposit: string;
|
|
82
|
+
RariDeposit: string;
|
|
83
|
+
RariWithdraw: string;
|
|
84
|
+
MStableDeposit: string;
|
|
85
|
+
MStableWithdraw: string;
|
|
86
|
+
MStableClaim: string;
|
|
87
|
+
McdRatioCheck: string;
|
|
88
|
+
GasFeeTaker: string;
|
|
89
|
+
CurveStethPoolDeposit: string;
|
|
90
|
+
CurveStethPoolWithdraw: string;
|
|
91
|
+
CurveDeposit: string;
|
|
92
|
+
CurveWithdraw: string;
|
|
93
|
+
FLEuler: string;
|
|
94
|
+
TrailingStopTrigger: string;
|
|
95
|
+
ConvexDeposit: string;
|
|
96
|
+
ConvexWithdraw: string;
|
|
97
|
+
ConvexClaim: string;
|
|
98
|
+
CBCreate: string;
|
|
99
|
+
CBRedeem: string;
|
|
100
|
+
CBChickenIn: string;
|
|
101
|
+
CBChickenOut: string;
|
|
102
|
+
CompV3Allow: string;
|
|
103
|
+
CompV3Borrow: string;
|
|
104
|
+
CompV3Claim: string;
|
|
105
|
+
CompV3Payback: string;
|
|
106
|
+
CompV3Supply: string;
|
|
107
|
+
CompV3Transfer: string;
|
|
108
|
+
CompV3Withdraw: string;
|
|
109
|
+
AaveV3ATokenPayback?: undefined;
|
|
110
|
+
AaveV3Borrow?: undefined;
|
|
111
|
+
AaveV3CollateralSwitch?: undefined;
|
|
112
|
+
AaveV3Payback?: undefined;
|
|
113
|
+
AaveV3SetEMode?: undefined;
|
|
114
|
+
AaveV3Supply?: undefined;
|
|
115
|
+
AaveV3SwapBorrowRateMode?: undefined;
|
|
116
|
+
AaveV3Withdraw?: undefined;
|
|
117
|
+
AaveV3ClaimRewards?: undefined;
|
|
118
|
+
FLAaveV3?: undefined;
|
|
119
|
+
AaveV3RatioTrigger?: undefined;
|
|
120
|
+
GasFeeTakerL2?: undefined;
|
|
121
|
+
AaveV3RatioCheck?: undefined;
|
|
122
|
+
} | {
|
|
123
|
+
DFSSell: string;
|
|
124
|
+
WrapEth: string;
|
|
125
|
+
UnwrapEth: string;
|
|
126
|
+
SendToken: string;
|
|
127
|
+
PullToken: string;
|
|
128
|
+
SendTokenAndUnwrap: string;
|
|
129
|
+
ToggleSub: string;
|
|
130
|
+
TokenBalance: string;
|
|
131
|
+
AaveV3ATokenPayback: string;
|
|
132
|
+
AaveV3Borrow: string;
|
|
133
|
+
AaveV3CollateralSwitch: string;
|
|
134
|
+
AaveV3Payback: string;
|
|
135
|
+
AaveV3SetEMode: string;
|
|
136
|
+
AaveV3Supply: string;
|
|
137
|
+
AaveV3SwapBorrowRateMode: string;
|
|
138
|
+
AaveV3Withdraw: string;
|
|
139
|
+
AaveV3ClaimRewards: string;
|
|
140
|
+
FLAaveV3: string;
|
|
141
|
+
FLBalancer: string;
|
|
142
|
+
AaveV3RatioTrigger: string;
|
|
143
|
+
GasFeeTakerL2: string;
|
|
144
|
+
AaveV3RatioCheck: string;
|
|
145
|
+
UniCollectV3: string;
|
|
146
|
+
UniMintV3: string;
|
|
147
|
+
UniSupplyV3: string;
|
|
148
|
+
UniWithdrawV3: string;
|
|
149
|
+
UniCreatePoolV3: string;
|
|
150
|
+
SumInputs?: undefined;
|
|
151
|
+
SubInputs?: undefined;
|
|
152
|
+
ChangeProxyOwner?: undefined;
|
|
153
|
+
AutomationV2Unsub?: undefined;
|
|
154
|
+
UpdateSub?: undefined;
|
|
155
|
+
TransferNFT?: undefined;
|
|
156
|
+
McdGenerate?: undefined;
|
|
157
|
+
McdGive?: undefined;
|
|
158
|
+
McdMerge?: undefined;
|
|
159
|
+
McdOpen?: undefined;
|
|
160
|
+
McdPayback?: undefined;
|
|
161
|
+
McdSupply?: undefined;
|
|
162
|
+
McdWithdraw?: undefined;
|
|
163
|
+
McdClaim?: undefined;
|
|
164
|
+
ReflexerSupply?: undefined;
|
|
165
|
+
ReflexerWithdraw?: undefined;
|
|
166
|
+
ReflexerPayback?: undefined;
|
|
167
|
+
ReflexerGenerate?: undefined;
|
|
168
|
+
ReflexerOpen?: undefined;
|
|
169
|
+
ReflexerNativeUniV2SaviourDeposit?: undefined;
|
|
170
|
+
ReflexerNativeUniV2SaviourGetReserves?: undefined;
|
|
171
|
+
ReflexerNativeUniV2SaviourWithdraw?: undefined;
|
|
172
|
+
AaveBorrow?: undefined;
|
|
173
|
+
AavePayback?: undefined;
|
|
174
|
+
AaveSupply?: undefined;
|
|
175
|
+
AaveWithdraw?: undefined;
|
|
176
|
+
AaveCollateralSwitch?: undefined;
|
|
177
|
+
CompBorrow?: undefined;
|
|
178
|
+
CompClaim?: undefined;
|
|
179
|
+
CompPayback?: undefined;
|
|
180
|
+
CompSupply?: undefined;
|
|
181
|
+
CompWithdraw?: undefined;
|
|
182
|
+
CompGetDebt?: undefined;
|
|
183
|
+
CompCollateralSwitch?: undefined;
|
|
184
|
+
FLAaveV2?: undefined;
|
|
185
|
+
FLDyDx?: undefined;
|
|
186
|
+
FLMaker?: undefined;
|
|
187
|
+
UniSupply?: undefined;
|
|
188
|
+
UniWithdraw?: undefined;
|
|
189
|
+
DyDxWithdraw?: undefined;
|
|
190
|
+
YearnSupply?: undefined;
|
|
191
|
+
YearnWithdraw?: undefined;
|
|
192
|
+
LiquityClose?: undefined;
|
|
193
|
+
LiquityBorrow?: undefined;
|
|
194
|
+
LiquityOpen?: undefined;
|
|
195
|
+
LiquityPayback?: undefined;
|
|
196
|
+
LiquityWithdraw?: undefined;
|
|
197
|
+
LiquitySupply?: undefined;
|
|
198
|
+
LiquitySPDeposit?: undefined;
|
|
199
|
+
LiquitySPWithdraw?: undefined;
|
|
200
|
+
LiquityStake?: undefined;
|
|
201
|
+
LiquityUnstake?: undefined;
|
|
202
|
+
LiquityEthGainToTrove?: undefined;
|
|
203
|
+
LiquityClaim?: undefined;
|
|
204
|
+
LiquityRedeem?: undefined;
|
|
205
|
+
LidoStake?: undefined;
|
|
206
|
+
LidoWrap?: undefined;
|
|
207
|
+
LidoUnwrap?: undefined;
|
|
208
|
+
InstPullTokens?: undefined;
|
|
209
|
+
BalancerV2Supply?: undefined;
|
|
210
|
+
BalancerV2Withdraw?: undefined;
|
|
211
|
+
BalancerV2Claim?: undefined;
|
|
212
|
+
GUniWithdraw?: undefined;
|
|
213
|
+
GUniDeposit?: undefined;
|
|
214
|
+
RariDeposit?: undefined;
|
|
215
|
+
RariWithdraw?: undefined;
|
|
216
|
+
MStableDeposit?: undefined;
|
|
217
|
+
MStableWithdraw?: undefined;
|
|
218
|
+
MStableClaim?: undefined;
|
|
219
|
+
McdRatioCheck?: undefined;
|
|
220
|
+
GasFeeTaker?: undefined;
|
|
221
|
+
CurveStethPoolDeposit?: undefined;
|
|
222
|
+
CurveStethPoolWithdraw?: undefined;
|
|
223
|
+
CurveDeposit?: undefined;
|
|
224
|
+
CurveWithdraw?: undefined;
|
|
225
|
+
FLEuler?: undefined;
|
|
226
|
+
TrailingStopTrigger?: undefined;
|
|
227
|
+
ConvexDeposit?: undefined;
|
|
228
|
+
ConvexWithdraw?: undefined;
|
|
229
|
+
ConvexClaim?: undefined;
|
|
230
|
+
CBCreate?: undefined;
|
|
231
|
+
CBRedeem?: undefined;
|
|
232
|
+
CBChickenIn?: undefined;
|
|
233
|
+
CBChickenOut?: undefined;
|
|
234
|
+
CompV3Allow?: undefined;
|
|
235
|
+
CompV3Borrow?: undefined;
|
|
236
|
+
CompV3Claim?: undefined;
|
|
237
|
+
CompV3Payback?: undefined;
|
|
238
|
+
CompV3Supply?: undefined;
|
|
239
|
+
CompV3Transfer?: undefined;
|
|
240
|
+
CompV3Withdraw?: undefined;
|
|
241
|
+
} | {
|
|
242
|
+
DFSSell: string;
|
|
243
|
+
WrapEth: string;
|
|
244
|
+
UnwrapEth: string;
|
|
245
|
+
SendToken: string;
|
|
246
|
+
PullToken: string;
|
|
247
|
+
SendTokenAndUnwrap: string;
|
|
248
|
+
ToggleSub: string;
|
|
249
|
+
TokenBalance: string;
|
|
250
|
+
AaveV3ATokenPayback: string;
|
|
251
|
+
AaveV3Borrow: string;
|
|
252
|
+
AaveV3CollateralSwitch: string;
|
|
253
|
+
AaveV3Payback: string;
|
|
254
|
+
AaveV3SetEMode: string;
|
|
255
|
+
AaveV3Supply: string;
|
|
256
|
+
AaveV3SwapBorrowRateMode: string;
|
|
257
|
+
AaveV3Withdraw: string;
|
|
258
|
+
FLAaveV3: string;
|
|
259
|
+
FLBalancer: string;
|
|
260
|
+
GasFeeTakerL2: string;
|
|
261
|
+
AaveV3RatioCheck: string;
|
|
262
|
+
UniCollectV3: string;
|
|
263
|
+
UniMintV3: string;
|
|
264
|
+
UniSupplyV3: string;
|
|
265
|
+
UniWithdrawV3: string;
|
|
266
|
+
UniCreatePoolV3: string;
|
|
267
|
+
SumInputs?: undefined;
|
|
268
|
+
SubInputs?: undefined;
|
|
269
|
+
ChangeProxyOwner?: undefined;
|
|
270
|
+
AutomationV2Unsub?: undefined;
|
|
271
|
+
UpdateSub?: undefined;
|
|
272
|
+
TransferNFT?: undefined;
|
|
273
|
+
McdGenerate?: undefined;
|
|
274
|
+
McdGive?: undefined;
|
|
275
|
+
McdMerge?: undefined;
|
|
276
|
+
McdOpen?: undefined;
|
|
277
|
+
McdPayback?: undefined;
|
|
278
|
+
McdSupply?: undefined;
|
|
279
|
+
McdWithdraw?: undefined;
|
|
280
|
+
McdClaim?: undefined;
|
|
281
|
+
ReflexerSupply?: undefined;
|
|
282
|
+
ReflexerWithdraw?: undefined;
|
|
283
|
+
ReflexerPayback?: undefined;
|
|
284
|
+
ReflexerGenerate?: undefined;
|
|
285
|
+
ReflexerOpen?: undefined;
|
|
286
|
+
ReflexerNativeUniV2SaviourDeposit?: undefined;
|
|
287
|
+
ReflexerNativeUniV2SaviourGetReserves?: undefined;
|
|
288
|
+
ReflexerNativeUniV2SaviourWithdraw?: undefined;
|
|
289
|
+
AaveBorrow?: undefined;
|
|
290
|
+
AavePayback?: undefined;
|
|
291
|
+
AaveSupply?: undefined;
|
|
292
|
+
AaveWithdraw?: undefined;
|
|
293
|
+
AaveCollateralSwitch?: undefined;
|
|
294
|
+
CompBorrow?: undefined;
|
|
295
|
+
CompClaim?: undefined;
|
|
296
|
+
CompPayback?: undefined;
|
|
297
|
+
CompSupply?: undefined;
|
|
298
|
+
CompWithdraw?: undefined;
|
|
299
|
+
CompGetDebt?: undefined;
|
|
300
|
+
CompCollateralSwitch?: undefined;
|
|
301
|
+
FLAaveV2?: undefined;
|
|
302
|
+
FLDyDx?: undefined;
|
|
303
|
+
FLMaker?: undefined;
|
|
304
|
+
UniSupply?: undefined;
|
|
305
|
+
UniWithdraw?: undefined;
|
|
306
|
+
DyDxWithdraw?: undefined;
|
|
307
|
+
YearnSupply?: undefined;
|
|
308
|
+
YearnWithdraw?: undefined;
|
|
309
|
+
LiquityClose?: undefined;
|
|
310
|
+
LiquityBorrow?: undefined;
|
|
311
|
+
LiquityOpen?: undefined;
|
|
312
|
+
LiquityPayback?: undefined;
|
|
313
|
+
LiquityWithdraw?: undefined;
|
|
314
|
+
LiquitySupply?: undefined;
|
|
315
|
+
LiquitySPDeposit?: undefined;
|
|
316
|
+
LiquitySPWithdraw?: undefined;
|
|
317
|
+
LiquityStake?: undefined;
|
|
318
|
+
LiquityUnstake?: undefined;
|
|
319
|
+
LiquityEthGainToTrove?: undefined;
|
|
320
|
+
LiquityClaim?: undefined;
|
|
321
|
+
LiquityRedeem?: undefined;
|
|
322
|
+
LidoStake?: undefined;
|
|
323
|
+
LidoWrap?: undefined;
|
|
324
|
+
LidoUnwrap?: undefined;
|
|
325
|
+
InstPullTokens?: undefined;
|
|
326
|
+
BalancerV2Supply?: undefined;
|
|
327
|
+
BalancerV2Withdraw?: undefined;
|
|
328
|
+
BalancerV2Claim?: undefined;
|
|
329
|
+
GUniWithdraw?: undefined;
|
|
330
|
+
GUniDeposit?: undefined;
|
|
331
|
+
RariDeposit?: undefined;
|
|
332
|
+
RariWithdraw?: undefined;
|
|
333
|
+
MStableDeposit?: undefined;
|
|
334
|
+
MStableWithdraw?: undefined;
|
|
335
|
+
MStableClaim?: undefined;
|
|
336
|
+
McdRatioCheck?: undefined;
|
|
337
|
+
GasFeeTaker?: undefined;
|
|
338
|
+
CurveStethPoolDeposit?: undefined;
|
|
339
|
+
CurveStethPoolWithdraw?: undefined;
|
|
340
|
+
CurveDeposit?: undefined;
|
|
341
|
+
CurveWithdraw?: undefined;
|
|
342
|
+
FLEuler?: undefined;
|
|
343
|
+
TrailingStopTrigger?: undefined;
|
|
344
|
+
ConvexDeposit?: undefined;
|
|
345
|
+
ConvexWithdraw?: undefined;
|
|
346
|
+
ConvexClaim?: undefined;
|
|
347
|
+
CBCreate?: undefined;
|
|
348
|
+
CBRedeem?: undefined;
|
|
349
|
+
CBChickenIn?: undefined;
|
|
350
|
+
CBChickenOut?: undefined;
|
|
351
|
+
CompV3Allow?: undefined;
|
|
352
|
+
CompV3Borrow?: undefined;
|
|
353
|
+
CompV3Claim?: undefined;
|
|
354
|
+
CompV3Payback?: undefined;
|
|
355
|
+
CompV3Supply?: undefined;
|
|
356
|
+
CompV3Transfer?: undefined;
|
|
357
|
+
CompV3Withdraw?: undefined;
|
|
358
|
+
AaveV3ClaimRewards?: undefined;
|
|
359
|
+
AaveV3RatioTrigger?: undefined;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
export declare const otherAddresses: {
|
|
363
|
+
[x: number]: {
|
|
364
|
+
RecipeExecutor: string;
|
|
365
|
+
DFSRegistry: string;
|
|
366
|
+
DFSProxyRegistry: string;
|
|
367
|
+
ProxyRegistry: string;
|
|
368
|
+
McdCdpManager: string;
|
|
369
|
+
BCdpManager: string;
|
|
370
|
+
AaveDefaultMarket: string;
|
|
371
|
+
UniswapV3PositionManager: string;
|
|
372
|
+
RaiWethUniV2LPToken: string;
|
|
373
|
+
BalancerToken: string;
|
|
374
|
+
CrvToken: string;
|
|
375
|
+
CvxToken: string;
|
|
376
|
+
DAI: string;
|
|
377
|
+
LUSD: string;
|
|
378
|
+
BLUSD: string;
|
|
379
|
+
Empty: string;
|
|
380
|
+
DSGuardFactory?: undefined;
|
|
381
|
+
AdminVault?: undefined;
|
|
382
|
+
DefisaverLogger?: undefined;
|
|
383
|
+
} | {
|
|
384
|
+
RecipeExecutor: string;
|
|
385
|
+
DFSRegistry: string;
|
|
386
|
+
ProxyRegistry: string;
|
|
387
|
+
DSGuardFactory: string;
|
|
388
|
+
AdminVault: string;
|
|
389
|
+
DefisaverLogger: string;
|
|
390
|
+
Empty: string;
|
|
391
|
+
UniswapV3PositionManager: string;
|
|
392
|
+
DFSProxyRegistry?: undefined;
|
|
393
|
+
McdCdpManager?: undefined;
|
|
394
|
+
BCdpManager?: undefined;
|
|
395
|
+
AaveDefaultMarket?: undefined;
|
|
396
|
+
RaiWethUniV2LPToken?: undefined;
|
|
397
|
+
BalancerToken?: undefined;
|
|
398
|
+
CrvToken?: undefined;
|
|
399
|
+
CvxToken?: undefined;
|
|
400
|
+
DAI?: undefined;
|
|
401
|
+
LUSD?: undefined;
|
|
402
|
+
BLUSD?: undefined;
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
/**
|
|
406
|
+
*
|
|
407
|
+
* @param name
|
|
408
|
+
* @param chainId
|
|
409
|
+
*/
|
|
410
|
+
export declare const getAddr: (name: string, chainId?: number) => EthAddress;
|