@morpho-org/morpho-sdk 6.0.0-next.1 → 6.0.0-next.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 (305) hide show
  1. package/MIGRATION-v5-to-v6.md +199 -34
  2. package/README.md +23 -15
  3. package/lib/cjs/abis.d.ts +3 -2829
  4. package/lib/cjs/abis.js +1 -1938
  5. package/lib/cjs/actions/blue/borrow.d.ts +3 -2
  6. package/lib/cjs/actions/blue/borrow.js +3 -2
  7. package/lib/cjs/actions/blue/common.js +6 -35
  8. package/lib/cjs/actions/blue/refinance.d.ts +2 -2
  9. package/lib/cjs/actions/blue/refinance.js +2 -2
  10. package/lib/cjs/actions/blue/repay.d.ts +1 -1
  11. package/lib/cjs/actions/blue/repay.js +1 -1
  12. package/lib/cjs/actions/blue/repayWithdrawCollateral.d.ts +2 -2
  13. package/lib/cjs/actions/blue/repayWithdrawCollateral.js +2 -2
  14. package/lib/cjs/actions/blue/supply.d.ts +2 -2
  15. package/lib/cjs/actions/blue/supply.js +4 -9
  16. package/lib/cjs/actions/blue/supplyCollateral.d.ts +2 -2
  17. package/lib/cjs/actions/blue/supplyCollateral.js +2 -2
  18. package/lib/cjs/actions/blue/supplyCollateralBorrow.d.ts +3 -2
  19. package/lib/cjs/actions/blue/supplyCollateralBorrow.js +3 -2
  20. package/lib/cjs/actions/blue/withdraw.d.ts +3 -3
  21. package/lib/cjs/actions/blue/withdraw.js +3 -3
  22. package/lib/cjs/actions/blue/withdrawCollateral.d.ts +2 -2
  23. package/lib/cjs/actions/blue/withdrawCollateral.js +2 -2
  24. package/lib/cjs/actions/bundles/common.d.ts +38 -4
  25. package/lib/cjs/actions/bundles/common.js +91 -35
  26. package/lib/cjs/actions/index.d.ts +0 -1
  27. package/lib/cjs/actions/index.js +0 -1
  28. package/lib/cjs/actions/requirements/blue/getBlueAuthorizationRequirement.d.ts +9 -8
  29. package/lib/cjs/actions/requirements/blue/getBlueAuthorizationRequirement.js +17 -26
  30. package/lib/cjs/actions/requirements/blue/index.d.ts +0 -1
  31. package/lib/cjs/actions/requirements/blue/index.js +0 -1
  32. package/lib/cjs/actions/requirements/encode/encodeBlueSignatureAuthorization.d.ts +20 -14
  33. package/lib/cjs/actions/requirements/encode/encodeBlueSignatureAuthorization.js +24 -25
  34. package/lib/cjs/actions/requirements/encode/encodeErc20Approval.d.ts +4 -4
  35. package/lib/cjs/actions/requirements/encode/encodeErc20Approval.js +4 -5
  36. package/lib/cjs/actions/requirements/encode/encodeErc20Permit.d.ts +21 -12
  37. package/lib/cjs/actions/requirements/encode/encodeErc20Permit.js +39 -38
  38. package/lib/cjs/actions/requirements/encode/encodeErc20Permit2SignatureTransfer.d.ts +4 -2
  39. package/lib/cjs/actions/requirements/encode/encodeErc20Permit2SignatureTransfer.js +14 -9
  40. package/lib/cjs/actions/requirements/encode/encodeVaultSharesPermit.d.ts +9 -6
  41. package/lib/cjs/actions/requirements/encode/encodeVaultSharesPermit.js +22 -17
  42. package/lib/cjs/actions/requirements/encode/index.d.ts +0 -1
  43. package/lib/cjs/actions/requirements/encode/index.js +0 -1
  44. package/lib/cjs/actions/requirements/getRequirementsApproval.d.ts +5 -6
  45. package/lib/cjs/actions/requirements/getRequirementsApproval.js +5 -6
  46. package/lib/cjs/actions/requirements/index.d.ts +0 -1
  47. package/lib/cjs/actions/requirements/index.js +0 -1
  48. package/lib/cjs/actions/vaultV1/deposit.d.ts +1 -2
  49. package/lib/cjs/actions/vaultV1/deposit.js +1 -2
  50. package/lib/cjs/actions/vaultV1/inKindRedeem.d.ts +6 -4
  51. package/lib/cjs/actions/vaultV1/inKindRedeem.js +12 -8
  52. package/lib/cjs/actions/vaultV2/deposit.d.ts +1 -2
  53. package/lib/cjs/actions/vaultV2/deposit.js +1 -2
  54. package/lib/cjs/actions/vaultV2/forceWithdraw.d.ts +58 -39
  55. package/lib/cjs/actions/vaultV2/forceWithdraw.js +87 -60
  56. package/lib/cjs/actions/vaultV2/inKindRedeem.d.ts +6 -4
  57. package/lib/cjs/actions/vaultV2/inKindRedeem.js +12 -8
  58. package/lib/cjs/augment.d.ts +0 -1
  59. package/lib/cjs/augment.js +0 -1
  60. package/lib/cjs/blue/abis.d.ts +1 -1
  61. package/lib/cjs/blue/abis.js +1 -5
  62. package/lib/cjs/blue/entities.d.ts +2 -2
  63. package/lib/cjs/blue/entities.js +1 -2
  64. package/lib/cjs/blue/errors.d.ts +1 -1
  65. package/lib/cjs/blue/errors.js +2 -1
  66. package/lib/cjs/blue/fetch.d.ts +1 -1
  67. package/lib/cjs/blue/fetch.js +1 -2
  68. package/lib/cjs/blue/types.d.ts +2 -4
  69. package/lib/cjs/blue/utils.d.ts +1 -3
  70. package/lib/cjs/blue/utils.js +1 -3
  71. package/lib/cjs/client/morphoViemExtension.d.ts +1 -1
  72. package/lib/cjs/client/morphoViemExtension.js +1 -1
  73. package/lib/cjs/constants.d.ts +3 -37
  74. package/lib/cjs/constants.js +1 -39
  75. package/lib/cjs/entities/blue/blue.d.ts +38 -264
  76. package/lib/cjs/entities/blue/blue.js +2 -203
  77. package/lib/cjs/entities/index.d.ts +3 -60
  78. package/lib/cjs/entities/index.js +1 -20
  79. package/lib/cjs/entities/midnight/midnight.js +20 -24
  80. package/lib/cjs/entities/requirements/getBundlesTokenRequirements.d.ts +7 -6
  81. package/lib/cjs/entities/requirements/getBundlesTokenRequirements.js +19 -14
  82. package/lib/cjs/{actions/requirements/blue → entities/requirements}/getUnusedPermit2Nonce.js +3 -3
  83. package/lib/cjs/entities/requirements/index.d.ts +1 -0
  84. package/lib/cjs/entities/requirements/index.js +1 -0
  85. package/lib/cjs/entities/vaultV1/vaultV1.d.ts +18 -6
  86. package/lib/cjs/entities/vaultV1/vaultV1.js +25 -8
  87. package/lib/cjs/entities/vaultV2/vaultV2.d.ts +154 -35
  88. package/lib/cjs/entities/vaultV2/vaultV2.js +249 -23
  89. package/lib/cjs/entities/vaultV2BlueReallocationData.d.ts +8 -1
  90. package/lib/cjs/entities/vaultV2BlueReallocationData.js +50 -34
  91. package/lib/cjs/errors.d.ts +2 -46
  92. package/lib/cjs/errors.js +2 -46
  93. package/lib/cjs/fetch.d.ts +1 -15
  94. package/lib/cjs/fetch.js +1 -16
  95. package/lib/cjs/helpers/constant.d.ts +0 -2
  96. package/lib/cjs/helpers/constant.js +0 -2
  97. package/lib/cjs/helpers/index.d.ts +4 -3
  98. package/lib/cjs/helpers/index.js +10 -9
  99. package/lib/cjs/helpers/metadata.d.ts +3 -5
  100. package/lib/cjs/helpers/metadata.js +4 -6
  101. package/lib/cjs/helpers/previewVaultV2ForceWithdraw.d.ts +107 -0
  102. package/lib/cjs/helpers/previewVaultV2ForceWithdraw.js +164 -0
  103. package/lib/cjs/helpers/previewVaultV2InKindRedeem.d.ts +1 -0
  104. package/lib/cjs/helpers/previewVaultV2InKindRedeem.js +2 -0
  105. package/lib/cjs/helpers/slippage.d.ts +34 -90
  106. package/lib/cjs/helpers/slippage.js +52 -137
  107. package/lib/cjs/helpers/utilization.d.ts +12 -10
  108. package/lib/cjs/helpers/utilization.js +27 -12
  109. package/lib/cjs/helpers/validate.d.ts +66 -32
  110. package/lib/cjs/helpers/validate.js +84 -57
  111. package/lib/cjs/helpers/validateRequirementSpender.d.ts +1 -1
  112. package/lib/cjs/helpers/validateRequirementSpender.js +1 -3
  113. package/lib/cjs/helpers/vaultV2ForceWithdrawPlan.d.ts +274 -0
  114. package/lib/cjs/helpers/vaultV2ForceWithdrawPlan.js +369 -0
  115. package/lib/cjs/types/action.d.ts +102 -68
  116. package/lib/cjs/types/action.js +11 -4
  117. package/lib/cjs/types/error.d.ts +332 -385
  118. package/lib/cjs/types/error.js +369 -412
  119. package/lib/cjs/types/sharedLiquidity.d.ts +1 -117
  120. package/lib/cjs/types.d.ts +2 -18
  121. package/lib/cjs/utils.d.ts +8 -35
  122. package/lib/cjs/utils.js +11 -36
  123. package/lib/esm/abis.d.ts +3 -2829
  124. package/lib/esm/abis.js +3 -1935
  125. package/lib/esm/actions/blue/borrow.d.ts +3 -2
  126. package/lib/esm/actions/blue/borrow.js +3 -2
  127. package/lib/esm/actions/blue/common.js +8 -37
  128. package/lib/esm/actions/blue/refinance.d.ts +2 -2
  129. package/lib/esm/actions/blue/refinance.js +2 -2
  130. package/lib/esm/actions/blue/repay.d.ts +1 -1
  131. package/lib/esm/actions/blue/repay.js +1 -1
  132. package/lib/esm/actions/blue/repayWithdrawCollateral.d.ts +2 -2
  133. package/lib/esm/actions/blue/repayWithdrawCollateral.js +2 -2
  134. package/lib/esm/actions/blue/supply.d.ts +2 -2
  135. package/lib/esm/actions/blue/supply.js +6 -11
  136. package/lib/esm/actions/blue/supplyCollateral.d.ts +2 -2
  137. package/lib/esm/actions/blue/supplyCollateral.js +2 -2
  138. package/lib/esm/actions/blue/supplyCollateralBorrow.d.ts +3 -2
  139. package/lib/esm/actions/blue/supplyCollateralBorrow.js +3 -2
  140. package/lib/esm/actions/blue/withdraw.d.ts +3 -3
  141. package/lib/esm/actions/blue/withdraw.js +3 -3
  142. package/lib/esm/actions/blue/withdrawCollateral.d.ts +2 -2
  143. package/lib/esm/actions/blue/withdrawCollateral.js +2 -2
  144. package/lib/esm/actions/bundles/common.d.ts +38 -4
  145. package/lib/esm/actions/bundles/common.js +91 -36
  146. package/lib/esm/actions/index.d.ts +0 -1
  147. package/lib/esm/actions/index.js +0 -1
  148. package/lib/esm/actions/requirements/blue/getBlueAuthorizationRequirement.d.ts +9 -8
  149. package/lib/esm/actions/requirements/blue/getBlueAuthorizationRequirement.js +20 -29
  150. package/lib/esm/actions/requirements/blue/index.d.ts +0 -1
  151. package/lib/esm/actions/requirements/blue/index.js +0 -1
  152. package/lib/esm/actions/requirements/encode/encodeBlueSignatureAuthorization.d.ts +20 -14
  153. package/lib/esm/actions/requirements/encode/encodeBlueSignatureAuthorization.js +25 -26
  154. package/lib/esm/actions/requirements/encode/encodeErc20Approval.d.ts +4 -4
  155. package/lib/esm/actions/requirements/encode/encodeErc20Approval.js +4 -5
  156. package/lib/esm/actions/requirements/encode/encodeErc20Permit.d.ts +21 -12
  157. package/lib/esm/actions/requirements/encode/encodeErc20Permit.js +40 -39
  158. package/lib/esm/actions/requirements/encode/encodeErc20Permit2SignatureTransfer.d.ts +4 -2
  159. package/lib/esm/actions/requirements/encode/encodeErc20Permit2SignatureTransfer.js +14 -9
  160. package/lib/esm/actions/requirements/encode/encodeVaultSharesPermit.d.ts +9 -6
  161. package/lib/esm/actions/requirements/encode/encodeVaultSharesPermit.js +22 -17
  162. package/lib/esm/actions/requirements/encode/index.d.ts +0 -1
  163. package/lib/esm/actions/requirements/encode/index.js +0 -1
  164. package/lib/esm/actions/requirements/getRequirementsApproval.d.ts +5 -6
  165. package/lib/esm/actions/requirements/getRequirementsApproval.js +5 -6
  166. package/lib/esm/actions/requirements/index.d.ts +0 -1
  167. package/lib/esm/actions/requirements/index.js +0 -1
  168. package/lib/esm/actions/vaultV1/deposit.d.ts +1 -2
  169. package/lib/esm/actions/vaultV1/deposit.js +1 -2
  170. package/lib/esm/actions/vaultV1/inKindRedeem.d.ts +6 -4
  171. package/lib/esm/actions/vaultV1/inKindRedeem.js +12 -8
  172. package/lib/esm/actions/vaultV2/deposit.d.ts +1 -2
  173. package/lib/esm/actions/vaultV2/deposit.js +1 -2
  174. package/lib/esm/actions/vaultV2/forceWithdraw.d.ts +58 -39
  175. package/lib/esm/actions/vaultV2/forceWithdraw.js +89 -62
  176. package/lib/esm/actions/vaultV2/inKindRedeem.d.ts +6 -4
  177. package/lib/esm/actions/vaultV2/inKindRedeem.js +12 -8
  178. package/lib/esm/augment.d.ts +0 -1
  179. package/lib/esm/augment.js +0 -1
  180. package/lib/esm/blue/abis.d.ts +1 -1
  181. package/lib/esm/blue/abis.js +1 -1
  182. package/lib/esm/blue/entities.d.ts +2 -2
  183. package/lib/esm/blue/entities.js +1 -1
  184. package/lib/esm/blue/errors.d.ts +1 -1
  185. package/lib/esm/blue/errors.js +1 -1
  186. package/lib/esm/blue/fetch.d.ts +1 -1
  187. package/lib/esm/blue/fetch.js +1 -1
  188. package/lib/esm/blue/types.d.ts +2 -4
  189. package/lib/esm/blue/utils.d.ts +1 -3
  190. package/lib/esm/blue/utils.js +1 -3
  191. package/lib/esm/client/morphoViemExtension.d.ts +1 -1
  192. package/lib/esm/client/morphoViemExtension.js +1 -1
  193. package/lib/esm/constants.d.ts +3 -37
  194. package/lib/esm/constants.js +3 -37
  195. package/lib/esm/entities/blue/blue.d.ts +38 -264
  196. package/lib/esm/entities/blue/blue.js +5 -206
  197. package/lib/esm/entities/index.d.ts +3 -60
  198. package/lib/esm/entities/index.js +1 -16
  199. package/lib/esm/entities/midnight/midnight.js +20 -24
  200. package/lib/esm/entities/requirements/getBundlesTokenRequirements.d.ts +7 -6
  201. package/lib/esm/entities/requirements/getBundlesTokenRequirements.js +20 -15
  202. package/lib/esm/{actions/requirements/blue → entities/requirements}/getUnusedPermit2Nonce.js +3 -3
  203. package/lib/esm/entities/requirements/index.d.ts +1 -0
  204. package/lib/esm/entities/requirements/index.js +1 -0
  205. package/lib/esm/entities/vaultV1/vaultV1.d.ts +18 -6
  206. package/lib/esm/entities/vaultV1/vaultV1.js +29 -12
  207. package/lib/esm/entities/vaultV2/vaultV2.d.ts +154 -35
  208. package/lib/esm/entities/vaultV2/vaultV2.js +256 -30
  209. package/lib/esm/entities/vaultV2BlueReallocationData.d.ts +8 -1
  210. package/lib/esm/entities/vaultV2BlueReallocationData.js +48 -32
  211. package/lib/esm/errors.d.ts +2 -46
  212. package/lib/esm/errors.js +2 -46
  213. package/lib/esm/fetch.d.ts +1 -15
  214. package/lib/esm/fetch.js +1 -15
  215. package/lib/esm/helpers/constant.d.ts +0 -2
  216. package/lib/esm/helpers/constant.js +0 -2
  217. package/lib/esm/helpers/index.d.ts +4 -3
  218. package/lib/esm/helpers/index.js +4 -3
  219. package/lib/esm/helpers/metadata.d.ts +3 -5
  220. package/lib/esm/helpers/metadata.js +4 -6
  221. package/lib/esm/helpers/previewVaultV2ForceWithdraw.d.ts +107 -0
  222. package/lib/esm/helpers/previewVaultV2ForceWithdraw.js +161 -0
  223. package/lib/esm/helpers/previewVaultV2InKindRedeem.d.ts +1 -0
  224. package/lib/esm/helpers/previewVaultV2InKindRedeem.js +2 -0
  225. package/lib/esm/helpers/slippage.d.ts +34 -90
  226. package/lib/esm/helpers/slippage.js +52 -134
  227. package/lib/esm/helpers/utilization.d.ts +12 -10
  228. package/lib/esm/helpers/utilization.js +26 -11
  229. package/lib/esm/helpers/validate.d.ts +66 -32
  230. package/lib/esm/helpers/validate.js +83 -57
  231. package/lib/esm/helpers/validateRequirementSpender.d.ts +1 -1
  232. package/lib/esm/helpers/validateRequirementSpender.js +1 -3
  233. package/lib/esm/helpers/vaultV2ForceWithdrawPlan.d.ts +274 -0
  234. package/lib/esm/helpers/vaultV2ForceWithdrawPlan.js +362 -0
  235. package/lib/esm/types/action.d.ts +102 -68
  236. package/lib/esm/types/action.js +12 -5
  237. package/lib/esm/types/error.d.ts +332 -385
  238. package/lib/esm/types/error.js +355 -392
  239. package/lib/esm/types/sharedLiquidity.d.ts +1 -117
  240. package/lib/esm/types.d.ts +2 -18
  241. package/lib/esm/utils.d.ts +8 -35
  242. package/lib/esm/utils.js +7 -34
  243. package/package.json +7 -15
  244. package/lib/cjs/actions/requirements/encode/encodeErc20Permit2Approve.d.ts +0 -42
  245. package/lib/cjs/actions/requirements/encode/encodeErc20Permit2Approve.js +0 -83
  246. package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirements.d.ts +0 -88
  247. package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirements.js +0 -151
  248. package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit.d.ts +0 -37
  249. package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit.js +0 -50
  250. package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.d.ts +0 -57
  251. package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.js +0 -74
  252. package/lib/cjs/actions/requirements/generalAdapter/index.d.ts +0 -3
  253. package/lib/cjs/actions/requirements/generalAdapter/index.js +0 -19
  254. package/lib/cjs/actions/signatures/getBlueAuthorizationAction.d.ts +0 -29
  255. package/lib/cjs/actions/signatures/getBlueAuthorizationAction.js +0 -48
  256. package/lib/cjs/actions/signatures/getTokenRequirementActions.d.ts +0 -58
  257. package/lib/cjs/actions/signatures/getTokenRequirementActions.js +0 -119
  258. package/lib/cjs/actions/signatures/getVaultExitBundlesV1PermitStruct.d.ts +0 -44
  259. package/lib/cjs/actions/signatures/getVaultExitBundlesV1PermitStruct.js +0 -43
  260. package/lib/cjs/actions/signatures/index.d.ts +0 -3
  261. package/lib/cjs/actions/signatures/index.js +0 -19
  262. package/lib/cjs/augment/VaultMarketPublicAllocatorConfig.d.ts +0 -8
  263. package/lib/cjs/augment/VaultMarketPublicAllocatorConfig.js +0 -8
  264. package/lib/cjs/bundler/actions.d.ts +0 -797
  265. package/lib/cjs/bundler/actions.js +0 -1371
  266. package/lib/cjs/bundler/index.d.ts +0 -2
  267. package/lib/cjs/bundler/index.js +0 -18
  268. package/lib/cjs/bundler/types.d.ts +0 -235
  269. package/lib/cjs/bundler/types.js +0 -2
  270. package/lib/cjs/entities/vaultV1ReallocationData.d.ts +0 -326
  271. package/lib/cjs/entities/vaultV1ReallocationData.js +0 -542
  272. package/lib/cjs/helpers/computeVaultV1Reallocations.d.ts +0 -78
  273. package/lib/cjs/helpers/computeVaultV1Reallocations.js +0 -243
  274. package/lib/esm/actions/requirements/encode/encodeErc20Permit2Approve.d.ts +0 -42
  275. package/lib/esm/actions/requirements/encode/encodeErc20Permit2Approve.js +0 -79
  276. package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirements.d.ts +0 -88
  277. package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirements.js +0 -147
  278. package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit.d.ts +0 -37
  279. package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit.js +0 -46
  280. package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.d.ts +0 -57
  281. package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.js +0 -70
  282. package/lib/esm/actions/requirements/generalAdapter/index.d.ts +0 -3
  283. package/lib/esm/actions/requirements/generalAdapter/index.js +0 -3
  284. package/lib/esm/actions/signatures/getBlueAuthorizationAction.d.ts +0 -29
  285. package/lib/esm/actions/signatures/getBlueAuthorizationAction.js +0 -44
  286. package/lib/esm/actions/signatures/getTokenRequirementActions.d.ts +0 -58
  287. package/lib/esm/actions/signatures/getTokenRequirementActions.js +0 -115
  288. package/lib/esm/actions/signatures/getVaultExitBundlesV1PermitStruct.d.ts +0 -44
  289. package/lib/esm/actions/signatures/getVaultExitBundlesV1PermitStruct.js +0 -39
  290. package/lib/esm/actions/signatures/index.d.ts +0 -3
  291. package/lib/esm/actions/signatures/index.js +0 -3
  292. package/lib/esm/augment/VaultMarketPublicAllocatorConfig.d.ts +0 -8
  293. package/lib/esm/augment/VaultMarketPublicAllocatorConfig.js +0 -5
  294. package/lib/esm/bundler/actions.d.ts +0 -797
  295. package/lib/esm/bundler/actions.js +0 -1368
  296. package/lib/esm/bundler/index.d.ts +0 -2
  297. package/lib/esm/bundler/index.js +0 -2
  298. package/lib/esm/bundler/types.d.ts +0 -235
  299. package/lib/esm/bundler/types.js +0 -1
  300. package/lib/esm/entities/vaultV1ReallocationData.d.ts +0 -326
  301. package/lib/esm/entities/vaultV1ReallocationData.js +0 -544
  302. package/lib/esm/helpers/computeVaultV1Reallocations.d.ts +0 -78
  303. package/lib/esm/helpers/computeVaultV1Reallocations.js +0 -239
  304. /package/lib/cjs/{actions/requirements/blue → entities/requirements}/getUnusedPermit2Nonce.d.ts +0 -0
  305. /package/lib/esm/{actions/requirements/blue → entities/requirements}/getUnusedPermit2Nonce.d.ts +0 -0
package/lib/cjs/abis.js CHANGED
@@ -1,15 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.compoundV2MigrationAdapterAbi = exports.aaveV3OptimizerMigrationAdapterAbi = exports.aaveV3MigrationAdapterAbi = exports.aaveV2MigrationAdapterAbi = exports.erc20WrapperAdapterAbi = exports.paraswapAdapterAbi = exports.ethereumGeneralAdapter1Abi = exports.generalAdapter1Abi = exports.coreAdapterAbi = exports.bundler3Abi = exports.vaultBundlesV1Abi = exports.vaultExitBundlesV1Abi = exports.setterRatifierAbi = exports.midnightSetterRatifierAbi = exports.midnightBundlesAbi = exports.midnightAbi = exports.ecrecoverRatifierAbi = exports.midnightEcrecoverRatifierAbi = exports.wstEthAbi = exports.wrappedBackedTokenAbi = exports.whitelistControllerAggregatorV2Abi = exports.vaultV2FactoryAbi = exports.vaultV2BluePublicAllocatorAbi = exports.vaultV2Abi = exports.vaultV1PublicAllocatorAbi = exports.vaultV1AdapterFactoryAbi = exports.vaultV1AdapterAbi = exports.publicAllocatorAbi = exports.preLiquidationFactoryAbi = exports.bluePreLiquidationFactoryAbi = exports.preLiquidationAbi = exports.bluePreLiquidationAbi = exports.permit2Abi = exports.permissionedErc20WrapperAbi = exports.morphoVaultV1AdapterFactoryAbi = exports.morphoVaultV1AdapterAbi = exports.morphoMarketV1AdapterV2FactoryAbi = exports.morphoMarketV1AdapterV2Abi = exports.morphoMarketV1AdapterFactoryAbi = exports.morphoMarketV1AdapterAbi = exports.metaMorphoFactoryAbi = exports.metaMorphoAbi = exports.erc5267Abi = exports.erc2612Abi = exports.blueOracleAbi = exports.blueAbi = exports.adaptiveCurveIrmAbi = exports.blueAdaptiveCurveIrmAbi = exports.marketParamsAbi = exports.blueMarketParamsAbi = void 0;
4
- exports.blueBundlesV1Abi = exports.compoundV3MigrationAdapterAbi = void 0;
3
+ exports.blueBundlesV1Abi = exports.vaultBundlesV1Abi = exports.vaultExitBundlesV1Abi = exports.midnightSetterRatifierAbi = exports.midnightBundlesAbi = exports.midnightAbi = exports.midnightEcrecoverRatifierAbi = exports.wstEthAbi = exports.wrappedBackedTokenAbi = exports.whitelistControllerAggregatorV2Abi = exports.vaultV2FactoryAbi = exports.vaultV2BluePublicAllocatorAbi = exports.vaultV2Abi = exports.bluePreLiquidationFactoryAbi = exports.bluePreLiquidationAbi = exports.permit2Abi = exports.permissionedErc20WrapperAbi = exports.morphoVaultV1AdapterFactoryAbi = exports.morphoVaultV1AdapterAbi = exports.morphoMarketV1AdapterV2FactoryAbi = exports.morphoMarketV1AdapterV2Abi = exports.morphoMarketV1AdapterFactoryAbi = exports.morphoMarketV1AdapterAbi = exports.metaMorphoFactoryAbi = exports.metaMorphoAbi = exports.erc5267Abi = exports.erc2612Abi = exports.blueOracleAbi = exports.blueAbi = exports.blueAdaptiveCurveIrmAbi = exports.blueMarketParamsAbi = void 0;
5
4
  var blue_sdk_1 = require("@morpho-org/blue-sdk");
6
5
  Object.defineProperty(exports, "blueMarketParamsAbi", { enumerable: true, get: function () { return blue_sdk_1.marketParamsAbi; } });
7
- /** @deprecated Use `blueMarketParamsAbi` or the raw `/blue/abis` subpath. */
8
- Object.defineProperty(exports, "marketParamsAbi", { enumerable: true, get: function () { return blue_sdk_1.marketParamsAbi; } });
9
6
  var blue_sdk_viem_1 = require("@morpho-org/blue-sdk-viem");
10
7
  Object.defineProperty(exports, "blueAdaptiveCurveIrmAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.adaptiveCurveIrmAbi; } });
11
- /** @deprecated Use `blueAdaptiveCurveIrmAbi` or the raw `/blue/abis` subpath. */
12
- Object.defineProperty(exports, "adaptiveCurveIrmAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.adaptiveCurveIrmAbi; } });
13
8
  Object.defineProperty(exports, "blueAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.blueAbi; } });
14
9
  Object.defineProperty(exports, "blueOracleAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.blueOracleAbi; } });
15
10
  Object.defineProperty(exports, "erc2612Abi", { enumerable: true, get: function () { return blue_sdk_viem_1.erc2612Abi; } });
@@ -25,15 +20,7 @@ Object.defineProperty(exports, "morphoVaultV1AdapterFactoryAbi", { enumerable: t
25
20
  Object.defineProperty(exports, "permissionedErc20WrapperAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.permissionedErc20WrapperAbi; } });
26
21
  Object.defineProperty(exports, "permit2Abi", { enumerable: true, get: function () { return blue_sdk_viem_1.permit2Abi; } });
27
22
  Object.defineProperty(exports, "bluePreLiquidationAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.preLiquidationAbi; } });
28
- /** @deprecated Use `bluePreLiquidationAbi` or the raw `/blue/abis` subpath. */
29
- Object.defineProperty(exports, "preLiquidationAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.preLiquidationAbi; } });
30
23
  Object.defineProperty(exports, "bluePreLiquidationFactoryAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.preLiquidationFactoryAbi; } });
31
- /** @deprecated Use `bluePreLiquidationFactoryAbi` or the raw `/blue/abis` subpath. */
32
- Object.defineProperty(exports, "preLiquidationFactoryAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.preLiquidationFactoryAbi; } });
33
- Object.defineProperty(exports, "publicAllocatorAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.publicAllocatorAbi; } });
34
- Object.defineProperty(exports, "vaultV1AdapterAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.vaultV1AdapterAbi; } });
35
- Object.defineProperty(exports, "vaultV1AdapterFactoryAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.vaultV1AdapterFactoryAbi; } });
36
- Object.defineProperty(exports, "vaultV1PublicAllocatorAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.vaultV1PublicAllocatorAbi; } });
37
24
  Object.defineProperty(exports, "vaultV2Abi", { enumerable: true, get: function () { return blue_sdk_viem_1.vaultV2Abi; } });
38
25
  Object.defineProperty(exports, "vaultV2BluePublicAllocatorAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.vaultV2BluePublicAllocatorAbi; } });
39
26
  Object.defineProperty(exports, "vaultV2FactoryAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.vaultV2FactoryAbi; } });
@@ -42,13 +29,9 @@ Object.defineProperty(exports, "wrappedBackedTokenAbi", { enumerable: true, get:
42
29
  Object.defineProperty(exports, "wstEthAbi", { enumerable: true, get: function () { return blue_sdk_viem_1.wstEthAbi; } });
43
30
  var midnight_sdk_1 = require("@morpho-org/midnight-sdk");
44
31
  Object.defineProperty(exports, "midnightEcrecoverRatifierAbi", { enumerable: true, get: function () { return midnight_sdk_1.ecrecoverRatifierAbi; } });
45
- /** @deprecated Use `midnightEcrecoverRatifierAbi` or the raw `/midnight/abis` subpath. */
46
- Object.defineProperty(exports, "ecrecoverRatifierAbi", { enumerable: true, get: function () { return midnight_sdk_1.ecrecoverRatifierAbi; } });
47
32
  Object.defineProperty(exports, "midnightAbi", { enumerable: true, get: function () { return midnight_sdk_1.midnightAbi; } });
48
33
  Object.defineProperty(exports, "midnightBundlesAbi", { enumerable: true, get: function () { return midnight_sdk_1.midnightBundlesAbi; } });
49
34
  Object.defineProperty(exports, "midnightSetterRatifierAbi", { enumerable: true, get: function () { return midnight_sdk_1.setterRatifierAbi; } });
50
- /** @deprecated Use `midnightSetterRatifierAbi` or the raw `/midnight/abis` subpath. */
51
- Object.defineProperty(exports, "setterRatifierAbi", { enumerable: true, get: function () { return midnight_sdk_1.setterRatifierAbi; } });
52
35
  /** ABI for the VaultExitBundlesV1 periphery contract. */
53
36
  exports.vaultExitBundlesV1Abi = [
54
37
  {
@@ -355,1926 +338,6 @@ exports.vaultBundlesV1Abi = [
355
338
  stateMutability: "nonpayable",
356
339
  },
357
340
  ];
358
- /** ABI for the Bundler3 multicall contract. */
359
- exports.bundler3Abi = [
360
- {
361
- type: "function",
362
- name: "initiator",
363
- inputs: [],
364
- outputs: [
365
- {
366
- name: "",
367
- type: "address",
368
- internalType: "address",
369
- },
370
- ],
371
- stateMutability: "view",
372
- },
373
- {
374
- type: "function",
375
- name: "multicall",
376
- inputs: [
377
- {
378
- name: "bundle",
379
- type: "tuple[]",
380
- internalType: "struct Call[]",
381
- components: [
382
- {
383
- name: "to",
384
- type: "address",
385
- internalType: "address",
386
- },
387
- {
388
- name: "data",
389
- type: "bytes",
390
- internalType: "bytes",
391
- },
392
- {
393
- name: "value",
394
- type: "uint256",
395
- internalType: "uint256",
396
- },
397
- {
398
- name: "skipRevert",
399
- type: "bool",
400
- internalType: "bool",
401
- },
402
- {
403
- name: "callbackHash",
404
- type: "bytes32",
405
- internalType: "bytes32",
406
- },
407
- ],
408
- },
409
- ],
410
- outputs: [],
411
- stateMutability: "payable",
412
- },
413
- {
414
- type: "function",
415
- name: "reenter",
416
- inputs: [
417
- {
418
- name: "bundle",
419
- type: "tuple[]",
420
- internalType: "struct Call[]",
421
- components: [
422
- {
423
- name: "to",
424
- type: "address",
425
- internalType: "address",
426
- },
427
- {
428
- name: "data",
429
- type: "bytes",
430
- internalType: "bytes",
431
- },
432
- {
433
- name: "value",
434
- type: "uint256",
435
- internalType: "uint256",
436
- },
437
- {
438
- name: "skipRevert",
439
- type: "bool",
440
- internalType: "bool",
441
- },
442
- {
443
- name: "callbackHash",
444
- type: "bytes32",
445
- internalType: "bytes32",
446
- },
447
- ],
448
- },
449
- ],
450
- outputs: [],
451
- stateMutability: "nonpayable",
452
- },
453
- {
454
- type: "function",
455
- name: "reenterHash",
456
- inputs: [],
457
- outputs: [
458
- {
459
- name: "",
460
- type: "bytes32",
461
- internalType: "bytes32",
462
- },
463
- ],
464
- stateMutability: "view",
465
- },
466
- {
467
- type: "error",
468
- name: "AlreadyInitiated",
469
- inputs: [],
470
- },
471
- {
472
- type: "error",
473
- name: "EmptyBundle",
474
- inputs: [],
475
- },
476
- {
477
- type: "error",
478
- name: "IncorrectReenterHash",
479
- inputs: [],
480
- },
481
- {
482
- type: "error",
483
- name: "MissingExpectedReenter",
484
- inputs: [],
485
- },
486
- ];
487
- /** ABI for the Bundler3 core adapter. */
488
- exports.coreAdapterAbi = [
489
- {
490
- type: "receive",
491
- stateMutability: "payable",
492
- },
493
- {
494
- type: "function",
495
- name: "BUNDLER3",
496
- inputs: [],
497
- outputs: [
498
- {
499
- name: "",
500
- type: "address",
501
- internalType: "address",
502
- },
503
- ],
504
- stateMutability: "view",
505
- },
506
- {
507
- type: "function",
508
- name: "erc20Transfer",
509
- inputs: [
510
- {
511
- name: "token",
512
- type: "address",
513
- internalType: "address",
514
- },
515
- {
516
- name: "receiver",
517
- type: "address",
518
- internalType: "address",
519
- },
520
- {
521
- name: "amount",
522
- type: "uint256",
523
- internalType: "uint256",
524
- },
525
- ],
526
- outputs: [],
527
- stateMutability: "nonpayable",
528
- },
529
- {
530
- type: "function",
531
- name: "nativeTransfer",
532
- inputs: [
533
- {
534
- name: "receiver",
535
- type: "address",
536
- internalType: "address",
537
- },
538
- {
539
- name: "amount",
540
- type: "uint256",
541
- internalType: "uint256",
542
- },
543
- ],
544
- outputs: [],
545
- stateMutability: "nonpayable",
546
- },
547
- {
548
- type: "error",
549
- name: "AdapterAddress",
550
- inputs: [],
551
- },
552
- {
553
- type: "error",
554
- name: "FailedCall",
555
- inputs: [],
556
- },
557
- {
558
- type: "error",
559
- name: "InsufficientBalance",
560
- inputs: [
561
- {
562
- name: "balance",
563
- type: "uint256",
564
- internalType: "uint256",
565
- },
566
- {
567
- name: "needed",
568
- type: "uint256",
569
- internalType: "uint256",
570
- },
571
- ],
572
- },
573
- {
574
- type: "error",
575
- name: "SafeERC20FailedOperation",
576
- inputs: [
577
- {
578
- name: "token",
579
- type: "address",
580
- internalType: "address",
581
- },
582
- ],
583
- },
584
- {
585
- type: "error",
586
- name: "UnauthorizedSender",
587
- inputs: [],
588
- },
589
- {
590
- type: "error",
591
- name: "ZeroAddress",
592
- inputs: [],
593
- },
594
- {
595
- type: "error",
596
- name: "ZeroAmount",
597
- inputs: [],
598
- },
599
- ];
600
- /** ABI for the Bundler3 GeneralAdapter1 contract. */
601
- exports.generalAdapter1Abi = [
602
- ...exports.coreAdapterAbi,
603
- {
604
- type: "constructor",
605
- inputs: [
606
- {
607
- name: "bundler3",
608
- type: "address",
609
- internalType: "address",
610
- },
611
- {
612
- name: "morpho",
613
- type: "address",
614
- internalType: "address",
615
- },
616
- {
617
- name: "wNative",
618
- type: "address",
619
- internalType: "address",
620
- },
621
- ],
622
- stateMutability: "nonpayable",
623
- },
624
- {
625
- type: "function",
626
- name: "MORPHO",
627
- inputs: [],
628
- outputs: [
629
- {
630
- name: "",
631
- type: "address",
632
- internalType: "contract IMorpho",
633
- },
634
- ],
635
- stateMutability: "view",
636
- },
637
- {
638
- type: "function",
639
- name: "WRAPPED_NATIVE",
640
- inputs: [],
641
- outputs: [
642
- {
643
- name: "",
644
- type: "address",
645
- internalType: "contract IWNative",
646
- },
647
- ],
648
- stateMutability: "view",
649
- },
650
- {
651
- type: "function",
652
- name: "erc20TransferFrom",
653
- inputs: [
654
- {
655
- name: "token",
656
- type: "address",
657
- internalType: "address",
658
- },
659
- {
660
- name: "receiver",
661
- type: "address",
662
- internalType: "address",
663
- },
664
- {
665
- name: "amount",
666
- type: "uint256",
667
- internalType: "uint256",
668
- },
669
- ],
670
- outputs: [],
671
- stateMutability: "nonpayable",
672
- },
673
- {
674
- type: "function",
675
- name: "erc4626Deposit",
676
- inputs: [
677
- {
678
- name: "vault",
679
- type: "address",
680
- internalType: "address",
681
- },
682
- {
683
- name: "assets",
684
- type: "uint256",
685
- internalType: "uint256",
686
- },
687
- {
688
- name: "maxSharePriceE27",
689
- type: "uint256",
690
- internalType: "uint256",
691
- },
692
- {
693
- name: "receiver",
694
- type: "address",
695
- internalType: "address",
696
- },
697
- ],
698
- outputs: [],
699
- stateMutability: "nonpayable",
700
- },
701
- {
702
- type: "function",
703
- name: "erc4626Mint",
704
- inputs: [
705
- {
706
- name: "vault",
707
- type: "address",
708
- internalType: "address",
709
- },
710
- {
711
- name: "shares",
712
- type: "uint256",
713
- internalType: "uint256",
714
- },
715
- {
716
- name: "maxSharePriceE27",
717
- type: "uint256",
718
- internalType: "uint256",
719
- },
720
- {
721
- name: "receiver",
722
- type: "address",
723
- internalType: "address",
724
- },
725
- ],
726
- outputs: [],
727
- stateMutability: "nonpayable",
728
- },
729
- {
730
- type: "function",
731
- name: "erc4626Redeem",
732
- inputs: [
733
- {
734
- name: "vault",
735
- type: "address",
736
- internalType: "address",
737
- },
738
- {
739
- name: "shares",
740
- type: "uint256",
741
- internalType: "uint256",
742
- },
743
- {
744
- name: "minSharePriceE27",
745
- type: "uint256",
746
- internalType: "uint256",
747
- },
748
- {
749
- name: "receiver",
750
- type: "address",
751
- internalType: "address",
752
- },
753
- {
754
- name: "owner",
755
- type: "address",
756
- internalType: "address",
757
- },
758
- ],
759
- outputs: [],
760
- stateMutability: "nonpayable",
761
- },
762
- {
763
- type: "function",
764
- name: "erc4626Withdraw",
765
- inputs: [
766
- {
767
- name: "vault",
768
- type: "address",
769
- internalType: "address",
770
- },
771
- {
772
- name: "assets",
773
- type: "uint256",
774
- internalType: "uint256",
775
- },
776
- {
777
- name: "minSharePriceE27",
778
- type: "uint256",
779
- internalType: "uint256",
780
- },
781
- {
782
- name: "receiver",
783
- type: "address",
784
- internalType: "address",
785
- },
786
- {
787
- name: "owner",
788
- type: "address",
789
- internalType: "address",
790
- },
791
- ],
792
- outputs: [],
793
- stateMutability: "nonpayable",
794
- },
795
- {
796
- type: "function",
797
- name: "morphoBorrow",
798
- inputs: [
799
- {
800
- name: "marketParams",
801
- type: "tuple",
802
- internalType: "struct MarketParams",
803
- components: [
804
- {
805
- name: "loanToken",
806
- type: "address",
807
- internalType: "address",
808
- },
809
- {
810
- name: "collateralToken",
811
- type: "address",
812
- internalType: "address",
813
- },
814
- {
815
- name: "oracle",
816
- type: "address",
817
- internalType: "address",
818
- },
819
- {
820
- name: "irm",
821
- type: "address",
822
- internalType: "address",
823
- },
824
- {
825
- name: "lltv",
826
- type: "uint256",
827
- internalType: "uint256",
828
- },
829
- ],
830
- },
831
- {
832
- name: "assets",
833
- type: "uint256",
834
- internalType: "uint256",
835
- },
836
- {
837
- name: "shares",
838
- type: "uint256",
839
- internalType: "uint256",
840
- },
841
- {
842
- name: "minSharePriceE27",
843
- type: "uint256",
844
- internalType: "uint256",
845
- },
846
- {
847
- name: "receiver",
848
- type: "address",
849
- internalType: "address",
850
- },
851
- ],
852
- outputs: [],
853
- stateMutability: "nonpayable",
854
- },
855
- {
856
- type: "function",
857
- name: "morphoFlashLoan",
858
- inputs: [
859
- {
860
- name: "token",
861
- type: "address",
862
- internalType: "address",
863
- },
864
- {
865
- name: "assets",
866
- type: "uint256",
867
- internalType: "uint256",
868
- },
869
- {
870
- name: "data",
871
- type: "bytes",
872
- internalType: "bytes",
873
- },
874
- ],
875
- outputs: [],
876
- stateMutability: "nonpayable",
877
- },
878
- {
879
- type: "function",
880
- name: "morphoRepay",
881
- inputs: [
882
- {
883
- name: "marketParams",
884
- type: "tuple",
885
- internalType: "struct MarketParams",
886
- components: [
887
- {
888
- name: "loanToken",
889
- type: "address",
890
- internalType: "address",
891
- },
892
- {
893
- name: "collateralToken",
894
- type: "address",
895
- internalType: "address",
896
- },
897
- {
898
- name: "oracle",
899
- type: "address",
900
- internalType: "address",
901
- },
902
- {
903
- name: "irm",
904
- type: "address",
905
- internalType: "address",
906
- },
907
- {
908
- name: "lltv",
909
- type: "uint256",
910
- internalType: "uint256",
911
- },
912
- ],
913
- },
914
- {
915
- name: "assets",
916
- type: "uint256",
917
- internalType: "uint256",
918
- },
919
- {
920
- name: "shares",
921
- type: "uint256",
922
- internalType: "uint256",
923
- },
924
- {
925
- name: "maxSharePriceE27",
926
- type: "uint256",
927
- internalType: "uint256",
928
- },
929
- {
930
- name: "onBehalf",
931
- type: "address",
932
- internalType: "address",
933
- },
934
- {
935
- name: "data",
936
- type: "bytes",
937
- internalType: "bytes",
938
- },
939
- ],
940
- outputs: [],
941
- stateMutability: "nonpayable",
942
- },
943
- {
944
- type: "function",
945
- name: "morphoSupply",
946
- inputs: [
947
- {
948
- name: "marketParams",
949
- type: "tuple",
950
- internalType: "struct MarketParams",
951
- components: [
952
- {
953
- name: "loanToken",
954
- type: "address",
955
- internalType: "address",
956
- },
957
- {
958
- name: "collateralToken",
959
- type: "address",
960
- internalType: "address",
961
- },
962
- {
963
- name: "oracle",
964
- type: "address",
965
- internalType: "address",
966
- },
967
- {
968
- name: "irm",
969
- type: "address",
970
- internalType: "address",
971
- },
972
- {
973
- name: "lltv",
974
- type: "uint256",
975
- internalType: "uint256",
976
- },
977
- ],
978
- },
979
- {
980
- name: "assets",
981
- type: "uint256",
982
- internalType: "uint256",
983
- },
984
- {
985
- name: "shares",
986
- type: "uint256",
987
- internalType: "uint256",
988
- },
989
- {
990
- name: "maxSharePriceE27",
991
- type: "uint256",
992
- internalType: "uint256",
993
- },
994
- {
995
- name: "onBehalf",
996
- type: "address",
997
- internalType: "address",
998
- },
999
- {
1000
- name: "data",
1001
- type: "bytes",
1002
- internalType: "bytes",
1003
- },
1004
- ],
1005
- outputs: [],
1006
- stateMutability: "nonpayable",
1007
- },
1008
- {
1009
- type: "function",
1010
- name: "morphoSupplyCollateral",
1011
- inputs: [
1012
- {
1013
- name: "marketParams",
1014
- type: "tuple",
1015
- internalType: "struct MarketParams",
1016
- components: [
1017
- {
1018
- name: "loanToken",
1019
- type: "address",
1020
- internalType: "address",
1021
- },
1022
- {
1023
- name: "collateralToken",
1024
- type: "address",
1025
- internalType: "address",
1026
- },
1027
- {
1028
- name: "oracle",
1029
- type: "address",
1030
- internalType: "address",
1031
- },
1032
- {
1033
- name: "irm",
1034
- type: "address",
1035
- internalType: "address",
1036
- },
1037
- {
1038
- name: "lltv",
1039
- type: "uint256",
1040
- internalType: "uint256",
1041
- },
1042
- ],
1043
- },
1044
- {
1045
- name: "assets",
1046
- type: "uint256",
1047
- internalType: "uint256",
1048
- },
1049
- {
1050
- name: "onBehalf",
1051
- type: "address",
1052
- internalType: "address",
1053
- },
1054
- {
1055
- name: "data",
1056
- type: "bytes",
1057
- internalType: "bytes",
1058
- },
1059
- ],
1060
- outputs: [],
1061
- stateMutability: "nonpayable",
1062
- },
1063
- {
1064
- type: "function",
1065
- name: "morphoWithdraw",
1066
- inputs: [
1067
- {
1068
- name: "marketParams",
1069
- type: "tuple",
1070
- internalType: "struct MarketParams",
1071
- components: [
1072
- {
1073
- name: "loanToken",
1074
- type: "address",
1075
- internalType: "address",
1076
- },
1077
- {
1078
- name: "collateralToken",
1079
- type: "address",
1080
- internalType: "address",
1081
- },
1082
- {
1083
- name: "oracle",
1084
- type: "address",
1085
- internalType: "address",
1086
- },
1087
- {
1088
- name: "irm",
1089
- type: "address",
1090
- internalType: "address",
1091
- },
1092
- {
1093
- name: "lltv",
1094
- type: "uint256",
1095
- internalType: "uint256",
1096
- },
1097
- ],
1098
- },
1099
- {
1100
- name: "assets",
1101
- type: "uint256",
1102
- internalType: "uint256",
1103
- },
1104
- {
1105
- name: "shares",
1106
- type: "uint256",
1107
- internalType: "uint256",
1108
- },
1109
- {
1110
- name: "minSharePriceE27",
1111
- type: "uint256",
1112
- internalType: "uint256",
1113
- },
1114
- {
1115
- name: "receiver",
1116
- type: "address",
1117
- internalType: "address",
1118
- },
1119
- ],
1120
- outputs: [],
1121
- stateMutability: "nonpayable",
1122
- },
1123
- {
1124
- type: "function",
1125
- name: "morphoWithdrawCollateral",
1126
- inputs: [
1127
- {
1128
- name: "marketParams",
1129
- type: "tuple",
1130
- internalType: "struct MarketParams",
1131
- components: [
1132
- {
1133
- name: "loanToken",
1134
- type: "address",
1135
- internalType: "address",
1136
- },
1137
- {
1138
- name: "collateralToken",
1139
- type: "address",
1140
- internalType: "address",
1141
- },
1142
- {
1143
- name: "oracle",
1144
- type: "address",
1145
- internalType: "address",
1146
- },
1147
- {
1148
- name: "irm",
1149
- type: "address",
1150
- internalType: "address",
1151
- },
1152
- {
1153
- name: "lltv",
1154
- type: "uint256",
1155
- internalType: "uint256",
1156
- },
1157
- ],
1158
- },
1159
- {
1160
- name: "assets",
1161
- type: "uint256",
1162
- internalType: "uint256",
1163
- },
1164
- {
1165
- name: "receiver",
1166
- type: "address",
1167
- internalType: "address",
1168
- },
1169
- ],
1170
- outputs: [],
1171
- stateMutability: "nonpayable",
1172
- },
1173
- {
1174
- type: "function",
1175
- name: "onMorphoFlashLoan",
1176
- inputs: [
1177
- {
1178
- name: "",
1179
- type: "uint256",
1180
- internalType: "uint256",
1181
- },
1182
- {
1183
- name: "data",
1184
- type: "bytes",
1185
- internalType: "bytes",
1186
- },
1187
- ],
1188
- outputs: [],
1189
- stateMutability: "nonpayable",
1190
- },
1191
- {
1192
- type: "function",
1193
- name: "onMorphoRepay",
1194
- inputs: [
1195
- {
1196
- name: "",
1197
- type: "uint256",
1198
- internalType: "uint256",
1199
- },
1200
- {
1201
- name: "data",
1202
- type: "bytes",
1203
- internalType: "bytes",
1204
- },
1205
- ],
1206
- outputs: [],
1207
- stateMutability: "nonpayable",
1208
- },
1209
- {
1210
- type: "function",
1211
- name: "onMorphoSupply",
1212
- inputs: [
1213
- {
1214
- name: "",
1215
- type: "uint256",
1216
- internalType: "uint256",
1217
- },
1218
- {
1219
- name: "data",
1220
- type: "bytes",
1221
- internalType: "bytes",
1222
- },
1223
- ],
1224
- outputs: [],
1225
- stateMutability: "nonpayable",
1226
- },
1227
- {
1228
- type: "function",
1229
- name: "onMorphoSupplyCollateral",
1230
- inputs: [
1231
- {
1232
- name: "",
1233
- type: "uint256",
1234
- internalType: "uint256",
1235
- },
1236
- {
1237
- name: "data",
1238
- type: "bytes",
1239
- internalType: "bytes",
1240
- },
1241
- ],
1242
- outputs: [],
1243
- stateMutability: "nonpayable",
1244
- },
1245
- {
1246
- type: "function",
1247
- name: "permit2TransferFrom",
1248
- inputs: [
1249
- {
1250
- name: "token",
1251
- type: "address",
1252
- internalType: "address",
1253
- },
1254
- {
1255
- name: "receiver",
1256
- type: "address",
1257
- internalType: "address",
1258
- },
1259
- {
1260
- name: "amount",
1261
- type: "uint256",
1262
- internalType: "uint256",
1263
- },
1264
- ],
1265
- outputs: [],
1266
- stateMutability: "nonpayable",
1267
- },
1268
- {
1269
- type: "function",
1270
- name: "unwrapNative",
1271
- inputs: [
1272
- {
1273
- name: "amount",
1274
- type: "uint256",
1275
- internalType: "uint256",
1276
- },
1277
- {
1278
- name: "receiver",
1279
- type: "address",
1280
- internalType: "address",
1281
- },
1282
- ],
1283
- outputs: [],
1284
- stateMutability: "nonpayable",
1285
- },
1286
- {
1287
- type: "function",
1288
- name: "wrapNative",
1289
- inputs: [
1290
- {
1291
- name: "amount",
1292
- type: "uint256",
1293
- internalType: "uint256",
1294
- },
1295
- {
1296
- name: "receiver",
1297
- type: "address",
1298
- internalType: "address",
1299
- },
1300
- ],
1301
- outputs: [],
1302
- stateMutability: "nonpayable",
1303
- },
1304
- {
1305
- type: "error",
1306
- name: "SlippageExceeded",
1307
- inputs: [],
1308
- },
1309
- {
1310
- type: "error",
1311
- name: "UnexpectedOwner",
1312
- inputs: [],
1313
- },
1314
- {
1315
- type: "error",
1316
- name: "UnsafeCast",
1317
- inputs: [],
1318
- },
1319
- {
1320
- type: "error",
1321
- name: "ZeroShares",
1322
- inputs: [],
1323
- },
1324
- ];
1325
- /** ABI for the Ethereum-specific Bundler3 GeneralAdapter1 extension. */
1326
- exports.ethereumGeneralAdapter1Abi = [
1327
- ...exports.generalAdapter1Abi,
1328
- {
1329
- type: "constructor",
1330
- inputs: [
1331
- {
1332
- name: "bundler3",
1333
- type: "address",
1334
- internalType: "address",
1335
- },
1336
- {
1337
- name: "morpho",
1338
- type: "address",
1339
- internalType: "address",
1340
- },
1341
- {
1342
- name: "weth",
1343
- type: "address",
1344
- internalType: "address",
1345
- },
1346
- {
1347
- name: "wStEth",
1348
- type: "address",
1349
- internalType: "address",
1350
- },
1351
- {
1352
- name: "morphoToken",
1353
- type: "address",
1354
- internalType: "address",
1355
- },
1356
- {
1357
- name: "morphoWrapper",
1358
- type: "address",
1359
- internalType: "address",
1360
- },
1361
- ],
1362
- stateMutability: "nonpayable",
1363
- },
1364
- {
1365
- type: "function",
1366
- name: "MORPHO_TOKEN",
1367
- inputs: [],
1368
- outputs: [
1369
- {
1370
- name: "",
1371
- type: "address",
1372
- internalType: "address",
1373
- },
1374
- ],
1375
- stateMutability: "view",
1376
- },
1377
- {
1378
- type: "function",
1379
- name: "MORPHO_WRAPPER",
1380
- inputs: [],
1381
- outputs: [
1382
- {
1383
- name: "",
1384
- type: "address",
1385
- internalType: "address",
1386
- },
1387
- ],
1388
- stateMutability: "view",
1389
- },
1390
- {
1391
- type: "function",
1392
- name: "ST_ETH",
1393
- inputs: [],
1394
- outputs: [
1395
- {
1396
- name: "",
1397
- type: "address",
1398
- internalType: "address",
1399
- },
1400
- ],
1401
- stateMutability: "view",
1402
- },
1403
- {
1404
- type: "function",
1405
- name: "WST_ETH",
1406
- inputs: [],
1407
- outputs: [
1408
- {
1409
- name: "",
1410
- type: "address",
1411
- internalType: "address",
1412
- },
1413
- ],
1414
- stateMutability: "view",
1415
- },
1416
- {
1417
- type: "function",
1418
- name: "morphoWrapperDepositFor",
1419
- inputs: [
1420
- {
1421
- name: "receiver",
1422
- type: "address",
1423
- internalType: "address",
1424
- },
1425
- {
1426
- name: "amount",
1427
- type: "uint256",
1428
- internalType: "uint256",
1429
- },
1430
- ],
1431
- outputs: [],
1432
- stateMutability: "nonpayable",
1433
- },
1434
- {
1435
- type: "function",
1436
- name: "morphoWrapperWithdrawTo",
1437
- inputs: [
1438
- {
1439
- name: "receiver",
1440
- type: "address",
1441
- internalType: "address",
1442
- },
1443
- {
1444
- name: "amount",
1445
- type: "uint256",
1446
- internalType: "uint256",
1447
- },
1448
- ],
1449
- outputs: [],
1450
- stateMutability: "nonpayable",
1451
- },
1452
- {
1453
- type: "function",
1454
- name: "stakeEth",
1455
- inputs: [
1456
- {
1457
- name: "amount",
1458
- type: "uint256",
1459
- internalType: "uint256",
1460
- },
1461
- {
1462
- name: "maxSharePriceE27",
1463
- type: "uint256",
1464
- internalType: "uint256",
1465
- },
1466
- {
1467
- name: "referral",
1468
- type: "address",
1469
- internalType: "address",
1470
- },
1471
- {
1472
- name: "receiver",
1473
- type: "address",
1474
- internalType: "address",
1475
- },
1476
- ],
1477
- outputs: [],
1478
- stateMutability: "nonpayable",
1479
- },
1480
- {
1481
- type: "function",
1482
- name: "unwrapStEth",
1483
- inputs: [
1484
- {
1485
- name: "amount",
1486
- type: "uint256",
1487
- internalType: "uint256",
1488
- },
1489
- {
1490
- name: "receiver",
1491
- type: "address",
1492
- internalType: "address",
1493
- },
1494
- ],
1495
- outputs: [],
1496
- stateMutability: "nonpayable",
1497
- },
1498
- {
1499
- type: "function",
1500
- name: "wrapStEth",
1501
- inputs: [
1502
- {
1503
- name: "amount",
1504
- type: "uint256",
1505
- internalType: "uint256",
1506
- },
1507
- {
1508
- name: "receiver",
1509
- type: "address",
1510
- internalType: "address",
1511
- },
1512
- ],
1513
- outputs: [],
1514
- stateMutability: "nonpayable",
1515
- },
1516
- ];
1517
- /** ABI for the Bundler3 Paraswap adapter. */
1518
- exports.paraswapAdapterAbi = [
1519
- ...exports.coreAdapterAbi,
1520
- {
1521
- type: "constructor",
1522
- inputs: [
1523
- {
1524
- name: "bundler3",
1525
- type: "address",
1526
- internalType: "address",
1527
- },
1528
- {
1529
- name: "morpho",
1530
- type: "address",
1531
- internalType: "address",
1532
- },
1533
- {
1534
- name: "augustusRegistry",
1535
- type: "address",
1536
- internalType: "address",
1537
- },
1538
- ],
1539
- stateMutability: "nonpayable",
1540
- },
1541
- {
1542
- type: "function",
1543
- name: "AUGUSTUS_REGISTRY",
1544
- inputs: [],
1545
- outputs: [
1546
- {
1547
- name: "",
1548
- type: "address",
1549
- internalType: "contract IAugustusRegistry",
1550
- },
1551
- ],
1552
- stateMutability: "view",
1553
- },
1554
- {
1555
- type: "function",
1556
- name: "MORPHO",
1557
- inputs: [],
1558
- outputs: [
1559
- {
1560
- name: "",
1561
- type: "address",
1562
- internalType: "contract IMorpho",
1563
- },
1564
- ],
1565
- stateMutability: "view",
1566
- },
1567
- {
1568
- type: "function",
1569
- name: "buy",
1570
- inputs: [
1571
- {
1572
- name: "augustus",
1573
- type: "address",
1574
- internalType: "address",
1575
- },
1576
- {
1577
- name: "callData",
1578
- type: "bytes",
1579
- internalType: "bytes",
1580
- },
1581
- {
1582
- name: "srcToken",
1583
- type: "address",
1584
- internalType: "address",
1585
- },
1586
- {
1587
- name: "destToken",
1588
- type: "address",
1589
- internalType: "address",
1590
- },
1591
- {
1592
- name: "newDestAmount",
1593
- type: "uint256",
1594
- internalType: "uint256",
1595
- },
1596
- {
1597
- name: "offsets",
1598
- type: "tuple",
1599
- internalType: "struct Offsets",
1600
- components: [
1601
- {
1602
- name: "exactAmount",
1603
- type: "uint256",
1604
- internalType: "uint256",
1605
- },
1606
- {
1607
- name: "limitAmount",
1608
- type: "uint256",
1609
- internalType: "uint256",
1610
- },
1611
- {
1612
- name: "quotedAmount",
1613
- type: "uint256",
1614
- internalType: "uint256",
1615
- },
1616
- ],
1617
- },
1618
- {
1619
- name: "receiver",
1620
- type: "address",
1621
- internalType: "address",
1622
- },
1623
- ],
1624
- outputs: [],
1625
- stateMutability: "nonpayable",
1626
- },
1627
- {
1628
- type: "function",
1629
- name: "buyMorphoDebt",
1630
- inputs: [
1631
- {
1632
- name: "augustus",
1633
- type: "address",
1634
- internalType: "address",
1635
- },
1636
- {
1637
- name: "callData",
1638
- type: "bytes",
1639
- internalType: "bytes",
1640
- },
1641
- {
1642
- name: "srcToken",
1643
- type: "address",
1644
- internalType: "address",
1645
- },
1646
- {
1647
- name: "marketParams",
1648
- type: "tuple",
1649
- internalType: "struct MarketParams",
1650
- components: [
1651
- {
1652
- name: "loanToken",
1653
- type: "address",
1654
- internalType: "address",
1655
- },
1656
- {
1657
- name: "collateralToken",
1658
- type: "address",
1659
- internalType: "address",
1660
- },
1661
- {
1662
- name: "oracle",
1663
- type: "address",
1664
- internalType: "address",
1665
- },
1666
- {
1667
- name: "irm",
1668
- type: "address",
1669
- internalType: "address",
1670
- },
1671
- {
1672
- name: "lltv",
1673
- type: "uint256",
1674
- internalType: "uint256",
1675
- },
1676
- ],
1677
- },
1678
- {
1679
- name: "offsets",
1680
- type: "tuple",
1681
- internalType: "struct Offsets",
1682
- components: [
1683
- {
1684
- name: "exactAmount",
1685
- type: "uint256",
1686
- internalType: "uint256",
1687
- },
1688
- {
1689
- name: "limitAmount",
1690
- type: "uint256",
1691
- internalType: "uint256",
1692
- },
1693
- {
1694
- name: "quotedAmount",
1695
- type: "uint256",
1696
- internalType: "uint256",
1697
- },
1698
- ],
1699
- },
1700
- {
1701
- name: "onBehalf",
1702
- type: "address",
1703
- internalType: "address",
1704
- },
1705
- {
1706
- name: "receiver",
1707
- type: "address",
1708
- internalType: "address",
1709
- },
1710
- ],
1711
- outputs: [],
1712
- stateMutability: "nonpayable",
1713
- },
1714
- {
1715
- type: "function",
1716
- name: "sell",
1717
- inputs: [
1718
- {
1719
- name: "augustus",
1720
- type: "address",
1721
- internalType: "address",
1722
- },
1723
- {
1724
- name: "callData",
1725
- type: "bytes",
1726
- internalType: "bytes",
1727
- },
1728
- {
1729
- name: "srcToken",
1730
- type: "address",
1731
- internalType: "address",
1732
- },
1733
- {
1734
- name: "destToken",
1735
- type: "address",
1736
- internalType: "address",
1737
- },
1738
- {
1739
- name: "sellEntireBalance",
1740
- type: "bool",
1741
- internalType: "bool",
1742
- },
1743
- {
1744
- name: "offsets",
1745
- type: "tuple",
1746
- internalType: "struct Offsets",
1747
- components: [
1748
- {
1749
- name: "exactAmount",
1750
- type: "uint256",
1751
- internalType: "uint256",
1752
- },
1753
- {
1754
- name: "limitAmount",
1755
- type: "uint256",
1756
- internalType: "uint256",
1757
- },
1758
- {
1759
- name: "quotedAmount",
1760
- type: "uint256",
1761
- internalType: "uint256",
1762
- },
1763
- ],
1764
- },
1765
- {
1766
- name: "receiver",
1767
- type: "address",
1768
- internalType: "address",
1769
- },
1770
- ],
1771
- outputs: [],
1772
- stateMutability: "nonpayable",
1773
- },
1774
- {
1775
- type: "error",
1776
- name: "BuyAmountTooLow",
1777
- inputs: [],
1778
- },
1779
- {
1780
- type: "error",
1781
- name: "InvalidAugustus",
1782
- inputs: [],
1783
- },
1784
- {
1785
- type: "error",
1786
- name: "InvalidOffset",
1787
- inputs: [],
1788
- },
1789
- {
1790
- type: "error",
1791
- name: "SellAmountTooHigh",
1792
- inputs: [],
1793
- },
1794
- ];
1795
- /** ABI for the Bundler3 ERC20 wrapper adapter. */
1796
- exports.erc20WrapperAdapterAbi = [
1797
- ...exports.coreAdapterAbi,
1798
- {
1799
- type: "constructor",
1800
- inputs: [
1801
- {
1802
- name: "bundler3",
1803
- type: "address",
1804
- internalType: "address",
1805
- },
1806
- ],
1807
- stateMutability: "nonpayable",
1808
- },
1809
- {
1810
- type: "function",
1811
- name: "erc20WrapperDepositFor",
1812
- inputs: [
1813
- {
1814
- name: "wrapper",
1815
- type: "address",
1816
- internalType: "address",
1817
- },
1818
- {
1819
- name: "amount",
1820
- type: "uint256",
1821
- internalType: "uint256",
1822
- },
1823
- ],
1824
- outputs: [],
1825
- stateMutability: "nonpayable",
1826
- },
1827
- {
1828
- type: "function",
1829
- name: "erc20WrapperWithdrawTo",
1830
- inputs: [
1831
- {
1832
- name: "wrapper",
1833
- type: "address",
1834
- internalType: "address",
1835
- },
1836
- {
1837
- name: "receiver",
1838
- type: "address",
1839
- internalType: "address",
1840
- },
1841
- {
1842
- name: "amount",
1843
- type: "uint256",
1844
- internalType: "uint256",
1845
- },
1846
- ],
1847
- outputs: [],
1848
- stateMutability: "nonpayable",
1849
- },
1850
- {
1851
- type: "error",
1852
- name: "DepositFailed",
1853
- inputs: [],
1854
- },
1855
- {
1856
- type: "error",
1857
- name: "WithdrawFailed",
1858
- inputs: [],
1859
- },
1860
- ];
1861
- /** ABI for the Bundler3 Aave V2 migration adapter. */
1862
- exports.aaveV2MigrationAdapterAbi = [
1863
- ...exports.coreAdapterAbi,
1864
- {
1865
- type: "constructor",
1866
- inputs: [
1867
- {
1868
- name: "bundler3",
1869
- type: "address",
1870
- internalType: "address",
1871
- },
1872
- {
1873
- name: "aaveV2Pool",
1874
- type: "address",
1875
- internalType: "address",
1876
- },
1877
- ],
1878
- stateMutability: "nonpayable",
1879
- },
1880
- {
1881
- type: "function",
1882
- name: "aaveV2Repay",
1883
- inputs: [
1884
- {
1885
- name: "token",
1886
- type: "address",
1887
- internalType: "address",
1888
- },
1889
- {
1890
- name: "amount",
1891
- type: "uint256",
1892
- internalType: "uint256",
1893
- },
1894
- {
1895
- name: "interestRateMode",
1896
- type: "uint256",
1897
- internalType: "uint256",
1898
- },
1899
- {
1900
- name: "onBehalf",
1901
- type: "address",
1902
- internalType: "address",
1903
- },
1904
- ],
1905
- outputs: [],
1906
- stateMutability: "nonpayable",
1907
- },
1908
- {
1909
- type: "function",
1910
- name: "aaveV2Withdraw",
1911
- inputs: [
1912
- {
1913
- name: "token",
1914
- type: "address",
1915
- internalType: "address",
1916
- },
1917
- {
1918
- name: "amount",
1919
- type: "uint256",
1920
- internalType: "uint256",
1921
- },
1922
- {
1923
- name: "receiver",
1924
- type: "address",
1925
- internalType: "address",
1926
- },
1927
- ],
1928
- outputs: [],
1929
- stateMutability: "nonpayable",
1930
- },
1931
- ];
1932
- /** ABI for the Bundler3 Aave V3 migration adapter. */
1933
- exports.aaveV3MigrationAdapterAbi = [
1934
- ...exports.coreAdapterAbi,
1935
- {
1936
- type: "constructor",
1937
- inputs: [
1938
- {
1939
- name: "bundler3",
1940
- type: "address",
1941
- internalType: "address",
1942
- },
1943
- {
1944
- name: "aaveV3Pool",
1945
- type: "address",
1946
- internalType: "address",
1947
- },
1948
- ],
1949
- stateMutability: "nonpayable",
1950
- },
1951
- {
1952
- type: "function",
1953
- name: "aaveV3Repay",
1954
- inputs: [
1955
- {
1956
- name: "token",
1957
- type: "address",
1958
- internalType: "address",
1959
- },
1960
- {
1961
- name: "amount",
1962
- type: "uint256",
1963
- internalType: "uint256",
1964
- },
1965
- {
1966
- name: "interestRateMode",
1967
- type: "uint256",
1968
- internalType: "uint256",
1969
- },
1970
- {
1971
- name: "onBehalf",
1972
- type: "address",
1973
- internalType: "address",
1974
- },
1975
- ],
1976
- outputs: [],
1977
- stateMutability: "nonpayable",
1978
- },
1979
- {
1980
- type: "function",
1981
- name: "aaveV3Withdraw",
1982
- inputs: [
1983
- {
1984
- name: "token",
1985
- type: "address",
1986
- internalType: "address",
1987
- },
1988
- {
1989
- name: "amount",
1990
- type: "uint256",
1991
- internalType: "uint256",
1992
- },
1993
- {
1994
- name: "receiver",
1995
- type: "address",
1996
- internalType: "address",
1997
- },
1998
- ],
1999
- outputs: [],
2000
- stateMutability: "nonpayable",
2001
- },
2002
- ];
2003
- /** ABI for the Bundler3 Aave V3 Optimizer migration adapter. */
2004
- exports.aaveV3OptimizerMigrationAdapterAbi = [
2005
- ...exports.coreAdapterAbi,
2006
- {
2007
- type: "constructor",
2008
- inputs: [
2009
- {
2010
- name: "bundler3",
2011
- type: "address",
2012
- internalType: "address",
2013
- },
2014
- {
2015
- name: "aaveV3Optimizer",
2016
- type: "address",
2017
- internalType: "address",
2018
- },
2019
- ],
2020
- stateMutability: "nonpayable",
2021
- },
2022
- {
2023
- type: "function",
2024
- name: "aaveV3OptimizerRepay",
2025
- inputs: [
2026
- {
2027
- name: "underlying",
2028
- type: "address",
2029
- internalType: "address",
2030
- },
2031
- {
2032
- name: "amount",
2033
- type: "uint256",
2034
- internalType: "uint256",
2035
- },
2036
- {
2037
- name: "onBehalf",
2038
- type: "address",
2039
- internalType: "address",
2040
- },
2041
- ],
2042
- outputs: [],
2043
- stateMutability: "nonpayable",
2044
- },
2045
- {
2046
- type: "function",
2047
- name: "aaveV3OptimizerWithdraw",
2048
- inputs: [
2049
- {
2050
- name: "underlying",
2051
- type: "address",
2052
- internalType: "address",
2053
- },
2054
- {
2055
- name: "amount",
2056
- type: "uint256",
2057
- internalType: "uint256",
2058
- },
2059
- {
2060
- name: "maxIterations",
2061
- type: "uint256",
2062
- internalType: "uint256",
2063
- },
2064
- {
2065
- name: "receiver",
2066
- type: "address",
2067
- internalType: "address",
2068
- },
2069
- ],
2070
- outputs: [],
2071
- stateMutability: "nonpayable",
2072
- },
2073
- {
2074
- type: "function",
2075
- name: "aaveV3OptimizerWithdrawCollateral",
2076
- inputs: [
2077
- {
2078
- name: "underlying",
2079
- type: "address",
2080
- internalType: "address",
2081
- },
2082
- {
2083
- name: "amount",
2084
- type: "uint256",
2085
- internalType: "uint256",
2086
- },
2087
- {
2088
- name: "receiver",
2089
- type: "address",
2090
- internalType: "address",
2091
- },
2092
- ],
2093
- outputs: [],
2094
- stateMutability: "nonpayable",
2095
- },
2096
- ];
2097
- /** ABI for the Bundler3 Compound V2 migration adapter. */
2098
- exports.compoundV2MigrationAdapterAbi = [
2099
- ...exports.coreAdapterAbi,
2100
- {
2101
- type: "constructor",
2102
- inputs: [
2103
- {
2104
- name: "bundler3",
2105
- type: "address",
2106
- internalType: "address",
2107
- },
2108
- {
2109
- name: "cEth",
2110
- type: "address",
2111
- internalType: "address",
2112
- },
2113
- ],
2114
- stateMutability: "nonpayable",
2115
- },
2116
- {
2117
- type: "function",
2118
- name: "C_ETH",
2119
- inputs: [],
2120
- outputs: [
2121
- {
2122
- name: "",
2123
- type: "address",
2124
- internalType: "address",
2125
- },
2126
- ],
2127
- stateMutability: "view",
2128
- },
2129
- {
2130
- type: "function",
2131
- name: "compoundV2RedeemErc20",
2132
- inputs: [
2133
- {
2134
- name: "cToken",
2135
- type: "address",
2136
- internalType: "address",
2137
- },
2138
- {
2139
- name: "amount",
2140
- type: "uint256",
2141
- internalType: "uint256",
2142
- },
2143
- {
2144
- name: "receiver",
2145
- type: "address",
2146
- internalType: "address",
2147
- },
2148
- ],
2149
- outputs: [],
2150
- stateMutability: "nonpayable",
2151
- },
2152
- {
2153
- type: "function",
2154
- name: "compoundV2RedeemEth",
2155
- inputs: [
2156
- {
2157
- name: "amount",
2158
- type: "uint256",
2159
- internalType: "uint256",
2160
- },
2161
- {
2162
- name: "receiver",
2163
- type: "address",
2164
- internalType: "address",
2165
- },
2166
- ],
2167
- outputs: [],
2168
- stateMutability: "nonpayable",
2169
- },
2170
- {
2171
- type: "function",
2172
- name: "compoundV2RepayErc20",
2173
- inputs: [
2174
- {
2175
- name: "cToken",
2176
- type: "address",
2177
- internalType: "address",
2178
- },
2179
- {
2180
- name: "amount",
2181
- type: "uint256",
2182
- internalType: "uint256",
2183
- },
2184
- {
2185
- name: "onBehalf",
2186
- type: "address",
2187
- internalType: "address",
2188
- },
2189
- ],
2190
- outputs: [],
2191
- stateMutability: "nonpayable",
2192
- },
2193
- {
2194
- type: "function",
2195
- name: "compoundV2RepayEth",
2196
- inputs: [
2197
- {
2198
- name: "amount",
2199
- type: "uint256",
2200
- internalType: "uint256",
2201
- },
2202
- {
2203
- name: "onBehalf",
2204
- type: "address",
2205
- internalType: "address",
2206
- },
2207
- ],
2208
- outputs: [],
2209
- stateMutability: "nonpayable",
2210
- },
2211
- ];
2212
- /** ABI for the Bundler3 Compound V3 migration adapter. */
2213
- exports.compoundV3MigrationAdapterAbi = [
2214
- ...exports.coreAdapterAbi,
2215
- {
2216
- type: "constructor",
2217
- inputs: [
2218
- {
2219
- name: "bundler3",
2220
- type: "address",
2221
- internalType: "address",
2222
- },
2223
- ],
2224
- stateMutability: "nonpayable",
2225
- },
2226
- {
2227
- type: "function",
2228
- name: "compoundV3Repay",
2229
- inputs: [
2230
- {
2231
- name: "instance",
2232
- type: "address",
2233
- internalType: "address",
2234
- },
2235
- {
2236
- name: "amount",
2237
- type: "uint256",
2238
- internalType: "uint256",
2239
- },
2240
- {
2241
- name: "onBehalf",
2242
- type: "address",
2243
- internalType: "address",
2244
- },
2245
- ],
2246
- outputs: [],
2247
- stateMutability: "nonpayable",
2248
- },
2249
- {
2250
- type: "function",
2251
- name: "compoundV3WithdrawFrom",
2252
- inputs: [
2253
- {
2254
- name: "instance",
2255
- type: "address",
2256
- internalType: "address",
2257
- },
2258
- {
2259
- name: "asset",
2260
- type: "address",
2261
- internalType: "address",
2262
- },
2263
- {
2264
- name: "amount",
2265
- type: "uint256",
2266
- internalType: "uint256",
2267
- },
2268
- {
2269
- name: "receiver",
2270
- type: "address",
2271
- internalType: "address",
2272
- },
2273
- ],
2274
- outputs: [],
2275
- stateMutability: "nonpayable",
2276
- },
2277
- ];
2278
341
  /**
2279
342
  * Pinned ABI JSON for the five BlueBundlesV1 entrypoints used by high-level Morpho Blue writes.
2280
343
  *