@huma-finance/widgets 0.0.73-beta.922 → 0.0.73-beta.939

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 (265) hide show
  1. package/.env.example +3 -3
  2. package/{.eslintrc.js → .eslintrc.cjs} +1 -2
  3. package/.prettierrc.json +16 -0
  4. package/API.md +1 -1
  5. package/dist/index.js +220452 -11016
  6. package/dist/src/components/ApolloWrapper.d.ts +4 -0
  7. package/dist/src/components/ApproveAllowanceModal.d.ts +13 -0
  8. package/dist/src/components/ApproveAllowanceModalV2.d.ts +14 -0
  9. package/dist/src/components/BottomButton.d.ts +9 -0
  10. package/dist/src/components/ChainSupportProvider.d.ts +2 -0
  11. package/dist/src/components/ChooseAmountModal.d.ts +23 -0
  12. package/dist/src/components/ConfirmTransferModal.d.ts +19 -0
  13. package/dist/src/components/CreditLine/approve/1-ApproveAllowance.d.ts +9 -0
  14. package/dist/src/components/CreditLine/approve/2-Success.d.ts +8 -0
  15. package/dist/src/components/CreditLine/approve/index.d.ts +20 -0
  16. package/dist/src/components/CreditLine/autoPaybackV2/1-ApproveAllowance.d.ts +8 -0
  17. package/dist/src/components/CreditLine/autoPaybackV2/2-Success.d.ts +6 -0
  18. package/dist/src/components/CreditLine/autoPaybackV2/index.d.ts +15 -0
  19. package/dist/src/components/CreditLine/borrow/1-Evaluation.d.ts +8 -0
  20. package/dist/src/components/CreditLine/borrow/2-ChooseAmount.d.ts +8 -0
  21. package/dist/src/components/CreditLine/borrow/3-ApproveAllowance.d.ts +7 -0
  22. package/dist/src/components/CreditLine/borrow/4-Transfer.d.ts +7 -0
  23. package/dist/src/components/CreditLine/borrow/5-Success.d.ts +10 -0
  24. package/dist/src/components/CreditLine/borrow/6-Notifications.d.ts +6 -0
  25. package/dist/src/components/CreditLine/borrow/index.d.ts +19 -0
  26. package/dist/src/components/CreditLine/borrowV2/1-ChooseAmount.d.ts +9 -0
  27. package/dist/src/components/CreditLine/borrowV2/2-ApproveAllowance.d.ts +8 -0
  28. package/dist/src/components/CreditLine/borrowV2/3-Transfer.d.ts +7 -0
  29. package/dist/src/components/CreditLine/borrowV2/4-Success.d.ts +10 -0
  30. package/dist/src/components/CreditLine/borrowV2/5-Notifications.d.ts +6 -0
  31. package/dist/src/components/CreditLine/borrowV2/index.d.ts +15 -0
  32. package/dist/src/components/CreditLine/payment/1-ChooseAmount.d.ts +9 -0
  33. package/dist/src/components/CreditLine/payment/2-ApproveAllowance.d.ts +7 -0
  34. package/dist/src/components/CreditLine/payment/3-Transfer.d.ts +7 -0
  35. package/dist/src/components/CreditLine/payment/4-Success.d.ts +8 -0
  36. package/dist/src/components/CreditLine/payment/index.d.ts +17 -0
  37. package/dist/src/components/CreditLine/paymentV2/1-ChooseAmount.d.ts +11 -0
  38. package/dist/src/components/CreditLine/paymentV2/2-ApproveAllowance.d.ts +8 -0
  39. package/dist/src/components/CreditLine/paymentV2/3-Transfer.d.ts +8 -0
  40. package/dist/src/components/CreditLine/paymentV2/4-Success.d.ts +8 -0
  41. package/dist/src/components/CreditLine/paymentV2/index.d.ts +15 -0
  42. package/dist/src/components/CreditLine/solanaBorrow/1-ChooseAmount.d.ts +9 -0
  43. package/dist/src/components/CreditLine/solanaBorrow/2-Transfer.d.ts +7 -0
  44. package/dist/src/components/CreditLine/solanaBorrow/3-Done.d.ts +10 -0
  45. package/dist/src/components/CreditLine/solanaBorrow/index.d.ts +17 -0
  46. package/dist/src/components/CreditLine/solanaPayment/1-ChooseAmount.d.ts +9 -0
  47. package/dist/src/components/CreditLine/solanaPayment/2-Transfer.d.ts +7 -0
  48. package/dist/src/components/CreditLine/solanaPayment/3-Done.d.ts +8 -0
  49. package/dist/src/components/CreditLine/solanaPayment/index.d.ts +14 -0
  50. package/dist/src/components/CreditLine/supplyFLC/1-ApproveAllowance.d.ts +10 -0
  51. package/dist/src/components/CreditLine/supplyFLC/2-Transfer.d.ts +10 -0
  52. package/dist/src/components/CreditLine/supplyFLC/3-Success.d.ts +10 -0
  53. package/dist/src/components/CreditLine/supplyFLC/index.d.ts +15 -0
  54. package/dist/src/components/ErrorModal.d.ts +12 -0
  55. package/dist/src/components/HumaLoading.d.ts +7 -0
  56. package/dist/src/components/HumaSnackBar.d.ts +10 -0
  57. package/dist/src/components/InputAmountModal.d.ts +18 -0
  58. package/dist/src/components/InvoiceFactoring/borrow/1-Evaluation.d.ts +8 -0
  59. package/dist/src/components/InvoiceFactoring/borrow/2-ChooseAmount.d.ts +8 -0
  60. package/dist/src/components/InvoiceFactoring/borrow/3-ConfirmTransfer.d.ts +2 -0
  61. package/dist/src/components/InvoiceFactoring/borrow/4-ApproveNFT.d.ts +8 -0
  62. package/dist/src/components/InvoiceFactoring/borrow/5-Transfer.d.ts +8 -0
  63. package/dist/src/components/InvoiceFactoring/borrow/6-Success.d.ts +6 -0
  64. package/dist/src/components/InvoiceFactoring/borrow/index.d.ts +20 -0
  65. package/dist/src/components/InvoiceFactoring/payment/1-ChooseAmount.d.ts +8 -0
  66. package/dist/src/components/InvoiceFactoring/payment/2-ApproveAllowance.d.ts +7 -0
  67. package/dist/src/components/InvoiceFactoring/payment/3-Transfer.d.ts +7 -0
  68. package/dist/src/components/InvoiceFactoring/payment/4-Success.d.ts +8 -0
  69. package/dist/src/components/InvoiceFactoring/payment/index.d.ts +17 -0
  70. package/dist/src/components/Lend/addRedemptionV2/1-ChooseTranche.d.ts +8 -0
  71. package/dist/src/components/Lend/addRedemptionV2/2-ChooseAmount.d.ts +10 -0
  72. package/dist/src/components/Lend/addRedemptionV2/3-Transfer.d.ts +10 -0
  73. package/dist/src/components/Lend/addRedemptionV2/4-Done.d.ts +6 -0
  74. package/dist/src/components/Lend/addRedemptionV2/index.d.ts +23 -0
  75. package/dist/src/components/Lend/cancelRedemptionV2 /1-Transfer.d.ts +10 -0
  76. package/dist/src/components/Lend/cancelRedemptionV2 /2-Done.d.ts +10 -0
  77. package/dist/src/components/Lend/cancelRedemptionV2 /index.d.ts +22 -0
  78. package/dist/src/components/Lend/components/ApproveLenderBase.d.ts +14 -0
  79. package/dist/src/components/Lend/components/PersonaEvaluation.d.ts +17 -0
  80. package/dist/src/components/Lend/components/SecuritizeEvaluation.d.ts +8 -0
  81. package/dist/src/components/Lend/solanaAddRedemption/1-ChooseTranche.d.ts +8 -0
  82. package/dist/src/components/Lend/solanaAddRedemption/2-ChooseAmount.d.ts +11 -0
  83. package/dist/src/components/Lend/solanaAddRedemption/3-Transfer.d.ts +8 -0
  84. package/dist/src/components/Lend/solanaAddRedemption/4-Done.d.ts +8 -0
  85. package/dist/src/components/Lend/solanaAddRedemption/index.d.ts +19 -0
  86. package/dist/src/components/Lend/solanaCancelRedemption/1-ChooseTranche.d.ts +8 -0
  87. package/dist/src/components/Lend/solanaCancelRedemption/2-Transfer.d.ts +11 -0
  88. package/dist/src/components/Lend/solanaCancelRedemption/3-Done.d.ts +11 -0
  89. package/dist/src/components/Lend/solanaCancelRedemption/index.d.ts +16 -0
  90. package/dist/src/components/Lend/solanaEnableAutoRedemption/1-ApproveAllowance.d.ts +7 -0
  91. package/dist/src/components/Lend/solanaEnableAutoRedemption/2-Transfer.d.ts +9 -0
  92. package/dist/src/components/Lend/solanaEnableAutoRedemption/3-Success.d.ts +10 -0
  93. package/dist/src/components/Lend/solanaEnableAutoRedemption/index.d.ts +18 -0
  94. package/dist/src/components/Lend/solanaSupply/1-Evaluation.d.ts +12 -0
  95. package/dist/src/components/Lend/solanaSupply/2-ApproveLender.d.ts +10 -0
  96. package/dist/src/components/Lend/solanaSupply/3-ChooseTranche.d.ts +9 -0
  97. package/dist/src/components/Lend/solanaSupply/4-ChooseAmount.d.ts +13 -0
  98. package/dist/src/components/Lend/solanaSupply/5-ApproveAllowance.d.ts +7 -0
  99. package/dist/src/components/Lend/solanaSupply/6-Transfer.d.ts +11 -0
  100. package/dist/src/components/Lend/solanaSupply/7-Success.d.ts +12 -0
  101. package/dist/src/components/Lend/solanaSupply/8-PointsEarned.d.ts +11 -0
  102. package/dist/src/components/Lend/solanaSupply/index.d.ts +24 -0
  103. package/dist/src/components/Lend/solanaWithdraw/1-ConfirmTransfer.d.ts +9 -0
  104. package/dist/src/components/Lend/solanaWithdraw/2-Transfer.d.ts +9 -0
  105. package/dist/src/components/Lend/solanaWithdraw/3-Done.d.ts +10 -0
  106. package/dist/src/components/Lend/solanaWithdraw/index.d.ts +25 -0
  107. package/dist/src/components/Lend/stellarSupply/1-Evaluation.d.ts +4 -0
  108. package/dist/src/components/Lend/stellarSupply/2-ChooseTranche.d.ts +9 -0
  109. package/dist/src/components/Lend/stellarSupply/3-ChooseAmount.d.ts +12 -0
  110. package/dist/src/components/Lend/stellarSupply/4-Transfer.d.ts +8 -0
  111. package/dist/src/components/Lend/stellarSupply/5-Success.d.ts +10 -0
  112. package/dist/src/components/Lend/stellarSupply/index.d.ts +22 -0
  113. package/dist/src/components/Lend/supply/1-Evaluation/EvaluationEA.d.ts +8 -0
  114. package/dist/src/components/Lend/supply/1-Evaluation/EvaluationKYC.d.ts +8 -0
  115. package/dist/src/components/Lend/supply/1-Evaluation/index.d.ts +9 -0
  116. package/dist/src/components/Lend/supply/2-ChooseAmount.d.ts +11 -0
  117. package/dist/src/components/Lend/supply/3-ApproveAllowance.d.ts +7 -0
  118. package/dist/src/components/Lend/supply/4-Transfer.d.ts +7 -0
  119. package/dist/src/components/Lend/supply/5-Success.d.ts +9 -0
  120. package/dist/src/components/Lend/supply/6-Notifications.d.ts +6 -0
  121. package/dist/src/components/Lend/supply/index.d.ts +17 -0
  122. package/dist/src/components/Lend/supplyV2/1-ChooseTranche.d.ts +9 -0
  123. package/dist/src/components/Lend/supplyV2/2-Evaluation.d.ts +12 -0
  124. package/dist/src/components/Lend/supplyV2/3-ApproveLender.d.ts +10 -0
  125. package/dist/src/components/Lend/supplyV2/4-ChooseAmount.d.ts +14 -0
  126. package/dist/src/components/Lend/supplyV2/5-ApproveAllowance.d.ts +7 -0
  127. package/dist/src/components/Lend/supplyV2/6-Transfer.d.ts +11 -0
  128. package/dist/src/components/Lend/supplyV2/7-Success.d.ts +13 -0
  129. package/dist/src/components/Lend/supplyV2/8-Notifications.d.ts +8 -0
  130. package/dist/src/components/Lend/supplyV2/index.d.ts +23 -0
  131. package/dist/src/components/Lend/withdraw/1-CheckWithdrawble.d.ts +8 -0
  132. package/dist/src/components/Lend/withdraw/2-ChooseAmount.d.ts +10 -0
  133. package/dist/src/components/Lend/withdraw/3-Transfer.d.ts +7 -0
  134. package/dist/src/components/Lend/withdraw/4-Success.d.ts +8 -0
  135. package/dist/src/components/Lend/withdraw/index.d.ts +17 -0
  136. package/dist/src/components/Lend/withdrawV2/1-ConfirmTransfer.d.ts +11 -0
  137. package/dist/src/components/Lend/withdrawV2/2-Transfer.d.ts +9 -0
  138. package/dist/src/components/Lend/withdrawV2/3-Done.d.ts +10 -0
  139. package/dist/src/components/Lend/withdrawV2/index.d.ts +17 -0
  140. package/dist/src/components/LoadingModal.d.ts +9 -0
  141. package/dist/src/components/Notifi/NotifiContextWrapper.d.ts +7 -0
  142. package/dist/src/components/Notifi/NotifiSubscriptionModal.d.ts +7 -0
  143. package/dist/src/components/NumericFormatCustom.d.ts +14 -0
  144. package/dist/src/components/PointsEarned.d.ts +10 -0
  145. package/dist/src/components/ReceivableBackedCreditLine/borrow/1-ChooseAmount.d.ts +10 -0
  146. package/dist/src/components/ReceivableBackedCreditLine/borrow/2-ApproveAllowance.d.ts +8 -0
  147. package/dist/src/components/ReceivableBackedCreditLine/borrow/3-ApproveReceivable.d.ts +8 -0
  148. package/dist/src/components/ReceivableBackedCreditLine/borrow/4-Transfer.d.ts +8 -0
  149. package/dist/src/components/ReceivableBackedCreditLine/borrow/5-Success.d.ts +10 -0
  150. package/dist/src/components/ReceivableBackedCreditLine/borrow/6-Notifications.d.ts +6 -0
  151. package/dist/src/components/ReceivableBackedCreditLine/borrow/index.d.ts +17 -0
  152. package/dist/src/components/ReceivableBackedCreditLine/payment/1-ChoosePaymentType.d.ts +8 -0
  153. package/dist/src/components/ReceivableBackedCreditLine/payment/2-ChooseAmount.d.ts +12 -0
  154. package/dist/src/components/ReceivableBackedCreditLine/payment/3-ApproveAllowance.d.ts +10 -0
  155. package/dist/src/components/ReceivableBackedCreditLine/payment/4-CreateReceivable.d.ts +9 -0
  156. package/dist/src/components/ReceivableBackedCreditLine/payment/5-ApproveReceivable.d.ts +8 -0
  157. package/dist/src/components/ReceivableBackedCreditLine/payment/6-Transfer.d.ts +14 -0
  158. package/dist/src/components/ReceivableBackedCreditLine/payment/7-Success.d.ts +12 -0
  159. package/dist/src/components/ReceivableBackedCreditLine/payment/index.d.ts +21 -0
  160. package/dist/src/components/SignIn.d.ts +6 -0
  161. package/dist/src/components/SolanaErrorModal.d.ts +13 -0
  162. package/dist/src/components/SolanaTxDoneModal.d.ts +12 -0
  163. package/dist/src/components/SolanaTxSendModal.d.ts +12 -0
  164. package/dist/src/components/SolanaViewOnExplorer.d.ts +8 -0
  165. package/dist/src/components/StellarTxDoneModal.d.ts +12 -0
  166. package/dist/src/components/StellarTxSendModal.d.ts +8 -0
  167. package/dist/src/components/StellarViewOnExplorer.d.ts +8 -0
  168. package/dist/src/components/StreamFactoring/borrow/1-Evaluation.d.ts +9 -0
  169. package/dist/src/components/StreamFactoring/borrow/2-ChooseAmount.d.ts +8 -0
  170. package/dist/src/components/StreamFactoring/borrow/3-ConfirmTransfer.d.ts +2 -0
  171. package/dist/src/components/StreamFactoring/borrow/4-ApproveAllowance.d.ts +7 -0
  172. package/dist/src/components/StreamFactoring/borrow/5-Permit.d.ts +10 -0
  173. package/dist/src/components/StreamFactoring/borrow/6-Transfer.d.ts +7 -0
  174. package/dist/src/components/StreamFactoring/borrow/7-Success.d.ts +6 -0
  175. package/dist/src/components/StreamFactoring/borrow/index.d.ts +13 -0
  176. package/dist/src/components/StreamFactoring/payment/ChooseAmount.d.ts +8 -0
  177. package/dist/src/components/StreamFactoring/payment/Success.d.ts +8 -0
  178. package/dist/src/components/StreamFactoring/payment/Transfer.d.ts +7 -0
  179. package/dist/src/components/StreamFactoring/payment/index.d.ts +10 -0
  180. package/dist/src/components/SuperfluidFactoring/index.d.ts +12 -0
  181. package/dist/src/components/TxDoneModal.d.ts +9 -0
  182. package/dist/src/components/TxSendModal.d.ts +13 -0
  183. package/dist/src/components/TxSendModalV2.d.ts +13 -0
  184. package/dist/src/components/ViewOnExplorer.d.ts +6 -0
  185. package/dist/src/components/WidgetWrapper.d.ts +11 -0
  186. package/dist/src/components/WrapperModal.d.ts +8 -0
  187. package/dist/src/components/buttons/TableActionButton.d.ts +8 -0
  188. package/dist/src/components/buttons/index.d.ts +1 -0
  189. package/dist/src/components/humaModal/HumaModal.d.ts +13 -0
  190. package/dist/src/components/humaModal/HumaModalHeader.d.ts +12 -0
  191. package/dist/src/components/humaModal/index.d.ts +2 -0
  192. package/dist/src/components/icons/index.d.ts +23 -0
  193. package/dist/src/components/images/index.d.ts +3 -0
  194. package/dist/src/cosmos/CreditLineBorrow.fixture.d.ts +2 -0
  195. package/dist/src/cosmos/CreditLinePayment.fixture.d.ts +2 -0
  196. package/dist/src/cosmos/InvoiceFactoringBorrow.fixture.d.ts +2 -0
  197. package/dist/src/cosmos/InvoiceFactoringPayment.fixture.d.ts +2 -0
  198. package/dist/src/cosmos/LendSupply.fixture.d.ts +2 -0
  199. package/dist/src/cosmos/LendWithdraw.fixture.d.ts +2 -0
  200. package/dist/src/cosmos/SDKTesting.fixture.d.ts +2 -0
  201. package/dist/src/cosmos/SuperfluidFactoringBorrow.fixture.d.ts +2 -0
  202. package/dist/src/cosmos/WalletWrapper.d.ts +3 -0
  203. package/dist/src/cosmos/utils/index.d.ts +18 -0
  204. package/dist/src/hooks/useEA.d.ts +8 -0
  205. package/dist/src/hooks/useElementDimensions.d.ts +5 -0
  206. package/dist/src/hooks/useNotifi.d.ts +10 -0
  207. package/dist/src/hooks/useRedux.d.ts +6 -0
  208. package/dist/src/index.d.ts +385 -0
  209. package/dist/src/reportWebVitals.d.ts +3 -0
  210. package/dist/src/setupTests.d.ts +0 -0
  211. package/dist/src/store/index.d.ts +10 -0
  212. package/dist/src/store/widgets.reducers.d.ts +56 -0
  213. package/dist/src/store/widgets.selectors.d.ts +2 -0
  214. package/dist/src/store/widgets.store.d.ts +59 -0
  215. package/dist/src/theme/breakpoints.d.ts +5 -0
  216. package/dist/src/theme/components.d.ts +2 -0
  217. package/dist/src/theme/coreThemeConstants.d.ts +18 -0
  218. package/dist/src/theme/cssMixins.d.ts +20 -0
  219. package/dist/src/theme/hooks/useGetSizes.d.ts +12 -0
  220. package/dist/src/theme/index.d.ts +2 -0
  221. package/dist/src/theme/palette.d.ts +53 -0
  222. package/dist/src/theme/shape.d.ts +2 -0
  223. package/dist/src/theme/theme.types.d.ts +71 -0
  224. package/dist/src/theme/typography.d.ts +2 -0
  225. package/dist/vite.config.d.ts +2 -0
  226. package/package.json +21 -34
  227. package/src/components/Lend/components/ApproveLenderBase.tsx +6 -3
  228. package/src/components/Lend/components/PersonaEvaluation.tsx +5 -2
  229. package/src/components/Lend/components/SecuritizeEvaluation.tsx +5 -2
  230. package/src/components/Lend/solanaSupply/6-Transfer.tsx +1 -1
  231. package/src/components/Lend/solanaSupply/8-PointsEarned.tsx +6 -2
  232. package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +5 -2
  233. package/src/components/Lend/supplyV2/2-Evaluation.tsx +2 -2
  234. package/src/components/Lend/supplyV2/3-ApproveLender.tsx +1 -1
  235. package/src/components/Lend/supplyV2/6-Transfer.tsx +1 -2
  236. package/src/components/Lend/supplyV2/index.tsx +1 -1
  237. package/src/components/Notifi/NotifiContextWrapper.tsx +3 -3
  238. package/src/components/PointsEarned.tsx +3 -3
  239. package/src/components/icons/index.tsx +21 -21
  240. package/src/cosmos/InvoiceFactoringBorrow.fixture.tsx +1 -1
  241. package/src/cosmos/SuperfluidFactoringBorrow.fixture.tsx +2 -4
  242. package/src/cosmos/utils/index.ts +4 -2
  243. package/src/hooks/useEA.ts +1 -2
  244. package/src/hooks/useNotifi.ts +1 -1
  245. package/src/index.tsx +4 -7
  246. package/tsconfig.json +20 -17
  247. package/vite-env.d.ts +2 -0
  248. package/vite.config.ts +48 -0
  249. package/webpack.cosmos.js +1 -1
  250. package/.prettierrc.js +0 -16
  251. package/babel.config.js +0 -15
  252. package/config-overrides.js +0 -9
  253. package/dist/cjs/index.cjs +0 -11779
  254. package/dist/cjs/index.cjs.map +0 -1
  255. package/dist/index.d.ts +0 -758
  256. package/dist/index.js.map +0 -1
  257. package/public/favicon.ico +0 -0
  258. package/public/index.html +0 -40
  259. package/public/logo192.png +0 -0
  260. package/public/logo512.png +0 -0
  261. package/public/manifest.json +0 -25
  262. package/public/robots.txt +0 -3
  263. package/rollup.config.js +0 -81
  264. package/src/cosmos/utils/env.ts +0 -6
  265. package/src/react-app-env.d.ts +0 -1
@@ -0,0 +1,4 @@
1
+ import { WCProps } from '../utilTypes';
2
+ export declare function ApolloWrapper({ uri, children, }: WCProps<{
3
+ uri: string;
4
+ }>): React.ReactElement | null;
@@ -0,0 +1,13 @@
1
+ import { BigNumberish } from 'ethers';
2
+ import { PoolInfoType } from '../../../huma-shared/src';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ poolInfo: PoolInfoType;
6
+ showAutoPayback?: boolean;
7
+ allowanceAmount?: BigNumberish;
8
+ spender?: string;
9
+ resetAfterSuccess?: boolean;
10
+ handleSuccess: () => void;
11
+ };
12
+ export declare function ApproveAllowanceModal({ poolInfo, showAutoPayback, allowanceAmount, spender, resetAfterSuccess, handleSuccess, }: Props): React.ReactElement | null;
13
+ export {};
@@ -0,0 +1,14 @@
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '../../../huma-shared/src';
2
+ import { BigNumberish } from 'ethers';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ poolInfo: PoolInfoV2;
6
+ poolUnderlyingToken: UnderlyingTokenInfo;
7
+ showAutoPayback?: boolean;
8
+ allowanceAmount?: BigNumberish;
9
+ spender?: string;
10
+ resetAfterSuccess?: boolean;
11
+ handleSuccess: () => void;
12
+ };
13
+ export declare function ApproveAllowanceModalV2({ poolInfo, poolUnderlyingToken, showAutoPayback, allowanceAmount, spender, resetAfterSuccess, handleSuccess, }: Props): React.ReactElement | null;
14
+ export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { WCProps } from '../utilTypes';
3
+ type Props = {
4
+ variant: 'contained' | 'outlined';
5
+ disabled?: boolean;
6
+ onClick?: () => void;
7
+ };
8
+ export declare function BottomButton({ variant, disabled, onClick, children, }: WCProps<Props>): React.ReactElement;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { WCProps } from '../utilTypes';
2
+ export declare function ChainSupportProvider({ children, }: WCProps): React.ReactElement | null;
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { IconType } from '../utilTypes';
3
+ type Props = {
4
+ title: string;
5
+ tokenIcon?: IconType;
6
+ description1?: string;
7
+ description2?: string;
8
+ currentAmount: number;
9
+ sliderMax: number;
10
+ tokenSymbol: string;
11
+ topLeft?: string;
12
+ topRight?: string;
13
+ downLeft?: string;
14
+ downRight?: string;
15
+ actionText?: string;
16
+ hideTerms?: boolean;
17
+ payoffAmount?: number;
18
+ type?: 'slider' | 'input';
19
+ handleChangeAmount: (amount: number) => void;
20
+ handleAction: () => void;
21
+ };
22
+ export declare function ChooseAmountModal({ title, tokenIcon, description1, description2, currentAmount, sliderMax, tokenSymbol, topLeft, topRight, downLeft, downRight, actionText, payoffAmount, hideTerms, type, handleChangeAmount, handleAction, }: Props): React.ReactElement;
23
+ export {};
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ title: string;
4
+ description: string;
5
+ items: [
6
+ {
7
+ leftText: string;
8
+ rightText: string;
9
+ },
10
+ {
11
+ leftText: string;
12
+ rightText: string;
13
+ }
14
+ ];
15
+ actionText: string;
16
+ handleAction: () => void;
17
+ };
18
+ export declare function ConfirmTransferModal({ title, description, items, actionText, handleAction, }: Props): React.ReactElement | null;
19
+ export {};
@@ -0,0 +1,9 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { BigNumberish } from 'ethers';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ poolInfo: PoolInfoType;
6
+ amount?: BigNumberish;
7
+ };
8
+ export declare function ApproveAllowance({ poolInfo, amount, }: Props): React.ReactElement;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ handleAction: () => void;
6
+ };
7
+ export declare function Success({ poolInfo, handleAction }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,20 @@
1
+ import { POOL_NAME, POOL_TYPE } from '../../../../../huma-shared/src';
2
+ import { BigNumberish } from 'ethers';
3
+ import { default as React } from 'react';
4
+ /**
5
+ * Credit line pool approve allowance props
6
+ * @typedef {Object} CreditLineApproveProps
7
+ * @property {POOL_NAME} poolName The name of the pool.
8
+ * @property {POOL_TYPE} poolType The type of the pool.
9
+ * @property {BigNumberish|undefined} amount The amount to approve.
10
+ * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
11
+ * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool approve allowance action is successful.
12
+ */
13
+ export type CreditLineApproveProps = {
14
+ poolName: keyof typeof POOL_NAME;
15
+ poolType: keyof typeof POOL_TYPE;
16
+ amount?: BigNumberish;
17
+ handleClose: () => void;
18
+ handleSuccess?: (blockNumber?: number) => void;
19
+ };
20
+ export declare function CreditLineApprove({ poolName: poolNameStr, poolType: poolTypeStr, amount, handleClose, handleSuccess, }: CreditLineApproveProps): React.ReactElement | null;
@@ -0,0 +1,8 @@
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ poolUnderlyingToken: UnderlyingTokenInfo;
6
+ };
7
+ export declare function ApproveAllowance({ poolInfo, poolUnderlyingToken, }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ handleAction: () => void;
4
+ };
5
+ export declare function Success({ handleAction }: Props): React.ReactElement;
6
+ export {};
@@ -0,0 +1,15 @@
1
+ import { POOL_NAME } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Auto payback props V2
5
+ * @typedef {Object} AutoPaybackPropsV2
6
+ * @property {POOL_NAME} poolName The name of the pool.
7
+ * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
8
+ * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool borrow action is successful.
9
+ */
10
+ export interface AutoPaybackPropsV2 {
11
+ poolName: keyof typeof POOL_NAME;
12
+ handleClose: () => void;
13
+ handleSuccess?: (blockNumber?: number) => void;
14
+ }
15
+ export declare function AutoPaybackV2({ poolName: poolNameStr, handleClose, handleSuccess, }: AutoPaybackPropsV2): React.ReactElement | null;
@@ -0,0 +1,8 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ handleApprove: () => void;
6
+ };
7
+ export declare function Evaluation({ poolInfo, handleApprove, }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { AccountStats, PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ accountStats: AccountStats;
6
+ };
7
+ export declare function ChooseAmount({ poolInfo, accountStats, }: Props): React.ReactElement | null;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ };
6
+ export declare function ApproveAllowance({ poolInfo, }: Props): React.ReactElement | null;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ };
6
+ export declare function Transfer({ poolInfo }: Props): React.ReactElement;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import { CreditRecordType, PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ creditRecord: CreditRecordType;
6
+ handleAction: () => void;
7
+ hasNextStep: boolean;
8
+ };
9
+ export declare function Success({ poolInfo, creditRecord, handleAction, hasNextStep, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ handleAction: () => void;
4
+ };
5
+ export declare function Notifications({ handleAction }: Props): React.ReactElement;
6
+ export {};
@@ -0,0 +1,19 @@
1
+ import { POOL_NAME, POOL_TYPE } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Credit line pool borrow props
5
+ * @typedef {Object} CreditLineBorrowProps
6
+ * @property {POOL_NAME} poolName The name of the pool.
7
+ * @property {POOL_TYPE} poolType The type of the pool.
8
+ * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
9
+ * @property {function():void|undefined} handleApprove Optional function to notify when user is approved successfully to borrow again pool.
10
+ * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool borrow action is successful.
11
+ */
12
+ export interface CreditLineBorrowProps {
13
+ poolName: keyof typeof POOL_NAME;
14
+ poolType: keyof typeof POOL_TYPE;
15
+ handleClose: () => void;
16
+ handleApprove?: () => void;
17
+ handleSuccess?: (blockNumber?: number) => void;
18
+ }
19
+ export declare function CreditLineBorrow({ poolName: poolNameStr, poolType: poolTypeStr, handleClose, handleApprove, handleSuccess, }: CreditLineBorrowProps): React.ReactElement | null;
@@ -0,0 +1,9 @@
1
+ import { CreditStatsV2, PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ poolUnderlyingToken: UnderlyingTokenInfo;
6
+ accountStats: CreditStatsV2;
7
+ };
8
+ export declare function ChooseAmount({ poolInfo, poolUnderlyingToken, accountStats, }: Props): React.ReactElement | null;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ poolUnderlyingToken: UnderlyingTokenInfo;
6
+ };
7
+ export declare function ApproveAllowance({ poolInfo, poolUnderlyingToken, }: Props): React.ReactElement | null;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { PoolInfoV2 } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ };
6
+ export declare function Transfer({ poolInfo }: Props): React.ReactElement;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import { CreditStatsV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolUnderlyingToken: UnderlyingTokenInfo;
5
+ creditRecord: CreditStatsV2['creditRecord'];
6
+ handleAction: () => void;
7
+ hasNextStep: boolean;
8
+ };
9
+ export declare function Success({ poolUnderlyingToken, creditRecord, handleAction, hasNextStep, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ handleAction: () => void;
4
+ };
5
+ export declare function Notifications({ handleAction }: Props): React.ReactElement;
6
+ export {};
@@ -0,0 +1,15 @@
1
+ import { POOL_NAME } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Credit line pool borrow props V2
5
+ * @typedef {Object} CreditLineBorrowPropsV2
6
+ * @property {POOL_NAME} poolName The name of the pool.
7
+ * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
8
+ * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool borrow action is successful.
9
+ */
10
+ export interface CreditLineBorrowPropsV2 {
11
+ poolName: keyof typeof POOL_NAME;
12
+ handleClose: () => void;
13
+ handleSuccess?: (blockNumber?: number) => void;
14
+ }
15
+ export declare function CreditLineBorrowV2({ poolName: poolNameStr, handleClose, handleSuccess, }: CreditLineBorrowPropsV2): React.ReactElement | null;
@@ -0,0 +1,9 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ payoffAmount: number;
5
+ totalDueAmount: number;
6
+ poolInfo: PoolInfoType;
7
+ };
8
+ export declare function ChooseAmount({ payoffAmount, totalDueAmount, poolInfo, }: Props): React.ReactElement | null;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ };
6
+ export declare function ApproveAllowance({ poolInfo }: Props): React.ReactElement;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ };
6
+ export declare function Transfer({ poolInfo }: Props): React.ReactElement;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ handleAction: () => void;
6
+ };
7
+ export declare function Success({ poolInfo, handleAction }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,17 @@
1
+ import { POOL_NAME, POOL_TYPE } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Credit line pool payment props
5
+ * @typedef {Object} CreditLinePaymentProps
6
+ * @property {POOL_NAME} poolName The name of the pool.
7
+ * @property {POOL_TYPE} poolType The type of the pool.
8
+ * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
9
+ * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool payment action is successful.
10
+ */
11
+ export type CreditLinePaymentProps = {
12
+ poolName: keyof typeof POOL_NAME;
13
+ poolType: keyof typeof POOL_TYPE;
14
+ handleClose: () => void;
15
+ handleSuccess?: (blockNumber?: number) => void;
16
+ };
17
+ export declare function CreditLinePayment({ poolName: poolNameStr, poolType: poolTypeStr, handleClose, handleSuccess, }: CreditLinePaymentProps): React.ReactElement | null;
@@ -0,0 +1,11 @@
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { BigNumber } from 'ethers';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ payoffAmount: BigNumber;
6
+ totalDueAmount: BigNumber;
7
+ poolInfo: PoolInfoV2;
8
+ poolUnderlyingToken: UnderlyingTokenInfo;
9
+ };
10
+ export declare function ChooseAmount({ payoffAmount: payoffAmountBN, totalDueAmount: totalDueAmountBN, poolInfo, poolUnderlyingToken, }: Props): React.ReactElement | null;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ poolUnderlyingToken: UnderlyingTokenInfo;
6
+ };
7
+ export declare function ApproveAllowance({ poolInfo, poolUnderlyingToken, }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ poolUnderlyingToken: UnderlyingTokenInfo;
6
+ };
7
+ export declare function Transfer({ poolInfo, poolUnderlyingToken, }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolUnderlyingToken: UnderlyingTokenInfo;
5
+ handleAction: () => void;
6
+ };
7
+ export declare function Success({ poolUnderlyingToken, handleAction, }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,15 @@
1
+ import { POOL_NAME } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Credit line pool payment props V2
5
+ * @typedef {Object} CreditLinePaymentPropsV2
6
+ * @property {POOL_NAME} poolName The name of the pool.
7
+ * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
8
+ * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool payment action is successful.
9
+ */
10
+ export type CreditLinePaymentPropsV2 = {
11
+ poolName: keyof typeof POOL_NAME;
12
+ handleClose: () => void;
13
+ handleSuccess?: (blockNumber?: number) => void;
14
+ };
15
+ export declare function CreditLinePaymentV2({ poolName: poolNameStr, handleClose, handleSuccess, }: CreditLinePaymentPropsV2): React.ReactElement | null;
@@ -0,0 +1,9 @@
1
+ import { SolanaPoolInfo } from '../../../../../huma-shared/src';
2
+ import { CreditConfigAccount } from '../../../../../huma-web-shared/src';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ poolInfo: SolanaPoolInfo;
6
+ creditConfigAccount: CreditConfigAccount;
7
+ };
8
+ export declare function ChooseAmount({ poolInfo, creditConfigAccount, }: Props): React.ReactElement;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SolanaPoolInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: SolanaPoolInfo;
5
+ };
6
+ export declare function Transfer({ poolInfo }: Props): React.ReactElement | null;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import { SolanaPoolInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ import { SolanaPoolState } from '../../../../../huma-web-shared/src';
4
+ type Props = {
5
+ poolInfo: SolanaPoolInfo;
6
+ poolState: SolanaPoolState;
7
+ handleAction: () => void;
8
+ };
9
+ export declare function Done({ poolInfo, poolState, handleAction, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,17 @@
1
+ import { SolanaPoolInfo } from '../../../../../huma-shared/src';
2
+ import { SolanaPoolState } from '../../../../../huma-web-shared/src';
3
+ import { default as React } from 'react';
4
+ /**
5
+ * Lend pool supply props
6
+ * @typedef {Object} SolanaBorrowProps
7
+ * @property {SolanaPoolInfo} poolInfo The metadata of the pool.
8
+ * @property {SolanaPoolState} poolState The current state config of the pool. * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
9
+ * @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
10
+ */
11
+ export interface SolanaBorrowProps {
12
+ poolInfo: SolanaPoolInfo;
13
+ poolState: SolanaPoolState;
14
+ handleClose: () => void;
15
+ handleSuccess?: () => void;
16
+ }
17
+ export declare function SolanaBorrow({ poolInfo, poolState, handleClose, handleSuccess, }: SolanaBorrowProps): React.ReactElement | null;
@@ -0,0 +1,9 @@
1
+ import { SolanaPoolInfo } from '../../../../../huma-shared/src';
2
+ import { CreditStateAccount } from '../../../../../huma-web-shared/src';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ poolInfo: SolanaPoolInfo;
6
+ creditStateAccount: CreditStateAccount;
7
+ };
8
+ export declare function ChooseAmount({ poolInfo, creditStateAccount, }: Props): React.ReactElement;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SolanaPoolInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: SolanaPoolInfo;
5
+ };
6
+ export declare function Transfer({ poolInfo }: Props): React.ReactElement | null;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { SolanaPoolInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: SolanaPoolInfo;
5
+ handleAction: () => void;
6
+ };
7
+ export declare function Done({ poolInfo, handleAction }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,14 @@
1
+ import { SolanaPoolInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Lend pool supply props
5
+ * @typedef {Object} SolanaPaymentProps
6
+ * @property {SolanaPoolInfo} poolInfo The metadata of the pool.
7
+ * @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
8
+ */
9
+ export interface SolanaPaymentProps {
10
+ poolInfo: SolanaPoolInfo;
11
+ handleClose: () => void;
12
+ handleSuccess?: () => void;
13
+ }
14
+ export declare function SolanaPayment({ poolInfo, handleClose, handleSuccess, }: SolanaPaymentProps): React.ReactElement | null;
@@ -0,0 +1,10 @@
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { BigNumber } from 'ethers';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ poolInfo: PoolInfoV2;
6
+ poolUnderlyingToken: UnderlyingTokenInfo;
7
+ amountToDeposit: BigNumber;
8
+ };
9
+ export declare function ApproveAllowance({ poolInfo, poolUnderlyingToken, amountToDeposit, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { PoolInfoV2 } from '../../../../../huma-shared/src';
2
+ import { BigNumber } from 'ethers';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ poolInfo: PoolInfoV2;
6
+ amountToDeposit: BigNumber;
7
+ title: string;
8
+ };
9
+ export declare function Transfer({ poolInfo, amountToDeposit, title, }: Props): React.ReactElement | null;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { BigNumber } from 'ethers';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ amountToDeposit: BigNumber;
6
+ poolUnderlyingToken: UnderlyingTokenInfo;
7
+ handleAction: () => void;
8
+ };
9
+ export declare function Success({ amountToDeposit, poolUnderlyingToken, handleAction, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,15 @@
1
+ import { POOL_NAME } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Supply first loss cover props
5
+ * @typedef {Object} SupplyFirstLossCoverProps
6
+ * @property {POOL_NAME} poolName The name of the pool.
7
+ * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
8
+ * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool borrow action is successful.
9
+ */
10
+ export interface SupplyFirstLossCoverProps {
11
+ poolName: keyof typeof POOL_NAME;
12
+ handleClose: () => void;
13
+ handleSuccess?: (blockNumber?: number) => void;
14
+ }
15
+ export declare function SupplyFirstLossCover({ poolName: poolNameStr, handleClose, handleSuccess, }: SupplyFirstLossCoverProps): React.ReactElement | null;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ title: string;
4
+ errorReason?: string;
5
+ errorMessage?: string;
6
+ errorUrl?: string;
7
+ handleOk: () => void;
8
+ okText?: string;
9
+ shouldResetState?: boolean;
10
+ };
11
+ export declare function ErrorModal({ title, errorReason, errorMessage, errorUrl, handleOk, okText, shouldResetState, }: Props): React.ReactElement;
12
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ fullScreen?: boolean;
4
+ minHeight?: string;
5
+ };
6
+ export declare function HumaLoading({ fullScreen, minHeight, }: Props): React.ReactElement;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ type Props = {
2
+ open: boolean;
3
+ title: string;
4
+ message: string;
5
+ severity: 'success' | 'info' | 'warning' | 'error';
6
+ autoHideDuration?: number;
7
+ onClose: () => void;
8
+ };
9
+ export declare function HumaSnackBar({ open, autoHideDuration, title, message, severity, onClose, }: Props): import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export {};