@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,10 @@
1
+ import { BN } from '@coral-xyz/anchor';
2
+ import { UnderlyingTokenInfo } from '../../../../../huma-shared/src';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ poolUnderlyingToken: UnderlyingTokenInfo;
6
+ withdrawAmount: BN;
7
+ handleAction: () => void;
8
+ };
9
+ export declare function Done({ poolUnderlyingToken, withdrawAmount, handleAction, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,25 @@
1
+ import { SolanaPoolInfo, TrancheType } from '../../../../../huma-shared/src';
2
+ import { LenderStateAccount, SolanaPoolState } from '../../../../../huma-web-shared/src';
3
+ import { default as React } from 'react';
4
+ import { Mint } from '@solana/spl-token';
5
+ /**
6
+ * Solana lend pool withdraw props
7
+ * @typedef {Object} SolanaLendWithdrawProps
8
+ * @property {SolanaPoolInfo} poolInfo The metadata of the pool.
9
+ * @property {SolanaPoolState} poolState The current state config of the pool.
10
+ * @property {LenderStateAccount} lenderStateAccount The lender state account of the user.
11
+ * @property {Mint} trancheMintAccount The mint account of the tranche.
12
+ * @property {TrancheType} trancheType The type of the tranche.
13
+ * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
14
+ * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool withdraw action is successful.
15
+ */
16
+ export type SolanaLendWithdrawProps = {
17
+ poolInfo: SolanaPoolInfo;
18
+ poolState: SolanaPoolState;
19
+ lenderStateAccount: LenderStateAccount;
20
+ trancheMintAccount: Mint;
21
+ trancheType: TrancheType;
22
+ handleClose: () => void;
23
+ handleSuccess?: (blockNumber?: number) => void;
24
+ };
25
+ export declare function SolanaLendWithdraw({ poolInfo, poolState, lenderStateAccount, trancheMintAccount, trancheType, handleClose, handleSuccess, }: SolanaLendWithdrawProps): React.ReactElement | null;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ type Props = {};
3
+ export declare function Evaluation({}: Props): React.ReactElement | null;
4
+ export {};
@@ -0,0 +1,9 @@
1
+ import { TrancheType, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolUnderlyingToken: UnderlyingTokenInfo;
5
+ selectedTranche: TrancheType | undefined;
6
+ changeTranche: (tranche: TrancheType) => void;
7
+ };
8
+ export declare function ChooseTranche({ poolUnderlyingToken, selectedTranche, changeTranche, }: Props): React.ReactElement | null;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ import { StellarPoolInfo, TrancheType } from '../../../../../huma-shared/src';
2
+ import { StellarPoolState } from '../../../../../huma-web-shared/src';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ poolInfo: StellarPoolInfo;
6
+ poolState: StellarPoolState;
7
+ tokenBalance: number | null;
8
+ selectedTranche: TrancheType | undefined;
9
+ isUniTranche?: boolean;
10
+ };
11
+ export declare function ChooseAmount({ poolInfo, poolState, tokenBalance, selectedTranche, isUniTranche, }: Props): React.ReactElement | null;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import { StellarPoolInfo, TrancheType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: StellarPoolInfo;
5
+ selectedTranche: TrancheType;
6
+ };
7
+ export declare function Transfer({ poolInfo, selectedTranche, }: Props): React.ReactElement | null;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import { CloseModalOptions, StellarPoolInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ import { StellarPoolState } from '../../../../../huma-web-shared/src';
4
+ type Props = {
5
+ poolInfo: StellarPoolInfo;
6
+ poolState: StellarPoolState;
7
+ handleAction: (options?: CloseModalOptions) => void;
8
+ };
9
+ export declare function Success({ poolInfo, poolState, handleAction, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,22 @@
1
+ import { CloseModalOptions, StellarPoolInfo } from '../../../../../huma-shared/src';
2
+ import { StellarPoolState } from '../../../../../huma-web-shared/src';
3
+ import { default as React } from 'react';
4
+ export interface Campaign {
5
+ id: string;
6
+ campaignGroupId: string;
7
+ }
8
+ /**
9
+ * Lend pool supply props
10
+ * @typedef {Object} StellarLendSupplyProps
11
+ * @property {StellarPoolInfo} poolInfo The metadata of the pool.
12
+ * @property {StellarPoolState} poolState The current state config of the pool.
13
+ * @property {function((CloseModalOptions|undefined)):void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
14
+ * @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
15
+ */
16
+ export interface StellarLendSupplyProps {
17
+ poolInfo: StellarPoolInfo;
18
+ poolState: StellarPoolState;
19
+ handleClose: (options?: CloseModalOptions) => void;
20
+ handleSuccess?: () => void;
21
+ }
22
+ export declare function StellarLendSupply({ poolInfo, poolState, handleClose, handleSuccess, }: StellarLendSupplyProps): 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
+ handleApproveSuccess: () => void;
6
+ };
7
+ export declare function EvaluationEA({ poolInfo, handleApproveSuccess, }: Props): React.ReactElement | null;
8
+ 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
+ handleClose: () => void;
6
+ };
7
+ export declare function EvaluationKYC({ poolInfo, handleClose, }: Props): React.ReactElement | null;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { PoolInfoType } from '../../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ handleClose: () => void;
6
+ handleApproveSuccess: () => void;
7
+ };
8
+ export declare function Evaluation({ poolInfo, handleClose, handleApproveSuccess, }: Props): React.ReactElement | null;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import { BigNumber } from 'ethers';
2
+ import { PoolInfoType } from '../../../../../huma-shared/src';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ allowance: BigNumber;
6
+ withdrawlLockoutSeconds: number | undefined;
7
+ underlyingTokenBalance: string;
8
+ poolInfo: PoolInfoType;
9
+ };
10
+ export declare function ChooseAmount({ allowance, withdrawlLockoutSeconds, underlyingTokenBalance, poolInfo, }: Props): React.ReactElement | null;
11
+ 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,9 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ handleAction: () => void;
6
+ hasNextStep: boolean;
7
+ };
8
+ export declare function Success({ poolInfo, handleAction, hasNextStep, }: Props): React.ReactElement;
9
+ 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,17 @@
1
+ import { POOL_NAME, POOL_TYPE } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Lend pool supply props
5
+ * @typedef {Object} LendSupplyProps
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 lending pool supply action is successful.
10
+ */
11
+ export interface LendSupplyProps {
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 LendSupply({ poolName: poolNameStr, poolType: poolTypeStr, handleClose, handleSuccess, }: LendSupplyProps): React.ReactElement | null;
@@ -0,0 +1,9 @@
1
+ import { TrancheType, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolUnderlyingToken: UnderlyingTokenInfo;
5
+ selectedTranche: TrancheType | undefined;
6
+ changeTranche: (tranche: TrancheType) => void;
7
+ };
8
+ export declare function ChooseTranche({ poolUnderlyingToken, selectedTranche, changeTranche, }: Props): React.ReactElement | null;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ import { CloseModalOptions, NETWORK_TYPE, PoolInfoV2 } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ import { Campaign } from '.';
4
+ type Props = {
5
+ poolInfo: PoolInfoV2;
6
+ networkType: NETWORK_TYPE;
7
+ campaign?: Campaign;
8
+ documentHash?: string;
9
+ handleClose: (options?: CloseModalOptions) => void;
10
+ };
11
+ export declare function Evaluation({ poolInfo, networkType, campaign, documentHash, handleClose, }: Props): React.ReactElement | null;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import { PoolInfoV2, TrancheType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ isUniTranche: boolean;
6
+ documentHash?: string;
7
+ changeTranche: (tranche: TrancheType) => void;
8
+ };
9
+ export declare function ApproveLender({ poolInfo, isUniTranche, documentHash, changeTranche, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,14 @@
1
+ import { PoolInfoV2, TrancheType } from '../../../../../huma-shared/src';
2
+ import { LPConfigStructOutput } from '@huma-finance/shared/src/v2/abis/types/PoolConfig';
3
+ import { BigNumber } from 'ethers';
4
+ import { default as React } from 'react';
5
+ type Props = {
6
+ poolInfo: PoolInfoV2;
7
+ lpConfig: LPConfigStructOutput;
8
+ juniorAssets: BigNumber;
9
+ seniorAssets: BigNumber;
10
+ selectedTranche: TrancheType | undefined;
11
+ isUniTranche: boolean;
12
+ };
13
+ export declare function ChooseAmount({ poolInfo, lpConfig, juniorAssets: juniorAssetsBN, seniorAssets: seniorAssetsBN, selectedTranche, isUniTranche, }: Props): React.ReactElement | null;
14
+ 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 ApproveAllowance({ poolInfo, }: Props): React.ReactElement | null;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ import { NETWORK_TYPE, PoolInfoV2, TrancheType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ import { Campaign } from '.';
4
+ type Props = {
5
+ poolInfo: PoolInfoV2;
6
+ trancheType: TrancheType;
7
+ networkType: NETWORK_TYPE;
8
+ campaign?: Campaign;
9
+ };
10
+ export declare function Transfer({ poolInfo, trancheType, networkType, campaign, }: Props): React.ReactElement | null;
11
+ export {};
@@ -0,0 +1,13 @@
1
+ import { PoolInfoV2 } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ import { Campaign } from '.';
4
+ type Props = {
5
+ poolInfo: PoolInfoV2;
6
+ lpConfig: {
7
+ withdrawalLockoutPeriodInDays: number;
8
+ };
9
+ campaign?: Campaign;
10
+ handleAction: () => void;
11
+ };
12
+ export declare function Success({ poolInfo, lpConfig, campaign, handleAction, }: Props): React.ReactElement;
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { Campaign } from '.';
3
+ type Props = {
4
+ campaign?: Campaign;
5
+ handleAction: () => void;
6
+ };
7
+ export declare function Notifications({ campaign, handleAction, }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ import { CloseModalOptions, POOL_NAME } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ export interface Campaign {
4
+ id: string;
5
+ campaignGroupId: string;
6
+ }
7
+ /**
8
+ * Lend pool supply props
9
+ * @typedef {Object} LendSupplyPropsV2
10
+ * @property {POOL_NAME} poolName The name of the pool.
11
+ * @property {Campaign} campaign The campaign info.
12
+ * @param {string} documentHash The subscription file hash.
13
+ * @property {function((CloseModalOptions|undefined)):void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
14
+ * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
15
+ */
16
+ export interface LendSupplyPropsV2 {
17
+ poolName: keyof typeof POOL_NAME;
18
+ campaign?: Campaign;
19
+ documentHash?: string;
20
+ handleClose: (options?: CloseModalOptions) => void;
21
+ handleSuccess?: (blockNumber?: number) => void;
22
+ }
23
+ export declare function LendSupplyV2({ poolName: poolNameStr, campaign, documentHash, handleClose, handleSuccess, }: LendSupplyPropsV2): 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
+ handleClose: () => void;
6
+ };
7
+ export declare function CheckWithdrawable({ poolInfo, handleClose, }: Props): React.ReactElement | null;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ import { BigNumber } from 'ethers';
2
+ import { PoolInfoType } from '../../../../../huma-shared/src';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ lenderPosition: BigNumber;
6
+ poolBalance: BigNumber;
7
+ poolInfo: PoolInfoType;
8
+ };
9
+ export declare function ChooseAmount({ lenderPosition, poolBalance, poolInfo, }: Props): React.ReactElement | null;
10
+ 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
+ * Lend pool withdraw props
5
+ * @typedef {Object} LendWithdrawProps
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 lending pool withdraw action is successful.
10
+ */
11
+ export type LendWithdrawProps = {
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 LendWithdraw({ poolName: poolNameStr, poolType: poolTypeStr, handleClose, handleSuccess, }: LendWithdrawProps): React.ReactElement | null;
@@ -0,0 +1,11 @@
1
+ import { PoolInfoV2, TrancheRedemptionStatus, TrancheType, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ tranche: TrancheType;
6
+ poolUnderlyingToken: UnderlyingTokenInfo;
7
+ redemptionStatus: TrancheRedemptionStatus;
8
+ poolIsClosed: boolean;
9
+ };
10
+ export declare function ConfirmTransfer({ poolInfo, tranche, poolUnderlyingToken, redemptionStatus, poolIsClosed, }: Props): React.ReactElement;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ import { PoolInfoV2, TrancheType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ tranche: TrancheType;
6
+ poolIsClosed: boolean;
7
+ };
8
+ export declare function Transfer({ poolInfo, tranche, poolIsClosed, }: Props): React.ReactElement | null;
9
+ 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
+ poolUnderlyingToken: UnderlyingTokenInfo;
6
+ withdrawAmount: BigNumber;
7
+ handleAction: () => void;
8
+ };
9
+ export declare function Done({ poolUnderlyingToken, withdrawAmount, handleAction, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,17 @@
1
+ import { POOL_NAME, TrancheType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Lend pool withdraw props
5
+ * @typedef {Object} LendWithdrawPropsV2
6
+ * @property {POOL_NAME} poolName The name of the pool.
7
+ * @property {TrancheType} trancheType The type of the tranche.
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 lending pool withdraw action is successful.
10
+ */
11
+ export type LendWithdrawPropsV2 = {
12
+ poolName: keyof typeof POOL_NAME;
13
+ trancheType: TrancheType;
14
+ handleClose: () => void;
15
+ handleSuccess?: (blockNumber?: number) => void;
16
+ };
17
+ export declare function LendWithdrawV2({ poolName: poolNameStr, trancheType, handleClose, handleSuccess, }: LendWithdrawPropsV2): React.ReactElement | null;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ title: string;
4
+ description?: string;
5
+ hideLoader?: boolean;
6
+ children?: React.ReactNode;
7
+ };
8
+ export declare function LoadingModal({ title, description, hideLoader, children, }: Props): React.ReactElement;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ chainId: number | undefined;
4
+ children?: any;
5
+ };
6
+ export declare function NotifiContextWrapper({ chainId, children, }: Props): React.ReactElement | null;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ successText?: string;
4
+ handleSuccess: () => void;
5
+ };
6
+ export declare function NotifiSubscriptionModal({ successText, handleSuccess, }: Props): React.ReactElement;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { NumericFormatProps } from 'react-number-format';
3
+ interface CustomProps {
4
+ onChange: (event: {
5
+ target: {
6
+ name: string;
7
+ value: string;
8
+ };
9
+ }) => void;
10
+ name: string;
11
+ suffix?: string;
12
+ }
13
+ export declare const NumericFormatCustom: React.ForwardRefExoticComponent<CustomProps & React.RefAttributes<NumericFormatProps>>;
14
+ export {};
@@ -0,0 +1,10 @@
1
+ import { CloseModalOptions } from '../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ lpConfig: {
5
+ withdrawalLockupPeriodDays?: number;
6
+ };
7
+ handleAction: (options?: CloseModalOptions) => void;
8
+ };
9
+ export declare function PointsEarned({ lpConfig, handleAction, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,10 @@
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
+ tokenId: string;
8
+ };
9
+ export declare function ChooseAmount({ poolInfo, poolUnderlyingToken, accountStats, tokenId, }: Props): React.ReactElement | null;
10
+ 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,8 @@
1
+ import { PoolInfoV2 } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ tokenId: string;
6
+ };
7
+ export declare function ApproveReceivable({ poolInfo, tokenId, }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { PoolInfoV2 } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoV2;
5
+ tokenId: string;
6
+ };
7
+ export declare function Transfer({ poolInfo, tokenId }: Props): React.ReactElement;
8
+ 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,17 @@
1
+ import { POOL_NAME } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Receivable backed credit line pool borrow props V2
5
+ * @typedef {Object} ReceivableBackedCreditLineBorrowPropsV2
6
+ * @property {POOL_NAME} poolName The name of the pool.
7
+ * @property {tokenId} tokenId The receivable token id.
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 borrow action is successful.
10
+ */
11
+ export interface ReceivableBackedCreditLineBorrowPropsV2 {
12
+ poolName: keyof typeof POOL_NAME;
13
+ tokenId: string;
14
+ handleClose: () => void;
15
+ handleSuccess?: (blockNumber?: number) => void;
16
+ }
17
+ export declare function ReceivableBackedCreditLineBorrowV2({ poolName: poolNameStr, tokenId, handleClose, handleSuccess, }: ReceivableBackedCreditLineBorrowPropsV2): React.ReactElement | null;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { PaymentType } from '.';
3
+ type Props = {
4
+ paymentType: PaymentType | undefined;
5
+ changePaymentType: (paymentType: PaymentType) => void;
6
+ };
7
+ export declare function ChoosePaymentType({ paymentType, changePaymentType, }: Props): React.ReactElement | null;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { BigNumber } from 'ethers';
3
+ import { default as React } from 'react';
4
+ import { PaymentType } from '.';
5
+ type Props = {
6
+ payoffAmount: BigNumber;
7
+ poolInfo: PoolInfoV2;
8
+ poolUnderlyingToken: UnderlyingTokenInfo;
9
+ paymentType: PaymentType;
10
+ };
11
+ export declare function ChooseAmount({ payoffAmount: payoffAmountBN, poolInfo, poolUnderlyingToken, paymentType, }: Props): React.ReactElement | null;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ import { PaymentType } from '.';
4
+ type Props = {
5
+ poolInfo: PoolInfoV2;
6
+ poolUnderlyingToken: UnderlyingTokenInfo;
7
+ paymentType: PaymentType;
8
+ };
9
+ export declare function ApproveAllowance({ poolInfo, poolUnderlyingToken, paymentType, }: Props): React.ReactElement;
10
+ export {};
@@ -0,0 +1,9 @@
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
+ setTokenId: (tokenId: string) => void;
7
+ };
8
+ export declare function CreateReceivable({ poolInfo, poolUnderlyingToken, setTokenId, }: Props): React.ReactElement;
9
+ export {};