@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,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,14 @@
1
+ import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { ethers } from 'ethers';
3
+ import { default as React } from 'react';
4
+ import { PaymentType } from '.';
5
+ type Props = {
6
+ poolInfo: PoolInfoV2;
7
+ poolUnderlyingToken: UnderlyingTokenInfo;
8
+ paymentType: PaymentType;
9
+ paymentTokenId: string;
10
+ borrowTokenId?: string;
11
+ setSuccessTxReceipt: (txReceipt: ethers.ContractReceipt) => void;
12
+ };
13
+ export declare function Transfer({ poolInfo, poolUnderlyingToken, paymentType, paymentTokenId, borrowTokenId, setSuccessTxReceipt, }: Props): React.ReactElement;
14
+ export {};
@@ -0,0 +1,12 @@
1
+ import { UnderlyingTokenInfo } from '../../../../../huma-shared/src';
2
+ import { ethers } from 'ethers';
3
+ import { default as React } from 'react';
4
+ import { PaymentType } from '.';
5
+ type Props = {
6
+ poolUnderlyingToken: UnderlyingTokenInfo;
7
+ paymentType: PaymentType;
8
+ successTxReceipt: ethers.ContractReceipt;
9
+ handleAction: () => void;
10
+ };
11
+ export declare function Success({ poolUnderlyingToken, paymentType, successTxReceipt, handleAction, }: Props): React.ReactElement;
12
+ export {};
@@ -0,0 +1,21 @@
1
+ import { POOL_NAME } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ export declare enum PaymentType {
4
+ PaymentWithReceivable = 1,
5
+ PaymentWithReceivableAndDrawdown = 2
6
+ }
7
+ /**
8
+ * Credit line pool payment props V2
9
+ * @typedef {Object} CreditLinePaymentPropsV2
10
+ * @property {POOL_NAME} poolName The name of the pool.
11
+ * @property {tokenId} tokenID The receivable token id.
12
+ * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
13
+ * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool payment action is successful.
14
+ */
15
+ export type ReceivableBackedCreditLinePaymentPropsV2 = {
16
+ poolName: keyof typeof POOL_NAME;
17
+ tokenId: string;
18
+ handleClose: () => void;
19
+ handleSuccess?: (blockNumber?: number) => void;
20
+ };
21
+ export declare function ReceivableBackedCreditLinePaymentV2({ poolName: poolNameStr, tokenId, handleClose, handleSuccess, }: ReceivableBackedCreditLinePaymentPropsV2): React.ReactElement | null;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ description?: string;
4
+ };
5
+ export declare function SignIn({ description }: Props): React.ReactElement;
6
+ export {};
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { SolanaChainEnum } from '../../../huma-shared/src';
3
+ type Props = {
4
+ chainId: SolanaChainEnum;
5
+ title: string;
6
+ errorReason?: string;
7
+ errorMessage?: string;
8
+ handleOk: () => void;
9
+ okText?: string;
10
+ shouldResetState?: boolean;
11
+ };
12
+ export declare function SolanaErrorModal({ chainId, title, errorReason, errorMessage, handleOk, okText, shouldResetState, }: Props): React.ReactElement;
13
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { SolanaChainEnum } from '../../../huma-shared/src';
3
+ type Props = {
4
+ content: string[];
5
+ subContent?: string[];
6
+ buttonText?: string;
7
+ solanaSignature?: string;
8
+ chainId?: SolanaChainEnum;
9
+ handleAction: () => void;
10
+ };
11
+ export declare function SolanaTxDoneModal({ content, subContent, solanaSignature, chainId, buttonText, handleAction, }: Props): React.ReactElement;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import { SolanaChainEnum } from '../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ import { Transaction } from '@solana/web3.js';
4
+ type Props = {
5
+ chainId: SolanaChainEnum;
6
+ tx?: Transaction;
7
+ handleSuccess: (options?: {
8
+ signature: string;
9
+ }) => void;
10
+ };
11
+ export declare function SolanaTxSendModal({ chainId, tx, handleSuccess, }: Props): React.ReactElement | null;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import { SolanaChainEnum } from '../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ chainId: SolanaChainEnum;
5
+ signature: string;
6
+ };
7
+ export declare function SolanaViewOnExplorer({ chainId, signature, }: Props): React.ReactElement | null;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { StellarChainEnum } from '../../../huma-shared/src';
3
+ type Props = {
4
+ chainId: StellarChainEnum;
5
+ content: string[];
6
+ subContent?: string[];
7
+ buttonText?: string;
8
+ txHash?: string;
9
+ handleAction: () => void;
10
+ };
11
+ export declare function StellarTxDoneModal({ chainId, content, subContent, txHash, buttonText, handleAction, }: Props): React.ReactElement;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { default as AssembledTransaction } from '@stellar/stellar-sdk';
3
+ type Props = {
4
+ tx?: typeof AssembledTransaction;
5
+ handleSuccess: () => void;
6
+ };
7
+ export declare function StellarTxSendModal({ tx, handleSuccess, }: Props): React.ReactElement | null;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { StellarChainEnum } from '../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ chainId: StellarChainEnum;
5
+ txHash: string;
6
+ };
7
+ export declare function StellarViewOnExplorer({ chainId, txHash, }: 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
+ payerAddress: string;
6
+ superToken: string;
7
+ };
8
+ export declare function Evaluation({ poolInfo, payerAddress, superToken, }: 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
+ currentFlowRate: string;
6
+ };
7
+ export declare function ChooseAmount({ poolInfo, currentFlowRate, }: Props): React.ReactElement | null;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function ConfirmTransfer(): React.ReactElement | null;
@@ -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,10 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ payerAddress: string;
6
+ borrower: string;
7
+ superToken: string;
8
+ };
9
+ export declare function Permit({ poolInfo, payerAddress, borrower, superToken, }: 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 | null;
7
+ 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,13 @@
1
+ import { POOL_NAME, POOL_TYPE } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ export type StreamFactoringBorrowProps = {
4
+ poolName: POOL_NAME;
5
+ poolType: POOL_TYPE;
6
+ payerAddress: string;
7
+ superToken: string;
8
+ currentFlowRate: string;
9
+ isOpen: boolean;
10
+ handleClose: () => void;
11
+ handleSuccess: (blockNumber: number) => void;
12
+ };
13
+ export declare function StreamFactoringBorrow({ poolName, poolType, payerAddress, superToken, currentFlowRate, isOpen, handleClose, handleSuccess, }: StreamFactoringBorrowProps): React.ReactElement | null;
@@ -0,0 +1,8 @@
1
+ import { CreditRecordType, PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ creditRecord: CreditRecordType;
5
+ poolInfo: PoolInfoType;
6
+ };
7
+ export declare function ChooseAmount({ creditRecord, poolInfo, }: 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
+ handleAction: () => void;
6
+ };
7
+ export declare function Success({ poolInfo, handleAction }: Props): React.ReactElement;
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 Transfer({ poolInfo }: Props): React.ReactElement;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import { PoolInfoType } from '../../../../../huma-shared/src';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ poolInfo: PoolInfoType;
5
+ isOpen: boolean;
6
+ handleClose: () => void;
7
+ handleSuccess: (blockNumber: number) => void;
8
+ };
9
+ export declare function StreamFactoringPayment({ poolInfo, isOpen, handleClose, handleSuccess, }: Props): React.ReactElement | null;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { EmotionJSX } from '@emotion/react/types/jsx-namespace';
3
+ export type StreamItem = {
4
+ id: string;
5
+ icon: EmotionJSX.Element;
6
+ token: string;
7
+ tokenId: string;
8
+ payer: string;
9
+ flowrate: string;
10
+ flowrateMonth: string;
11
+ };
12
+ export declare function SuperfluidFactoring(): React.ReactElement;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ content: string[];
4
+ subContent?: string[];
5
+ buttonText?: string;
6
+ handleAction: () => void;
7
+ };
8
+ export declare function TxDoneModal({ content, subContent, handleAction, buttonText, }: Props): React.ReactElement;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Contract } from 'ethers';
2
+ import { PoolInfoType } from '../../../huma-shared/src';
3
+ import { default as React } from 'react';
4
+ type Props = {
5
+ poolInfo: PoolInfoType;
6
+ method: string;
7
+ params: unknown[];
8
+ title?: string;
9
+ contract?: Contract;
10
+ handleSuccess?: () => void;
11
+ };
12
+ export declare function TxSendModal({ poolInfo, title, method, params, contract, handleSuccess, }: Props): React.ReactElement;
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { Contract } from 'ethers';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ method: string;
5
+ params: unknown[];
6
+ title?: string;
7
+ contract: Contract;
8
+ handleSuccess?: (options?: {
9
+ txHash: string;
10
+ }) => void;
11
+ };
12
+ export declare function TxSendModalV2({ title, method, params, contract, handleSuccess, }: Props): React.ReactElement;
13
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ txHash: string;
4
+ };
5
+ export declare function ViewOnExplorer({ txHash }: Props): React.ReactElement | null;
6
+ export {};
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { WCProps } from '../utilTypes';
3
+ type Props = {
4
+ isOpen: boolean;
5
+ isLoading?: boolean;
6
+ loadingTitle?: string;
7
+ handleClose: () => void;
8
+ handleSuccess?: (blockNumber: number) => void;
9
+ };
10
+ export declare function WidgetWrapper({ isOpen, isLoading, loadingTitle, handleClose, handleSuccess, children, }: WCProps<Props>): React.ReactElement | null;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ type Props = {
3
+ title: string;
4
+ subTitle?: string | React.ReactNode;
5
+ children: React.ReactNode;
6
+ };
7
+ export declare function WrapperModal({ title, subTitle, children, }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ title: string;
3
+ className?: string;
4
+ handleClick: () => void;
5
+ disabled?: boolean;
6
+ };
7
+ export declare function TableActionButton({ title, className, handleClick, disabled, }: Props): React.ReactElement;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './TableActionButton';
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ type HumaModalType = {
3
+ children?: React.ReactNode;
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ overflow?: string;
7
+ overflowY?: 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto';
8
+ width?: string;
9
+ padding?: string;
10
+ disableBackdropClick?: boolean;
11
+ };
12
+ export declare function HumaModal({ children, isOpen, onClose, overflow, overflowY, width, padding, disableBackdropClick, }: HumaModalType): React.ReactElement;
13
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ type HumaModalHeaderType = {
3
+ allowBack?: boolean;
4
+ children?: React.ReactNode;
5
+ hideClose?: boolean;
6
+ onBack?: () => void;
7
+ onClose: () => void;
8
+ title?: React.ReactNode;
9
+ height?: number;
10
+ };
11
+ export declare function HumaModalHeader({ hideClose, allowBack, onBack, onClose, height, ...props }: HumaModalHeaderType): React.ReactElement;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './HumaModal';
2
+ export * from './HumaModalHeader';
@@ -0,0 +1,23 @@
1
+ import { SvgIconProps } from '@mui/material';
2
+ export declare function HumaIcon(props: SvgIconProps): React.ReactElement;
3
+ export declare function HumaFullIcon(props: SvgIconProps): React.ReactElement;
4
+ export declare function MetamaskIcon(props: SvgIconProps): React.ReactElement;
5
+ export declare function WalletConnectIcon(props: SvgIconProps): React.ReactElement;
6
+ export declare function EthereumIcon(props: SvgIconProps): React.ReactElement;
7
+ export declare function PolygonIcon(props: SvgIconProps): React.ReactElement;
8
+ export declare function ReceiptIcon(props: SvgIconProps): React.ReactElement;
9
+ export declare function SeparatorIcon(props: SvgIconProps): React.ReactElement;
10
+ export declare function LoaderIcon(props: SvgIconProps): React.ReactElement;
11
+ export declare function SorryIcon(props: SvgIconProps): React.ReactElement;
12
+ export declare function CheckIcon(props: SvgIconProps): React.ReactElement;
13
+ export declare function CheckGreenIcon(props: SvgIconProps): React.ReactElement;
14
+ export declare function CheckCircleIcon(props: SvgIconProps): React.ReactElement;
15
+ export declare function AutoPaybackIcon(props: SvgIconProps): React.ReactElement;
16
+ export declare function ApproveLenderIcon(props: SvgIconProps): React.ReactElement;
17
+ export declare function DonutIcon(props: SvgIconProps): React.ReactElement;
18
+ export declare function UsdcIcon(props: SvgIconProps): React.ReactElement;
19
+ export declare function CeloIcon(props: SvgIconProps): React.ReactElement;
20
+ export declare function CongratulationsIcon(props: SvgIconProps): React.ReactElement;
21
+ export declare function RibbonIcon(props: SvgIconProps): React.ReactElement;
22
+ export declare function HumaPointsIcon(props: SvgIconProps): React.ReactElement;
23
+ export declare function getIcon(icon: string): typeof UsdcIcon | null;
@@ -0,0 +1,3 @@
1
+ export { default as ApproveLenderImg } from './approve-lender.png';
2
+ export { default as SorryImg } from './sorry.png';
3
+ export { default as AutoPaybackImg } from './auto-payback.png';
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare function WalletWrapper({ children }: {
2
+ children: React.ReactNode;
3
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { Eip1193Bridge } from '@ethersproject/experimental/lib/eip1193-bridge';
2
+ import { JsonRpcProvider } from '@ethersproject/providers';
3
+ import { ethers } from 'ethers';
4
+ export declare enum ChainEnum {
5
+ Goerli = 5,
6
+ Mumbai = 80001
7
+ }
8
+ declare class MetamaskBridge extends Eip1193Bridge {
9
+ private walletAddress;
10
+ private chainId;
11
+ constructor(signer: ethers.Signer, provider: ethers.providers.Provider, walletAddress: string, chainId?: number);
12
+ sendAsync(...args: any[]): Promise<any>;
13
+ send(...args: any[]): Promise<any>;
14
+ }
15
+ export declare const getProvider: (chainId?: ChainEnum) => JsonRpcProvider;
16
+ export declare const getInjectedMetamask: (testPrivateKey: string, chainId?: ChainEnum) => MetamaskBridge;
17
+ export declare const getSigner: (testPrivateKey: string, chainId?: ChainEnum) => ethers.Wallet;
18
+ export {};
@@ -0,0 +1,8 @@
1
+ import { EAPayload } from '../../../huma-shared/src';
2
+ import { WIDGET_STEP } from '../store/widgets.store';
3
+ declare const useEA: () => {
4
+ checkingEA: (payload: EAPayload, nextStep: WIDGET_STEP) => Promise<void>;
5
+ isWalletOwnershipVerificationRequired: boolean;
6
+ isWalletOwnershipVerified: boolean;
7
+ };
8
+ export default useEA;
@@ -0,0 +1,5 @@
1
+ import { MutableRefObject } from 'react';
2
+ export declare const useElementDimensions: (ref: MutableRefObject<HTMLDivElement | undefined>) => {
3
+ width: number;
4
+ height: number;
5
+ };
@@ -0,0 +1,10 @@
1
+ import { NotifiFrontendClient } from '@notifi-network/notifi-frontend-client';
2
+ export declare const useDoesChainSupportNotifi: (chainId: number | undefined) => {
3
+ notifiChainSupported: boolean;
4
+ };
5
+ export declare const useNotifiClient: (account: string | undefined, chainId: number | undefined) => {
6
+ notifiClient: NotifiFrontendClient | null;
7
+ };
8
+ export declare const useIsFirstTimeNotifiUser: (account: string | undefined, chainId: number | undefined) => {
9
+ isFirstTimeNotifiUser: boolean;
10
+ };
@@ -0,0 +1,6 @@
1
+ import { TypedUseSelectorHook } from 'react-redux';
2
+ import { RootState } from '../store';
3
+ export declare const useAppDispatch: () => import('redux-thunk').ThunkDispatch<{
4
+ widget: import('../store/widgets.store').WidgetState;
5
+ }, undefined, import('redux').AnyAction> & import('redux').Dispatch<import('redux').AnyAction>;
6
+ export declare const useAppSelector: TypedUseSelectorHook<RootState>;