@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,385 @@
1
+ import { JsonRpcProvider } from '@ethersproject/providers';
2
+ import { CreditLineApproveProps } from './components/CreditLine/approve';
3
+ import { AutoPaybackPropsV2 } from './components/CreditLine/autoPaybackV2';
4
+ import { CreditLineBorrowProps } from './components/CreditLine/borrow';
5
+ import { CreditLineBorrowPropsV2 } from './components/CreditLine/borrowV2';
6
+ import { CreditLinePaymentProps } from './components/CreditLine/payment';
7
+ import { CreditLinePaymentPropsV2 } from './components/CreditLine/paymentV2';
8
+ import { SolanaBorrowProps } from './components/CreditLine/solanaBorrow';
9
+ import { SolanaPaymentProps } from './components/CreditLine/solanaPayment';
10
+ import { SupplyFirstLossCoverProps } from './components/CreditLine/supplyFLC';
11
+ import { InvoiceFactoringBorrowProps } from './components/InvoiceFactoring/borrow';
12
+ import { InvoiceFactoringPaymentProps } from './components/InvoiceFactoring/payment';
13
+ import { AddRedemptionPropsV2 } from './components/Lend/addRedemptionV2';
14
+ import { CancelRedemptionPropsV2 } from './components/Lend/cancelRedemptionV2 ';
15
+ import { SolanaLendAddRedemptionProps } from './components/Lend/solanaAddRedemption';
16
+ import { SolanaLendCancelRedemptionProps } from './components/Lend/solanaCancelRedemption';
17
+ import { SolanaEnableAutoRedemptionProps } from './components/Lend/solanaEnableAutoRedemption';
18
+ import { SolanaLendSupplyProps } from './components/Lend/solanaSupply';
19
+ import { SolanaLendWithdrawProps } from './components/Lend/solanaWithdraw';
20
+ import { StellarLendSupplyProps } from './components/Lend/stellarSupply';
21
+ import { LendSupplyProps } from './components/Lend/supply';
22
+ import { LendSupplyPropsV2 } from './components/Lend/supplyV2';
23
+ import { LendWithdrawProps } from './components/Lend/withdraw';
24
+ import { LendWithdrawPropsV2 } from './components/Lend/withdrawV2';
25
+ import { ReceivableBackedCreditLineBorrowPropsV2 } from './components/ReceivableBackedCreditLine/borrow';
26
+ import { ReceivableBackedCreditLinePaymentPropsV2 } from './components/ReceivableBackedCreditLine/payment';
27
+ /**
28
+ * Mapping of your JSON-RPC connections indexed by chainId
29
+ * @typedef {Object} JsonRpcConnectionMap
30
+ * @property {Object.<number, string|Array<string>|JsonRpcProvider|Array<JsonRpcProvider>>} chainId Chain id to map the JSON-RPC URL/URLs or JsonRpcProvider/JsonRpcProviders
31
+ */
32
+ type JsonRpcConnectionMap = {
33
+ [chainId: number]: string | string[] | JsonRpcProvider | JsonRpcProvider[];
34
+ };
35
+ /**
36
+ * Object representing the props passed to web3 provider
37
+ * @typedef {Object} WidgetProps
38
+ * @property {desiredChainId|undefined} desiredChainId Optional desired chain id, will trigger the switch network action if different from the current chain id
39
+ * @property {JsonRpcConnectionMap|undefined} jsonRpcUrlMap Optional mapping of your JSON-RPC connections indexed by chainId
40
+ * @property {JsonRpcProvider} provider EIP-1193 provider or JsonRpc Provider
41
+ */
42
+ type WidgetProps = {
43
+ handleClose?: () => void;
44
+ desiredChainId?: number;
45
+ jsonRpcUrlMap?: JsonRpcConnectionMap;
46
+ provider: JsonRpcProvider;
47
+ };
48
+ /**
49
+ * Invoice factoring pool borrow widget props
50
+ * @typedef {Object} InvoiceFactoringBorrowWidgetProps
51
+ * @property {InvoiceFactoringBorrowProps} InvoiceFactoringBorrowProps - Invoice factoring pool borrow props.
52
+ * @property {WidgetProps} WidgetProps - Widget general props.
53
+ */
54
+ type InvoiceFactoringBorrowWidgetProps = InvoiceFactoringBorrowProps & WidgetProps;
55
+ /**
56
+ * Invoice factoring borrow widget
57
+ *
58
+ * @param {InvoiceFactoringBorrowWidgetProps} props - The invoice factoring pool borrow widget props.
59
+ * @returns Invoice factoring pool borrow widget component
60
+ */
61
+ export declare function InvoiceFactoringBorrowWidget(props: InvoiceFactoringBorrowWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
62
+ /**
63
+ * Invoice factoring pool payment widget props
64
+ * @typedef {Object} InvoiceFactoringPaymentWidgetProps
65
+ * @property {InvoiceFactoringPaymentProps} InvoiceFactoringPaymentProps - Invoice factoring pool payment props.
66
+ * @property {WidgetProps} WidgetProps - Widget general props.
67
+ */
68
+ type InvoiceFactoringPaymentWidgetProps = InvoiceFactoringPaymentProps & WidgetProps;
69
+ /**
70
+ * Invoice factoring payment widget
71
+ *
72
+ * @param {InvoiceFactoringPaymentWidgetProps} props - The invoice factoring pool payment widget props.
73
+ * @returns Invoice factoring pool payment widget component
74
+ */
75
+ export declare function InvoiceFactoringPaymentWidget(props: InvoiceFactoringPaymentWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
76
+ /**
77
+ * Credit line pool borrow widget props
78
+ * @typedef {Object} CreditLineBorrowWidgetProps
79
+ * @property {CreditLineBorrowProps} CreditLineBorrowProps - Credit line pool borrow props.
80
+ * @property {WidgetProps} WidgetProps - Widget general props.
81
+ */
82
+ type CreditLineBorrowWidgetProps = CreditLineBorrowProps & WidgetProps;
83
+ /**
84
+ * Credit line borrow widget
85
+ *
86
+ * @param {CreditLineBorrowWidgetProps} props - The credit line pool borrow widget props.
87
+ * @returns Credit line pool borrow widget component
88
+ */
89
+ export declare function CreditLineBorrowWidget(props: CreditLineBorrowWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
90
+ /**
91
+ * Credit line pool borrow widget props V2
92
+ * @typedef {Object} CreditLineBorrowWidgetPropsV2
93
+ * @property {CreditLineBorrowPropsV2} CreditLineBorrowPropsV2 - Credit line pool borrow props V2.
94
+ * @property {WidgetProps} WidgetProps - Widget general props.
95
+ */
96
+ type CreditLineBorrowWidgetPropsV2 = CreditLineBorrowPropsV2 & WidgetProps;
97
+ /**
98
+ * Credit line borrow widget V2
99
+ *
100
+ * @param {CreditLineBorrowWidgetPropsV2} props - The credit line pool borrow widget props V2.
101
+ * @returns Credit line pool borrow widget component V2
102
+ */
103
+ export declare function CreditLineBorrowWidgetV2(props: CreditLineBorrowWidgetPropsV2): import("@emotion/react/jsx-runtime").JSX.Element;
104
+ /**
105
+ * Credit line pool payment widget props
106
+ * @typedef {Object} CreditLinePaymentWidgetProps
107
+ * @property {CreditLinePaymentProps} CreditLinePaymentProps - Credit line pool payment props.
108
+ * @property {WidgetProps} WidgetProps - Widget general props.
109
+ */
110
+ type CreditLinePaymentWidgetProps = CreditLinePaymentProps & WidgetProps;
111
+ /**
112
+ * Credit line payment widget
113
+ *
114
+ * @param {CreditLinePaymentWidgetProps} props - The credit line pool payment widget props.
115
+ * @returns Credit line pool payment widget component
116
+ */
117
+ export declare function CreditLinePaymentWidget(props: CreditLinePaymentWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
118
+ /**
119
+ * Credit line pool payment widget props V2
120
+ * @typedef {Object} CreditLinePaymentWidgetPropsV2
121
+ * @property {CreditLinePaymentPropsV2} CreditLinePaymentPropsV2 - Credit line pool payment props V2.
122
+ * @property {WidgetProps} WidgetProps - Widget general props.
123
+ */
124
+ type CreditLinePaymentWidgetPropsV2 = CreditLinePaymentPropsV2 & WidgetProps;
125
+ /**
126
+ * Credit line payment widget V2
127
+ *
128
+ * @param {CreditLinePaymentWidgetPropsV2} props - The credit line pool payment widget props V2.
129
+ * @returns Credit line pool payment widget component V2
130
+ */
131
+ export declare function CreditLinePaymentWidgetV2(props: CreditLinePaymentWidgetPropsV2): import("@emotion/react/jsx-runtime").JSX.Element;
132
+ /**
133
+ * Credit line allowance approval widget props
134
+ * @typedef {Object} CreditLinePaymentWidgetProps
135
+ * @property {CreditLineApproveProps} CreditLineApproveProps - Credit line allowance approve props.
136
+ * @property {WidgetProps} WidgetProps - Widget general props.
137
+ */
138
+ type CreditLineApproveWidgetProps = CreditLineApproveProps & WidgetProps;
139
+ /**
140
+ * Credit line allowance approve widget to top up a pool's ERC20 token allowance.
141
+ * To be used when re-enabling autopay and other pool actions that require allowance.
142
+ *
143
+ * @param {CreditLineApproveWidgetProps} props - The credit line pool approve widget props.
144
+ * @returns Credit line pool approve widget component
145
+ */
146
+ export declare function CreditLineApproveWidget(props: CreditLineApproveWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
147
+ /**
148
+ * Lend pool supply widget props
149
+ * @typedef {Object} LendSupplyWidgetProps
150
+ * @property {LendSupplyProps} LendSupplyProps - Lend pool supply props.
151
+ * @property {WidgetProps} WidgetProps - Widget general props.
152
+ */
153
+ type LendSupplyWidgetProps = LendSupplyProps & WidgetProps;
154
+ /**
155
+ * Lend supply widget
156
+ *
157
+ * @param {LendSupplyWidgetProps} props - The lend pool supply widget props.
158
+ * @returns Lend pool supply widget component
159
+ */
160
+ export declare function LendSupplyWidget(props: LendSupplyWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
161
+ /**
162
+ * Lend pool supply widget props V2
163
+ * @typedef {Object} LendSupplyWidgetPropsV2
164
+ * @property {LendSupplyPropsV2} LendSupplyPropsV2 - Lend pool supply props V2.
165
+ * @property {WidgetProps} WidgetProps - Widget general props.
166
+ */
167
+ type LendSupplyWidgetPropsV2 = LendSupplyPropsV2 & WidgetProps;
168
+ /**
169
+ * Lend supply widget V2
170
+ *
171
+ * @param {LendSupplyWidgetPropsV2} props - The lend pool supply widget props V2.
172
+ * @returns Lend pool supply widget component V2
173
+ */
174
+ export declare function LendSupplyWidgetV2(props: LendSupplyWidgetPropsV2): import("@emotion/react/jsx-runtime").JSX.Element;
175
+ /**
176
+ * Lend pool withdraw widget props
177
+ * @typedef {Object} LendWithdrawWidgetProps
178
+ * @property {LendWithdrawProps} LendWithdrawProps - Lend pool withdraw props.
179
+ * @property {WidgetProps} WidgetProps - Widget general props.
180
+ */
181
+ type LendWithdrawWidgetProps = LendWithdrawProps & WidgetProps;
182
+ /**
183
+ * Lend withdraw widget
184
+ *
185
+ * @param {LendWithdrawWidgetProps} props The lend pool withdraw widget props
186
+ * @returns Lend pool withdraw widget component
187
+ */
188
+ export declare function LendWithdrawWidget(props: LendWithdrawWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
189
+ /**
190
+ * Lend pool supply widget props V2
191
+ * @typedef {Object} LendWithdrawWidgetPropsV2
192
+ * @property {LendWithdrawPropsV2} LendSupplyPropsV2 - Lend pool supply props V2.
193
+ * @property {WidgetProps} WidgetProps - Widget general props.
194
+ */
195
+ type LendWithdrawWidgetPropsV2 = LendWithdrawPropsV2 & WidgetProps;
196
+ /**
197
+ * Lend withdraw widget V2
198
+ *
199
+ * @param {LendWithdrawWidgetPropsV2} props - The lend pool supply widget props V2.
200
+ * @returns Lend pool supply widget component V2
201
+ */
202
+ export declare function LendWithdrawWidgetV2(props: LendWithdrawWidgetPropsV2): import("@emotion/react/jsx-runtime").JSX.Element;
203
+ /**
204
+ * Lend pool add redemption widget props V2
205
+ * @typedef {Object} AddRedemptionWidgetPropsV2
206
+ * @property {AddRedemptionWidgetPropsV2} AddRedemptionWidgetPropsV2 - Lend pool add redemption props V2.
207
+ * @property {WidgetProps} WidgetProps - Widget general props.
208
+ */
209
+ type AddRedemptionWidgetPropsV2 = AddRedemptionPropsV2 & WidgetProps;
210
+ /**
211
+ * Add redemption widget V2
212
+ *
213
+ * @param {AddRedemptionWidgetPropsV2} props - The lend pool add redemption widget props V2.
214
+ * @returns Lend pool add redemption widget component V2
215
+ */
216
+ export declare function AddRedemptionWidgetV2(props: AddRedemptionWidgetPropsV2): import("@emotion/react/jsx-runtime").JSX.Element;
217
+ /**
218
+ * Lend pool cancel redemption widget props V2
219
+ * @typedef {Object} CancelRedemptionWidgetPropsV2
220
+ * @property {CancelRedemptionWidgetPropsV2} CancelRedemptionWidgetPropsV2 - Lend pool cancel redemption props V2.
221
+ * @property {WidgetProps} WidgetProps - Widget general props.
222
+ */
223
+ type CancelRedemptionWidgetPropsV2 = CancelRedemptionPropsV2 & WidgetProps;
224
+ /**
225
+ * Cancel redemption widget V2
226
+ *
227
+ * @param {CancelRedemptionWidgetPropsV2} props - The lend pool cancel redemption widget props V2.
228
+ * @returns Lend pool cancel redemption widget component V2
229
+ */
230
+ export declare function CancelRedemptionWidgetV2(props: CancelRedemptionWidgetPropsV2): import("@emotion/react/jsx-runtime").JSX.Element;
231
+ /**
232
+ * Supply first loss cover widget props
233
+ * @typedef {Object} SupplyFirstLossCoverWidgetProps
234
+ * @property {SupplyFirstLossCover} SupplyFirstLossCover - Supply first loss cover props.
235
+ * @property {WidgetProps} WidgetProps - Widget general props.
236
+ */
237
+ type SupplyFirstLossCoverWidgetProps = SupplyFirstLossCoverProps & WidgetProps;
238
+ /**
239
+ * Supply first loss cover widget
240
+ *
241
+ * @param {SupplyFirstLossCoverWidgetProps} props - The supply first loss cover widget props.
242
+ * @returns Supply first loss cover widget component
243
+ */
244
+ export declare function SupplyFirstLossCoverWidget(props: SupplyFirstLossCoverWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
245
+ /**
246
+ * Superfluid factoring widget
247
+ *
248
+ * @param {WidgetProps} props - The superfluid factoring widget props.
249
+ * @returns Superfluid factoring widget component
250
+ */
251
+ export declare function SuperfluidFactoringWidget(props: WidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
252
+ /**
253
+ * Auto payback widget props V2
254
+ * @typedef {Object} AutoPaybackWidgetPropsV2
255
+ * @property {AutoPayback} AutoPayback - Auto payback props V2.
256
+ * @property {WidgetProps} WidgetProps - Widget general props.
257
+ */
258
+ type AutoPaybackWidgetPropsV2 = AutoPaybackPropsV2 & WidgetProps;
259
+ /**
260
+ * Supply first loss cover widget
261
+ *
262
+ * @param {SupplyFirstLossCoverWidgetProps} props - The supply first loss cover widget props.
263
+ * @returns Supply first loss cover widget component
264
+ */
265
+ export declare function AutoPaybackWidgetV2(props: AutoPaybackWidgetPropsV2): import("@emotion/react/jsx-runtime").JSX.Element;
266
+ /**
267
+ * Receivable backed credit line pool borrow widget props V2
268
+ * @typedef {Object} ReceivableBackedCreditLineBorrowWidgetPropsV2
269
+ * @property {ReceivableBackedCreditLineBorrowPropsV2} ReceivableBackedCreditLineBorrowPropsV2 - Receivable backed credit line pool borrow props V2.
270
+ * @property {WidgetProps} WidgetProps - Widget general props.
271
+ */
272
+ type ReceivableBackedCreditLineBorrowWidgetPropsV2 = ReceivableBackedCreditLineBorrowPropsV2 & WidgetProps;
273
+ /**
274
+ * Receivable backed credit line borrow widget V2
275
+ *
276
+ * @param {ReceivableBackedCreditLineBorrowWidgetPropsV2} props - The receivable backed credit line pool borrow widget props V2.
277
+ * @returns Receivable backed credit line pool borrow widget component V2
278
+ */
279
+ export declare function ReceivableBackedCreditLineBorrowWidgetV2(props: ReceivableBackedCreditLineBorrowWidgetPropsV2): import("@emotion/react/jsx-runtime").JSX.Element;
280
+ /**
281
+ * Receivable backed credit line pool payment widget props V2
282
+ * @typedef {Object} ReceivableBackedCreditLinePaymentWidgetPropsV2
283
+ * @property {ReceivableBackedCreditLinePaymentPropsV2} ReceivableBackedCreditLinePaymentPropsV2 - Receivable backed credit line pool payment props V2.
284
+ * @property {WidgetProps} WidgetProps - Widget general props.
285
+ */
286
+ type ReceivableBackedCreditLinePaymentWidgetPropsV2 = ReceivableBackedCreditLinePaymentPropsV2 & WidgetProps;
287
+ /**
288
+ * Receivable backed credit line payment widget V2
289
+ *
290
+ * @param {ReceivableBackedCreditLinePaymentWidgetPropsV2} props - The receivable backed credit line pool payment widget props V2.
291
+ * @returns Receivable backed credit line pool payment widget component V2
292
+ */
293
+ export declare function ReceivableBackedCreditLinePaymentWidgetV2(props: ReceivableBackedCreditLinePaymentWidgetPropsV2): import("@emotion/react/jsx-runtime").JSX.Element;
294
+ /**
295
+ * Object representing the props passed to Solana widgets
296
+ * @typedef {Object} GenericWidgetProps
297
+ */
298
+ type GenericWidgetProps = {
299
+ handleClose?: () => void;
300
+ };
301
+ /**
302
+ * Lend pool supply widget props for Solana pools
303
+ * @typedef {Object} SolanaLendSupplyWidgetProps
304
+ */
305
+ type SolanaLendSupplyWidgetProps = SolanaLendSupplyProps & GenericWidgetProps;
306
+ /**
307
+ * Lend pool supply widget for Solana pools
308
+ *
309
+ * @param {SolanaLendSupplyWidgetProps} props - Widget props
310
+ */
311
+ export declare function SolanaLendSupplyWidget(props: SolanaLendSupplyWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
312
+ /**
313
+ * Lend pool supply widget props for Solana pools
314
+ * @typedef {Object} SolanaLendAddRedemptionWidgetProps
315
+ */
316
+ type SolanaLendAddRedemptionWidgetProps = SolanaLendAddRedemptionProps & GenericWidgetProps;
317
+ /**
318
+ * Lend pool supply widget for Solana pools
319
+ *
320
+ * @param {SolanaLendAddRedemptionWidgetProps} props - Widget props
321
+ */
322
+ export declare function SolanaLendAddRedemptionWidget(props: SolanaLendAddRedemptionWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
323
+ /**
324
+ * Lend pool supply widget props for Solana pools
325
+ * @typedef {Object} SolanaLendCancelRedemptionWidgetProps
326
+ */
327
+ type SolanaLendCancelRedemptionWidgetProps = SolanaLendCancelRedemptionProps & GenericWidgetProps;
328
+ /**
329
+ * Lend pool supply widget for Solana pools
330
+ *
331
+ * @param {SolanaLendCancelRedemptionWidgetProps} props - Widget props
332
+ */
333
+ export declare function SolanaLendCancelRedemptionWidget(props: SolanaLendCancelRedemptionWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
334
+ /**
335
+ * Lend pool supply widget props for Solana pools
336
+ * @typedef {Object} SolanaBorrowWidgetProps
337
+ */
338
+ type SolanaBorrowWidgetProps = SolanaBorrowProps & GenericWidgetProps;
339
+ /**
340
+ * Lend pool supply widget for Solana pools
341
+ *
342
+ * @param {SolanaBorrowWidgetProps} props - Widget props
343
+ */
344
+ export declare function SolanaBorrowWidget(props: SolanaBorrowWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
345
+ /**
346
+ * Lend pool supply widget props for Solana pools
347
+ * @typedef {Object} SolanaPaymentWidgetProps
348
+ */
349
+ type SolanaPaymentWidgetProps = SolanaPaymentProps & GenericWidgetProps;
350
+ /**
351
+ * Lend pool supply widget for Solana pools
352
+ *
353
+ * @param {SolanaPaymentWidgetProps} props - Widget props
354
+ */
355
+ export declare function SolanaPaymentWidget(props: SolanaPaymentWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
356
+ /**
357
+ * Solana lend withdraw widget
358
+ *
359
+ * @param {SolanaLendWithdrawProps} props - The solana lend pool withdraw widget props.
360
+ * @returns Solana lend pool withdraw widget component
361
+ */
362
+ export declare function SolanaLendWithdrawWidget(props: SolanaLendWithdrawProps): import("@emotion/react/jsx-runtime").JSX.Element;
363
+ /**
364
+ * Lend pool supply widget props for Stellar pools
365
+ * @typedef {Object} StellarLendSupplyWidgetProps
366
+ */
367
+ type StellarLendSupplyWidgetProps = StellarLendSupplyProps & GenericWidgetProps;
368
+ /**
369
+ * Lend pool supply widget for Stellar pools
370
+ *
371
+ * @param {StellarLendSupplyWidgetProps} props - Widget props
372
+ */
373
+ export declare function StellarLendSupplyWidget(props: StellarLendSupplyWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
374
+ /**
375
+ * Lend pool supply widget props for Solana pools
376
+ * @typedef {Object} SolanaEnableAutoRedemptionWidgetProps
377
+ */
378
+ type SolanaEnableAutoRedemptionWidgetProps = SolanaEnableAutoRedemptionProps & GenericWidgetProps;
379
+ /**
380
+ * Lend pool supply widget for Solana pools
381
+ *
382
+ * @param {SolanaEnableAutoRedemptionWidgetProps} props - Widget props
383
+ */
384
+ export declare function SolanaEnableAutoRedemptionWidget(props: SolanaEnableAutoRedemptionWidgetProps): import("@emotion/react/jsx-runtime").JSX.Element;
385
+ export * from './components/Notifi/NotifiContextWrapper';
@@ -0,0 +1,3 @@
1
+ import { ReportHandler } from 'web-vitals';
2
+ declare const reportWebVitals: (onPerfEntry?: ReportHandler) => void;
3
+ export default reportWebVitals;
File without changes
@@ -0,0 +1,10 @@
1
+ import { Action, ActionCreator, AnyAction, ThunkAction } from '@reduxjs/toolkit';
2
+ export declare const store: import('@reduxjs/toolkit/dist/configureStore').ToolkitStore<{
3
+ widget: import('./widgets.store').WidgetState;
4
+ }, AnyAction, [import('@reduxjs/toolkit').ThunkMiddleware<{
5
+ widget: import('./widgets.store').WidgetState;
6
+ }, AnyAction>]>;
7
+ export type AppDispatch = typeof store.dispatch;
8
+ export type RootState = ReturnType<typeof store.getState>;
9
+ export type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
10
+ export type AppActionThunk<ReturnType = void> = ActionCreator<ThunkAction<ReturnType, RootState, unknown, AnyAction>>;
@@ -0,0 +1,56 @@
1
+ import { Approval } from '../../../huma-shared/src';
2
+ import { PayloadAction } from '@reduxjs/toolkit';
3
+ import { MultisendPayload, WIDGET_STEP, WidgetStream } from './widgets.store';
4
+ export declare const widgetSlice: import('@reduxjs/toolkit').Slice<import('./widgets.store').WidgetState, {
5
+ resetState: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>) => void;
6
+ setStep: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<WIDGET_STEP>) => void;
7
+ setApproval: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<Approval & {
8
+ nextStep: WIDGET_STEP;
9
+ }>) => void;
10
+ setBorrowInfo: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload, }: PayloadAction<{
11
+ borrowAmount: number;
12
+ borrowAmountBN: JSON;
13
+ chargedFees: number;
14
+ nextStep: WIDGET_STEP;
15
+ remainder?: number;
16
+ }>) => void;
17
+ setTokenId: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<string>) => void;
18
+ setPaymentAmount: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload, }: PayloadAction<{
19
+ paymentAmount: number;
20
+ remainDueAmount?: number;
21
+ }>) => void;
22
+ setSupplyAmount: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<number>) => void;
23
+ setWithdrawAmount: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<number>) => void;
24
+ setWithdrawShares: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<number>) => void;
25
+ setRedeemAmount: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<number>) => void;
26
+ setRedeemShares: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<number>) => void;
27
+ setStream: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<WidgetStream>) => void;
28
+ setMultisend: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<MultisendPayload>) => void;
29
+ setSolanaSignature: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<string>) => void;
30
+ setTxHash: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<string>) => void;
31
+ setPointsAccumulated: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload }: PayloadAction<number | undefined>) => void;
32
+ setError: (state: import('immer/dist/internal').WritableDraft<import('./widgets.store').WidgetState>, { payload, }: PayloadAction<{
33
+ errorMessage: string;
34
+ errorReason?: string;
35
+ }>) => void;
36
+ }, "widget">;
37
+ export declare const resetState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"widget/resetState">, setStep: import('@reduxjs/toolkit').ActionCreatorWithPayload<WIDGET_STEP, "widget/setStep">, setApproval: import('@reduxjs/toolkit').ActionCreatorWithPayload<Approval & {
38
+ nextStep: WIDGET_STEP;
39
+ }, "widget/setApproval">, setBorrowInfo: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
40
+ borrowAmount: number;
41
+ borrowAmountBN: JSON;
42
+ chargedFees: number;
43
+ nextStep: WIDGET_STEP;
44
+ remainder?: number;
45
+ }, "widget/setBorrowInfo">, setError: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
46
+ errorMessage: string;
47
+ errorReason?: string;
48
+ }, "widget/setError">, setTokenId: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "widget/setTokenId">, setPaymentAmount: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
49
+ paymentAmount: number;
50
+ remainDueAmount?: number;
51
+ }, "widget/setPaymentAmount">, setStream: import('@reduxjs/toolkit').ActionCreatorWithPayload<Partial<{
52
+ borrowFlowrate: string;
53
+ durationInSeconds: number;
54
+ }>, "widget/setStream">, setMultisend: import('@reduxjs/toolkit').ActionCreatorWithPayload<MultisendPayload, "widget/setMultisend">, setSupplyAmount: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "widget/setSupplyAmount">, setWithdrawAmount: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "widget/setWithdrawAmount">, setWithdrawShares: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "widget/setWithdrawShares">, setRedeemAmount: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "widget/setRedeemAmount">, setRedeemShares: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "widget/setRedeemShares">, setSolanaSignature: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "widget/setSolanaSignature">, setTxHash: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "widget/setTxHash">, setPointsAccumulated: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<number | undefined, "widget/setPointsAccumulated">;
55
+ declare const _default: import('redux').Reducer<import('./widgets.store').WidgetState>;
56
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { RootState } from '.';
2
+ export declare const selectWidgetState: (state: RootState) => import('./widgets.store').WidgetState;
@@ -0,0 +1,59 @@
1
+ import { Approval } from '../../../huma-shared/src';
2
+ export declare enum WIDGET_TYPE {
3
+ BORROW = "BORROW",
4
+ PAYMENT = "PAYMENT"
5
+ }
6
+ export declare enum WIDGET_STEP {
7
+ SignIn = "SignIn",
8
+ ChooseTranche = "ChooseTranche",
9
+ ChoosePaymentType = "ChoosePaymentType",
10
+ Evaluation = "Evaluation",
11
+ FirstLossCover = "FirstLossCover",
12
+ ChooseAmount = "ChooseAmount",
13
+ ApproveLender = "ApproveLender",
14
+ Permit = "Permit",
15
+ ApproveAllowance = "ApproveAllowance",
16
+ MintNFT = "MintNFT",
17
+ ConfirmTransfer = "ConfirmTransfer",
18
+ ApproveNFT = "ApproveNFT",
19
+ Transfer = "Transfer",
20
+ CheckWithdrawable = "CheckWithdrawable",
21
+ Notifications = "Notifications",
22
+ PointsEarned = "PointsEarned",
23
+ Done = "Done",
24
+ Error = "Error"
25
+ }
26
+ export type WidgetStream = Partial<{
27
+ borrowFlowrate: string;
28
+ durationInSeconds: number;
29
+ }>;
30
+ export type MultisendPayload = {
31
+ addresses: any[];
32
+ callData: any[];
33
+ };
34
+ export type WidgetState = {
35
+ step?: WIDGET_STEP;
36
+ type?: WIDGET_TYPE;
37
+ approval?: Approval;
38
+ borrowAmount?: number;
39
+ borrowAmountBN?: JSON;
40
+ chargedFees?: number;
41
+ borrowAmountNet?: number;
42
+ remainder?: number;
43
+ paymentAmount?: number;
44
+ remainDueAmount?: number;
45
+ supplyAmount?: number;
46
+ withdrawAmount?: number;
47
+ withdrawShares?: number;
48
+ redeemAmount?: number;
49
+ redeemShares?: number;
50
+ errorMessage?: string;
51
+ errorReason?: string;
52
+ tokenId?: string;
53
+ stream?: WidgetStream;
54
+ multisend?: MultisendPayload;
55
+ solanaSignature?: string;
56
+ pointsAccumulated?: number;
57
+ txHash?: string;
58
+ };
59
+ export declare const initialWidgetState: WidgetState;
@@ -0,0 +1,5 @@
1
+ import { Breakpoints } from '@mui/system';
2
+ export declare const breakpoints: Partial<{
3
+ step: number;
4
+ unit: string;
5
+ } & Breakpoints>;
@@ -0,0 +1,2 @@
1
+ import { Theme, ThemeOptions } from '@mui/material';
2
+ export declare function components(theme: Theme): ThemeOptions['components'];
@@ -0,0 +1,18 @@
1
+ export declare const coreThemeConstants: {
2
+ borderRadius: {
3
+ md: number;
4
+ };
5
+ fontFamily: string;
6
+ letterSpacing: {
7
+ lg: string;
8
+ md: string;
9
+ sm: string;
10
+ xs: string;
11
+ };
12
+ lineHeight: {
13
+ lg: number;
14
+ md: number;
15
+ xl: number;
16
+ };
17
+ spacingBase: number;
18
+ };
@@ -0,0 +1,20 @@
1
+ import { SerializedStyles } from '@emotion/react';
2
+ export declare const cssMixins: {
3
+ appHeaderHeight: string;
4
+ appFooterHeight: string;
5
+ colCentered: SerializedStyles;
6
+ colHCentered: SerializedStyles;
7
+ colStretch: SerializedStyles;
8
+ colVCentered: SerializedStyles;
9
+ rowCentered: SerializedStyles;
10
+ rowHCentered: SerializedStyles;
11
+ rowStretch: SerializedStyles;
12
+ rowSpaceBetweened: SerializedStyles;
13
+ rowFlexEnd: SerializedStyles;
14
+ rowVCentered: SerializedStyles;
15
+ spaceSimpleH: (spacing: number) => SerializedStyles;
16
+ spaceSimpleV: (spacing: number) => SerializedStyles;
17
+ stretchAll: SerializedStyles;
18
+ stretchBottom: SerializedStyles;
19
+ stretchTop: SerializedStyles;
20
+ };
@@ -0,0 +1,12 @@
1
+ import { Theme } from '@mui/material';
2
+ type UseGetSizesType = {
3
+ isAboveSm: boolean;
4
+ isBelowLgSize: boolean;
5
+ isBelowMdSize: boolean;
6
+ isLgSize: boolean;
7
+ isMediumSize: boolean;
8
+ isMobileDisplay: boolean;
9
+ isXsSize: boolean;
10
+ };
11
+ export declare function useGetSizes(theme: Theme): UseGetSizesType;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export declare const themeHuma: import('@mui/material').Theme;
@@ -0,0 +1,53 @@
1
+ import { ThemeOptions } from '@mui/material';
2
+ export declare const primaryPurple = "#b246ff";
3
+ export declare const primaryBlueLight = "#4473EB";
4
+ export declare const primaryGradient = "linear-gradient(232.71deg, #A363F4 4.17%, #FF6A8A 178.69%);";
5
+ export declare const pendingBlueDark = "#1148B2";
6
+ export declare const pendingBlue = "#226BF9";
7
+ export declare const pendingBlueMid = "#4584FF";
8
+ export declare const pendingBlueLight = "#79A5FB";
9
+ export declare const warningRed = "#D01638";
10
+ export declare const warningRedMid = "#E71E44";
11
+ export declare const warningRedLight = "#FF4366";
12
+ export declare const warningRedPastel = "#FF708B";
13
+ export declare const backgroundBlue = "#081824";
14
+ export declare const darkBackground = "#0C2436";
15
+ export declare const white = "#FFFFFF";
16
+ export declare const black: {
17
+ 1: string;
18
+ 2: string;
19
+ 3: string;
20
+ 4: string;
21
+ 5: string;
22
+ 6: string;
23
+ };
24
+ export declare const orange: {
25
+ 100: string;
26
+ 300: string;
27
+ 500: string;
28
+ 700: string;
29
+ };
30
+ export declare const blue: {
31
+ 50: string;
32
+ 100: string;
33
+ 200: string;
34
+ 300: string;
35
+ 500: string;
36
+ 800: string;
37
+ };
38
+ export declare const red: {
39
+ 50: string;
40
+ 100: string;
41
+ 200: string;
42
+ 300: string;
43
+ 500: string;
44
+ 800: string;
45
+ };
46
+ export declare const purple: {
47
+ 100: string;
48
+ 200: string;
49
+ 300: string;
50
+ 500: string;
51
+ 800: string;
52
+ };
53
+ export declare const paletteCore: ThemeOptions['palette'];
@@ -0,0 +1,2 @@
1
+ import { ThemeOptions } from '@mui/material';
2
+ export declare const shape: ThemeOptions['shape'];