@wildcatfi/wildcat-sdk 3.0.68-beta → 3.0.70-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 (416) hide show
  1. package/README.md +2 -2
  2. package/dist/abi/generated.d.ts +34207 -0
  3. package/dist/abi/generated.d.ts.map +1 -0
  4. package/dist/abi/generated.js +43811 -0
  5. package/dist/abi/generated.js.map +1 -0
  6. package/dist/abi/index.d.ts +3 -0
  7. package/dist/abi/index.d.ts.map +1 -0
  8. package/dist/abi/index.js +19 -0
  9. package/dist/abi/index.js.map +1 -0
  10. package/dist/abi/manual.d.ts +354 -0
  11. package/dist/abi/manual.d.ts.map +1 -0
  12. package/dist/abi/manual.js +202 -0
  13. package/dist/abi/manual.js.map +1 -0
  14. package/dist/access/access-control.d.ts +16 -18
  15. package/dist/access/access-control.d.ts.map +1 -1
  16. package/dist/access/access-control.js +101 -101
  17. package/dist/access/access-control.js.map +1 -1
  18. package/dist/access/fixed-term.d.ts +16 -18
  19. package/dist/access/fixed-term.d.ts.map +1 -1
  20. package/dist/access/fixed-term.js +115 -104
  21. package/dist/access/fixed-term.js.map +1 -1
  22. package/dist/access/index.d.ts +3 -3
  23. package/dist/access/index.d.ts.map +1 -1
  24. package/dist/access/index.js +47 -13
  25. package/dist/access/index.js.map +1 -1
  26. package/dist/access/revolving.d.ts +2 -1
  27. package/dist/access/revolving.d.ts.map +1 -1
  28. package/dist/access/revolving.js +6 -6
  29. package/dist/access/revolving.js.map +1 -1
  30. package/dist/access/utils.d.ts +2 -1
  31. package/dist/access/utils.d.ts.map +1 -1
  32. package/dist/access/utils.js +40 -10
  33. package/dist/access/utils.js.map +1 -1
  34. package/dist/access/validation.d.ts +7 -6
  35. package/dist/access/validation.d.ts.map +1 -1
  36. package/dist/access/validation.js +1 -0
  37. package/dist/access/validation.js.map +1 -1
  38. package/dist/account/index.d.ts +21 -30
  39. package/dist/account/index.d.ts.map +1 -1
  40. package/dist/account/index.js +193 -224
  41. package/dist/account/index.js.map +1 -1
  42. package/dist/client.d.ts +22 -0
  43. package/dist/client.d.ts.map +1 -0
  44. package/dist/client.js +51 -0
  45. package/dist/client.js.map +1 -0
  46. package/dist/collateral/collateral-events.d.ts +9 -10
  47. package/dist/collateral/collateral-events.d.ts.map +1 -1
  48. package/dist/collateral/collateral-events.js +4 -4
  49. package/dist/collateral/collateral-events.js.map +1 -1
  50. package/dist/collateral/index.d.ts +7 -10
  51. package/dist/collateral/index.d.ts.map +1 -1
  52. package/dist/collateral/index.js +36 -37
  53. package/dist/collateral/index.js.map +1 -1
  54. package/dist/constants.d.ts +72 -16
  55. package/dist/constants.d.ts.map +1 -1
  56. package/dist/constants.js +148 -23
  57. package/dist/constants.js.map +1 -1
  58. package/dist/controller.d.ts +10 -17
  59. package/dist/controller.d.ts.map +1 -1
  60. package/dist/controller.js +66 -67
  61. package/dist/controller.js.map +1 -1
  62. package/dist/gql/getActiveLendersByMarket.d.ts +2 -3
  63. package/dist/gql/getActiveLendersByMarket.d.ts.map +1 -1
  64. package/dist/gql/getActiveLendersByMarket.js +10 -10
  65. package/dist/gql/getActiveLendersByMarket.js.map +1 -1
  66. package/dist/gql/getAllHooksDataForBorrower.d.ts.map +1 -1
  67. package/dist/gql/getAllHooksDataForBorrower.js +6 -3
  68. package/dist/gql/getAllHooksDataForBorrower.js.map +1 -1
  69. package/dist/gql/getAllHooksTemplates.d.ts.map +1 -1
  70. package/dist/gql/getAllHooksTemplates.js +3 -3
  71. package/dist/gql/getAllHooksTemplates.js.map +1 -1
  72. package/dist/gql/graphql.d.ts +373 -10
  73. package/dist/gql/graphql.d.ts.map +1 -1
  74. package/dist/gql/graphql.js +78 -4
  75. package/dist/gql/graphql.js.map +1 -1
  76. package/dist/index.d.ts +2 -1
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +3 -14
  79. package/dist/index.js.map +1 -1
  80. package/dist/internal/arch-controller.d.ts +6 -0
  81. package/dist/internal/arch-controller.d.ts.map +1 -0
  82. package/dist/internal/arch-controller.js +36 -0
  83. package/dist/internal/arch-controller.js.map +1 -0
  84. package/dist/internal/ethers-signer.d.ts +4 -0
  85. package/dist/internal/ethers-signer.d.ts.map +1 -0
  86. package/dist/internal/ethers-signer.js +12 -0
  87. package/dist/internal/ethers-signer.js.map +1 -0
  88. package/dist/internal/ethers-viem.d.ts +4 -0
  89. package/dist/internal/ethers-viem.d.ts.map +1 -0
  90. package/dist/internal/ethers-viem.js +43 -0
  91. package/dist/internal/ethers-viem.js.map +1 -0
  92. package/dist/internal/market-lens.d.ts +26 -0
  93. package/dist/internal/market-lens.d.ts.map +1 -0
  94. package/dist/internal/market-lens.js +117 -0
  95. package/dist/internal/market-lens.js.map +1 -0
  96. package/dist/internal/viem-read.d.ts +3 -0
  97. package/dist/internal/viem-read.d.ts.map +1 -0
  98. package/dist/internal/viem-read.js +13 -0
  99. package/dist/internal/viem-read.js.map +1 -0
  100. package/dist/internal/viem-write.d.ts +9 -0
  101. package/dist/internal/viem-write.d.ts.map +1 -0
  102. package/dist/internal/viem-write.js +24 -0
  103. package/dist/internal/viem-write.js.map +1 -0
  104. package/dist/lens-types.d.ts +283 -0
  105. package/dist/lens-types.d.ts.map +1 -0
  106. package/dist/{typechain/ISafe.js → lens-types.js} +1 -1
  107. package/dist/lens-types.js.map +1 -0
  108. package/dist/market.d.ts +13 -16
  109. package/dist/market.d.ts.map +1 -1
  110. package/dist/market.js +207 -198
  111. package/dist/market.js.map +1 -1
  112. package/dist/mockerc20factory.d.ts +4 -15
  113. package/dist/mockerc20factory.d.ts.map +1 -1
  114. package/dist/mockerc20factory.js +20 -15
  115. package/dist/mockerc20factory.js.map +1 -1
  116. package/dist/token.d.ts +24 -11
  117. package/dist/token.d.ts.map +1 -1
  118. package/dist/token.js +78 -61
  119. package/dist/token.js.map +1 -1
  120. package/dist/types.d.ts +53 -12
  121. package/dist/types.d.ts.map +1 -1
  122. package/dist/types.js +6 -15
  123. package/dist/types.js.map +1 -1
  124. package/dist/utils/bigint.d.ts +22 -0
  125. package/dist/utils/bigint.d.ts.map +1 -0
  126. package/dist/utils/bigint.js +111 -0
  127. package/dist/utils/bigint.js.map +1 -0
  128. package/dist/utils/check-registered-borrowers.d.ts.map +1 -1
  129. package/dist/utils/check-registered-borrowers.js +7 -6
  130. package/dist/utils/check-registered-borrowers.js.map +1 -1
  131. package/dist/utils/describe-account.d.ts.map +1 -1
  132. package/dist/utils/describe-account.js +33 -4
  133. package/dist/utils/describe-account.js.map +1 -1
  134. package/dist/utils/describe-signature.d.ts.map +1 -1
  135. package/dist/utils/describe-signature.js +66 -14
  136. package/dist/utils/describe-signature.js.map +1 -1
  137. package/dist/utils/index.d.ts +2 -0
  138. package/dist/utils/index.d.ts.map +1 -1
  139. package/dist/utils/index.js +2 -0
  140. package/dist/utils/index.js.map +1 -1
  141. package/dist/utils/math.d.ts +1 -13
  142. package/dist/utils/math.d.ts.map +1 -1
  143. package/dist/utils/math.js +14 -50
  144. package/dist/utils/math.js.map +1 -1
  145. package/dist/utils/misc.d.ts +5 -4
  146. package/dist/utils/misc.d.ts.map +1 -1
  147. package/dist/utils/misc.js +6 -6
  148. package/dist/utils/misc.js.map +1 -1
  149. package/dist/utils/record-types.d.ts +4 -5
  150. package/dist/utils/record-types.d.ts.map +1 -1
  151. package/dist/utils/record-types.js +2 -2
  152. package/dist/utils/record-types.js.map +1 -1
  153. package/dist/utils/type-parsers.d.ts +9 -3
  154. package/dist/utils/type-parsers.d.ts.map +1 -1
  155. package/dist/utils/type-parsers.js +14 -13
  156. package/dist/utils/type-parsers.js.map +1 -1
  157. package/dist/utils/viem-encoding.d.ts +15 -0
  158. package/dist/utils/viem-encoding.d.ts.map +1 -0
  159. package/dist/utils/viem-encoding.js +33 -0
  160. package/dist/utils/viem-encoding.js.map +1 -0
  161. package/dist/withdrawal-batch.d.ts +6 -7
  162. package/dist/withdrawal-batch.d.ts.map +1 -1
  163. package/dist/withdrawal-batch.js +29 -30
  164. package/dist/withdrawal-batch.js.map +1 -1
  165. package/dist/withdrawal-status.d.ts +5 -5
  166. package/dist/withdrawal-status.d.ts.map +1 -1
  167. package/dist/withdrawal-status.js +15 -12
  168. package/dist/withdrawal-status.js.map +1 -1
  169. package/dist/wrapper/index.d.ts +14 -31
  170. package/dist/wrapper/index.d.ts.map +1 -1
  171. package/dist/wrapper/index.js +80 -83
  172. package/dist/wrapper/index.js.map +1 -1
  173. package/package.json +13 -11
  174. package/dist/typechain/AccountQuery.d.ts +0 -56
  175. package/dist/typechain/AccountQuery.d.ts.map +0 -1
  176. package/dist/typechain/AccountQuery.js +0 -3
  177. package/dist/typechain/AccountQuery.js.map +0 -1
  178. package/dist/typechain/AccountsQuery.d.ts +0 -56
  179. package/dist/typechain/AccountsQuery.d.ts.map +0 -1
  180. package/dist/typechain/AccountsQuery.js +0 -3
  181. package/dist/typechain/AccountsQuery.js.map +0 -1
  182. package/dist/typechain/CheckBorrowersRegistered.d.ts +0 -29
  183. package/dist/typechain/CheckBorrowersRegistered.d.ts.map +0 -1
  184. package/dist/typechain/CheckBorrowersRegistered.js +0 -3
  185. package/dist/typechain/CheckBorrowersRegistered.js.map +0 -1
  186. package/dist/typechain/CheckSafeSignature.d.ts +0 -29
  187. package/dist/typechain/CheckSafeSignature.d.ts.map +0 -1
  188. package/dist/typechain/CheckSafeSignature.js +0 -3
  189. package/dist/typechain/CheckSafeSignature.js.map +0 -1
  190. package/dist/typechain/CollateralLens.d.ts +0 -220
  191. package/dist/typechain/CollateralLens.d.ts.map +0 -1
  192. package/dist/typechain/CollateralLens.js +0 -3
  193. package/dist/typechain/CollateralLens.js.map +0 -1
  194. package/dist/typechain/DescribeSignature.d.ts +0 -102
  195. package/dist/typechain/DescribeSignature.d.ts.map +0 -1
  196. package/dist/typechain/DescribeSignature.js +0 -3
  197. package/dist/typechain/DescribeSignature.js.map +0 -1
  198. package/dist/typechain/HooksFactory.d.ts +0 -593
  199. package/dist/typechain/HooksFactory.d.ts.map +0 -1
  200. package/dist/typechain/HooksFactory.js +0 -3
  201. package/dist/typechain/HooksFactory.js.map +0 -1
  202. package/dist/typechain/HooksFactoryRevolving.d.ts +0 -603
  203. package/dist/typechain/HooksFactoryRevolving.d.ts.map +0 -1
  204. package/dist/typechain/HooksFactoryRevolving.js +0 -3
  205. package/dist/typechain/HooksFactoryRevolving.js.map +0 -1
  206. package/dist/typechain/IERC20.d.ts +0 -232
  207. package/dist/typechain/IERC20.d.ts.map +0 -1
  208. package/dist/typechain/IERC20.js +0 -3
  209. package/dist/typechain/IERC20.js.map +0 -1
  210. package/dist/typechain/IFixedTermHooks.d.ts +0 -1032
  211. package/dist/typechain/IFixedTermHooks.d.ts.map +0 -1
  212. package/dist/typechain/IFixedTermHooks.js +0 -3
  213. package/dist/typechain/IFixedTermHooks.js.map +0 -1
  214. package/dist/typechain/IOpenTermHooks.d.ts +0 -987
  215. package/dist/typechain/IOpenTermHooks.d.ts.map +0 -1
  216. package/dist/typechain/IOpenTermHooks.js +0 -3
  217. package/dist/typechain/IOpenTermHooks.js.map +0 -1
  218. package/dist/typechain/ISafe.d.ts +0 -124
  219. package/dist/typechain/ISafe.d.ts.map +0 -1
  220. package/dist/typechain/ISafe.js.map +0 -1
  221. package/dist/typechain/MarketLens.d.ts +0 -611
  222. package/dist/typechain/MarketLens.d.ts.map +0 -1
  223. package/dist/typechain/MarketLens.js +0 -3
  224. package/dist/typechain/MarketLens.js.map +0 -1
  225. package/dist/typechain/MarketLensV2.d.ts +0 -704
  226. package/dist/typechain/MarketLensV2.d.ts.map +0 -1
  227. package/dist/typechain/MarketLensV2.js +0 -3
  228. package/dist/typechain/MarketLensV2.js.map +0 -1
  229. package/dist/typechain/MarketLensV2_5.d.ts +0 -996
  230. package/dist/typechain/MarketLensV2_5.d.ts.map +0 -1
  231. package/dist/typechain/MarketLensV2_5.js +0 -3
  232. package/dist/typechain/MarketLensV2_5.js.map +0 -1
  233. package/dist/typechain/MockArchControllerOwner.d.ts +0 -130
  234. package/dist/typechain/MockArchControllerOwner.d.ts.map +0 -1
  235. package/dist/typechain/MockArchControllerOwner.js +0 -3
  236. package/dist/typechain/MockArchControllerOwner.js.map +0 -1
  237. package/dist/typechain/MockERC20Factory.d.ts +0 -122
  238. package/dist/typechain/MockERC20Factory.d.ts.map +0 -1
  239. package/dist/typechain/MockERC20Factory.js +0 -3
  240. package/dist/typechain/MockERC20Factory.js.map +0 -1
  241. package/dist/typechain/SimpleMarketCollateral.d.ts +0 -270
  242. package/dist/typechain/SimpleMarketCollateral.d.ts.map +0 -1
  243. package/dist/typechain/SimpleMarketCollateral.js +0 -3
  244. package/dist/typechain/SimpleMarketCollateral.js.map +0 -1
  245. package/dist/typechain/Wildcat4626Wrapper.sol/IWildcatMarketToken.d.ts +0 -176
  246. package/dist/typechain/Wildcat4626Wrapper.sol/IWildcatMarketToken.d.ts.map +0 -1
  247. package/dist/typechain/Wildcat4626Wrapper.sol/IWildcatMarketToken.js +0 -3
  248. package/dist/typechain/Wildcat4626Wrapper.sol/IWildcatMarketToken.js.map +0 -1
  249. package/dist/typechain/Wildcat4626Wrapper.sol/IWildcatSanctionsSentinel.d.ts +0 -44
  250. package/dist/typechain/Wildcat4626Wrapper.sol/IWildcatSanctionsSentinel.d.ts.map +0 -1
  251. package/dist/typechain/Wildcat4626Wrapper.sol/IWildcatSanctionsSentinel.js +0 -3
  252. package/dist/typechain/Wildcat4626Wrapper.sol/IWildcatSanctionsSentinel.js.map +0 -1
  253. package/dist/typechain/Wildcat4626Wrapper.sol/Wildcat4626Wrapper.d.ts +0 -501
  254. package/dist/typechain/Wildcat4626Wrapper.sol/Wildcat4626Wrapper.d.ts.map +0 -1
  255. package/dist/typechain/Wildcat4626Wrapper.sol/Wildcat4626Wrapper.js +0 -3
  256. package/dist/typechain/Wildcat4626Wrapper.sol/Wildcat4626Wrapper.js.map +0 -1
  257. package/dist/typechain/Wildcat4626Wrapper.sol/index.d.ts +0 -4
  258. package/dist/typechain/Wildcat4626Wrapper.sol/index.d.ts.map +0 -1
  259. package/dist/typechain/Wildcat4626Wrapper.sol/index.js +0 -3
  260. package/dist/typechain/Wildcat4626Wrapper.sol/index.js.map +0 -1
  261. package/dist/typechain/Wildcat4626WrapperFactory.d.ts +0 -83
  262. package/dist/typechain/Wildcat4626WrapperFactory.d.ts.map +0 -1
  263. package/dist/typechain/Wildcat4626WrapperFactory.js +0 -3
  264. package/dist/typechain/Wildcat4626WrapperFactory.js.map +0 -1
  265. package/dist/typechain/WildcatArchController.d.ts +0 -545
  266. package/dist/typechain/WildcatArchController.d.ts.map +0 -1
  267. package/dist/typechain/WildcatArchController.js +0 -3
  268. package/dist/typechain/WildcatArchController.js.map +0 -1
  269. package/dist/typechain/WildcatCollateralFactory.d.ts +0 -164
  270. package/dist/typechain/WildcatCollateralFactory.d.ts.map +0 -1
  271. package/dist/typechain/WildcatCollateralFactory.js +0 -3
  272. package/dist/typechain/WildcatCollateralFactory.js.map +0 -1
  273. package/dist/typechain/WildcatMarket.d.ts +0 -1062
  274. package/dist/typechain/WildcatMarket.d.ts.map +0 -1
  275. package/dist/typechain/WildcatMarket.js +0 -3
  276. package/dist/typechain/WildcatMarket.js.map +0 -1
  277. package/dist/typechain/WildcatMarketController.d.ts +0 -553
  278. package/dist/typechain/WildcatMarketController.d.ts.map +0 -1
  279. package/dist/typechain/WildcatMarketController.js +0 -3
  280. package/dist/typechain/WildcatMarketController.js.map +0 -1
  281. package/dist/typechain/WildcatMarketControllerFactory.d.ts +0 -344
  282. package/dist/typechain/WildcatMarketControllerFactory.d.ts.map +0 -1
  283. package/dist/typechain/WildcatMarketControllerFactory.js +0 -3
  284. package/dist/typechain/WildcatMarketControllerFactory.js.map +0 -1
  285. package/dist/typechain/WildcatMarketV2.d.ts +0 -1086
  286. package/dist/typechain/WildcatMarketV2.d.ts.map +0 -1
  287. package/dist/typechain/WildcatMarketV2.js +0 -3
  288. package/dist/typechain/WildcatMarketV2.js.map +0 -1
  289. package/dist/typechain/common.d.ts +0 -23
  290. package/dist/typechain/common.d.ts.map +0 -1
  291. package/dist/typechain/common.js +0 -3
  292. package/dist/typechain/common.js.map +0 -1
  293. package/dist/typechain/factories/AccountQuery__factory.d.ts +0 -63
  294. package/dist/typechain/factories/AccountQuery__factory.d.ts.map +0 -1
  295. package/dist/typechain/factories/AccountQuery__factory.js +0 -96
  296. package/dist/typechain/factories/AccountQuery__factory.js.map +0 -1
  297. package/dist/typechain/factories/AccountsQuery__factory.d.ts +0 -63
  298. package/dist/typechain/factories/AccountsQuery__factory.d.ts.map +0 -1
  299. package/dist/typechain/factories/AccountsQuery__factory.js +0 -96
  300. package/dist/typechain/factories/AccountsQuery__factory.js.map +0 -1
  301. package/dist/typechain/factories/CheckBorrowersRegistered__factory.d.ts +0 -36
  302. package/dist/typechain/factories/CheckBorrowersRegistered__factory.d.ts.map +0 -1
  303. package/dist/typechain/factories/CheckBorrowersRegistered__factory.js +0 -60
  304. package/dist/typechain/factories/CheckBorrowersRegistered__factory.js.map +0 -1
  305. package/dist/typechain/factories/CheckSafeSignature__factory.d.ts +0 -40
  306. package/dist/typechain/factories/CheckSafeSignature__factory.d.ts.map +0 -1
  307. package/dist/typechain/factories/CheckSafeSignature__factory.js +0 -65
  308. package/dist/typechain/factories/CheckSafeSignature__factory.js.map +0 -1
  309. package/dist/typechain/factories/CollateralLens__factory.d.ts +0 -854
  310. package/dist/typechain/factories/CollateralLens__factory.d.ts.map +0 -1
  311. package/dist/typechain/factories/CollateralLens__factory.js +0 -1101
  312. package/dist/typechain/factories/CollateralLens__factory.js.map +0 -1
  313. package/dist/typechain/factories/DescribeSignature__factory.d.ts +0 -145
  314. package/dist/typechain/factories/DescribeSignature__factory.d.ts.map +0 -1
  315. package/dist/typechain/factories/DescribeSignature__factory.js +0 -203
  316. package/dist/typechain/factories/DescribeSignature__factory.js.map +0 -1
  317. package/dist/typechain/factories/HooksFactoryRevolving__factory.d.ts +0 -872
  318. package/dist/typechain/factories/HooksFactoryRevolving__factory.d.ts.map +0 -1
  319. package/dist/typechain/factories/HooksFactoryRevolving__factory.js +0 -1131
  320. package/dist/typechain/factories/HooksFactoryRevolving__factory.js.map +0 -1
  321. package/dist/typechain/factories/HooksFactory__factory.d.ts +0 -902
  322. package/dist/typechain/factories/HooksFactory__factory.d.ts.map +0 -1
  323. package/dist/typechain/factories/HooksFactory__factory.js +0 -1168
  324. package/dist/typechain/factories/HooksFactory__factory.js.map +0 -1
  325. package/dist/typechain/factories/IERC20__factory.d.ts +0 -235
  326. package/dist/typechain/factories/IERC20__factory.d.ts.map +0 -1
  327. package/dist/typechain/factories/IERC20__factory.js +0 -315
  328. package/dist/typechain/factories/IERC20__factory.js.map +0 -1
  329. package/dist/typechain/factories/IFixedTermHooks__factory.d.ts +0 -1894
  330. package/dist/typechain/factories/IFixedTermHooks__factory.d.ts.map +0 -1
  331. package/dist/typechain/factories/IFixedTermHooks__factory.js +0 -2423
  332. package/dist/typechain/factories/IFixedTermHooks__factory.js.map +0 -1
  333. package/dist/typechain/factories/IOpenTermHooks__factory.d.ts +0 -1791
  334. package/dist/typechain/factories/IOpenTermHooks__factory.d.ts.map +0 -1
  335. package/dist/typechain/factories/IOpenTermHooks__factory.js +0 -2293
  336. package/dist/typechain/factories/IOpenTermHooks__factory.js.map +0 -1
  337. package/dist/typechain/factories/ISafe__factory.d.ts +0 -163
  338. package/dist/typechain/factories/ISafe__factory.d.ts.map +0 -1
  339. package/dist/typechain/factories/ISafe__factory.js +0 -225
  340. package/dist/typechain/factories/ISafe__factory.js.map +0 -1
  341. package/dist/typechain/factories/MarketLensV2_5__factory.d.ts +0 -14397
  342. package/dist/typechain/factories/MarketLensV2_5__factory.d.ts.map +0 -1
  343. package/dist/typechain/factories/MarketLensV2_5__factory.js +0 -18393
  344. package/dist/typechain/factories/MarketLensV2_5__factory.js.map +0 -1
  345. package/dist/typechain/factories/MarketLensV2__factory.d.ts +0 -6612
  346. package/dist/typechain/factories/MarketLensV2__factory.d.ts.map +0 -1
  347. package/dist/typechain/factories/MarketLensV2__factory.js +0 -8454
  348. package/dist/typechain/factories/MarketLensV2__factory.js.map +0 -1
  349. package/dist/typechain/factories/MarketLens__factory.d.ts +0 -3572
  350. package/dist/typechain/factories/MarketLens__factory.d.ts.map +0 -1
  351. package/dist/typechain/factories/MarketLens__factory.js +0 -4569
  352. package/dist/typechain/factories/MarketLens__factory.js.map +0 -1
  353. package/dist/typechain/factories/MockArchControllerOwner__factory.d.ts +0 -85
  354. package/dist/typechain/factories/MockArchControllerOwner__factory.d.ts.map +0 -1
  355. package/dist/typechain/factories/MockArchControllerOwner__factory.js +0 -118
  356. package/dist/typechain/factories/MockArchControllerOwner__factory.js.map +0 -1
  357. package/dist/typechain/factories/MockERC20Factory__factory.d.ts +0 -114
  358. package/dist/typechain/factories/MockERC20Factory__factory.d.ts.map +0 -1
  359. package/dist/typechain/factories/MockERC20Factory__factory.js +0 -157
  360. package/dist/typechain/factories/MockERC20Factory__factory.js.map +0 -1
  361. package/dist/typechain/factories/SimpleMarketCollateral__factory.d.ts +0 -264
  362. package/dist/typechain/factories/SimpleMarketCollateral__factory.d.ts.map +0 -1
  363. package/dist/typechain/factories/SimpleMarketCollateral__factory.js +0 -354
  364. package/dist/typechain/factories/SimpleMarketCollateral__factory.js.map +0 -1
  365. package/dist/typechain/factories/Wildcat4626Wrapper.sol/IWildcatMarketToken__factory.d.ts +0 -193
  366. package/dist/typechain/factories/Wildcat4626Wrapper.sol/IWildcatMarketToken__factory.d.ts.map +0 -1
  367. package/dist/typechain/factories/Wildcat4626Wrapper.sol/IWildcatMarketToken__factory.js +0 -263
  368. package/dist/typechain/factories/Wildcat4626Wrapper.sol/IWildcatMarketToken__factory.js.map +0 -1
  369. package/dist/typechain/factories/Wildcat4626Wrapper.sol/IWildcatSanctionsSentinel__factory.d.ts +0 -27
  370. package/dist/typechain/factories/Wildcat4626Wrapper.sol/IWildcatSanctionsSentinel__factory.d.ts.map +0 -1
  371. package/dist/typechain/factories/Wildcat4626Wrapper.sol/IWildcatSanctionsSentinel__factory.js +0 -44
  372. package/dist/typechain/factories/Wildcat4626Wrapper.sol/IWildcatSanctionsSentinel__factory.js.map +0 -1
  373. package/dist/typechain/factories/Wildcat4626Wrapper.sol/Wildcat4626Wrapper__factory.d.ts +0 -718
  374. package/dist/typechain/factories/Wildcat4626Wrapper.sol/Wildcat4626Wrapper__factory.d.ts.map +0 -1
  375. package/dist/typechain/factories/Wildcat4626Wrapper.sol/Wildcat4626Wrapper__factory.js +0 -946
  376. package/dist/typechain/factories/Wildcat4626Wrapper.sol/Wildcat4626Wrapper__factory.js.map +0 -1
  377. package/dist/typechain/factories/Wildcat4626Wrapper.sol/index.d.ts +0 -4
  378. package/dist/typechain/factories/Wildcat4626Wrapper.sol/index.d.ts.map +0 -1
  379. package/dist/typechain/factories/Wildcat4626Wrapper.sol/index.js +0 -13
  380. package/dist/typechain/factories/Wildcat4626Wrapper.sol/index.js.map +0 -1
  381. package/dist/typechain/factories/Wildcat4626WrapperFactory__factory.d.ts +0 -82
  382. package/dist/typechain/factories/Wildcat4626WrapperFactory__factory.d.ts.map +0 -1
  383. package/dist/typechain/factories/Wildcat4626WrapperFactory__factory.js +0 -117
  384. package/dist/typechain/factories/Wildcat4626WrapperFactory__factory.js.map +0 -1
  385. package/dist/typechain/factories/WildcatArchController__factory.d.ts +0 -554
  386. package/dist/typechain/factories/WildcatArchController__factory.d.ts.map +0 -1
  387. package/dist/typechain/factories/WildcatArchController__factory.js +0 -728
  388. package/dist/typechain/factories/WildcatArchController__factory.js.map +0 -1
  389. package/dist/typechain/factories/WildcatCollateralFactory__factory.d.ts +0 -160
  390. package/dist/typechain/factories/WildcatCollateralFactory__factory.d.ts.map +0 -1
  391. package/dist/typechain/factories/WildcatCollateralFactory__factory.js +0 -223
  392. package/dist/typechain/factories/WildcatCollateralFactory__factory.js.map +0 -1
  393. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.d.ts +0 -421
  394. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.d.ts.map +0 -1
  395. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.js +0 -549
  396. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.js.map +0 -1
  397. package/dist/typechain/factories/WildcatMarketController__factory.d.ts +0 -671
  398. package/dist/typechain/factories/WildcatMarketController__factory.d.ts.map +0 -1
  399. package/dist/typechain/factories/WildcatMarketController__factory.js +0 -870
  400. package/dist/typechain/factories/WildcatMarketController__factory.js.map +0 -1
  401. package/dist/typechain/factories/WildcatMarketV2__factory.d.ts +0 -1304
  402. package/dist/typechain/factories/WildcatMarketV2__factory.d.ts.map +0 -1
  403. package/dist/typechain/factories/WildcatMarketV2__factory.js +0 -1680
  404. package/dist/typechain/factories/WildcatMarketV2__factory.js.map +0 -1
  405. package/dist/typechain/factories/WildcatMarket__factory.d.ts +0 -1326
  406. package/dist/typechain/factories/WildcatMarket__factory.d.ts.map +0 -1
  407. package/dist/typechain/factories/WildcatMarket__factory.js +0 -1712
  408. package/dist/typechain/factories/WildcatMarket__factory.js.map +0 -1
  409. package/dist/typechain/factories/index.d.ts +0 -27
  410. package/dist/typechain/factories/index.d.ts.map +0 -1
  411. package/dist/typechain/factories/index.js +0 -81
  412. package/dist/typechain/factories/index.js.map +0 -1
  413. package/dist/typechain/index.d.ts +0 -73
  414. package/dist/typechain/index.d.ts.map +0 -1
  415. package/dist/typechain/index.js +0 -84
  416. package/dist/typechain/index.js.map +0 -1
@@ -1,4569 +0,0 @@
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.MarketLens__factory = void 0;
7
- const ethers_1 = require("ethers");
8
- const _abi = [
9
- {
10
- inputs: [],
11
- name: "archController",
12
- outputs: [
13
- {
14
- internalType: "address",
15
- name: "",
16
- type: "address",
17
- },
18
- ],
19
- stateMutability: "view",
20
- type: "function",
21
- },
22
- {
23
- inputs: [],
24
- name: "controllerFactory",
25
- outputs: [
26
- {
27
- internalType: "address",
28
- name: "",
29
- type: "address",
30
- },
31
- ],
32
- stateMutability: "view",
33
- type: "function",
34
- },
35
- {
36
- inputs: [],
37
- name: "getAllControllersDataForBorrowers",
38
- outputs: [
39
- {
40
- components: [
41
- {
42
- internalType: "address",
43
- name: "borrower",
44
- type: "address",
45
- },
46
- {
47
- internalType: "address",
48
- name: "controller",
49
- type: "address",
50
- },
51
- {
52
- internalType: "address",
53
- name: "controllerFactory",
54
- type: "address",
55
- },
56
- {
57
- internalType: "bool",
58
- name: "isRegisteredBorrower",
59
- type: "bool",
60
- },
61
- {
62
- internalType: "bool",
63
- name: "hasDeployedController",
64
- type: "bool",
65
- },
66
- {
67
- components: [
68
- {
69
- internalType: "address",
70
- name: "feeRecipient",
71
- type: "address",
72
- },
73
- {
74
- internalType: "uint16",
75
- name: "protocolFeeBips",
76
- type: "uint16",
77
- },
78
- {
79
- components: [
80
- {
81
- internalType: "address",
82
- name: "token",
83
- type: "address",
84
- },
85
- {
86
- internalType: "string",
87
- name: "name",
88
- type: "string",
89
- },
90
- {
91
- internalType: "string",
92
- name: "symbol",
93
- type: "string",
94
- },
95
- {
96
- internalType: "uint256",
97
- name: "decimals",
98
- type: "uint256",
99
- },
100
- {
101
- internalType: "bool",
102
- name: "isMock",
103
- type: "bool",
104
- },
105
- ],
106
- internalType: "struct TokenMetadata",
107
- name: "originationFeeToken",
108
- type: "tuple",
109
- },
110
- {
111
- internalType: "uint256",
112
- name: "originationFeeAmount",
113
- type: "uint256",
114
- },
115
- ],
116
- internalType: "struct FeeConfiguration",
117
- name: "fees",
118
- type: "tuple",
119
- },
120
- {
121
- components: [
122
- {
123
- internalType: "uint32",
124
- name: "minimumDelinquencyGracePeriod",
125
- type: "uint32",
126
- },
127
- {
128
- internalType: "uint32",
129
- name: "maximumDelinquencyGracePeriod",
130
- type: "uint32",
131
- },
132
- {
133
- internalType: "uint16",
134
- name: "minimumReserveRatioBips",
135
- type: "uint16",
136
- },
137
- {
138
- internalType: "uint16",
139
- name: "maximumReserveRatioBips",
140
- type: "uint16",
141
- },
142
- {
143
- internalType: "uint16",
144
- name: "minimumDelinquencyFeeBips",
145
- type: "uint16",
146
- },
147
- {
148
- internalType: "uint16",
149
- name: "maximumDelinquencyFeeBips",
150
- type: "uint16",
151
- },
152
- {
153
- internalType: "uint32",
154
- name: "minimumWithdrawalBatchDuration",
155
- type: "uint32",
156
- },
157
- {
158
- internalType: "uint32",
159
- name: "maximumWithdrawalBatchDuration",
160
- type: "uint32",
161
- },
162
- {
163
- internalType: "uint16",
164
- name: "minimumAnnualInterestBips",
165
- type: "uint16",
166
- },
167
- {
168
- internalType: "uint16",
169
- name: "maximumAnnualInterestBips",
170
- type: "uint16",
171
- },
172
- ],
173
- internalType: "struct MarketParameterConstraints",
174
- name: "constraints",
175
- type: "tuple",
176
- },
177
- {
178
- components: [
179
- {
180
- components: [
181
- {
182
- internalType: "address",
183
- name: "token",
184
- type: "address",
185
- },
186
- {
187
- internalType: "string",
188
- name: "name",
189
- type: "string",
190
- },
191
- {
192
- internalType: "string",
193
- name: "symbol",
194
- type: "string",
195
- },
196
- {
197
- internalType: "uint256",
198
- name: "decimals",
199
- type: "uint256",
200
- },
201
- {
202
- internalType: "bool",
203
- name: "isMock",
204
- type: "bool",
205
- },
206
- ],
207
- internalType: "struct TokenMetadata",
208
- name: "marketToken",
209
- type: "tuple",
210
- },
211
- {
212
- components: [
213
- {
214
- internalType: "address",
215
- name: "token",
216
- type: "address",
217
- },
218
- {
219
- internalType: "string",
220
- name: "name",
221
- type: "string",
222
- },
223
- {
224
- internalType: "string",
225
- name: "symbol",
226
- type: "string",
227
- },
228
- {
229
- internalType: "uint256",
230
- name: "decimals",
231
- type: "uint256",
232
- },
233
- {
234
- internalType: "bool",
235
- name: "isMock",
236
- type: "bool",
237
- },
238
- ],
239
- internalType: "struct TokenMetadata",
240
- name: "underlyingToken",
241
- type: "tuple",
242
- },
243
- {
244
- internalType: "address",
245
- name: "borrower",
246
- type: "address",
247
- },
248
- {
249
- internalType: "address",
250
- name: "controller",
251
- type: "address",
252
- },
253
- {
254
- internalType: "address",
255
- name: "feeRecipient",
256
- type: "address",
257
- },
258
- {
259
- internalType: "uint256",
260
- name: "protocolFeeBips",
261
- type: "uint256",
262
- },
263
- {
264
- internalType: "uint256",
265
- name: "delinquencyFeeBips",
266
- type: "uint256",
267
- },
268
- {
269
- internalType: "uint256",
270
- name: "delinquencyGracePeriod",
271
- type: "uint256",
272
- },
273
- {
274
- internalType: "uint256",
275
- name: "withdrawalBatchDuration",
276
- type: "uint256",
277
- },
278
- {
279
- internalType: "uint256",
280
- name: "reserveRatioBips",
281
- type: "uint256",
282
- },
283
- {
284
- internalType: "uint256",
285
- name: "annualInterestBips",
286
- type: "uint256",
287
- },
288
- {
289
- internalType: "bool",
290
- name: "temporaryReserveRatio",
291
- type: "bool",
292
- },
293
- {
294
- internalType: "uint256",
295
- name: "originalAnnualInterestBips",
296
- type: "uint256",
297
- },
298
- {
299
- internalType: "uint256",
300
- name: "originalReserveRatioBips",
301
- type: "uint256",
302
- },
303
- {
304
- internalType: "uint256",
305
- name: "temporaryReserveRatioExpiry",
306
- type: "uint256",
307
- },
308
- {
309
- internalType: "bool",
310
- name: "isClosed",
311
- type: "bool",
312
- },
313
- {
314
- internalType: "uint256",
315
- name: "scaleFactor",
316
- type: "uint256",
317
- },
318
- {
319
- internalType: "uint256",
320
- name: "totalSupply",
321
- type: "uint256",
322
- },
323
- {
324
- internalType: "uint256",
325
- name: "maxTotalSupply",
326
- type: "uint256",
327
- },
328
- {
329
- internalType: "uint256",
330
- name: "scaledTotalSupply",
331
- type: "uint256",
332
- },
333
- {
334
- internalType: "uint256",
335
- name: "totalAssets",
336
- type: "uint256",
337
- },
338
- {
339
- internalType: "uint256",
340
- name: "lastAccruedProtocolFees",
341
- type: "uint256",
342
- },
343
- {
344
- internalType: "uint256",
345
- name: "normalizedUnclaimedWithdrawals",
346
- type: "uint256",
347
- },
348
- {
349
- internalType: "uint256",
350
- name: "scaledPendingWithdrawals",
351
- type: "uint256",
352
- },
353
- {
354
- internalType: "uint256",
355
- name: "pendingWithdrawalExpiry",
356
- type: "uint256",
357
- },
358
- {
359
- internalType: "bool",
360
- name: "isDelinquent",
361
- type: "bool",
362
- },
363
- {
364
- internalType: "uint256",
365
- name: "timeDelinquent",
366
- type: "uint256",
367
- },
368
- {
369
- internalType: "uint256",
370
- name: "lastInterestAccruedTimestamp",
371
- type: "uint256",
372
- },
373
- {
374
- internalType: "uint32[]",
375
- name: "unpaidWithdrawalBatchExpiries",
376
- type: "uint32[]",
377
- },
378
- {
379
- internalType: "uint256",
380
- name: "coverageLiquidity",
381
- type: "uint256",
382
- },
383
- {
384
- internalType: "uint256",
385
- name: "borrowableAssets",
386
- type: "uint256",
387
- },
388
- {
389
- internalType: "uint256",
390
- name: "delinquentDebt",
391
- type: "uint256",
392
- },
393
- ],
394
- internalType: "struct MarketData[]",
395
- name: "markets",
396
- type: "tuple[]",
397
- },
398
- {
399
- internalType: "uint256",
400
- name: "borrowerOriginationFeeBalance",
401
- type: "uint256",
402
- },
403
- {
404
- internalType: "uint256",
405
- name: "borrowerOriginationFeeApproval",
406
- type: "uint256",
407
- },
408
- ],
409
- internalType: "struct ControllerData[]",
410
- name: "data",
411
- type: "tuple[]",
412
- },
413
- ],
414
- stateMutability: "view",
415
- type: "function",
416
- },
417
- {
418
- inputs: [],
419
- name: "getAllMarketsData",
420
- outputs: [
421
- {
422
- components: [
423
- {
424
- components: [
425
- {
426
- internalType: "address",
427
- name: "token",
428
- type: "address",
429
- },
430
- {
431
- internalType: "string",
432
- name: "name",
433
- type: "string",
434
- },
435
- {
436
- internalType: "string",
437
- name: "symbol",
438
- type: "string",
439
- },
440
- {
441
- internalType: "uint256",
442
- name: "decimals",
443
- type: "uint256",
444
- },
445
- {
446
- internalType: "bool",
447
- name: "isMock",
448
- type: "bool",
449
- },
450
- ],
451
- internalType: "struct TokenMetadata",
452
- name: "marketToken",
453
- type: "tuple",
454
- },
455
- {
456
- components: [
457
- {
458
- internalType: "address",
459
- name: "token",
460
- type: "address",
461
- },
462
- {
463
- internalType: "string",
464
- name: "name",
465
- type: "string",
466
- },
467
- {
468
- internalType: "string",
469
- name: "symbol",
470
- type: "string",
471
- },
472
- {
473
- internalType: "uint256",
474
- name: "decimals",
475
- type: "uint256",
476
- },
477
- {
478
- internalType: "bool",
479
- name: "isMock",
480
- type: "bool",
481
- },
482
- ],
483
- internalType: "struct TokenMetadata",
484
- name: "underlyingToken",
485
- type: "tuple",
486
- },
487
- {
488
- internalType: "address",
489
- name: "borrower",
490
- type: "address",
491
- },
492
- {
493
- internalType: "address",
494
- name: "controller",
495
- type: "address",
496
- },
497
- {
498
- internalType: "address",
499
- name: "feeRecipient",
500
- type: "address",
501
- },
502
- {
503
- internalType: "uint256",
504
- name: "protocolFeeBips",
505
- type: "uint256",
506
- },
507
- {
508
- internalType: "uint256",
509
- name: "delinquencyFeeBips",
510
- type: "uint256",
511
- },
512
- {
513
- internalType: "uint256",
514
- name: "delinquencyGracePeriod",
515
- type: "uint256",
516
- },
517
- {
518
- internalType: "uint256",
519
- name: "withdrawalBatchDuration",
520
- type: "uint256",
521
- },
522
- {
523
- internalType: "uint256",
524
- name: "reserveRatioBips",
525
- type: "uint256",
526
- },
527
- {
528
- internalType: "uint256",
529
- name: "annualInterestBips",
530
- type: "uint256",
531
- },
532
- {
533
- internalType: "bool",
534
- name: "temporaryReserveRatio",
535
- type: "bool",
536
- },
537
- {
538
- internalType: "uint256",
539
- name: "originalAnnualInterestBips",
540
- type: "uint256",
541
- },
542
- {
543
- internalType: "uint256",
544
- name: "originalReserveRatioBips",
545
- type: "uint256",
546
- },
547
- {
548
- internalType: "uint256",
549
- name: "temporaryReserveRatioExpiry",
550
- type: "uint256",
551
- },
552
- {
553
- internalType: "bool",
554
- name: "isClosed",
555
- type: "bool",
556
- },
557
- {
558
- internalType: "uint256",
559
- name: "scaleFactor",
560
- type: "uint256",
561
- },
562
- {
563
- internalType: "uint256",
564
- name: "totalSupply",
565
- type: "uint256",
566
- },
567
- {
568
- internalType: "uint256",
569
- name: "maxTotalSupply",
570
- type: "uint256",
571
- },
572
- {
573
- internalType: "uint256",
574
- name: "scaledTotalSupply",
575
- type: "uint256",
576
- },
577
- {
578
- internalType: "uint256",
579
- name: "totalAssets",
580
- type: "uint256",
581
- },
582
- {
583
- internalType: "uint256",
584
- name: "lastAccruedProtocolFees",
585
- type: "uint256",
586
- },
587
- {
588
- internalType: "uint256",
589
- name: "normalizedUnclaimedWithdrawals",
590
- type: "uint256",
591
- },
592
- {
593
- internalType: "uint256",
594
- name: "scaledPendingWithdrawals",
595
- type: "uint256",
596
- },
597
- {
598
- internalType: "uint256",
599
- name: "pendingWithdrawalExpiry",
600
- type: "uint256",
601
- },
602
- {
603
- internalType: "bool",
604
- name: "isDelinquent",
605
- type: "bool",
606
- },
607
- {
608
- internalType: "uint256",
609
- name: "timeDelinquent",
610
- type: "uint256",
611
- },
612
- {
613
- internalType: "uint256",
614
- name: "lastInterestAccruedTimestamp",
615
- type: "uint256",
616
- },
617
- {
618
- internalType: "uint32[]",
619
- name: "unpaidWithdrawalBatchExpiries",
620
- type: "uint32[]",
621
- },
622
- {
623
- internalType: "uint256",
624
- name: "coverageLiquidity",
625
- type: "uint256",
626
- },
627
- {
628
- internalType: "uint256",
629
- name: "borrowableAssets",
630
- type: "uint256",
631
- },
632
- {
633
- internalType: "uint256",
634
- name: "delinquentDebt",
635
- type: "uint256",
636
- },
637
- ],
638
- internalType: "struct MarketData[]",
639
- name: "data",
640
- type: "tuple[]",
641
- },
642
- ],
643
- stateMutability: "view",
644
- type: "function",
645
- },
646
- {
647
- inputs: [
648
- {
649
- internalType: "address",
650
- name: "lender",
651
- type: "address",
652
- },
653
- ],
654
- name: "getAllMarketsDataWithLenderStatus",
655
- outputs: [
656
- {
657
- components: [
658
- {
659
- components: [
660
- {
661
- components: [
662
- {
663
- internalType: "address",
664
- name: "token",
665
- type: "address",
666
- },
667
- {
668
- internalType: "string",
669
- name: "name",
670
- type: "string",
671
- },
672
- {
673
- internalType: "string",
674
- name: "symbol",
675
- type: "string",
676
- },
677
- {
678
- internalType: "uint256",
679
- name: "decimals",
680
- type: "uint256",
681
- },
682
- {
683
- internalType: "bool",
684
- name: "isMock",
685
- type: "bool",
686
- },
687
- ],
688
- internalType: "struct TokenMetadata",
689
- name: "marketToken",
690
- type: "tuple",
691
- },
692
- {
693
- components: [
694
- {
695
- internalType: "address",
696
- name: "token",
697
- type: "address",
698
- },
699
- {
700
- internalType: "string",
701
- name: "name",
702
- type: "string",
703
- },
704
- {
705
- internalType: "string",
706
- name: "symbol",
707
- type: "string",
708
- },
709
- {
710
- internalType: "uint256",
711
- name: "decimals",
712
- type: "uint256",
713
- },
714
- {
715
- internalType: "bool",
716
- name: "isMock",
717
- type: "bool",
718
- },
719
- ],
720
- internalType: "struct TokenMetadata",
721
- name: "underlyingToken",
722
- type: "tuple",
723
- },
724
- {
725
- internalType: "address",
726
- name: "borrower",
727
- type: "address",
728
- },
729
- {
730
- internalType: "address",
731
- name: "controller",
732
- type: "address",
733
- },
734
- {
735
- internalType: "address",
736
- name: "feeRecipient",
737
- type: "address",
738
- },
739
- {
740
- internalType: "uint256",
741
- name: "protocolFeeBips",
742
- type: "uint256",
743
- },
744
- {
745
- internalType: "uint256",
746
- name: "delinquencyFeeBips",
747
- type: "uint256",
748
- },
749
- {
750
- internalType: "uint256",
751
- name: "delinquencyGracePeriod",
752
- type: "uint256",
753
- },
754
- {
755
- internalType: "uint256",
756
- name: "withdrawalBatchDuration",
757
- type: "uint256",
758
- },
759
- {
760
- internalType: "uint256",
761
- name: "reserveRatioBips",
762
- type: "uint256",
763
- },
764
- {
765
- internalType: "uint256",
766
- name: "annualInterestBips",
767
- type: "uint256",
768
- },
769
- {
770
- internalType: "bool",
771
- name: "temporaryReserveRatio",
772
- type: "bool",
773
- },
774
- {
775
- internalType: "uint256",
776
- name: "originalAnnualInterestBips",
777
- type: "uint256",
778
- },
779
- {
780
- internalType: "uint256",
781
- name: "originalReserveRatioBips",
782
- type: "uint256",
783
- },
784
- {
785
- internalType: "uint256",
786
- name: "temporaryReserveRatioExpiry",
787
- type: "uint256",
788
- },
789
- {
790
- internalType: "bool",
791
- name: "isClosed",
792
- type: "bool",
793
- },
794
- {
795
- internalType: "uint256",
796
- name: "scaleFactor",
797
- type: "uint256",
798
- },
799
- {
800
- internalType: "uint256",
801
- name: "totalSupply",
802
- type: "uint256",
803
- },
804
- {
805
- internalType: "uint256",
806
- name: "maxTotalSupply",
807
- type: "uint256",
808
- },
809
- {
810
- internalType: "uint256",
811
- name: "scaledTotalSupply",
812
- type: "uint256",
813
- },
814
- {
815
- internalType: "uint256",
816
- name: "totalAssets",
817
- type: "uint256",
818
- },
819
- {
820
- internalType: "uint256",
821
- name: "lastAccruedProtocolFees",
822
- type: "uint256",
823
- },
824
- {
825
- internalType: "uint256",
826
- name: "normalizedUnclaimedWithdrawals",
827
- type: "uint256",
828
- },
829
- {
830
- internalType: "uint256",
831
- name: "scaledPendingWithdrawals",
832
- type: "uint256",
833
- },
834
- {
835
- internalType: "uint256",
836
- name: "pendingWithdrawalExpiry",
837
- type: "uint256",
838
- },
839
- {
840
- internalType: "bool",
841
- name: "isDelinquent",
842
- type: "bool",
843
- },
844
- {
845
- internalType: "uint256",
846
- name: "timeDelinquent",
847
- type: "uint256",
848
- },
849
- {
850
- internalType: "uint256",
851
- name: "lastInterestAccruedTimestamp",
852
- type: "uint256",
853
- },
854
- {
855
- internalType: "uint32[]",
856
- name: "unpaidWithdrawalBatchExpiries",
857
- type: "uint32[]",
858
- },
859
- {
860
- internalType: "uint256",
861
- name: "coverageLiquidity",
862
- type: "uint256",
863
- },
864
- {
865
- internalType: "uint256",
866
- name: "borrowableAssets",
867
- type: "uint256",
868
- },
869
- {
870
- internalType: "uint256",
871
- name: "delinquentDebt",
872
- type: "uint256",
873
- },
874
- ],
875
- internalType: "struct MarketData",
876
- name: "market",
877
- type: "tuple",
878
- },
879
- {
880
- components: [
881
- {
882
- internalType: "address",
883
- name: "lender",
884
- type: "address",
885
- },
886
- {
887
- internalType: "bool",
888
- name: "isAuthorizedOnController",
889
- type: "bool",
890
- },
891
- {
892
- internalType: "enum AuthRole",
893
- name: "role",
894
- type: "uint8",
895
- },
896
- {
897
- internalType: "uint256",
898
- name: "scaledBalance",
899
- type: "uint256",
900
- },
901
- {
902
- internalType: "uint256",
903
- name: "normalizedBalance",
904
- type: "uint256",
905
- },
906
- {
907
- internalType: "uint256",
908
- name: "underlyingBalance",
909
- type: "uint256",
910
- },
911
- {
912
- internalType: "uint256",
913
- name: "underlyingApproval",
914
- type: "uint256",
915
- },
916
- ],
917
- internalType: "struct MarketLenderStatus",
918
- name: "lenderStatus",
919
- type: "tuple",
920
- },
921
- ],
922
- internalType: "struct MarketDataWithLenderStatus[]",
923
- name: "data",
924
- type: "tuple[]",
925
- },
926
- ],
927
- stateMutability: "view",
928
- type: "function",
929
- },
930
- {
931
- inputs: [
932
- {
933
- internalType: "address",
934
- name: "lender",
935
- type: "address",
936
- },
937
- ],
938
- name: "getAllMarketsLenderStatus",
939
- outputs: [
940
- {
941
- components: [
942
- {
943
- internalType: "address",
944
- name: "lender",
945
- type: "address",
946
- },
947
- {
948
- internalType: "bool",
949
- name: "isAuthorizedOnController",
950
- type: "bool",
951
- },
952
- {
953
- internalType: "enum AuthRole",
954
- name: "role",
955
- type: "uint8",
956
- },
957
- {
958
- internalType: "uint256",
959
- name: "scaledBalance",
960
- type: "uint256",
961
- },
962
- {
963
- internalType: "uint256",
964
- name: "normalizedBalance",
965
- type: "uint256",
966
- },
967
- {
968
- internalType: "uint256",
969
- name: "underlyingBalance",
970
- type: "uint256",
971
- },
972
- {
973
- internalType: "uint256",
974
- name: "underlyingApproval",
975
- type: "uint256",
976
- },
977
- ],
978
- internalType: "struct MarketLenderStatus[]",
979
- name: "status",
980
- type: "tuple[]",
981
- },
982
- ],
983
- stateMutability: "view",
984
- type: "function",
985
- },
986
- {
987
- inputs: [],
988
- name: "getArchControllerData",
989
- outputs: [
990
- {
991
- components: [
992
- {
993
- internalType: "address",
994
- name: "archController",
995
- type: "address",
996
- },
997
- {
998
- internalType: "uint256",
999
- name: "borrowersCount",
1000
- type: "uint256",
1001
- },
1002
- {
1003
- internalType: "address[]",
1004
- name: "borrowers",
1005
- type: "address[]",
1006
- },
1007
- {
1008
- internalType: "uint256",
1009
- name: "controllerFactoriesCount",
1010
- type: "uint256",
1011
- },
1012
- {
1013
- internalType: "address[]",
1014
- name: "controllerFactories",
1015
- type: "address[]",
1016
- },
1017
- {
1018
- internalType: "uint256",
1019
- name: "controllersCount",
1020
- type: "uint256",
1021
- },
1022
- {
1023
- internalType: "address[]",
1024
- name: "controllers",
1025
- type: "address[]",
1026
- },
1027
- {
1028
- internalType: "uint256",
1029
- name: "marketsCount",
1030
- type: "uint256",
1031
- },
1032
- {
1033
- internalType: "address[]",
1034
- name: "markets",
1035
- type: "address[]",
1036
- },
1037
- ],
1038
- internalType: "struct ArchControllerData",
1039
- name: "data",
1040
- type: "tuple",
1041
- },
1042
- ],
1043
- stateMutability: "view",
1044
- type: "function",
1045
- },
1046
- {
1047
- inputs: [
1048
- {
1049
- internalType: "address",
1050
- name: "borrower",
1051
- type: "address",
1052
- },
1053
- ],
1054
- name: "getControllerDataForBorrower",
1055
- outputs: [
1056
- {
1057
- components: [
1058
- {
1059
- internalType: "address",
1060
- name: "borrower",
1061
- type: "address",
1062
- },
1063
- {
1064
- internalType: "address",
1065
- name: "controller",
1066
- type: "address",
1067
- },
1068
- {
1069
- internalType: "address",
1070
- name: "controllerFactory",
1071
- type: "address",
1072
- },
1073
- {
1074
- internalType: "bool",
1075
- name: "isRegisteredBorrower",
1076
- type: "bool",
1077
- },
1078
- {
1079
- internalType: "bool",
1080
- name: "hasDeployedController",
1081
- type: "bool",
1082
- },
1083
- {
1084
- components: [
1085
- {
1086
- internalType: "address",
1087
- name: "feeRecipient",
1088
- type: "address",
1089
- },
1090
- {
1091
- internalType: "uint16",
1092
- name: "protocolFeeBips",
1093
- type: "uint16",
1094
- },
1095
- {
1096
- components: [
1097
- {
1098
- internalType: "address",
1099
- name: "token",
1100
- type: "address",
1101
- },
1102
- {
1103
- internalType: "string",
1104
- name: "name",
1105
- type: "string",
1106
- },
1107
- {
1108
- internalType: "string",
1109
- name: "symbol",
1110
- type: "string",
1111
- },
1112
- {
1113
- internalType: "uint256",
1114
- name: "decimals",
1115
- type: "uint256",
1116
- },
1117
- {
1118
- internalType: "bool",
1119
- name: "isMock",
1120
- type: "bool",
1121
- },
1122
- ],
1123
- internalType: "struct TokenMetadata",
1124
- name: "originationFeeToken",
1125
- type: "tuple",
1126
- },
1127
- {
1128
- internalType: "uint256",
1129
- name: "originationFeeAmount",
1130
- type: "uint256",
1131
- },
1132
- ],
1133
- internalType: "struct FeeConfiguration",
1134
- name: "fees",
1135
- type: "tuple",
1136
- },
1137
- {
1138
- components: [
1139
- {
1140
- internalType: "uint32",
1141
- name: "minimumDelinquencyGracePeriod",
1142
- type: "uint32",
1143
- },
1144
- {
1145
- internalType: "uint32",
1146
- name: "maximumDelinquencyGracePeriod",
1147
- type: "uint32",
1148
- },
1149
- {
1150
- internalType: "uint16",
1151
- name: "minimumReserveRatioBips",
1152
- type: "uint16",
1153
- },
1154
- {
1155
- internalType: "uint16",
1156
- name: "maximumReserveRatioBips",
1157
- type: "uint16",
1158
- },
1159
- {
1160
- internalType: "uint16",
1161
- name: "minimumDelinquencyFeeBips",
1162
- type: "uint16",
1163
- },
1164
- {
1165
- internalType: "uint16",
1166
- name: "maximumDelinquencyFeeBips",
1167
- type: "uint16",
1168
- },
1169
- {
1170
- internalType: "uint32",
1171
- name: "minimumWithdrawalBatchDuration",
1172
- type: "uint32",
1173
- },
1174
- {
1175
- internalType: "uint32",
1176
- name: "maximumWithdrawalBatchDuration",
1177
- type: "uint32",
1178
- },
1179
- {
1180
- internalType: "uint16",
1181
- name: "minimumAnnualInterestBips",
1182
- type: "uint16",
1183
- },
1184
- {
1185
- internalType: "uint16",
1186
- name: "maximumAnnualInterestBips",
1187
- type: "uint16",
1188
- },
1189
- ],
1190
- internalType: "struct MarketParameterConstraints",
1191
- name: "constraints",
1192
- type: "tuple",
1193
- },
1194
- {
1195
- components: [
1196
- {
1197
- components: [
1198
- {
1199
- internalType: "address",
1200
- name: "token",
1201
- type: "address",
1202
- },
1203
- {
1204
- internalType: "string",
1205
- name: "name",
1206
- type: "string",
1207
- },
1208
- {
1209
- internalType: "string",
1210
- name: "symbol",
1211
- type: "string",
1212
- },
1213
- {
1214
- internalType: "uint256",
1215
- name: "decimals",
1216
- type: "uint256",
1217
- },
1218
- {
1219
- internalType: "bool",
1220
- name: "isMock",
1221
- type: "bool",
1222
- },
1223
- ],
1224
- internalType: "struct TokenMetadata",
1225
- name: "marketToken",
1226
- type: "tuple",
1227
- },
1228
- {
1229
- components: [
1230
- {
1231
- internalType: "address",
1232
- name: "token",
1233
- type: "address",
1234
- },
1235
- {
1236
- internalType: "string",
1237
- name: "name",
1238
- type: "string",
1239
- },
1240
- {
1241
- internalType: "string",
1242
- name: "symbol",
1243
- type: "string",
1244
- },
1245
- {
1246
- internalType: "uint256",
1247
- name: "decimals",
1248
- type: "uint256",
1249
- },
1250
- {
1251
- internalType: "bool",
1252
- name: "isMock",
1253
- type: "bool",
1254
- },
1255
- ],
1256
- internalType: "struct TokenMetadata",
1257
- name: "underlyingToken",
1258
- type: "tuple",
1259
- },
1260
- {
1261
- internalType: "address",
1262
- name: "borrower",
1263
- type: "address",
1264
- },
1265
- {
1266
- internalType: "address",
1267
- name: "controller",
1268
- type: "address",
1269
- },
1270
- {
1271
- internalType: "address",
1272
- name: "feeRecipient",
1273
- type: "address",
1274
- },
1275
- {
1276
- internalType: "uint256",
1277
- name: "protocolFeeBips",
1278
- type: "uint256",
1279
- },
1280
- {
1281
- internalType: "uint256",
1282
- name: "delinquencyFeeBips",
1283
- type: "uint256",
1284
- },
1285
- {
1286
- internalType: "uint256",
1287
- name: "delinquencyGracePeriod",
1288
- type: "uint256",
1289
- },
1290
- {
1291
- internalType: "uint256",
1292
- name: "withdrawalBatchDuration",
1293
- type: "uint256",
1294
- },
1295
- {
1296
- internalType: "uint256",
1297
- name: "reserveRatioBips",
1298
- type: "uint256",
1299
- },
1300
- {
1301
- internalType: "uint256",
1302
- name: "annualInterestBips",
1303
- type: "uint256",
1304
- },
1305
- {
1306
- internalType: "bool",
1307
- name: "temporaryReserveRatio",
1308
- type: "bool",
1309
- },
1310
- {
1311
- internalType: "uint256",
1312
- name: "originalAnnualInterestBips",
1313
- type: "uint256",
1314
- },
1315
- {
1316
- internalType: "uint256",
1317
- name: "originalReserveRatioBips",
1318
- type: "uint256",
1319
- },
1320
- {
1321
- internalType: "uint256",
1322
- name: "temporaryReserveRatioExpiry",
1323
- type: "uint256",
1324
- },
1325
- {
1326
- internalType: "bool",
1327
- name: "isClosed",
1328
- type: "bool",
1329
- },
1330
- {
1331
- internalType: "uint256",
1332
- name: "scaleFactor",
1333
- type: "uint256",
1334
- },
1335
- {
1336
- internalType: "uint256",
1337
- name: "totalSupply",
1338
- type: "uint256",
1339
- },
1340
- {
1341
- internalType: "uint256",
1342
- name: "maxTotalSupply",
1343
- type: "uint256",
1344
- },
1345
- {
1346
- internalType: "uint256",
1347
- name: "scaledTotalSupply",
1348
- type: "uint256",
1349
- },
1350
- {
1351
- internalType: "uint256",
1352
- name: "totalAssets",
1353
- type: "uint256",
1354
- },
1355
- {
1356
- internalType: "uint256",
1357
- name: "lastAccruedProtocolFees",
1358
- type: "uint256",
1359
- },
1360
- {
1361
- internalType: "uint256",
1362
- name: "normalizedUnclaimedWithdrawals",
1363
- type: "uint256",
1364
- },
1365
- {
1366
- internalType: "uint256",
1367
- name: "scaledPendingWithdrawals",
1368
- type: "uint256",
1369
- },
1370
- {
1371
- internalType: "uint256",
1372
- name: "pendingWithdrawalExpiry",
1373
- type: "uint256",
1374
- },
1375
- {
1376
- internalType: "bool",
1377
- name: "isDelinquent",
1378
- type: "bool",
1379
- },
1380
- {
1381
- internalType: "uint256",
1382
- name: "timeDelinquent",
1383
- type: "uint256",
1384
- },
1385
- {
1386
- internalType: "uint256",
1387
- name: "lastInterestAccruedTimestamp",
1388
- type: "uint256",
1389
- },
1390
- {
1391
- internalType: "uint32[]",
1392
- name: "unpaidWithdrawalBatchExpiries",
1393
- type: "uint32[]",
1394
- },
1395
- {
1396
- internalType: "uint256",
1397
- name: "coverageLiquidity",
1398
- type: "uint256",
1399
- },
1400
- {
1401
- internalType: "uint256",
1402
- name: "borrowableAssets",
1403
- type: "uint256",
1404
- },
1405
- {
1406
- internalType: "uint256",
1407
- name: "delinquentDebt",
1408
- type: "uint256",
1409
- },
1410
- ],
1411
- internalType: "struct MarketData[]",
1412
- name: "markets",
1413
- type: "tuple[]",
1414
- },
1415
- {
1416
- internalType: "uint256",
1417
- name: "borrowerOriginationFeeBalance",
1418
- type: "uint256",
1419
- },
1420
- {
1421
- internalType: "uint256",
1422
- name: "borrowerOriginationFeeApproval",
1423
- type: "uint256",
1424
- },
1425
- ],
1426
- internalType: "struct ControllerData",
1427
- name: "data",
1428
- type: "tuple",
1429
- },
1430
- ],
1431
- stateMutability: "view",
1432
- type: "function",
1433
- },
1434
- {
1435
- inputs: [
1436
- {
1437
- internalType: "address[]",
1438
- name: "borrowers",
1439
- type: "address[]",
1440
- },
1441
- ],
1442
- name: "getControllersDataForBorrowers",
1443
- outputs: [
1444
- {
1445
- components: [
1446
- {
1447
- internalType: "address",
1448
- name: "borrower",
1449
- type: "address",
1450
- },
1451
- {
1452
- internalType: "address",
1453
- name: "controller",
1454
- type: "address",
1455
- },
1456
- {
1457
- internalType: "address",
1458
- name: "controllerFactory",
1459
- type: "address",
1460
- },
1461
- {
1462
- internalType: "bool",
1463
- name: "isRegisteredBorrower",
1464
- type: "bool",
1465
- },
1466
- {
1467
- internalType: "bool",
1468
- name: "hasDeployedController",
1469
- type: "bool",
1470
- },
1471
- {
1472
- components: [
1473
- {
1474
- internalType: "address",
1475
- name: "feeRecipient",
1476
- type: "address",
1477
- },
1478
- {
1479
- internalType: "uint16",
1480
- name: "protocolFeeBips",
1481
- type: "uint16",
1482
- },
1483
- {
1484
- components: [
1485
- {
1486
- internalType: "address",
1487
- name: "token",
1488
- type: "address",
1489
- },
1490
- {
1491
- internalType: "string",
1492
- name: "name",
1493
- type: "string",
1494
- },
1495
- {
1496
- internalType: "string",
1497
- name: "symbol",
1498
- type: "string",
1499
- },
1500
- {
1501
- internalType: "uint256",
1502
- name: "decimals",
1503
- type: "uint256",
1504
- },
1505
- {
1506
- internalType: "bool",
1507
- name: "isMock",
1508
- type: "bool",
1509
- },
1510
- ],
1511
- internalType: "struct TokenMetadata",
1512
- name: "originationFeeToken",
1513
- type: "tuple",
1514
- },
1515
- {
1516
- internalType: "uint256",
1517
- name: "originationFeeAmount",
1518
- type: "uint256",
1519
- },
1520
- ],
1521
- internalType: "struct FeeConfiguration",
1522
- name: "fees",
1523
- type: "tuple",
1524
- },
1525
- {
1526
- components: [
1527
- {
1528
- internalType: "uint32",
1529
- name: "minimumDelinquencyGracePeriod",
1530
- type: "uint32",
1531
- },
1532
- {
1533
- internalType: "uint32",
1534
- name: "maximumDelinquencyGracePeriod",
1535
- type: "uint32",
1536
- },
1537
- {
1538
- internalType: "uint16",
1539
- name: "minimumReserveRatioBips",
1540
- type: "uint16",
1541
- },
1542
- {
1543
- internalType: "uint16",
1544
- name: "maximumReserveRatioBips",
1545
- type: "uint16",
1546
- },
1547
- {
1548
- internalType: "uint16",
1549
- name: "minimumDelinquencyFeeBips",
1550
- type: "uint16",
1551
- },
1552
- {
1553
- internalType: "uint16",
1554
- name: "maximumDelinquencyFeeBips",
1555
- type: "uint16",
1556
- },
1557
- {
1558
- internalType: "uint32",
1559
- name: "minimumWithdrawalBatchDuration",
1560
- type: "uint32",
1561
- },
1562
- {
1563
- internalType: "uint32",
1564
- name: "maximumWithdrawalBatchDuration",
1565
- type: "uint32",
1566
- },
1567
- {
1568
- internalType: "uint16",
1569
- name: "minimumAnnualInterestBips",
1570
- type: "uint16",
1571
- },
1572
- {
1573
- internalType: "uint16",
1574
- name: "maximumAnnualInterestBips",
1575
- type: "uint16",
1576
- },
1577
- ],
1578
- internalType: "struct MarketParameterConstraints",
1579
- name: "constraints",
1580
- type: "tuple",
1581
- },
1582
- {
1583
- components: [
1584
- {
1585
- components: [
1586
- {
1587
- internalType: "address",
1588
- name: "token",
1589
- type: "address",
1590
- },
1591
- {
1592
- internalType: "string",
1593
- name: "name",
1594
- type: "string",
1595
- },
1596
- {
1597
- internalType: "string",
1598
- name: "symbol",
1599
- type: "string",
1600
- },
1601
- {
1602
- internalType: "uint256",
1603
- name: "decimals",
1604
- type: "uint256",
1605
- },
1606
- {
1607
- internalType: "bool",
1608
- name: "isMock",
1609
- type: "bool",
1610
- },
1611
- ],
1612
- internalType: "struct TokenMetadata",
1613
- name: "marketToken",
1614
- type: "tuple",
1615
- },
1616
- {
1617
- components: [
1618
- {
1619
- internalType: "address",
1620
- name: "token",
1621
- type: "address",
1622
- },
1623
- {
1624
- internalType: "string",
1625
- name: "name",
1626
- type: "string",
1627
- },
1628
- {
1629
- internalType: "string",
1630
- name: "symbol",
1631
- type: "string",
1632
- },
1633
- {
1634
- internalType: "uint256",
1635
- name: "decimals",
1636
- type: "uint256",
1637
- },
1638
- {
1639
- internalType: "bool",
1640
- name: "isMock",
1641
- type: "bool",
1642
- },
1643
- ],
1644
- internalType: "struct TokenMetadata",
1645
- name: "underlyingToken",
1646
- type: "tuple",
1647
- },
1648
- {
1649
- internalType: "address",
1650
- name: "borrower",
1651
- type: "address",
1652
- },
1653
- {
1654
- internalType: "address",
1655
- name: "controller",
1656
- type: "address",
1657
- },
1658
- {
1659
- internalType: "address",
1660
- name: "feeRecipient",
1661
- type: "address",
1662
- },
1663
- {
1664
- internalType: "uint256",
1665
- name: "protocolFeeBips",
1666
- type: "uint256",
1667
- },
1668
- {
1669
- internalType: "uint256",
1670
- name: "delinquencyFeeBips",
1671
- type: "uint256",
1672
- },
1673
- {
1674
- internalType: "uint256",
1675
- name: "delinquencyGracePeriod",
1676
- type: "uint256",
1677
- },
1678
- {
1679
- internalType: "uint256",
1680
- name: "withdrawalBatchDuration",
1681
- type: "uint256",
1682
- },
1683
- {
1684
- internalType: "uint256",
1685
- name: "reserveRatioBips",
1686
- type: "uint256",
1687
- },
1688
- {
1689
- internalType: "uint256",
1690
- name: "annualInterestBips",
1691
- type: "uint256",
1692
- },
1693
- {
1694
- internalType: "bool",
1695
- name: "temporaryReserveRatio",
1696
- type: "bool",
1697
- },
1698
- {
1699
- internalType: "uint256",
1700
- name: "originalAnnualInterestBips",
1701
- type: "uint256",
1702
- },
1703
- {
1704
- internalType: "uint256",
1705
- name: "originalReserveRatioBips",
1706
- type: "uint256",
1707
- },
1708
- {
1709
- internalType: "uint256",
1710
- name: "temporaryReserveRatioExpiry",
1711
- type: "uint256",
1712
- },
1713
- {
1714
- internalType: "bool",
1715
- name: "isClosed",
1716
- type: "bool",
1717
- },
1718
- {
1719
- internalType: "uint256",
1720
- name: "scaleFactor",
1721
- type: "uint256",
1722
- },
1723
- {
1724
- internalType: "uint256",
1725
- name: "totalSupply",
1726
- type: "uint256",
1727
- },
1728
- {
1729
- internalType: "uint256",
1730
- name: "maxTotalSupply",
1731
- type: "uint256",
1732
- },
1733
- {
1734
- internalType: "uint256",
1735
- name: "scaledTotalSupply",
1736
- type: "uint256",
1737
- },
1738
- {
1739
- internalType: "uint256",
1740
- name: "totalAssets",
1741
- type: "uint256",
1742
- },
1743
- {
1744
- internalType: "uint256",
1745
- name: "lastAccruedProtocolFees",
1746
- type: "uint256",
1747
- },
1748
- {
1749
- internalType: "uint256",
1750
- name: "normalizedUnclaimedWithdrawals",
1751
- type: "uint256",
1752
- },
1753
- {
1754
- internalType: "uint256",
1755
- name: "scaledPendingWithdrawals",
1756
- type: "uint256",
1757
- },
1758
- {
1759
- internalType: "uint256",
1760
- name: "pendingWithdrawalExpiry",
1761
- type: "uint256",
1762
- },
1763
- {
1764
- internalType: "bool",
1765
- name: "isDelinquent",
1766
- type: "bool",
1767
- },
1768
- {
1769
- internalType: "uint256",
1770
- name: "timeDelinquent",
1771
- type: "uint256",
1772
- },
1773
- {
1774
- internalType: "uint256",
1775
- name: "lastInterestAccruedTimestamp",
1776
- type: "uint256",
1777
- },
1778
- {
1779
- internalType: "uint32[]",
1780
- name: "unpaidWithdrawalBatchExpiries",
1781
- type: "uint32[]",
1782
- },
1783
- {
1784
- internalType: "uint256",
1785
- name: "coverageLiquidity",
1786
- type: "uint256",
1787
- },
1788
- {
1789
- internalType: "uint256",
1790
- name: "borrowableAssets",
1791
- type: "uint256",
1792
- },
1793
- {
1794
- internalType: "uint256",
1795
- name: "delinquentDebt",
1796
- type: "uint256",
1797
- },
1798
- ],
1799
- internalType: "struct MarketData[]",
1800
- name: "markets",
1801
- type: "tuple[]",
1802
- },
1803
- {
1804
- internalType: "uint256",
1805
- name: "borrowerOriginationFeeBalance",
1806
- type: "uint256",
1807
- },
1808
- {
1809
- internalType: "uint256",
1810
- name: "borrowerOriginationFeeApproval",
1811
- type: "uint256",
1812
- },
1813
- ],
1814
- internalType: "struct ControllerData[]",
1815
- name: "data",
1816
- type: "tuple[]",
1817
- },
1818
- ],
1819
- stateMutability: "view",
1820
- type: "function",
1821
- },
1822
- {
1823
- inputs: [
1824
- {
1825
- internalType: "address",
1826
- name: "market",
1827
- type: "address",
1828
- },
1829
- ],
1830
- name: "getMarketData",
1831
- outputs: [
1832
- {
1833
- components: [
1834
- {
1835
- components: [
1836
- {
1837
- internalType: "address",
1838
- name: "token",
1839
- type: "address",
1840
- },
1841
- {
1842
- internalType: "string",
1843
- name: "name",
1844
- type: "string",
1845
- },
1846
- {
1847
- internalType: "string",
1848
- name: "symbol",
1849
- type: "string",
1850
- },
1851
- {
1852
- internalType: "uint256",
1853
- name: "decimals",
1854
- type: "uint256",
1855
- },
1856
- {
1857
- internalType: "bool",
1858
- name: "isMock",
1859
- type: "bool",
1860
- },
1861
- ],
1862
- internalType: "struct TokenMetadata",
1863
- name: "marketToken",
1864
- type: "tuple",
1865
- },
1866
- {
1867
- components: [
1868
- {
1869
- internalType: "address",
1870
- name: "token",
1871
- type: "address",
1872
- },
1873
- {
1874
- internalType: "string",
1875
- name: "name",
1876
- type: "string",
1877
- },
1878
- {
1879
- internalType: "string",
1880
- name: "symbol",
1881
- type: "string",
1882
- },
1883
- {
1884
- internalType: "uint256",
1885
- name: "decimals",
1886
- type: "uint256",
1887
- },
1888
- {
1889
- internalType: "bool",
1890
- name: "isMock",
1891
- type: "bool",
1892
- },
1893
- ],
1894
- internalType: "struct TokenMetadata",
1895
- name: "underlyingToken",
1896
- type: "tuple",
1897
- },
1898
- {
1899
- internalType: "address",
1900
- name: "borrower",
1901
- type: "address",
1902
- },
1903
- {
1904
- internalType: "address",
1905
- name: "controller",
1906
- type: "address",
1907
- },
1908
- {
1909
- internalType: "address",
1910
- name: "feeRecipient",
1911
- type: "address",
1912
- },
1913
- {
1914
- internalType: "uint256",
1915
- name: "protocolFeeBips",
1916
- type: "uint256",
1917
- },
1918
- {
1919
- internalType: "uint256",
1920
- name: "delinquencyFeeBips",
1921
- type: "uint256",
1922
- },
1923
- {
1924
- internalType: "uint256",
1925
- name: "delinquencyGracePeriod",
1926
- type: "uint256",
1927
- },
1928
- {
1929
- internalType: "uint256",
1930
- name: "withdrawalBatchDuration",
1931
- type: "uint256",
1932
- },
1933
- {
1934
- internalType: "uint256",
1935
- name: "reserveRatioBips",
1936
- type: "uint256",
1937
- },
1938
- {
1939
- internalType: "uint256",
1940
- name: "annualInterestBips",
1941
- type: "uint256",
1942
- },
1943
- {
1944
- internalType: "bool",
1945
- name: "temporaryReserveRatio",
1946
- type: "bool",
1947
- },
1948
- {
1949
- internalType: "uint256",
1950
- name: "originalAnnualInterestBips",
1951
- type: "uint256",
1952
- },
1953
- {
1954
- internalType: "uint256",
1955
- name: "originalReserveRatioBips",
1956
- type: "uint256",
1957
- },
1958
- {
1959
- internalType: "uint256",
1960
- name: "temporaryReserveRatioExpiry",
1961
- type: "uint256",
1962
- },
1963
- {
1964
- internalType: "bool",
1965
- name: "isClosed",
1966
- type: "bool",
1967
- },
1968
- {
1969
- internalType: "uint256",
1970
- name: "scaleFactor",
1971
- type: "uint256",
1972
- },
1973
- {
1974
- internalType: "uint256",
1975
- name: "totalSupply",
1976
- type: "uint256",
1977
- },
1978
- {
1979
- internalType: "uint256",
1980
- name: "maxTotalSupply",
1981
- type: "uint256",
1982
- },
1983
- {
1984
- internalType: "uint256",
1985
- name: "scaledTotalSupply",
1986
- type: "uint256",
1987
- },
1988
- {
1989
- internalType: "uint256",
1990
- name: "totalAssets",
1991
- type: "uint256",
1992
- },
1993
- {
1994
- internalType: "uint256",
1995
- name: "lastAccruedProtocolFees",
1996
- type: "uint256",
1997
- },
1998
- {
1999
- internalType: "uint256",
2000
- name: "normalizedUnclaimedWithdrawals",
2001
- type: "uint256",
2002
- },
2003
- {
2004
- internalType: "uint256",
2005
- name: "scaledPendingWithdrawals",
2006
- type: "uint256",
2007
- },
2008
- {
2009
- internalType: "uint256",
2010
- name: "pendingWithdrawalExpiry",
2011
- type: "uint256",
2012
- },
2013
- {
2014
- internalType: "bool",
2015
- name: "isDelinquent",
2016
- type: "bool",
2017
- },
2018
- {
2019
- internalType: "uint256",
2020
- name: "timeDelinquent",
2021
- type: "uint256",
2022
- },
2023
- {
2024
- internalType: "uint256",
2025
- name: "lastInterestAccruedTimestamp",
2026
- type: "uint256",
2027
- },
2028
- {
2029
- internalType: "uint32[]",
2030
- name: "unpaidWithdrawalBatchExpiries",
2031
- type: "uint32[]",
2032
- },
2033
- {
2034
- internalType: "uint256",
2035
- name: "coverageLiquidity",
2036
- type: "uint256",
2037
- },
2038
- {
2039
- internalType: "uint256",
2040
- name: "borrowableAssets",
2041
- type: "uint256",
2042
- },
2043
- {
2044
- internalType: "uint256",
2045
- name: "delinquentDebt",
2046
- type: "uint256",
2047
- },
2048
- ],
2049
- internalType: "struct MarketData",
2050
- name: "data",
2051
- type: "tuple",
2052
- },
2053
- ],
2054
- stateMutability: "view",
2055
- type: "function",
2056
- },
2057
- {
2058
- inputs: [
2059
- {
2060
- internalType: "address",
2061
- name: "lender",
2062
- type: "address",
2063
- },
2064
- {
2065
- internalType: "address",
2066
- name: "market",
2067
- type: "address",
2068
- },
2069
- ],
2070
- name: "getMarketDataWithLenderStatus",
2071
- outputs: [
2072
- {
2073
- components: [
2074
- {
2075
- components: [
2076
- {
2077
- components: [
2078
- {
2079
- internalType: "address",
2080
- name: "token",
2081
- type: "address",
2082
- },
2083
- {
2084
- internalType: "string",
2085
- name: "name",
2086
- type: "string",
2087
- },
2088
- {
2089
- internalType: "string",
2090
- name: "symbol",
2091
- type: "string",
2092
- },
2093
- {
2094
- internalType: "uint256",
2095
- name: "decimals",
2096
- type: "uint256",
2097
- },
2098
- {
2099
- internalType: "bool",
2100
- name: "isMock",
2101
- type: "bool",
2102
- },
2103
- ],
2104
- internalType: "struct TokenMetadata",
2105
- name: "marketToken",
2106
- type: "tuple",
2107
- },
2108
- {
2109
- components: [
2110
- {
2111
- internalType: "address",
2112
- name: "token",
2113
- type: "address",
2114
- },
2115
- {
2116
- internalType: "string",
2117
- name: "name",
2118
- type: "string",
2119
- },
2120
- {
2121
- internalType: "string",
2122
- name: "symbol",
2123
- type: "string",
2124
- },
2125
- {
2126
- internalType: "uint256",
2127
- name: "decimals",
2128
- type: "uint256",
2129
- },
2130
- {
2131
- internalType: "bool",
2132
- name: "isMock",
2133
- type: "bool",
2134
- },
2135
- ],
2136
- internalType: "struct TokenMetadata",
2137
- name: "underlyingToken",
2138
- type: "tuple",
2139
- },
2140
- {
2141
- internalType: "address",
2142
- name: "borrower",
2143
- type: "address",
2144
- },
2145
- {
2146
- internalType: "address",
2147
- name: "controller",
2148
- type: "address",
2149
- },
2150
- {
2151
- internalType: "address",
2152
- name: "feeRecipient",
2153
- type: "address",
2154
- },
2155
- {
2156
- internalType: "uint256",
2157
- name: "protocolFeeBips",
2158
- type: "uint256",
2159
- },
2160
- {
2161
- internalType: "uint256",
2162
- name: "delinquencyFeeBips",
2163
- type: "uint256",
2164
- },
2165
- {
2166
- internalType: "uint256",
2167
- name: "delinquencyGracePeriod",
2168
- type: "uint256",
2169
- },
2170
- {
2171
- internalType: "uint256",
2172
- name: "withdrawalBatchDuration",
2173
- type: "uint256",
2174
- },
2175
- {
2176
- internalType: "uint256",
2177
- name: "reserveRatioBips",
2178
- type: "uint256",
2179
- },
2180
- {
2181
- internalType: "uint256",
2182
- name: "annualInterestBips",
2183
- type: "uint256",
2184
- },
2185
- {
2186
- internalType: "bool",
2187
- name: "temporaryReserveRatio",
2188
- type: "bool",
2189
- },
2190
- {
2191
- internalType: "uint256",
2192
- name: "originalAnnualInterestBips",
2193
- type: "uint256",
2194
- },
2195
- {
2196
- internalType: "uint256",
2197
- name: "originalReserveRatioBips",
2198
- type: "uint256",
2199
- },
2200
- {
2201
- internalType: "uint256",
2202
- name: "temporaryReserveRatioExpiry",
2203
- type: "uint256",
2204
- },
2205
- {
2206
- internalType: "bool",
2207
- name: "isClosed",
2208
- type: "bool",
2209
- },
2210
- {
2211
- internalType: "uint256",
2212
- name: "scaleFactor",
2213
- type: "uint256",
2214
- },
2215
- {
2216
- internalType: "uint256",
2217
- name: "totalSupply",
2218
- type: "uint256",
2219
- },
2220
- {
2221
- internalType: "uint256",
2222
- name: "maxTotalSupply",
2223
- type: "uint256",
2224
- },
2225
- {
2226
- internalType: "uint256",
2227
- name: "scaledTotalSupply",
2228
- type: "uint256",
2229
- },
2230
- {
2231
- internalType: "uint256",
2232
- name: "totalAssets",
2233
- type: "uint256",
2234
- },
2235
- {
2236
- internalType: "uint256",
2237
- name: "lastAccruedProtocolFees",
2238
- type: "uint256",
2239
- },
2240
- {
2241
- internalType: "uint256",
2242
- name: "normalizedUnclaimedWithdrawals",
2243
- type: "uint256",
2244
- },
2245
- {
2246
- internalType: "uint256",
2247
- name: "scaledPendingWithdrawals",
2248
- type: "uint256",
2249
- },
2250
- {
2251
- internalType: "uint256",
2252
- name: "pendingWithdrawalExpiry",
2253
- type: "uint256",
2254
- },
2255
- {
2256
- internalType: "bool",
2257
- name: "isDelinquent",
2258
- type: "bool",
2259
- },
2260
- {
2261
- internalType: "uint256",
2262
- name: "timeDelinquent",
2263
- type: "uint256",
2264
- },
2265
- {
2266
- internalType: "uint256",
2267
- name: "lastInterestAccruedTimestamp",
2268
- type: "uint256",
2269
- },
2270
- {
2271
- internalType: "uint32[]",
2272
- name: "unpaidWithdrawalBatchExpiries",
2273
- type: "uint32[]",
2274
- },
2275
- {
2276
- internalType: "uint256",
2277
- name: "coverageLiquidity",
2278
- type: "uint256",
2279
- },
2280
- {
2281
- internalType: "uint256",
2282
- name: "borrowableAssets",
2283
- type: "uint256",
2284
- },
2285
- {
2286
- internalType: "uint256",
2287
- name: "delinquentDebt",
2288
- type: "uint256",
2289
- },
2290
- ],
2291
- internalType: "struct MarketData",
2292
- name: "market",
2293
- type: "tuple",
2294
- },
2295
- {
2296
- components: [
2297
- {
2298
- internalType: "address",
2299
- name: "lender",
2300
- type: "address",
2301
- },
2302
- {
2303
- internalType: "bool",
2304
- name: "isAuthorizedOnController",
2305
- type: "bool",
2306
- },
2307
- {
2308
- internalType: "enum AuthRole",
2309
- name: "role",
2310
- type: "uint8",
2311
- },
2312
- {
2313
- internalType: "uint256",
2314
- name: "scaledBalance",
2315
- type: "uint256",
2316
- },
2317
- {
2318
- internalType: "uint256",
2319
- name: "normalizedBalance",
2320
- type: "uint256",
2321
- },
2322
- {
2323
- internalType: "uint256",
2324
- name: "underlyingBalance",
2325
- type: "uint256",
2326
- },
2327
- {
2328
- internalType: "uint256",
2329
- name: "underlyingApproval",
2330
- type: "uint256",
2331
- },
2332
- ],
2333
- internalType: "struct MarketLenderStatus",
2334
- name: "lenderStatus",
2335
- type: "tuple",
2336
- },
2337
- ],
2338
- internalType: "struct MarketDataWithLenderStatus",
2339
- name: "data",
2340
- type: "tuple",
2341
- },
2342
- ],
2343
- stateMutability: "view",
2344
- type: "function",
2345
- },
2346
- {
2347
- inputs: [
2348
- {
2349
- internalType: "address",
2350
- name: "lender",
2351
- type: "address",
2352
- },
2353
- {
2354
- internalType: "address",
2355
- name: "market",
2356
- type: "address",
2357
- },
2358
- ],
2359
- name: "getMarketLenderStatus",
2360
- outputs: [
2361
- {
2362
- components: [
2363
- {
2364
- internalType: "address",
2365
- name: "lender",
2366
- type: "address",
2367
- },
2368
- {
2369
- internalType: "bool",
2370
- name: "isAuthorizedOnController",
2371
- type: "bool",
2372
- },
2373
- {
2374
- internalType: "enum AuthRole",
2375
- name: "role",
2376
- type: "uint8",
2377
- },
2378
- {
2379
- internalType: "uint256",
2380
- name: "scaledBalance",
2381
- type: "uint256",
2382
- },
2383
- {
2384
- internalType: "uint256",
2385
- name: "normalizedBalance",
2386
- type: "uint256",
2387
- },
2388
- {
2389
- internalType: "uint256",
2390
- name: "underlyingBalance",
2391
- type: "uint256",
2392
- },
2393
- {
2394
- internalType: "uint256",
2395
- name: "underlyingApproval",
2396
- type: "uint256",
2397
- },
2398
- ],
2399
- internalType: "struct MarketLenderStatus",
2400
- name: "status",
2401
- type: "tuple",
2402
- },
2403
- ],
2404
- stateMutability: "view",
2405
- type: "function",
2406
- },
2407
- {
2408
- inputs: [],
2409
- name: "getMarketsCount",
2410
- outputs: [
2411
- {
2412
- internalType: "uint256",
2413
- name: "",
2414
- type: "uint256",
2415
- },
2416
- ],
2417
- stateMutability: "view",
2418
- type: "function",
2419
- },
2420
- {
2421
- inputs: [
2422
- {
2423
- internalType: "address[]",
2424
- name: "markets",
2425
- type: "address[]",
2426
- },
2427
- ],
2428
- name: "getMarketsData",
2429
- outputs: [
2430
- {
2431
- components: [
2432
- {
2433
- components: [
2434
- {
2435
- internalType: "address",
2436
- name: "token",
2437
- type: "address",
2438
- },
2439
- {
2440
- internalType: "string",
2441
- name: "name",
2442
- type: "string",
2443
- },
2444
- {
2445
- internalType: "string",
2446
- name: "symbol",
2447
- type: "string",
2448
- },
2449
- {
2450
- internalType: "uint256",
2451
- name: "decimals",
2452
- type: "uint256",
2453
- },
2454
- {
2455
- internalType: "bool",
2456
- name: "isMock",
2457
- type: "bool",
2458
- },
2459
- ],
2460
- internalType: "struct TokenMetadata",
2461
- name: "marketToken",
2462
- type: "tuple",
2463
- },
2464
- {
2465
- components: [
2466
- {
2467
- internalType: "address",
2468
- name: "token",
2469
- type: "address",
2470
- },
2471
- {
2472
- internalType: "string",
2473
- name: "name",
2474
- type: "string",
2475
- },
2476
- {
2477
- internalType: "string",
2478
- name: "symbol",
2479
- type: "string",
2480
- },
2481
- {
2482
- internalType: "uint256",
2483
- name: "decimals",
2484
- type: "uint256",
2485
- },
2486
- {
2487
- internalType: "bool",
2488
- name: "isMock",
2489
- type: "bool",
2490
- },
2491
- ],
2492
- internalType: "struct TokenMetadata",
2493
- name: "underlyingToken",
2494
- type: "tuple",
2495
- },
2496
- {
2497
- internalType: "address",
2498
- name: "borrower",
2499
- type: "address",
2500
- },
2501
- {
2502
- internalType: "address",
2503
- name: "controller",
2504
- type: "address",
2505
- },
2506
- {
2507
- internalType: "address",
2508
- name: "feeRecipient",
2509
- type: "address",
2510
- },
2511
- {
2512
- internalType: "uint256",
2513
- name: "protocolFeeBips",
2514
- type: "uint256",
2515
- },
2516
- {
2517
- internalType: "uint256",
2518
- name: "delinquencyFeeBips",
2519
- type: "uint256",
2520
- },
2521
- {
2522
- internalType: "uint256",
2523
- name: "delinquencyGracePeriod",
2524
- type: "uint256",
2525
- },
2526
- {
2527
- internalType: "uint256",
2528
- name: "withdrawalBatchDuration",
2529
- type: "uint256",
2530
- },
2531
- {
2532
- internalType: "uint256",
2533
- name: "reserveRatioBips",
2534
- type: "uint256",
2535
- },
2536
- {
2537
- internalType: "uint256",
2538
- name: "annualInterestBips",
2539
- type: "uint256",
2540
- },
2541
- {
2542
- internalType: "bool",
2543
- name: "temporaryReserveRatio",
2544
- type: "bool",
2545
- },
2546
- {
2547
- internalType: "uint256",
2548
- name: "originalAnnualInterestBips",
2549
- type: "uint256",
2550
- },
2551
- {
2552
- internalType: "uint256",
2553
- name: "originalReserveRatioBips",
2554
- type: "uint256",
2555
- },
2556
- {
2557
- internalType: "uint256",
2558
- name: "temporaryReserveRatioExpiry",
2559
- type: "uint256",
2560
- },
2561
- {
2562
- internalType: "bool",
2563
- name: "isClosed",
2564
- type: "bool",
2565
- },
2566
- {
2567
- internalType: "uint256",
2568
- name: "scaleFactor",
2569
- type: "uint256",
2570
- },
2571
- {
2572
- internalType: "uint256",
2573
- name: "totalSupply",
2574
- type: "uint256",
2575
- },
2576
- {
2577
- internalType: "uint256",
2578
- name: "maxTotalSupply",
2579
- type: "uint256",
2580
- },
2581
- {
2582
- internalType: "uint256",
2583
- name: "scaledTotalSupply",
2584
- type: "uint256",
2585
- },
2586
- {
2587
- internalType: "uint256",
2588
- name: "totalAssets",
2589
- type: "uint256",
2590
- },
2591
- {
2592
- internalType: "uint256",
2593
- name: "lastAccruedProtocolFees",
2594
- type: "uint256",
2595
- },
2596
- {
2597
- internalType: "uint256",
2598
- name: "normalizedUnclaimedWithdrawals",
2599
- type: "uint256",
2600
- },
2601
- {
2602
- internalType: "uint256",
2603
- name: "scaledPendingWithdrawals",
2604
- type: "uint256",
2605
- },
2606
- {
2607
- internalType: "uint256",
2608
- name: "pendingWithdrawalExpiry",
2609
- type: "uint256",
2610
- },
2611
- {
2612
- internalType: "bool",
2613
- name: "isDelinquent",
2614
- type: "bool",
2615
- },
2616
- {
2617
- internalType: "uint256",
2618
- name: "timeDelinquent",
2619
- type: "uint256",
2620
- },
2621
- {
2622
- internalType: "uint256",
2623
- name: "lastInterestAccruedTimestamp",
2624
- type: "uint256",
2625
- },
2626
- {
2627
- internalType: "uint32[]",
2628
- name: "unpaidWithdrawalBatchExpiries",
2629
- type: "uint32[]",
2630
- },
2631
- {
2632
- internalType: "uint256",
2633
- name: "coverageLiquidity",
2634
- type: "uint256",
2635
- },
2636
- {
2637
- internalType: "uint256",
2638
- name: "borrowableAssets",
2639
- type: "uint256",
2640
- },
2641
- {
2642
- internalType: "uint256",
2643
- name: "delinquentDebt",
2644
- type: "uint256",
2645
- },
2646
- ],
2647
- internalType: "struct MarketData[]",
2648
- name: "data",
2649
- type: "tuple[]",
2650
- },
2651
- ],
2652
- stateMutability: "view",
2653
- type: "function",
2654
- },
2655
- {
2656
- inputs: [
2657
- {
2658
- internalType: "address",
2659
- name: "lender",
2660
- type: "address",
2661
- },
2662
- {
2663
- internalType: "address[]",
2664
- name: "markets",
2665
- type: "address[]",
2666
- },
2667
- ],
2668
- name: "getMarketsDataWithLenderStatus",
2669
- outputs: [
2670
- {
2671
- components: [
2672
- {
2673
- components: [
2674
- {
2675
- components: [
2676
- {
2677
- internalType: "address",
2678
- name: "token",
2679
- type: "address",
2680
- },
2681
- {
2682
- internalType: "string",
2683
- name: "name",
2684
- type: "string",
2685
- },
2686
- {
2687
- internalType: "string",
2688
- name: "symbol",
2689
- type: "string",
2690
- },
2691
- {
2692
- internalType: "uint256",
2693
- name: "decimals",
2694
- type: "uint256",
2695
- },
2696
- {
2697
- internalType: "bool",
2698
- name: "isMock",
2699
- type: "bool",
2700
- },
2701
- ],
2702
- internalType: "struct TokenMetadata",
2703
- name: "marketToken",
2704
- type: "tuple",
2705
- },
2706
- {
2707
- components: [
2708
- {
2709
- internalType: "address",
2710
- name: "token",
2711
- type: "address",
2712
- },
2713
- {
2714
- internalType: "string",
2715
- name: "name",
2716
- type: "string",
2717
- },
2718
- {
2719
- internalType: "string",
2720
- name: "symbol",
2721
- type: "string",
2722
- },
2723
- {
2724
- internalType: "uint256",
2725
- name: "decimals",
2726
- type: "uint256",
2727
- },
2728
- {
2729
- internalType: "bool",
2730
- name: "isMock",
2731
- type: "bool",
2732
- },
2733
- ],
2734
- internalType: "struct TokenMetadata",
2735
- name: "underlyingToken",
2736
- type: "tuple",
2737
- },
2738
- {
2739
- internalType: "address",
2740
- name: "borrower",
2741
- type: "address",
2742
- },
2743
- {
2744
- internalType: "address",
2745
- name: "controller",
2746
- type: "address",
2747
- },
2748
- {
2749
- internalType: "address",
2750
- name: "feeRecipient",
2751
- type: "address",
2752
- },
2753
- {
2754
- internalType: "uint256",
2755
- name: "protocolFeeBips",
2756
- type: "uint256",
2757
- },
2758
- {
2759
- internalType: "uint256",
2760
- name: "delinquencyFeeBips",
2761
- type: "uint256",
2762
- },
2763
- {
2764
- internalType: "uint256",
2765
- name: "delinquencyGracePeriod",
2766
- type: "uint256",
2767
- },
2768
- {
2769
- internalType: "uint256",
2770
- name: "withdrawalBatchDuration",
2771
- type: "uint256",
2772
- },
2773
- {
2774
- internalType: "uint256",
2775
- name: "reserveRatioBips",
2776
- type: "uint256",
2777
- },
2778
- {
2779
- internalType: "uint256",
2780
- name: "annualInterestBips",
2781
- type: "uint256",
2782
- },
2783
- {
2784
- internalType: "bool",
2785
- name: "temporaryReserveRatio",
2786
- type: "bool",
2787
- },
2788
- {
2789
- internalType: "uint256",
2790
- name: "originalAnnualInterestBips",
2791
- type: "uint256",
2792
- },
2793
- {
2794
- internalType: "uint256",
2795
- name: "originalReserveRatioBips",
2796
- type: "uint256",
2797
- },
2798
- {
2799
- internalType: "uint256",
2800
- name: "temporaryReserveRatioExpiry",
2801
- type: "uint256",
2802
- },
2803
- {
2804
- internalType: "bool",
2805
- name: "isClosed",
2806
- type: "bool",
2807
- },
2808
- {
2809
- internalType: "uint256",
2810
- name: "scaleFactor",
2811
- type: "uint256",
2812
- },
2813
- {
2814
- internalType: "uint256",
2815
- name: "totalSupply",
2816
- type: "uint256",
2817
- },
2818
- {
2819
- internalType: "uint256",
2820
- name: "maxTotalSupply",
2821
- type: "uint256",
2822
- },
2823
- {
2824
- internalType: "uint256",
2825
- name: "scaledTotalSupply",
2826
- type: "uint256",
2827
- },
2828
- {
2829
- internalType: "uint256",
2830
- name: "totalAssets",
2831
- type: "uint256",
2832
- },
2833
- {
2834
- internalType: "uint256",
2835
- name: "lastAccruedProtocolFees",
2836
- type: "uint256",
2837
- },
2838
- {
2839
- internalType: "uint256",
2840
- name: "normalizedUnclaimedWithdrawals",
2841
- type: "uint256",
2842
- },
2843
- {
2844
- internalType: "uint256",
2845
- name: "scaledPendingWithdrawals",
2846
- type: "uint256",
2847
- },
2848
- {
2849
- internalType: "uint256",
2850
- name: "pendingWithdrawalExpiry",
2851
- type: "uint256",
2852
- },
2853
- {
2854
- internalType: "bool",
2855
- name: "isDelinquent",
2856
- type: "bool",
2857
- },
2858
- {
2859
- internalType: "uint256",
2860
- name: "timeDelinquent",
2861
- type: "uint256",
2862
- },
2863
- {
2864
- internalType: "uint256",
2865
- name: "lastInterestAccruedTimestamp",
2866
- type: "uint256",
2867
- },
2868
- {
2869
- internalType: "uint32[]",
2870
- name: "unpaidWithdrawalBatchExpiries",
2871
- type: "uint32[]",
2872
- },
2873
- {
2874
- internalType: "uint256",
2875
- name: "coverageLiquidity",
2876
- type: "uint256",
2877
- },
2878
- {
2879
- internalType: "uint256",
2880
- name: "borrowableAssets",
2881
- type: "uint256",
2882
- },
2883
- {
2884
- internalType: "uint256",
2885
- name: "delinquentDebt",
2886
- type: "uint256",
2887
- },
2888
- ],
2889
- internalType: "struct MarketData",
2890
- name: "market",
2891
- type: "tuple",
2892
- },
2893
- {
2894
- components: [
2895
- {
2896
- internalType: "address",
2897
- name: "lender",
2898
- type: "address",
2899
- },
2900
- {
2901
- internalType: "bool",
2902
- name: "isAuthorizedOnController",
2903
- type: "bool",
2904
- },
2905
- {
2906
- internalType: "enum AuthRole",
2907
- name: "role",
2908
- type: "uint8",
2909
- },
2910
- {
2911
- internalType: "uint256",
2912
- name: "scaledBalance",
2913
- type: "uint256",
2914
- },
2915
- {
2916
- internalType: "uint256",
2917
- name: "normalizedBalance",
2918
- type: "uint256",
2919
- },
2920
- {
2921
- internalType: "uint256",
2922
- name: "underlyingBalance",
2923
- type: "uint256",
2924
- },
2925
- {
2926
- internalType: "uint256",
2927
- name: "underlyingApproval",
2928
- type: "uint256",
2929
- },
2930
- ],
2931
- internalType: "struct MarketLenderStatus",
2932
- name: "lenderStatus",
2933
- type: "tuple",
2934
- },
2935
- ],
2936
- internalType: "struct MarketDataWithLenderStatus[]",
2937
- name: "data",
2938
- type: "tuple[]",
2939
- },
2940
- ],
2941
- stateMutability: "view",
2942
- type: "function",
2943
- },
2944
- {
2945
- inputs: [
2946
- {
2947
- internalType: "address",
2948
- name: "lender",
2949
- type: "address",
2950
- },
2951
- {
2952
- internalType: "address[]",
2953
- name: "market",
2954
- type: "address[]",
2955
- },
2956
- ],
2957
- name: "getMarketsLenderStatus",
2958
- outputs: [
2959
- {
2960
- components: [
2961
- {
2962
- internalType: "address",
2963
- name: "lender",
2964
- type: "address",
2965
- },
2966
- {
2967
- internalType: "bool",
2968
- name: "isAuthorizedOnController",
2969
- type: "bool",
2970
- },
2971
- {
2972
- internalType: "enum AuthRole",
2973
- name: "role",
2974
- type: "uint8",
2975
- },
2976
- {
2977
- internalType: "uint256",
2978
- name: "scaledBalance",
2979
- type: "uint256",
2980
- },
2981
- {
2982
- internalType: "uint256",
2983
- name: "normalizedBalance",
2984
- type: "uint256",
2985
- },
2986
- {
2987
- internalType: "uint256",
2988
- name: "underlyingBalance",
2989
- type: "uint256",
2990
- },
2991
- {
2992
- internalType: "uint256",
2993
- name: "underlyingApproval",
2994
- type: "uint256",
2995
- },
2996
- ],
2997
- internalType: "struct MarketLenderStatus[]",
2998
- name: "status",
2999
- type: "tuple[]",
3000
- },
3001
- ],
3002
- stateMutability: "view",
3003
- type: "function",
3004
- },
3005
- {
3006
- inputs: [
3007
- {
3008
- components: [
3009
- {
3010
- internalType: "uint256",
3011
- name: "start",
3012
- type: "uint256",
3013
- },
3014
- {
3015
- internalType: "uint256",
3016
- name: "end",
3017
- type: "uint256",
3018
- },
3019
- ],
3020
- internalType: "struct SliceParameters",
3021
- name: "borrowersSlice",
3022
- type: "tuple",
3023
- },
3024
- {
3025
- components: [
3026
- {
3027
- internalType: "uint256",
3028
- name: "start",
3029
- type: "uint256",
3030
- },
3031
- {
3032
- internalType: "uint256",
3033
- name: "end",
3034
- type: "uint256",
3035
- },
3036
- ],
3037
- internalType: "struct SliceParameters",
3038
- name: "controllerFactoriesSlice",
3039
- type: "tuple",
3040
- },
3041
- {
3042
- components: [
3043
- {
3044
- internalType: "uint256",
3045
- name: "start",
3046
- type: "uint256",
3047
- },
3048
- {
3049
- internalType: "uint256",
3050
- name: "end",
3051
- type: "uint256",
3052
- },
3053
- ],
3054
- internalType: "struct SliceParameters",
3055
- name: "controllersSlice",
3056
- type: "tuple",
3057
- },
3058
- {
3059
- components: [
3060
- {
3061
- internalType: "uint256",
3062
- name: "start",
3063
- type: "uint256",
3064
- },
3065
- {
3066
- internalType: "uint256",
3067
- name: "end",
3068
- type: "uint256",
3069
- },
3070
- ],
3071
- internalType: "struct SliceParameters",
3072
- name: "marketsSlice",
3073
- type: "tuple",
3074
- },
3075
- ],
3076
- name: "getPaginatedArchControllerData",
3077
- outputs: [
3078
- {
3079
- components: [
3080
- {
3081
- internalType: "address",
3082
- name: "archController",
3083
- type: "address",
3084
- },
3085
- {
3086
- internalType: "uint256",
3087
- name: "borrowersCount",
3088
- type: "uint256",
3089
- },
3090
- {
3091
- internalType: "address[]",
3092
- name: "borrowers",
3093
- type: "address[]",
3094
- },
3095
- {
3096
- internalType: "uint256",
3097
- name: "controllerFactoriesCount",
3098
- type: "uint256",
3099
- },
3100
- {
3101
- internalType: "address[]",
3102
- name: "controllerFactories",
3103
- type: "address[]",
3104
- },
3105
- {
3106
- internalType: "uint256",
3107
- name: "controllersCount",
3108
- type: "uint256",
3109
- },
3110
- {
3111
- internalType: "address[]",
3112
- name: "controllers",
3113
- type: "address[]",
3114
- },
3115
- {
3116
- internalType: "uint256",
3117
- name: "marketsCount",
3118
- type: "uint256",
3119
- },
3120
- {
3121
- internalType: "address[]",
3122
- name: "markets",
3123
- type: "address[]",
3124
- },
3125
- ],
3126
- internalType: "struct ArchControllerData",
3127
- name: "data",
3128
- type: "tuple",
3129
- },
3130
- ],
3131
- stateMutability: "view",
3132
- type: "function",
3133
- },
3134
- {
3135
- inputs: [
3136
- {
3137
- internalType: "uint256",
3138
- name: "start",
3139
- type: "uint256",
3140
- },
3141
- {
3142
- internalType: "uint256",
3143
- name: "end",
3144
- type: "uint256",
3145
- },
3146
- ],
3147
- name: "getPaginatedControllersDataForBorrowers",
3148
- outputs: [
3149
- {
3150
- components: [
3151
- {
3152
- internalType: "address",
3153
- name: "borrower",
3154
- type: "address",
3155
- },
3156
- {
3157
- internalType: "address",
3158
- name: "controller",
3159
- type: "address",
3160
- },
3161
- {
3162
- internalType: "address",
3163
- name: "controllerFactory",
3164
- type: "address",
3165
- },
3166
- {
3167
- internalType: "bool",
3168
- name: "isRegisteredBorrower",
3169
- type: "bool",
3170
- },
3171
- {
3172
- internalType: "bool",
3173
- name: "hasDeployedController",
3174
- type: "bool",
3175
- },
3176
- {
3177
- components: [
3178
- {
3179
- internalType: "address",
3180
- name: "feeRecipient",
3181
- type: "address",
3182
- },
3183
- {
3184
- internalType: "uint16",
3185
- name: "protocolFeeBips",
3186
- type: "uint16",
3187
- },
3188
- {
3189
- components: [
3190
- {
3191
- internalType: "address",
3192
- name: "token",
3193
- type: "address",
3194
- },
3195
- {
3196
- internalType: "string",
3197
- name: "name",
3198
- type: "string",
3199
- },
3200
- {
3201
- internalType: "string",
3202
- name: "symbol",
3203
- type: "string",
3204
- },
3205
- {
3206
- internalType: "uint256",
3207
- name: "decimals",
3208
- type: "uint256",
3209
- },
3210
- {
3211
- internalType: "bool",
3212
- name: "isMock",
3213
- type: "bool",
3214
- },
3215
- ],
3216
- internalType: "struct TokenMetadata",
3217
- name: "originationFeeToken",
3218
- type: "tuple",
3219
- },
3220
- {
3221
- internalType: "uint256",
3222
- name: "originationFeeAmount",
3223
- type: "uint256",
3224
- },
3225
- ],
3226
- internalType: "struct FeeConfiguration",
3227
- name: "fees",
3228
- type: "tuple",
3229
- },
3230
- {
3231
- components: [
3232
- {
3233
- internalType: "uint32",
3234
- name: "minimumDelinquencyGracePeriod",
3235
- type: "uint32",
3236
- },
3237
- {
3238
- internalType: "uint32",
3239
- name: "maximumDelinquencyGracePeriod",
3240
- type: "uint32",
3241
- },
3242
- {
3243
- internalType: "uint16",
3244
- name: "minimumReserveRatioBips",
3245
- type: "uint16",
3246
- },
3247
- {
3248
- internalType: "uint16",
3249
- name: "maximumReserveRatioBips",
3250
- type: "uint16",
3251
- },
3252
- {
3253
- internalType: "uint16",
3254
- name: "minimumDelinquencyFeeBips",
3255
- type: "uint16",
3256
- },
3257
- {
3258
- internalType: "uint16",
3259
- name: "maximumDelinquencyFeeBips",
3260
- type: "uint16",
3261
- },
3262
- {
3263
- internalType: "uint32",
3264
- name: "minimumWithdrawalBatchDuration",
3265
- type: "uint32",
3266
- },
3267
- {
3268
- internalType: "uint32",
3269
- name: "maximumWithdrawalBatchDuration",
3270
- type: "uint32",
3271
- },
3272
- {
3273
- internalType: "uint16",
3274
- name: "minimumAnnualInterestBips",
3275
- type: "uint16",
3276
- },
3277
- {
3278
- internalType: "uint16",
3279
- name: "maximumAnnualInterestBips",
3280
- type: "uint16",
3281
- },
3282
- ],
3283
- internalType: "struct MarketParameterConstraints",
3284
- name: "constraints",
3285
- type: "tuple",
3286
- },
3287
- {
3288
- components: [
3289
- {
3290
- components: [
3291
- {
3292
- internalType: "address",
3293
- name: "token",
3294
- type: "address",
3295
- },
3296
- {
3297
- internalType: "string",
3298
- name: "name",
3299
- type: "string",
3300
- },
3301
- {
3302
- internalType: "string",
3303
- name: "symbol",
3304
- type: "string",
3305
- },
3306
- {
3307
- internalType: "uint256",
3308
- name: "decimals",
3309
- type: "uint256",
3310
- },
3311
- {
3312
- internalType: "bool",
3313
- name: "isMock",
3314
- type: "bool",
3315
- },
3316
- ],
3317
- internalType: "struct TokenMetadata",
3318
- name: "marketToken",
3319
- type: "tuple",
3320
- },
3321
- {
3322
- components: [
3323
- {
3324
- internalType: "address",
3325
- name: "token",
3326
- type: "address",
3327
- },
3328
- {
3329
- internalType: "string",
3330
- name: "name",
3331
- type: "string",
3332
- },
3333
- {
3334
- internalType: "string",
3335
- name: "symbol",
3336
- type: "string",
3337
- },
3338
- {
3339
- internalType: "uint256",
3340
- name: "decimals",
3341
- type: "uint256",
3342
- },
3343
- {
3344
- internalType: "bool",
3345
- name: "isMock",
3346
- type: "bool",
3347
- },
3348
- ],
3349
- internalType: "struct TokenMetadata",
3350
- name: "underlyingToken",
3351
- type: "tuple",
3352
- },
3353
- {
3354
- internalType: "address",
3355
- name: "borrower",
3356
- type: "address",
3357
- },
3358
- {
3359
- internalType: "address",
3360
- name: "controller",
3361
- type: "address",
3362
- },
3363
- {
3364
- internalType: "address",
3365
- name: "feeRecipient",
3366
- type: "address",
3367
- },
3368
- {
3369
- internalType: "uint256",
3370
- name: "protocolFeeBips",
3371
- type: "uint256",
3372
- },
3373
- {
3374
- internalType: "uint256",
3375
- name: "delinquencyFeeBips",
3376
- type: "uint256",
3377
- },
3378
- {
3379
- internalType: "uint256",
3380
- name: "delinquencyGracePeriod",
3381
- type: "uint256",
3382
- },
3383
- {
3384
- internalType: "uint256",
3385
- name: "withdrawalBatchDuration",
3386
- type: "uint256",
3387
- },
3388
- {
3389
- internalType: "uint256",
3390
- name: "reserveRatioBips",
3391
- type: "uint256",
3392
- },
3393
- {
3394
- internalType: "uint256",
3395
- name: "annualInterestBips",
3396
- type: "uint256",
3397
- },
3398
- {
3399
- internalType: "bool",
3400
- name: "temporaryReserveRatio",
3401
- type: "bool",
3402
- },
3403
- {
3404
- internalType: "uint256",
3405
- name: "originalAnnualInterestBips",
3406
- type: "uint256",
3407
- },
3408
- {
3409
- internalType: "uint256",
3410
- name: "originalReserveRatioBips",
3411
- type: "uint256",
3412
- },
3413
- {
3414
- internalType: "uint256",
3415
- name: "temporaryReserveRatioExpiry",
3416
- type: "uint256",
3417
- },
3418
- {
3419
- internalType: "bool",
3420
- name: "isClosed",
3421
- type: "bool",
3422
- },
3423
- {
3424
- internalType: "uint256",
3425
- name: "scaleFactor",
3426
- type: "uint256",
3427
- },
3428
- {
3429
- internalType: "uint256",
3430
- name: "totalSupply",
3431
- type: "uint256",
3432
- },
3433
- {
3434
- internalType: "uint256",
3435
- name: "maxTotalSupply",
3436
- type: "uint256",
3437
- },
3438
- {
3439
- internalType: "uint256",
3440
- name: "scaledTotalSupply",
3441
- type: "uint256",
3442
- },
3443
- {
3444
- internalType: "uint256",
3445
- name: "totalAssets",
3446
- type: "uint256",
3447
- },
3448
- {
3449
- internalType: "uint256",
3450
- name: "lastAccruedProtocolFees",
3451
- type: "uint256",
3452
- },
3453
- {
3454
- internalType: "uint256",
3455
- name: "normalizedUnclaimedWithdrawals",
3456
- type: "uint256",
3457
- },
3458
- {
3459
- internalType: "uint256",
3460
- name: "scaledPendingWithdrawals",
3461
- type: "uint256",
3462
- },
3463
- {
3464
- internalType: "uint256",
3465
- name: "pendingWithdrawalExpiry",
3466
- type: "uint256",
3467
- },
3468
- {
3469
- internalType: "bool",
3470
- name: "isDelinquent",
3471
- type: "bool",
3472
- },
3473
- {
3474
- internalType: "uint256",
3475
- name: "timeDelinquent",
3476
- type: "uint256",
3477
- },
3478
- {
3479
- internalType: "uint256",
3480
- name: "lastInterestAccruedTimestamp",
3481
- type: "uint256",
3482
- },
3483
- {
3484
- internalType: "uint32[]",
3485
- name: "unpaidWithdrawalBatchExpiries",
3486
- type: "uint32[]",
3487
- },
3488
- {
3489
- internalType: "uint256",
3490
- name: "coverageLiquidity",
3491
- type: "uint256",
3492
- },
3493
- {
3494
- internalType: "uint256",
3495
- name: "borrowableAssets",
3496
- type: "uint256",
3497
- },
3498
- {
3499
- internalType: "uint256",
3500
- name: "delinquentDebt",
3501
- type: "uint256",
3502
- },
3503
- ],
3504
- internalType: "struct MarketData[]",
3505
- name: "markets",
3506
- type: "tuple[]",
3507
- },
3508
- {
3509
- internalType: "uint256",
3510
- name: "borrowerOriginationFeeBalance",
3511
- type: "uint256",
3512
- },
3513
- {
3514
- internalType: "uint256",
3515
- name: "borrowerOriginationFeeApproval",
3516
- type: "uint256",
3517
- },
3518
- ],
3519
- internalType: "struct ControllerData[]",
3520
- name: "data",
3521
- type: "tuple[]",
3522
- },
3523
- ],
3524
- stateMutability: "view",
3525
- type: "function",
3526
- },
3527
- {
3528
- inputs: [
3529
- {
3530
- internalType: "uint256",
3531
- name: "start",
3532
- type: "uint256",
3533
- },
3534
- {
3535
- internalType: "uint256",
3536
- name: "end",
3537
- type: "uint256",
3538
- },
3539
- ],
3540
- name: "getPaginatedMarketsData",
3541
- outputs: [
3542
- {
3543
- components: [
3544
- {
3545
- components: [
3546
- {
3547
- internalType: "address",
3548
- name: "token",
3549
- type: "address",
3550
- },
3551
- {
3552
- internalType: "string",
3553
- name: "name",
3554
- type: "string",
3555
- },
3556
- {
3557
- internalType: "string",
3558
- name: "symbol",
3559
- type: "string",
3560
- },
3561
- {
3562
- internalType: "uint256",
3563
- name: "decimals",
3564
- type: "uint256",
3565
- },
3566
- {
3567
- internalType: "bool",
3568
- name: "isMock",
3569
- type: "bool",
3570
- },
3571
- ],
3572
- internalType: "struct TokenMetadata",
3573
- name: "marketToken",
3574
- type: "tuple",
3575
- },
3576
- {
3577
- components: [
3578
- {
3579
- internalType: "address",
3580
- name: "token",
3581
- type: "address",
3582
- },
3583
- {
3584
- internalType: "string",
3585
- name: "name",
3586
- type: "string",
3587
- },
3588
- {
3589
- internalType: "string",
3590
- name: "symbol",
3591
- type: "string",
3592
- },
3593
- {
3594
- internalType: "uint256",
3595
- name: "decimals",
3596
- type: "uint256",
3597
- },
3598
- {
3599
- internalType: "bool",
3600
- name: "isMock",
3601
- type: "bool",
3602
- },
3603
- ],
3604
- internalType: "struct TokenMetadata",
3605
- name: "underlyingToken",
3606
- type: "tuple",
3607
- },
3608
- {
3609
- internalType: "address",
3610
- name: "borrower",
3611
- type: "address",
3612
- },
3613
- {
3614
- internalType: "address",
3615
- name: "controller",
3616
- type: "address",
3617
- },
3618
- {
3619
- internalType: "address",
3620
- name: "feeRecipient",
3621
- type: "address",
3622
- },
3623
- {
3624
- internalType: "uint256",
3625
- name: "protocolFeeBips",
3626
- type: "uint256",
3627
- },
3628
- {
3629
- internalType: "uint256",
3630
- name: "delinquencyFeeBips",
3631
- type: "uint256",
3632
- },
3633
- {
3634
- internalType: "uint256",
3635
- name: "delinquencyGracePeriod",
3636
- type: "uint256",
3637
- },
3638
- {
3639
- internalType: "uint256",
3640
- name: "withdrawalBatchDuration",
3641
- type: "uint256",
3642
- },
3643
- {
3644
- internalType: "uint256",
3645
- name: "reserveRatioBips",
3646
- type: "uint256",
3647
- },
3648
- {
3649
- internalType: "uint256",
3650
- name: "annualInterestBips",
3651
- type: "uint256",
3652
- },
3653
- {
3654
- internalType: "bool",
3655
- name: "temporaryReserveRatio",
3656
- type: "bool",
3657
- },
3658
- {
3659
- internalType: "uint256",
3660
- name: "originalAnnualInterestBips",
3661
- type: "uint256",
3662
- },
3663
- {
3664
- internalType: "uint256",
3665
- name: "originalReserveRatioBips",
3666
- type: "uint256",
3667
- },
3668
- {
3669
- internalType: "uint256",
3670
- name: "temporaryReserveRatioExpiry",
3671
- type: "uint256",
3672
- },
3673
- {
3674
- internalType: "bool",
3675
- name: "isClosed",
3676
- type: "bool",
3677
- },
3678
- {
3679
- internalType: "uint256",
3680
- name: "scaleFactor",
3681
- type: "uint256",
3682
- },
3683
- {
3684
- internalType: "uint256",
3685
- name: "totalSupply",
3686
- type: "uint256",
3687
- },
3688
- {
3689
- internalType: "uint256",
3690
- name: "maxTotalSupply",
3691
- type: "uint256",
3692
- },
3693
- {
3694
- internalType: "uint256",
3695
- name: "scaledTotalSupply",
3696
- type: "uint256",
3697
- },
3698
- {
3699
- internalType: "uint256",
3700
- name: "totalAssets",
3701
- type: "uint256",
3702
- },
3703
- {
3704
- internalType: "uint256",
3705
- name: "lastAccruedProtocolFees",
3706
- type: "uint256",
3707
- },
3708
- {
3709
- internalType: "uint256",
3710
- name: "normalizedUnclaimedWithdrawals",
3711
- type: "uint256",
3712
- },
3713
- {
3714
- internalType: "uint256",
3715
- name: "scaledPendingWithdrawals",
3716
- type: "uint256",
3717
- },
3718
- {
3719
- internalType: "uint256",
3720
- name: "pendingWithdrawalExpiry",
3721
- type: "uint256",
3722
- },
3723
- {
3724
- internalType: "bool",
3725
- name: "isDelinquent",
3726
- type: "bool",
3727
- },
3728
- {
3729
- internalType: "uint256",
3730
- name: "timeDelinquent",
3731
- type: "uint256",
3732
- },
3733
- {
3734
- internalType: "uint256",
3735
- name: "lastInterestAccruedTimestamp",
3736
- type: "uint256",
3737
- },
3738
- {
3739
- internalType: "uint32[]",
3740
- name: "unpaidWithdrawalBatchExpiries",
3741
- type: "uint32[]",
3742
- },
3743
- {
3744
- internalType: "uint256",
3745
- name: "coverageLiquidity",
3746
- type: "uint256",
3747
- },
3748
- {
3749
- internalType: "uint256",
3750
- name: "borrowableAssets",
3751
- type: "uint256",
3752
- },
3753
- {
3754
- internalType: "uint256",
3755
- name: "delinquentDebt",
3756
- type: "uint256",
3757
- },
3758
- ],
3759
- internalType: "struct MarketData[]",
3760
- name: "data",
3761
- type: "tuple[]",
3762
- },
3763
- ],
3764
- stateMutability: "view",
3765
- type: "function",
3766
- },
3767
- {
3768
- inputs: [
3769
- {
3770
- internalType: "address",
3771
- name: "lender",
3772
- type: "address",
3773
- },
3774
- {
3775
- internalType: "uint256",
3776
- name: "start",
3777
- type: "uint256",
3778
- },
3779
- {
3780
- internalType: "uint256",
3781
- name: "end",
3782
- type: "uint256",
3783
- },
3784
- ],
3785
- name: "getPaginatedMarketsDataWithLenderStatus",
3786
- outputs: [
3787
- {
3788
- components: [
3789
- {
3790
- components: [
3791
- {
3792
- components: [
3793
- {
3794
- internalType: "address",
3795
- name: "token",
3796
- type: "address",
3797
- },
3798
- {
3799
- internalType: "string",
3800
- name: "name",
3801
- type: "string",
3802
- },
3803
- {
3804
- internalType: "string",
3805
- name: "symbol",
3806
- type: "string",
3807
- },
3808
- {
3809
- internalType: "uint256",
3810
- name: "decimals",
3811
- type: "uint256",
3812
- },
3813
- {
3814
- internalType: "bool",
3815
- name: "isMock",
3816
- type: "bool",
3817
- },
3818
- ],
3819
- internalType: "struct TokenMetadata",
3820
- name: "marketToken",
3821
- type: "tuple",
3822
- },
3823
- {
3824
- components: [
3825
- {
3826
- internalType: "address",
3827
- name: "token",
3828
- type: "address",
3829
- },
3830
- {
3831
- internalType: "string",
3832
- name: "name",
3833
- type: "string",
3834
- },
3835
- {
3836
- internalType: "string",
3837
- name: "symbol",
3838
- type: "string",
3839
- },
3840
- {
3841
- internalType: "uint256",
3842
- name: "decimals",
3843
- type: "uint256",
3844
- },
3845
- {
3846
- internalType: "bool",
3847
- name: "isMock",
3848
- type: "bool",
3849
- },
3850
- ],
3851
- internalType: "struct TokenMetadata",
3852
- name: "underlyingToken",
3853
- type: "tuple",
3854
- },
3855
- {
3856
- internalType: "address",
3857
- name: "borrower",
3858
- type: "address",
3859
- },
3860
- {
3861
- internalType: "address",
3862
- name: "controller",
3863
- type: "address",
3864
- },
3865
- {
3866
- internalType: "address",
3867
- name: "feeRecipient",
3868
- type: "address",
3869
- },
3870
- {
3871
- internalType: "uint256",
3872
- name: "protocolFeeBips",
3873
- type: "uint256",
3874
- },
3875
- {
3876
- internalType: "uint256",
3877
- name: "delinquencyFeeBips",
3878
- type: "uint256",
3879
- },
3880
- {
3881
- internalType: "uint256",
3882
- name: "delinquencyGracePeriod",
3883
- type: "uint256",
3884
- },
3885
- {
3886
- internalType: "uint256",
3887
- name: "withdrawalBatchDuration",
3888
- type: "uint256",
3889
- },
3890
- {
3891
- internalType: "uint256",
3892
- name: "reserveRatioBips",
3893
- type: "uint256",
3894
- },
3895
- {
3896
- internalType: "uint256",
3897
- name: "annualInterestBips",
3898
- type: "uint256",
3899
- },
3900
- {
3901
- internalType: "bool",
3902
- name: "temporaryReserveRatio",
3903
- type: "bool",
3904
- },
3905
- {
3906
- internalType: "uint256",
3907
- name: "originalAnnualInterestBips",
3908
- type: "uint256",
3909
- },
3910
- {
3911
- internalType: "uint256",
3912
- name: "originalReserveRatioBips",
3913
- type: "uint256",
3914
- },
3915
- {
3916
- internalType: "uint256",
3917
- name: "temporaryReserveRatioExpiry",
3918
- type: "uint256",
3919
- },
3920
- {
3921
- internalType: "bool",
3922
- name: "isClosed",
3923
- type: "bool",
3924
- },
3925
- {
3926
- internalType: "uint256",
3927
- name: "scaleFactor",
3928
- type: "uint256",
3929
- },
3930
- {
3931
- internalType: "uint256",
3932
- name: "totalSupply",
3933
- type: "uint256",
3934
- },
3935
- {
3936
- internalType: "uint256",
3937
- name: "maxTotalSupply",
3938
- type: "uint256",
3939
- },
3940
- {
3941
- internalType: "uint256",
3942
- name: "scaledTotalSupply",
3943
- type: "uint256",
3944
- },
3945
- {
3946
- internalType: "uint256",
3947
- name: "totalAssets",
3948
- type: "uint256",
3949
- },
3950
- {
3951
- internalType: "uint256",
3952
- name: "lastAccruedProtocolFees",
3953
- type: "uint256",
3954
- },
3955
- {
3956
- internalType: "uint256",
3957
- name: "normalizedUnclaimedWithdrawals",
3958
- type: "uint256",
3959
- },
3960
- {
3961
- internalType: "uint256",
3962
- name: "scaledPendingWithdrawals",
3963
- type: "uint256",
3964
- },
3965
- {
3966
- internalType: "uint256",
3967
- name: "pendingWithdrawalExpiry",
3968
- type: "uint256",
3969
- },
3970
- {
3971
- internalType: "bool",
3972
- name: "isDelinquent",
3973
- type: "bool",
3974
- },
3975
- {
3976
- internalType: "uint256",
3977
- name: "timeDelinquent",
3978
- type: "uint256",
3979
- },
3980
- {
3981
- internalType: "uint256",
3982
- name: "lastInterestAccruedTimestamp",
3983
- type: "uint256",
3984
- },
3985
- {
3986
- internalType: "uint32[]",
3987
- name: "unpaidWithdrawalBatchExpiries",
3988
- type: "uint32[]",
3989
- },
3990
- {
3991
- internalType: "uint256",
3992
- name: "coverageLiquidity",
3993
- type: "uint256",
3994
- },
3995
- {
3996
- internalType: "uint256",
3997
- name: "borrowableAssets",
3998
- type: "uint256",
3999
- },
4000
- {
4001
- internalType: "uint256",
4002
- name: "delinquentDebt",
4003
- type: "uint256",
4004
- },
4005
- ],
4006
- internalType: "struct MarketData",
4007
- name: "market",
4008
- type: "tuple",
4009
- },
4010
- {
4011
- components: [
4012
- {
4013
- internalType: "address",
4014
- name: "lender",
4015
- type: "address",
4016
- },
4017
- {
4018
- internalType: "bool",
4019
- name: "isAuthorizedOnController",
4020
- type: "bool",
4021
- },
4022
- {
4023
- internalType: "enum AuthRole",
4024
- name: "role",
4025
- type: "uint8",
4026
- },
4027
- {
4028
- internalType: "uint256",
4029
- name: "scaledBalance",
4030
- type: "uint256",
4031
- },
4032
- {
4033
- internalType: "uint256",
4034
- name: "normalizedBalance",
4035
- type: "uint256",
4036
- },
4037
- {
4038
- internalType: "uint256",
4039
- name: "underlyingBalance",
4040
- type: "uint256",
4041
- },
4042
- {
4043
- internalType: "uint256",
4044
- name: "underlyingApproval",
4045
- type: "uint256",
4046
- },
4047
- ],
4048
- internalType: "struct MarketLenderStatus",
4049
- name: "lenderStatus",
4050
- type: "tuple",
4051
- },
4052
- ],
4053
- internalType: "struct MarketDataWithLenderStatus[]",
4054
- name: "data",
4055
- type: "tuple[]",
4056
- },
4057
- ],
4058
- stateMutability: "view",
4059
- type: "function",
4060
- },
4061
- {
4062
- inputs: [
4063
- {
4064
- internalType: "address",
4065
- name: "token",
4066
- type: "address",
4067
- },
4068
- ],
4069
- name: "getTokenInfo",
4070
- outputs: [
4071
- {
4072
- components: [
4073
- {
4074
- internalType: "address",
4075
- name: "token",
4076
- type: "address",
4077
- },
4078
- {
4079
- internalType: "string",
4080
- name: "name",
4081
- type: "string",
4082
- },
4083
- {
4084
- internalType: "string",
4085
- name: "symbol",
4086
- type: "string",
4087
- },
4088
- {
4089
- internalType: "uint256",
4090
- name: "decimals",
4091
- type: "uint256",
4092
- },
4093
- {
4094
- internalType: "bool",
4095
- name: "isMock",
4096
- type: "bool",
4097
- },
4098
- ],
4099
- internalType: "struct TokenMetadata",
4100
- name: "info",
4101
- type: "tuple",
4102
- },
4103
- ],
4104
- stateMutability: "view",
4105
- type: "function",
4106
- },
4107
- {
4108
- inputs: [
4109
- {
4110
- internalType: "address[]",
4111
- name: "tokens",
4112
- type: "address[]",
4113
- },
4114
- ],
4115
- name: "getTokensInfo",
4116
- outputs: [
4117
- {
4118
- components: [
4119
- {
4120
- internalType: "address",
4121
- name: "token",
4122
- type: "address",
4123
- },
4124
- {
4125
- internalType: "string",
4126
- name: "name",
4127
- type: "string",
4128
- },
4129
- {
4130
- internalType: "string",
4131
- name: "symbol",
4132
- type: "string",
4133
- },
4134
- {
4135
- internalType: "uint256",
4136
- name: "decimals",
4137
- type: "uint256",
4138
- },
4139
- {
4140
- internalType: "bool",
4141
- name: "isMock",
4142
- type: "bool",
4143
- },
4144
- ],
4145
- internalType: "struct TokenMetadata[]",
4146
- name: "info",
4147
- type: "tuple[]",
4148
- },
4149
- ],
4150
- stateMutability: "view",
4151
- type: "function",
4152
- },
4153
- {
4154
- inputs: [
4155
- {
4156
- internalType: "address",
4157
- name: "market",
4158
- type: "address",
4159
- },
4160
- {
4161
- internalType: "uint32",
4162
- name: "expiry",
4163
- type: "uint32",
4164
- },
4165
- ],
4166
- name: "getWithdrawalBatchData",
4167
- outputs: [
4168
- {
4169
- components: [
4170
- {
4171
- internalType: "uint32",
4172
- name: "expiry",
4173
- type: "uint32",
4174
- },
4175
- {
4176
- internalType: "enum BatchStatus",
4177
- name: "status",
4178
- type: "uint8",
4179
- },
4180
- {
4181
- internalType: "uint256",
4182
- name: "scaledTotalAmount",
4183
- type: "uint256",
4184
- },
4185
- {
4186
- internalType: "uint256",
4187
- name: "scaledAmountBurned",
4188
- type: "uint256",
4189
- },
4190
- {
4191
- internalType: "uint256",
4192
- name: "normalizedAmountPaid",
4193
- type: "uint256",
4194
- },
4195
- {
4196
- internalType: "uint256",
4197
- name: "normalizedTotalAmount",
4198
- type: "uint256",
4199
- },
4200
- ],
4201
- internalType: "struct WithdrawalBatchData",
4202
- name: "data",
4203
- type: "tuple",
4204
- },
4205
- ],
4206
- stateMutability: "view",
4207
- type: "function",
4208
- },
4209
- {
4210
- inputs: [
4211
- {
4212
- internalType: "address",
4213
- name: "market",
4214
- type: "address",
4215
- },
4216
- {
4217
- internalType: "uint32",
4218
- name: "expiry",
4219
- type: "uint32",
4220
- },
4221
- {
4222
- internalType: "address",
4223
- name: "lender",
4224
- type: "address",
4225
- },
4226
- ],
4227
- name: "getWithdrawalBatchDataWithLenderStatus",
4228
- outputs: [
4229
- {
4230
- components: [
4231
- {
4232
- components: [
4233
- {
4234
- internalType: "uint32",
4235
- name: "expiry",
4236
- type: "uint32",
4237
- },
4238
- {
4239
- internalType: "enum BatchStatus",
4240
- name: "status",
4241
- type: "uint8",
4242
- },
4243
- {
4244
- internalType: "uint256",
4245
- name: "scaledTotalAmount",
4246
- type: "uint256",
4247
- },
4248
- {
4249
- internalType: "uint256",
4250
- name: "scaledAmountBurned",
4251
- type: "uint256",
4252
- },
4253
- {
4254
- internalType: "uint256",
4255
- name: "normalizedAmountPaid",
4256
- type: "uint256",
4257
- },
4258
- {
4259
- internalType: "uint256",
4260
- name: "normalizedTotalAmount",
4261
- type: "uint256",
4262
- },
4263
- ],
4264
- internalType: "struct WithdrawalBatchData",
4265
- name: "batch",
4266
- type: "tuple",
4267
- },
4268
- {
4269
- components: [
4270
- {
4271
- internalType: "address",
4272
- name: "lender",
4273
- type: "address",
4274
- },
4275
- {
4276
- internalType: "uint256",
4277
- name: "scaledAmount",
4278
- type: "uint256",
4279
- },
4280
- {
4281
- internalType: "uint256",
4282
- name: "normalizedAmountWithdrawn",
4283
- type: "uint256",
4284
- },
4285
- {
4286
- internalType: "uint256",
4287
- name: "normalizedAmountOwed",
4288
- type: "uint256",
4289
- },
4290
- {
4291
- internalType: "uint256",
4292
- name: "availableWithdrawalAmount",
4293
- type: "uint256",
4294
- },
4295
- ],
4296
- internalType: "struct WithdrawalBatchLenderStatus",
4297
- name: "lenderStatus",
4298
- type: "tuple",
4299
- },
4300
- ],
4301
- internalType: "struct WithdrawalBatchDataWithLenderStatus",
4302
- name: "status",
4303
- type: "tuple",
4304
- },
4305
- ],
4306
- stateMutability: "view",
4307
- type: "function",
4308
- },
4309
- {
4310
- inputs: [
4311
- {
4312
- internalType: "address",
4313
- name: "market",
4314
- type: "address",
4315
- },
4316
- {
4317
- internalType: "uint32",
4318
- name: "expiry",
4319
- type: "uint32",
4320
- },
4321
- {
4322
- internalType: "address[]",
4323
- name: "lenders",
4324
- type: "address[]",
4325
- },
4326
- ],
4327
- name: "getWithdrawalBatchDataWithLendersStatus",
4328
- outputs: [
4329
- {
4330
- components: [
4331
- {
4332
- internalType: "uint32",
4333
- name: "expiry",
4334
- type: "uint32",
4335
- },
4336
- {
4337
- internalType: "enum BatchStatus",
4338
- name: "status",
4339
- type: "uint8",
4340
- },
4341
- {
4342
- internalType: "uint256",
4343
- name: "scaledTotalAmount",
4344
- type: "uint256",
4345
- },
4346
- {
4347
- internalType: "uint256",
4348
- name: "scaledAmountBurned",
4349
- type: "uint256",
4350
- },
4351
- {
4352
- internalType: "uint256",
4353
- name: "normalizedAmountPaid",
4354
- type: "uint256",
4355
- },
4356
- {
4357
- internalType: "uint256",
4358
- name: "normalizedTotalAmount",
4359
- type: "uint256",
4360
- },
4361
- ],
4362
- internalType: "struct WithdrawalBatchData",
4363
- name: "batch",
4364
- type: "tuple",
4365
- },
4366
- {
4367
- components: [
4368
- {
4369
- internalType: "address",
4370
- name: "lender",
4371
- type: "address",
4372
- },
4373
- {
4374
- internalType: "uint256",
4375
- name: "scaledAmount",
4376
- type: "uint256",
4377
- },
4378
- {
4379
- internalType: "uint256",
4380
- name: "normalizedAmountWithdrawn",
4381
- type: "uint256",
4382
- },
4383
- {
4384
- internalType: "uint256",
4385
- name: "normalizedAmountOwed",
4386
- type: "uint256",
4387
- },
4388
- {
4389
- internalType: "uint256",
4390
- name: "availableWithdrawalAmount",
4391
- type: "uint256",
4392
- },
4393
- ],
4394
- internalType: "struct WithdrawalBatchLenderStatus[]",
4395
- name: "statuses",
4396
- type: "tuple[]",
4397
- },
4398
- ],
4399
- stateMutability: "view",
4400
- type: "function",
4401
- },
4402
- {
4403
- inputs: [
4404
- {
4405
- internalType: "address",
4406
- name: "market",
4407
- type: "address",
4408
- },
4409
- {
4410
- internalType: "uint32[]",
4411
- name: "expiries",
4412
- type: "uint32[]",
4413
- },
4414
- ],
4415
- name: "getWithdrawalBatchesData",
4416
- outputs: [
4417
- {
4418
- components: [
4419
- {
4420
- internalType: "uint32",
4421
- name: "expiry",
4422
- type: "uint32",
4423
- },
4424
- {
4425
- internalType: "enum BatchStatus",
4426
- name: "status",
4427
- type: "uint8",
4428
- },
4429
- {
4430
- internalType: "uint256",
4431
- name: "scaledTotalAmount",
4432
- type: "uint256",
4433
- },
4434
- {
4435
- internalType: "uint256",
4436
- name: "scaledAmountBurned",
4437
- type: "uint256",
4438
- },
4439
- {
4440
- internalType: "uint256",
4441
- name: "normalizedAmountPaid",
4442
- type: "uint256",
4443
- },
4444
- {
4445
- internalType: "uint256",
4446
- name: "normalizedTotalAmount",
4447
- type: "uint256",
4448
- },
4449
- ],
4450
- internalType: "struct WithdrawalBatchData[]",
4451
- name: "data",
4452
- type: "tuple[]",
4453
- },
4454
- ],
4455
- stateMutability: "view",
4456
- type: "function",
4457
- },
4458
- {
4459
- inputs: [
4460
- {
4461
- internalType: "address",
4462
- name: "market",
4463
- type: "address",
4464
- },
4465
- {
4466
- internalType: "uint32[]",
4467
- name: "expiries",
4468
- type: "uint32[]",
4469
- },
4470
- {
4471
- internalType: "address",
4472
- name: "lender",
4473
- type: "address",
4474
- },
4475
- ],
4476
- name: "getWithdrawalBatchesDataWithLenderStatus",
4477
- outputs: [
4478
- {
4479
- components: [
4480
- {
4481
- components: [
4482
- {
4483
- internalType: "uint32",
4484
- name: "expiry",
4485
- type: "uint32",
4486
- },
4487
- {
4488
- internalType: "enum BatchStatus",
4489
- name: "status",
4490
- type: "uint8",
4491
- },
4492
- {
4493
- internalType: "uint256",
4494
- name: "scaledTotalAmount",
4495
- type: "uint256",
4496
- },
4497
- {
4498
- internalType: "uint256",
4499
- name: "scaledAmountBurned",
4500
- type: "uint256",
4501
- },
4502
- {
4503
- internalType: "uint256",
4504
- name: "normalizedAmountPaid",
4505
- type: "uint256",
4506
- },
4507
- {
4508
- internalType: "uint256",
4509
- name: "normalizedTotalAmount",
4510
- type: "uint256",
4511
- },
4512
- ],
4513
- internalType: "struct WithdrawalBatchData",
4514
- name: "batch",
4515
- type: "tuple",
4516
- },
4517
- {
4518
- components: [
4519
- {
4520
- internalType: "address",
4521
- name: "lender",
4522
- type: "address",
4523
- },
4524
- {
4525
- internalType: "uint256",
4526
- name: "scaledAmount",
4527
- type: "uint256",
4528
- },
4529
- {
4530
- internalType: "uint256",
4531
- name: "normalizedAmountWithdrawn",
4532
- type: "uint256",
4533
- },
4534
- {
4535
- internalType: "uint256",
4536
- name: "normalizedAmountOwed",
4537
- type: "uint256",
4538
- },
4539
- {
4540
- internalType: "uint256",
4541
- name: "availableWithdrawalAmount",
4542
- type: "uint256",
4543
- },
4544
- ],
4545
- internalType: "struct WithdrawalBatchLenderStatus",
4546
- name: "lenderStatus",
4547
- type: "tuple",
4548
- },
4549
- ],
4550
- internalType: "struct WithdrawalBatchDataWithLenderStatus[]",
4551
- name: "statuses",
4552
- type: "tuple[]",
4553
- },
4554
- ],
4555
- stateMutability: "view",
4556
- type: "function",
4557
- },
4558
- ];
4559
- class MarketLens__factory {
4560
- static createInterface() {
4561
- return new ethers_1.utils.Interface(_abi);
4562
- }
4563
- static connect(address, signerOrProvider) {
4564
- return new ethers_1.Contract(address, _abi, signerOrProvider);
4565
- }
4566
- }
4567
- MarketLens__factory.abi = _abi;
4568
- exports.MarketLens__factory = MarketLens__factory;
4569
- //# sourceMappingURL=MarketLens__factory.js.map