@defisaver/sdk 1.0.2 → 1.0.3
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/AccessLists/AaveAccessLists.ts +18 -18
- package/AccessLists/BalancerAccessLists.ts +13 -13
- package/AccessLists/CompoundAccessLists.ts +23 -23
- package/AccessLists/DyDxAccessLists.ts +5 -5
- package/AccessLists/FlashLoanAccessLists.ts +19 -19
- package/AccessLists/GuniAccessLists.ts +9 -9
- package/AccessLists/InstaAccessLists.ts +4 -4
- package/AccessLists/LidoAccessLists.ts +14 -14
- package/AccessLists/LiquityAccessLists.ts +64 -64
- package/AccessLists/MStableAccessLists.ts +11 -11
- package/AccessLists/MakerAccessLists.ts +33 -33
- package/AccessLists/RariAccessLists.ts +7 -7
- package/AccessLists/ReflexerAccessLists.ts +50 -50
- package/AccessLists/UniswapAccessLists.ts +30 -30
- package/AccessLists/UtilsAccessLists.ts +22 -22
- package/AccessLists/YearnAccessLists.ts +8 -8
- package/AccessLists/index.ts +30 -30
- package/esm/AccessLists/AaveAccessLists.d.ts +1 -1
- package/esm/AccessLists/BalancerAccessLists.d.ts +1 -1
- package/esm/AccessLists/CompoundAccessLists.d.ts +1 -1
- package/esm/AccessLists/DyDxAccessLists.d.ts +1 -1
- package/esm/AccessLists/FlashLoanAccessLists.d.ts +1 -1
- package/esm/AccessLists/GuniAccessLists.d.ts +1 -1
- package/esm/AccessLists/InstaAccessLists.d.ts +1 -1
- package/esm/AccessLists/LidoAccessLists.d.ts +1 -1
- package/esm/AccessLists/LiquityAccessLists.d.ts +1 -1
- package/esm/AccessLists/MStableAccessLists.d.ts +1 -1
- package/esm/AccessLists/MakerAccessLists.d.ts +1 -1
- package/esm/AccessLists/RariAccessLists.d.ts +1 -1
- package/esm/AccessLists/ReflexerAccessLists.d.ts +1 -1
- package/esm/AccessLists/UniswapAccessLists.d.ts +1 -1
- package/esm/AccessLists/UtilsAccessLists.d.ts +1 -1
- package/esm/AccessLists/YearnAccessLists.d.ts +1 -1
- package/esm/src/Action.d.ts +3 -4
- package/esm/src/Action.js +10 -8
- package/esm/src/ActionWithL2.js +1 -1
- package/esm/src/DfsWeb3.d.ts +3 -3
- package/esm/src/DfsWeb3.js +5 -12
- package/esm/src/Recipe.js +1 -1
- package/esm/src/Strategy.js +1 -1
- package/esm/src/abis/UniV3PositionManager.json +65 -0
- package/esm/src/actions/aave/AaveBorrowAction.d.ts +1 -1
- package/esm/src/actions/aave/AaveBorrowAction.js +2 -2
- package/esm/src/actions/aave/AaveClaimStkAaveAction.d.ts +1 -1
- package/esm/src/actions/aave/AaveClaimStkAaveAction.js +2 -2
- package/esm/src/actions/aave/AaveCollateralSwitchAction.d.ts +5 -5
- package/esm/src/actions/aave/AaveCollateralSwitchAction.js +5 -5
- package/esm/src/actions/aave/AavePaybackAction.d.ts +1 -1
- package/esm/src/actions/aave/AavePaybackAction.js +2 -2
- package/esm/src/actions/aave/AaveSupplyAction.d.ts +1 -1
- package/esm/src/actions/aave/AaveSupplyAction.js +2 -2
- package/esm/src/actions/aave/AaveWithdrawAction.d.ts +1 -1
- package/esm/src/actions/aave/AaveWithdrawAction.js +2 -2
- package/esm/src/actions/aaveV3/AaveV3ATokenPaybackAction.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3ATokenPaybackAction.js +3 -3
- package/esm/src/actions/aaveV3/AaveV3BorrowAction.d.ts +10 -10
- package/esm/src/actions/aaveV3/AaveV3BorrowAction.js +12 -12
- package/esm/src/actions/aaveV3/AaveV3ClaimRewardsAction.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3ClaimRewardsAction.js +3 -3
- package/esm/src/actions/aaveV3/AaveV3CollateralSwitchAction.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3CollateralSwitchAction.js +2 -2
- package/esm/src/actions/aaveV3/AaveV3PaybackAction.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3PaybackAction.js +3 -3
- package/esm/src/actions/aaveV3/AaveV3SetEModeAction.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3SetEModeAction.js +2 -2
- package/esm/src/actions/aaveV3/AaveV3SupplyAction.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3SupplyAction.js +3 -3
- package/esm/src/actions/aaveV3/AaveV3SwapBorrowRateModeAction.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3SwapBorrowRateModeAction.js +2 -2
- package/esm/src/actions/aaveV3/AaveV3WithdrawAction.d.ts +3 -3
- package/esm/src/actions/aaveV3/AaveV3WithdrawAction.js +5 -5
- package/esm/src/actions/balancer/BalancerV2ClaimAction.d.ts +1 -1
- package/esm/src/actions/balancer/BalancerV2ClaimAction.js +7 -7
- package/esm/src/actions/balancer/BalancerV2SupplyAction.d.ts +1 -1
- package/esm/src/actions/balancer/BalancerV2SupplyAction.js +8 -8
- package/esm/src/actions/balancer/BalancerV2WithdrawAction.d.ts +1 -1
- package/esm/src/actions/balancer/BalancerV2WithdrawAction.js +9 -9
- package/esm/src/actions/balancer/index.d.ts +3 -3
- package/esm/src/actions/balancer/index.js +3 -3
- package/esm/src/actions/basic/AutomationV2Unsub.d.ts +1 -1
- package/esm/src/actions/basic/AutomationV2Unsub.js +3 -3
- package/esm/src/actions/basic/ChangeProxyOwnerAction.d.ts +1 -1
- package/esm/src/actions/basic/ChangeProxyOwnerAction.js +3 -3
- package/esm/src/actions/basic/GasFeeAction.d.ts +1 -1
- package/esm/src/actions/basic/GasFeeAction.js +3 -3
- package/esm/src/actions/basic/GasFeeActionL2.d.ts +1 -1
- package/esm/src/actions/basic/GasFeeActionL2.js +3 -3
- package/esm/src/actions/basic/PullTokenAction.d.ts +1 -1
- package/esm/src/actions/basic/PullTokenAction.js +7 -7
- package/esm/src/actions/basic/SellAction.d.ts +1 -1
- package/esm/src/actions/basic/SellAction.js +7 -7
- package/esm/src/actions/basic/SendTokenAction.d.ts +1 -1
- package/esm/src/actions/basic/SendTokenAction.js +5 -5
- package/esm/src/actions/basic/SendTokenAndUnwrapAction.d.ts +1 -1
- package/esm/src/actions/basic/SendTokenAndUnwrapAction.js +5 -5
- package/esm/src/actions/basic/SubInputsAction.d.ts +1 -1
- package/esm/src/actions/basic/SubInputsAction.js +3 -3
- package/esm/src/actions/basic/SumInputsAction.d.ts +1 -1
- package/esm/src/actions/basic/SumInputsAction.js +3 -3
- package/esm/src/actions/basic/ToggleSubAction.d.ts +1 -1
- package/esm/src/actions/basic/ToggleSubAction.js +3 -3
- package/esm/src/actions/basic/TokenBalanceAction.d.ts +1 -1
- package/esm/src/actions/basic/TokenBalanceAction.js +3 -3
- package/esm/src/actions/basic/TransferNFTAction.d.ts +1 -1
- package/esm/src/actions/basic/TransferNFTAction.js +6 -6
- package/esm/src/actions/basic/UnwrapEthAction.d.ts +1 -1
- package/esm/src/actions/basic/UnwrapEthAction.js +5 -5
- package/esm/src/actions/basic/UpdateSubAction.d.ts +1 -1
- package/esm/src/actions/basic/UpdateSubAction.js +3 -3
- package/esm/src/actions/basic/WrapEthAction.d.ts +1 -1
- package/esm/src/actions/basic/WrapEthAction.js +4 -4
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.d.ts +1 -1
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.js +3 -3
- package/esm/src/actions/checkers/CompoundV3RatioCheckAction.d.ts +1 -1
- package/esm/src/actions/checkers/CompoundV3RatioCheckAction.js +4 -4
- package/esm/src/actions/checkers/MakerRatioCheckAction.d.ts +1 -1
- package/esm/src/actions/checkers/MakerRatioCheckAction.js +3 -3
- package/esm/src/actions/chickenBonds/CBChickenInAction.d.ts +1 -1
- package/esm/src/actions/chickenBonds/CBChickenInAction.js +2 -2
- package/esm/src/actions/chickenBonds/CBChickenOutAction.d.ts +2 -2
- package/esm/src/actions/chickenBonds/CBChickenOutAction.js +3 -3
- package/esm/src/actions/chickenBonds/CBCreateAction.d.ts +1 -1
- package/esm/src/actions/chickenBonds/CBCreateAction.js +2 -2
- package/esm/src/actions/chickenBonds/CBRedeemAction.d.ts +1 -1
- package/esm/src/actions/chickenBonds/CBRedeemAction.js +2 -2
- package/esm/src/actions/compound/CompoundBorrowAction.d.ts +1 -1
- package/esm/src/actions/compound/CompoundBorrowAction.js +2 -2
- package/esm/src/actions/compound/CompoundClaimAction.d.ts +1 -1
- package/esm/src/actions/compound/CompoundClaimAction.js +3 -3
- package/esm/src/actions/compound/CompoundCollateralSwitchAction.d.ts +1 -1
- package/esm/src/actions/compound/CompoundCollateralSwitchAction.js +1 -1
- package/esm/src/actions/compound/CompoundGetDebtAction.d.ts +1 -1
- package/esm/src/actions/compound/CompoundGetDebtAction.js +3 -3
- package/esm/src/actions/compound/CompoundPaybackAction.d.ts +1 -1
- package/esm/src/actions/compound/CompoundPaybackAction.js +3 -5
- package/esm/src/actions/compound/CompoundSupplyAction.d.ts +1 -1
- package/esm/src/actions/compound/CompoundSupplyAction.js +3 -5
- package/esm/src/actions/compound/CompoundWithdrawAction.d.ts +1 -1
- package/esm/src/actions/compound/CompoundWithdrawAction.js +2 -2
- package/esm/src/actions/compoundV3/CompoundV3AllowAction.d.ts +5 -5
- package/esm/src/actions/compoundV3/CompoundV3AllowAction.js +6 -6
- package/esm/src/actions/compoundV3/CompoundV3BorrowAction.d.ts +6 -6
- package/esm/src/actions/compoundV3/CompoundV3BorrowAction.js +7 -7
- package/esm/src/actions/compoundV3/CompoundV3ClaimAction.d.ts +1 -1
- package/esm/src/actions/compoundV3/CompoundV3ClaimAction.js +4 -4
- package/esm/src/actions/compoundV3/CompoundV3PaybackAction.d.ts +7 -7
- package/esm/src/actions/compoundV3/CompoundV3PaybackAction.js +9 -9
- package/esm/src/actions/compoundV3/CompoundV3SupplyAction.d.ts +7 -7
- package/esm/src/actions/compoundV3/CompoundV3SupplyAction.js +9 -9
- package/esm/src/actions/compoundV3/CompoundV3TransferAction.d.ts +7 -7
- package/esm/src/actions/compoundV3/CompoundV3TransferAction.js +8 -8
- package/esm/src/actions/compoundV3/CompoundV3WithdrawAction.d.ts +1 -1
- package/esm/src/actions/compoundV3/CompoundV3WithdrawAction.js +4 -4
- package/esm/src/actions/convex/ConvexClaimAction.d.ts +4 -4
- package/esm/src/actions/convex/ConvexClaimAction.js +4 -4
- package/esm/src/actions/convex/ConvexDepositAction.d.ts +6 -6
- package/esm/src/actions/convex/ConvexDepositAction.js +6 -6
- package/esm/src/actions/convex/ConvexWithdrawAction.d.ts +6 -6
- package/esm/src/actions/convex/ConvexWithdrawAction.js +6 -6
- package/esm/src/actions/curve/CurveClaimFeesAction.d.ts +4 -4
- package/esm/src/actions/curve/CurveClaimFeesAction.js +4 -4
- package/esm/src/actions/curve/CurveDepositAction.d.ts +7 -7
- package/esm/src/actions/curve/CurveDepositAction.js +7 -7
- package/esm/src/actions/curve/CurveGaugeDepositAction.d.ts +7 -7
- package/esm/src/actions/curve/CurveGaugeDepositAction.js +7 -7
- package/esm/src/actions/curve/CurveGaugeWithdrawAction.d.ts +5 -5
- package/esm/src/actions/curve/CurveGaugeWithdrawAction.js +5 -5
- package/esm/src/actions/curve/CurveMintCrvAction.d.ts +3 -3
- package/esm/src/actions/curve/CurveMintCrvAction.js +3 -3
- package/esm/src/actions/curve/CurveStethPoolDepositAction.d.ts +5 -5
- package/esm/src/actions/curve/CurveStethPoolDepositAction.js +5 -5
- package/esm/src/actions/curve/CurveStethPoolWithdrawAction.d.ts +6 -6
- package/esm/src/actions/curve/CurveStethPoolWithdrawAction.js +6 -6
- package/esm/src/actions/curve/CurveSwapAction.d.ts +9 -9
- package/esm/src/actions/curve/CurveSwapAction.js +9 -9
- package/esm/src/actions/curve/CurveWithdrawAction.d.ts +8 -8
- package/esm/src/actions/curve/CurveWithdrawAction.js +8 -8
- package/esm/src/actions/dydx/DyDxWithdrawAction.d.ts +1 -1
- package/esm/src/actions/dydx/DyDxWithdrawAction.js +2 -2
- package/esm/src/actions/flashloan/AaveV2FlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/AaveV2FlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/AaveV2FlashLoanPaybackAction.d.ts +1 -1
- package/esm/src/actions/flashloan/AaveV2FlashLoanPaybackAction.js +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanPaybackAction.d.ts +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanPaybackAction.js +1 -1
- package/esm/src/actions/flashloan/BalancerFlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/BalancerFlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/BalancerFlashLoanPaybackAction.d.ts +4 -4
- package/esm/src/actions/flashloan/BalancerFlashLoanPaybackAction.js +4 -4
- package/esm/src/actions/flashloan/DyDxFlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/DyDxFlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/DyDxFlashLoanPaybackAction.d.ts +1 -1
- package/esm/src/actions/flashloan/DyDxFlashLoanPaybackAction.js +1 -1
- package/esm/src/actions/flashloan/EulerFlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/EulerFlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/EulerFlashLoanPaybackAction.d.ts +2 -1
- package/esm/src/actions/flashloan/EulerFlashLoanPaybackAction.js +2 -1
- package/esm/src/actions/flashloan/FLAction.d.ts +10 -0
- package/esm/src/actions/flashloan/FLAction.js +48 -0
- package/esm/src/actions/flashloan/MakerFlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/MakerFlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/MakerFlashLoanPaybackAction.d.ts +1 -1
- package/esm/src/actions/flashloan/MakerFlashLoanPaybackAction.js +1 -1
- package/esm/src/actions/flashloan/index.d.ts +1 -0
- package/esm/src/actions/flashloan/index.js +1 -0
- package/esm/src/actions/guni/GUniDeposit.d.ts +10 -10
- package/esm/src/actions/guni/GUniDeposit.js +11 -11
- package/esm/src/actions/guni/GUniWithdraw.d.ts +8 -8
- package/esm/src/actions/guni/GUniWithdraw.js +9 -9
- package/esm/src/actions/index.d.ts +24 -24
- package/esm/src/actions/index.js +24 -24
- package/esm/src/actions/insta/InstPullTokensAction.d.ts +1 -1
- package/esm/src/actions/insta/InstPullTokensAction.js +5 -5
- package/esm/src/actions/lido/LidoStakeAction.d.ts +1 -1
- package/esm/src/actions/lido/LidoStakeAction.js +3 -3
- package/esm/src/actions/lido/LidoUnwrapAction.d.ts +1 -1
- package/esm/src/actions/lido/LidoUnwrapAction.js +2 -2
- package/esm/src/actions/lido/LidoWrapAction.d.ts +1 -1
- package/esm/src/actions/lido/LidoWrapAction.js +4 -6
- package/esm/src/actions/liquity/LiquityBorrowAction.d.ts +6 -4
- package/esm/src/actions/liquity/LiquityBorrowAction.js +6 -4
- package/esm/src/actions/liquity/LiquityClaimAction.d.ts +2 -2
- package/esm/src/actions/liquity/LiquityClaimAction.js +2 -2
- package/esm/src/actions/liquity/LiquityClaimSPRewardsAction.d.ts +3 -3
- package/esm/src/actions/liquity/LiquityClaimSPRewardsAction.js +4 -4
- package/esm/src/actions/liquity/LiquityClaimStakingRewardsAction.d.ts +3 -3
- package/esm/src/actions/liquity/LiquityClaimStakingRewardsAction.js +4 -4
- package/esm/src/actions/liquity/LiquityCloseAction.d.ts +3 -3
- package/esm/src/actions/liquity/LiquityCloseAction.js +3 -3
- package/esm/src/actions/liquity/LiquityEthGainToTroveAction.d.ts +2 -0
- package/esm/src/actions/liquity/LiquityEthGainToTroveAction.js +2 -0
- package/esm/src/actions/liquity/LiquityOpenAction.d.ts +8 -6
- package/esm/src/actions/liquity/LiquityOpenAction.js +8 -6
- package/esm/src/actions/liquity/LiquityPaybackAction.d.ts +5 -3
- package/esm/src/actions/liquity/LiquityPaybackAction.js +5 -3
- package/esm/src/actions/liquity/LiquityRedeemAction.d.ts +9 -4
- package/esm/src/actions/liquity/LiquityRedeemAction.js +9 -4
- package/esm/src/actions/liquity/LiquitySPDepositAction.d.ts +5 -5
- package/esm/src/actions/liquity/LiquitySPDepositAction.js +5 -5
- package/esm/src/actions/liquity/LiquitySPWithdrawAction.d.ts +5 -5
- package/esm/src/actions/liquity/LiquitySPWithdrawAction.js +5 -5
- package/esm/src/actions/liquity/LiquityStakeAction.d.ts +5 -5
- package/esm/src/actions/liquity/LiquityStakeAction.js +5 -5
- package/esm/src/actions/liquity/LiquitySupplyAction.d.ts +5 -3
- package/esm/src/actions/liquity/LiquitySupplyAction.js +5 -3
- package/esm/src/actions/liquity/LiquityUnstakeAction.d.ts +5 -5
- package/esm/src/actions/liquity/LiquityUnstakeAction.js +5 -5
- package/esm/src/actions/liquity/LiquityWithdrawAction.d.ts +5 -3
- package/esm/src/actions/liquity/LiquityWithdrawAction.js +5 -3
- package/esm/src/actions/maker/MakerClaimAction.d.ts +1 -1
- package/esm/src/actions/maker/MakerClaimAction.js +1 -1
- package/esm/src/actions/maker/MakerGenerateAction.d.ts +1 -1
- package/esm/src/actions/maker/MakerGenerateAction.js +2 -2
- package/esm/src/actions/maker/MakerGiveAction.d.ts +1 -1
- package/esm/src/actions/maker/MakerGiveAction.js +3 -3
- package/esm/src/actions/maker/MakerMergeAction.d.ts +1 -1
- package/esm/src/actions/maker/MakerMergeAction.js +1 -1
- package/esm/src/actions/maker/MakerOpenVaultAction.d.ts +1 -1
- package/esm/src/actions/maker/MakerOpenVaultAction.js +1 -1
- package/esm/src/actions/maker/MakerPaybackAction.d.ts +1 -1
- package/esm/src/actions/maker/MakerPaybackAction.js +2 -2
- package/esm/src/actions/maker/MakerRatioAction.d.ts +1 -1
- package/esm/src/actions/maker/MakerRatioAction.js +1 -1
- package/esm/src/actions/maker/MakerSupplyAction.d.ts +1 -1
- package/esm/src/actions/maker/MakerSupplyAction.js +2 -2
- package/esm/src/actions/maker/MakerWithdrawAction.d.ts +1 -1
- package/esm/src/actions/maker/MakerWithdrawAction.js +2 -2
- package/esm/src/actions/mstable/MStableClaimAction.d.ts +5 -5
- package/esm/src/actions/mstable/MStableClaimAction.js +5 -5
- package/esm/src/actions/mstable/MStableDepositAction.d.ts +10 -10
- package/esm/src/actions/mstable/MStableDepositAction.js +10 -10
- package/esm/src/actions/mstable/MStableWithdrawAction.d.ts +10 -10
- package/esm/src/actions/mstable/MStableWithdrawAction.js +10 -10
- package/esm/src/actions/rari/RariDepositAction.d.ts +1 -1
- package/esm/src/actions/rari/RariDepositAction.js +1 -1
- package/esm/src/actions/rari/RariWithdrawAction.d.ts +1 -1
- package/esm/src/actions/rari/RariWithdrawAction.js +1 -1
- package/esm/src/actions/reflexer/ReflexerGenerateAction.d.ts +1 -1
- package/esm/src/actions/reflexer/ReflexerGenerateAction.js +2 -2
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourDepositAction.d.ts +1 -1
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourDepositAction.js +1 -1
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourGetReservesAction.d.ts +1 -1
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourGetReservesAction.js +2 -2
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourWithdrawAction.d.ts +1 -1
- package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourWithdrawAction.js +3 -3
- package/esm/src/actions/reflexer/ReflexerOpenSafeAction.d.ts +1 -1
- package/esm/src/actions/reflexer/ReflexerOpenSafeAction.js +1 -1
- package/esm/src/actions/reflexer/ReflexerPaybackAction.d.ts +1 -1
- package/esm/src/actions/reflexer/ReflexerPaybackAction.js +2 -2
- package/esm/src/actions/reflexer/ReflexerSupplyAction.d.ts +1 -1
- package/esm/src/actions/reflexer/ReflexerSupplyAction.js +2 -2
- package/esm/src/actions/reflexer/ReflexerWithdrawAction.d.ts +1 -1
- package/esm/src/actions/reflexer/ReflexerWithdrawAction.js +2 -2
- package/esm/src/actions/uniswap/UniswapSupplyAction.d.ts +1 -1
- package/esm/src/actions/uniswap/UniswapSupplyAction.js +13 -13
- package/esm/src/actions/uniswap/UniswapWithdrawAction.d.ts +1 -1
- package/esm/src/actions/uniswap/UniswapWithdrawAction.js +11 -11
- package/esm/src/actions/uniswapV3/UniswapV3CollectAction.js +5 -5
- package/esm/src/actions/uniswapV3/UniswapV3CreatePoolAction.js +14 -14
- package/esm/src/actions/uniswapV3/UniswapV3MintAction.js +13 -13
- package/esm/src/actions/uniswapV3/UniswapV3SupplyAction.js +9 -9
- package/esm/src/actions/uniswapV3/UniswapV3WithdrawAction.js +10 -10
- package/esm/src/actions/yearn/YearnSupplyAction.d.ts +1 -1
- package/esm/src/actions/yearn/YearnSupplyAction.js +3 -3
- package/esm/src/actions/yearn/YearnWithdrawAction.d.ts +1 -1
- package/esm/src/actions/yearn/YearnWithdrawAction.js +3 -3
- package/esm/src/addresses.d.ts +3 -0
- package/esm/src/addresses.js +4 -1
- package/esm/src/config.js +3 -3
- package/esm/src/index.d.ts +98 -2
- package/esm/src/index.js +19 -6
- package/esm/src/triggers/AaveV3RatioTrigger.d.ts +1 -1
- package/esm/src/triggers/AaveV3RatioTrigger.js +3 -3
- package/esm/src/triggers/ChainLinkPriceTrigger.d.ts +1 -1
- package/esm/src/triggers/ChainLinkPriceTrigger.js +3 -3
- package/esm/src/triggers/CompV3RatioTrigger.d.ts +1 -1
- package/esm/src/triggers/CompV3RatioTrigger.js +3 -3
- package/esm/src/triggers/CompoundRatioTrigger.d.ts +1 -1
- package/esm/src/triggers/CompoundRatioTrigger.js +3 -3
- package/esm/src/triggers/GasPriceTrigger.d.ts +1 -1
- package/esm/src/triggers/GasPriceTrigger.js +3 -3
- package/esm/src/triggers/LiquityRatioTrigger.d.ts +1 -1
- package/esm/src/triggers/LiquityRatioTrigger.js +3 -3
- package/esm/src/triggers/MakerRatioTrigger.d.ts +1 -1
- package/esm/src/triggers/MakerRatioTrigger.js +3 -3
- package/esm/src/triggers/ReflexerRatioTrigger.d.ts +1 -1
- package/esm/src/triggers/ReflexerRatioTrigger.js +3 -3
- package/esm/src/triggers/TimestampTrigger.d.ts +1 -1
- package/esm/src/triggers/TimestampTrigger.js +3 -3
- package/esm/src/triggers/TrailingStopTrigger.d.ts +1 -1
- package/esm/src/triggers/TrailingStopTrigger.js +3 -3
- package/esm/src/triggers/UniV3CurrentTickTrigger.d.ts +1 -1
- package/esm/src/triggers/UniV3CurrentTickTrigger.js +3 -3
- package/esm/src/types.d.ts +1 -1
- package/esm/src/utils/curve-utils.d.ts +4 -1
- package/esm/src/utils/curve-utils.js +5 -4
- package/esm/src/utils/index.d.ts +6 -5
- package/esm/src/utils/index.js +6 -5
- package/esm/src/utils/uniswapLP.js +2 -4
- package/esm/src/utils/uniswapV3LP.d.ts +5 -0
- package/esm/src/utils/uniswapV3LP.js +23 -0
- package/esm/src/utils/zeroExExchange.d.ts +1 -1
- package/esm/src/utils/zeroExExchange.js +1 -1
- package/package.json +1 -1
- package/src/actions/flashloan/FLAction.ts +1 -1
- package/umd/index.js +988 -871
|
@@ -18,10 +18,15 @@ import { getAddr } from '../../addresses';
|
|
|
18
18
|
*/
|
|
19
19
|
export class LiquityRedeemAction extends Action {
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
* @param lusdAmount Amount of LUSD tokens to send
|
|
22
|
+
* @param from Address where the tokens are pulled from
|
|
23
|
+
* @param to Address that will receive redeemed collateral
|
|
24
|
+
* @param firstRedemptionHint Address in the linked list to use as a first hint
|
|
25
|
+
* @param upperPartialRedemptionHint Address in the linked list to use as an upper limit
|
|
26
|
+
* @param lowerPartialRedemptionHint Address in the linked list to use as a lower limit
|
|
27
|
+
* @param partialRedemptionHintNICR
|
|
28
|
+
* @param maxIterations Max number of loops to do when searching for the new position in linked list
|
|
29
|
+
* @param maxFeePercentage Highest redemption fee to accept
|
|
25
30
|
*/
|
|
26
31
|
constructor(lusdAmount, from, to, firstRedemptionHint, upperPartialRedemptionHint, lowerPartialRedemptionHint, partialRedemptionHintNICR, maxIterations, maxFeePercentage) {
|
|
27
32
|
requireAddress(from);
|
|
@@ -7,11 +7,11 @@ import { EthAddress, uint256 } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class LiquitySPDepositAction extends Action {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* @param lusdAmount Amount of LUSD tokens to deposit
|
|
11
|
+
* @param from Address where the tokens are being pulled from
|
|
12
|
+
* @param wethTo Address that will receive ETH gains
|
|
13
|
+
* @param lqtyTo Address that will receive LQTY gains
|
|
14
|
+
*/
|
|
15
15
|
constructor(lusdAmount: uint256, from: EthAddress, wethTo: EthAddress, lqtyTo: EthAddress);
|
|
16
16
|
getAssetsToApprove(): Promise<{
|
|
17
17
|
asset: string;
|
|
@@ -18,11 +18,11 @@ import { getAddr } from '../../addresses';
|
|
|
18
18
|
*/
|
|
19
19
|
export class LiquitySPDepositAction extends Action {
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
* @param lusdAmount Amount of LUSD tokens to deposit
|
|
22
|
+
* @param from Address where the tokens are being pulled from
|
|
23
|
+
* @param wethTo Address that will receive ETH gains
|
|
24
|
+
* @param lqtyTo Address that will receive LQTY gains
|
|
25
|
+
*/
|
|
26
26
|
constructor(lusdAmount, from, wethTo, lqtyTo) {
|
|
27
27
|
requireAddress(from);
|
|
28
28
|
requireAddress(wethTo);
|
|
@@ -7,10 +7,10 @@ import { EthAddress, uint256 } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class LiquitySPWithdrawAction extends Action {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* @param lusdAmount Amount of LUSD tokens to withdraw
|
|
11
|
+
* @param to Address that will receive the LUSD tokens
|
|
12
|
+
* @param wethTo Address that will receive ETH gains
|
|
13
|
+
* @param lqtyTo Address that will receive LQTY gains
|
|
14
|
+
*/
|
|
15
15
|
constructor(lusdAmount: uint256, to: EthAddress, wethTo: EthAddress, lqtyTo: EthAddress);
|
|
16
16
|
}
|
|
@@ -8,11 +8,11 @@ import { getAddr } from '../../addresses';
|
|
|
8
8
|
*/
|
|
9
9
|
export class LiquitySPWithdrawAction extends Action {
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
* @param lusdAmount Amount of LUSD tokens to withdraw
|
|
12
|
+
* @param to Address that will receive the LUSD tokens
|
|
13
|
+
* @param wethTo Address that will receive ETH gains
|
|
14
|
+
* @param lqtyTo Address that will receive LQTY gains
|
|
15
|
+
*/
|
|
16
16
|
constructor(lusdAmount, to, wethTo, lqtyTo) {
|
|
17
17
|
requireAddress(to);
|
|
18
18
|
requireAddress(wethTo);
|
|
@@ -7,11 +7,11 @@ import { EthAddress, uint256 } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class LiquityStakeAction extends Action {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* @param lqtyAmount Amount of LQTY tokens that will be staked
|
|
11
|
+
* @param from Address where the tokens are being pulled from
|
|
12
|
+
* @param wethTo Address that will receive ETH gains
|
|
13
|
+
* @param lusdTo Address that will receive LUSD gains
|
|
14
|
+
*/
|
|
15
15
|
constructor(lqtyAmount: uint256, from: EthAddress, wethTo: EthAddress, lusdTo: EthAddress);
|
|
16
16
|
getAssetsToApprove(): Promise<{
|
|
17
17
|
asset: string;
|
|
@@ -18,11 +18,11 @@ import { getAddr } from '../../addresses';
|
|
|
18
18
|
*/
|
|
19
19
|
export class LiquityStakeAction extends Action {
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
* @param lqtyAmount Amount of LQTY tokens that will be staked
|
|
22
|
+
* @param from Address where the tokens are being pulled from
|
|
23
|
+
* @param wethTo Address that will receive ETH gains
|
|
24
|
+
* @param lusdTo Address that will receive LUSD gains
|
|
25
|
+
*/
|
|
26
26
|
constructor(lqtyAmount, from, wethTo, lusdTo) {
|
|
27
27
|
requireAddress(from);
|
|
28
28
|
requireAddress(wethTo);
|
|
@@ -7,9 +7,11 @@ import { EthAddress, uint256 } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class LiquitySupplyAction extends Action {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
* @param collAmount Amount of WETH tokens to supply
|
|
11
|
+
* @param from Address where the tokens are pulled from
|
|
12
|
+
* @param upperHint Address in the linked list to use as an upper limit
|
|
13
|
+
* @param lowerHint Address in the linked list to use as a lower limit
|
|
14
|
+
*/
|
|
13
15
|
constructor(collAmount: uint256, from: EthAddress, upperHint: EthAddress, lowerHint: EthAddress);
|
|
14
16
|
getAssetsToApprove(): Promise<{
|
|
15
17
|
asset: string;
|
|
@@ -18,9 +18,11 @@ import { getAddr } from '../../addresses';
|
|
|
18
18
|
*/
|
|
19
19
|
export class LiquitySupplyAction extends Action {
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* @param collAmount Amount of WETH tokens to supply
|
|
22
|
+
* @param from Address where the tokens are pulled from
|
|
23
|
+
* @param upperHint Address in the linked list to use as an upper limit
|
|
24
|
+
* @param lowerHint Address in the linked list to use as a lower limit
|
|
25
|
+
*/
|
|
24
26
|
constructor(collAmount, from, upperHint, lowerHint) {
|
|
25
27
|
requireAddress(from);
|
|
26
28
|
super('LiquitySupply', getAddr('LiquitySupply'), ['uint256', 'address', 'address', 'address'], [collAmount, from, upperHint, lowerHint]);
|
|
@@ -7,10 +7,10 @@ import { EthAddress, uint256 } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class LiquityUnstakeAction extends Action {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* @param lqtyAmount Amount of LQTY tokens that will be unstaked
|
|
11
|
+
* @param to Address that will receive the tokens
|
|
12
|
+
* @param wethTo Address that will receive ETH gains
|
|
13
|
+
* @param lusdTo Address that will receive LUSD gains
|
|
14
|
+
*/
|
|
15
15
|
constructor(lqtyAmount: uint256, to: EthAddress, wethTo: EthAddress, lusdTo: EthAddress);
|
|
16
16
|
}
|
|
@@ -8,11 +8,11 @@ import { getAddr } from '../../addresses';
|
|
|
8
8
|
*/
|
|
9
9
|
export class LiquityUnstakeAction extends Action {
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
* @param lqtyAmount Amount of LQTY tokens that will be unstaked
|
|
12
|
+
* @param to Address that will receive the tokens
|
|
13
|
+
* @param wethTo Address that will receive ETH gains
|
|
14
|
+
* @param lusdTo Address that will receive LUSD gains
|
|
15
|
+
*/
|
|
16
16
|
constructor(lqtyAmount, to, wethTo, lusdTo) {
|
|
17
17
|
requireAddress(to);
|
|
18
18
|
requireAddress(wethTo);
|
|
@@ -7,8 +7,10 @@ import { EthAddress, uint256 } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class LiquityWithdrawAction extends Action {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
* @param collAmount Amount of WETH tokens to withdraw
|
|
11
|
+
* @param to Address that will receive the withdrawn tokens
|
|
12
|
+
* @param upperHint Address in the linked list to use as an upper limit
|
|
13
|
+
* @param lowerHint Address in the linked list to use as a lower limit
|
|
14
|
+
*/
|
|
13
15
|
constructor(collAmount: uint256, to: EthAddress, upperHint: EthAddress, lowerHint: EthAddress);
|
|
14
16
|
}
|
|
@@ -8,9 +8,11 @@ import { getAddr } from '../../addresses';
|
|
|
8
8
|
*/
|
|
9
9
|
export class LiquityWithdrawAction extends Action {
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
* @param collAmount Amount of WETH tokens to withdraw
|
|
12
|
+
* @param to Address that will receive the withdrawn tokens
|
|
13
|
+
* @param upperHint Address in the linked list to use as an upper limit
|
|
14
|
+
* @param lowerHint Address in the linked list to use as a lower limit
|
|
15
|
+
*/
|
|
14
16
|
constructor(collAmount, to, upperHint, lowerHint) {
|
|
15
17
|
requireAddress(to);
|
|
16
18
|
super('LiquityWithdraw', getAddr('LiquityWithdraw'), ['uint256', 'address', 'address', 'address'], [collAmount, to, upperHint, lowerHint]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Action } from
|
|
2
|
-
import { requireAddress } from
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { requireAddress } from '../../utils/general';
|
|
3
3
|
import { getAddr } from '../../addresses';
|
|
4
4
|
/**
|
|
5
5
|
* MakerGenerateAction - Generated Dai from a Vault
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Action } from
|
|
2
|
-
import { requireAddress } from
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { requireAddress } from '../../utils/general';
|
|
3
3
|
import { getAddr } from '../../addresses';
|
|
4
4
|
/**
|
|
5
5
|
* MakerGiveAction - gives a vault to a selected address
|
|
@@ -15,7 +15,7 @@ export class MakerGiveAction extends Action {
|
|
|
15
15
|
*/
|
|
16
16
|
constructor(vaultId, newOwner, createProxy, mcdManager = getAddr('McdCdpManager')) {
|
|
17
17
|
requireAddress(newOwner);
|
|
18
|
-
super('McdGive', getAddr('McdGive'), [
|
|
18
|
+
super('McdGive', getAddr('McdGive'), ['uint256', 'address', 'bool', 'address'], [vaultId, newOwner, createProxy, mcdManager]);
|
|
19
19
|
this.mappableArgs = [
|
|
20
20
|
this.args[0],
|
|
21
21
|
this.args[1],
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { getAssetInfo } from '@defisaver/tokens';
|
|
11
|
+
import { Action } from '../../Action';
|
|
12
12
|
import { getAddr } from '../../addresses';
|
|
13
13
|
/**
|
|
14
14
|
* MakerPaybackAction - Payback dai to a Vault
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { tokenFromJoin, getAssetInfo } from '@defisaver/tokens';
|
|
11
|
+
import { Action } from '../../Action';
|
|
12
12
|
import { getAddr } from '../../addresses';
|
|
13
13
|
/**
|
|
14
14
|
* MakerSupplyAction - Supply token to a Vault
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Action } from
|
|
2
|
-
import { requireAddress } from
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { requireAddress } from '../../utils/general';
|
|
3
3
|
import { getAddr } from '../../addresses';
|
|
4
4
|
/**
|
|
5
5
|
* MakerWithdrawAction - Withdraw token from a Vault
|
|
@@ -7,10 +7,10 @@ import { EthAddress, uint256 } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class MStableClaimAction extends Action {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* @param vaultAddress
|
|
11
|
+
* @param to
|
|
12
|
+
* @param first
|
|
13
|
+
* @param last
|
|
14
|
+
*/
|
|
15
15
|
constructor(vaultAddress: EthAddress, to: EthAddress, first: uint256, last: uint256);
|
|
16
16
|
}
|
|
@@ -8,11 +8,11 @@ import { getAddr } from '../../addresses';
|
|
|
8
8
|
*/
|
|
9
9
|
export class MStableClaimAction extends Action {
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
* @param vaultAddress
|
|
12
|
+
* @param to
|
|
13
|
+
* @param first
|
|
14
|
+
* @param last
|
|
15
|
+
*/
|
|
16
16
|
constructor(vaultAddress, to, first, last) {
|
|
17
17
|
requireAddress(vaultAddress);
|
|
18
18
|
requireAddress(to);
|
|
@@ -7,16 +7,16 @@ import { EthAddress, uint256 } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class MStableDepositAction extends Action {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
* @param bAsset
|
|
11
|
+
* @param mAsset
|
|
12
|
+
* @param saveAddress
|
|
13
|
+
* @param vaultAddress
|
|
14
|
+
* @param from
|
|
15
|
+
* @param to
|
|
16
|
+
* @param amount
|
|
17
|
+
* @param minOut
|
|
18
|
+
* @param assetPair
|
|
19
|
+
*/
|
|
20
20
|
constructor(bAsset: EthAddress, mAsset: EthAddress, saveAddress: EthAddress, vaultAddress: EthAddress, from: EthAddress, to: EthAddress, amount: uint256, minOut: uint256, assetPair: uint256);
|
|
21
21
|
getAssetsToApprove(): Promise<{
|
|
22
22
|
asset: any;
|
|
@@ -18,16 +18,16 @@ import mstableAssetPairs from '../../utils/mstableAssetPairs';
|
|
|
18
18
|
*/
|
|
19
19
|
export class MStableDepositAction extends Action {
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
* @param bAsset
|
|
22
|
+
* @param mAsset
|
|
23
|
+
* @param saveAddress
|
|
24
|
+
* @param vaultAddress
|
|
25
|
+
* @param from
|
|
26
|
+
* @param to
|
|
27
|
+
* @param amount
|
|
28
|
+
* @param minOut
|
|
29
|
+
* @param assetPair
|
|
30
|
+
*/
|
|
31
31
|
constructor(bAsset, mAsset, saveAddress, vaultAddress, from, to, amount, minOut, assetPair) {
|
|
32
32
|
requireAddress(bAsset);
|
|
33
33
|
requireAddress(mAsset);
|
|
@@ -7,16 +7,16 @@ import { EthAddress, uint256 } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class MStableWithdrawAction extends Action {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
* @param bAsset
|
|
11
|
+
* @param mAsset
|
|
12
|
+
* @param saveAddress
|
|
13
|
+
* @param vaultAddress
|
|
14
|
+
* @param from
|
|
15
|
+
* @param to
|
|
16
|
+
* @param amount
|
|
17
|
+
* @param minOut
|
|
18
|
+
* @param assetPair
|
|
19
|
+
*/
|
|
20
20
|
constructor(bAsset: EthAddress, mAsset: EthAddress, saveAddress: EthAddress, vaultAddress: EthAddress, from: EthAddress, to: EthAddress, amount: uint256, minOut: uint256, assetPair: uint256);
|
|
21
21
|
getAssetsToApprove(): Promise<{
|
|
22
22
|
asset: any;
|
|
@@ -18,16 +18,16 @@ import mstableAssetPairs from '../../utils/mstableAssetPairs';
|
|
|
18
18
|
*/
|
|
19
19
|
export class MStableWithdrawAction extends Action {
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
* @param bAsset
|
|
22
|
+
* @param mAsset
|
|
23
|
+
* @param saveAddress
|
|
24
|
+
* @param vaultAddress
|
|
25
|
+
* @param from
|
|
26
|
+
* @param to
|
|
27
|
+
* @param amount
|
|
28
|
+
* @param minOut
|
|
29
|
+
* @param assetPair
|
|
30
|
+
*/
|
|
31
31
|
constructor(bAsset, mAsset, saveAddress, vaultAddress, from, to, amount, minOut, assetPair) {
|
|
32
32
|
requireAddress(bAsset);
|
|
33
33
|
requireAddress(mAsset);
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Action } from
|
|
10
|
+
import { Action } from '../../Action';
|
|
11
11
|
import { getAddr } from '../../addresses';
|
|
12
12
|
import { requireAddress } from '../../utils/general';
|
|
13
13
|
/**
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Action } from
|
|
10
|
+
import { Action } from '../../Action';
|
|
11
11
|
import { getAddr } from '../../addresses';
|
|
12
12
|
import { requireAddress } from '../../utils/general';
|
|
13
13
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Action } from
|
|
2
|
-
import { requireAddress } from
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { requireAddress } from '../../utils/general';
|
|
3
3
|
import { getAddr } from '../../addresses';
|
|
4
4
|
/**
|
|
5
5
|
* ReflexerGenerateAction - Generated Dai from a Safe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Action } from
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
2
|
import { EthAddress, uint256 } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* ReflexerNativeUniV2SaviourDepositAction - Deposit lpToken in the contract in order to provide cover for a specific SAFE managed by the SAFE Manager
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Action } from
|
|
10
|
+
import { Action } from '../../Action';
|
|
11
11
|
import { getAddr } from '../../addresses';
|
|
12
12
|
/**
|
|
13
13
|
* ReflexerNativeUniV2SaviourDepositAction - Deposit lpToken in the contract in order to provide cover for a specific SAFE managed by the SAFE Manager
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Action } from
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
2
|
import { EthAddress, uint256 } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* ReflexerNativeUniV2SaviourGetReservesAction - Get back system coins or collateral tokens that were withdrawn from Uniswap and not used to save a specific SAFE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Action } from
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
2
|
import { getAddr } from '../../addresses';
|
|
3
|
-
import { requireAddress } from
|
|
3
|
+
import { requireAddress } from '../../utils/general';
|
|
4
4
|
/**
|
|
5
5
|
* ReflexerNativeUniV2SaviourGetReservesAction - Get back system coins or collateral tokens that were withdrawn from Uniswap and not used to save a specific SAFE
|
|
6
6
|
*
|