@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.
Files changed (583) hide show
  1. package/.babelrc +3 -0
  2. package/.eslintrc.js +100 -0
  3. package/esm/AccessLists/AaveAccessLists.d.ts +2 -0
  4. package/esm/AccessLists/AaveAccessLists.js +19 -0
  5. package/esm/AccessLists/BalancerAccessLists.d.ts +2 -0
  6. package/esm/AccessLists/BalancerAccessLists.js +14 -0
  7. package/esm/AccessLists/CompoundAccessLists.d.ts +2 -0
  8. package/esm/AccessLists/CompoundAccessLists.js +23 -0
  9. package/esm/AccessLists/DyDxAccessLists.d.ts +2 -0
  10. package/esm/AccessLists/DyDxAccessLists.js +6 -0
  11. package/esm/AccessLists/FlashLoanAccessLists.d.ts +2 -0
  12. package/esm/AccessLists/FlashLoanAccessLists.js +20 -0
  13. package/esm/AccessLists/GuniAccessLists.d.ts +2 -0
  14. package/esm/AccessLists/GuniAccessLists.js +10 -0
  15. package/esm/AccessLists/InstaAccessLists.d.ts +2 -0
  16. package/esm/AccessLists/InstaAccessLists.js +5 -0
  17. package/esm/AccessLists/LidoAccessLists.d.ts +2 -0
  18. package/esm/AccessLists/LidoAccessLists.js +15 -0
  19. package/esm/AccessLists/LiquityAccessLists.d.ts +2 -0
  20. package/esm/AccessLists/LiquityAccessLists.js +65 -0
  21. package/esm/AccessLists/MStableAccessLists.d.ts +2 -0
  22. package/esm/AccessLists/MStableAccessLists.js +12 -0
  23. package/esm/AccessLists/MakerAccessLists.d.ts +2 -0
  24. package/esm/AccessLists/MakerAccessLists.js +34 -0
  25. package/esm/AccessLists/RariAccessLists.d.ts +2 -0
  26. package/esm/AccessLists/RariAccessLists.js +8 -0
  27. package/esm/AccessLists/ReflexerAccessLists.d.ts +2 -0
  28. package/esm/AccessLists/ReflexerAccessLists.js +42 -0
  29. package/esm/AccessLists/UniswapAccessLists.d.ts +2 -0
  30. package/esm/AccessLists/UniswapAccessLists.js +31 -0
  31. package/esm/AccessLists/UtilsAccessLists.d.ts +2 -0
  32. package/esm/AccessLists/UtilsAccessLists.js +23 -0
  33. package/esm/AccessLists/YearnAccessLists.d.ts +2 -0
  34. package/esm/AccessLists/YearnAccessLists.js +9 -0
  35. package/esm/AccessLists/index.d.ts +3 -0
  36. package/esm/AccessLists/index.js +17 -0
  37. package/esm/src/Action.d.ts +77 -0
  38. package/esm/src/Action.js +193 -0
  39. package/esm/src/ActionWithL2.d.ts +20 -0
  40. package/esm/src/ActionWithL2.js +49 -0
  41. package/esm/src/DfsWeb3.d.ts +31 -0
  42. package/esm/src/DfsWeb3.js +124 -0
  43. package/esm/src/Recipe.d.ts +49 -0
  44. package/esm/src/Recipe.js +135 -0
  45. package/esm/src/Strategy.d.ts +19 -0
  46. package/esm/src/Strategy.js +47 -0
  47. package/esm/src/abis/Action.json +247 -0
  48. package/esm/src/abis/DFSProxyRegistry.json +193 -0
  49. package/esm/src/abis/DsProxy.json +218 -0
  50. package/esm/src/abis/Erc20.json +222 -0
  51. package/esm/src/abis/ProxyRegistry.json +65 -0
  52. package/esm/src/abis/Recipe.json +254 -0
  53. package/esm/src/actions/aave/AaveBorrowAction.d.ts +18 -0
  54. package/esm/src/actions/aave/AaveBorrowAction.js +22 -0
  55. package/esm/src/actions/aave/AaveClaimStkAaveAction.d.ts +15 -0
  56. package/esm/src/actions/aave/AaveClaimStkAaveAction.js +23 -0
  57. package/esm/src/actions/aave/AaveCollateralSwitchAction.d.ts +15 -0
  58. package/esm/src/actions/aave/AaveCollateralSwitchAction.js +18 -0
  59. package/esm/src/actions/aave/AavePaybackAction.d.ts +22 -0
  60. package/esm/src/actions/aave/AavePaybackAction.js +38 -0
  61. package/esm/src/actions/aave/AaveSupplyAction.d.ts +22 -0
  62. package/esm/src/actions/aave/AaveSupplyAction.js +45 -0
  63. package/esm/src/actions/aave/AaveWithdrawAction.d.ts +16 -0
  64. package/esm/src/actions/aave/AaveWithdrawAction.js +20 -0
  65. package/esm/src/actions/aave/index.d.ts +6 -0
  66. package/esm/src/actions/aave/index.js +6 -0
  67. package/esm/src/actions/aaveV3/AaveV3ATokenPaybackAction.d.ts +25 -0
  68. package/esm/src/actions/aaveV3/AaveV3ATokenPaybackAction.js +64 -0
  69. package/esm/src/actions/aaveV3/AaveV3BorrowAction.d.ts +21 -0
  70. package/esm/src/actions/aaveV3/AaveV3BorrowAction.js +59 -0
  71. package/esm/src/actions/aaveV3/AaveV3ClaimRewardsAction.d.ts +18 -0
  72. package/esm/src/actions/aaveV3/AaveV3ClaimRewardsAction.js +40 -0
  73. package/esm/src/actions/aaveV3/AaveV3CollateralSwitchAction.d.ts +18 -0
  74. package/esm/src/actions/aaveV3/AaveV3CollateralSwitchAction.js +39 -0
  75. package/esm/src/actions/aaveV3/AaveV3PaybackAction.d.ts +27 -0
  76. package/esm/src/actions/aaveV3/AaveV3PaybackAction.js +77 -0
  77. package/esm/src/actions/aaveV3/AaveV3SetEModeAction.d.ts +16 -0
  78. package/esm/src/actions/aaveV3/AaveV3SetEModeAction.js +33 -0
  79. package/esm/src/actions/aaveV3/AaveV3SupplyAction.d.ts +27 -0
  80. package/esm/src/actions/aaveV3/AaveV3SupplyAction.js +77 -0
  81. package/esm/src/actions/aaveV3/AaveV3SwapBorrowRateModeAction.d.ts +18 -0
  82. package/esm/src/actions/aaveV3/AaveV3SwapBorrowRateModeAction.js +38 -0
  83. package/esm/src/actions/aaveV3/AaveV3WithdrawAction.d.ts +18 -0
  84. package/esm/src/actions/aaveV3/AaveV3WithdrawAction.js +45 -0
  85. package/esm/src/actions/aaveV3/index.d.ts +9 -0
  86. package/esm/src/actions/aaveV3/index.js +9 -0
  87. package/esm/src/actions/balancer/BalancerV2ClaimAction.d.ts +20 -0
  88. package/esm/src/actions/balancer/BalancerV2ClaimAction.js +49 -0
  89. package/esm/src/actions/balancer/BalancerV2SupplyAction.d.ts +22 -0
  90. package/esm/src/actions/balancer/BalancerV2SupplyAction.js +52 -0
  91. package/esm/src/actions/balancer/BalancerV2WithdrawAction.d.ts +24 -0
  92. package/esm/src/actions/balancer/BalancerV2WithdrawAction.js +56 -0
  93. package/esm/src/actions/balancer/index.d.ts +3 -0
  94. package/esm/src/actions/balancer/index.js +3 -0
  95. package/esm/src/actions/basic/AutomationV2Unsub.d.ts +9 -0
  96. package/esm/src/actions/basic/AutomationV2Unsub.js +11 -0
  97. package/esm/src/actions/basic/ChangeProxyOwnerAction.d.ts +13 -0
  98. package/esm/src/actions/basic/ChangeProxyOwnerAction.js +15 -0
  99. package/esm/src/actions/basic/GasFeeAction.d.ts +14 -0
  100. package/esm/src/actions/basic/GasFeeAction.js +21 -0
  101. package/esm/src/actions/basic/GasFeeActionL2.d.ts +15 -0
  102. package/esm/src/actions/basic/GasFeeActionL2.js +22 -0
  103. package/esm/src/actions/basic/PullTokenAction.d.ts +19 -0
  104. package/esm/src/actions/basic/PullTokenAction.js +41 -0
  105. package/esm/src/actions/basic/SellAction.d.ts +23 -0
  106. package/esm/src/actions/basic/SellAction.js +61 -0
  107. package/esm/src/actions/basic/SendTokenAction.d.ts +15 -0
  108. package/esm/src/actions/basic/SendTokenAction.js +23 -0
  109. package/esm/src/actions/basic/SendTokenAndUnwrapAction.d.ts +15 -0
  110. package/esm/src/actions/basic/SendTokenAndUnwrapAction.js +23 -0
  111. package/esm/src/actions/basic/SubInputsAction.d.ts +10 -0
  112. package/esm/src/actions/basic/SubInputsAction.js +15 -0
  113. package/esm/src/actions/basic/SumInputsAction.d.ts +10 -0
  114. package/esm/src/actions/basic/SumInputsAction.js +15 -0
  115. package/esm/src/actions/basic/ToggleSubAction.d.ts +14 -0
  116. package/esm/src/actions/basic/ToggleSubAction.js +16 -0
  117. package/esm/src/actions/basic/TokenBalanceAction.d.ts +8 -0
  118. package/esm/src/actions/basic/TokenBalanceAction.js +13 -0
  119. package/esm/src/actions/basic/TransferNFTAction.d.ts +8 -0
  120. package/esm/src/actions/basic/TransferNFTAction.js +17 -0
  121. package/esm/src/actions/basic/UnwrapEthAction.d.ts +15 -0
  122. package/esm/src/actions/basic/UnwrapEthAction.js +30 -0
  123. package/esm/src/actions/basic/UpdateSubAction.d.ts +14 -0
  124. package/esm/src/actions/basic/UpdateSubAction.js +16 -0
  125. package/esm/src/actions/basic/WrapEthAction.d.ts +15 -0
  126. package/esm/src/actions/basic/WrapEthAction.js +36 -0
  127. package/esm/src/actions/basic/index.d.ts +16 -0
  128. package/esm/src/actions/basic/index.js +16 -0
  129. package/esm/src/actions/checkers/AaveV3RatioCheckAction.d.ts +14 -0
  130. package/esm/src/actions/checkers/AaveV3RatioCheckAction.js +20 -0
  131. package/esm/src/actions/checkers/CompoundV3RatioCheckAction.d.ts +16 -0
  132. package/esm/src/actions/checkers/CompoundV3RatioCheckAction.js +24 -0
  133. package/esm/src/actions/checkers/MakerRatioCheckAction.d.ts +17 -0
  134. package/esm/src/actions/checkers/MakerRatioCheckAction.js +25 -0
  135. package/esm/src/actions/checkers/index.d.ts +3 -0
  136. package/esm/src/actions/checkers/index.js +3 -0
  137. package/esm/src/actions/chickenBonds/CBChickenInAction.d.ts +14 -0
  138. package/esm/src/actions/chickenBonds/CBChickenInAction.js +18 -0
  139. package/esm/src/actions/chickenBonds/CBChickenOutAction.d.ts +15 -0
  140. package/esm/src/actions/chickenBonds/CBChickenOutAction.js +19 -0
  141. package/esm/src/actions/chickenBonds/CBCreateAction.d.ts +18 -0
  142. package/esm/src/actions/chickenBonds/CBCreateAction.js +32 -0
  143. package/esm/src/actions/chickenBonds/CBRedeemAction.d.ts +20 -0
  144. package/esm/src/actions/chickenBonds/CBRedeemAction.js +35 -0
  145. package/esm/src/actions/chickenBonds/index.d.ts +4 -0
  146. package/esm/src/actions/chickenBonds/index.js +4 -0
  147. package/esm/src/actions/compound/CompoundBorrowAction.d.ts +15 -0
  148. package/esm/src/actions/compound/CompoundBorrowAction.js +19 -0
  149. package/esm/src/actions/compound/CompoundClaimAction.d.ts +16 -0
  150. package/esm/src/actions/compound/CompoundClaimAction.js +24 -0
  151. package/esm/src/actions/compound/CompoundCollateralSwitchAction.d.ts +10 -0
  152. package/esm/src/actions/compound/CompoundCollateralSwitchAction.js +12 -0
  153. package/esm/src/actions/compound/CompoundGetDebtAction.d.ts +8 -0
  154. package/esm/src/actions/compound/CompoundGetDebtAction.js +13 -0
  155. package/esm/src/actions/compound/CompoundPaybackAction.d.ts +20 -0
  156. package/esm/src/actions/compound/CompoundPaybackAction.js +38 -0
  157. package/esm/src/actions/compound/CompoundSupplyAction.d.ts +20 -0
  158. package/esm/src/actions/compound/CompoundSupplyAction.js +43 -0
  159. package/esm/src/actions/compound/CompoundWithdrawAction.d.ts +15 -0
  160. package/esm/src/actions/compound/CompoundWithdrawAction.js +19 -0
  161. package/esm/src/actions/compound/index.d.ts +7 -0
  162. package/esm/src/actions/compound/index.js +7 -0
  163. package/esm/src/actions/compoundV3/CompoundV3AllowAction.d.ts +15 -0
  164. package/esm/src/actions/compoundV3/CompoundV3AllowAction.js +24 -0
  165. package/esm/src/actions/compoundV3/CompoundV3BorrowAction.d.ts +16 -0
  166. package/esm/src/actions/compoundV3/CompoundV3BorrowAction.js +26 -0
  167. package/esm/src/actions/compoundV3/CompoundV3ClaimAction.d.ts +16 -0
  168. package/esm/src/actions/compoundV3/CompoundV3ClaimAction.js +27 -0
  169. package/esm/src/actions/compoundV3/CompoundV3PaybackAction.d.ts +22 -0
  170. package/esm/src/actions/compoundV3/CompoundV3PaybackAction.js +48 -0
  171. package/esm/src/actions/compoundV3/CompoundV3SupplyAction.d.ts +22 -0
  172. package/esm/src/actions/compoundV3/CompoundV3SupplyAction.js +45 -0
  173. package/esm/src/actions/compoundV3/CompoundV3TransferAction.d.ts +17 -0
  174. package/esm/src/actions/compoundV3/CompoundV3TransferAction.js +30 -0
  175. package/esm/src/actions/compoundV3/CompoundV3WithdrawAction.d.ts +17 -0
  176. package/esm/src/actions/compoundV3/CompoundV3WithdrawAction.js +29 -0
  177. package/esm/src/actions/compoundV3/index.d.ts +7 -0
  178. package/esm/src/actions/compoundV3/index.js +7 -0
  179. package/esm/src/actions/convex/ConvexClaimAction.d.ts +17 -0
  180. package/esm/src/actions/convex/ConvexClaimAction.js +59 -0
  181. package/esm/src/actions/convex/ConvexDepositAction.d.ts +22 -0
  182. package/esm/src/actions/convex/ConvexDepositAction.js +66 -0
  183. package/esm/src/actions/convex/ConvexWithdrawAction.d.ts +22 -0
  184. package/esm/src/actions/convex/ConvexWithdrawAction.js +63 -0
  185. package/esm/src/actions/convex/index.d.ts +3 -0
  186. package/esm/src/actions/convex/index.js +3 -0
  187. package/esm/src/actions/curve/CurveClaimFeesAction.d.ts +13 -0
  188. package/esm/src/actions/curve/CurveClaimFeesAction.js +22 -0
  189. package/esm/src/actions/curve/CurveDepositAction.d.ts +18 -0
  190. package/esm/src/actions/curve/CurveDepositAction.js +78 -0
  191. package/esm/src/actions/curve/CurveGaugeDepositAction.d.ts +20 -0
  192. package/esm/src/actions/curve/CurveGaugeDepositAction.js +40 -0
  193. package/esm/src/actions/curve/CurveGaugeWithdrawAction.d.ts +14 -0
  194. package/esm/src/actions/curve/CurveGaugeWithdrawAction.js +22 -0
  195. package/esm/src/actions/curve/CurveMintCrvAction.d.ts +12 -0
  196. package/esm/src/actions/curve/CurveMintCrvAction.js +19 -0
  197. package/esm/src/actions/curve/CurveStethPoolDepositAction.d.ts +16 -0
  198. package/esm/src/actions/curve/CurveStethPoolDepositAction.js +27 -0
  199. package/esm/src/actions/curve/CurveStethPoolWithdrawAction.d.ts +17 -0
  200. package/esm/src/actions/curve/CurveStethPoolWithdrawAction.js +28 -0
  201. package/esm/src/actions/curve/CurveSwapAction.d.ts +22 -0
  202. package/esm/src/actions/curve/CurveSwapAction.js +43 -0
  203. package/esm/src/actions/curve/CurveWithdrawAction.d.ts +22 -0
  204. package/esm/src/actions/curve/CurveWithdrawAction.js +72 -0
  205. package/esm/src/actions/curve/index.d.ts +9 -0
  206. package/esm/src/actions/curve/index.js +9 -0
  207. package/esm/src/actions/dydx/DyDxWithdrawAction.d.ts +15 -0
  208. package/esm/src/actions/dydx/DyDxWithdrawAction.js +19 -0
  209. package/esm/src/actions/dydx/index.d.ts +1 -0
  210. package/esm/src/actions/dydx/index.js +1 -0
  211. package/esm/src/actions/flashloan/AaveV2FlashLoanAction.d.ts +18 -0
  212. package/esm/src/actions/flashloan/AaveV2FlashLoanAction.js +20 -0
  213. package/esm/src/actions/flashloan/AaveV2FlashLoanPaybackAction.d.ts +14 -0
  214. package/esm/src/actions/flashloan/AaveV2FlashLoanPaybackAction.js +16 -0
  215. package/esm/src/actions/flashloan/AaveV3FlashLoanAction.d.ts +18 -0
  216. package/esm/src/actions/flashloan/AaveV3FlashLoanAction.js +20 -0
  217. package/esm/src/actions/flashloan/AaveV3FlashLoanPaybackAction.d.ts +14 -0
  218. package/esm/src/actions/flashloan/AaveV3FlashLoanPaybackAction.js +16 -0
  219. package/esm/src/actions/flashloan/BalancerFlashLoanAction.d.ts +16 -0
  220. package/esm/src/actions/flashloan/BalancerFlashLoanAction.js +18 -0
  221. package/esm/src/actions/flashloan/BalancerFlashLoanPaybackAction.d.ts +14 -0
  222. package/esm/src/actions/flashloan/BalancerFlashLoanPaybackAction.js +16 -0
  223. package/esm/src/actions/flashloan/DyDxFlashLoanAction.d.ts +16 -0
  224. package/esm/src/actions/flashloan/DyDxFlashLoanAction.js +18 -0
  225. package/esm/src/actions/flashloan/DyDxFlashLoanPaybackAction.d.ts +14 -0
  226. package/esm/src/actions/flashloan/DyDxFlashLoanPaybackAction.js +16 -0
  227. package/esm/src/actions/flashloan/EulerFlashLoanAction.d.ts +16 -0
  228. package/esm/src/actions/flashloan/EulerFlashLoanAction.js +18 -0
  229. package/esm/src/actions/flashloan/EulerFlashLoanPaybackAction.d.ts +13 -0
  230. package/esm/src/actions/flashloan/EulerFlashLoanPaybackAction.js +15 -0
  231. package/esm/src/actions/flashloan/MakerFlashLoanAction.d.ts +15 -0
  232. package/esm/src/actions/flashloan/MakerFlashLoanAction.js +17 -0
  233. package/esm/src/actions/flashloan/MakerFlashLoanPaybackAction.d.ts +13 -0
  234. package/esm/src/actions/flashloan/MakerFlashLoanPaybackAction.js +15 -0
  235. package/esm/src/actions/flashloan/index.d.ts +12 -0
  236. package/esm/src/actions/flashloan/index.js +12 -0
  237. package/esm/src/actions/guni/GUniDeposit.d.ts +24 -0
  238. package/esm/src/actions/guni/GUniDeposit.js +47 -0
  239. package/esm/src/actions/guni/GUniWithdraw.d.ts +22 -0
  240. package/esm/src/actions/guni/GUniWithdraw.js +39 -0
  241. package/esm/src/actions/guni/index.d.ts +2 -0
  242. package/esm/src/actions/guni/index.js +2 -0
  243. package/esm/src/actions/index.d.ts +24 -0
  244. package/esm/src/actions/index.js +24 -0
  245. package/esm/src/actions/insta/InstPullTokensAction.d.ts +18 -0
  246. package/esm/src/actions/insta/InstPullTokensAction.js +36 -0
  247. package/esm/src/actions/insta/index.d.ts +1 -0
  248. package/esm/src/actions/insta/index.js +1 -0
  249. package/esm/src/actions/lido/LidoStakeAction.d.ts +19 -0
  250. package/esm/src/actions/lido/LidoStakeAction.js +34 -0
  251. package/esm/src/actions/lido/LidoUnwrapAction.d.ts +19 -0
  252. package/esm/src/actions/lido/LidoUnwrapAction.js +33 -0
  253. package/esm/src/actions/lido/LidoWrapAction.d.ts +20 -0
  254. package/esm/src/actions/lido/LidoWrapAction.js +45 -0
  255. package/esm/src/actions/lido/index.d.ts +3 -0
  256. package/esm/src/actions/lido/index.js +3 -0
  257. package/esm/src/actions/liquity/LiquityBorrowAction.d.ts +15 -0
  258. package/esm/src/actions/liquity/LiquityBorrowAction.js +24 -0
  259. package/esm/src/actions/liquity/LiquityClaimAction.d.ts +13 -0
  260. package/esm/src/actions/liquity/LiquityClaimAction.js +20 -0
  261. package/esm/src/actions/liquity/LiquityClaimSPRewardsAction.d.ts +14 -0
  262. package/esm/src/actions/liquity/LiquityClaimSPRewardsAction.js +18 -0
  263. package/esm/src/actions/liquity/LiquityClaimStakingRewardsAction.d.ts +14 -0
  264. package/esm/src/actions/liquity/LiquityClaimStakingRewardsAction.js +18 -0
  265. package/esm/src/actions/liquity/LiquityCloseAction.d.ts +18 -0
  266. package/esm/src/actions/liquity/LiquityCloseAction.js +38 -0
  267. package/esm/src/actions/liquity/LiquityEthGainToTroveAction.d.ts +13 -0
  268. package/esm/src/actions/liquity/LiquityEthGainToTroveAction.js +20 -0
  269. package/esm/src/actions/liquity/LiquityOpenAction.d.ts +21 -0
  270. package/esm/src/actions/liquity/LiquityOpenAction.js +44 -0
  271. package/esm/src/actions/liquity/LiquityPaybackAction.d.ts +18 -0
  272. package/esm/src/actions/liquity/LiquityPaybackAction.js +37 -0
  273. package/esm/src/actions/liquity/LiquityRedeemAction.d.ts +20 -0
  274. package/esm/src/actions/liquity/LiquityRedeemAction.js +42 -0
  275. package/esm/src/actions/liquity/LiquitySPDepositAction.d.ts +20 -0
  276. package/esm/src/actions/liquity/LiquitySPDepositAction.js +43 -0
  277. package/esm/src/actions/liquity/LiquitySPWithdrawAction.d.ts +16 -0
  278. package/esm/src/actions/liquity/LiquitySPWithdrawAction.js +28 -0
  279. package/esm/src/actions/liquity/LiquityStakeAction.d.ts +20 -0
  280. package/esm/src/actions/liquity/LiquityStakeAction.js +43 -0
  281. package/esm/src/actions/liquity/LiquitySupplyAction.d.ts +18 -0
  282. package/esm/src/actions/liquity/LiquitySupplyAction.js +37 -0
  283. package/esm/src/actions/liquity/LiquityUnstakeAction.d.ts +16 -0
  284. package/esm/src/actions/liquity/LiquityUnstakeAction.js +28 -0
  285. package/esm/src/actions/liquity/LiquityWithdrawAction.d.ts +14 -0
  286. package/esm/src/actions/liquity/LiquityWithdrawAction.js +22 -0
  287. package/esm/src/actions/liquity/index.d.ts +15 -0
  288. package/esm/src/actions/liquity/index.js +15 -0
  289. package/esm/src/actions/maker/MakerClaimAction.d.ts +15 -0
  290. package/esm/src/actions/maker/MakerClaimAction.js +24 -0
  291. package/esm/src/actions/maker/MakerGenerateAction.d.ts +16 -0
  292. package/esm/src/actions/maker/MakerGenerateAction.js +20 -0
  293. package/esm/src/actions/maker/MakerGiveAction.d.ts +16 -0
  294. package/esm/src/actions/maker/MakerGiveAction.js +25 -0
  295. package/esm/src/actions/maker/MakerMergeAction.d.ts +15 -0
  296. package/esm/src/actions/maker/MakerMergeAction.js +17 -0
  297. package/esm/src/actions/maker/MakerOpenVaultAction.d.ts +14 -0
  298. package/esm/src/actions/maker/MakerOpenVaultAction.js +16 -0
  299. package/esm/src/actions/maker/MakerPaybackAction.d.ts +20 -0
  300. package/esm/src/actions/maker/MakerPaybackAction.js +33 -0
  301. package/esm/src/actions/maker/MakerRatioAction.d.ts +13 -0
  302. package/esm/src/actions/maker/MakerRatioAction.js +15 -0
  303. package/esm/src/actions/maker/MakerSupplyAction.d.ts +21 -0
  304. package/esm/src/actions/maker/MakerSupplyAction.js +37 -0
  305. package/esm/src/actions/maker/MakerWithdrawAction.d.ts +17 -0
  306. package/esm/src/actions/maker/MakerWithdrawAction.js +21 -0
  307. package/esm/src/actions/maker/index.d.ts +9 -0
  308. package/esm/src/actions/maker/index.js +9 -0
  309. package/esm/src/actions/mstable/MStableClaimAction.d.ts +16 -0
  310. package/esm/src/actions/mstable/MStableClaimAction.js +25 -0
  311. package/esm/src/actions/mstable/MStableDepositAction.d.ts +25 -0
  312. package/esm/src/actions/mstable/MStableDepositAction.js +75 -0
  313. package/esm/src/actions/mstable/MStableWithdrawAction.d.ts +25 -0
  314. package/esm/src/actions/mstable/MStableWithdrawAction.js +74 -0
  315. package/esm/src/actions/mstable/index.d.ts +3 -0
  316. package/esm/src/actions/mstable/index.js +3 -0
  317. package/esm/src/actions/rari/RariDepositAction.d.ts +22 -0
  318. package/esm/src/actions/rari/RariDepositAction.js +41 -0
  319. package/esm/src/actions/rari/RariWithdrawAction.d.ts +23 -0
  320. package/esm/src/actions/rari/RariWithdrawAction.js +43 -0
  321. package/esm/src/actions/rari/index.d.ts +2 -0
  322. package/esm/src/actions/rari/index.js +2 -0
  323. package/esm/src/actions/reflexer/ReflexerGenerateAction.d.ts +15 -0
  324. package/esm/src/actions/reflexer/ReflexerGenerateAction.js +19 -0
  325. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourDepositAction.d.ts +19 -0
  326. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourDepositAction.js +37 -0
  327. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourGetReservesAction.d.ts +14 -0
  328. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourGetReservesAction.js +21 -0
  329. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourWithdrawAction.d.ts +15 -0
  330. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourWithdrawAction.js +23 -0
  331. package/esm/src/actions/reflexer/ReflexerOpenSafeAction.d.ts +13 -0
  332. package/esm/src/actions/reflexer/ReflexerOpenSafeAction.js +15 -0
  333. package/esm/src/actions/reflexer/ReflexerPaybackAction.d.ts +19 -0
  334. package/esm/src/actions/reflexer/ReflexerPaybackAction.js +32 -0
  335. package/esm/src/actions/reflexer/ReflexerSupplyAction.d.ts +21 -0
  336. package/esm/src/actions/reflexer/ReflexerSupplyAction.js +44 -0
  337. package/esm/src/actions/reflexer/ReflexerWithdrawAction.d.ts +16 -0
  338. package/esm/src/actions/reflexer/ReflexerWithdrawAction.js +20 -0
  339. package/esm/src/actions/reflexer/index.d.ts +8 -0
  340. package/esm/src/actions/reflexer/index.js +8 -0
  341. package/esm/src/actions/uniswap/UniswapSupplyAction.d.ts +26 -0
  342. package/esm/src/actions/uniswap/UniswapSupplyAction.js +65 -0
  343. package/esm/src/actions/uniswap/UniswapWithdrawAction.d.ts +25 -0
  344. package/esm/src/actions/uniswap/UniswapWithdrawAction.js +56 -0
  345. package/esm/src/actions/uniswap/index.d.ts +2 -0
  346. package/esm/src/actions/uniswap/index.js +2 -0
  347. package/esm/src/actions/uniswapV3/UniswapV3CollectAction.d.ts +24 -0
  348. package/esm/src/actions/uniswapV3/UniswapV3CollectAction.js +47 -0
  349. package/esm/src/actions/uniswapV3/UniswapV3CreatePoolAction.d.ts +30 -0
  350. package/esm/src/actions/uniswapV3/UniswapV3CreatePoolAction.js +69 -0
  351. package/esm/src/actions/uniswapV3/UniswapV3MintAction.d.ts +29 -0
  352. package/esm/src/actions/uniswapV3/UniswapV3MintAction.js +67 -0
  353. package/esm/src/actions/uniswapV3/UniswapV3SupplyAction.d.ts +26 -0
  354. package/esm/src/actions/uniswapV3/UniswapV3SupplyAction.js +60 -0
  355. package/esm/src/actions/uniswapV3/UniswapV3WithdrawAction.d.ts +28 -0
  356. package/esm/src/actions/uniswapV3/UniswapV3WithdrawAction.js +58 -0
  357. package/esm/src/actions/uniswapV3/index.d.ts +5 -0
  358. package/esm/src/actions/uniswapV3/index.js +5 -0
  359. package/esm/src/actions/yearn/YearnSupplyAction.d.ts +21 -0
  360. package/esm/src/actions/yearn/YearnSupplyAction.js +43 -0
  361. package/esm/src/actions/yearn/YearnWithdrawAction.d.ts +21 -0
  362. package/esm/src/actions/yearn/YearnWithdrawAction.js +43 -0
  363. package/esm/src/actions/yearn/index.d.ts +2 -0
  364. package/esm/src/actions/yearn/index.js +2 -0
  365. package/esm/src/addresses.d.ts +410 -0
  366. package/esm/src/addresses.js +257 -0
  367. package/esm/src/config.d.ts +20 -0
  368. package/esm/src/config.js +69 -0
  369. package/esm/src/index.d.ts +1549 -0
  370. package/esm/src/index.js +22 -0
  371. package/esm/src/triggers/AaveV3RatioTrigger.d.ts +10 -0
  372. package/esm/src/triggers/AaveV3RatioTrigger.js +12 -0
  373. package/esm/src/triggers/ChainLinkPriceTrigger.d.ts +10 -0
  374. package/esm/src/triggers/ChainLinkPriceTrigger.js +12 -0
  375. package/esm/src/triggers/CompV3RatioTrigger.d.ts +10 -0
  376. package/esm/src/triggers/CompV3RatioTrigger.js +12 -0
  377. package/esm/src/triggers/CompoundRatioTrigger.d.ts +10 -0
  378. package/esm/src/triggers/CompoundRatioTrigger.js +12 -0
  379. package/esm/src/triggers/GasPriceTrigger.d.ts +10 -0
  380. package/esm/src/triggers/GasPriceTrigger.js +12 -0
  381. package/esm/src/triggers/LiquityRatioTrigger.d.ts +10 -0
  382. package/esm/src/triggers/LiquityRatioTrigger.js +12 -0
  383. package/esm/src/triggers/MakerRatioTrigger.d.ts +10 -0
  384. package/esm/src/triggers/MakerRatioTrigger.js +12 -0
  385. package/esm/src/triggers/ReflexerRatioTrigger.d.ts +10 -0
  386. package/esm/src/triggers/ReflexerRatioTrigger.js +12 -0
  387. package/esm/src/triggers/TimestampTrigger.d.ts +10 -0
  388. package/esm/src/triggers/TimestampTrigger.js +12 -0
  389. package/esm/src/triggers/TrailingStopTrigger.d.ts +10 -0
  390. package/esm/src/triggers/TrailingStopTrigger.js +12 -0
  391. package/esm/src/triggers/UniV3CurrentTickTrigger.d.ts +10 -0
  392. package/esm/src/triggers/UniV3CurrentTickTrigger.js +12 -0
  393. package/esm/src/triggers/index.d.ts +11 -0
  394. package/esm/src/triggers/index.js +11 -0
  395. package/esm/src/types.d.ts +43 -0
  396. package/esm/src/types.js +1 -0
  397. package/esm/src/utils/convex-utils.d.ts +42 -0
  398. package/esm/src/utils/convex-utils.js +16 -0
  399. package/esm/src/utils/convexPoolInfo.json +1039 -0
  400. package/esm/src/utils/curve-utils.d.ts +4 -0
  401. package/esm/src/utils/curve-utils.js +6 -0
  402. package/esm/src/utils/curvePoolInfo.json +203 -0
  403. package/esm/src/utils/general.d.ts +17 -0
  404. package/esm/src/utils/general.js +39 -0
  405. package/esm/src/utils/index.d.ts +5 -0
  406. package/esm/src/utils/index.js +5 -0
  407. package/esm/src/utils/mstableAssetPairs.d.ts +9 -0
  408. package/esm/src/utils/mstableAssetPairs.js +8 -0
  409. package/esm/src/utils/uniswapLP.d.ts +19 -0
  410. package/esm/src/utils/uniswapLP.js +33 -0
  411. package/esm/src/utils/zeroExExchange.d.ts +39 -0
  412. package/esm/src/utils/zeroExExchange.js +169 -0
  413. package/package.json +10 -5
  414. package/src/Action.ts +47 -42
  415. package/src/ActionWithL2.ts +6 -6
  416. package/src/DfsWeb3.ts +20 -25
  417. package/src/Recipe.ts +18 -16
  418. package/src/Strategy.ts +10 -8
  419. package/src/actions/aave/AaveBorrowAction.ts +4 -4
  420. package/src/actions/aave/AaveClaimStkAaveAction.ts +5 -5
  421. package/src/actions/aave/AaveCollateralSwitchAction.ts +7 -7
  422. package/src/actions/aave/AavePaybackAction.ts +6 -6
  423. package/src/actions/aave/AaveSupplyAction.ts +7 -7
  424. package/src/actions/aave/AaveWithdrawAction.ts +6 -6
  425. package/src/actions/aaveV3/AaveV3ATokenPaybackAction.ts +13 -11
  426. package/src/actions/aaveV3/AaveV3BorrowAction.ts +11 -9
  427. package/src/actions/aaveV3/AaveV3ClaimRewardsAction.ts +7 -6
  428. package/src/actions/aaveV3/AaveV3CollateralSwitchAction.ts +8 -7
  429. package/src/actions/aaveV3/AaveV3PaybackAction.ts +20 -19
  430. package/src/actions/aaveV3/AaveV3SetEModeAction.ts +6 -6
  431. package/src/actions/aaveV3/AaveV3SupplyAction.ts +17 -18
  432. package/src/actions/aaveV3/AaveV3SwapBorrowRateModeAction.ts +10 -9
  433. package/src/actions/aaveV3/AaveV3WithdrawAction.ts +14 -13
  434. package/src/actions/balancer/BalancerV2ClaimAction.ts +14 -15
  435. package/src/actions/balancer/BalancerV2SupplyAction.ts +16 -14
  436. package/src/actions/balancer/BalancerV2WithdrawAction.ts +16 -14
  437. package/src/actions/balancer/index.ts +3 -3
  438. package/src/actions/basic/AutomationV2Unsub.ts +6 -6
  439. package/src/actions/basic/ChangeProxyOwnerAction.ts +5 -5
  440. package/src/actions/basic/GasFeeAction.ts +6 -7
  441. package/src/actions/basic/GasFeeActionL2.ts +6 -6
  442. package/src/actions/basic/PullTokenAction.ts +11 -11
  443. package/src/actions/basic/SellAction.ts +11 -12
  444. package/src/actions/basic/SendTokenAction.ts +8 -8
  445. package/src/actions/basic/SendTokenAndUnwrapAction.ts +8 -8
  446. package/src/actions/basic/SubInputsAction.ts +6 -6
  447. package/src/actions/basic/SumInputsAction.ts +6 -6
  448. package/src/actions/basic/ToggleSubAction.ts +5 -7
  449. package/src/actions/basic/TokenBalanceAction.ts +5 -5
  450. package/src/actions/basic/TransferNFTAction.ts +8 -8
  451. package/src/actions/basic/UnwrapEthAction.ts +11 -10
  452. package/src/actions/basic/UpdateSubAction.ts +8 -8
  453. package/src/actions/basic/WrapEthAction.ts +6 -6
  454. package/src/actions/checkers/AaveV3RatioCheckAction.ts +5 -5
  455. package/src/actions/checkers/CompoundV3RatioCheckAction.ts +6 -6
  456. package/src/actions/checkers/MakerRatioCheckAction.ts +5 -5
  457. package/src/actions/chickenBonds/CBChickenInAction.ts +6 -6
  458. package/src/actions/chickenBonds/CBChickenOutAction.ts +7 -7
  459. package/src/actions/chickenBonds/CBCreateAction.ts +6 -6
  460. package/src/actions/chickenBonds/CBRedeemAction.ts +6 -7
  461. package/src/actions/compound/CompoundBorrowAction.ts +5 -5
  462. package/src/actions/compound/CompoundClaimAction.ts +6 -6
  463. package/src/actions/compound/CompoundCollateralSwitchAction.ts +4 -4
  464. package/src/actions/compound/CompoundGetDebtAction.ts +5 -5
  465. package/src/actions/compound/CompoundPaybackAction.ts +8 -9
  466. package/src/actions/compound/CompoundSupplyAction.ts +8 -9
  467. package/src/actions/compound/CompoundWithdrawAction.ts +5 -5
  468. package/src/actions/compoundV3/CompoundV3AllowAction.ts +16 -16
  469. package/src/actions/compoundV3/CompoundV3BorrowAction.ts +17 -17
  470. package/src/actions/compoundV3/CompoundV3ClaimAction.ts +9 -9
  471. package/src/actions/compoundV3/CompoundV3PaybackAction.ts +32 -33
  472. package/src/actions/compoundV3/CompoundV3SupplyAction.ts +24 -25
  473. package/src/actions/compoundV3/CompoundV3TransferAction.ts +25 -25
  474. package/src/actions/compoundV3/CompoundV3WithdrawAction.ts +9 -9
  475. package/src/actions/compoundV3/index.ts +1 -1
  476. package/src/actions/convex/ConvexClaimAction.ts +51 -52
  477. package/src/actions/convex/ConvexDepositAction.ts +58 -59
  478. package/src/actions/convex/ConvexWithdrawAction.ts +55 -56
  479. package/src/actions/curve/CurveClaimFeesAction.ts +18 -19
  480. package/src/actions/curve/CurveDepositAction.ts +61 -62
  481. package/src/actions/curve/CurveGaugeDepositAction.ts +20 -21
  482. package/src/actions/curve/CurveGaugeWithdrawAction.ts +15 -16
  483. package/src/actions/curve/CurveMintCrvAction.ts +14 -15
  484. package/src/actions/curve/CurveStethPoolDepositAction.ts +27 -27
  485. package/src/actions/curve/CurveStethPoolWithdrawAction.ts +26 -26
  486. package/src/actions/curve/CurveSwapAction.ts +20 -21
  487. package/src/actions/curve/CurveWithdrawAction.ts +56 -57
  488. package/src/actions/dydx/DyDxWithdrawAction.ts +6 -6
  489. package/src/actions/flashloan/AaveV2FlashLoanAction.ts +6 -6
  490. package/src/actions/flashloan/AaveV2FlashLoanPaybackAction.ts +5 -5
  491. package/src/actions/flashloan/AaveV3FlashLoanAction.ts +6 -6
  492. package/src/actions/flashloan/AaveV3FlashLoanPaybackAction.ts +5 -5
  493. package/src/actions/flashloan/BalancerFlashLoanAction.ts +6 -6
  494. package/src/actions/flashloan/BalancerFlashLoanPaybackAction.ts +8 -8
  495. package/src/actions/flashloan/DyDxFlashLoanAction.ts +7 -7
  496. package/src/actions/flashloan/DyDxFlashLoanPaybackAction.ts +5 -5
  497. package/src/actions/flashloan/EulerFlashLoanAction.ts +6 -6
  498. package/src/actions/flashloan/EulerFlashLoanPaybackAction.ts +6 -5
  499. package/src/actions/flashloan/FLAction.ts +51 -0
  500. package/src/actions/flashloan/MakerFlashLoanAction.ts +6 -6
  501. package/src/actions/flashloan/MakerFlashLoanPaybackAction.ts +4 -4
  502. package/src/actions/flashloan/index.ts +3 -2
  503. package/src/actions/guni/GUniDeposit.ts +15 -15
  504. package/src/actions/guni/GUniWithdraw.ts +11 -11
  505. package/src/actions/index.ts +24 -24
  506. package/src/actions/insta/InstPullTokensAction.ts +9 -9
  507. package/src/actions/lido/LidoStakeAction.ts +7 -7
  508. package/src/actions/lido/LidoUnwrapAction.ts +6 -6
  509. package/src/actions/lido/LidoWrapAction.ts +9 -10
  510. package/src/actions/liquity/LiquityBorrowAction.ts +19 -17
  511. package/src/actions/liquity/LiquityClaimAction.ts +14 -14
  512. package/src/actions/liquity/LiquityClaimSPRewardsAction.ts +9 -9
  513. package/src/actions/liquity/LiquityClaimStakingRewardsAction.ts +9 -9
  514. package/src/actions/liquity/LiquityCloseAction.ts +19 -19
  515. package/src/actions/liquity/LiquityEthGainToTroveAction.ts +19 -17
  516. package/src/actions/liquity/LiquityOpenAction.ts +25 -23
  517. package/src/actions/liquity/LiquityPaybackAction.ts +21 -19
  518. package/src/actions/liquity/LiquityRedeemAction.ts +42 -37
  519. package/src/actions/liquity/LiquitySPDepositAction.ts +22 -22
  520. package/src/actions/liquity/LiquitySPWithdrawAction.ts +19 -19
  521. package/src/actions/liquity/LiquityStakeAction.ts +22 -22
  522. package/src/actions/liquity/LiquitySupplyAction.ts +21 -19
  523. package/src/actions/liquity/LiquityUnstakeAction.ts +19 -19
  524. package/src/actions/liquity/LiquityWithdrawAction.ts +18 -16
  525. package/src/actions/maker/MakerClaimAction.ts +8 -8
  526. package/src/actions/maker/MakerGenerateAction.ts +5 -5
  527. package/src/actions/maker/MakerGiveAction.ts +6 -6
  528. package/src/actions/maker/MakerMergeAction.ts +4 -4
  529. package/src/actions/maker/MakerOpenVaultAction.ts +4 -4
  530. package/src/actions/maker/MakerPaybackAction.ts +6 -6
  531. package/src/actions/maker/MakerRatioAction.ts +3 -3
  532. package/src/actions/maker/MakerSupplyAction.ts +6 -6
  533. package/src/actions/maker/MakerWithdrawAction.ts +5 -5
  534. package/src/actions/mstable/MStableClaimAction.ts +23 -23
  535. package/src/actions/mstable/MStableDepositAction.ts +60 -60
  536. package/src/actions/mstable/MStableWithdrawAction.ts +59 -59
  537. package/src/actions/rari/RariDepositAction.ts +4 -4
  538. package/src/actions/rari/RariWithdrawAction.ts +4 -4
  539. package/src/actions/reflexer/ReflexerGenerateAction.ts +6 -6
  540. package/src/actions/reflexer/ReflexerNativeUniV2SaviourDepositAction.ts +10 -11
  541. package/src/actions/reflexer/ReflexerNativeUniV2SaviourGetReservesAction.ts +7 -7
  542. package/src/actions/reflexer/ReflexerNativeUniV2SaviourWithdrawAction.ts +8 -8
  543. package/src/actions/reflexer/ReflexerOpenSafeAction.ts +3 -3
  544. package/src/actions/reflexer/ReflexerPaybackAction.ts +6 -6
  545. package/src/actions/reflexer/ReflexerSupplyAction.ts +6 -6
  546. package/src/actions/reflexer/ReflexerWithdrawAction.ts +5 -5
  547. package/src/actions/uniswap/UniswapSupplyAction.ts +18 -18
  548. package/src/actions/uniswap/UniswapWithdrawAction.ts +16 -16
  549. package/src/actions/uniswapV3/UniswapV3CollectAction.ts +9 -10
  550. package/src/actions/uniswapV3/UniswapV3CreatePoolAction.ts +22 -20
  551. package/src/actions/uniswapV3/UniswapV3MintAction.ts +21 -19
  552. package/src/actions/uniswapV3/UniswapV3SupplyAction.ts +15 -15
  553. package/src/actions/uniswapV3/UniswapV3WithdrawAction.ts +14 -15
  554. package/src/actions/yearn/YearnSupplyAction.ts +7 -7
  555. package/src/actions/yearn/YearnWithdrawAction.ts +7 -7
  556. package/src/addresses.ts +10 -7
  557. package/src/config.ts +6 -6
  558. package/{index.ts → src/index.ts} +36 -21
  559. package/src/triggers/AaveV3RatioTrigger.ts +6 -7
  560. package/src/triggers/ChainLinkPriceTrigger.ts +6 -8
  561. package/src/triggers/CompV3RatioTrigger.ts +6 -7
  562. package/src/triggers/CompoundRatioTrigger.ts +6 -7
  563. package/src/triggers/GasPriceTrigger.ts +6 -7
  564. package/src/triggers/LiquityRatioTrigger.ts +9 -10
  565. package/src/triggers/MakerRatioTrigger.ts +6 -7
  566. package/src/triggers/ReflexerRatioTrigger.ts +6 -7
  567. package/src/triggers/TimestampTrigger.ts +6 -7
  568. package/src/triggers/TrailingStopTrigger.ts +6 -7
  569. package/src/triggers/UniV3CurrentTickTrigger.ts +6 -6
  570. package/src/types.ts +9 -7
  571. package/src/utils/convex-utils.ts +9 -9
  572. package/src/utils/curve-utils.ts +11 -8
  573. package/src/utils/general.ts +4 -5
  574. package/src/utils/index.ts +7 -5
  575. package/src/utils/mstableAssetPairs.ts +6 -6
  576. package/src/utils/uniswapLP.ts +14 -16
  577. package/src/utils/uniswapV3LP.ts +5 -4
  578. package/src/utils/zeroExExchange.ts +9 -8
  579. package/tsconfig.json +1 -2
  580. package/umd/index.js +8639 -0
  581. package/webpack.umd.js +1 -1
  582. package/.eslintrc +0 -14
  583. 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,5 @@
1
+ export * from './UniswapV3MintAction';
2
+ export * from './UniswapV3SupplyAction';
3
+ export * from './UniswapV3WithdrawAction';
4
+ export * from './UniswapV3CollectAction';
5
+ export * from './UniswapV3CreatePoolAction';
@@ -0,0 +1,5 @@
1
+ export * from './UniswapV3MintAction';
2
+ export * from './UniswapV3SupplyAction';
3
+ export * from './UniswapV3WithdrawAction';
4
+ export * from './UniswapV3CollectAction';
5
+ export * from './UniswapV3CreatePoolAction';
@@ -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,2 @@
1
+ export * from './YearnSupplyAction';
2
+ export * from './YearnWithdrawAction';
@@ -0,0 +1,2 @@
1
+ export * from './YearnSupplyAction';
2
+ export * from './YearnWithdrawAction';
@@ -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;