@stas-b-woof/compound-react 0.0.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. package/README.md +4 -2
  2. package/dist/cjs/_main_.d.ts +7 -0
  3. package/dist/cjs/_main_.js +106 -0
  4. package/dist/{src → cjs}/actions/useActionBuilder.d.ts +0 -1
  5. package/dist/cjs/actions/useActionBuilder.js +14 -0
  6. package/dist/{src → cjs}/actions/useActionsBuilder.d.ts +0 -1
  7. package/dist/cjs/actions/useActionsBuilder.js +14 -0
  8. package/dist/{src → cjs}/actions/useBorrow.d.ts +0 -1
  9. package/dist/cjs/actions/useBorrow.js +17 -0
  10. package/dist/{src → cjs}/actions/usePermitsBuilder.d.ts +0 -1
  11. package/dist/cjs/actions/usePermitsBuilder.js +14 -0
  12. package/dist/cjs/actions/usePopulatePermit.d.ts +8 -0
  13. package/dist/cjs/actions/usePopulatePermit.js +19 -0
  14. package/dist/{src → cjs}/actions/useRepay.d.ts +0 -1
  15. package/dist/cjs/actions/useRepay.js +17 -0
  16. package/dist/{src → cjs}/actions/useSupply.d.ts +0 -1
  17. package/dist/cjs/actions/useSupply.js +17 -0
  18. package/dist/{src → cjs}/actions/useWithdraw.d.ts +0 -1
  19. package/dist/cjs/actions/useWithdraw.js +17 -0
  20. package/dist/{src → cjs}/actions.d.ts +1 -2
  21. package/dist/cjs/actions.js +19 -0
  22. package/dist/cjs/execution/usePopulateTransaction.d.ts +8 -0
  23. package/dist/cjs/execution/usePopulateTransaction.js +19 -0
  24. package/dist/cjs/execution/useSendTransaction.d.ts +7 -0
  25. package/dist/cjs/execution/useSendTransaction.js +17 -0
  26. package/dist/cjs/execution/useWaitForTransaction.d.ts +5 -0
  27. package/dist/cjs/execution/useWaitForTransaction.js +17 -0
  28. package/dist/cjs/execution.d.ts +3 -0
  29. package/dist/cjs/execution.js +9 -0
  30. package/dist/{src → cjs}/fetchers/useAccountBasics.d.ts +1 -2
  31. package/dist/cjs/fetchers/useAccountBasics.js +38 -0
  32. package/dist/{src → cjs}/fetchers/useAccountCollateralBalance.d.ts +1 -2
  33. package/dist/cjs/fetchers/useAccountCollateralBalance.js +42 -0
  34. package/dist/{src → cjs}/fetchers/useAccountLiquidatable.d.ts +1 -2
  35. package/dist/cjs/fetchers/useAccountLiquidatable.js +35 -0
  36. package/dist/{src → cjs}/fetchers/useAccountSupplyBalance.d.ts +1 -2
  37. package/dist/cjs/fetchers/useAccountSupplyBalance.js +38 -0
  38. package/dist/{src → cjs}/fetchers/useAssetInfo.d.ts +3 -4
  39. package/dist/cjs/fetchers/useAssetInfo.js +38 -0
  40. package/dist/{src → cjs}/fetchers/useAssetInfoByAddress.d.ts +1 -2
  41. package/dist/cjs/fetchers/useAssetInfoByAddress.js +38 -0
  42. package/dist/{src → cjs}/fetchers/useAssetSupport.d.ts +3 -4
  43. package/dist/cjs/fetchers/useAssetSupport.js +38 -0
  44. package/dist/{src → cjs}/fetchers/useBaseAssetReserves.d.ts +1 -2
  45. package/dist/cjs/fetchers/useBaseAssetReserves.js +34 -0
  46. package/dist/{src → cjs}/fetchers/useBaseTokenAddress.d.ts +1 -2
  47. package/dist/cjs/fetchers/useBaseTokenAddress.js +34 -0
  48. package/dist/{src → cjs}/fetchers/useBaseTokenPriceFeedAddress.d.ts +1 -2
  49. package/dist/cjs/fetchers/useBaseTokenPriceFeedAddress.js +34 -0
  50. package/dist/{src → cjs}/fetchers/useBorrowBalance.d.ts +1 -2
  51. package/dist/cjs/fetchers/useBorrowBalance.js +38 -0
  52. package/dist/{src → cjs}/fetchers/useBorrowKink.d.ts +1 -2
  53. package/dist/cjs/fetchers/useBorrowKink.js +34 -0
  54. package/dist/{src → cjs}/fetchers/useBorrowPerSecondInterestRateBase.d.ts +1 -2
  55. package/dist/cjs/fetchers/useBorrowPerSecondInterestRateBase.js +34 -0
  56. package/dist/{src → cjs}/fetchers/useBorrowPerSecondInterestRateSlopeHigh.d.ts +1 -2
  57. package/dist/cjs/fetchers/useBorrowPerSecondInterestRateSlopeHigh.js +34 -0
  58. package/dist/{src → cjs}/fetchers/useBorrowPerSecondInterestRateSlopeLow.d.ts +1 -2
  59. package/dist/cjs/fetchers/useBorrowPerSecondInterestRateSlopeLow.js +34 -0
  60. package/dist/{src → cjs}/fetchers/useBorrowRate.d.ts +4 -4
  61. package/dist/cjs/fetchers/useBorrowRate.js +39 -0
  62. package/dist/{src → cjs}/fetchers/useCollateralQuote.d.ts +4 -5
  63. package/dist/cjs/fetchers/useCollateralQuote.js +42 -0
  64. package/dist/{src → cjs}/fetchers/useCollateralReserves.d.ts +1 -2
  65. package/dist/cjs/fetchers/useCollateralReserves.js +38 -0
  66. package/dist/{src → cjs}/fetchers/useCollateralSupply.d.ts +1 -2
  67. package/dist/cjs/fetchers/useCollateralSupply.js +38 -0
  68. package/dist/{src → cjs}/fetchers/useCollateralsCount.d.ts +1 -2
  69. package/dist/cjs/fetchers/useCollateralsCount.js +34 -0
  70. package/dist/{src → cjs}/fetchers/useCometDecimals.d.ts +1 -2
  71. package/dist/cjs/fetchers/useCometDecimals.js +34 -0
  72. package/dist/{src → cjs}/fetchers/useFetchers.d.ts +26 -59
  73. package/dist/cjs/fetchers/useFetchers.js +15 -0
  74. package/dist/{src → cjs}/fetchers/useLiquidatorPoints.d.ts +1 -2
  75. package/dist/cjs/fetchers/useLiquidatorPoints.js +38 -0
  76. package/dist/{src → cjs}/fetchers/useManagerAllowed.d.ts +1 -2
  77. package/dist/cjs/fetchers/useManagerAllowed.js +42 -0
  78. package/dist/{src → cjs}/fetchers/useMarket.d.ts +5 -4
  79. package/dist/cjs/fetchers/useMarket.js +40 -0
  80. package/dist/{src → cjs}/fetchers/useMarketName.d.ts +1 -2
  81. package/dist/cjs/fetchers/useMarketName.js +34 -0
  82. package/dist/{src → cjs}/fetchers/useMarketSymbol.d.ts +1 -2
  83. package/dist/cjs/fetchers/useMarketSymbol.js +34 -0
  84. package/dist/{src → cjs}/fetchers/useMarketVersion.d.ts +1 -2
  85. package/dist/cjs/fetchers/useMarketVersion.js +34 -0
  86. package/dist/{src → cjs}/fetchers/useMinimalLoanAmount.d.ts +1 -2
  87. package/dist/cjs/fetchers/useMinimalLoanAmount.js +34 -0
  88. package/dist/{src → cjs}/fetchers/useSupplyKink.d.ts +1 -2
  89. package/dist/cjs/fetchers/useSupplyKink.js +34 -0
  90. package/dist/{src → cjs}/fetchers/useSupplyPerSecondInterestRateBase.d.ts +1 -2
  91. package/dist/cjs/fetchers/useSupplyPerSecondInterestRateBase.js +34 -0
  92. package/dist/{src → cjs}/fetchers/useSupplyPerSecondInterestRateSlopeHigh.d.ts +1 -2
  93. package/dist/cjs/fetchers/useSupplyPerSecondInterestRateSlopeHigh.js +34 -0
  94. package/dist/{src → cjs}/fetchers/useSupplyPerSecondInterestRateSlopeLow.d.ts +1 -2
  95. package/dist/cjs/fetchers/useSupplyPerSecondInterestRateSlopeLow.js +34 -0
  96. package/dist/{src → cjs}/fetchers/useSupplyRate.d.ts +4 -5
  97. package/dist/cjs/fetchers/useSupplyRate.js +38 -0
  98. package/dist/{src → cjs}/fetchers/useTotalBorrow.d.ts +1 -2
  99. package/dist/cjs/fetchers/useTotalBorrow.js +34 -0
  100. package/dist/{src → cjs}/fetchers/useTotalSupply.d.ts +1 -2
  101. package/dist/cjs/fetchers/useTotalSupply.js +34 -0
  102. package/dist/{src → cjs}/fetchers/useTotalsBasic.d.ts +1 -2
  103. package/dist/cjs/fetchers/useTotalsBasic.js +34 -0
  104. package/dist/{src → cjs}/fetchers/useUserNonce.d.ts +1 -2
  105. package/dist/cjs/fetchers/useUserNonce.js +38 -0
  106. package/dist/{src → cjs}/fetchers/useUtilization.d.ts +1 -2
  107. package/dist/cjs/fetchers/useUtilization.js +34 -0
  108. package/dist/{src → cjs}/fetchers.d.ts +0 -7
  109. package/dist/cjs/fetchers.js +120 -0
  110. package/dist/{src → cjs}/injection.d.ts +0 -1
  111. package/dist/cjs/injection.js +16 -0
  112. package/dist/cjs/package.json +1 -0
  113. package/dist/{src → cjs}/useCompound.d.ts +2 -3
  114. package/dist/cjs/useCompound.js +26 -0
  115. package/dist/{src → cjs}/utils.d.ts +0 -1
  116. package/dist/cjs/utils.js +41 -0
  117. package/dist/{src → cjs}/validation/useValidation.d.ts +1 -2
  118. package/dist/cjs/validation/useValidation.js +50 -0
  119. package/dist/{src → cjs}/validation.d.ts +0 -1
  120. package/dist/cjs/validation.js +6 -0
  121. package/dist/esm/_main_.d.ts +7 -0
  122. package/dist/esm/_main_.js +7 -0
  123. package/dist/esm/actions/useActionBuilder.d.ts +5 -0
  124. package/dist/{src → esm}/actions/useActionBuilder.js +0 -1
  125. package/dist/esm/actions/useActionsBuilder.d.ts +5 -0
  126. package/dist/{src → esm}/actions/useActionsBuilder.js +0 -1
  127. package/dist/esm/actions/useBorrow.d.ts +5 -0
  128. package/dist/{src → esm}/actions/useBorrow.js +0 -1
  129. package/dist/esm/actions/usePermitsBuilder.d.ts +5 -0
  130. package/dist/{src → esm}/actions/usePermitsBuilder.js +0 -1
  131. package/dist/esm/actions/usePopulatePermit.d.ts +8 -0
  132. package/dist/{src/actions/useEarn.js → esm/actions/usePopulatePermit.js} +6 -5
  133. package/dist/esm/actions/useRepay.d.ts +5 -0
  134. package/dist/{src → esm}/actions/useRepay.js +0 -1
  135. package/dist/esm/actions/useSupply.d.ts +5 -0
  136. package/dist/{src → esm}/actions/useSupply.js +0 -1
  137. package/dist/esm/actions/useWithdraw.d.ts +5 -0
  138. package/dist/{src → esm}/actions/useWithdraw.js +0 -1
  139. package/dist/esm/actions.d.ts +8 -0
  140. package/dist/{src → esm}/actions.js +1 -2
  141. package/dist/esm/execution/usePopulateTransaction.d.ts +8 -0
  142. package/dist/esm/execution/usePopulateTransaction.js +16 -0
  143. package/dist/esm/execution/useSendTransaction.d.ts +7 -0
  144. package/dist/{src → esm}/execution/useSendTransaction.js +0 -1
  145. package/dist/esm/execution/useWaitForTransaction.d.ts +5 -0
  146. package/dist/esm/execution/useWaitForTransaction.js +14 -0
  147. package/dist/esm/execution.d.ts +3 -0
  148. package/dist/esm/execution.js +3 -0
  149. package/dist/esm/fetchers/useAccountBasics.d.ts +14 -0
  150. package/dist/{src → esm}/fetchers/useAccountBasics.js +1 -1
  151. package/dist/esm/fetchers/useAccountCollateralBalance.d.ts +16 -0
  152. package/dist/{src → esm}/fetchers/useAccountCollateralBalance.js +1 -1
  153. package/dist/esm/fetchers/useAccountLiquidatable.d.ts +12 -0
  154. package/dist/{src → esm}/fetchers/useAccountLiquidatable.js +1 -1
  155. package/dist/esm/fetchers/useAccountSupplyBalance.d.ts +14 -0
  156. package/dist/{src → esm}/fetchers/useAccountSupplyBalance.js +1 -1
  157. package/dist/esm/fetchers/useAssetInfo.d.ts +14 -0
  158. package/dist/{src → esm}/fetchers/useAssetInfo.js +3 -3
  159. package/dist/esm/fetchers/useAssetInfoByAddress.d.ts +14 -0
  160. package/dist/{src → esm}/fetchers/useAssetInfoByAddress.js +1 -1
  161. package/dist/esm/fetchers/useAssetSupport.d.ts +14 -0
  162. package/dist/{src → esm}/fetchers/useAssetSupport.js +3 -3
  163. package/dist/esm/fetchers/useBaseAssetReserves.d.ts +12 -0
  164. package/dist/{src → esm}/fetchers/useBaseAssetReserves.js +1 -1
  165. package/dist/esm/fetchers/useBaseTokenAddress.d.ts +12 -0
  166. package/dist/{src → esm}/fetchers/useBaseTokenAddress.js +1 -1
  167. package/dist/esm/fetchers/useBaseTokenPriceFeedAddress.d.ts +12 -0
  168. package/dist/{src → esm}/fetchers/useBaseTokenPriceFeedAddress.js +1 -1
  169. package/dist/esm/fetchers/useBorrowBalance.d.ts +14 -0
  170. package/dist/{src → esm}/fetchers/useBorrowBalance.js +1 -1
  171. package/dist/esm/fetchers/useBorrowKink.d.ts +12 -0
  172. package/dist/{src → esm}/fetchers/useBorrowKink.js +1 -1
  173. package/dist/esm/fetchers/useBorrowPerSecondInterestRateBase.d.ts +12 -0
  174. package/dist/{src → esm}/fetchers/useBorrowPerSecondInterestRateBase.js +1 -1
  175. package/dist/esm/fetchers/useBorrowPerSecondInterestRateSlopeHigh.d.ts +12 -0
  176. package/dist/{src → esm}/fetchers/useBorrowPerSecondInterestRateSlopeHigh.js +1 -1
  177. package/dist/esm/fetchers/useBorrowPerSecondInterestRateSlopeLow.d.ts +12 -0
  178. package/dist/{src → esm}/fetchers/useBorrowPerSecondInterestRateSlopeLow.js +1 -1
  179. package/dist/esm/fetchers/useBorrowRate.d.ts +15 -0
  180. package/dist/{src → esm}/fetchers/useBorrowRate.js +3 -2
  181. package/dist/esm/fetchers/useCollateralQuote.d.ts +16 -0
  182. package/dist/{src → esm}/fetchers/useCollateralQuote.js +1 -1
  183. package/dist/esm/fetchers/useCollateralReserves.d.ts +14 -0
  184. package/dist/{src → esm}/fetchers/useCollateralReserves.js +1 -1
  185. package/dist/esm/fetchers/useCollateralSupply.d.ts +14 -0
  186. package/dist/{src → esm}/fetchers/useCollateralSupply.js +1 -1
  187. package/dist/esm/fetchers/useCollateralsCount.d.ts +12 -0
  188. package/dist/{src → esm}/fetchers/useCollateralsCount.js +1 -1
  189. package/dist/esm/fetchers/useCometDecimals.d.ts +12 -0
  190. package/dist/{src → esm}/fetchers/useCometDecimals.js +1 -1
  191. package/dist/esm/fetchers/useFetchers.d.ts +41 -0
  192. package/dist/{src → esm}/fetchers/useFetchers.js +0 -1
  193. package/dist/esm/fetchers/useLiquidatorPoints.d.ts +14 -0
  194. package/dist/{src → esm}/fetchers/useLiquidatorPoints.js +1 -1
  195. package/dist/esm/fetchers/useManagerAllowed.d.ts +16 -0
  196. package/dist/{src → esm}/fetchers/useManagerAllowed.js +1 -1
  197. package/dist/esm/fetchers/useMarket.d.ts +16 -0
  198. package/dist/{src → esm}/fetchers/useMarket.js +10 -3
  199. package/dist/esm/fetchers/useMarketName.d.ts +12 -0
  200. package/dist/{src → esm}/fetchers/useMarketName.js +1 -1
  201. package/dist/esm/fetchers/useMarketSymbol.d.ts +12 -0
  202. package/dist/{src → esm}/fetchers/useMarketSymbol.js +1 -1
  203. package/dist/esm/fetchers/useMarketVersion.d.ts +12 -0
  204. package/dist/{src → esm}/fetchers/useMarketVersion.js +1 -1
  205. package/dist/esm/fetchers/useMinimalLoanAmount.d.ts +12 -0
  206. package/dist/{src → esm}/fetchers/useMinimalLoanAmount.js +1 -1
  207. package/dist/esm/fetchers/useSupplyKink.d.ts +12 -0
  208. package/dist/{src → esm}/fetchers/useSupplyKink.js +1 -1
  209. package/dist/esm/fetchers/useSupplyPerSecondInterestRateBase.d.ts +12 -0
  210. package/dist/{src → esm}/fetchers/useSupplyPerSecondInterestRateBase.js +1 -1
  211. package/dist/esm/fetchers/useSupplyPerSecondInterestRateSlopeHigh.d.ts +12 -0
  212. package/dist/{src → esm}/fetchers/useSupplyPerSecondInterestRateSlopeHigh.js +1 -1
  213. package/dist/esm/fetchers/useSupplyPerSecondInterestRateSlopeLow.d.ts +12 -0
  214. package/dist/{src → esm}/fetchers/useSupplyPerSecondInterestRateSlopeLow.js +1 -1
  215. package/dist/esm/fetchers/useSupplyRate.d.ts +14 -0
  216. package/dist/{src → esm}/fetchers/useSupplyRate.js +2 -2
  217. package/dist/esm/fetchers/useTotalBorrow.d.ts +12 -0
  218. package/dist/{src → esm}/fetchers/useTotalBorrow.js +1 -1
  219. package/dist/esm/fetchers/useTotalSupply.d.ts +12 -0
  220. package/dist/{src → esm}/fetchers/useTotalSupply.js +1 -1
  221. package/dist/esm/fetchers/useTotalsBasic.d.ts +12 -0
  222. package/dist/{src → esm}/fetchers/useTotalsBasic.js +1 -1
  223. package/dist/esm/fetchers/useUserNonce.d.ts +14 -0
  224. package/dist/{src → esm}/fetchers/useUserNonce.js +1 -1
  225. package/dist/esm/fetchers/useUtilization.d.ts +12 -0
  226. package/dist/{src → esm}/fetchers/useUtilization.js +1 -1
  227. package/dist/esm/fetchers.d.ts +39 -0
  228. package/dist/{src → esm}/fetchers.js +0 -7
  229. package/dist/esm/injection.d.ts +11 -0
  230. package/dist/{src → esm}/injection.js +0 -1
  231. package/dist/esm/useCompound.d.ts +11 -0
  232. package/dist/{src → esm}/useCompound.js +2 -3
  233. package/dist/esm/utils.d.ts +2 -0
  234. package/dist/{src → esm}/utils.js +0 -5
  235. package/dist/esm/validation/useValidation.d.ts +15 -0
  236. package/dist/{src → esm}/validation/useValidation.js +1 -1
  237. package/dist/esm/validation.d.ts +1 -0
  238. package/dist/{src → esm}/validation.js +0 -1
  239. package/package.json +28 -9
  240. package/dist/src/_main_.d.ts +0 -8
  241. package/dist/src/_main_.d.ts.map +0 -1
  242. package/dist/src/_main_.js +0 -8
  243. package/dist/src/_main_.js.map +0 -1
  244. package/dist/src/actions/useActionBuilder.d.ts.map +0 -1
  245. package/dist/src/actions/useActionBuilder.js.map +0 -1
  246. package/dist/src/actions/useActionsBuilder.d.ts.map +0 -1
  247. package/dist/src/actions/useActionsBuilder.js.map +0 -1
  248. package/dist/src/actions/useBorrow.d.ts.map +0 -1
  249. package/dist/src/actions/useBorrow.js.map +0 -1
  250. package/dist/src/actions/useEarn.d.ts +0 -6
  251. package/dist/src/actions/useEarn.d.ts.map +0 -1
  252. package/dist/src/actions/useEarn.js.map +0 -1
  253. package/dist/src/actions/usePermitsBuilder.d.ts.map +0 -1
  254. package/dist/src/actions/usePermitsBuilder.js.map +0 -1
  255. package/dist/src/actions/useRepay.d.ts.map +0 -1
  256. package/dist/src/actions/useRepay.js.map +0 -1
  257. package/dist/src/actions/useSupply.d.ts.map +0 -1
  258. package/dist/src/actions/useSupply.js.map +0 -1
  259. package/dist/src/actions/useWithdraw.d.ts.map +0 -1
  260. package/dist/src/actions/useWithdraw.js.map +0 -1
  261. package/dist/src/actions.d.ts.map +0 -1
  262. package/dist/src/actions.js.map +0 -1
  263. package/dist/src/execution/useSendTransaction.d.ts +0 -7
  264. package/dist/src/execution/useSendTransaction.d.ts.map +0 -1
  265. package/dist/src/execution/useSendTransaction.js.map +0 -1
  266. package/dist/src/execution.d.ts +0 -2
  267. package/dist/src/execution.d.ts.map +0 -1
  268. package/dist/src/execution.js +0 -2
  269. package/dist/src/execution.js.map +0 -1
  270. package/dist/src/fetchers/useAccountBasics.d.ts.map +0 -1
  271. package/dist/src/fetchers/useAccountBasics.js.map +0 -1
  272. package/dist/src/fetchers/useAccountCollateralBalance.d.ts.map +0 -1
  273. package/dist/src/fetchers/useAccountCollateralBalance.js.map +0 -1
  274. package/dist/src/fetchers/useAccountLiquidatable.d.ts.map +0 -1
  275. package/dist/src/fetchers/useAccountLiquidatable.js.map +0 -1
  276. package/dist/src/fetchers/useAccountSupplyBalance.d.ts.map +0 -1
  277. package/dist/src/fetchers/useAccountSupplyBalance.js.map +0 -1
  278. package/dist/src/fetchers/useAssetInfo.d.ts.map +0 -1
  279. package/dist/src/fetchers/useAssetInfo.js.map +0 -1
  280. package/dist/src/fetchers/useAssetInfoByAddress.d.ts.map +0 -1
  281. package/dist/src/fetchers/useAssetInfoByAddress.js.map +0 -1
  282. package/dist/src/fetchers/useAssetSupport.d.ts.map +0 -1
  283. package/dist/src/fetchers/useAssetSupport.js.map +0 -1
  284. package/dist/src/fetchers/useBaseAssetReserves.d.ts.map +0 -1
  285. package/dist/src/fetchers/useBaseAssetReserves.js.map +0 -1
  286. package/dist/src/fetchers/useBaseTokenAddress.d.ts.map +0 -1
  287. package/dist/src/fetchers/useBaseTokenAddress.js.map +0 -1
  288. package/dist/src/fetchers/useBaseTokenPriceFeedAddress.d.ts.map +0 -1
  289. package/dist/src/fetchers/useBaseTokenPriceFeedAddress.js.map +0 -1
  290. package/dist/src/fetchers/useBaseTrackingBorrowSpeed.d.ts +0 -13
  291. package/dist/src/fetchers/useBaseTrackingBorrowSpeed.d.ts.map +0 -1
  292. package/dist/src/fetchers/useBaseTrackingBorrowSpeed.js +0 -30
  293. package/dist/src/fetchers/useBaseTrackingBorrowSpeed.js.map +0 -1
  294. package/dist/src/fetchers/useBaseTrackingSupplySpeed.d.ts +0 -13
  295. package/dist/src/fetchers/useBaseTrackingSupplySpeed.d.ts.map +0 -1
  296. package/dist/src/fetchers/useBaseTrackingSupplySpeed.js +0 -30
  297. package/dist/src/fetchers/useBaseTrackingSupplySpeed.js.map +0 -1
  298. package/dist/src/fetchers/useBorrowBalance.d.ts.map +0 -1
  299. package/dist/src/fetchers/useBorrowBalance.js.map +0 -1
  300. package/dist/src/fetchers/useBorrowKink.d.ts.map +0 -1
  301. package/dist/src/fetchers/useBorrowKink.js.map +0 -1
  302. package/dist/src/fetchers/useBorrowPerSecondInterestRateBase.d.ts.map +0 -1
  303. package/dist/src/fetchers/useBorrowPerSecondInterestRateBase.js.map +0 -1
  304. package/dist/src/fetchers/useBorrowPerSecondInterestRateSlopeHigh.d.ts.map +0 -1
  305. package/dist/src/fetchers/useBorrowPerSecondInterestRateSlopeHigh.js.map +0 -1
  306. package/dist/src/fetchers/useBorrowPerSecondInterestRateSlopeLow.d.ts.map +0 -1
  307. package/dist/src/fetchers/useBorrowPerSecondInterestRateSlopeLow.js.map +0 -1
  308. package/dist/src/fetchers/useBorrowRate.d.ts.map +0 -1
  309. package/dist/src/fetchers/useBorrowRate.js.map +0 -1
  310. package/dist/src/fetchers/useCollateralQuote.d.ts.map +0 -1
  311. package/dist/src/fetchers/useCollateralQuote.js.map +0 -1
  312. package/dist/src/fetchers/useCollateralReserves.d.ts.map +0 -1
  313. package/dist/src/fetchers/useCollateralReserves.js.map +0 -1
  314. package/dist/src/fetchers/useCollateralSupply.d.ts.map +0 -1
  315. package/dist/src/fetchers/useCollateralSupply.js.map +0 -1
  316. package/dist/src/fetchers/useCollateralsCount.d.ts.map +0 -1
  317. package/dist/src/fetchers/useCollateralsCount.js.map +0 -1
  318. package/dist/src/fetchers/useCometDecimals.d.ts.map +0 -1
  319. package/dist/src/fetchers/useCometDecimals.js.map +0 -1
  320. package/dist/src/fetchers/useFetchers.d.ts.map +0 -1
  321. package/dist/src/fetchers/useFetchers.js.map +0 -1
  322. package/dist/src/fetchers/useLiquidatorPoints.d.ts.map +0 -1
  323. package/dist/src/fetchers/useLiquidatorPoints.js.map +0 -1
  324. package/dist/src/fetchers/useManagerAllowed.d.ts.map +0 -1
  325. package/dist/src/fetchers/useManagerAllowed.js.map +0 -1
  326. package/dist/src/fetchers/useMarket.d.ts.map +0 -1
  327. package/dist/src/fetchers/useMarket.js.map +0 -1
  328. package/dist/src/fetchers/useMarketName.d.ts.map +0 -1
  329. package/dist/src/fetchers/useMarketName.js.map +0 -1
  330. package/dist/src/fetchers/useMarketSymbol.d.ts.map +0 -1
  331. package/dist/src/fetchers/useMarketSymbol.js.map +0 -1
  332. package/dist/src/fetchers/useMarketVersion.d.ts.map +0 -1
  333. package/dist/src/fetchers/useMarketVersion.js.map +0 -1
  334. package/dist/src/fetchers/useMinimalLoanAmount.d.ts.map +0 -1
  335. package/dist/src/fetchers/useMinimalLoanAmount.js.map +0 -1
  336. package/dist/src/fetchers/usePosition.d.ts +0 -17
  337. package/dist/src/fetchers/usePosition.d.ts.map +0 -1
  338. package/dist/src/fetchers/usePosition.js +0 -32
  339. package/dist/src/fetchers/usePosition.js.map +0 -1
  340. package/dist/src/fetchers/useRewardAccrued.d.ts +0 -15
  341. package/dist/src/fetchers/useRewardAccrued.d.ts.map +0 -1
  342. package/dist/src/fetchers/useRewardAccrued.js +0 -34
  343. package/dist/src/fetchers/useRewardAccrued.js.map +0 -1
  344. package/dist/src/fetchers/useRewardOwed.d.ts +0 -17
  345. package/dist/src/fetchers/useRewardOwed.d.ts.map +0 -1
  346. package/dist/src/fetchers/useRewardOwed.js +0 -38
  347. package/dist/src/fetchers/useRewardOwed.js.map +0 -1
  348. package/dist/src/fetchers/useSupplyKink.d.ts.map +0 -1
  349. package/dist/src/fetchers/useSupplyKink.js.map +0 -1
  350. package/dist/src/fetchers/useSupplyPerSecondInterestRateBase.d.ts.map +0 -1
  351. package/dist/src/fetchers/useSupplyPerSecondInterestRateBase.js.map +0 -1
  352. package/dist/src/fetchers/useSupplyPerSecondInterestRateSlopeHigh.d.ts.map +0 -1
  353. package/dist/src/fetchers/useSupplyPerSecondInterestRateSlopeHigh.js.map +0 -1
  354. package/dist/src/fetchers/useSupplyPerSecondInterestRateSlopeLow.d.ts.map +0 -1
  355. package/dist/src/fetchers/useSupplyPerSecondInterestRateSlopeLow.js.map +0 -1
  356. package/dist/src/fetchers/useSupplyRate.d.ts.map +0 -1
  357. package/dist/src/fetchers/useSupplyRate.js.map +0 -1
  358. package/dist/src/fetchers/useTotalBorrow.d.ts.map +0 -1
  359. package/dist/src/fetchers/useTotalBorrow.js.map +0 -1
  360. package/dist/src/fetchers/useTotalSupply.d.ts.map +0 -1
  361. package/dist/src/fetchers/useTotalSupply.js.map +0 -1
  362. package/dist/src/fetchers/useTotalsBasic.d.ts.map +0 -1
  363. package/dist/src/fetchers/useTotalsBasic.js.map +0 -1
  364. package/dist/src/fetchers/useTrackingIndexScale.d.ts +0 -13
  365. package/dist/src/fetchers/useTrackingIndexScale.d.ts.map +0 -1
  366. package/dist/src/fetchers/useTrackingIndexScale.js +0 -30
  367. package/dist/src/fetchers/useTrackingIndexScale.js.map +0 -1
  368. package/dist/src/fetchers/useUserNonce.d.ts.map +0 -1
  369. package/dist/src/fetchers/useUserNonce.js.map +0 -1
  370. package/dist/src/fetchers/useUtilization.d.ts.map +0 -1
  371. package/dist/src/fetchers/useUtilization.js.map +0 -1
  372. package/dist/src/fetchers.d.ts.map +0 -1
  373. package/dist/src/fetchers.js.map +0 -1
  374. package/dist/src/injection.d.ts.map +0 -1
  375. package/dist/src/injection.js.map +0 -1
  376. package/dist/src/useCompound.d.ts.map +0 -1
  377. package/dist/src/useCompound.js.map +0 -1
  378. package/dist/src/utils.d.ts.map +0 -1
  379. package/dist/src/utils.js.map +0 -1
  380. package/dist/src/validation/useValidation.d.ts.map +0 -1
  381. package/dist/src/validation/useValidation.js.map +0 -1
  382. package/dist/src/validation.d.ts.map +0 -1
  383. package/dist/src/validation.js.map +0 -1
@@ -0,0 +1,14 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getCollateralReserves } from "@stas-b-woof/compound";
3
+ export type ToCollateralReservesQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ asset?: Optional<Address>;
6
+ block?: Optional<Block>;
7
+ };
8
+ export declare function toCollateralReservesQueryKey(args: ToCollateralReservesQueryKeyArgs): readonly ["useCollateralReserves", "market" | `0x${string}`, `0x${string}` | "asset", string];
9
+ export type UseCollateralReservesArgs = {
10
+ market?: Optional<Address>;
11
+ asset?: Optional<Address>;
12
+ block?: Optional<Block>;
13
+ };
14
+ export declare function useCollateralReserves(args?: Optional<UseCollateralReservesArgs>): UseQueryResult<Awaited<ReturnType<typeof getCollateralReserves>>>;
@@ -4,6 +4,7 @@ import { asserts, getCollateralReserves, } from "@stas-b-woof/compound";
4
4
  export function toCollateralReservesQueryKey(args) {
5
5
  const { market, asset, block } = args;
6
6
  return [
7
+ 'useCollateralReserves',
7
8
  `${market ?? 'market'}`,
8
9
  `${asset ?? 'asset'}`,
9
10
  `${block ?? 'block'}`,
@@ -31,4 +32,3 @@ export function useCollateralReserves(args) {
31
32
  enabled: market !== undefined && asset !== undefined,
32
33
  });
33
34
  }
34
- //# sourceMappingURL=useCollateralReserves.js.map
@@ -0,0 +1,14 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getCollateralSupply } from "@stas-b-woof/compound";
3
+ export type ToCollateralSupplyQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ asset?: Optional<Address>;
6
+ block?: Optional<Block>;
7
+ };
8
+ export declare function toCollateralSupplyQueryKey(args: ToCollateralSupplyQueryKeyArgs): readonly ["useCollateralSupply", "market" | `0x${string}`, `0x${string}` | "asset", string];
9
+ export type UseCollateralSupplyArgs = {
10
+ market?: Optional<Address>;
11
+ asset?: Optional<Address>;
12
+ block?: Optional<Block>;
13
+ };
14
+ export declare function useCollateralSupply(args?: Optional<UseCollateralSupplyArgs>): UseQueryResult<Awaited<ReturnType<typeof getCollateralSupply>>>;
@@ -4,6 +4,7 @@ import { asserts, getCollateralSupply, } from "@stas-b-woof/compound";
4
4
  export function toCollateralSupplyQueryKey(args) {
5
5
  const { market, asset, block } = args;
6
6
  return [
7
+ 'useCollateralSupply',
7
8
  `${market ?? 'market'}`,
8
9
  `${asset ?? 'asset'}`,
9
10
  `${block ?? 'block'}`,
@@ -31,4 +32,3 @@ export function useCollateralSupply(args) {
31
32
  enabled: market !== undefined && asset !== undefined,
32
33
  });
33
34
  }
34
- //# sourceMappingURL=useCollateralSupply.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getCollateralsNumber } from "@stas-b-woof/compound";
3
+ export type ToCollateralsCountQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toCollateralsCountQueryKey(args: ToCollateralsCountQueryKeyArgs): readonly ["useCollateralsCount", "market" | `0x${string}`, string];
8
+ export type UseCollateralsCountArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useCollateralsCount(args?: Optional<UseCollateralsCountArgs>): UseQueryResult<Awaited<ReturnType<typeof getCollateralsNumber>>>;
@@ -4,6 +4,7 @@ import { asserts, getCollateralsNumber, } from "@stas-b-woof/compound";
4
4
  export function toCollateralsCountQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useCollateralsCount',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useCollateralsCount(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useCollateralsCount.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getCometDecimals } from "@stas-b-woof/compound";
3
+ export type ToCometDecimalsQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toCometDecimalsQueryKey(args: ToCometDecimalsQueryKeyArgs): readonly ["useCometDecimals", "market" | `0x${string}`, string];
8
+ export type UseCometDecimalsArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useCometDecimals(args?: Optional<UseCometDecimalsArgs>): UseQueryResult<Awaited<ReturnType<typeof getCometDecimals>>>;
@@ -4,6 +4,7 @@ import { asserts, getCometDecimals, } from "@stas-b-woof/compound";
4
4
  export function toCometDecimalsQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useCometDecimals',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useCometDecimals(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useCometDecimals.js.map
@@ -0,0 +1,41 @@
1
+ import { type MakeCometFetcherArgs } from "@stas-b-woof/compound";
2
+ export type UseFetchersArgs = Omit<MakeCometFetcherArgs, 'client'>;
3
+ export declare function useFetchers(args: UseFetchersArgs): {
4
+ readonly getAccountSupplyBalance: (args: Omit<import("@stas-b-woof/compound").GetAccountSupplyBalanceArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").Amount>;
5
+ readonly getMinimalLoanAmount: (args?: Omit<import("@stas-b-woof/compound").GetMinimalLoanAmountArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").Amount>;
6
+ readonly getBaseTokenAddress: (args?: Omit<import("@stas-b-woof/compound").GetBaseTokenAddressArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<`0x${string}`>;
7
+ readonly getBaseTokenPriceFeedAddress: (args?: Omit<import("@stas-b-woof/compound").GetBaseTokenPriceFeedAddressArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<`0x${string}`>;
8
+ readonly getBorrowBalanceOf: (args: Omit<import("@stas-b-woof/compound").GetBorrowBalanceOfArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").Amount>;
9
+ readonly getBorrowKink: (args?: Omit<import("@stas-b-woof/compound").GetBorrowKinkArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").BigDecimal>;
10
+ readonly getBorrowPerSecondInterestRateBase: (args?: Omit<import("@stas-b-woof/compound").GetBorrowPerSecondInterestRateBaseArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").BigDecimal>;
11
+ readonly getBorrowPerSecondInterestRateSlopeHigh: (args?: Omit<import("@stas-b-woof/compound").GetBorrowPerSecondInterestRateSlopeHighArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").BigDecimal>;
12
+ readonly getBorrowPerSecondInterestRateSlopeLow: (args?: Omit<import("@stas-b-woof/compound").GetBorrowPerSecondInterestRateSlopeLowArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").BigDecimal>;
13
+ readonly getCometDecimals: (args?: Omit<import("@stas-b-woof/compound").GetCometDecimalsArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<bigint>;
14
+ readonly getAssetInfoByIndex: (args: Omit<import("@stas-b-woof/compound").GetAssetInfoArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").GetAssetInfoResult>;
15
+ readonly getAssetInfoByAddress: (args: Omit<import("@stas-b-woof/compound").GetAssetInfoByAddressArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").GetAssetInfoByAddressResult>;
16
+ readonly getBorrowRate: (args: Omit<import("@stas-b-woof/compound").GetBorrowRateArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").BigDecimal>;
17
+ readonly getCollateralReserves: (args: Omit<import("@stas-b-woof/compound").GetCollateralReservesArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").Amount>;
18
+ readonly getBaseAssetReserves: (args?: Omit<import("@stas-b-woof/compound").GetBaseAssetReservesArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").Amount>;
19
+ readonly getSupplyRate: (args: Omit<import("@stas-b-woof/compound").GetSupplyRateArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").BigDecimal>;
20
+ readonly getUtilization: (args?: Omit<import("@stas-b-woof/compound").GetUtilizationArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").BigDecimal>;
21
+ readonly checkIsManagerAllowed: (args: Omit<import("@stas-b-woof/compound").CheckIsManagerAllowedArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<boolean>;
22
+ readonly getCollateralsNumber: (args?: Omit<import("@stas-b-woof/compound").GetCollateralsNumberArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<number>;
23
+ readonly getSupplyKink: (args?: Omit<import("@stas-b-woof/compound").GetSupplyKinkArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").BigDecimal>;
24
+ readonly getSupplyPerSecondInterestRateBase: (args?: Omit<import("@stas-b-woof/compound").GetSupplyPerSecondInterestRateBaseArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").BigDecimal>;
25
+ readonly getSupplyPerSecondInterestRateSlopeHigh: (args?: Omit<import("@stas-b-woof/compound").GetSupplyPerSecondInterestRateSlopeHighArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").BigDecimal>;
26
+ readonly getSupplyPerSecondInterestRateSlopeLow: (args?: Omit<import("@stas-b-woof/compound").GetSupplyPerSecondInterestRateSlopeLowArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").BigDecimal>;
27
+ readonly getTotalBorrow: (args?: Omit<import("@stas-b-woof/compound").GetTotalBorrowArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").Amount>;
28
+ readonly getTotalSupply: (args?: Omit<import("@stas-b-woof/compound").GetTotalSupplyArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").Amount>;
29
+ readonly getCollateralSupply: (args: Omit<import("@stas-b-woof/compound").GetCollateralSupplyArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").Amount>;
30
+ readonly getAccountBasics: (args: Omit<import("@stas-b-woof/compound").GetAccountBasicsArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").GetAccountBasicsResult>;
31
+ readonly getAccountCollateralBalance: (args: Omit<import("@stas-b-woof/compound").GetAccountCollateralBalanceArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").Amount>;
32
+ readonly getUserNonce: (args: Omit<import("@stas-b-woof/compound").GetUserNonceArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<bigint>;
33
+ readonly getMarketName: (args?: Omit<import("@stas-b-woof/compound").GetMarketNameArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<string>;
34
+ readonly getMarketSymbol: (args?: Omit<import("@stas-b-woof/compound").GetMarketSymbolArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<string>;
35
+ readonly getTotalsBasic: (args?: Omit<import("@stas-b-woof/compound").GetTotalsBasicArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<import("@stas-b-woof/compound").GetTotalsBasicResult>;
36
+ readonly checkIsAccountLiquidatable: (args: Omit<import("@stas-b-woof/compound").CheckIsLiquidatableArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<boolean>;
37
+ readonly getCollateralQuote: (args: Omit<import("@stas-b-woof/compound").GetCollateralQuoteArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").BigDecimal>;
38
+ readonly getLiquidatorPoints: (args: Omit<import("@stas-b-woof/compound").GetLiquidatorPointsArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").GetLiquidatorPointsResult>;
39
+ readonly getMarketVersion: (args?: Omit<import("@stas-b-woof/compound").GetMarketVersionArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs> | undefined) => Promise<string>;
40
+ readonly checkIsAssetSupported: (args: Omit<import("@stas-b-woof/compound").CheckAssetSupportArgs, keyof import("@stas-b-woof/compound").BaseFetcherArgs>) => Promise<import("@stas-b-woof/compound").CheckAssetSupportResult>;
41
+ };
@@ -10,4 +10,3 @@ export function useFetchers(args) {
10
10
  });
11
11
  }, []);
12
12
  }
13
- //# sourceMappingURL=useFetchers.js.map
@@ -0,0 +1,14 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getLiquidatorPoints } from "@stas-b-woof/compound";
3
+ export type ToLiquidatorPointsQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ liquidator?: Optional<Address>;
6
+ block?: Optional<Block>;
7
+ };
8
+ export declare function toLiquidatorPointsQueryKey(args: ToLiquidatorPointsQueryKeyArgs): readonly ["useLiquidatorPoints", "market" | `0x${string}`, `0x${string}` | "liquidator", string];
9
+ export type UseLiquidatorPointsArgs = {
10
+ market?: Optional<Address>;
11
+ liquidator?: Optional<Address>;
12
+ block?: Optional<Block>;
13
+ };
14
+ export declare function useLiquidatorPoints(args?: Optional<UseLiquidatorPointsArgs>): UseQueryResult<Awaited<ReturnType<typeof getLiquidatorPoints>>>;
@@ -4,6 +4,7 @@ import { asserts, getLiquidatorPoints, } from "@stas-b-woof/compound";
4
4
  export function toLiquidatorPointsQueryKey(args) {
5
5
  const { market, liquidator, block } = args;
6
6
  return [
7
+ 'useLiquidatorPoints',
7
8
  `${market ?? 'market'}`,
8
9
  `${liquidator ?? 'liquidator'}`,
9
10
  `${block ?? 'block'}`,
@@ -31,4 +32,3 @@ export function useLiquidatorPoints(args) {
31
32
  enabled: market !== undefined && liquidator !== undefined,
32
33
  });
33
34
  }
34
- //# sourceMappingURL=useLiquidatorPoints.js.map
@@ -0,0 +1,16 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, checkIsManagerAllowed } from "@stas-b-woof/compound";
3
+ export type ToManagerAllowedQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ owner?: Optional<Address>;
6
+ manager?: Optional<Address>;
7
+ block?: Optional<Block>;
8
+ };
9
+ export declare function toManagerAllowedQueryKey(args: ToManagerAllowedQueryKeyArgs): readonly ["useManagerAllowed", "market" | `0x${string}`, `0x${string}` | "owner", `0x${string}` | "manager", string];
10
+ export type UseManagerAllowedArgs = {
11
+ market?: Optional<Address>;
12
+ owner?: Optional<Address>;
13
+ manager?: Optional<Address>;
14
+ block?: Optional<Block>;
15
+ };
16
+ export declare function useManagerAllowed(args?: Optional<UseManagerAllowedArgs>): UseQueryResult<Awaited<ReturnType<typeof checkIsManagerAllowed>>>;
@@ -4,6 +4,7 @@ import { asserts, checkIsManagerAllowed, } from "@stas-b-woof/compound";
4
4
  export function toManagerAllowedQueryKey(args) {
5
5
  const { market, owner, manager, block } = args;
6
6
  return [
7
+ 'useManagerAllowed',
7
8
  `${market ?? 'market'}`,
8
9
  `${owner ?? 'owner'}`,
9
10
  `${manager ?? 'manager'}`,
@@ -35,4 +36,3 @@ export function useManagerAllowed(args) {
35
36
  enabled: market !== undefined && owner !== undefined && manager !== undefined,
36
37
  });
37
38
  }
38
- //# sourceMappingURL=useManagerAllowed.js.map
@@ -0,0 +1,16 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type ChainId, type Optional, type Block, fetchMarket } from "@stas-b-woof/compound";
3
+ export type ToMarketQueryKeyArgs = {
4
+ chainId?: Optional<ChainId>;
5
+ market?: Optional<Address>;
6
+ account?: Optional<Address>;
7
+ block?: Optional<Block>;
8
+ };
9
+ export declare function toMarketQueryKey(args: ToMarketQueryKeyArgs): readonly ["useMarket", `${number}` | "chain" | `${bigint}`, "market" | `0x${string}`, `0x${string}` | "account", string];
10
+ export type UseMarketArgs = {
11
+ chainId?: Optional<ChainId>;
12
+ market?: Optional<Address>;
13
+ account?: Optional<Address>;
14
+ block?: Optional<Block>;
15
+ };
16
+ export declare function useMarket(args?: Optional<UseMarketArgs>): UseQueryResult<Awaited<ReturnType<typeof fetchMarket>>>;
@@ -2,15 +2,22 @@ import { useCompound } from "../useCompound.js";
2
2
  import { useQuery } from "@tanstack/react-query";
3
3
  import { fetchMarket, asserts, } from "@stas-b-woof/compound";
4
4
  export function toMarketQueryKey(args) {
5
- return [`${args.chainId ?? 'chain'}`, args.market ?? 'market', `${args.block ?? 'block'}`];
5
+ return [
6
+ 'useMarket',
7
+ `${args.chainId ?? 'chain'}`,
8
+ `${args.market ?? 'market'}`,
9
+ `${args.account ?? 'account'}`,
10
+ `${args.block ?? 'block'}`,
11
+ ];
6
12
  }
7
13
  export function useMarket(args) {
8
- const { chainId, market, block, } = args ?? {};
14
+ const { chainId, market, account, block, } = args ?? {};
9
15
  const { client } = useCompound();
10
16
  return useQuery({
11
17
  queryKey: toMarketQueryKey({
12
18
  chainId: chainId,
13
19
  market: market,
20
+ account: account,
14
21
  block: block,
15
22
  }),
16
23
  queryFn: () => {
@@ -20,10 +27,10 @@ export function useMarket(args) {
20
27
  client: client,
21
28
  chainId: chainId,
22
29
  market: market,
30
+ account: account,
23
31
  block: block,
24
32
  });
25
33
  },
26
34
  enabled: chainId !== undefined && market !== undefined,
27
35
  });
28
36
  }
29
- //# sourceMappingURL=useMarket.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getMarketName } from "@stas-b-woof/compound";
3
+ export type ToMarketNameQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toMarketNameQueryKey(args: ToMarketNameQueryKeyArgs): readonly ["useMarketName", "market" | `0x${string}`, string];
8
+ export type UseMarketNameArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useMarketName(args?: Optional<UseMarketNameArgs>): UseQueryResult<Awaited<ReturnType<typeof getMarketName>>>;
@@ -4,6 +4,7 @@ import { asserts, getMarketName, } from "@stas-b-woof/compound";
4
4
  export function toMarketNameQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useMarketName',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useMarketName(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useMarketName.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getMarketSymbol } from "@stas-b-woof/compound";
3
+ export type ToMarketSymbolQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toMarketSymbolQueryKey(args: ToMarketSymbolQueryKeyArgs): readonly ["useMarketSymbol", "market" | `0x${string}`, string];
8
+ export type UseMarketSymbolArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useMarketSymbol(args?: Optional<UseMarketSymbolArgs>): UseQueryResult<Awaited<ReturnType<typeof getMarketSymbol>>>;
@@ -4,6 +4,7 @@ import { asserts, getMarketSymbol, } from "@stas-b-woof/compound";
4
4
  export function toMarketSymbolQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useMarketSymbol',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useMarketSymbol(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useMarketSymbol.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getMarketVersion } from "@stas-b-woof/compound";
3
+ export type ToMarketVersionQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toMarketVersionQueryKey(args: ToMarketVersionQueryKeyArgs): readonly ["useMarketVersion", "market" | `0x${string}`, string];
8
+ export type UseMarketVersionArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useMarketVersion(args?: Optional<UseMarketVersionArgs>): UseQueryResult<Awaited<ReturnType<typeof getMarketVersion>>>;
@@ -4,6 +4,7 @@ import { asserts, getMarketVersion, } from "@stas-b-woof/compound";
4
4
  export function toMarketVersionQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useMarketVersion',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useMarketVersion(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useMarketVersion.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getMinimalLoanAmount } from "@stas-b-woof/compound";
3
+ export type ToMinimalLoanAmountQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toMinimalLoanAmountQueryKey(args: ToMinimalLoanAmountQueryKeyArgs): readonly ["useMinimalLoanAmount", "market" | `0x${string}`, string];
8
+ export type UseMinimalLoanAmountArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useMinimalLoanAmount(args?: Optional<UseMinimalLoanAmountArgs>): UseQueryResult<Awaited<ReturnType<typeof getMinimalLoanAmount>>>;
@@ -4,6 +4,7 @@ import { asserts, getMinimalLoanAmount, } from "@stas-b-woof/compound";
4
4
  export function toMinimalLoanAmountQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useMinimalLoanAmount',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useMinimalLoanAmount(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useMinimalLoanAmount.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getSupplyKink } from "@stas-b-woof/compound";
3
+ export type ToSupplyKinkQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toSupplyKinkQueryKey(args: ToSupplyKinkQueryKeyArgs): readonly ["useSupplyKink", "market" | `0x${string}`, string];
8
+ export type UseSupplyKinkArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useSupplyKink(args?: Optional<UseSupplyKinkArgs>): UseQueryResult<Awaited<ReturnType<typeof getSupplyKink>>>;
@@ -4,6 +4,7 @@ import { asserts, getSupplyKink, } from "@stas-b-woof/compound";
4
4
  export function toSupplyKinkQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useSupplyKink',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useSupplyKink(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useSupplyKink.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getSupplyPerSecondInterestRateBase } from "@stas-b-woof/compound";
3
+ export type ToSupplyPerSecondInterestRateBaseQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toSupplyPerSecondInterestRateBaseQueryKey(args: ToSupplyPerSecondInterestRateBaseQueryKeyArgs): readonly ["useSupplyPerSecondInterestRateBase", "market" | `0x${string}`, string];
8
+ export type UseSupplyPerSecondInterestRateBaseArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useSupplyPerSecondInterestRateBase(args?: Optional<UseSupplyPerSecondInterestRateBaseArgs>): UseQueryResult<Awaited<ReturnType<typeof getSupplyPerSecondInterestRateBase>>>;
@@ -4,6 +4,7 @@ import { asserts, getSupplyPerSecondInterestRateBase, } from "@stas-b-woof/compo
4
4
  export function toSupplyPerSecondInterestRateBaseQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useSupplyPerSecondInterestRateBase',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useSupplyPerSecondInterestRateBase(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useSupplyPerSecondInterestRateBase.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getSupplyPerSecondInterestRateSlopeHigh } from "@stas-b-woof/compound";
3
+ export type ToSupplyPerSecondInterestRateSlopeHighQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toSupplyPerSecondInterestRateSlopeHighQueryKey(args: ToSupplyPerSecondInterestRateSlopeHighQueryKeyArgs): readonly ["useSupplyPerSecondInterestRateSlopeHigh", "market" | `0x${string}`, string];
8
+ export type UseSupplyPerSecondInterestRateSlopeHighArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useSupplyPerSecondInterestRateSlopeHigh(args?: Optional<UseSupplyPerSecondInterestRateSlopeHighArgs>): UseQueryResult<Awaited<ReturnType<typeof getSupplyPerSecondInterestRateSlopeHigh>>>;
@@ -4,6 +4,7 @@ import { asserts, getSupplyPerSecondInterestRateSlopeHigh, } from "@stas-b-woof/
4
4
  export function toSupplyPerSecondInterestRateSlopeHighQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useSupplyPerSecondInterestRateSlopeHigh',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useSupplyPerSecondInterestRateSlopeHigh(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useSupplyPerSecondInterestRateSlopeHigh.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getSupplyPerSecondInterestRateSlopeLow } from "@stas-b-woof/compound";
3
+ export type ToSupplyPerSecondInterestRateSlopeLowQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toSupplyPerSecondInterestRateSlopeLowQueryKey(args: ToSupplyPerSecondInterestRateSlopeLowQueryKeyArgs): readonly ["useSupplyPerSecondInterestRateSlopeLow", "market" | `0x${string}`, string];
8
+ export type UseSupplyPerSecondInterestRateSlopeLowArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useSupplyPerSecondInterestRateSlopeLow(args?: Optional<UseSupplyPerSecondInterestRateSlopeLowArgs>): UseQueryResult<Awaited<ReturnType<typeof getSupplyPerSecondInterestRateSlopeLow>>>;
@@ -4,6 +4,7 @@ import { asserts, getSupplyPerSecondInterestRateSlopeLow, } from "@stas-b-woof/c
4
4
  export function toSupplyPerSecondInterestRateSlopeLowQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useSupplyPerSecondInterestRateSlopeLow',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useSupplyPerSecondInterestRateSlopeLow(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useSupplyPerSecondInterestRateSlopeLow.js.map
@@ -0,0 +1,14 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getSupplyRate, BigDecimal } from "@stas-b-woof/compound";
3
+ export type ToSupplyRateQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ utilization?: Optional<BigDecimal>;
6
+ block?: Optional<Block>;
7
+ };
8
+ export declare function toSupplyRateQueryKey(args: ToSupplyRateQueryKeyArgs): readonly ["useSupplyRate", "market" | `0x${string}`, string, string];
9
+ export type UseSupplyRateArgs = {
10
+ market?: Optional<Address>;
11
+ utilization?: Optional<BigDecimal>;
12
+ block?: Optional<Block>;
13
+ };
14
+ export declare function useSupplyRate(args?: Optional<UseSupplyRateArgs>): UseQueryResult<Awaited<ReturnType<typeof getSupplyRate>>>;
@@ -1,9 +1,10 @@
1
1
  import { useCompound } from "../useCompound.js";
2
2
  import { useQuery } from "@tanstack/react-query";
3
- import { asserts, getSupplyRate, } from "@stas-b-woof/compound";
3
+ import { asserts, getSupplyRate, BigDecimal, } from "@stas-b-woof/compound";
4
4
  export function toSupplyRateQueryKey(args) {
5
5
  const { market, utilization, block } = args;
6
6
  return [
7
+ 'useSupplyRate',
7
8
  `${market ?? 'market'}`,
8
9
  `${utilization ?? 'utilization'}`,
9
10
  `${block ?? 'block'}`,
@@ -31,4 +32,3 @@ export function useSupplyRate(args) {
31
32
  enabled: market !== undefined && utilization !== undefined,
32
33
  });
33
34
  }
34
- //# sourceMappingURL=useSupplyRate.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getTotalBorrow } from "@stas-b-woof/compound";
3
+ export type ToTotalBorrowQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toTotalBorrowQueryKey(args: ToTotalBorrowQueryKeyArgs): readonly ["useTotalBorrow", "market" | `0x${string}`, string];
8
+ export type UseTotalBorrowArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useTotalBorrow(args?: Optional<UseTotalBorrowArgs>): UseQueryResult<Awaited<ReturnType<typeof getTotalBorrow>>>;
@@ -4,6 +4,7 @@ import { asserts, getTotalBorrow, } from "@stas-b-woof/compound";
4
4
  export function toTotalBorrowQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useTotalBorrow',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useTotalBorrow(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useTotalBorrow.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getTotalSupply } from "@stas-b-woof/compound";
3
+ export type ToTotalSupplyQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toTotalSupplyQueryKey(args: ToTotalSupplyQueryKeyArgs): readonly ["useTotalSupply", "market" | `0x${string}`, string];
8
+ export type UseTotalSupplyArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useTotalSupply(args?: Optional<UseTotalSupplyArgs>): UseQueryResult<Awaited<ReturnType<typeof getTotalSupply>>>;
@@ -4,6 +4,7 @@ import { asserts, getTotalSupply, } from "@stas-b-woof/compound";
4
4
  export function toTotalSupplyQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useTotalSupply',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useTotalSupply(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useTotalSupply.js.map
@@ -0,0 +1,12 @@
1
+ import { type UseQueryResult } from "@tanstack/react-query";
2
+ import { type Address, type Optional, type Block, getTotalsBasic } from "@stas-b-woof/compound";
3
+ export type ToTotalsBasicQueryKeyArgs = {
4
+ market?: Optional<Address>;
5
+ block?: Optional<Block>;
6
+ };
7
+ export declare function toTotalsBasicQueryKey(args: ToTotalsBasicQueryKeyArgs): readonly ["useTotalsBasic", "market" | `0x${string}`, string];
8
+ export type UseTotalsBasicArgs = {
9
+ market?: Optional<Address>;
10
+ block?: Optional<Block>;
11
+ };
12
+ export declare function useTotalsBasic(args?: Optional<UseTotalsBasicArgs>): UseQueryResult<Awaited<ReturnType<typeof getTotalsBasic>>>;
@@ -4,6 +4,7 @@ import { asserts, getTotalsBasic, } from "@stas-b-woof/compound";
4
4
  export function toTotalsBasicQueryKey(args) {
5
5
  const { market, block } = args;
6
6
  return [
7
+ 'useTotalsBasic',
7
8
  `${market ?? 'market'}`,
8
9
  `${block ?? 'block'}`,
9
10
  ];
@@ -27,4 +28,3 @@ export function useTotalsBasic(args) {
27
28
  enabled: market !== undefined,
28
29
  });
29
30
  }
30
- //# sourceMappingURL=useTotalsBasic.js.map