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