@wildcatfi/wildcat-sdk 3.0.76-beta → 3.1.1-beta

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 (409) hide show
  1. package/README.md +2 -2
  2. package/dist/access/access-control.d.ts +23 -36
  3. package/dist/access/access-control.d.ts.map +1 -1
  4. package/dist/access/access-control.js +104 -142
  5. package/dist/access/access-control.js.map +1 -1
  6. package/dist/access/fixed-term.d.ts +23 -36
  7. package/dist/access/fixed-term.d.ts.map +1 -1
  8. package/dist/access/fixed-term.js +115 -154
  9. package/dist/access/fixed-term.js.map +1 -1
  10. package/dist/access/index.d.ts +9 -15
  11. package/dist/access/index.d.ts.map +1 -1
  12. package/dist/access/index.js +21 -59
  13. package/dist/access/index.js.map +1 -1
  14. package/dist/access/periodic-term.d.ts +84 -0
  15. package/dist/access/periodic-term.d.ts.map +1 -0
  16. package/dist/access/periodic-term.js +298 -0
  17. package/dist/access/periodic-term.js.map +1 -0
  18. package/dist/access/utils.d.ts +1 -11
  19. package/dist/access/utils.d.ts.map +1 -1
  20. package/dist/access/utils.js +11 -87
  21. package/dist/access/utils.js.map +1 -1
  22. package/dist/access/validation.d.ts +8 -32
  23. package/dist/access/validation.d.ts.map +1 -1
  24. package/dist/access/validation.js +1 -18
  25. package/dist/access/validation.js.map +1 -1
  26. package/dist/account/index.d.ts +39 -35
  27. package/dist/account/index.d.ts.map +1 -1
  28. package/dist/account/index.js +301 -315
  29. package/dist/account/index.js.map +1 -1
  30. package/dist/account/validation.d.ts +19 -3
  31. package/dist/account/validation.d.ts.map +1 -1
  32. package/dist/account/validation.js +16 -2
  33. package/dist/account/validation.js.map +1 -1
  34. package/dist/collateral/collateral-events.d.ts +10 -9
  35. package/dist/collateral/collateral-events.d.ts.map +1 -1
  36. package/dist/collateral/collateral-events.js +4 -4
  37. package/dist/collateral/collateral-events.js.map +1 -1
  38. package/dist/collateral/index.d.ts +10 -7
  39. package/dist/collateral/index.d.ts.map +1 -1
  40. package/dist/collateral/index.js +37 -36
  41. package/dist/collateral/index.js.map +1 -1
  42. package/dist/constants.d.ts +13 -100
  43. package/dist/constants.d.ts.map +1 -1
  44. package/dist/constants.js +27 -290
  45. package/dist/constants.js.map +1 -1
  46. package/dist/controller.d.ts +17 -10
  47. package/dist/controller.d.ts.map +1 -1
  48. package/dist/controller.js +67 -67
  49. package/dist/controller.js.map +1 -1
  50. package/dist/gql/getActiveLendersByMarket.d.ts +4 -5
  51. package/dist/gql/getActiveLendersByMarket.d.ts.map +1 -1
  52. package/dist/gql/getActiveLendersByMarket.js +10 -11
  53. package/dist/gql/getActiveLendersByMarket.js.map +1 -1
  54. package/dist/gql/getAllHooksDataForBorrower.d.ts.map +1 -1
  55. package/dist/gql/getAllHooksDataForBorrower.js +8 -11
  56. package/dist/gql/getAllHooksDataForBorrower.js.map +1 -1
  57. package/dist/gql/getAllHooksTemplates.d.ts.map +1 -1
  58. package/dist/gql/getAllHooksTemplates.js +4 -6
  59. package/dist/gql/getAllHooksTemplates.js.map +1 -1
  60. package/dist/gql/getLenderAccountsForAllMarkets.d.ts +1 -8
  61. package/dist/gql/getLenderAccountsForAllMarkets.d.ts.map +1 -1
  62. package/dist/gql/getLenderAccountsForAllMarkets.js +11 -26
  63. package/dist/gql/getLenderAccountsForAllMarkets.js.map +1 -1
  64. package/dist/gql/getMarketRecords.d.ts +2 -2
  65. package/dist/gql/getMarketRecords.d.ts.map +1 -1
  66. package/dist/gql/getMarketRecords.js +6 -2
  67. package/dist/gql/getMarketRecords.js.map +1 -1
  68. package/dist/gql/getMarketsForBorrower.d.ts.map +1 -1
  69. package/dist/gql/getMarketsForBorrower.js +2 -32
  70. package/dist/gql/getMarketsForBorrower.js.map +1 -1
  71. package/dist/gql/getMarketsWithEvents.d.ts.map +1 -1
  72. package/dist/gql/getMarketsWithEvents.js +0 -28
  73. package/dist/gql/getMarketsWithEvents.js.map +1 -1
  74. package/dist/gql/graphql.d.ts +678 -1480
  75. package/dist/gql/graphql.d.ts.map +1 -1
  76. package/dist/gql/graphql.js +243 -591
  77. package/dist/gql/graphql.js.map +1 -1
  78. package/dist/gql/index.d.ts +0 -2
  79. package/dist/gql/index.d.ts.map +1 -1
  80. package/dist/gql/index.js +0 -2
  81. package/dist/gql/index.js.map +1 -1
  82. package/dist/index.d.ts +4 -6
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +17 -8
  85. package/dist/index.js.map +1 -1
  86. package/dist/market.d.ts +22 -73
  87. package/dist/market.d.ts.map +1 -1
  88. package/dist/market.js +284 -582
  89. package/dist/market.js.map +1 -1
  90. package/dist/mockerc20factory.d.ts +11 -4
  91. package/dist/mockerc20factory.d.ts.map +1 -1
  92. package/dist/mockerc20factory.js +15 -20
  93. package/dist/mockerc20factory.js.map +1 -1
  94. package/dist/token.d.ts +12 -54
  95. package/dist/token.d.ts.map +1 -1
  96. package/dist/token.js +57 -148
  97. package/dist/token.js.map +1 -1
  98. package/dist/typechain/AccountQuery.d.ts +54 -0
  99. package/dist/typechain/AccountQuery.d.ts.map +1 -0
  100. package/dist/typechain/AccountQuery.js +3 -0
  101. package/dist/typechain/AccountQuery.js.map +1 -0
  102. package/dist/typechain/AccountsQuery.d.ts +54 -0
  103. package/dist/typechain/AccountsQuery.d.ts.map +1 -0
  104. package/dist/typechain/AccountsQuery.js +3 -0
  105. package/dist/typechain/AccountsQuery.js.map +1 -0
  106. package/dist/typechain/CheckBorrowersRegistered.d.ts +29 -0
  107. package/dist/typechain/CheckBorrowersRegistered.d.ts.map +1 -0
  108. package/dist/typechain/CheckBorrowersRegistered.js +3 -0
  109. package/dist/typechain/CheckBorrowersRegistered.js.map +1 -0
  110. package/dist/typechain/CheckSafeSignature.d.ts +29 -0
  111. package/dist/typechain/CheckSafeSignature.d.ts.map +1 -0
  112. package/dist/typechain/CheckSafeSignature.js +3 -0
  113. package/dist/typechain/CheckSafeSignature.js.map +1 -0
  114. package/dist/typechain/CollateralLens.d.ts +220 -0
  115. package/dist/typechain/CollateralLens.d.ts.map +1 -0
  116. package/dist/typechain/CollateralLens.js +3 -0
  117. package/dist/typechain/CollateralLens.js.map +1 -0
  118. package/dist/typechain/DescribeSignature.d.ts +100 -0
  119. package/dist/typechain/DescribeSignature.d.ts.map +1 -0
  120. package/dist/typechain/DescribeSignature.js +3 -0
  121. package/dist/typechain/DescribeSignature.js.map +1 -0
  122. package/dist/typechain/HooksFactory.d.ts +591 -16
  123. package/dist/typechain/HooksFactory.d.ts.map +1 -1
  124. package/dist/typechain/IERC20.d.ts +232 -0
  125. package/dist/typechain/IERC20.d.ts.map +1 -0
  126. package/dist/{lens-types.js → typechain/IERC20.js} +1 -1
  127. package/dist/typechain/IERC20.js.map +1 -0
  128. package/dist/typechain/IFixedTermHooks.d.ts +1032 -0
  129. package/dist/typechain/IFixedTermHooks.d.ts.map +1 -0
  130. package/dist/typechain/IFixedTermHooks.js +3 -0
  131. package/dist/typechain/IFixedTermHooks.js.map +1 -0
  132. package/dist/typechain/IOpenTermHooks.d.ts +987 -0
  133. package/dist/typechain/IOpenTermHooks.d.ts.map +1 -0
  134. package/dist/typechain/IOpenTermHooks.js +3 -0
  135. package/dist/typechain/IOpenTermHooks.js.map +1 -0
  136. package/dist/typechain/IPeriodicTermHooks.d.ts +663 -0
  137. package/dist/typechain/IPeriodicTermHooks.d.ts.map +1 -0
  138. package/dist/typechain/IPeriodicTermHooks.js +3 -0
  139. package/dist/typechain/IPeriodicTermHooks.js.map +1 -0
  140. package/dist/typechain/ISafe.d.ts +124 -0
  141. package/dist/typechain/ISafe.d.ts.map +1 -0
  142. package/dist/typechain/ISafe.js +3 -0
  143. package/dist/typechain/ISafe.js.map +1 -0
  144. package/dist/typechain/MarketLens.d.ts +611 -0
  145. package/dist/typechain/MarketLens.d.ts.map +1 -0
  146. package/dist/typechain/MarketLens.js +3 -0
  147. package/dist/typechain/MarketLens.js.map +1 -0
  148. package/dist/typechain/MarketLensV2.d.ts +710 -0
  149. package/dist/typechain/MarketLensV2.d.ts.map +1 -0
  150. package/dist/typechain/MarketLensV2.js +3 -0
  151. package/dist/typechain/MarketLensV2.js.map +1 -0
  152. package/dist/typechain/MockArchControllerOwner.d.ts +130 -0
  153. package/dist/typechain/MockArchControllerOwner.d.ts.map +1 -0
  154. package/dist/typechain/MockArchControllerOwner.js +3 -0
  155. package/dist/typechain/MockArchControllerOwner.js.map +1 -0
  156. package/dist/typechain/MockERC20Factory.d.ts +122 -0
  157. package/dist/typechain/MockERC20Factory.d.ts.map +1 -0
  158. package/dist/typechain/MockERC20Factory.js +3 -0
  159. package/dist/typechain/MockERC20Factory.js.map +1 -0
  160. package/dist/typechain/SimpleMarketCollateral.d.ts +270 -0
  161. package/dist/typechain/SimpleMarketCollateral.d.ts.map +1 -0
  162. package/dist/typechain/SimpleMarketCollateral.js +3 -0
  163. package/dist/typechain/SimpleMarketCollateral.js.map +1 -0
  164. package/dist/typechain/WildcatArchController.d.ts +545 -0
  165. package/dist/typechain/WildcatArchController.d.ts.map +1 -0
  166. package/dist/typechain/WildcatArchController.js +3 -0
  167. package/dist/typechain/WildcatArchController.js.map +1 -0
  168. package/dist/typechain/WildcatCollateralFactory.d.ts +164 -0
  169. package/dist/typechain/WildcatCollateralFactory.d.ts.map +1 -0
  170. package/dist/typechain/WildcatCollateralFactory.js +3 -0
  171. package/dist/typechain/WildcatCollateralFactory.js.map +1 -0
  172. package/dist/typechain/WildcatMarket.d.ts +1062 -0
  173. package/dist/typechain/WildcatMarket.d.ts.map +1 -0
  174. package/dist/typechain/WildcatMarket.js +3 -0
  175. package/dist/typechain/WildcatMarket.js.map +1 -0
  176. package/dist/typechain/WildcatMarketController.d.ts +553 -0
  177. package/dist/typechain/WildcatMarketController.d.ts.map +1 -0
  178. package/dist/typechain/WildcatMarketController.js +3 -0
  179. package/dist/typechain/WildcatMarketController.js.map +1 -0
  180. package/dist/typechain/WildcatMarketControllerFactory.d.ts +344 -0
  181. package/dist/typechain/WildcatMarketControllerFactory.d.ts.map +1 -0
  182. package/dist/typechain/WildcatMarketControllerFactory.js +3 -0
  183. package/dist/typechain/WildcatMarketControllerFactory.js.map +1 -0
  184. package/dist/typechain/WildcatMarketV2.d.ts +1086 -0
  185. package/dist/typechain/WildcatMarketV2.d.ts.map +1 -0
  186. package/dist/typechain/WildcatMarketV2.js +3 -0
  187. package/dist/typechain/WildcatMarketV2.js.map +1 -0
  188. package/dist/typechain/common.d.ts +23 -0
  189. package/dist/typechain/common.d.ts.map +1 -0
  190. package/dist/typechain/common.js +3 -0
  191. package/dist/typechain/common.js.map +1 -0
  192. package/dist/typechain/factories/AccountQuery__factory.d.ts +59 -0
  193. package/dist/typechain/factories/AccountQuery__factory.d.ts.map +1 -0
  194. package/dist/typechain/factories/AccountQuery__factory.js +91 -0
  195. package/dist/typechain/factories/AccountQuery__factory.js.map +1 -0
  196. package/dist/typechain/factories/AccountsQuery__factory.d.ts +59 -0
  197. package/dist/typechain/factories/AccountsQuery__factory.d.ts.map +1 -0
  198. package/dist/typechain/factories/AccountsQuery__factory.js +91 -0
  199. package/dist/typechain/factories/AccountsQuery__factory.js.map +1 -0
  200. package/dist/typechain/factories/CheckBorrowersRegistered__factory.d.ts +36 -0
  201. package/dist/typechain/factories/CheckBorrowersRegistered__factory.d.ts.map +1 -0
  202. package/dist/typechain/factories/CheckBorrowersRegistered__factory.js +60 -0
  203. package/dist/typechain/factories/CheckBorrowersRegistered__factory.js.map +1 -0
  204. package/dist/typechain/factories/CheckSafeSignature__factory.d.ts +40 -0
  205. package/dist/typechain/factories/CheckSafeSignature__factory.d.ts.map +1 -0
  206. package/dist/typechain/factories/CheckSafeSignature__factory.js +65 -0
  207. package/dist/typechain/factories/CheckSafeSignature__factory.js.map +1 -0
  208. package/dist/typechain/factories/CollateralLens__factory.d.ts +854 -0
  209. package/dist/typechain/factories/CollateralLens__factory.d.ts.map +1 -0
  210. package/dist/typechain/factories/CollateralLens__factory.js +1101 -0
  211. package/dist/typechain/factories/CollateralLens__factory.js.map +1 -0
  212. package/dist/typechain/factories/DescribeSignature__factory.d.ts +141 -0
  213. package/dist/typechain/factories/DescribeSignature__factory.d.ts.map +1 -0
  214. package/dist/typechain/factories/DescribeSignature__factory.js +198 -0
  215. package/dist/typechain/factories/DescribeSignature__factory.js.map +1 -0
  216. package/dist/typechain/factories/HooksFactory__factory.d.ts +902 -0
  217. package/dist/typechain/factories/HooksFactory__factory.d.ts.map +1 -0
  218. package/dist/typechain/factories/HooksFactory__factory.js +1168 -0
  219. package/dist/typechain/factories/HooksFactory__factory.js.map +1 -0
  220. package/dist/typechain/factories/IERC20__factory.d.ts +235 -0
  221. package/dist/typechain/factories/IERC20__factory.d.ts.map +1 -0
  222. package/dist/typechain/factories/IERC20__factory.js +315 -0
  223. package/dist/typechain/factories/IERC20__factory.js.map +1 -0
  224. package/dist/typechain/factories/IFixedTermHooks__factory.d.ts +1894 -0
  225. package/dist/typechain/factories/IFixedTermHooks__factory.d.ts.map +1 -0
  226. package/dist/typechain/factories/IFixedTermHooks__factory.js +2423 -0
  227. package/dist/typechain/factories/IFixedTermHooks__factory.js.map +1 -0
  228. package/dist/typechain/factories/IOpenTermHooks__factory.d.ts +1791 -0
  229. package/dist/typechain/factories/IOpenTermHooks__factory.d.ts.map +1 -0
  230. package/dist/typechain/factories/IOpenTermHooks__factory.js +2293 -0
  231. package/dist/typechain/factories/IOpenTermHooks__factory.js.map +1 -0
  232. package/dist/typechain/factories/IPeriodicTermHooks__factory.d.ts +750 -0
  233. package/dist/typechain/factories/IPeriodicTermHooks__factory.d.ts.map +1 -0
  234. package/dist/typechain/factories/IPeriodicTermHooks__factory.js +975 -0
  235. package/dist/typechain/factories/IPeriodicTermHooks__factory.js.map +1 -0
  236. package/dist/typechain/factories/ISafe__factory.d.ts +163 -0
  237. package/dist/typechain/factories/ISafe__factory.d.ts.map +1 -0
  238. package/dist/typechain/factories/ISafe__factory.js +225 -0
  239. package/dist/typechain/factories/ISafe__factory.js.map +1 -0
  240. package/dist/typechain/factories/MarketLensV2__factory.d.ts +6708 -0
  241. package/dist/typechain/factories/MarketLensV2__factory.d.ts.map +1 -0
  242. package/dist/typechain/factories/MarketLensV2__factory.js +8574 -0
  243. package/dist/typechain/factories/MarketLensV2__factory.js.map +1 -0
  244. package/dist/typechain/factories/MarketLens__factory.d.ts +3572 -0
  245. package/dist/typechain/factories/MarketLens__factory.d.ts.map +1 -0
  246. package/dist/typechain/factories/MarketLens__factory.js +4569 -0
  247. package/dist/typechain/factories/MarketLens__factory.js.map +1 -0
  248. package/dist/typechain/factories/MockArchControllerOwner__factory.d.ts +85 -0
  249. package/dist/typechain/factories/MockArchControllerOwner__factory.d.ts.map +1 -0
  250. package/dist/typechain/factories/MockArchControllerOwner__factory.js +118 -0
  251. package/dist/typechain/factories/MockArchControllerOwner__factory.js.map +1 -0
  252. package/dist/typechain/factories/MockERC20Factory__factory.d.ts +114 -0
  253. package/dist/typechain/factories/MockERC20Factory__factory.d.ts.map +1 -0
  254. package/dist/typechain/factories/MockERC20Factory__factory.js +157 -0
  255. package/dist/typechain/factories/MockERC20Factory__factory.js.map +1 -0
  256. package/dist/typechain/factories/SimpleMarketCollateral__factory.d.ts +264 -0
  257. package/dist/typechain/factories/SimpleMarketCollateral__factory.d.ts.map +1 -0
  258. package/dist/typechain/factories/SimpleMarketCollateral__factory.js +354 -0
  259. package/dist/typechain/factories/SimpleMarketCollateral__factory.js.map +1 -0
  260. package/dist/typechain/factories/WildcatArchController__factory.d.ts +554 -0
  261. package/dist/typechain/factories/WildcatArchController__factory.d.ts.map +1 -0
  262. package/dist/typechain/factories/WildcatArchController__factory.js +728 -0
  263. package/dist/typechain/factories/WildcatArchController__factory.js.map +1 -0
  264. package/dist/typechain/factories/WildcatCollateralFactory__factory.d.ts +160 -0
  265. package/dist/typechain/factories/WildcatCollateralFactory__factory.d.ts.map +1 -0
  266. package/dist/typechain/factories/WildcatCollateralFactory__factory.js +223 -0
  267. package/dist/typechain/factories/WildcatCollateralFactory__factory.js.map +1 -0
  268. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.d.ts +421 -0
  269. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.d.ts.map +1 -0
  270. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.js +549 -0
  271. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.js.map +1 -0
  272. package/dist/typechain/factories/WildcatMarketController__factory.d.ts +671 -0
  273. package/dist/typechain/factories/WildcatMarketController__factory.d.ts.map +1 -0
  274. package/dist/typechain/factories/WildcatMarketController__factory.js +870 -0
  275. package/dist/typechain/factories/WildcatMarketController__factory.js.map +1 -0
  276. package/dist/typechain/factories/WildcatMarketV2__factory.d.ts +1304 -0
  277. package/dist/typechain/factories/WildcatMarketV2__factory.d.ts.map +1 -0
  278. package/dist/typechain/factories/WildcatMarketV2__factory.js +1680 -0
  279. package/dist/typechain/factories/WildcatMarketV2__factory.js.map +1 -0
  280. package/dist/typechain/factories/WildcatMarket__factory.d.ts +1326 -0
  281. package/dist/typechain/factories/WildcatMarket__factory.d.ts.map +1 -0
  282. package/dist/typechain/factories/WildcatMarket__factory.js +1712 -0
  283. package/dist/typechain/factories/WildcatMarket__factory.js.map +1 -0
  284. package/dist/typechain/factories/index.d.ts +24 -0
  285. package/dist/typechain/factories/index.d.ts.map +1 -0
  286. package/dist/typechain/factories/index.js +53 -0
  287. package/dist/typechain/factories/index.js.map +1 -0
  288. package/dist/typechain/index.d.ts +60 -84
  289. package/dist/typechain/index.d.ts.map +1 -1
  290. package/dist/typechain/index.js +71 -120
  291. package/dist/typechain/index.js.map +1 -1
  292. package/dist/types.d.ts +34 -75
  293. package/dist/types.d.ts.map +1 -1
  294. package/dist/types.js +16 -21
  295. package/dist/types.js.map +1 -1
  296. package/dist/utils/check-registered-borrowers.d.ts.map +1 -1
  297. package/dist/utils/check-registered-borrowers.js +6 -7
  298. package/dist/utils/check-registered-borrowers.js.map +1 -1
  299. package/dist/utils/describe-account.d.ts +2 -5
  300. package/dist/utils/describe-account.d.ts.map +1 -1
  301. package/dist/utils/describe-account.js +8 -38
  302. package/dist/utils/describe-account.js.map +1 -1
  303. package/dist/utils/describe-signature.d.ts +1 -1
  304. package/dist/utils/describe-signature.d.ts.map +1 -1
  305. package/dist/utils/describe-signature.js +25 -80
  306. package/dist/utils/describe-signature.js.map +1 -1
  307. package/dist/utils/index.d.ts +0 -2
  308. package/dist/utils/index.d.ts.map +1 -1
  309. package/dist/utils/index.js +0 -2
  310. package/dist/utils/index.js.map +1 -1
  311. package/dist/utils/logger.d.ts.map +1 -1
  312. package/dist/utils/logger.js +1 -0
  313. package/dist/utils/logger.js.map +1 -1
  314. package/dist/utils/math.d.ts +13 -1
  315. package/dist/utils/math.d.ts.map +1 -1
  316. package/dist/utils/math.js +50 -14
  317. package/dist/utils/math.js.map +1 -1
  318. package/dist/utils/misc.d.ts +4 -5
  319. package/dist/utils/misc.d.ts.map +1 -1
  320. package/dist/utils/misc.js +6 -6
  321. package/dist/utils/misc.js.map +1 -1
  322. package/dist/utils/record-types.d.ts +10 -7
  323. package/dist/utils/record-types.d.ts.map +1 -1
  324. package/dist/utils/record-types.js +2 -2
  325. package/dist/utils/record-types.js.map +1 -1
  326. package/dist/utils/type-parsers.d.ts +3 -9
  327. package/dist/utils/type-parsers.d.ts.map +1 -1
  328. package/dist/utils/type-parsers.js +13 -12
  329. package/dist/utils/type-parsers.js.map +1 -1
  330. package/dist/withdrawal-batch.d.ts +9 -12
  331. package/dist/withdrawal-batch.d.ts.map +1 -1
  332. package/dist/withdrawal-batch.js +30 -46
  333. package/dist/withdrawal-batch.js.map +1 -1
  334. package/dist/withdrawal-status.d.ts +7 -12
  335. package/dist/withdrawal-status.d.ts.map +1 -1
  336. package/dist/withdrawal-status.js +12 -29
  337. package/dist/withdrawal-status.js.map +1 -1
  338. package/package.json +12 -20
  339. package/dist/abi/generated.d.ts +0 -34504
  340. package/dist/abi/generated.d.ts.map +0 -1
  341. package/dist/abi/generated.js +0 -44192
  342. package/dist/abi/generated.js.map +0 -1
  343. package/dist/abi/index.d.ts +0 -3
  344. package/dist/abi/index.d.ts.map +0 -1
  345. package/dist/abi/index.js +0 -19
  346. package/dist/abi/index.js.map +0 -1
  347. package/dist/abi/manual.d.ts +0 -354
  348. package/dist/abi/manual.d.ts.map +0 -1
  349. package/dist/abi/manual.js +0 -202
  350. package/dist/abi/manual.js.map +0 -1
  351. package/dist/access/revolving.d.ts +0 -8
  352. package/dist/access/revolving.d.ts.map +0 -1
  353. package/dist/access/revolving.js +0 -15
  354. package/dist/access/revolving.js.map +0 -1
  355. package/dist/access/subgraph-template.d.ts +0 -14
  356. package/dist/access/subgraph-template.d.ts.map +0 -1
  357. package/dist/access/subgraph-template.js +0 -20
  358. package/dist/access/subgraph-template.js.map +0 -1
  359. package/dist/client.d.ts +0 -22
  360. package/dist/client.d.ts.map +0 -1
  361. package/dist/client.js +0 -51
  362. package/dist/client.js.map +0 -1
  363. package/dist/gql/getMarketChartsData.d.ts +0 -35
  364. package/dist/gql/getMarketChartsData.d.ts.map +0 -1
  365. package/dist/gql/getMarketChartsData.js +0 -56
  366. package/dist/gql/getMarketChartsData.js.map +0 -1
  367. package/dist/gql/getMarketList.d.ts +0 -16
  368. package/dist/gql/getMarketList.d.ts.map +0 -1
  369. package/dist/gql/getMarketList.js +0 -23
  370. package/dist/gql/getMarketList.js.map +0 -1
  371. package/dist/internal/arch-controller.d.ts +0 -6
  372. package/dist/internal/arch-controller.d.ts.map +0 -1
  373. package/dist/internal/arch-controller.js +0 -36
  374. package/dist/internal/arch-controller.js.map +0 -1
  375. package/dist/internal/ethers-signer.d.ts +0 -4
  376. package/dist/internal/ethers-signer.d.ts.map +0 -1
  377. package/dist/internal/ethers-signer.js +0 -12
  378. package/dist/internal/ethers-signer.js.map +0 -1
  379. package/dist/internal/ethers-viem.d.ts +0 -4
  380. package/dist/internal/ethers-viem.d.ts.map +0 -1
  381. package/dist/internal/ethers-viem.js +0 -43
  382. package/dist/internal/ethers-viem.js.map +0 -1
  383. package/dist/internal/market-lens.d.ts +0 -28
  384. package/dist/internal/market-lens.d.ts.map +0 -1
  385. package/dist/internal/market-lens.js +0 -125
  386. package/dist/internal/market-lens.js.map +0 -1
  387. package/dist/internal/viem-read.d.ts +0 -3
  388. package/dist/internal/viem-read.d.ts.map +0 -1
  389. package/dist/internal/viem-read.js +0 -13
  390. package/dist/internal/viem-read.js.map +0 -1
  391. package/dist/internal/viem-write.d.ts +0 -10
  392. package/dist/internal/viem-write.d.ts.map +0 -1
  393. package/dist/internal/viem-write.js +0 -51
  394. package/dist/internal/viem-write.js.map +0 -1
  395. package/dist/lens-types.d.ts +0 -309
  396. package/dist/lens-types.d.ts.map +0 -1
  397. package/dist/lens-types.js.map +0 -1
  398. package/dist/utils/bigint.d.ts +0 -22
  399. package/dist/utils/bigint.d.ts.map +0 -1
  400. package/dist/utils/bigint.js +0 -111
  401. package/dist/utils/bigint.js.map +0 -1
  402. package/dist/utils/viem-encoding.d.ts +0 -15
  403. package/dist/utils/viem-encoding.d.ts.map +0 -1
  404. package/dist/utils/viem-encoding.js +0 -33
  405. package/dist/utils/viem-encoding.js.map +0 -1
  406. package/dist/wrapper/index.d.ts +0 -94
  407. package/dist/wrapper/index.d.ts.map +0 -1
  408. package/dist/wrapper/index.js +0 -296
  409. package/dist/wrapper/index.js.map +0 -1
@@ -0,0 +1,2293 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IOpenTermHooks__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "AnnualInterestBipsOutOfBounds",
12
+ type: "error",
13
+ },
14
+ {
15
+ inputs: [],
16
+ name: "CallerNotBorrower",
17
+ type: "error",
18
+ },
19
+ {
20
+ inputs: [],
21
+ name: "CallerNotFactory",
22
+ type: "error",
23
+ },
24
+ {
25
+ inputs: [],
26
+ name: "CreateRoleProviderFailed",
27
+ type: "error",
28
+ },
29
+ {
30
+ inputs: [],
31
+ name: "DelinquencyFeeBipsOutOfBounds",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [],
36
+ name: "DelinquencyGracePeriodOutOfBounds",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [],
41
+ name: "DepositBelowMinimum",
42
+ type: "error",
43
+ },
44
+ {
45
+ inputs: [],
46
+ name: "ForceBuyBacksDisabled",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [],
51
+ name: "GrantedCredentialExpired",
52
+ type: "error",
53
+ },
54
+ {
55
+ inputs: [],
56
+ name: "InvalidArrayLength",
57
+ type: "error",
58
+ },
59
+ {
60
+ inputs: [],
61
+ name: "InvalidCredentialReturned",
62
+ type: "error",
63
+ },
64
+ {
65
+ inputs: [],
66
+ name: "NotApprovedLender",
67
+ type: "error",
68
+ },
69
+ {
70
+ inputs: [],
71
+ name: "NotHookedMarket",
72
+ type: "error",
73
+ },
74
+ {
75
+ inputs: [],
76
+ name: "ProviderCanNotReplaceCredential",
77
+ type: "error",
78
+ },
79
+ {
80
+ inputs: [],
81
+ name: "ProviderCanNotRevokeCredential",
82
+ type: "error",
83
+ },
84
+ {
85
+ inputs: [],
86
+ name: "ProviderNotFound",
87
+ type: "error",
88
+ },
89
+ {
90
+ inputs: [],
91
+ name: "ReserveRatioBipsOutOfBounds",
92
+ type: "error",
93
+ },
94
+ {
95
+ inputs: [],
96
+ name: "TransfersDisabled",
97
+ type: "error",
98
+ },
99
+ {
100
+ inputs: [],
101
+ name: "WithdrawalBatchDurationOutOfBounds",
102
+ type: "error",
103
+ },
104
+ {
105
+ anonymous: false,
106
+ inputs: [
107
+ {
108
+ indexed: true,
109
+ internalType: "address",
110
+ name: "providerAddress",
111
+ type: "address",
112
+ },
113
+ {
114
+ indexed: true,
115
+ internalType: "address",
116
+ name: "accountAddress",
117
+ type: "address",
118
+ },
119
+ {
120
+ indexed: false,
121
+ internalType: "uint32",
122
+ name: "credentialTimestamp",
123
+ type: "uint32",
124
+ },
125
+ ],
126
+ name: "AccountAccessGranted",
127
+ type: "event",
128
+ },
129
+ {
130
+ anonymous: false,
131
+ inputs: [
132
+ {
133
+ indexed: true,
134
+ internalType: "address",
135
+ name: "accountAddress",
136
+ type: "address",
137
+ },
138
+ ],
139
+ name: "AccountAccessRevoked",
140
+ type: "event",
141
+ },
142
+ {
143
+ anonymous: false,
144
+ inputs: [
145
+ {
146
+ indexed: true,
147
+ internalType: "address",
148
+ name: "accountAddress",
149
+ type: "address",
150
+ },
151
+ ],
152
+ name: "AccountBlockedFromDeposits",
153
+ type: "event",
154
+ },
155
+ {
156
+ anonymous: false,
157
+ inputs: [
158
+ {
159
+ indexed: true,
160
+ internalType: "address",
161
+ name: "market",
162
+ type: "address",
163
+ },
164
+ {
165
+ indexed: true,
166
+ internalType: "address",
167
+ name: "accountAddress",
168
+ type: "address",
169
+ },
170
+ ],
171
+ name: "AccountMadeFirstDeposit",
172
+ type: "event",
173
+ },
174
+ {
175
+ anonymous: false,
176
+ inputs: [
177
+ {
178
+ indexed: true,
179
+ internalType: "address",
180
+ name: "accountAddress",
181
+ type: "address",
182
+ },
183
+ ],
184
+ name: "AccountUnblockedFromDeposits",
185
+ type: "event",
186
+ },
187
+ {
188
+ anonymous: false,
189
+ inputs: [
190
+ {
191
+ indexed: false,
192
+ internalType: "address",
193
+ name: "market",
194
+ type: "address",
195
+ },
196
+ ],
197
+ name: "DisabledForceBuyBacks",
198
+ type: "event",
199
+ },
200
+ {
201
+ anonymous: false,
202
+ inputs: [
203
+ {
204
+ indexed: false,
205
+ internalType: "address",
206
+ name: "market",
207
+ type: "address",
208
+ },
209
+ {
210
+ indexed: false,
211
+ internalType: "uint128",
212
+ name: "newMinimumDeposit",
213
+ type: "uint128",
214
+ },
215
+ ],
216
+ name: "MinimumDepositUpdated",
217
+ type: "event",
218
+ },
219
+ {
220
+ anonymous: false,
221
+ inputs: [
222
+ {
223
+ indexed: false,
224
+ internalType: "string",
225
+ name: "name",
226
+ type: "string",
227
+ },
228
+ ],
229
+ name: "NameUpdated",
230
+ type: "event",
231
+ },
232
+ {
233
+ anonymous: false,
234
+ inputs: [
235
+ {
236
+ indexed: true,
237
+ internalType: "address",
238
+ name: "providerAddress",
239
+ type: "address",
240
+ },
241
+ {
242
+ indexed: false,
243
+ internalType: "uint32",
244
+ name: "timeToLive",
245
+ type: "uint32",
246
+ },
247
+ {
248
+ indexed: false,
249
+ internalType: "uint24",
250
+ name: "pullProviderIndex",
251
+ type: "uint24",
252
+ },
253
+ {
254
+ indexed: false,
255
+ internalType: "uint24",
256
+ name: "pushProviderIndex",
257
+ type: "uint24",
258
+ },
259
+ ],
260
+ name: "RoleProviderAdded",
261
+ type: "event",
262
+ },
263
+ {
264
+ anonymous: false,
265
+ inputs: [
266
+ {
267
+ indexed: true,
268
+ internalType: "address",
269
+ name: "providerAddress",
270
+ type: "address",
271
+ },
272
+ {
273
+ indexed: false,
274
+ internalType: "uint24",
275
+ name: "pullProviderIndex",
276
+ type: "uint24",
277
+ },
278
+ {
279
+ indexed: false,
280
+ internalType: "uint24",
281
+ name: "pushProviderIndex",
282
+ type: "uint24",
283
+ },
284
+ ],
285
+ name: "RoleProviderRemoved",
286
+ type: "event",
287
+ },
288
+ {
289
+ anonymous: false,
290
+ inputs: [
291
+ {
292
+ indexed: true,
293
+ internalType: "address",
294
+ name: "providerAddress",
295
+ type: "address",
296
+ },
297
+ {
298
+ indexed: false,
299
+ internalType: "uint32",
300
+ name: "timeToLive",
301
+ type: "uint32",
302
+ },
303
+ {
304
+ indexed: false,
305
+ internalType: "uint24",
306
+ name: "pullProviderIndex",
307
+ type: "uint24",
308
+ },
309
+ {
310
+ indexed: false,
311
+ internalType: "uint24",
312
+ name: "pushProviderIndex",
313
+ type: "uint24",
314
+ },
315
+ ],
316
+ name: "RoleProviderUpdated",
317
+ type: "event",
318
+ },
319
+ {
320
+ anonymous: false,
321
+ inputs: [
322
+ {
323
+ indexed: true,
324
+ internalType: "address",
325
+ name: "market",
326
+ type: "address",
327
+ },
328
+ {
329
+ indexed: false,
330
+ internalType: "uint256",
331
+ name: "originalReserveRatioBips",
332
+ type: "uint256",
333
+ },
334
+ {
335
+ indexed: false,
336
+ internalType: "uint256",
337
+ name: "temporaryReserveRatioBips",
338
+ type: "uint256",
339
+ },
340
+ {
341
+ indexed: false,
342
+ internalType: "uint256",
343
+ name: "temporaryReserveRatioExpiry",
344
+ type: "uint256",
345
+ },
346
+ ],
347
+ name: "TemporaryExcessReserveRatioActivated",
348
+ type: "event",
349
+ },
350
+ {
351
+ anonymous: false,
352
+ inputs: [
353
+ {
354
+ indexed: true,
355
+ internalType: "address",
356
+ name: "market",
357
+ type: "address",
358
+ },
359
+ ],
360
+ name: "TemporaryExcessReserveRatioCanceled",
361
+ type: "event",
362
+ },
363
+ {
364
+ anonymous: false,
365
+ inputs: [
366
+ {
367
+ indexed: true,
368
+ internalType: "address",
369
+ name: "market",
370
+ type: "address",
371
+ },
372
+ ],
373
+ name: "TemporaryExcessReserveRatioExpired",
374
+ type: "event",
375
+ },
376
+ {
377
+ anonymous: false,
378
+ inputs: [
379
+ {
380
+ indexed: true,
381
+ internalType: "address",
382
+ name: "market",
383
+ type: "address",
384
+ },
385
+ {
386
+ indexed: false,
387
+ internalType: "uint256",
388
+ name: "originalReserveRatioBips",
389
+ type: "uint256",
390
+ },
391
+ {
392
+ indexed: false,
393
+ internalType: "uint256",
394
+ name: "temporaryReserveRatioBips",
395
+ type: "uint256",
396
+ },
397
+ {
398
+ indexed: false,
399
+ internalType: "uint256",
400
+ name: "temporaryReserveRatioExpiry",
401
+ type: "uint256",
402
+ },
403
+ ],
404
+ name: "TemporaryExcessReserveRatioUpdated",
405
+ type: "event",
406
+ },
407
+ {
408
+ inputs: [
409
+ {
410
+ internalType: "address",
411
+ name: "providerAddress",
412
+ type: "address",
413
+ },
414
+ {
415
+ internalType: "uint32",
416
+ name: "timeToLive",
417
+ type: "uint32",
418
+ },
419
+ ],
420
+ name: "addRoleProvider",
421
+ outputs: [],
422
+ stateMutability: "nonpayable",
423
+ type: "function",
424
+ },
425
+ {
426
+ inputs: [
427
+ {
428
+ internalType: "address",
429
+ name: "account",
430
+ type: "address",
431
+ },
432
+ ],
433
+ name: "blockFromDeposits",
434
+ outputs: [],
435
+ stateMutability: "nonpayable",
436
+ type: "function",
437
+ },
438
+ {
439
+ inputs: [
440
+ {
441
+ internalType: "address[]",
442
+ name: "accounts",
443
+ type: "address[]",
444
+ },
445
+ ],
446
+ name: "blockFromDeposits",
447
+ outputs: [],
448
+ stateMutability: "nonpayable",
449
+ type: "function",
450
+ },
451
+ {
452
+ inputs: [],
453
+ name: "borrower",
454
+ outputs: [
455
+ {
456
+ internalType: "address",
457
+ name: "",
458
+ type: "address",
459
+ },
460
+ ],
461
+ stateMutability: "view",
462
+ type: "function",
463
+ },
464
+ {
465
+ inputs: [],
466
+ name: "config",
467
+ outputs: [
468
+ {
469
+ internalType: "HooksDeploymentConfig",
470
+ name: "param0",
471
+ type: "uint256",
472
+ },
473
+ ],
474
+ stateMutability: "view",
475
+ type: "function",
476
+ },
477
+ {
478
+ inputs: [
479
+ {
480
+ internalType: "address",
481
+ name: "providerFactory",
482
+ type: "address",
483
+ },
484
+ {
485
+ internalType: "uint32",
486
+ name: "timeToLive",
487
+ type: "uint32",
488
+ },
489
+ {
490
+ internalType: "bytes",
491
+ name: "data",
492
+ type: "bytes",
493
+ },
494
+ ],
495
+ name: "createRoleProvider",
496
+ outputs: [],
497
+ stateMutability: "nonpayable",
498
+ type: "function",
499
+ },
500
+ {
501
+ inputs: [
502
+ {
503
+ internalType: "address",
504
+ name: "market",
505
+ type: "address",
506
+ },
507
+ ],
508
+ name: "disableForceBuyBacks",
509
+ outputs: [],
510
+ stateMutability: "nonpayable",
511
+ type: "function",
512
+ },
513
+ {
514
+ inputs: [],
515
+ name: "factory",
516
+ outputs: [
517
+ {
518
+ internalType: "address",
519
+ name: "",
520
+ type: "address",
521
+ },
522
+ ],
523
+ stateMutability: "view",
524
+ type: "function",
525
+ },
526
+ {
527
+ inputs: [
528
+ {
529
+ internalType: "address",
530
+ name: "marketAddress",
531
+ type: "address",
532
+ },
533
+ ],
534
+ name: "getHookedMarket",
535
+ outputs: [
536
+ {
537
+ components: [
538
+ {
539
+ internalType: "bool",
540
+ name: "isHooked",
541
+ type: "bool",
542
+ },
543
+ {
544
+ internalType: "bool",
545
+ name: "transferRequiresAccess",
546
+ type: "bool",
547
+ },
548
+ {
549
+ internalType: "bool",
550
+ name: "depositRequiresAccess",
551
+ type: "bool",
552
+ },
553
+ {
554
+ internalType: "uint128",
555
+ name: "minimumDeposit",
556
+ type: "uint128",
557
+ },
558
+ {
559
+ internalType: "bool",
560
+ name: "transfersDisabled",
561
+ type: "bool",
562
+ },
563
+ {
564
+ internalType: "bool",
565
+ name: "allowForceBuyBacks",
566
+ type: "bool",
567
+ },
568
+ ],
569
+ internalType: "struct HookedMarket",
570
+ name: "param0",
571
+ type: "tuple",
572
+ },
573
+ ],
574
+ stateMutability: "view",
575
+ type: "function",
576
+ },
577
+ {
578
+ inputs: [
579
+ {
580
+ internalType: "address[]",
581
+ name: "marketAddresses",
582
+ type: "address[]",
583
+ },
584
+ ],
585
+ name: "getHookedMarkets",
586
+ outputs: [
587
+ {
588
+ components: [
589
+ {
590
+ internalType: "bool",
591
+ name: "isHooked",
592
+ type: "bool",
593
+ },
594
+ {
595
+ internalType: "bool",
596
+ name: "transferRequiresAccess",
597
+ type: "bool",
598
+ },
599
+ {
600
+ internalType: "bool",
601
+ name: "depositRequiresAccess",
602
+ type: "bool",
603
+ },
604
+ {
605
+ internalType: "uint128",
606
+ name: "minimumDeposit",
607
+ type: "uint128",
608
+ },
609
+ {
610
+ internalType: "bool",
611
+ name: "transfersDisabled",
612
+ type: "bool",
613
+ },
614
+ {
615
+ internalType: "bool",
616
+ name: "allowForceBuyBacks",
617
+ type: "bool",
618
+ },
619
+ ],
620
+ internalType: "struct HookedMarket[]",
621
+ name: "hookedMarkets",
622
+ type: "tuple[]",
623
+ },
624
+ ],
625
+ stateMutability: "view",
626
+ type: "function",
627
+ },
628
+ {
629
+ inputs: [
630
+ {
631
+ internalType: "address",
632
+ name: "accountAddress",
633
+ type: "address",
634
+ },
635
+ ],
636
+ name: "getLenderStatus",
637
+ outputs: [
638
+ {
639
+ components: [
640
+ {
641
+ internalType: "bool",
642
+ name: "isBlockedFromDeposits",
643
+ type: "bool",
644
+ },
645
+ {
646
+ internalType: "address",
647
+ name: "lastProvider",
648
+ type: "address",
649
+ },
650
+ {
651
+ internalType: "bool",
652
+ name: "canRefresh",
653
+ type: "bool",
654
+ },
655
+ {
656
+ internalType: "uint32",
657
+ name: "lastApprovalTimestamp",
658
+ type: "uint32",
659
+ },
660
+ ],
661
+ internalType: "struct LenderStatus",
662
+ name: "status",
663
+ type: "tuple",
664
+ },
665
+ ],
666
+ stateMutability: "view",
667
+ type: "function",
668
+ },
669
+ {
670
+ inputs: [],
671
+ name: "getParameterConstraints",
672
+ outputs: [
673
+ {
674
+ components: [
675
+ {
676
+ internalType: "uint32",
677
+ name: "minimumDelinquencyGracePeriod",
678
+ type: "uint32",
679
+ },
680
+ {
681
+ internalType: "uint32",
682
+ name: "maximumDelinquencyGracePeriod",
683
+ type: "uint32",
684
+ },
685
+ {
686
+ internalType: "uint16",
687
+ name: "minimumReserveRatioBips",
688
+ type: "uint16",
689
+ },
690
+ {
691
+ internalType: "uint16",
692
+ name: "maximumReserveRatioBips",
693
+ type: "uint16",
694
+ },
695
+ {
696
+ internalType: "uint16",
697
+ name: "minimumDelinquencyFeeBips",
698
+ type: "uint16",
699
+ },
700
+ {
701
+ internalType: "uint16",
702
+ name: "maximumDelinquencyFeeBips",
703
+ type: "uint16",
704
+ },
705
+ {
706
+ internalType: "uint32",
707
+ name: "minimumWithdrawalBatchDuration",
708
+ type: "uint32",
709
+ },
710
+ {
711
+ internalType: "uint32",
712
+ name: "maximumWithdrawalBatchDuration",
713
+ type: "uint32",
714
+ },
715
+ {
716
+ internalType: "uint16",
717
+ name: "minimumAnnualInterestBips",
718
+ type: "uint16",
719
+ },
720
+ {
721
+ internalType: "uint16",
722
+ name: "maximumAnnualInterestBips",
723
+ type: "uint16",
724
+ },
725
+ ],
726
+ internalType: "struct MarketParameterConstraints",
727
+ name: "constraints",
728
+ type: "tuple",
729
+ },
730
+ ],
731
+ stateMutability: "pure",
732
+ type: "function",
733
+ },
734
+ {
735
+ inputs: [
736
+ {
737
+ internalType: "address",
738
+ name: "accountAddress",
739
+ type: "address",
740
+ },
741
+ ],
742
+ name: "getPreviousLenderStatus",
743
+ outputs: [
744
+ {
745
+ components: [
746
+ {
747
+ internalType: "bool",
748
+ name: "isBlockedFromDeposits",
749
+ type: "bool",
750
+ },
751
+ {
752
+ internalType: "address",
753
+ name: "lastProvider",
754
+ type: "address",
755
+ },
756
+ {
757
+ internalType: "bool",
758
+ name: "canRefresh",
759
+ type: "bool",
760
+ },
761
+ {
762
+ internalType: "uint32",
763
+ name: "lastApprovalTimestamp",
764
+ type: "uint32",
765
+ },
766
+ ],
767
+ internalType: "struct LenderStatus",
768
+ name: "status",
769
+ type: "tuple",
770
+ },
771
+ ],
772
+ stateMutability: "view",
773
+ type: "function",
774
+ },
775
+ {
776
+ inputs: [],
777
+ name: "getPullProviders",
778
+ outputs: [
779
+ {
780
+ internalType: "RoleProvider[]",
781
+ name: "param0",
782
+ type: "uint256[]",
783
+ },
784
+ ],
785
+ stateMutability: "view",
786
+ type: "function",
787
+ },
788
+ {
789
+ inputs: [],
790
+ name: "getPushProviders",
791
+ outputs: [
792
+ {
793
+ internalType: "RoleProvider[]",
794
+ name: "param0",
795
+ type: "uint256[]",
796
+ },
797
+ ],
798
+ stateMutability: "view",
799
+ type: "function",
800
+ },
801
+ {
802
+ inputs: [
803
+ {
804
+ internalType: "address",
805
+ name: "providerAddress",
806
+ type: "address",
807
+ },
808
+ ],
809
+ name: "getRoleProvider",
810
+ outputs: [
811
+ {
812
+ internalType: "RoleProvider",
813
+ name: "param0",
814
+ type: "uint256",
815
+ },
816
+ ],
817
+ stateMutability: "view",
818
+ type: "function",
819
+ },
820
+ {
821
+ inputs: [
822
+ {
823
+ internalType: "address",
824
+ name: "account",
825
+ type: "address",
826
+ },
827
+ {
828
+ internalType: "uint32",
829
+ name: "roleGrantedTimestamp",
830
+ type: "uint32",
831
+ },
832
+ ],
833
+ name: "grantRole",
834
+ outputs: [],
835
+ stateMutability: "nonpayable",
836
+ type: "function",
837
+ },
838
+ {
839
+ inputs: [
840
+ {
841
+ internalType: "address[]",
842
+ name: "accounts",
843
+ type: "address[]",
844
+ },
845
+ {
846
+ internalType: "uint32[]",
847
+ name: "roleGrantedTimestamps",
848
+ type: "uint32[]",
849
+ },
850
+ ],
851
+ name: "grantRoles",
852
+ outputs: [],
853
+ stateMutability: "nonpayable",
854
+ type: "function",
855
+ },
856
+ {
857
+ inputs: [
858
+ {
859
+ internalType: "address",
860
+ name: "key0",
861
+ type: "address",
862
+ },
863
+ {
864
+ internalType: "address",
865
+ name: "key1",
866
+ type: "address",
867
+ },
868
+ ],
869
+ name: "isKnownLenderOnMarket",
870
+ outputs: [
871
+ {
872
+ internalType: "bool",
873
+ name: "",
874
+ type: "bool",
875
+ },
876
+ ],
877
+ stateMutability: "view",
878
+ type: "function",
879
+ },
880
+ {
881
+ inputs: [],
882
+ name: "name",
883
+ outputs: [
884
+ {
885
+ internalType: "string",
886
+ name: "",
887
+ type: "string",
888
+ },
889
+ ],
890
+ stateMutability: "view",
891
+ type: "function",
892
+ },
893
+ {
894
+ inputs: [
895
+ {
896
+ internalType: "uint256",
897
+ name: "param0",
898
+ type: "uint256",
899
+ },
900
+ {
901
+ components: [
902
+ {
903
+ internalType: "bool",
904
+ name: "isClosed",
905
+ type: "bool",
906
+ },
907
+ {
908
+ internalType: "uint128",
909
+ name: "maxTotalSupply",
910
+ type: "uint128",
911
+ },
912
+ {
913
+ internalType: "uint128",
914
+ name: "accruedProtocolFees",
915
+ type: "uint128",
916
+ },
917
+ {
918
+ internalType: "uint128",
919
+ name: "normalizedUnclaimedWithdrawals",
920
+ type: "uint128",
921
+ },
922
+ {
923
+ internalType: "uint104",
924
+ name: "scaledTotalSupply",
925
+ type: "uint104",
926
+ },
927
+ {
928
+ internalType: "uint104",
929
+ name: "scaledPendingWithdrawals",
930
+ type: "uint104",
931
+ },
932
+ {
933
+ internalType: "uint32",
934
+ name: "pendingWithdrawalExpiry",
935
+ type: "uint32",
936
+ },
937
+ {
938
+ internalType: "bool",
939
+ name: "isDelinquent",
940
+ type: "bool",
941
+ },
942
+ {
943
+ internalType: "uint32",
944
+ name: "timeDelinquent",
945
+ type: "uint32",
946
+ },
947
+ {
948
+ internalType: "uint16",
949
+ name: "protocolFeeBips",
950
+ type: "uint16",
951
+ },
952
+ {
953
+ internalType: "uint16",
954
+ name: "annualInterestBips",
955
+ type: "uint16",
956
+ },
957
+ {
958
+ internalType: "uint16",
959
+ name: "reserveRatioBips",
960
+ type: "uint16",
961
+ },
962
+ {
963
+ internalType: "uint112",
964
+ name: "scaleFactor",
965
+ type: "uint112",
966
+ },
967
+ {
968
+ internalType: "uint32",
969
+ name: "lastInterestAccruedTimestamp",
970
+ type: "uint32",
971
+ },
972
+ ],
973
+ internalType: "struct MarketStateV2",
974
+ name: "param1",
975
+ type: "tuple",
976
+ },
977
+ {
978
+ internalType: "bytes",
979
+ name: "param2",
980
+ type: "bytes",
981
+ },
982
+ ],
983
+ name: "onBorrow",
984
+ outputs: [],
985
+ stateMutability: "nonpayable",
986
+ type: "function",
987
+ },
988
+ {
989
+ inputs: [
990
+ {
991
+ components: [
992
+ {
993
+ internalType: "bool",
994
+ name: "isClosed",
995
+ type: "bool",
996
+ },
997
+ {
998
+ internalType: "uint128",
999
+ name: "maxTotalSupply",
1000
+ type: "uint128",
1001
+ },
1002
+ {
1003
+ internalType: "uint128",
1004
+ name: "accruedProtocolFees",
1005
+ type: "uint128",
1006
+ },
1007
+ {
1008
+ internalType: "uint128",
1009
+ name: "normalizedUnclaimedWithdrawals",
1010
+ type: "uint128",
1011
+ },
1012
+ {
1013
+ internalType: "uint104",
1014
+ name: "scaledTotalSupply",
1015
+ type: "uint104",
1016
+ },
1017
+ {
1018
+ internalType: "uint104",
1019
+ name: "scaledPendingWithdrawals",
1020
+ type: "uint104",
1021
+ },
1022
+ {
1023
+ internalType: "uint32",
1024
+ name: "pendingWithdrawalExpiry",
1025
+ type: "uint32",
1026
+ },
1027
+ {
1028
+ internalType: "bool",
1029
+ name: "isDelinquent",
1030
+ type: "bool",
1031
+ },
1032
+ {
1033
+ internalType: "uint32",
1034
+ name: "timeDelinquent",
1035
+ type: "uint32",
1036
+ },
1037
+ {
1038
+ internalType: "uint16",
1039
+ name: "protocolFeeBips",
1040
+ type: "uint16",
1041
+ },
1042
+ {
1043
+ internalType: "uint16",
1044
+ name: "annualInterestBips",
1045
+ type: "uint16",
1046
+ },
1047
+ {
1048
+ internalType: "uint16",
1049
+ name: "reserveRatioBips",
1050
+ type: "uint16",
1051
+ },
1052
+ {
1053
+ internalType: "uint112",
1054
+ name: "scaleFactor",
1055
+ type: "uint112",
1056
+ },
1057
+ {
1058
+ internalType: "uint32",
1059
+ name: "lastInterestAccruedTimestamp",
1060
+ type: "uint32",
1061
+ },
1062
+ ],
1063
+ internalType: "struct MarketStateV2",
1064
+ name: "param0",
1065
+ type: "tuple",
1066
+ },
1067
+ {
1068
+ internalType: "bytes",
1069
+ name: "param1",
1070
+ type: "bytes",
1071
+ },
1072
+ ],
1073
+ name: "onCloseMarket",
1074
+ outputs: [],
1075
+ stateMutability: "nonpayable",
1076
+ type: "function",
1077
+ },
1078
+ {
1079
+ inputs: [
1080
+ {
1081
+ internalType: "address",
1082
+ name: "deployer",
1083
+ type: "address",
1084
+ },
1085
+ {
1086
+ internalType: "address",
1087
+ name: "marketAddress",
1088
+ type: "address",
1089
+ },
1090
+ {
1091
+ components: [
1092
+ {
1093
+ internalType: "address",
1094
+ name: "asset",
1095
+ type: "address",
1096
+ },
1097
+ {
1098
+ internalType: "string",
1099
+ name: "namePrefix",
1100
+ type: "string",
1101
+ },
1102
+ {
1103
+ internalType: "string",
1104
+ name: "symbolPrefix",
1105
+ type: "string",
1106
+ },
1107
+ {
1108
+ internalType: "uint128",
1109
+ name: "maxTotalSupply",
1110
+ type: "uint128",
1111
+ },
1112
+ {
1113
+ internalType: "uint16",
1114
+ name: "annualInterestBips",
1115
+ type: "uint16",
1116
+ },
1117
+ {
1118
+ internalType: "uint16",
1119
+ name: "delinquencyFeeBips",
1120
+ type: "uint16",
1121
+ },
1122
+ {
1123
+ internalType: "uint32",
1124
+ name: "withdrawalBatchDuration",
1125
+ type: "uint32",
1126
+ },
1127
+ {
1128
+ internalType: "uint16",
1129
+ name: "reserveRatioBips",
1130
+ type: "uint16",
1131
+ },
1132
+ {
1133
+ internalType: "uint32",
1134
+ name: "delinquencyGracePeriod",
1135
+ type: "uint32",
1136
+ },
1137
+ {
1138
+ internalType: "HooksConfig",
1139
+ name: "hooks",
1140
+ type: "uint256",
1141
+ },
1142
+ ],
1143
+ internalType: "struct DeployMarketInputsV2",
1144
+ name: "parameters",
1145
+ type: "tuple",
1146
+ },
1147
+ {
1148
+ internalType: "bytes",
1149
+ name: "extraData",
1150
+ type: "bytes",
1151
+ },
1152
+ ],
1153
+ name: "onCreateMarket",
1154
+ outputs: [
1155
+ {
1156
+ internalType: "HooksConfig",
1157
+ name: "param0",
1158
+ type: "uint256",
1159
+ },
1160
+ ],
1161
+ stateMutability: "nonpayable",
1162
+ type: "function",
1163
+ },
1164
+ {
1165
+ inputs: [
1166
+ {
1167
+ internalType: "address",
1168
+ name: "lender",
1169
+ type: "address",
1170
+ },
1171
+ {
1172
+ internalType: "uint256",
1173
+ name: "scaledAmount",
1174
+ type: "uint256",
1175
+ },
1176
+ {
1177
+ components: [
1178
+ {
1179
+ internalType: "bool",
1180
+ name: "isClosed",
1181
+ type: "bool",
1182
+ },
1183
+ {
1184
+ internalType: "uint128",
1185
+ name: "maxTotalSupply",
1186
+ type: "uint128",
1187
+ },
1188
+ {
1189
+ internalType: "uint128",
1190
+ name: "accruedProtocolFees",
1191
+ type: "uint128",
1192
+ },
1193
+ {
1194
+ internalType: "uint128",
1195
+ name: "normalizedUnclaimedWithdrawals",
1196
+ type: "uint128",
1197
+ },
1198
+ {
1199
+ internalType: "uint104",
1200
+ name: "scaledTotalSupply",
1201
+ type: "uint104",
1202
+ },
1203
+ {
1204
+ internalType: "uint104",
1205
+ name: "scaledPendingWithdrawals",
1206
+ type: "uint104",
1207
+ },
1208
+ {
1209
+ internalType: "uint32",
1210
+ name: "pendingWithdrawalExpiry",
1211
+ type: "uint32",
1212
+ },
1213
+ {
1214
+ internalType: "bool",
1215
+ name: "isDelinquent",
1216
+ type: "bool",
1217
+ },
1218
+ {
1219
+ internalType: "uint32",
1220
+ name: "timeDelinquent",
1221
+ type: "uint32",
1222
+ },
1223
+ {
1224
+ internalType: "uint16",
1225
+ name: "protocolFeeBips",
1226
+ type: "uint16",
1227
+ },
1228
+ {
1229
+ internalType: "uint16",
1230
+ name: "annualInterestBips",
1231
+ type: "uint16",
1232
+ },
1233
+ {
1234
+ internalType: "uint16",
1235
+ name: "reserveRatioBips",
1236
+ type: "uint16",
1237
+ },
1238
+ {
1239
+ internalType: "uint112",
1240
+ name: "scaleFactor",
1241
+ type: "uint112",
1242
+ },
1243
+ {
1244
+ internalType: "uint32",
1245
+ name: "lastInterestAccruedTimestamp",
1246
+ type: "uint32",
1247
+ },
1248
+ ],
1249
+ internalType: "struct MarketStateV2",
1250
+ name: "state",
1251
+ type: "tuple",
1252
+ },
1253
+ {
1254
+ internalType: "bytes",
1255
+ name: "hooksData",
1256
+ type: "bytes",
1257
+ },
1258
+ ],
1259
+ name: "onDeposit",
1260
+ outputs: [],
1261
+ stateMutability: "nonpayable",
1262
+ type: "function",
1263
+ },
1264
+ {
1265
+ inputs: [
1266
+ {
1267
+ internalType: "address",
1268
+ name: "lender",
1269
+ type: "address",
1270
+ },
1271
+ {
1272
+ internalType: "uint128",
1273
+ name: "param1",
1274
+ type: "uint128",
1275
+ },
1276
+ {
1277
+ components: [
1278
+ {
1279
+ internalType: "bool",
1280
+ name: "isClosed",
1281
+ type: "bool",
1282
+ },
1283
+ {
1284
+ internalType: "uint128",
1285
+ name: "maxTotalSupply",
1286
+ type: "uint128",
1287
+ },
1288
+ {
1289
+ internalType: "uint128",
1290
+ name: "accruedProtocolFees",
1291
+ type: "uint128",
1292
+ },
1293
+ {
1294
+ internalType: "uint128",
1295
+ name: "normalizedUnclaimedWithdrawals",
1296
+ type: "uint128",
1297
+ },
1298
+ {
1299
+ internalType: "uint104",
1300
+ name: "scaledTotalSupply",
1301
+ type: "uint104",
1302
+ },
1303
+ {
1304
+ internalType: "uint104",
1305
+ name: "scaledPendingWithdrawals",
1306
+ type: "uint104",
1307
+ },
1308
+ {
1309
+ internalType: "uint32",
1310
+ name: "pendingWithdrawalExpiry",
1311
+ type: "uint32",
1312
+ },
1313
+ {
1314
+ internalType: "bool",
1315
+ name: "isDelinquent",
1316
+ type: "bool",
1317
+ },
1318
+ {
1319
+ internalType: "uint32",
1320
+ name: "timeDelinquent",
1321
+ type: "uint32",
1322
+ },
1323
+ {
1324
+ internalType: "uint16",
1325
+ name: "protocolFeeBips",
1326
+ type: "uint16",
1327
+ },
1328
+ {
1329
+ internalType: "uint16",
1330
+ name: "annualInterestBips",
1331
+ type: "uint16",
1332
+ },
1333
+ {
1334
+ internalType: "uint16",
1335
+ name: "reserveRatioBips",
1336
+ type: "uint16",
1337
+ },
1338
+ {
1339
+ internalType: "uint112",
1340
+ name: "scaleFactor",
1341
+ type: "uint112",
1342
+ },
1343
+ {
1344
+ internalType: "uint32",
1345
+ name: "lastInterestAccruedTimestamp",
1346
+ type: "uint32",
1347
+ },
1348
+ ],
1349
+ internalType: "struct MarketStateV2",
1350
+ name: "param2",
1351
+ type: "tuple",
1352
+ },
1353
+ {
1354
+ internalType: "bytes",
1355
+ name: "hooksData",
1356
+ type: "bytes",
1357
+ },
1358
+ ],
1359
+ name: "onExecuteWithdrawal",
1360
+ outputs: [],
1361
+ stateMutability: "nonpayable",
1362
+ type: "function",
1363
+ },
1364
+ {
1365
+ inputs: [
1366
+ {
1367
+ internalType: "address",
1368
+ name: "param0",
1369
+ type: "address",
1370
+ },
1371
+ {
1372
+ internalType: "uint256",
1373
+ name: "param1",
1374
+ type: "uint256",
1375
+ },
1376
+ {
1377
+ components: [
1378
+ {
1379
+ internalType: "bool",
1380
+ name: "isClosed",
1381
+ type: "bool",
1382
+ },
1383
+ {
1384
+ internalType: "uint128",
1385
+ name: "maxTotalSupply",
1386
+ type: "uint128",
1387
+ },
1388
+ {
1389
+ internalType: "uint128",
1390
+ name: "accruedProtocolFees",
1391
+ type: "uint128",
1392
+ },
1393
+ {
1394
+ internalType: "uint128",
1395
+ name: "normalizedUnclaimedWithdrawals",
1396
+ type: "uint128",
1397
+ },
1398
+ {
1399
+ internalType: "uint104",
1400
+ name: "scaledTotalSupply",
1401
+ type: "uint104",
1402
+ },
1403
+ {
1404
+ internalType: "uint104",
1405
+ name: "scaledPendingWithdrawals",
1406
+ type: "uint104",
1407
+ },
1408
+ {
1409
+ internalType: "uint32",
1410
+ name: "pendingWithdrawalExpiry",
1411
+ type: "uint32",
1412
+ },
1413
+ {
1414
+ internalType: "bool",
1415
+ name: "isDelinquent",
1416
+ type: "bool",
1417
+ },
1418
+ {
1419
+ internalType: "uint32",
1420
+ name: "timeDelinquent",
1421
+ type: "uint32",
1422
+ },
1423
+ {
1424
+ internalType: "uint16",
1425
+ name: "protocolFeeBips",
1426
+ type: "uint16",
1427
+ },
1428
+ {
1429
+ internalType: "uint16",
1430
+ name: "annualInterestBips",
1431
+ type: "uint16",
1432
+ },
1433
+ {
1434
+ internalType: "uint16",
1435
+ name: "reserveRatioBips",
1436
+ type: "uint16",
1437
+ },
1438
+ {
1439
+ internalType: "uint112",
1440
+ name: "scaleFactor",
1441
+ type: "uint112",
1442
+ },
1443
+ {
1444
+ internalType: "uint32",
1445
+ name: "lastInterestAccruedTimestamp",
1446
+ type: "uint32",
1447
+ },
1448
+ ],
1449
+ internalType: "struct MarketStateV2",
1450
+ name: "param2",
1451
+ type: "tuple",
1452
+ },
1453
+ {
1454
+ internalType: "bytes",
1455
+ name: "param3",
1456
+ type: "bytes",
1457
+ },
1458
+ ],
1459
+ name: "onForceBuyBack",
1460
+ outputs: [],
1461
+ stateMutability: "nonpayable",
1462
+ type: "function",
1463
+ },
1464
+ {
1465
+ inputs: [
1466
+ {
1467
+ internalType: "address",
1468
+ name: "param0",
1469
+ type: "address",
1470
+ },
1471
+ {
1472
+ components: [
1473
+ {
1474
+ internalType: "bool",
1475
+ name: "isClosed",
1476
+ type: "bool",
1477
+ },
1478
+ {
1479
+ internalType: "uint128",
1480
+ name: "maxTotalSupply",
1481
+ type: "uint128",
1482
+ },
1483
+ {
1484
+ internalType: "uint128",
1485
+ name: "accruedProtocolFees",
1486
+ type: "uint128",
1487
+ },
1488
+ {
1489
+ internalType: "uint128",
1490
+ name: "normalizedUnclaimedWithdrawals",
1491
+ type: "uint128",
1492
+ },
1493
+ {
1494
+ internalType: "uint104",
1495
+ name: "scaledTotalSupply",
1496
+ type: "uint104",
1497
+ },
1498
+ {
1499
+ internalType: "uint104",
1500
+ name: "scaledPendingWithdrawals",
1501
+ type: "uint104",
1502
+ },
1503
+ {
1504
+ internalType: "uint32",
1505
+ name: "pendingWithdrawalExpiry",
1506
+ type: "uint32",
1507
+ },
1508
+ {
1509
+ internalType: "bool",
1510
+ name: "isDelinquent",
1511
+ type: "bool",
1512
+ },
1513
+ {
1514
+ internalType: "uint32",
1515
+ name: "timeDelinquent",
1516
+ type: "uint32",
1517
+ },
1518
+ {
1519
+ internalType: "uint16",
1520
+ name: "protocolFeeBips",
1521
+ type: "uint16",
1522
+ },
1523
+ {
1524
+ internalType: "uint16",
1525
+ name: "annualInterestBips",
1526
+ type: "uint16",
1527
+ },
1528
+ {
1529
+ internalType: "uint16",
1530
+ name: "reserveRatioBips",
1531
+ type: "uint16",
1532
+ },
1533
+ {
1534
+ internalType: "uint112",
1535
+ name: "scaleFactor",
1536
+ type: "uint112",
1537
+ },
1538
+ {
1539
+ internalType: "uint32",
1540
+ name: "lastInterestAccruedTimestamp",
1541
+ type: "uint32",
1542
+ },
1543
+ ],
1544
+ internalType: "struct MarketStateV2",
1545
+ name: "param1",
1546
+ type: "tuple",
1547
+ },
1548
+ {
1549
+ internalType: "bytes",
1550
+ name: "param2",
1551
+ type: "bytes",
1552
+ },
1553
+ ],
1554
+ name: "onNukeFromOrbit",
1555
+ outputs: [],
1556
+ stateMutability: "nonpayable",
1557
+ type: "function",
1558
+ },
1559
+ {
1560
+ inputs: [
1561
+ {
1562
+ internalType: "address",
1563
+ name: "lender",
1564
+ type: "address",
1565
+ },
1566
+ {
1567
+ internalType: "uint32",
1568
+ name: "param1",
1569
+ type: "uint32",
1570
+ },
1571
+ {
1572
+ internalType: "uint256",
1573
+ name: "param2",
1574
+ type: "uint256",
1575
+ },
1576
+ {
1577
+ components: [
1578
+ {
1579
+ internalType: "bool",
1580
+ name: "isClosed",
1581
+ type: "bool",
1582
+ },
1583
+ {
1584
+ internalType: "uint128",
1585
+ name: "maxTotalSupply",
1586
+ type: "uint128",
1587
+ },
1588
+ {
1589
+ internalType: "uint128",
1590
+ name: "accruedProtocolFees",
1591
+ type: "uint128",
1592
+ },
1593
+ {
1594
+ internalType: "uint128",
1595
+ name: "normalizedUnclaimedWithdrawals",
1596
+ type: "uint128",
1597
+ },
1598
+ {
1599
+ internalType: "uint104",
1600
+ name: "scaledTotalSupply",
1601
+ type: "uint104",
1602
+ },
1603
+ {
1604
+ internalType: "uint104",
1605
+ name: "scaledPendingWithdrawals",
1606
+ type: "uint104",
1607
+ },
1608
+ {
1609
+ internalType: "uint32",
1610
+ name: "pendingWithdrawalExpiry",
1611
+ type: "uint32",
1612
+ },
1613
+ {
1614
+ internalType: "bool",
1615
+ name: "isDelinquent",
1616
+ type: "bool",
1617
+ },
1618
+ {
1619
+ internalType: "uint32",
1620
+ name: "timeDelinquent",
1621
+ type: "uint32",
1622
+ },
1623
+ {
1624
+ internalType: "uint16",
1625
+ name: "protocolFeeBips",
1626
+ type: "uint16",
1627
+ },
1628
+ {
1629
+ internalType: "uint16",
1630
+ name: "annualInterestBips",
1631
+ type: "uint16",
1632
+ },
1633
+ {
1634
+ internalType: "uint16",
1635
+ name: "reserveRatioBips",
1636
+ type: "uint16",
1637
+ },
1638
+ {
1639
+ internalType: "uint112",
1640
+ name: "scaleFactor",
1641
+ type: "uint112",
1642
+ },
1643
+ {
1644
+ internalType: "uint32",
1645
+ name: "lastInterestAccruedTimestamp",
1646
+ type: "uint32",
1647
+ },
1648
+ ],
1649
+ internalType: "struct MarketStateV2",
1650
+ name: "param3",
1651
+ type: "tuple",
1652
+ },
1653
+ {
1654
+ internalType: "bytes",
1655
+ name: "hooksData",
1656
+ type: "bytes",
1657
+ },
1658
+ ],
1659
+ name: "onQueueWithdrawal",
1660
+ outputs: [],
1661
+ stateMutability: "nonpayable",
1662
+ type: "function",
1663
+ },
1664
+ {
1665
+ inputs: [
1666
+ {
1667
+ internalType: "uint256",
1668
+ name: "normalizedAmount",
1669
+ type: "uint256",
1670
+ },
1671
+ {
1672
+ components: [
1673
+ {
1674
+ internalType: "bool",
1675
+ name: "isClosed",
1676
+ type: "bool",
1677
+ },
1678
+ {
1679
+ internalType: "uint128",
1680
+ name: "maxTotalSupply",
1681
+ type: "uint128",
1682
+ },
1683
+ {
1684
+ internalType: "uint128",
1685
+ name: "accruedProtocolFees",
1686
+ type: "uint128",
1687
+ },
1688
+ {
1689
+ internalType: "uint128",
1690
+ name: "normalizedUnclaimedWithdrawals",
1691
+ type: "uint128",
1692
+ },
1693
+ {
1694
+ internalType: "uint104",
1695
+ name: "scaledTotalSupply",
1696
+ type: "uint104",
1697
+ },
1698
+ {
1699
+ internalType: "uint104",
1700
+ name: "scaledPendingWithdrawals",
1701
+ type: "uint104",
1702
+ },
1703
+ {
1704
+ internalType: "uint32",
1705
+ name: "pendingWithdrawalExpiry",
1706
+ type: "uint32",
1707
+ },
1708
+ {
1709
+ internalType: "bool",
1710
+ name: "isDelinquent",
1711
+ type: "bool",
1712
+ },
1713
+ {
1714
+ internalType: "uint32",
1715
+ name: "timeDelinquent",
1716
+ type: "uint32",
1717
+ },
1718
+ {
1719
+ internalType: "uint16",
1720
+ name: "protocolFeeBips",
1721
+ type: "uint16",
1722
+ },
1723
+ {
1724
+ internalType: "uint16",
1725
+ name: "annualInterestBips",
1726
+ type: "uint16",
1727
+ },
1728
+ {
1729
+ internalType: "uint16",
1730
+ name: "reserveRatioBips",
1731
+ type: "uint16",
1732
+ },
1733
+ {
1734
+ internalType: "uint112",
1735
+ name: "scaleFactor",
1736
+ type: "uint112",
1737
+ },
1738
+ {
1739
+ internalType: "uint32",
1740
+ name: "lastInterestAccruedTimestamp",
1741
+ type: "uint32",
1742
+ },
1743
+ ],
1744
+ internalType: "struct MarketStateV2",
1745
+ name: "state",
1746
+ type: "tuple",
1747
+ },
1748
+ {
1749
+ internalType: "bytes",
1750
+ name: "hooksData",
1751
+ type: "bytes",
1752
+ },
1753
+ ],
1754
+ name: "onRepay",
1755
+ outputs: [],
1756
+ stateMutability: "nonpayable",
1757
+ type: "function",
1758
+ },
1759
+ {
1760
+ inputs: [
1761
+ {
1762
+ internalType: "uint16",
1763
+ name: "annualInterestBips",
1764
+ type: "uint16",
1765
+ },
1766
+ {
1767
+ internalType: "uint16",
1768
+ name: "reserveRatioBips",
1769
+ type: "uint16",
1770
+ },
1771
+ {
1772
+ components: [
1773
+ {
1774
+ internalType: "bool",
1775
+ name: "isClosed",
1776
+ type: "bool",
1777
+ },
1778
+ {
1779
+ internalType: "uint128",
1780
+ name: "maxTotalSupply",
1781
+ type: "uint128",
1782
+ },
1783
+ {
1784
+ internalType: "uint128",
1785
+ name: "accruedProtocolFees",
1786
+ type: "uint128",
1787
+ },
1788
+ {
1789
+ internalType: "uint128",
1790
+ name: "normalizedUnclaimedWithdrawals",
1791
+ type: "uint128",
1792
+ },
1793
+ {
1794
+ internalType: "uint104",
1795
+ name: "scaledTotalSupply",
1796
+ type: "uint104",
1797
+ },
1798
+ {
1799
+ internalType: "uint104",
1800
+ name: "scaledPendingWithdrawals",
1801
+ type: "uint104",
1802
+ },
1803
+ {
1804
+ internalType: "uint32",
1805
+ name: "pendingWithdrawalExpiry",
1806
+ type: "uint32",
1807
+ },
1808
+ {
1809
+ internalType: "bool",
1810
+ name: "isDelinquent",
1811
+ type: "bool",
1812
+ },
1813
+ {
1814
+ internalType: "uint32",
1815
+ name: "timeDelinquent",
1816
+ type: "uint32",
1817
+ },
1818
+ {
1819
+ internalType: "uint16",
1820
+ name: "protocolFeeBips",
1821
+ type: "uint16",
1822
+ },
1823
+ {
1824
+ internalType: "uint16",
1825
+ name: "annualInterestBips",
1826
+ type: "uint16",
1827
+ },
1828
+ {
1829
+ internalType: "uint16",
1830
+ name: "reserveRatioBips",
1831
+ type: "uint16",
1832
+ },
1833
+ {
1834
+ internalType: "uint112",
1835
+ name: "scaleFactor",
1836
+ type: "uint112",
1837
+ },
1838
+ {
1839
+ internalType: "uint32",
1840
+ name: "lastInterestAccruedTimestamp",
1841
+ type: "uint32",
1842
+ },
1843
+ ],
1844
+ internalType: "struct MarketStateV2",
1845
+ name: "intermediateState",
1846
+ type: "tuple",
1847
+ },
1848
+ {
1849
+ internalType: "bytes",
1850
+ name: "extraData",
1851
+ type: "bytes",
1852
+ },
1853
+ ],
1854
+ name: "onSetAnnualInterestAndReserveRatioBips",
1855
+ outputs: [
1856
+ {
1857
+ internalType: "uint16",
1858
+ name: "updatedAnnualInterestBips",
1859
+ type: "uint16",
1860
+ },
1861
+ {
1862
+ internalType: "uint16",
1863
+ name: "updatedReserveRatioBips",
1864
+ type: "uint16",
1865
+ },
1866
+ ],
1867
+ stateMutability: "nonpayable",
1868
+ type: "function",
1869
+ },
1870
+ {
1871
+ inputs: [
1872
+ {
1873
+ internalType: "uint256",
1874
+ name: "param0",
1875
+ type: "uint256",
1876
+ },
1877
+ {
1878
+ components: [
1879
+ {
1880
+ internalType: "bool",
1881
+ name: "isClosed",
1882
+ type: "bool",
1883
+ },
1884
+ {
1885
+ internalType: "uint128",
1886
+ name: "maxTotalSupply",
1887
+ type: "uint128",
1888
+ },
1889
+ {
1890
+ internalType: "uint128",
1891
+ name: "accruedProtocolFees",
1892
+ type: "uint128",
1893
+ },
1894
+ {
1895
+ internalType: "uint128",
1896
+ name: "normalizedUnclaimedWithdrawals",
1897
+ type: "uint128",
1898
+ },
1899
+ {
1900
+ internalType: "uint104",
1901
+ name: "scaledTotalSupply",
1902
+ type: "uint104",
1903
+ },
1904
+ {
1905
+ internalType: "uint104",
1906
+ name: "scaledPendingWithdrawals",
1907
+ type: "uint104",
1908
+ },
1909
+ {
1910
+ internalType: "uint32",
1911
+ name: "pendingWithdrawalExpiry",
1912
+ type: "uint32",
1913
+ },
1914
+ {
1915
+ internalType: "bool",
1916
+ name: "isDelinquent",
1917
+ type: "bool",
1918
+ },
1919
+ {
1920
+ internalType: "uint32",
1921
+ name: "timeDelinquent",
1922
+ type: "uint32",
1923
+ },
1924
+ {
1925
+ internalType: "uint16",
1926
+ name: "protocolFeeBips",
1927
+ type: "uint16",
1928
+ },
1929
+ {
1930
+ internalType: "uint16",
1931
+ name: "annualInterestBips",
1932
+ type: "uint16",
1933
+ },
1934
+ {
1935
+ internalType: "uint16",
1936
+ name: "reserveRatioBips",
1937
+ type: "uint16",
1938
+ },
1939
+ {
1940
+ internalType: "uint112",
1941
+ name: "scaleFactor",
1942
+ type: "uint112",
1943
+ },
1944
+ {
1945
+ internalType: "uint32",
1946
+ name: "lastInterestAccruedTimestamp",
1947
+ type: "uint32",
1948
+ },
1949
+ ],
1950
+ internalType: "struct MarketStateV2",
1951
+ name: "param1",
1952
+ type: "tuple",
1953
+ },
1954
+ {
1955
+ internalType: "bytes",
1956
+ name: "param2",
1957
+ type: "bytes",
1958
+ },
1959
+ ],
1960
+ name: "onSetMaxTotalSupply",
1961
+ outputs: [],
1962
+ stateMutability: "nonpayable",
1963
+ type: "function",
1964
+ },
1965
+ {
1966
+ inputs: [
1967
+ {
1968
+ internalType: "uint16",
1969
+ name: "param0",
1970
+ type: "uint16",
1971
+ },
1972
+ {
1973
+ components: [
1974
+ {
1975
+ internalType: "bool",
1976
+ name: "isClosed",
1977
+ type: "bool",
1978
+ },
1979
+ {
1980
+ internalType: "uint128",
1981
+ name: "maxTotalSupply",
1982
+ type: "uint128",
1983
+ },
1984
+ {
1985
+ internalType: "uint128",
1986
+ name: "accruedProtocolFees",
1987
+ type: "uint128",
1988
+ },
1989
+ {
1990
+ internalType: "uint128",
1991
+ name: "normalizedUnclaimedWithdrawals",
1992
+ type: "uint128",
1993
+ },
1994
+ {
1995
+ internalType: "uint104",
1996
+ name: "scaledTotalSupply",
1997
+ type: "uint104",
1998
+ },
1999
+ {
2000
+ internalType: "uint104",
2001
+ name: "scaledPendingWithdrawals",
2002
+ type: "uint104",
2003
+ },
2004
+ {
2005
+ internalType: "uint32",
2006
+ name: "pendingWithdrawalExpiry",
2007
+ type: "uint32",
2008
+ },
2009
+ {
2010
+ internalType: "bool",
2011
+ name: "isDelinquent",
2012
+ type: "bool",
2013
+ },
2014
+ {
2015
+ internalType: "uint32",
2016
+ name: "timeDelinquent",
2017
+ type: "uint32",
2018
+ },
2019
+ {
2020
+ internalType: "uint16",
2021
+ name: "protocolFeeBips",
2022
+ type: "uint16",
2023
+ },
2024
+ {
2025
+ internalType: "uint16",
2026
+ name: "annualInterestBips",
2027
+ type: "uint16",
2028
+ },
2029
+ {
2030
+ internalType: "uint16",
2031
+ name: "reserveRatioBips",
2032
+ type: "uint16",
2033
+ },
2034
+ {
2035
+ internalType: "uint112",
2036
+ name: "scaleFactor",
2037
+ type: "uint112",
2038
+ },
2039
+ {
2040
+ internalType: "uint32",
2041
+ name: "lastInterestAccruedTimestamp",
2042
+ type: "uint32",
2043
+ },
2044
+ ],
2045
+ internalType: "struct MarketStateV2",
2046
+ name: "param1",
2047
+ type: "tuple",
2048
+ },
2049
+ {
2050
+ internalType: "bytes",
2051
+ name: "param2",
2052
+ type: "bytes",
2053
+ },
2054
+ ],
2055
+ name: "onSetProtocolFeeBips",
2056
+ outputs: [],
2057
+ stateMutability: "nonpayable",
2058
+ type: "function",
2059
+ },
2060
+ {
2061
+ inputs: [
2062
+ {
2063
+ internalType: "address",
2064
+ name: "param0",
2065
+ type: "address",
2066
+ },
2067
+ {
2068
+ internalType: "address",
2069
+ name: "param1",
2070
+ type: "address",
2071
+ },
2072
+ {
2073
+ internalType: "address",
2074
+ name: "to",
2075
+ type: "address",
2076
+ },
2077
+ {
2078
+ internalType: "uint256",
2079
+ name: "param3",
2080
+ type: "uint256",
2081
+ },
2082
+ {
2083
+ components: [
2084
+ {
2085
+ internalType: "bool",
2086
+ name: "isClosed",
2087
+ type: "bool",
2088
+ },
2089
+ {
2090
+ internalType: "uint128",
2091
+ name: "maxTotalSupply",
2092
+ type: "uint128",
2093
+ },
2094
+ {
2095
+ internalType: "uint128",
2096
+ name: "accruedProtocolFees",
2097
+ type: "uint128",
2098
+ },
2099
+ {
2100
+ internalType: "uint128",
2101
+ name: "normalizedUnclaimedWithdrawals",
2102
+ type: "uint128",
2103
+ },
2104
+ {
2105
+ internalType: "uint104",
2106
+ name: "scaledTotalSupply",
2107
+ type: "uint104",
2108
+ },
2109
+ {
2110
+ internalType: "uint104",
2111
+ name: "scaledPendingWithdrawals",
2112
+ type: "uint104",
2113
+ },
2114
+ {
2115
+ internalType: "uint32",
2116
+ name: "pendingWithdrawalExpiry",
2117
+ type: "uint32",
2118
+ },
2119
+ {
2120
+ internalType: "bool",
2121
+ name: "isDelinquent",
2122
+ type: "bool",
2123
+ },
2124
+ {
2125
+ internalType: "uint32",
2126
+ name: "timeDelinquent",
2127
+ type: "uint32",
2128
+ },
2129
+ {
2130
+ internalType: "uint16",
2131
+ name: "protocolFeeBips",
2132
+ type: "uint16",
2133
+ },
2134
+ {
2135
+ internalType: "uint16",
2136
+ name: "annualInterestBips",
2137
+ type: "uint16",
2138
+ },
2139
+ {
2140
+ internalType: "uint16",
2141
+ name: "reserveRatioBips",
2142
+ type: "uint16",
2143
+ },
2144
+ {
2145
+ internalType: "uint112",
2146
+ name: "scaleFactor",
2147
+ type: "uint112",
2148
+ },
2149
+ {
2150
+ internalType: "uint32",
2151
+ name: "lastInterestAccruedTimestamp",
2152
+ type: "uint32",
2153
+ },
2154
+ ],
2155
+ internalType: "struct MarketStateV2",
2156
+ name: "param4",
2157
+ type: "tuple",
2158
+ },
2159
+ {
2160
+ internalType: "bytes",
2161
+ name: "extraData",
2162
+ type: "bytes",
2163
+ },
2164
+ ],
2165
+ name: "onTransfer",
2166
+ outputs: [],
2167
+ stateMutability: "nonpayable",
2168
+ type: "function",
2169
+ },
2170
+ {
2171
+ inputs: [
2172
+ {
2173
+ internalType: "address",
2174
+ name: "providerAddress",
2175
+ type: "address",
2176
+ },
2177
+ ],
2178
+ name: "removeRoleProvider",
2179
+ outputs: [],
2180
+ stateMutability: "nonpayable",
2181
+ type: "function",
2182
+ },
2183
+ {
2184
+ inputs: [
2185
+ {
2186
+ internalType: "address",
2187
+ name: "account",
2188
+ type: "address",
2189
+ },
2190
+ ],
2191
+ name: "revokeRole",
2192
+ outputs: [],
2193
+ stateMutability: "nonpayable",
2194
+ type: "function",
2195
+ },
2196
+ {
2197
+ inputs: [
2198
+ {
2199
+ internalType: "address",
2200
+ name: "market",
2201
+ type: "address",
2202
+ },
2203
+ {
2204
+ internalType: "uint128",
2205
+ name: "newMinimumDeposit",
2206
+ type: "uint128",
2207
+ },
2208
+ ],
2209
+ name: "setMinimumDeposit",
2210
+ outputs: [],
2211
+ stateMutability: "nonpayable",
2212
+ type: "function",
2213
+ },
2214
+ {
2215
+ inputs: [
2216
+ {
2217
+ internalType: "string",
2218
+ name: "_name",
2219
+ type: "string",
2220
+ },
2221
+ ],
2222
+ name: "setName",
2223
+ outputs: [],
2224
+ stateMutability: "nonpayable",
2225
+ type: "function",
2226
+ },
2227
+ {
2228
+ inputs: [
2229
+ {
2230
+ internalType: "address",
2231
+ name: "key0",
2232
+ type: "address",
2233
+ },
2234
+ ],
2235
+ name: "temporaryExcessReserveRatio",
2236
+ outputs: [
2237
+ {
2238
+ internalType: "uint16",
2239
+ name: "originalAnnualInterestBips",
2240
+ type: "uint16",
2241
+ },
2242
+ {
2243
+ internalType: "uint16",
2244
+ name: "originalReserveRatioBips",
2245
+ type: "uint16",
2246
+ },
2247
+ {
2248
+ internalType: "uint32",
2249
+ name: "expiry",
2250
+ type: "uint32",
2251
+ },
2252
+ ],
2253
+ stateMutability: "view",
2254
+ type: "function",
2255
+ },
2256
+ {
2257
+ inputs: [
2258
+ {
2259
+ internalType: "address",
2260
+ name: "account",
2261
+ type: "address",
2262
+ },
2263
+ ],
2264
+ name: "unblockFromDeposits",
2265
+ outputs: [],
2266
+ stateMutability: "nonpayable",
2267
+ type: "function",
2268
+ },
2269
+ {
2270
+ inputs: [],
2271
+ name: "version",
2272
+ outputs: [
2273
+ {
2274
+ internalType: "string",
2275
+ name: "param0",
2276
+ type: "string",
2277
+ },
2278
+ ],
2279
+ stateMutability: "pure",
2280
+ type: "function",
2281
+ },
2282
+ ];
2283
+ class IOpenTermHooks__factory {
2284
+ static createInterface() {
2285
+ return new ethers_1.utils.Interface(_abi);
2286
+ }
2287
+ static connect(address, signerOrProvider) {
2288
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
2289
+ }
2290
+ }
2291
+ IOpenTermHooks__factory.abi = _abi;
2292
+ exports.IOpenTermHooks__factory = IOpenTermHooks__factory;
2293
+ //# sourceMappingURL=IOpenTermHooks__factory.js.map