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

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 +3 -5
  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,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toMarketQueryKey = toMarketQueryKey;
4
+ exports.useMarket = useMarket;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toMarketQueryKey(args) {
9
+ return [
10
+ 'useMarket',
11
+ `${args.chainId ?? 'chain'}`,
12
+ `${args.market ?? 'market'}`,
13
+ `${args.account ?? 'account'}`,
14
+ `${args.block ?? 'block'}`,
15
+ ];
16
+ }
17
+ function useMarket(args) {
18
+ const { chainId, market, account, block, } = args ?? {};
19
+ const { client } = (0, useCompound_js_1.useCompound)();
20
+ return (0, react_query_1.useQuery)({
21
+ queryKey: toMarketQueryKey({
22
+ chainId: chainId,
23
+ market: market,
24
+ account: account,
25
+ block: block,
26
+ }),
27
+ queryFn: () => {
28
+ (0, compound_1.asserts)(chainId, 'ChainId must be defined');
29
+ (0, compound_1.asserts)(market, 'Market address must be defined');
30
+ return (0, compound_1.fetchMarket)({
31
+ client: client,
32
+ chainId: chainId,
33
+ market: market,
34
+ account: account,
35
+ block: block,
36
+ });
37
+ },
38
+ enabled: chainId !== undefined && market !== undefined,
39
+ });
40
+ }
@@ -4,10 +4,9 @@ export type ToMarketNameQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toMarketNameQueryKey(args: ToMarketNameQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toMarketNameQueryKey(args: ToMarketNameQueryKeyArgs): readonly ["useMarketName", "market" | `0x${string}`, string];
8
8
  export type UseMarketNameArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useMarketName(args?: Optional<UseMarketNameArgs>): UseQueryResult<Awaited<ReturnType<typeof getMarketName>>>;
13
- //# sourceMappingURL=useMarketName.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toMarketNameQueryKey = toMarketNameQueryKey;
4
+ exports.useMarketName = useMarketName;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toMarketNameQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useMarketName',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useMarketName(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toMarketNameQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getMarketName)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -4,10 +4,9 @@ export type ToMarketSymbolQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toMarketSymbolQueryKey(args: ToMarketSymbolQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toMarketSymbolQueryKey(args: ToMarketSymbolQueryKeyArgs): readonly ["useMarketSymbol", "market" | `0x${string}`, string];
8
8
  export type UseMarketSymbolArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useMarketSymbol(args?: Optional<UseMarketSymbolArgs>): UseQueryResult<Awaited<ReturnType<typeof getMarketSymbol>>>;
13
- //# sourceMappingURL=useMarketSymbol.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toMarketSymbolQueryKey = toMarketSymbolQueryKey;
4
+ exports.useMarketSymbol = useMarketSymbol;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toMarketSymbolQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useMarketSymbol',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useMarketSymbol(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toMarketSymbolQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getMarketSymbol)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -4,10 +4,9 @@ export type ToMarketVersionQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toMarketVersionQueryKey(args: ToMarketVersionQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toMarketVersionQueryKey(args: ToMarketVersionQueryKeyArgs): readonly ["useMarketVersion", "market" | `0x${string}`, string];
8
8
  export type UseMarketVersionArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useMarketVersion(args?: Optional<UseMarketVersionArgs>): UseQueryResult<Awaited<ReturnType<typeof getMarketVersion>>>;
13
- //# sourceMappingURL=useMarketVersion.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toMarketVersionQueryKey = toMarketVersionQueryKey;
4
+ exports.useMarketVersion = useMarketVersion;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toMarketVersionQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useMarketVersion',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useMarketVersion(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toMarketVersionQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getMarketVersion)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -4,10 +4,9 @@ export type ToMinimalLoanAmountQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toMinimalLoanAmountQueryKey(args: ToMinimalLoanAmountQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toMinimalLoanAmountQueryKey(args: ToMinimalLoanAmountQueryKeyArgs): readonly ["useMinimalLoanAmount", "market" | `0x${string}`, string];
8
8
  export type UseMinimalLoanAmountArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useMinimalLoanAmount(args?: Optional<UseMinimalLoanAmountArgs>): UseQueryResult<Awaited<ReturnType<typeof getMinimalLoanAmount>>>;
13
- //# sourceMappingURL=useMinimalLoanAmount.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toMinimalLoanAmountQueryKey = toMinimalLoanAmountQueryKey;
4
+ exports.useMinimalLoanAmount = useMinimalLoanAmount;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toMinimalLoanAmountQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useMinimalLoanAmount',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useMinimalLoanAmount(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toMinimalLoanAmountQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getMinimalLoanAmount)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -4,10 +4,9 @@ export type ToSupplyKinkQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toSupplyKinkQueryKey(args: ToSupplyKinkQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toSupplyKinkQueryKey(args: ToSupplyKinkQueryKeyArgs): readonly ["useSupplyKink", "market" | `0x${string}`, string];
8
8
  export type UseSupplyKinkArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useSupplyKink(args?: Optional<UseSupplyKinkArgs>): UseQueryResult<Awaited<ReturnType<typeof getSupplyKink>>>;
13
- //# sourceMappingURL=useSupplyKink.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toSupplyKinkQueryKey = toSupplyKinkQueryKey;
4
+ exports.useSupplyKink = useSupplyKink;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toSupplyKinkQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useSupplyKink',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useSupplyKink(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toSupplyKinkQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getSupplyKink)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -4,10 +4,9 @@ export type ToSupplyPerSecondInterestRateBaseQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toSupplyPerSecondInterestRateBaseQueryKey(args: ToSupplyPerSecondInterestRateBaseQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toSupplyPerSecondInterestRateBaseQueryKey(args: ToSupplyPerSecondInterestRateBaseQueryKeyArgs): readonly ["useSupplyPerSecondInterestRateBase", "market" | `0x${string}`, string];
8
8
  export type UseSupplyPerSecondInterestRateBaseArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useSupplyPerSecondInterestRateBase(args?: Optional<UseSupplyPerSecondInterestRateBaseArgs>): UseQueryResult<Awaited<ReturnType<typeof getSupplyPerSecondInterestRateBase>>>;
13
- //# sourceMappingURL=useSupplyPerSecondInterestRateBase.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toSupplyPerSecondInterestRateBaseQueryKey = toSupplyPerSecondInterestRateBaseQueryKey;
4
+ exports.useSupplyPerSecondInterestRateBase = useSupplyPerSecondInterestRateBase;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toSupplyPerSecondInterestRateBaseQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useSupplyPerSecondInterestRateBase',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useSupplyPerSecondInterestRateBase(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toSupplyPerSecondInterestRateBaseQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getSupplyPerSecondInterestRateBase)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -4,10 +4,9 @@ export type ToSupplyPerSecondInterestRateSlopeHighQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toSupplyPerSecondInterestRateSlopeHighQueryKey(args: ToSupplyPerSecondInterestRateSlopeHighQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toSupplyPerSecondInterestRateSlopeHighQueryKey(args: ToSupplyPerSecondInterestRateSlopeHighQueryKeyArgs): readonly ["useSupplyPerSecondInterestRateSlopeHigh", "market" | `0x${string}`, string];
8
8
  export type UseSupplyPerSecondInterestRateSlopeHighArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useSupplyPerSecondInterestRateSlopeHigh(args?: Optional<UseSupplyPerSecondInterestRateSlopeHighArgs>): UseQueryResult<Awaited<ReturnType<typeof getSupplyPerSecondInterestRateSlopeHigh>>>;
13
- //# sourceMappingURL=useSupplyPerSecondInterestRateSlopeHigh.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toSupplyPerSecondInterestRateSlopeHighQueryKey = toSupplyPerSecondInterestRateSlopeHighQueryKey;
4
+ exports.useSupplyPerSecondInterestRateSlopeHigh = useSupplyPerSecondInterestRateSlopeHigh;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toSupplyPerSecondInterestRateSlopeHighQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useSupplyPerSecondInterestRateSlopeHigh',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useSupplyPerSecondInterestRateSlopeHigh(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toSupplyPerSecondInterestRateSlopeHighQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getSupplyPerSecondInterestRateSlopeHigh)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -4,10 +4,9 @@ export type ToSupplyPerSecondInterestRateSlopeLowQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toSupplyPerSecondInterestRateSlopeLowQueryKey(args: ToSupplyPerSecondInterestRateSlopeLowQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toSupplyPerSecondInterestRateSlopeLowQueryKey(args: ToSupplyPerSecondInterestRateSlopeLowQueryKeyArgs): readonly ["useSupplyPerSecondInterestRateSlopeLow", "market" | `0x${string}`, string];
8
8
  export type UseSupplyPerSecondInterestRateSlopeLowArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useSupplyPerSecondInterestRateSlopeLow(args?: Optional<UseSupplyPerSecondInterestRateSlopeLowArgs>): UseQueryResult<Awaited<ReturnType<typeof getSupplyPerSecondInterestRateSlopeLow>>>;
13
- //# sourceMappingURL=useSupplyPerSecondInterestRateSlopeLow.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toSupplyPerSecondInterestRateSlopeLowQueryKey = toSupplyPerSecondInterestRateSlopeLowQueryKey;
4
+ exports.useSupplyPerSecondInterestRateSlopeLow = useSupplyPerSecondInterestRateSlopeLow;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toSupplyPerSecondInterestRateSlopeLowQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useSupplyPerSecondInterestRateSlopeLow',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useSupplyPerSecondInterestRateSlopeLow(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toSupplyPerSecondInterestRateSlopeLowQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getSupplyPerSecondInterestRateSlopeLow)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -1,15 +1,14 @@
1
1
  import { type UseQueryResult } from "@tanstack/react-query";
2
- import { type Address, type Optional, type Block, getSupplyRate } from "@stas-b-woof/compound";
2
+ import { type Address, type Optional, type Block, getSupplyRate, BigDecimal } from "@stas-b-woof/compound";
3
3
  export type ToSupplyRateQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
- utilization?: Optional<bigint>;
5
+ utilization?: Optional<BigDecimal>;
6
6
  block?: Optional<Block>;
7
7
  };
8
- export declare function toSupplyRateQueryKey(args: ToSupplyRateQueryKeyArgs): readonly ["market" | `0x${string}`, `${bigint}` | "utilization", import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
8
+ export declare function toSupplyRateQueryKey(args: ToSupplyRateQueryKeyArgs): readonly ["useSupplyRate", "market" | `0x${string}`, string, string];
9
9
  export type UseSupplyRateArgs = {
10
10
  market?: Optional<Address>;
11
- utilization?: Optional<bigint>;
11
+ utilization?: Optional<BigDecimal>;
12
12
  block?: Optional<Block>;
13
13
  };
14
14
  export declare function useSupplyRate(args?: Optional<UseSupplyRateArgs>): UseQueryResult<Awaited<ReturnType<typeof getSupplyRate>>>;
15
- //# sourceMappingURL=useSupplyRate.d.ts.map
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toSupplyRateQueryKey = toSupplyRateQueryKey;
4
+ exports.useSupplyRate = useSupplyRate;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toSupplyRateQueryKey(args) {
9
+ const { market, utilization, block } = args;
10
+ return [
11
+ 'useSupplyRate',
12
+ `${market ?? 'market'}`,
13
+ `${utilization ?? 'utilization'}`,
14
+ `${block ?? 'block'}`,
15
+ ];
16
+ }
17
+ function useSupplyRate(args) {
18
+ const { market, utilization, block } = args ?? {};
19
+ const { client } = (0, useCompound_js_1.useCompound)();
20
+ return (0, react_query_1.useQuery)({
21
+ queryKey: toSupplyRateQueryKey({
22
+ market: market,
23
+ utilization: utilization,
24
+ ...(block !== undefined ? { block } : {}),
25
+ }),
26
+ queryFn: () => {
27
+ (0, compound_1.asserts)(market, 'Market address must be defined');
28
+ (0, compound_1.asserts)(utilization, 'Utilization must be defined');
29
+ return (0, compound_1.getSupplyRate)({
30
+ client: client,
31
+ market: market,
32
+ utilization: utilization,
33
+ ...(block !== undefined ? { block } : {}),
34
+ });
35
+ },
36
+ enabled: market !== undefined && utilization !== undefined,
37
+ });
38
+ }
@@ -4,10 +4,9 @@ export type ToTotalBorrowQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toTotalBorrowQueryKey(args: ToTotalBorrowQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toTotalBorrowQueryKey(args: ToTotalBorrowQueryKeyArgs): readonly ["useTotalBorrow", "market" | `0x${string}`, string];
8
8
  export type UseTotalBorrowArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useTotalBorrow(args?: Optional<UseTotalBorrowArgs>): UseQueryResult<Awaited<ReturnType<typeof getTotalBorrow>>>;
13
- //# sourceMappingURL=useTotalBorrow.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toTotalBorrowQueryKey = toTotalBorrowQueryKey;
4
+ exports.useTotalBorrow = useTotalBorrow;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toTotalBorrowQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useTotalBorrow',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useTotalBorrow(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toTotalBorrowQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getTotalBorrow)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -4,10 +4,9 @@ export type ToTotalSupplyQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toTotalSupplyQueryKey(args: ToTotalSupplyQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toTotalSupplyQueryKey(args: ToTotalSupplyQueryKeyArgs): readonly ["useTotalSupply", "market" | `0x${string}`, string];
8
8
  export type UseTotalSupplyArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useTotalSupply(args?: Optional<UseTotalSupplyArgs>): UseQueryResult<Awaited<ReturnType<typeof getTotalSupply>>>;
13
- //# sourceMappingURL=useTotalSupply.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toTotalSupplyQueryKey = toTotalSupplyQueryKey;
4
+ exports.useTotalSupply = useTotalSupply;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toTotalSupplyQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useTotalSupply',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useTotalSupply(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toTotalSupplyQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getTotalSupply)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -4,10 +4,9 @@ export type ToTotalsBasicQueryKeyArgs = {
4
4
  market?: Optional<Address>;
5
5
  block?: Optional<Block>;
6
6
  };
7
- export declare function toTotalsBasicQueryKey(args: ToTotalsBasicQueryKeyArgs): readonly ["market" | `0x${string}`, import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
7
+ export declare function toTotalsBasicQueryKey(args: ToTotalsBasicQueryKeyArgs): readonly ["useTotalsBasic", "market" | `0x${string}`, string];
8
8
  export type UseTotalsBasicArgs = {
9
9
  market?: Optional<Address>;
10
10
  block?: Optional<Block>;
11
11
  };
12
12
  export declare function useTotalsBasic(args?: Optional<UseTotalsBasicArgs>): UseQueryResult<Awaited<ReturnType<typeof getTotalsBasic>>>;
13
- //# sourceMappingURL=useTotalsBasic.d.ts.map
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toTotalsBasicQueryKey = toTotalsBasicQueryKey;
4
+ exports.useTotalsBasic = useTotalsBasic;
5
+ const useCompound_js_1 = require("../useCompound.js");
6
+ const react_query_1 = require("@tanstack/react-query");
7
+ const compound_1 = require("@stas-b-woof/compound");
8
+ function toTotalsBasicQueryKey(args) {
9
+ const { market, block } = args;
10
+ return [
11
+ 'useTotalsBasic',
12
+ `${market ?? 'market'}`,
13
+ `${block ?? 'block'}`,
14
+ ];
15
+ }
16
+ function useTotalsBasic(args) {
17
+ const { market, block } = args ?? {};
18
+ const { client } = (0, useCompound_js_1.useCompound)();
19
+ return (0, react_query_1.useQuery)({
20
+ queryKey: toTotalsBasicQueryKey({
21
+ market: market,
22
+ ...(block !== undefined ? { block } : {}),
23
+ }),
24
+ queryFn: () => {
25
+ (0, compound_1.asserts)(market, 'Market address must be defined');
26
+ return (0, compound_1.getTotalsBasic)({
27
+ client: client,
28
+ market: market,
29
+ ...(block !== undefined ? { block } : {}),
30
+ });
31
+ },
32
+ enabled: market !== undefined,
33
+ });
34
+ }
@@ -5,11 +5,10 @@ export type ToUserNonceQueryKeyArgs = {
5
5
  account?: Optional<Address>;
6
6
  block?: Optional<Block>;
7
7
  };
8
- export declare function toUserNonceQueryKey(args: ToUserNonceQueryKeyArgs): readonly ["market" | `0x${string}`, `0x${string}` | "account", import("@stas-b-woof/compound").BlockTag | "block" | `${bigint}`];
8
+ export declare function toUserNonceQueryKey(args: ToUserNonceQueryKeyArgs): readonly ["useUserNonce", "market" | `0x${string}`, `0x${string}` | "account", string];
9
9
  export type UseUserNonceArgs = {
10
10
  market?: Optional<Address>;
11
11
  account?: Optional<Address>;
12
12
  block?: Optional<Block>;
13
13
  };
14
14
  export declare function useUserNonce(args?: Optional<UseUserNonceArgs>): UseQueryResult<Awaited<ReturnType<typeof getUserNonce>>>;
15
- //# sourceMappingURL=useUserNonce.d.ts.map