@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.
Files changed (348) hide show
  1. package/AccessLists/AaveAccessLists.ts +18 -18
  2. package/AccessLists/BalancerAccessLists.ts +13 -13
  3. package/AccessLists/CompoundAccessLists.ts +23 -23
  4. package/AccessLists/DyDxAccessLists.ts +5 -5
  5. package/AccessLists/FlashLoanAccessLists.ts +19 -19
  6. package/AccessLists/GuniAccessLists.ts +9 -9
  7. package/AccessLists/InstaAccessLists.ts +4 -4
  8. package/AccessLists/LidoAccessLists.ts +14 -14
  9. package/AccessLists/LiquityAccessLists.ts +64 -64
  10. package/AccessLists/MStableAccessLists.ts +11 -11
  11. package/AccessLists/MakerAccessLists.ts +33 -33
  12. package/AccessLists/RariAccessLists.ts +7 -7
  13. package/AccessLists/ReflexerAccessLists.ts +50 -50
  14. package/AccessLists/UniswapAccessLists.ts +30 -30
  15. package/AccessLists/UtilsAccessLists.ts +22 -22
  16. package/AccessLists/YearnAccessLists.ts +8 -8
  17. package/AccessLists/index.ts +30 -30
  18. package/esm/AccessLists/AaveAccessLists.d.ts +1 -1
  19. package/esm/AccessLists/BalancerAccessLists.d.ts +1 -1
  20. package/esm/AccessLists/CompoundAccessLists.d.ts +1 -1
  21. package/esm/AccessLists/DyDxAccessLists.d.ts +1 -1
  22. package/esm/AccessLists/FlashLoanAccessLists.d.ts +1 -1
  23. package/esm/AccessLists/GuniAccessLists.d.ts +1 -1
  24. package/esm/AccessLists/InstaAccessLists.d.ts +1 -1
  25. package/esm/AccessLists/LidoAccessLists.d.ts +1 -1
  26. package/esm/AccessLists/LiquityAccessLists.d.ts +1 -1
  27. package/esm/AccessLists/MStableAccessLists.d.ts +1 -1
  28. package/esm/AccessLists/MakerAccessLists.d.ts +1 -1
  29. package/esm/AccessLists/RariAccessLists.d.ts +1 -1
  30. package/esm/AccessLists/ReflexerAccessLists.d.ts +1 -1
  31. package/esm/AccessLists/UniswapAccessLists.d.ts +1 -1
  32. package/esm/AccessLists/UtilsAccessLists.d.ts +1 -1
  33. package/esm/AccessLists/YearnAccessLists.d.ts +1 -1
  34. package/esm/src/Action.d.ts +3 -4
  35. package/esm/src/Action.js +10 -8
  36. package/esm/src/ActionWithL2.js +1 -1
  37. package/esm/src/DfsWeb3.d.ts +3 -3
  38. package/esm/src/DfsWeb3.js +5 -12
  39. package/esm/src/Recipe.js +1 -1
  40. package/esm/src/Strategy.js +1 -1
  41. package/esm/src/abis/UniV3PositionManager.json +65 -0
  42. package/esm/src/actions/aave/AaveBorrowAction.d.ts +1 -1
  43. package/esm/src/actions/aave/AaveBorrowAction.js +2 -2
  44. package/esm/src/actions/aave/AaveClaimStkAaveAction.d.ts +1 -1
  45. package/esm/src/actions/aave/AaveClaimStkAaveAction.js +2 -2
  46. package/esm/src/actions/aave/AaveCollateralSwitchAction.d.ts +5 -5
  47. package/esm/src/actions/aave/AaveCollateralSwitchAction.js +5 -5
  48. package/esm/src/actions/aave/AavePaybackAction.d.ts +1 -1
  49. package/esm/src/actions/aave/AavePaybackAction.js +2 -2
  50. package/esm/src/actions/aave/AaveSupplyAction.d.ts +1 -1
  51. package/esm/src/actions/aave/AaveSupplyAction.js +2 -2
  52. package/esm/src/actions/aave/AaveWithdrawAction.d.ts +1 -1
  53. package/esm/src/actions/aave/AaveWithdrawAction.js +2 -2
  54. package/esm/src/actions/aaveV3/AaveV3ATokenPaybackAction.d.ts +1 -1
  55. package/esm/src/actions/aaveV3/AaveV3ATokenPaybackAction.js +3 -3
  56. package/esm/src/actions/aaveV3/AaveV3BorrowAction.d.ts +10 -10
  57. package/esm/src/actions/aaveV3/AaveV3BorrowAction.js +12 -12
  58. package/esm/src/actions/aaveV3/AaveV3ClaimRewardsAction.d.ts +1 -1
  59. package/esm/src/actions/aaveV3/AaveV3ClaimRewardsAction.js +3 -3
  60. package/esm/src/actions/aaveV3/AaveV3CollateralSwitchAction.d.ts +1 -1
  61. package/esm/src/actions/aaveV3/AaveV3CollateralSwitchAction.js +2 -2
  62. package/esm/src/actions/aaveV3/AaveV3PaybackAction.d.ts +1 -1
  63. package/esm/src/actions/aaveV3/AaveV3PaybackAction.js +3 -3
  64. package/esm/src/actions/aaveV3/AaveV3SetEModeAction.d.ts +1 -1
  65. package/esm/src/actions/aaveV3/AaveV3SetEModeAction.js +2 -2
  66. package/esm/src/actions/aaveV3/AaveV3SupplyAction.d.ts +1 -1
  67. package/esm/src/actions/aaveV3/AaveV3SupplyAction.js +3 -3
  68. package/esm/src/actions/aaveV3/AaveV3SwapBorrowRateModeAction.d.ts +1 -1
  69. package/esm/src/actions/aaveV3/AaveV3SwapBorrowRateModeAction.js +2 -2
  70. package/esm/src/actions/aaveV3/AaveV3WithdrawAction.d.ts +3 -3
  71. package/esm/src/actions/aaveV3/AaveV3WithdrawAction.js +5 -5
  72. package/esm/src/actions/balancer/BalancerV2ClaimAction.d.ts +1 -1
  73. package/esm/src/actions/balancer/BalancerV2ClaimAction.js +7 -7
  74. package/esm/src/actions/balancer/BalancerV2SupplyAction.d.ts +1 -1
  75. package/esm/src/actions/balancer/BalancerV2SupplyAction.js +8 -8
  76. package/esm/src/actions/balancer/BalancerV2WithdrawAction.d.ts +1 -1
  77. package/esm/src/actions/balancer/BalancerV2WithdrawAction.js +9 -9
  78. package/esm/src/actions/balancer/index.d.ts +3 -3
  79. package/esm/src/actions/balancer/index.js +3 -3
  80. package/esm/src/actions/basic/AutomationV2Unsub.d.ts +1 -1
  81. package/esm/src/actions/basic/AutomationV2Unsub.js +3 -3
  82. package/esm/src/actions/basic/ChangeProxyOwnerAction.d.ts +1 -1
  83. package/esm/src/actions/basic/ChangeProxyOwnerAction.js +3 -3
  84. package/esm/src/actions/basic/GasFeeAction.d.ts +1 -1
  85. package/esm/src/actions/basic/GasFeeAction.js +3 -3
  86. package/esm/src/actions/basic/GasFeeActionL2.d.ts +1 -1
  87. package/esm/src/actions/basic/GasFeeActionL2.js +3 -3
  88. package/esm/src/actions/basic/PullTokenAction.d.ts +1 -1
  89. package/esm/src/actions/basic/PullTokenAction.js +7 -7
  90. package/esm/src/actions/basic/SellAction.d.ts +1 -1
  91. package/esm/src/actions/basic/SellAction.js +7 -7
  92. package/esm/src/actions/basic/SendTokenAction.d.ts +1 -1
  93. package/esm/src/actions/basic/SendTokenAction.js +5 -5
  94. package/esm/src/actions/basic/SendTokenAndUnwrapAction.d.ts +1 -1
  95. package/esm/src/actions/basic/SendTokenAndUnwrapAction.js +5 -5
  96. package/esm/src/actions/basic/SubInputsAction.d.ts +1 -1
  97. package/esm/src/actions/basic/SubInputsAction.js +3 -3
  98. package/esm/src/actions/basic/SumInputsAction.d.ts +1 -1
  99. package/esm/src/actions/basic/SumInputsAction.js +3 -3
  100. package/esm/src/actions/basic/ToggleSubAction.d.ts +1 -1
  101. package/esm/src/actions/basic/ToggleSubAction.js +3 -3
  102. package/esm/src/actions/basic/TokenBalanceAction.d.ts +1 -1
  103. package/esm/src/actions/basic/TokenBalanceAction.js +3 -3
  104. package/esm/src/actions/basic/TransferNFTAction.d.ts +1 -1
  105. package/esm/src/actions/basic/TransferNFTAction.js +6 -6
  106. package/esm/src/actions/basic/UnwrapEthAction.d.ts +1 -1
  107. package/esm/src/actions/basic/UnwrapEthAction.js +5 -5
  108. package/esm/src/actions/basic/UpdateSubAction.d.ts +1 -1
  109. package/esm/src/actions/basic/UpdateSubAction.js +3 -3
  110. package/esm/src/actions/basic/WrapEthAction.d.ts +1 -1
  111. package/esm/src/actions/basic/WrapEthAction.js +4 -4
  112. package/esm/src/actions/checkers/AaveV3RatioCheckAction.d.ts +1 -1
  113. package/esm/src/actions/checkers/AaveV3RatioCheckAction.js +3 -3
  114. package/esm/src/actions/checkers/CompoundV3RatioCheckAction.d.ts +1 -1
  115. package/esm/src/actions/checkers/CompoundV3RatioCheckAction.js +4 -4
  116. package/esm/src/actions/checkers/MakerRatioCheckAction.d.ts +1 -1
  117. package/esm/src/actions/checkers/MakerRatioCheckAction.js +3 -3
  118. package/esm/src/actions/chickenBonds/CBChickenInAction.d.ts +1 -1
  119. package/esm/src/actions/chickenBonds/CBChickenInAction.js +2 -2
  120. package/esm/src/actions/chickenBonds/CBChickenOutAction.d.ts +2 -2
  121. package/esm/src/actions/chickenBonds/CBChickenOutAction.js +3 -3
  122. package/esm/src/actions/chickenBonds/CBCreateAction.d.ts +1 -1
  123. package/esm/src/actions/chickenBonds/CBCreateAction.js +2 -2
  124. package/esm/src/actions/chickenBonds/CBRedeemAction.d.ts +1 -1
  125. package/esm/src/actions/chickenBonds/CBRedeemAction.js +2 -2
  126. package/esm/src/actions/compound/CompoundBorrowAction.d.ts +1 -1
  127. package/esm/src/actions/compound/CompoundBorrowAction.js +2 -2
  128. package/esm/src/actions/compound/CompoundClaimAction.d.ts +1 -1
  129. package/esm/src/actions/compound/CompoundClaimAction.js +3 -3
  130. package/esm/src/actions/compound/CompoundCollateralSwitchAction.d.ts +1 -1
  131. package/esm/src/actions/compound/CompoundCollateralSwitchAction.js +1 -1
  132. package/esm/src/actions/compound/CompoundGetDebtAction.d.ts +1 -1
  133. package/esm/src/actions/compound/CompoundGetDebtAction.js +3 -3
  134. package/esm/src/actions/compound/CompoundPaybackAction.d.ts +1 -1
  135. package/esm/src/actions/compound/CompoundPaybackAction.js +3 -5
  136. package/esm/src/actions/compound/CompoundSupplyAction.d.ts +1 -1
  137. package/esm/src/actions/compound/CompoundSupplyAction.js +3 -5
  138. package/esm/src/actions/compound/CompoundWithdrawAction.d.ts +1 -1
  139. package/esm/src/actions/compound/CompoundWithdrawAction.js +2 -2
  140. package/esm/src/actions/compoundV3/CompoundV3AllowAction.d.ts +5 -5
  141. package/esm/src/actions/compoundV3/CompoundV3AllowAction.js +6 -6
  142. package/esm/src/actions/compoundV3/CompoundV3BorrowAction.d.ts +6 -6
  143. package/esm/src/actions/compoundV3/CompoundV3BorrowAction.js +7 -7
  144. package/esm/src/actions/compoundV3/CompoundV3ClaimAction.d.ts +1 -1
  145. package/esm/src/actions/compoundV3/CompoundV3ClaimAction.js +4 -4
  146. package/esm/src/actions/compoundV3/CompoundV3PaybackAction.d.ts +7 -7
  147. package/esm/src/actions/compoundV3/CompoundV3PaybackAction.js +9 -9
  148. package/esm/src/actions/compoundV3/CompoundV3SupplyAction.d.ts +7 -7
  149. package/esm/src/actions/compoundV3/CompoundV3SupplyAction.js +9 -9
  150. package/esm/src/actions/compoundV3/CompoundV3TransferAction.d.ts +7 -7
  151. package/esm/src/actions/compoundV3/CompoundV3TransferAction.js +8 -8
  152. package/esm/src/actions/compoundV3/CompoundV3WithdrawAction.d.ts +1 -1
  153. package/esm/src/actions/compoundV3/CompoundV3WithdrawAction.js +4 -4
  154. package/esm/src/actions/convex/ConvexClaimAction.d.ts +4 -4
  155. package/esm/src/actions/convex/ConvexClaimAction.js +4 -4
  156. package/esm/src/actions/convex/ConvexDepositAction.d.ts +6 -6
  157. package/esm/src/actions/convex/ConvexDepositAction.js +6 -6
  158. package/esm/src/actions/convex/ConvexWithdrawAction.d.ts +6 -6
  159. package/esm/src/actions/convex/ConvexWithdrawAction.js +6 -6
  160. package/esm/src/actions/curve/CurveClaimFeesAction.d.ts +4 -4
  161. package/esm/src/actions/curve/CurveClaimFeesAction.js +4 -4
  162. package/esm/src/actions/curve/CurveDepositAction.d.ts +7 -7
  163. package/esm/src/actions/curve/CurveDepositAction.js +7 -7
  164. package/esm/src/actions/curve/CurveGaugeDepositAction.d.ts +7 -7
  165. package/esm/src/actions/curve/CurveGaugeDepositAction.js +7 -7
  166. package/esm/src/actions/curve/CurveGaugeWithdrawAction.d.ts +5 -5
  167. package/esm/src/actions/curve/CurveGaugeWithdrawAction.js +5 -5
  168. package/esm/src/actions/curve/CurveMintCrvAction.d.ts +3 -3
  169. package/esm/src/actions/curve/CurveMintCrvAction.js +3 -3
  170. package/esm/src/actions/curve/CurveStethPoolDepositAction.d.ts +5 -5
  171. package/esm/src/actions/curve/CurveStethPoolDepositAction.js +5 -5
  172. package/esm/src/actions/curve/CurveStethPoolWithdrawAction.d.ts +6 -6
  173. package/esm/src/actions/curve/CurveStethPoolWithdrawAction.js +6 -6
  174. package/esm/src/actions/curve/CurveSwapAction.d.ts +9 -9
  175. package/esm/src/actions/curve/CurveSwapAction.js +9 -9
  176. package/esm/src/actions/curve/CurveWithdrawAction.d.ts +8 -8
  177. package/esm/src/actions/curve/CurveWithdrawAction.js +8 -8
  178. package/esm/src/actions/dydx/DyDxWithdrawAction.d.ts +1 -1
  179. package/esm/src/actions/dydx/DyDxWithdrawAction.js +2 -2
  180. package/esm/src/actions/flashloan/AaveV2FlashLoanAction.d.ts +1 -1
  181. package/esm/src/actions/flashloan/AaveV2FlashLoanAction.js +1 -1
  182. package/esm/src/actions/flashloan/AaveV2FlashLoanPaybackAction.d.ts +1 -1
  183. package/esm/src/actions/flashloan/AaveV2FlashLoanPaybackAction.js +1 -1
  184. package/esm/src/actions/flashloan/AaveV3FlashLoanAction.d.ts +1 -1
  185. package/esm/src/actions/flashloan/AaveV3FlashLoanAction.js +1 -1
  186. package/esm/src/actions/flashloan/AaveV3FlashLoanPaybackAction.d.ts +1 -1
  187. package/esm/src/actions/flashloan/AaveV3FlashLoanPaybackAction.js +1 -1
  188. package/esm/src/actions/flashloan/BalancerFlashLoanAction.d.ts +1 -1
  189. package/esm/src/actions/flashloan/BalancerFlashLoanAction.js +1 -1
  190. package/esm/src/actions/flashloan/BalancerFlashLoanPaybackAction.d.ts +4 -4
  191. package/esm/src/actions/flashloan/BalancerFlashLoanPaybackAction.js +4 -4
  192. package/esm/src/actions/flashloan/DyDxFlashLoanAction.d.ts +1 -1
  193. package/esm/src/actions/flashloan/DyDxFlashLoanAction.js +1 -1
  194. package/esm/src/actions/flashloan/DyDxFlashLoanPaybackAction.d.ts +1 -1
  195. package/esm/src/actions/flashloan/DyDxFlashLoanPaybackAction.js +1 -1
  196. package/esm/src/actions/flashloan/EulerFlashLoanAction.d.ts +1 -1
  197. package/esm/src/actions/flashloan/EulerFlashLoanAction.js +1 -1
  198. package/esm/src/actions/flashloan/EulerFlashLoanPaybackAction.d.ts +2 -1
  199. package/esm/src/actions/flashloan/EulerFlashLoanPaybackAction.js +2 -1
  200. package/esm/src/actions/flashloan/FLAction.d.ts +10 -0
  201. package/esm/src/actions/flashloan/FLAction.js +48 -0
  202. package/esm/src/actions/flashloan/MakerFlashLoanAction.d.ts +1 -1
  203. package/esm/src/actions/flashloan/MakerFlashLoanAction.js +1 -1
  204. package/esm/src/actions/flashloan/MakerFlashLoanPaybackAction.d.ts +1 -1
  205. package/esm/src/actions/flashloan/MakerFlashLoanPaybackAction.js +1 -1
  206. package/esm/src/actions/flashloan/index.d.ts +1 -0
  207. package/esm/src/actions/flashloan/index.js +1 -0
  208. package/esm/src/actions/guni/GUniDeposit.d.ts +10 -10
  209. package/esm/src/actions/guni/GUniDeposit.js +11 -11
  210. package/esm/src/actions/guni/GUniWithdraw.d.ts +8 -8
  211. package/esm/src/actions/guni/GUniWithdraw.js +9 -9
  212. package/esm/src/actions/index.d.ts +24 -24
  213. package/esm/src/actions/index.js +24 -24
  214. package/esm/src/actions/insta/InstPullTokensAction.d.ts +1 -1
  215. package/esm/src/actions/insta/InstPullTokensAction.js +5 -5
  216. package/esm/src/actions/lido/LidoStakeAction.d.ts +1 -1
  217. package/esm/src/actions/lido/LidoStakeAction.js +3 -3
  218. package/esm/src/actions/lido/LidoUnwrapAction.d.ts +1 -1
  219. package/esm/src/actions/lido/LidoUnwrapAction.js +2 -2
  220. package/esm/src/actions/lido/LidoWrapAction.d.ts +1 -1
  221. package/esm/src/actions/lido/LidoWrapAction.js +4 -6
  222. package/esm/src/actions/liquity/LiquityBorrowAction.d.ts +6 -4
  223. package/esm/src/actions/liquity/LiquityBorrowAction.js +6 -4
  224. package/esm/src/actions/liquity/LiquityClaimAction.d.ts +2 -2
  225. package/esm/src/actions/liquity/LiquityClaimAction.js +2 -2
  226. package/esm/src/actions/liquity/LiquityClaimSPRewardsAction.d.ts +3 -3
  227. package/esm/src/actions/liquity/LiquityClaimSPRewardsAction.js +4 -4
  228. package/esm/src/actions/liquity/LiquityClaimStakingRewardsAction.d.ts +3 -3
  229. package/esm/src/actions/liquity/LiquityClaimStakingRewardsAction.js +4 -4
  230. package/esm/src/actions/liquity/LiquityCloseAction.d.ts +3 -3
  231. package/esm/src/actions/liquity/LiquityCloseAction.js +3 -3
  232. package/esm/src/actions/liquity/LiquityEthGainToTroveAction.d.ts +2 -0
  233. package/esm/src/actions/liquity/LiquityEthGainToTroveAction.js +2 -0
  234. package/esm/src/actions/liquity/LiquityOpenAction.d.ts +8 -6
  235. package/esm/src/actions/liquity/LiquityOpenAction.js +8 -6
  236. package/esm/src/actions/liquity/LiquityPaybackAction.d.ts +5 -3
  237. package/esm/src/actions/liquity/LiquityPaybackAction.js +5 -3
  238. package/esm/src/actions/liquity/LiquityRedeemAction.d.ts +9 -4
  239. package/esm/src/actions/liquity/LiquityRedeemAction.js +9 -4
  240. package/esm/src/actions/liquity/LiquitySPDepositAction.d.ts +5 -5
  241. package/esm/src/actions/liquity/LiquitySPDepositAction.js +5 -5
  242. package/esm/src/actions/liquity/LiquitySPWithdrawAction.d.ts +5 -5
  243. package/esm/src/actions/liquity/LiquitySPWithdrawAction.js +5 -5
  244. package/esm/src/actions/liquity/LiquityStakeAction.d.ts +5 -5
  245. package/esm/src/actions/liquity/LiquityStakeAction.js +5 -5
  246. package/esm/src/actions/liquity/LiquitySupplyAction.d.ts +5 -3
  247. package/esm/src/actions/liquity/LiquitySupplyAction.js +5 -3
  248. package/esm/src/actions/liquity/LiquityUnstakeAction.d.ts +5 -5
  249. package/esm/src/actions/liquity/LiquityUnstakeAction.js +5 -5
  250. package/esm/src/actions/liquity/LiquityWithdrawAction.d.ts +5 -3
  251. package/esm/src/actions/liquity/LiquityWithdrawAction.js +5 -3
  252. package/esm/src/actions/maker/MakerClaimAction.d.ts +1 -1
  253. package/esm/src/actions/maker/MakerClaimAction.js +1 -1
  254. package/esm/src/actions/maker/MakerGenerateAction.d.ts +1 -1
  255. package/esm/src/actions/maker/MakerGenerateAction.js +2 -2
  256. package/esm/src/actions/maker/MakerGiveAction.d.ts +1 -1
  257. package/esm/src/actions/maker/MakerGiveAction.js +3 -3
  258. package/esm/src/actions/maker/MakerMergeAction.d.ts +1 -1
  259. package/esm/src/actions/maker/MakerMergeAction.js +1 -1
  260. package/esm/src/actions/maker/MakerOpenVaultAction.d.ts +1 -1
  261. package/esm/src/actions/maker/MakerOpenVaultAction.js +1 -1
  262. package/esm/src/actions/maker/MakerPaybackAction.d.ts +1 -1
  263. package/esm/src/actions/maker/MakerPaybackAction.js +2 -2
  264. package/esm/src/actions/maker/MakerRatioAction.d.ts +1 -1
  265. package/esm/src/actions/maker/MakerRatioAction.js +1 -1
  266. package/esm/src/actions/maker/MakerSupplyAction.d.ts +1 -1
  267. package/esm/src/actions/maker/MakerSupplyAction.js +2 -2
  268. package/esm/src/actions/maker/MakerWithdrawAction.d.ts +1 -1
  269. package/esm/src/actions/maker/MakerWithdrawAction.js +2 -2
  270. package/esm/src/actions/mstable/MStableClaimAction.d.ts +5 -5
  271. package/esm/src/actions/mstable/MStableClaimAction.js +5 -5
  272. package/esm/src/actions/mstable/MStableDepositAction.d.ts +10 -10
  273. package/esm/src/actions/mstable/MStableDepositAction.js +10 -10
  274. package/esm/src/actions/mstable/MStableWithdrawAction.d.ts +10 -10
  275. package/esm/src/actions/mstable/MStableWithdrawAction.js +10 -10
  276. package/esm/src/actions/rari/RariDepositAction.d.ts +1 -1
  277. package/esm/src/actions/rari/RariDepositAction.js +1 -1
  278. package/esm/src/actions/rari/RariWithdrawAction.d.ts +1 -1
  279. package/esm/src/actions/rari/RariWithdrawAction.js +1 -1
  280. package/esm/src/actions/reflexer/ReflexerGenerateAction.d.ts +1 -1
  281. package/esm/src/actions/reflexer/ReflexerGenerateAction.js +2 -2
  282. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourDepositAction.d.ts +1 -1
  283. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourDepositAction.js +1 -1
  284. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourGetReservesAction.d.ts +1 -1
  285. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourGetReservesAction.js +2 -2
  286. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourWithdrawAction.d.ts +1 -1
  287. package/esm/src/actions/reflexer/ReflexerNativeUniV2SaviourWithdrawAction.js +3 -3
  288. package/esm/src/actions/reflexer/ReflexerOpenSafeAction.d.ts +1 -1
  289. package/esm/src/actions/reflexer/ReflexerOpenSafeAction.js +1 -1
  290. package/esm/src/actions/reflexer/ReflexerPaybackAction.d.ts +1 -1
  291. package/esm/src/actions/reflexer/ReflexerPaybackAction.js +2 -2
  292. package/esm/src/actions/reflexer/ReflexerSupplyAction.d.ts +1 -1
  293. package/esm/src/actions/reflexer/ReflexerSupplyAction.js +2 -2
  294. package/esm/src/actions/reflexer/ReflexerWithdrawAction.d.ts +1 -1
  295. package/esm/src/actions/reflexer/ReflexerWithdrawAction.js +2 -2
  296. package/esm/src/actions/uniswap/UniswapSupplyAction.d.ts +1 -1
  297. package/esm/src/actions/uniswap/UniswapSupplyAction.js +13 -13
  298. package/esm/src/actions/uniswap/UniswapWithdrawAction.d.ts +1 -1
  299. package/esm/src/actions/uniswap/UniswapWithdrawAction.js +11 -11
  300. package/esm/src/actions/uniswapV3/UniswapV3CollectAction.js +5 -5
  301. package/esm/src/actions/uniswapV3/UniswapV3CreatePoolAction.js +14 -14
  302. package/esm/src/actions/uniswapV3/UniswapV3MintAction.js +13 -13
  303. package/esm/src/actions/uniswapV3/UniswapV3SupplyAction.js +9 -9
  304. package/esm/src/actions/uniswapV3/UniswapV3WithdrawAction.js +10 -10
  305. package/esm/src/actions/yearn/YearnSupplyAction.d.ts +1 -1
  306. package/esm/src/actions/yearn/YearnSupplyAction.js +3 -3
  307. package/esm/src/actions/yearn/YearnWithdrawAction.d.ts +1 -1
  308. package/esm/src/actions/yearn/YearnWithdrawAction.js +3 -3
  309. package/esm/src/addresses.d.ts +3 -0
  310. package/esm/src/addresses.js +4 -1
  311. package/esm/src/config.js +3 -3
  312. package/esm/src/index.d.ts +98 -2
  313. package/esm/src/index.js +19 -6
  314. package/esm/src/triggers/AaveV3RatioTrigger.d.ts +1 -1
  315. package/esm/src/triggers/AaveV3RatioTrigger.js +3 -3
  316. package/esm/src/triggers/ChainLinkPriceTrigger.d.ts +1 -1
  317. package/esm/src/triggers/ChainLinkPriceTrigger.js +3 -3
  318. package/esm/src/triggers/CompV3RatioTrigger.d.ts +1 -1
  319. package/esm/src/triggers/CompV3RatioTrigger.js +3 -3
  320. package/esm/src/triggers/CompoundRatioTrigger.d.ts +1 -1
  321. package/esm/src/triggers/CompoundRatioTrigger.js +3 -3
  322. package/esm/src/triggers/GasPriceTrigger.d.ts +1 -1
  323. package/esm/src/triggers/GasPriceTrigger.js +3 -3
  324. package/esm/src/triggers/LiquityRatioTrigger.d.ts +1 -1
  325. package/esm/src/triggers/LiquityRatioTrigger.js +3 -3
  326. package/esm/src/triggers/MakerRatioTrigger.d.ts +1 -1
  327. package/esm/src/triggers/MakerRatioTrigger.js +3 -3
  328. package/esm/src/triggers/ReflexerRatioTrigger.d.ts +1 -1
  329. package/esm/src/triggers/ReflexerRatioTrigger.js +3 -3
  330. package/esm/src/triggers/TimestampTrigger.d.ts +1 -1
  331. package/esm/src/triggers/TimestampTrigger.js +3 -3
  332. package/esm/src/triggers/TrailingStopTrigger.d.ts +1 -1
  333. package/esm/src/triggers/TrailingStopTrigger.js +3 -3
  334. package/esm/src/triggers/UniV3CurrentTickTrigger.d.ts +1 -1
  335. package/esm/src/triggers/UniV3CurrentTickTrigger.js +3 -3
  336. package/esm/src/types.d.ts +1 -1
  337. package/esm/src/utils/curve-utils.d.ts +4 -1
  338. package/esm/src/utils/curve-utils.js +5 -4
  339. package/esm/src/utils/index.d.ts +6 -5
  340. package/esm/src/utils/index.js +6 -5
  341. package/esm/src/utils/uniswapLP.js +2 -4
  342. package/esm/src/utils/uniswapV3LP.d.ts +5 -0
  343. package/esm/src/utils/uniswapV3LP.js +23 -0
  344. package/esm/src/utils/zeroExExchange.d.ts +1 -1
  345. package/esm/src/utils/zeroExExchange.js +1 -1
  346. package/package.json +1 -1
  347. package/src/actions/flashloan/FLAction.ts +1 -1
  348. package/umd/index.js +988 -871
@@ -0,0 +1,65 @@
1
+ [
2
+ {
3
+ "constant": false,
4
+ "inputs": [
5
+ {
6
+ "name": "tokenId",
7
+ "type": "uint256"
8
+ }
9
+ ],
10
+ "name": "positions",
11
+ "outputs": [
12
+ {
13
+ "name": "nonce",
14
+ "type": "uint96"
15
+ },
16
+ {
17
+ "name": "operator",
18
+ "type": "address"
19
+ },
20
+ {
21
+ "name": "token0",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "name": "token1",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "name": "fee",
30
+ "type": "uint24"
31
+ },
32
+ {
33
+ "name": "tickLower",
34
+ "type": "int24"
35
+ },
36
+ {
37
+ "name": "tickUpper",
38
+ "type": "int24"
39
+ },
40
+ {
41
+ "name": "liquidity",
42
+ "type": "uint128"
43
+ },
44
+ {
45
+ "name": "feeGrowthInside0LastX128",
46
+ "type": "uint256"
47
+ },
48
+ {
49
+ "name": "feeGrowthInside1LastX128",
50
+ "type": "uint256"
51
+ },
52
+ {
53
+ "name": "tokensOwed0",
54
+ "type": "uint128"
55
+ },
56
+ {
57
+ "name": "tokensOwed1",
58
+ "type": "uint128"
59
+ }
60
+ ],
61
+ "payable": false,
62
+ "stateMutability": "view",
63
+ "type": "function"
64
+ }
65
+ ]
@@ -1,4 +1,4 @@
1
- import { Action } from "../../Action";
1
+ import { Action } from '../../Action';
2
2
  import { EthAddress, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveBorrowAction - Borrow tokens from Aave
@@ -1,5 +1,5 @@
1
- import { Action } from "../../Action";
2
- import { requireAddress } from "../../utils/general";
1
+ import { Action } from '../../Action';
2
+ import { requireAddress } from '../../utils/general';
3
3
  import { getAddr } from '../../addresses';
4
4
  /**
5
5
  * AaveBorrowAction - Borrow tokens from Aave
@@ -1,4 +1,4 @@
1
- import { Action } from "../../Action";
1
+ import { Action } from '../../Action';
2
2
  import { EthAddress, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveClaimStkAaveAction - Claims stkAave from incentives controller
@@ -1,5 +1,5 @@
1
- import { Action } from "../../Action";
2
- import { requireAddress } from "../../utils/general";
1
+ import { Action } from '../../Action';
2
+ import { requireAddress } from '../../utils/general';
3
3
  import { getAddr } from '../../addresses';
4
4
  /**
5
5
  * AaveClaimStkAaveAction - Claims stkAave from incentives controller
@@ -1,4 +1,4 @@
1
- import { Action } from "../../Action";
1
+ import { Action } from '../../Action';
2
2
  import { EthAddress } from '../../types';
3
3
  /**
4
4
  * AaveCollateralSwitchAction - Aave enable/disable token usage as collateral
@@ -7,9 +7,9 @@ import { EthAddress } from '../../types';
7
7
  */
8
8
  export declare class AaveCollateralSwitchAction extends Action {
9
9
  /**
10
- * @param market - Address of market
11
- * @param tokens - List of Token Addresses
12
- * @param to - Address where tokens will end up
13
- */
10
+ * @param market - Address of market
11
+ * @param tokens - List of Token Addresses
12
+ * @param useAsCollateral - Enable assets from tokens array as collateral
13
+ */
14
14
  constructor(market: EthAddress, tokens: Array<EthAddress>, useAsCollateral: Array<boolean>);
15
15
  }
@@ -1,4 +1,4 @@
1
- import { Action } from "../../Action";
1
+ import { Action } from '../../Action';
2
2
  import { getAddr } from '../../addresses';
3
3
  /**
4
4
  * AaveCollateralSwitchAction - Aave enable/disable token usage as collateral
@@ -7,10 +7,10 @@ import { getAddr } from '../../addresses';
7
7
  */
8
8
  export class AaveCollateralSwitchAction extends Action {
9
9
  /**
10
- * @param market - Address of market
11
- * @param tokens - List of Token Addresses
12
- * @param to - Address where tokens will end up
13
- */
10
+ * @param market - Address of market
11
+ * @param tokens - List of Token Addresses
12
+ * @param useAsCollateral - Enable assets from tokens array as collateral
13
+ */
14
14
  constructor(market, tokens, useAsCollateral) {
15
15
  super('AaveCollateralSwitch', getAddr('AaveCollateralSwitch'), ['address', 'address[]', 'bool[]'], [market, tokens, useAsCollateral]);
16
16
  this.mappableArgs = [];
@@ -1,4 +1,4 @@
1
- import { Action } from "../../Action";
1
+ import { Action } from '../../Action';
2
2
  import { EthAddress, uint256 } from '../../types';
3
3
  /**
4
4
  * AavePaybackAction - Payback borrowed tokens from Aave
@@ -7,9 +7,9 @@ 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 "../../Action";
10
+ import { getAssetInfoByAddress } from '@defisaver/tokens';
11
+ import { Action } from '../../Action';
11
12
  import { getAddr } from '../../addresses';
12
- import { getAssetInfoByAddress } from "@defisaver/tokens";
13
13
  /**
14
14
  * AavePaybackAction - Payback borrowed tokens from Aave
15
15
  *
@@ -1,4 +1,4 @@
1
- import { Action } from "../../Action";
1
+ import { Action } from '../../Action';
2
2
  import { EthAddress, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveSupplyAction - Supply token to an aave position
@@ -7,9 +7,9 @@ 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 "../../Action";
10
+ import { getAssetInfoByAddress } from '@defisaver/tokens';
11
+ import { Action } from '../../Action';
11
12
  import { getAddr } from '../../addresses';
12
- import { getAssetInfoByAddress } from "@defisaver/tokens";
13
13
  /**
14
14
  * AaveSupplyAction - Supply token to an aave position
15
15
  *
@@ -1,4 +1,4 @@
1
- import { Action } from "../../Action";
1
+ import { Action } from '../../Action';
2
2
  import { EthAddress, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveWithdrawAction - Withdraw token from an aave position
@@ -1,5 +1,5 @@
1
- import { Action } from "../../Action";
2
- import { requireAddress } from "../../utils/general";
1
+ import { Action } from '../../Action';
2
+ import { requireAddress } from '../../utils/general';
3
3
  import { getAddr } from '../../addresses';
4
4
  /**
5
5
  * AaveWithdrawAction - Withdraw token from an aave position
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { EthAddress, uint8, uint16, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveV3ATokenPaybackAction - Repay Aave V3 debt using aTokens
@@ -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 { ActionWithL2 } from "../../ActionWithL2";
11
- import { getAssetInfoByAddress } from "@defisaver/tokens";
10
+ import { getAssetInfoByAddress } from '@defisaver/tokens';
11
+ import { ActionWithL2 } from '../../ActionWithL2';
12
12
  import { getAddr } from '../../addresses';
13
13
  /**
14
14
  * AaveV3ATokenPaybackAction - Repay Aave V3 debt using aTokens
@@ -44,7 +44,7 @@ export class AaveV3ATokenPaybackAction extends ActionWithL2 {
44
44
  }
45
45
  encodeInputs() {
46
46
  // executeActionDirectL2
47
- let encodedInput = "0x2895f3aa";
47
+ let encodedInput = '0x2895f3aa';
48
48
  // amount
49
49
  encodedInput = encodedInput.concat(this.numberToBytes32(this.args[0]));
50
50
  // from
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { EthAddress, uint8, uint16, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveV3BorrowAction - Borrow a token from AaveV3
@@ -7,15 +7,15 @@ import { EthAddress, uint8, uint16, uint256 } from '../../types';
7
7
  */
8
8
  export declare class AaveV3BorrowAction extends ActionWithL2 {
9
9
  /**
10
- * @param useDefaultMarket If this is true it defaults to the hardcoded market in contract
11
- * @param market Address provider for specific market
12
- * @param amount Amount of tokens to be borrowed
13
- * @param to The address we are sending the borrowed tokens to
14
- * @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
15
- * @param assetId The id of the token to be borrowed
16
- * @param useOnBehalf use on behalf or default to proxy
17
- * @param onBehalf On whose behalf we borrow the tokens, defaults to proxy
18
- */
10
+ * @param useDefaultMarket If this is true it defaults to the hardcoded market in contract
11
+ * @param market Address provider for specific market
12
+ * @param amount Amount of tokens to be borrowed
13
+ * @param to The address we are sending the borrowed tokens to
14
+ * @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
15
+ * @param assetId The id of the token to be borrowed
16
+ * @param useOnBehalf use on behalf or default to proxy
17
+ * @param onBehalf On whose behalf we borrow the tokens, defaults to proxy
18
+ */
19
19
  constructor(useDefaultMarket: boolean, market: EthAddress, amount: uint256, to: EthAddress, rateMode: uint8, assetId: uint16, useOnBehalf: boolean, onBehalf?: EthAddress);
20
20
  encodeInputs(): string;
21
21
  }
@@ -1,6 +1,6 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { getAddr } from '../../addresses';
3
- import { requireAddress } from "../../utils/general";
3
+ import { requireAddress } from '../../utils/general';
4
4
  /**
5
5
  * AaveV3BorrowAction - Borrow a token from AaveV3
6
6
  *
@@ -8,15 +8,15 @@ import { requireAddress } from "../../utils/general";
8
8
  */
9
9
  export class AaveV3BorrowAction extends ActionWithL2 {
10
10
  /**
11
- * @param useDefaultMarket If this is true it defaults to the hardcoded market in contract
12
- * @param market Address provider for specific market
13
- * @param amount Amount of tokens to be borrowed
14
- * @param to The address we are sending the borrowed tokens to
15
- * @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
16
- * @param assetId The id of the token to be borrowed
17
- * @param useOnBehalf use on behalf or default to proxy
18
- * @param onBehalf On whose behalf we borrow the tokens, defaults to proxy
19
- */
11
+ * @param useDefaultMarket If this is true it defaults to the hardcoded market in contract
12
+ * @param market Address provider for specific market
13
+ * @param amount Amount of tokens to be borrowed
14
+ * @param to The address we are sending the borrowed tokens to
15
+ * @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
16
+ * @param assetId The id of the token to be borrowed
17
+ * @param useOnBehalf use on behalf or default to proxy
18
+ * @param onBehalf On whose behalf we borrow the tokens, defaults to proxy
19
+ */
20
20
  constructor(useDefaultMarket, market, amount, to, rateMode, assetId, useOnBehalf, onBehalf = getAddr('Empty')) {
21
21
  requireAddress(to);
22
22
  super('AaveV3Borrow', getAddr('AaveV3Borrow'), ['uint256', 'address', 'uint8', 'uint16', 'bool', 'bool', 'address', 'address'], [amount, to, rateMode, assetId, useDefaultMarket, useOnBehalf, market, onBehalf]);
@@ -33,7 +33,7 @@ export class AaveV3BorrowAction extends ActionWithL2 {
33
33
  }
34
34
  encodeInputs() {
35
35
  // executeActionDirectL2
36
- let encodedInput = "0x2895f3aa";
36
+ let encodedInput = '0x2895f3aa';
37
37
  // amount
38
38
  encodedInput = encodedInput.concat(this.numberToBytes32(this.args[0]));
39
39
  // to
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { EthAddress, uint8, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveV3ClaimRewardsAction
@@ -1,6 +1,6 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { getAddr } from '../../addresses';
3
- import { requireAddress } from "../../utils/general";
3
+ import { requireAddress } from '../../utils/general';
4
4
  /**
5
5
  * AaveV3ClaimRewardsAction
6
6
  *
@@ -20,7 +20,7 @@ export class AaveV3ClaimRewardsAction extends ActionWithL2 {
20
20
  }
21
21
  encodeInputs() {
22
22
  // executeActionDirectL2
23
- let encodedInput = "0x2895f3aa";
23
+ let encodedInput = '0x2895f3aa';
24
24
  // assetsLength
25
25
  encodedInput = encodedInput.concat(this.numberToBytes1(this.args[0]));
26
26
  // amount
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { EthAddress, uint8, uint16 } from '../../types';
3
3
  /**
4
4
  * AaveV3CollateralSwitchAction - Aave enable/disable token usage as collateral for AaveV3 position
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { getAddr } from '../../addresses';
3
3
  /**
4
4
  * AaveV3CollateralSwitchAction - Aave enable/disable token usage as collateral for AaveV3 position
@@ -18,7 +18,7 @@ export class AaveV3CollateralSwitchAction extends ActionWithL2 {
18
18
  }
19
19
  encodeInputs() {
20
20
  // executeActionDirectL2
21
- let encodedInput = "0x2895f3aa";
21
+ let encodedInput = '0x2895f3aa';
22
22
  // arrayLength
23
23
  encodedInput = encodedInput.concat(this.numberToBytes1(this.args[0]));
24
24
  // useDefaultMarket
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { EthAddress, uint8, uint16, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveV3PaybackAction - Payback debt on Aave using underlying token
@@ -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 { getAssetInfoByAddress } from "@defisaver/tokens";
11
- import { ActionWithL2 } from "../../ActionWithL2";
10
+ import { getAssetInfoByAddress } from '@defisaver/tokens';
11
+ import { ActionWithL2 } from '../../ActionWithL2';
12
12
  import { getAddr } from '../../addresses';
13
13
  /**
14
14
  * AaveV3PaybackAction - Payback debt on Aave using underlying token
@@ -51,7 +51,7 @@ export class AaveV3PaybackAction extends ActionWithL2 {
51
51
  }
52
52
  encodeInputs() {
53
53
  // executeActionDirectL2
54
- let encodedInput = "0x2895f3aa";
54
+ let encodedInput = '0x2895f3aa';
55
55
  // amount
56
56
  encodedInput = encodedInput.concat(this.numberToBytes32(this.args[0]));
57
57
  // from
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { EthAddress, uint8 } from '../../types';
3
3
  /**
4
4
  * AaveV3SetEModeAction - Set EMode for the proxy AaveV3 position
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { getAddr } from '../../addresses';
3
3
  /**
4
4
  * AaveV3SetEModeAction - Set EMode for the proxy AaveV3 position
@@ -19,7 +19,7 @@ export class AaveV3SetEModeAction extends ActionWithL2 {
19
19
  }
20
20
  encodeInputs() {
21
21
  // executeActionDirectL2
22
- let encodedInput = "0x2895f3aa";
22
+ let encodedInput = '0x2895f3aa';
23
23
  // categoryId
24
24
  encodedInput = encodedInput.concat(this.numberToBytes1(this.args[0]));
25
25
  // useOnDefaultMarket
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { EthAddress, uint16, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveV3SupplyAction - Supply token to an aave position on Aave V3
@@ -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 { getAssetInfoByAddress } from "@defisaver/tokens";
11
- import { ActionWithL2 } from "../../ActionWithL2";
10
+ import { getAssetInfoByAddress } from '@defisaver/tokens';
11
+ import { ActionWithL2 } from '../../ActionWithL2';
12
12
  import { getAddr } from '../../addresses';
13
13
  /**
14
14
  * AaveV3SupplyAction - Supply token to an aave position on Aave V3
@@ -51,7 +51,7 @@ export class AaveV3SupplyAction extends ActionWithL2 {
51
51
  }
52
52
  encodeInputs() {
53
53
  // executeActionDirectL2
54
- let encodedInput = "0x2895f3aa";
54
+ let encodedInput = '0x2895f3aa';
55
55
  // amount
56
56
  encodedInput = encodedInput.concat(this.numberToBytes32(this.args[0]));
57
57
  // from
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { EthAddress, uint16, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveV3SwapBorrowRateModeAction - Swaps proxy positions borrow rate mode between stable and variable.
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { getAddr } from '../../addresses';
3
3
  /**
4
4
  * AaveV3SwapBorrowRateModeAction - Swaps proxy positions borrow rate mode between stable and variable.
@@ -22,7 +22,7 @@ export class AaveV3SwapBorrowRateModeAction extends ActionWithL2 {
22
22
  }
23
23
  encodeInputs() {
24
24
  // executeActionDirectL2
25
- let encodedInput = "0x2895f3aa";
25
+ let encodedInput = '0x2895f3aa';
26
26
  // rateMode
27
27
  encodedInput = encodedInput.concat(this.numberToBytes32(this.args[0]));
28
28
  // assetId
@@ -1,4 +1,4 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { EthAddress, uint16, uint256 } from '../../types';
3
3
  /**
4
4
  * AaveV3WithdrawAction - Withdraw a previously supplied token from a position in AaveV3
@@ -7,11 +7,11 @@ import { EthAddress, uint16, uint256 } from '../../types';
7
7
  */
8
8
  export declare class AaveV3WithdrawAction extends ActionWithL2 {
9
9
  /**
10
- * @param assetId The id of the token to be deposited
11
10
  * @param useDefaultMarket If this is true it defaults to the hardcoded market in contract
11
+ * @param market Address provider for specific market
12
12
  * @param amount Amount of tokens to be withdrawn -> send type(uint).max for whole amount
13
13
  * @param to Where the withdrawn tokens will be sent
14
- * @param market Address provider for specific market
14
+ * @param assetId The id of the token to be deposited
15
15
  */
16
16
  constructor(useDefaultMarket: boolean, market: EthAddress, amount: uint256, to: EthAddress, assetId: uint16);
17
17
  encodeInputs(): string;
@@ -1,6 +1,6 @@
1
- import { ActionWithL2 } from "../../ActionWithL2";
1
+ import { ActionWithL2 } from '../../ActionWithL2';
2
2
  import { getAddr } from '../../addresses';
3
- import { requireAddress } from "../../utils/general";
3
+ import { requireAddress } from '../../utils/general';
4
4
  /**
5
5
  * AaveV3WithdrawAction - Withdraw a previously supplied token from a position in AaveV3
6
6
  *
@@ -8,11 +8,11 @@ import { requireAddress } from "../../utils/general";
8
8
  */
9
9
  export class AaveV3WithdrawAction extends ActionWithL2 {
10
10
  /**
11
- * @param assetId The id of the token to be deposited
12
11
  * @param useDefaultMarket If this is true it defaults to the hardcoded market in contract
12
+ * @param market Address provider for specific market
13
13
  * @param amount Amount of tokens to be withdrawn -> send type(uint).max for whole amount
14
14
  * @param to Where the withdrawn tokens will be sent
15
- * @param market Address provider for specific market
15
+ * @param assetId The id of the token to be deposited
16
16
  */
17
17
  constructor(useDefaultMarket, market, amount, to, assetId) {
18
18
  requireAddress(to);
@@ -27,7 +27,7 @@ export class AaveV3WithdrawAction extends ActionWithL2 {
27
27
  }
28
28
  encodeInputs() {
29
29
  // executeActionDirectL2
30
- let encodedInput = "0x2895f3aa";
30
+ let encodedInput = '0x2895f3aa';
31
31
  // assetId
32
32
  encodedInput = encodedInput.concat(this.numberToBytes2(this.args[0]));
33
33
  // useOnDefaultMarket
@@ -1,4 +1,4 @@
1
- import { Action } from "../../Action";
1
+ import { Action } from '../../Action';
2
2
  import { EthAddress, uint256, bytes32 } from '../../types';
3
3
  /**
4
4
  * BalancerV2ClaimAction - Claim BAL governance tokens
@@ -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 { Action } from "../../Action";
11
- import { requireAddress } from "../../utils/general";
10
+ import { Action } from '../../Action';
11
+ import { requireAddress } from '../../utils/general';
12
12
  import { getAddr } from '../../addresses';
13
13
  /**
14
14
  * BalancerV2ClaimAction - Claim BAL governance tokens
@@ -25,11 +25,11 @@ export class BalancerV2ClaimAction extends Action {
25
25
  constructor(liquidityProvider, to, weeks, balances, merkleProofs) {
26
26
  requireAddress(to);
27
27
  super('BalancerV2Claim', getAddr('BalancerV2Claim'), [
28
- "address",
29
- "address",
30
- "uint256[]",
31
- "uint256[]",
32
- "bytes32[][]",
28
+ 'address',
29
+ 'address',
30
+ 'uint256[]',
31
+ 'uint256[]',
32
+ 'bytes32[][]',
33
33
  ], [liquidityProvider, to, weeks, balances, merkleProofs]);
34
34
  this.mappableArgs = [
35
35
  this.args[0],
@@ -1,4 +1,4 @@
1
- import { Action } from "../../Action";
1
+ import { Action } from '../../Action';
2
2
  import { EthAddress, uint256, bytes32, bytes } from '../../types';
3
3
  /**
4
4
  * BalancerV2SupplyAction - Supply tokens to Balancer pool
@@ -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 { Action } from "../../Action";
11
- import { requireAddress } from "../../utils/general";
10
+ import { Action } from '../../Action';
11
+ import { requireAddress } from '../../utils/general';
12
12
  import { getAddr } from '../../addresses';
13
13
  /**
14
14
  * BalancerV2SupplyAction - Supply tokens to Balancer pool
@@ -26,12 +26,12 @@ export class BalancerV2SupplyAction extends Action {
26
26
  constructor(poolId, from, to, tokens, maxAmountsIn, userData) {
27
27
  requireAddress(to);
28
28
  super('BalancerV2Supply', getAddr('BalancerV2Supply'), [
29
- "bytes32",
30
- "address",
31
- "address",
32
- "address[]",
33
- "uint256[]",
34
- "bytes",
29
+ 'bytes32',
30
+ 'address',
31
+ 'address',
32
+ 'address[]',
33
+ 'uint256[]',
34
+ 'bytes',
35
35
  ], [poolId, from, to, tokens, maxAmountsIn, userData]);
36
36
  this.mappableArgs = [
37
37
  this.args[1],
@@ -1,4 +1,4 @@
1
- import { Action } from "../../Action";
1
+ import { Action } from '../../Action';
2
2
  import { EthAddress, uint256, bytes32, bytes } from '../../types';
3
3
  /**
4
4
  * BalancerV2WithdrawAction - Withdraw tokens from Balancer pool
@@ -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 { Action } from "../../Action";
11
- import { requireAddress } from "../../utils/general";
10
+ import { Action } from '../../Action';
11
+ import { requireAddress } from '../../utils/general';
12
12
  import { getAddr } from '../../addresses';
13
13
  /**
14
14
  * BalancerV2WithdrawAction - Withdraw tokens from Balancer pool
@@ -27,13 +27,13 @@ export class BalancerV2WithdrawAction extends Action {
27
27
  constructor(poolId, from, to, lpTokenAmount, tokens, minAmountsOut, userData) {
28
28
  requireAddress(to);
29
29
  super('BalancerV2Withdraw', getAddr('BalancerV2Withdraw'), [
30
- "bytes32",
31
- "address",
32
- "address",
33
- "uint256",
34
- "address[]",
35
- "uint256[]",
36
- "bytes",
30
+ 'bytes32',
31
+ 'address',
32
+ 'address',
33
+ 'uint256',
34
+ 'address[]',
35
+ 'uint256[]',
36
+ 'bytes',
37
37
  ], [poolId, from, to, lpTokenAmount, tokens, minAmountsOut, userData]);
38
38
  this.from = from;
39
39
  this.mappableArgs = [
@@ -1,3 +1,3 @@
1
- export * from "./BalancerV2SupplyAction";
2
- export * from "./BalancerV2WithdrawAction";
3
- export * from "./BalancerV2ClaimAction";
1
+ export * from './BalancerV2SupplyAction';
2
+ export * from './BalancerV2WithdrawAction';
3
+ export * from './BalancerV2ClaimAction';