@morpho-org/morpho-sdk 10.5.0 → 10.6.0-next.0

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 (192) hide show
  1. package/README.md +44 -1
  2. package/lib/cjs/abis.d.ts +794 -1
  3. package/lib/cjs/abis.js +815 -1
  4. package/lib/cjs/actions/blue/close.d.ts +169 -0
  5. package/lib/cjs/actions/blue/close.js +270 -0
  6. package/lib/cjs/actions/blue/common.js +2 -2
  7. package/lib/cjs/actions/blue/delever.d.ts +156 -0
  8. package/lib/cjs/actions/blue/delever.js +223 -0
  9. package/lib/cjs/actions/blue/index.d.ts +3 -0
  10. package/lib/cjs/actions/blue/index.js +3 -0
  11. package/lib/cjs/actions/blue/lever.d.ts +184 -0
  12. package/lib/cjs/actions/blue/lever.js +272 -0
  13. package/lib/cjs/actions/blue/leverageIntent.d.ts +65 -0
  14. package/lib/cjs/actions/blue/leverageIntent.js +103 -0
  15. package/lib/cjs/actions/requirements/blue/encodeLeverageAuthorization.d.ts +39 -0
  16. package/lib/cjs/actions/requirements/blue/encodeLeverageAuthorization.js +59 -0
  17. package/lib/cjs/actions/requirements/blue/getLeverageRequirements.d.ts +104 -0
  18. package/lib/cjs/actions/requirements/blue/getLeverageRequirements.js +193 -0
  19. package/lib/cjs/actions/requirements/blue/getLeverageRequirementsApproval.d.ts +45 -0
  20. package/lib/cjs/actions/requirements/blue/getLeverageRequirementsApproval.js +66 -0
  21. package/lib/cjs/actions/requirements/blue/index.d.ts +3 -0
  22. package/lib/cjs/actions/requirements/blue/index.js +17 -0
  23. package/lib/cjs/actions/requirements/encode/encodeErc20Approval.d.ts +2 -2
  24. package/lib/cjs/actions/requirements/encode/encodeErc20Approval.js +3 -2
  25. package/lib/cjs/actions/requirements/getRequirementsApproval.d.ts +11 -6
  26. package/lib/cjs/actions/requirements/getRequirementsApproval.js +29 -5
  27. package/lib/cjs/addresses.d.ts +1 -1
  28. package/lib/cjs/addresses.js +6 -1
  29. package/lib/cjs/blue/abis.d.ts +1 -1
  30. package/lib/cjs/blue/abis.js +5 -1
  31. package/lib/cjs/blue/addresses.d.ts +1 -1
  32. package/lib/cjs/blue/addresses.js +6 -1
  33. package/lib/cjs/blue/entities.d.ts +4 -4
  34. package/lib/cjs/blue/entities.js +3 -1
  35. package/lib/cjs/blue/errors.d.ts +2 -2
  36. package/lib/cjs/blue/errors.js +5 -1
  37. package/lib/cjs/blue/fetch.d.ts +2 -2
  38. package/lib/cjs/blue/fetch.js +3 -1
  39. package/lib/cjs/blue/utils.d.ts +1 -1
  40. package/lib/cjs/blue/utils.js +2 -1
  41. package/lib/cjs/constants.d.ts +1 -1
  42. package/lib/cjs/constants.js +6 -2
  43. package/lib/cjs/entities/blue/blue.d.ts +486 -2
  44. package/lib/cjs/entities/blue/blue.js +529 -34
  45. package/lib/cjs/entities/index.d.ts +5 -5
  46. package/lib/cjs/entities/index.js +3 -1
  47. package/lib/cjs/entities/requirements/assertContractCode.d.ts +0 -23
  48. package/lib/cjs/entities/requirements/assertContractCode.js +3 -28
  49. package/lib/cjs/entities/vaultV2/vaultV2.d.ts +34 -8
  50. package/lib/cjs/entities/vaultV2/vaultV2.js +39 -1
  51. package/lib/cjs/entities/vaultV2BlueReallocationData.d.ts +120 -2
  52. package/lib/cjs/entities/vaultV2BlueReallocationData.js +232 -4
  53. package/lib/cjs/errors.d.ts +4 -4
  54. package/lib/cjs/errors.js +7 -5
  55. package/lib/cjs/fetch.d.ts +2 -2
  56. package/lib/cjs/fetch.js +3 -1
  57. package/lib/cjs/helpers/constant.d.ts +34 -0
  58. package/lib/cjs/helpers/constant.js +35 -1
  59. package/lib/cjs/helpers/deadShares.js +3 -0
  60. package/lib/cjs/helpers/getZeroExLeverageBundle.d.ts +13 -0
  61. package/lib/cjs/helpers/getZeroExLeverageBundle.js +27 -0
  62. package/lib/cjs/helpers/index.d.ts +4 -1
  63. package/lib/cjs/helpers/index.js +28 -1
  64. package/lib/cjs/helpers/leverage/index.d.ts +1 -0
  65. package/lib/cjs/helpers/leverage/index.js +11 -0
  66. package/lib/cjs/helpers/leverage/limits.d.ts +472 -0
  67. package/lib/cjs/helpers/leverage/limits.js +715 -0
  68. package/lib/cjs/helpers/leverage/positionMarket.d.ts +17 -0
  69. package/lib/cjs/helpers/leverage/positionMarket.js +28 -0
  70. package/lib/cjs/helpers/leverage/reallocations.d.ts +159 -0
  71. package/lib/cjs/helpers/leverage/reallocations.js +276 -0
  72. package/lib/cjs/helpers/validateRequirementSpender.d.ts +1 -1
  73. package/lib/cjs/helpers/validateRequirementSpender.js +4 -0
  74. package/lib/cjs/helpers/zeroExQuote.d.ts +250 -0
  75. package/lib/cjs/helpers/zeroExQuote.js +763 -0
  76. package/lib/cjs/index.d.ts +1 -0
  77. package/lib/cjs/index.js +5 -2
  78. package/lib/cjs/midnight/errors.d.ts +2 -1
  79. package/lib/cjs/midnight/errors.js +5 -4
  80. package/lib/cjs/reads/assertContractCode.d.ts +25 -0
  81. package/lib/cjs/reads/assertContractCode.js +30 -0
  82. package/lib/cjs/reads/fetchZeroExQuote.d.ts +123 -0
  83. package/lib/cjs/reads/fetchZeroExQuote.js +330 -0
  84. package/lib/cjs/types/action.d.ts +130 -1
  85. package/lib/cjs/types/error.d.ts +59 -0
  86. package/lib/cjs/types/error.js +82 -3
  87. package/lib/cjs/types/index.d.ts +2 -0
  88. package/lib/cjs/types/index.js +2 -0
  89. package/lib/cjs/types/leverageError.d.ts +1552 -0
  90. package/lib/cjs/types/leverageError.js +1711 -0
  91. package/lib/cjs/types/zeroEx.d.ts +171 -0
  92. package/lib/cjs/types/zeroEx.js +2 -0
  93. package/lib/cjs/utils.d.ts +2 -2
  94. package/lib/cjs/utils.js +4 -2
  95. package/lib/cjs/version.d.ts +1 -1
  96. package/lib/cjs/version.js +1 -1
  97. package/lib/esm/abis.d.ts +794 -1
  98. package/lib/esm/abis.js +810 -1
  99. package/lib/esm/actions/blue/close.d.ts +169 -0
  100. package/lib/esm/actions/blue/close.js +266 -0
  101. package/lib/esm/actions/blue/common.js +3 -3
  102. package/lib/esm/actions/blue/delever.d.ts +156 -0
  103. package/lib/esm/actions/blue/delever.js +219 -0
  104. package/lib/esm/actions/blue/index.d.ts +3 -0
  105. package/lib/esm/actions/blue/index.js +3 -0
  106. package/lib/esm/actions/blue/lever.d.ts +184 -0
  107. package/lib/esm/actions/blue/lever.js +268 -0
  108. package/lib/esm/actions/blue/leverageIntent.d.ts +65 -0
  109. package/lib/esm/actions/blue/leverageIntent.js +96 -0
  110. package/lib/esm/actions/requirements/blue/encodeLeverageAuthorization.d.ts +39 -0
  111. package/lib/esm/actions/requirements/blue/encodeLeverageAuthorization.js +55 -0
  112. package/lib/esm/actions/requirements/blue/getLeverageRequirements.d.ts +104 -0
  113. package/lib/esm/actions/requirements/blue/getLeverageRequirements.js +189 -0
  114. package/lib/esm/actions/requirements/blue/getLeverageRequirementsApproval.d.ts +45 -0
  115. package/lib/esm/actions/requirements/blue/getLeverageRequirementsApproval.js +62 -0
  116. package/lib/esm/actions/requirements/blue/index.d.ts +3 -0
  117. package/lib/esm/actions/requirements/blue/index.js +3 -0
  118. package/lib/esm/actions/requirements/encode/encodeErc20Approval.d.ts +2 -2
  119. package/lib/esm/actions/requirements/encode/encodeErc20Approval.js +3 -2
  120. package/lib/esm/actions/requirements/getRequirementsApproval.d.ts +11 -6
  121. package/lib/esm/actions/requirements/getRequirementsApproval.js +29 -5
  122. package/lib/esm/addresses.d.ts +1 -1
  123. package/lib/esm/addresses.js +1 -1
  124. package/lib/esm/blue/abis.d.ts +1 -1
  125. package/lib/esm/blue/abis.js +1 -1
  126. package/lib/esm/blue/addresses.d.ts +1 -1
  127. package/lib/esm/blue/addresses.js +1 -1
  128. package/lib/esm/blue/entities.d.ts +4 -4
  129. package/lib/esm/blue/entities.js +2 -2
  130. package/lib/esm/blue/errors.d.ts +2 -2
  131. package/lib/esm/blue/errors.js +2 -2
  132. package/lib/esm/blue/fetch.d.ts +2 -2
  133. package/lib/esm/blue/fetch.js +2 -2
  134. package/lib/esm/blue/utils.d.ts +1 -1
  135. package/lib/esm/blue/utils.js +1 -1
  136. package/lib/esm/constants.d.ts +1 -1
  137. package/lib/esm/constants.js +1 -1
  138. package/lib/esm/entities/blue/blue.d.ts +486 -2
  139. package/lib/esm/entities/blue/blue.js +501 -6
  140. package/lib/esm/entities/index.d.ts +5 -5
  141. package/lib/esm/entities/index.js +2 -2
  142. package/lib/esm/entities/requirements/assertContractCode.d.ts +0 -23
  143. package/lib/esm/entities/requirements/assertContractCode.js +1 -25
  144. package/lib/esm/entities/vaultV2/vaultV2.d.ts +34 -8
  145. package/lib/esm/entities/vaultV2/vaultV2.js +40 -2
  146. package/lib/esm/entities/vaultV2BlueReallocationData.d.ts +120 -2
  147. package/lib/esm/entities/vaultV2BlueReallocationData.js +233 -5
  148. package/lib/esm/errors.d.ts +4 -4
  149. package/lib/esm/errors.js +4 -4
  150. package/lib/esm/fetch.d.ts +2 -2
  151. package/lib/esm/fetch.js +2 -2
  152. package/lib/esm/helpers/constant.d.ts +34 -0
  153. package/lib/esm/helpers/constant.js +34 -0
  154. package/lib/esm/helpers/deadShares.js +4 -1
  155. package/lib/esm/helpers/getZeroExLeverageBundle.d.ts +13 -0
  156. package/lib/esm/helpers/getZeroExLeverageBundle.js +23 -0
  157. package/lib/esm/helpers/index.d.ts +4 -1
  158. package/lib/esm/helpers/index.js +4 -1
  159. package/lib/esm/helpers/leverage/index.d.ts +1 -0
  160. package/lib/esm/helpers/leverage/index.js +1 -0
  161. package/lib/esm/helpers/leverage/limits.d.ts +472 -0
  162. package/lib/esm/helpers/leverage/limits.js +705 -0
  163. package/lib/esm/helpers/leverage/positionMarket.d.ts +17 -0
  164. package/lib/esm/helpers/leverage/positionMarket.js +24 -0
  165. package/lib/esm/helpers/leverage/reallocations.d.ts +159 -0
  166. package/lib/esm/helpers/leverage/reallocations.js +271 -0
  167. package/lib/esm/helpers/validateRequirementSpender.d.ts +1 -1
  168. package/lib/esm/helpers/validateRequirementSpender.js +5 -1
  169. package/lib/esm/helpers/zeroExQuote.d.ts +250 -0
  170. package/lib/esm/helpers/zeroExQuote.js +754 -0
  171. package/lib/esm/index.d.ts +1 -0
  172. package/lib/esm/index.js +1 -0
  173. package/lib/esm/midnight/errors.d.ts +2 -1
  174. package/lib/esm/midnight/errors.js +2 -1
  175. package/lib/esm/reads/assertContractCode.d.ts +25 -0
  176. package/lib/esm/reads/assertContractCode.js +26 -0
  177. package/lib/esm/reads/fetchZeroExQuote.d.ts +123 -0
  178. package/lib/esm/reads/fetchZeroExQuote.js +326 -0
  179. package/lib/esm/types/action.d.ts +130 -1
  180. package/lib/esm/types/error.d.ts +59 -0
  181. package/lib/esm/types/error.js +76 -0
  182. package/lib/esm/types/index.d.ts +2 -0
  183. package/lib/esm/types/index.js +2 -0
  184. package/lib/esm/types/leverageError.d.ts +1552 -0
  185. package/lib/esm/types/leverageError.js +1660 -0
  186. package/lib/esm/types/zeroEx.d.ts +171 -0
  187. package/lib/esm/types/zeroEx.js +1 -0
  188. package/lib/esm/utils.d.ts +2 -2
  189. package/lib/esm/utils.js +2 -2
  190. package/lib/esm/version.d.ts +1 -1
  191. package/lib/esm/version.js +1 -1
  192. package/package.json +7 -7
package/lib/cjs/abis.d.ts CHANGED
@@ -33,7 +33,7 @@ export declare const bundlesPermitParameters: {
33
33
  }];
34
34
  };
35
35
  export { marketParamsAbi as blueMarketParamsAbi } from "@morpho-org/blue-sdk";
36
- export { adaptiveCurveIrmAbi as blueAdaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc3643Abi, erc3643IdentityRegistryAbi, erc5267Abi, metaMorphoAbi, metaMorphoFactoryAbi, morphoMarketV1AdapterAbi, morphoMarketV1AdapterFactoryAbi, morphoMarketV1AdapterV2Abi, morphoMarketV1AdapterV2FactoryAbi, morphoVaultV1AdapterAbi, morphoVaultV1AdapterFactoryAbi, permissionedErc20WrapperAbi, permit2Abi,
36
+ export { adaptiveCurveIrmAbi as blueAdaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc3643Abi, erc3643IdentityRegistryAbi, erc5267Abi, metaMorphoAbi, metaMorphoFactoryAbi, midnightAdapterAbi, midnightAdapterFactoryAbi, midnightAdapterPriceRatifierV1Abi, midnightAdapterRateRatifierV1Abi, morphoMarketV1AdapterAbi, morphoMarketV1AdapterFactoryAbi, morphoMarketV1AdapterV2Abi, morphoMarketV1AdapterV2FactoryAbi, morphoVaultV1AdapterAbi, morphoVaultV1AdapterFactoryAbi, permissionedErc20WrapperAbi, permit2Abi,
37
37
  /** @deprecated Pre-liquidation support is deprecated and will be removed in the next major. */
38
38
  preLiquidationAbi as bluePreLiquidationAbi,
39
39
  /** @deprecated Pre-liquidation support is deprecated and will be removed in the next major. */
@@ -1105,3 +1105,796 @@ export declare const blueBundlesV1Abi: readonly [{
1105
1105
  }];
1106
1106
  readonly outputs: readonly [];
1107
1107
  }];
1108
+ /**
1109
+ * Pinned ABI for the ZeroExLeverageBundlesV1 periphery contract: Morpho Blue lever, delever and close in one
1110
+ * transaction, swapping through 0x AllowanceHolder.
1111
+ *
1112
+ * Generated with `forge inspect` from `morpho-org/bundles` commit `3bf53141455051f8fc7a85cd00cc15bd89459238`,
1113
+ * `src/leverage/ZeroExLeverageBundlesV1.sol`: its constructor, getters, Morpho callbacks, three entry points,
1114
+ * `PublicAllocations` struct and custom errors, including those raised by `TokenLib`.
1115
+ *
1116
+ * @see https://github.com/morpho-org/bundles/blob/3bf53141455051f8fc7a85cd00cc15bd89459238/src/leverage/ZeroExLeverageBundlesV1.sol
1117
+ * @example
1118
+ * ```ts
1119
+ * import { zeroExLeverageBundlesV1Abi } from "@morpho-org/morpho-sdk/abis";
1120
+ *
1121
+ * console.log(zeroExLeverageBundlesV1Abi.length);
1122
+ * ```
1123
+ */
1124
+ export declare const zeroExLeverageBundlesV1Abi: readonly [{
1125
+ readonly type: "constructor";
1126
+ readonly inputs: readonly [{
1127
+ readonly name: "_blue";
1128
+ readonly type: "address";
1129
+ readonly internalType: "address";
1130
+ }, {
1131
+ readonly name: "_publicAllocator";
1132
+ readonly type: "address";
1133
+ readonly internalType: "address";
1134
+ }];
1135
+ readonly stateMutability: "nonpayable";
1136
+ }, {
1137
+ readonly type: "error";
1138
+ readonly name: "ApproveReturnedFalse";
1139
+ readonly inputs: readonly [];
1140
+ }, {
1141
+ readonly type: "error";
1142
+ readonly name: "DeadlinePassed";
1143
+ readonly inputs: readonly [];
1144
+ }, {
1145
+ readonly type: "error";
1146
+ readonly name: "ExcessiveInput";
1147
+ readonly inputs: readonly [];
1148
+ }, {
1149
+ readonly type: "error";
1150
+ readonly name: "InconsistentBorrowInput";
1151
+ readonly inputs: readonly [];
1152
+ }, {
1153
+ readonly type: "error";
1154
+ readonly name: "InconsistentPenaltyAssets";
1155
+ readonly inputs: readonly [];
1156
+ }, {
1157
+ readonly type: "error";
1158
+ readonly name: "InconsistentTokens";
1159
+ readonly inputs: readonly [];
1160
+ }, {
1161
+ readonly type: "error";
1162
+ readonly name: "InsufficientOutput";
1163
+ readonly inputs: readonly [];
1164
+ }, {
1165
+ readonly type: "error";
1166
+ readonly name: "LtvExceeded";
1167
+ readonly inputs: readonly [];
1168
+ }, {
1169
+ readonly type: "error";
1170
+ readonly name: "NoCode";
1171
+ readonly inputs: readonly [];
1172
+ }, {
1173
+ readonly type: "error";
1174
+ readonly name: "Reentrancy";
1175
+ readonly inputs: readonly [];
1176
+ }, {
1177
+ readonly type: "error";
1178
+ readonly name: "TransferFromReturnedFalse";
1179
+ readonly inputs: readonly [];
1180
+ }, {
1181
+ readonly type: "error";
1182
+ readonly name: "TransferReturnedFalse";
1183
+ readonly inputs: readonly [];
1184
+ }, {
1185
+ readonly type: "error";
1186
+ readonly name: "UnauthorizedCallback";
1187
+ readonly inputs: readonly [];
1188
+ }, {
1189
+ readonly type: "error";
1190
+ readonly name: "ZeroMinCollateralToBuy";
1191
+ readonly inputs: readonly [];
1192
+ }, {
1193
+ readonly type: "function";
1194
+ readonly name: "ALLOWANCE_HOLDER";
1195
+ readonly inputs: readonly [];
1196
+ readonly outputs: readonly [{
1197
+ readonly name: "";
1198
+ readonly type: "address";
1199
+ readonly internalType: "address";
1200
+ }];
1201
+ readonly stateMutability: "view";
1202
+ }, {
1203
+ readonly type: "function";
1204
+ readonly name: "BLUE";
1205
+ readonly inputs: readonly [];
1206
+ readonly outputs: readonly [{
1207
+ readonly name: "";
1208
+ readonly type: "address";
1209
+ readonly internalType: "address";
1210
+ }];
1211
+ readonly stateMutability: "view";
1212
+ }, {
1213
+ readonly type: "function";
1214
+ readonly name: "PUBLIC_ALLOCATOR";
1215
+ readonly inputs: readonly [];
1216
+ readonly outputs: readonly [{
1217
+ readonly name: "";
1218
+ readonly type: "address";
1219
+ readonly internalType: "address";
1220
+ }];
1221
+ readonly stateMutability: "view";
1222
+ }, {
1223
+ readonly type: "function";
1224
+ readonly name: "onMorphoFlashLoan";
1225
+ readonly inputs: readonly [{
1226
+ readonly name: "";
1227
+ readonly type: "uint256";
1228
+ readonly internalType: "uint256";
1229
+ }, {
1230
+ readonly name: "flashLoanData";
1231
+ readonly type: "bytes";
1232
+ readonly internalType: "bytes";
1233
+ }];
1234
+ readonly outputs: readonly [];
1235
+ readonly stateMutability: "nonpayable";
1236
+ }, {
1237
+ readonly type: "function";
1238
+ readonly name: "onMorphoRepay";
1239
+ readonly inputs: readonly [{
1240
+ readonly name: "assets";
1241
+ readonly type: "uint256";
1242
+ readonly internalType: "uint256";
1243
+ }, {
1244
+ readonly name: "repayData";
1245
+ readonly type: "bytes";
1246
+ readonly internalType: "bytes";
1247
+ }];
1248
+ readonly outputs: readonly [];
1249
+ readonly stateMutability: "nonpayable";
1250
+ }, {
1251
+ readonly type: "function";
1252
+ readonly name: "onMorphoSupplyCollateral";
1253
+ readonly inputs: readonly [{
1254
+ readonly name: "";
1255
+ readonly type: "uint256";
1256
+ readonly internalType: "uint256";
1257
+ }, {
1258
+ readonly name: "leverData";
1259
+ readonly type: "bytes";
1260
+ readonly internalType: "bytes";
1261
+ }];
1262
+ readonly outputs: readonly [];
1263
+ readonly stateMutability: "nonpayable";
1264
+ }, {
1265
+ readonly type: "function";
1266
+ readonly name: "zeroExLeverageBundlesV1Close";
1267
+ readonly inputs: readonly [{
1268
+ readonly name: "marketParams";
1269
+ readonly type: "tuple";
1270
+ readonly internalType: "struct MarketParams";
1271
+ readonly components: readonly [{
1272
+ readonly name: "loanToken";
1273
+ readonly type: "address";
1274
+ readonly internalType: "address";
1275
+ }, {
1276
+ readonly name: "collateralToken";
1277
+ readonly type: "address";
1278
+ readonly internalType: "address";
1279
+ }, {
1280
+ readonly name: "oracle";
1281
+ readonly type: "address";
1282
+ readonly internalType: "address";
1283
+ }, {
1284
+ readonly name: "irm";
1285
+ readonly type: "address";
1286
+ readonly internalType: "address";
1287
+ }, {
1288
+ readonly name: "lltv";
1289
+ readonly type: "uint256";
1290
+ readonly internalType: "uint256";
1291
+ }];
1292
+ }, {
1293
+ readonly name: "maxCollateralIn";
1294
+ readonly type: "uint256";
1295
+ readonly internalType: "uint256";
1296
+ }, {
1297
+ readonly name: "minLoanOut";
1298
+ readonly type: "uint256";
1299
+ readonly internalType: "uint256";
1300
+ }, {
1301
+ readonly name: "swapData";
1302
+ readonly type: "bytes";
1303
+ readonly internalType: "bytes";
1304
+ }, {
1305
+ readonly name: "deadline";
1306
+ readonly type: "uint256";
1307
+ readonly internalType: "uint256";
1308
+ }];
1309
+ readonly outputs: readonly [];
1310
+ readonly stateMutability: "nonpayable";
1311
+ }, {
1312
+ readonly type: "function";
1313
+ readonly name: "zeroExLeverageBundlesV1Delever";
1314
+ readonly inputs: readonly [{
1315
+ readonly name: "marketParams";
1316
+ readonly type: "tuple";
1317
+ readonly internalType: "struct MarketParams";
1318
+ readonly components: readonly [{
1319
+ readonly name: "loanToken";
1320
+ readonly type: "address";
1321
+ readonly internalType: "address";
1322
+ }, {
1323
+ readonly name: "collateralToken";
1324
+ readonly type: "address";
1325
+ readonly internalType: "address";
1326
+ }, {
1327
+ readonly name: "oracle";
1328
+ readonly type: "address";
1329
+ readonly internalType: "address";
1330
+ }, {
1331
+ readonly name: "irm";
1332
+ readonly type: "address";
1333
+ readonly internalType: "address";
1334
+ }, {
1335
+ readonly name: "lltv";
1336
+ readonly type: "uint256";
1337
+ readonly internalType: "uint256";
1338
+ }];
1339
+ }, {
1340
+ readonly name: "maxCollateralToSell";
1341
+ readonly type: "uint256";
1342
+ readonly internalType: "uint256";
1343
+ }, {
1344
+ readonly name: "minRepayAssets";
1345
+ readonly type: "uint256";
1346
+ readonly internalType: "uint256";
1347
+ }, {
1348
+ readonly name: "swapData";
1349
+ readonly type: "bytes";
1350
+ readonly internalType: "bytes";
1351
+ }, {
1352
+ readonly name: "maxLtv";
1353
+ readonly type: "uint256";
1354
+ readonly internalType: "uint256";
1355
+ }, {
1356
+ readonly name: "deadline";
1357
+ readonly type: "uint256";
1358
+ readonly internalType: "uint256";
1359
+ }];
1360
+ readonly outputs: readonly [];
1361
+ readonly stateMutability: "nonpayable";
1362
+ }, {
1363
+ readonly type: "function";
1364
+ readonly name: "zeroExLeverageBundlesV1Lever";
1365
+ readonly inputs: readonly [{
1366
+ readonly name: "marketParams";
1367
+ readonly type: "tuple";
1368
+ readonly internalType: "struct MarketParams";
1369
+ readonly components: readonly [{
1370
+ readonly name: "loanToken";
1371
+ readonly type: "address";
1372
+ readonly internalType: "address";
1373
+ }, {
1374
+ readonly name: "collateralToken";
1375
+ readonly type: "address";
1376
+ readonly internalType: "address";
1377
+ }, {
1378
+ readonly name: "oracle";
1379
+ readonly type: "address";
1380
+ readonly internalType: "address";
1381
+ }, {
1382
+ readonly name: "irm";
1383
+ readonly type: "address";
1384
+ readonly internalType: "address";
1385
+ }, {
1386
+ readonly name: "lltv";
1387
+ readonly type: "uint256";
1388
+ readonly internalType: "uint256";
1389
+ }];
1390
+ }, {
1391
+ readonly name: "collateralAssets";
1392
+ readonly type: "uint256";
1393
+ readonly internalType: "uint256";
1394
+ }, {
1395
+ readonly name: "loanAssets";
1396
+ readonly type: "uint256";
1397
+ readonly internalType: "uint256";
1398
+ }, {
1399
+ readonly name: "minCollateralToBuy";
1400
+ readonly type: "uint256";
1401
+ readonly internalType: "uint256";
1402
+ }, {
1403
+ readonly name: "maxBorrowAssets";
1404
+ readonly type: "uint256";
1405
+ readonly internalType: "uint256";
1406
+ }, {
1407
+ readonly name: "swapData";
1408
+ readonly type: "bytes";
1409
+ readonly internalType: "bytes";
1410
+ }, {
1411
+ readonly name: "maxLtv";
1412
+ readonly type: "uint256";
1413
+ readonly internalType: "uint256";
1414
+ }, {
1415
+ readonly name: "reallocations";
1416
+ readonly type: "tuple[]";
1417
+ readonly internalType: "struct PublicAllocations[]";
1418
+ readonly components: readonly [{
1419
+ readonly name: "vault";
1420
+ readonly type: "address";
1421
+ readonly internalType: "address";
1422
+ }, {
1423
+ readonly name: "adapter";
1424
+ readonly type: "address";
1425
+ readonly internalType: "address";
1426
+ }, {
1427
+ readonly name: "marketParams";
1428
+ readonly type: "tuple";
1429
+ readonly internalType: "struct MarketParams";
1430
+ readonly components: readonly [{
1431
+ readonly name: "loanToken";
1432
+ readonly type: "address";
1433
+ readonly internalType: "address";
1434
+ }, {
1435
+ readonly name: "collateralToken";
1436
+ readonly type: "address";
1437
+ readonly internalType: "address";
1438
+ }, {
1439
+ readonly name: "oracle";
1440
+ readonly type: "address";
1441
+ readonly internalType: "address";
1442
+ }, {
1443
+ readonly name: "irm";
1444
+ readonly type: "address";
1445
+ readonly internalType: "address";
1446
+ }, {
1447
+ readonly name: "lltv";
1448
+ readonly type: "uint256";
1449
+ readonly internalType: "uint256";
1450
+ }];
1451
+ }, {
1452
+ readonly name: "fromIdle";
1453
+ readonly type: "bool";
1454
+ readonly internalType: "bool";
1455
+ }, {
1456
+ readonly name: "sourceAdapter";
1457
+ readonly type: "address";
1458
+ readonly internalType: "address";
1459
+ }, {
1460
+ readonly name: "sourceMarketParams";
1461
+ readonly type: "tuple";
1462
+ readonly internalType: "struct MarketParams";
1463
+ readonly components: readonly [{
1464
+ readonly name: "loanToken";
1465
+ readonly type: "address";
1466
+ readonly internalType: "address";
1467
+ }, {
1468
+ readonly name: "collateralToken";
1469
+ readonly type: "address";
1470
+ readonly internalType: "address";
1471
+ }, {
1472
+ readonly name: "oracle";
1473
+ readonly type: "address";
1474
+ readonly internalType: "address";
1475
+ }, {
1476
+ readonly name: "irm";
1477
+ readonly type: "address";
1478
+ readonly internalType: "address";
1479
+ }, {
1480
+ readonly name: "lltv";
1481
+ readonly type: "uint256";
1482
+ readonly internalType: "uint256";
1483
+ }];
1484
+ }, {
1485
+ readonly name: "assets";
1486
+ readonly type: "uint128";
1487
+ readonly internalType: "uint128";
1488
+ }, {
1489
+ readonly name: "penalty";
1490
+ readonly type: "uint64";
1491
+ readonly internalType: "uint64";
1492
+ }];
1493
+ }, {
1494
+ readonly name: "penaltyAssets";
1495
+ readonly type: "uint256";
1496
+ readonly internalType: "uint256";
1497
+ }, {
1498
+ readonly name: "deadline";
1499
+ readonly type: "uint256";
1500
+ readonly internalType: "uint256";
1501
+ }, {
1502
+ readonly name: "wrappedNative";
1503
+ readonly type: "address";
1504
+ readonly internalType: "address";
1505
+ }];
1506
+ readonly outputs: readonly [];
1507
+ readonly stateMutability: "payable";
1508
+ }];
1509
+ /**
1510
+ * Pinned ABI fragment for 0x AllowanceHolder `exec`, the call a 0x allowance-holder quote's `transaction.data` encodes.
1511
+ *
1512
+ * Source: `0xProject/0x-settler` commit `f7340e6237146b2dfd40a40b3efeea527e4eb689`,
1513
+ * `src/allowanceholder/IAllowanceHolder.sol`.
1514
+ *
1515
+ * @see https://github.com/0xProject/0x-settler/blob/f7340e6237146b2dfd40a40b3efeea527e4eb689/src/allowanceholder/IAllowanceHolder.sol
1516
+ * @example
1517
+ * ```ts
1518
+ * import { zeroExAllowanceHolderAbi } from "@morpho-org/morpho-sdk/abis";
1519
+ * import { decodeFunctionData, encodeFunctionData, zeroAddress } from "viem";
1520
+ *
1521
+ * // A 0x allowance-holder quote's `transaction.data` has this shape.
1522
+ * const data = encodeFunctionData({
1523
+ * abi: zeroExAllowanceHolderAbi,
1524
+ * functionName: "exec",
1525
+ * args: [zeroAddress, zeroAddress, 1n, zeroAddress, "0x"],
1526
+ * });
1527
+ * const { args } = decodeFunctionData({ abi: zeroExAllowanceHolderAbi, data });
1528
+ * // args: [operator, token, amount, target, data], here [zeroAddress, zeroAddress, 1n, zeroAddress, "0x"]
1529
+ * ```
1530
+ */
1531
+ export declare const zeroExAllowanceHolderAbi: readonly [{
1532
+ readonly type: "function";
1533
+ readonly name: "exec";
1534
+ readonly inputs: readonly [{
1535
+ readonly name: "operator";
1536
+ readonly type: "address";
1537
+ readonly internalType: "address";
1538
+ }, {
1539
+ readonly name: "token";
1540
+ readonly type: "address";
1541
+ readonly internalType: "address";
1542
+ }, {
1543
+ readonly name: "amount";
1544
+ readonly type: "uint256";
1545
+ readonly internalType: "uint256";
1546
+ }, {
1547
+ readonly name: "target";
1548
+ readonly type: "address";
1549
+ readonly internalType: "address payable";
1550
+ }, {
1551
+ readonly name: "data";
1552
+ readonly type: "bytes";
1553
+ readonly internalType: "bytes";
1554
+ }];
1555
+ readonly outputs: readonly [{
1556
+ readonly name: "result";
1557
+ readonly type: "bytes";
1558
+ readonly internalType: "bytes";
1559
+ }];
1560
+ readonly stateMutability: "payable";
1561
+ }];
1562
+ /**
1563
+ * Pinned ABI fragment for the taker-submitted 0x Settler `execute`, the call AllowanceHolder forwards to Settler.
1564
+ *
1565
+ * Source: `0xProject/0x-settler` commit `f7340e6237146b2dfd40a40b3efeea527e4eb689`,
1566
+ * `src/interfaces/ISettlerTakerSubmitted.sol` and the `AllowedSlippage` struct of `src/interfaces/ISettlerBase.sol`.
1567
+ *
1568
+ * @see https://github.com/0xProject/0x-settler/blob/f7340e6237146b2dfd40a40b3efeea527e4eb689/src/interfaces/ISettlerTakerSubmitted.sol
1569
+ * @example
1570
+ * ```ts
1571
+ * import { zeroExSettlerAbi } from "@morpho-org/morpho-sdk/abis";
1572
+ * import { decodeFunctionData, encodeFunctionData, zeroAddress, zeroHash } from "viem";
1573
+ *
1574
+ * // The `data` argument of AllowanceHolder `exec` carries a Settler call of this shape.
1575
+ * const settlerCalldata = encodeFunctionData({
1576
+ * abi: zeroExSettlerAbi,
1577
+ * functionName: "execute",
1578
+ * args: [{ recipient: zeroAddress, buyToken: zeroAddress, minAmountOut: 1n }, [], zeroHash],
1579
+ * });
1580
+ * const { args } = decodeFunctionData({ abi: zeroExSettlerAbi, data: settlerCalldata });
1581
+ * // args[0]: { recipient, buyToken, minAmountOut }, here minAmountOut === 1n
1582
+ * ```
1583
+ */
1584
+ export declare const zeroExSettlerAbi: readonly [{
1585
+ readonly type: "function";
1586
+ readonly name: "execute";
1587
+ readonly inputs: readonly [{
1588
+ readonly name: "slippage";
1589
+ readonly type: "tuple";
1590
+ readonly internalType: "struct ISettlerBase.AllowedSlippage";
1591
+ readonly components: readonly [{
1592
+ readonly name: "recipient";
1593
+ readonly type: "address";
1594
+ readonly internalType: "address payable";
1595
+ }, {
1596
+ readonly name: "buyToken";
1597
+ readonly type: "address";
1598
+ readonly internalType: "contract IERC20";
1599
+ }, {
1600
+ readonly name: "minAmountOut";
1601
+ readonly type: "uint256";
1602
+ readonly internalType: "uint256";
1603
+ }];
1604
+ }, {
1605
+ readonly name: "actions";
1606
+ readonly type: "bytes[]";
1607
+ readonly internalType: "bytes[]";
1608
+ }, {
1609
+ readonly name: "";
1610
+ readonly type: "bytes32";
1611
+ readonly internalType: "bytes32";
1612
+ }];
1613
+ readonly outputs: readonly [{
1614
+ readonly name: "";
1615
+ readonly type: "bool";
1616
+ readonly internalType: "bool";
1617
+ }];
1618
+ readonly stateMutability: "payable";
1619
+ }];
1620
+ /**
1621
+ * Pinned ABI fragments for the 0x Settler entry points ZeroExLeverageBundlesV1 cannot use: `executeWithPermit` and
1622
+ * `executeMetaTxn`. Calldata that decodes as one of them is a decoded inconsistency, which `validateZeroExQuote`
1623
+ * refuses, not an undecodable layer.
1624
+ *
1625
+ * Source: `0xProject/0x-settler` commit `f7340e6237146b2dfd40a40b3efeea527e4eb689`,
1626
+ * `src/interfaces/ISettlerTakerSubmitted.sol` (`executeWithPermit`, implemented at `src/Settler.sol:134`) and
1627
+ * `src/interfaces/ISettlerMetaTxn.sol` (`executeMetaTxn`, implemented at `src/SettlerMetaTxn.sol:155`).
1628
+ *
1629
+ * @see https://github.com/0xProject/0x-settler/blob/f7340e6237146b2dfd40a40b3efeea527e4eb689/src/interfaces/ISettlerMetaTxn.sol
1630
+ * @example
1631
+ * ```ts
1632
+ * import { zeroExSettlerOtherEntryPointsAbi } from "@morpho-org/morpho-sdk/abis";
1633
+ * import { decodeFunctionData, encodeFunctionData, zeroAddress, zeroHash } from "viem";
1634
+ *
1635
+ * const settlerCalldata = encodeFunctionData({
1636
+ * abi: zeroExSettlerOtherEntryPointsAbi,
1637
+ * functionName: "executeWithPermit",
1638
+ * args: [{ recipient: zeroAddress, buyToken: zeroAddress, minAmountOut: 1n }, [], zeroHash, "0x"],
1639
+ * });
1640
+ * const { functionName } = decodeFunctionData({ abi: zeroExSettlerOtherEntryPointsAbi, data: settlerCalldata });
1641
+ * // "executeWithPermit"; calldata for the other entry point decodes as "executeMetaTxn"
1642
+ * ```
1643
+ */
1644
+ export declare const zeroExSettlerOtherEntryPointsAbi: readonly [{
1645
+ readonly type: "function";
1646
+ readonly name: "executeWithPermit";
1647
+ readonly inputs: readonly [{
1648
+ readonly name: "slippage";
1649
+ readonly type: "tuple";
1650
+ readonly internalType: "struct ISettlerBase.AllowedSlippage";
1651
+ readonly components: readonly [{
1652
+ readonly name: "recipient";
1653
+ readonly type: "address";
1654
+ readonly internalType: "address payable";
1655
+ }, {
1656
+ readonly name: "buyToken";
1657
+ readonly type: "address";
1658
+ readonly internalType: "contract IERC20";
1659
+ }, {
1660
+ readonly name: "minAmountOut";
1661
+ readonly type: "uint256";
1662
+ readonly internalType: "uint256";
1663
+ }];
1664
+ }, {
1665
+ readonly name: "actions";
1666
+ readonly type: "bytes[]";
1667
+ readonly internalType: "bytes[]";
1668
+ }, {
1669
+ readonly name: "";
1670
+ readonly type: "bytes32";
1671
+ readonly internalType: "bytes32";
1672
+ }, {
1673
+ readonly name: "permitData";
1674
+ readonly type: "bytes";
1675
+ readonly internalType: "bytes";
1676
+ }];
1677
+ readonly outputs: readonly [{
1678
+ readonly name: "";
1679
+ readonly type: "bool";
1680
+ readonly internalType: "bool";
1681
+ }];
1682
+ readonly stateMutability: "payable";
1683
+ }, {
1684
+ readonly type: "function";
1685
+ readonly name: "executeMetaTxn";
1686
+ readonly inputs: readonly [{
1687
+ readonly name: "slippage";
1688
+ readonly type: "tuple";
1689
+ readonly internalType: "struct ISettlerBase.AllowedSlippage";
1690
+ readonly components: readonly [{
1691
+ readonly name: "recipient";
1692
+ readonly type: "address";
1693
+ readonly internalType: "address payable";
1694
+ }, {
1695
+ readonly name: "buyToken";
1696
+ readonly type: "address";
1697
+ readonly internalType: "contract IERC20";
1698
+ }, {
1699
+ readonly name: "minAmountOut";
1700
+ readonly type: "uint256";
1701
+ readonly internalType: "uint256";
1702
+ }];
1703
+ }, {
1704
+ readonly name: "actions";
1705
+ readonly type: "bytes[]";
1706
+ readonly internalType: "bytes[]";
1707
+ }, {
1708
+ readonly name: "";
1709
+ readonly type: "bytes32";
1710
+ readonly internalType: "bytes32";
1711
+ }, {
1712
+ readonly name: "msgSender";
1713
+ readonly type: "address";
1714
+ readonly internalType: "address";
1715
+ }, {
1716
+ readonly name: "sig";
1717
+ readonly type: "bytes";
1718
+ readonly internalType: "bytes";
1719
+ }];
1720
+ readonly outputs: readonly [{
1721
+ readonly name: "";
1722
+ readonly type: "bool";
1723
+ readonly internalType: "bool";
1724
+ }];
1725
+ readonly stateMutability: "nonpayable";
1726
+ }];
1727
+ /**
1728
+ * Pinned ABI fragment for the 0x Settler `SELECT` action, which runs the first of several candidate action lists that
1729
+ * delivers enough. `validateZeroExQuote` decodes it to refuse an RFQ fill in any of its candidates.
1730
+ *
1731
+ * Source: `0xProject/0x-settler` commit `243fb921232caedc27eb84f1f5820e84618dcd8b`, `src/ISettlerActions.sol:274`.
1732
+ *
1733
+ * @see https://github.com/0xProject/0x-settler/blob/243fb921232caedc27eb84f1f5820e84618dcd8b/src/ISettlerActions.sol#L274
1734
+ * @example
1735
+ * ```ts
1736
+ * import { zeroExSettlerSelectAbi } from "@morpho-org/morpho-sdk/abis";
1737
+ * import { decodeFunctionData, encodeFunctionData, zeroAddress } from "viem";
1738
+ *
1739
+ * const action = encodeFunctionData({
1740
+ * abi: zeroExSettlerSelectAbi,
1741
+ * functionName: "SELECT",
1742
+ * args: [500_000n, zeroAddress, [1n], [["0x"]]],
1743
+ * });
1744
+ * const [, , , candidates] = decodeFunctionData({ abi: zeroExSettlerSelectAbi, data: action }).args;
1745
+ * // action starts with "0x42032aef"; candidates is [["0x"]]
1746
+ * ```
1747
+ */
1748
+ export declare const zeroExSettlerSelectAbi: readonly [{
1749
+ readonly type: "function";
1750
+ readonly name: "SELECT";
1751
+ readonly inputs: readonly [{
1752
+ readonly name: "trialGasLimit";
1753
+ readonly type: "uint256";
1754
+ readonly internalType: "uint256";
1755
+ }, {
1756
+ readonly name: "token";
1757
+ readonly type: "address";
1758
+ readonly internalType: "address";
1759
+ }, {
1760
+ readonly name: "targets";
1761
+ readonly type: "uint256[]";
1762
+ readonly internalType: "uint256[]";
1763
+ }, {
1764
+ readonly name: "candidates";
1765
+ readonly type: "bytes[][]";
1766
+ readonly internalType: "bytes[][]";
1767
+ }];
1768
+ readonly outputs: readonly [];
1769
+ readonly stateMutability: "nonpayable";
1770
+ }];
1771
+ /**
1772
+ * Pinned ABI fragments for the 0x Settler `BASIC` and `BASIC_PUSH` actions, opaque calls to a venue.
1773
+ * `validateZeroExQuote` decodes them to scan the inner call's data for a word that looks like a short deadline.
1774
+ *
1775
+ * Source: `0xProject/0x-settler` commit `243fb921232caedc27eb84f1f5820e84618dcd8b`, `src/ISettlerActions.sol:240`
1776
+ * and `:244`.
1777
+ *
1778
+ * @see https://github.com/0xProject/0x-settler/blob/243fb921232caedc27eb84f1f5820e84618dcd8b/src/ISettlerActions.sol#L240
1779
+ * @example
1780
+ * ```ts
1781
+ * import { zeroExSettlerBasicAbi } from "@morpho-org/morpho-sdk/abis";
1782
+ * import { decodeFunctionData, encodeFunctionData, zeroAddress } from "viem";
1783
+ *
1784
+ * const action = encodeFunctionData({
1785
+ * abi: zeroExSettlerBasicAbi,
1786
+ * functionName: "BASIC",
1787
+ * args: [zeroAddress, 10_000n, zeroAddress, 4n, "0x"],
1788
+ * });
1789
+ * const [, , , , data] = decodeFunctionData({ abi: zeroExSettlerBasicAbi, data: action }).args;
1790
+ * // action starts with "0x38c9c147"; data is "0x"
1791
+ * ```
1792
+ */
1793
+ export declare const zeroExSettlerBasicAbi: readonly [{
1794
+ readonly type: "function";
1795
+ readonly name: "BASIC";
1796
+ readonly inputs: readonly [{
1797
+ readonly name: "sellToken";
1798
+ readonly type: "address";
1799
+ readonly internalType: "address";
1800
+ }, {
1801
+ readonly name: "ppm";
1802
+ readonly type: "uint256";
1803
+ readonly internalType: "uint256";
1804
+ }, {
1805
+ readonly name: "pool";
1806
+ readonly type: "address";
1807
+ readonly internalType: "address";
1808
+ }, {
1809
+ readonly name: "offset";
1810
+ readonly type: "uint256";
1811
+ readonly internalType: "uint256";
1812
+ }, {
1813
+ readonly name: "data";
1814
+ readonly type: "bytes";
1815
+ readonly internalType: "bytes";
1816
+ }];
1817
+ readonly outputs: readonly [];
1818
+ readonly stateMutability: "nonpayable";
1819
+ }, {
1820
+ readonly type: "function";
1821
+ readonly name: "BASIC_PUSH";
1822
+ readonly inputs: readonly [{
1823
+ readonly name: "sellToken";
1824
+ readonly type: "address";
1825
+ readonly internalType: "address";
1826
+ }, {
1827
+ readonly name: "ppm";
1828
+ readonly type: "uint256";
1829
+ readonly internalType: "uint256";
1830
+ }, {
1831
+ readonly name: "pool";
1832
+ readonly type: "address";
1833
+ readonly internalType: "address";
1834
+ }, {
1835
+ readonly name: "offset";
1836
+ readonly type: "uint256";
1837
+ readonly internalType: "uint256";
1838
+ }, {
1839
+ readonly name: "data";
1840
+ readonly type: "bytes";
1841
+ readonly internalType: "bytes";
1842
+ }];
1843
+ readonly outputs: readonly [];
1844
+ readonly stateMutability: "nonpayable";
1845
+ }];
1846
+ /**
1847
+ * Pinned ABI fragment for the 0x Settler deployer and registry: `ownerOf(feature)` returns the current Settler and
1848
+ * reverts while the feature is paused, `prev(feature)` returns the Settler 0x API may still target during a rotation.
1849
+ *
1850
+ * Source: `0xProject/0x-settler` commit `f7340e6237146b2dfd40a40b3efeea527e4eb689`, `src/deployer/IDeployer.sol`,
1851
+ * where `Feature` is a `uint128` user-defined value type.
1852
+ *
1853
+ * @see https://github.com/0xProject/0x-settler/blob/f7340e6237146b2dfd40a40b3efeea527e4eb689/src/deployer/IDeployer.sol
1854
+ * @example
1855
+ * ```ts
1856
+ * import { zeroExSettlerRegistryAbi } from "@morpho-org/morpho-sdk/abis";
1857
+ * import { ZERO_EX_SETTLER_REGISTRY_ADDRESS, ZERO_EX_TAKER_SUBMITTED_SETTLER_FEATURE } from "@morpho-org/morpho-sdk/addresses";
1858
+ * import { createPublicClient, http } from "viem";
1859
+ * import { readContract } from "viem/actions";
1860
+ * import { mainnet } from "viem/chains";
1861
+ *
1862
+ * const client = createPublicClient({ chain: mainnet, transport: http() }); // use your own RPC URL
1863
+ *
1864
+ * const settler = await readContract(client, {
1865
+ * address: ZERO_EX_SETTLER_REGISTRY_ADDRESS,
1866
+ * abi: zeroExSettlerRegistryAbi,
1867
+ * functionName: "ownerOf",
1868
+ * args: [ZERO_EX_TAKER_SUBMITTED_SETTLER_FEATURE],
1869
+ * });
1870
+ * ```
1871
+ */
1872
+ export declare const zeroExSettlerRegistryAbi: readonly [{
1873
+ readonly type: "function";
1874
+ readonly name: "ownerOf";
1875
+ readonly inputs: readonly [{
1876
+ readonly name: "tokenId";
1877
+ readonly type: "uint256";
1878
+ readonly internalType: "uint256";
1879
+ }];
1880
+ readonly outputs: readonly [{
1881
+ readonly name: "";
1882
+ readonly type: "address";
1883
+ readonly internalType: "address";
1884
+ }];
1885
+ readonly stateMutability: "view";
1886
+ }, {
1887
+ readonly type: "function";
1888
+ readonly name: "prev";
1889
+ readonly inputs: readonly [{
1890
+ readonly name: "";
1891
+ readonly type: "uint128";
1892
+ readonly internalType: "Feature";
1893
+ }];
1894
+ readonly outputs: readonly [{
1895
+ readonly name: "";
1896
+ readonly type: "address";
1897
+ readonly internalType: "address";
1898
+ }];
1899
+ readonly stateMutability: "view";
1900
+ }];