@huma-finance/widgets 0.0.73-beta.924 → 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.
- package/.env.example +3 -3
- package/{.eslintrc.js → .eslintrc.cjs} +1 -2
- package/.prettierrc.json +16 -0
- package/API.md +1 -1
- package/dist/index.js +220452 -11018
- package/dist/src/components/ApolloWrapper.d.ts +4 -0
- package/dist/src/components/ApproveAllowanceModal.d.ts +13 -0
- package/dist/src/components/ApproveAllowanceModalV2.d.ts +14 -0
- package/dist/src/components/BottomButton.d.ts +9 -0
- package/dist/src/components/ChainSupportProvider.d.ts +2 -0
- package/dist/src/components/ChooseAmountModal.d.ts +23 -0
- package/dist/src/components/ConfirmTransferModal.d.ts +19 -0
- package/dist/src/components/CreditLine/approve/1-ApproveAllowance.d.ts +9 -0
- package/dist/src/components/CreditLine/approve/2-Success.d.ts +8 -0
- package/dist/src/components/CreditLine/approve/index.d.ts +20 -0
- package/dist/src/components/CreditLine/autoPaybackV2/1-ApproveAllowance.d.ts +8 -0
- package/dist/src/components/CreditLine/autoPaybackV2/2-Success.d.ts +6 -0
- package/dist/src/components/CreditLine/autoPaybackV2/index.d.ts +15 -0
- package/dist/src/components/CreditLine/borrow/1-Evaluation.d.ts +8 -0
- package/dist/src/components/CreditLine/borrow/2-ChooseAmount.d.ts +8 -0
- package/dist/src/components/CreditLine/borrow/3-ApproveAllowance.d.ts +7 -0
- package/dist/src/components/CreditLine/borrow/4-Transfer.d.ts +7 -0
- package/dist/src/components/CreditLine/borrow/5-Success.d.ts +10 -0
- package/dist/src/components/CreditLine/borrow/6-Notifications.d.ts +6 -0
- package/dist/src/components/CreditLine/borrow/index.d.ts +19 -0
- package/dist/src/components/CreditLine/borrowV2/1-ChooseAmount.d.ts +9 -0
- package/dist/src/components/CreditLine/borrowV2/2-ApproveAllowance.d.ts +8 -0
- package/dist/src/components/CreditLine/borrowV2/3-Transfer.d.ts +7 -0
- package/dist/src/components/CreditLine/borrowV2/4-Success.d.ts +10 -0
- package/dist/src/components/CreditLine/borrowV2/5-Notifications.d.ts +6 -0
- package/dist/src/components/CreditLine/borrowV2/index.d.ts +15 -0
- package/dist/src/components/CreditLine/payment/1-ChooseAmount.d.ts +9 -0
- package/dist/src/components/CreditLine/payment/2-ApproveAllowance.d.ts +7 -0
- package/dist/src/components/CreditLine/payment/3-Transfer.d.ts +7 -0
- package/dist/src/components/CreditLine/payment/4-Success.d.ts +8 -0
- package/dist/src/components/CreditLine/payment/index.d.ts +17 -0
- package/dist/src/components/CreditLine/paymentV2/1-ChooseAmount.d.ts +11 -0
- package/dist/src/components/CreditLine/paymentV2/2-ApproveAllowance.d.ts +8 -0
- package/dist/src/components/CreditLine/paymentV2/3-Transfer.d.ts +8 -0
- package/dist/src/components/CreditLine/paymentV2/4-Success.d.ts +8 -0
- package/dist/src/components/CreditLine/paymentV2/index.d.ts +15 -0
- package/dist/src/components/CreditLine/solanaBorrow/1-ChooseAmount.d.ts +9 -0
- package/dist/src/components/CreditLine/solanaBorrow/2-Transfer.d.ts +7 -0
- package/dist/src/components/CreditLine/solanaBorrow/3-Done.d.ts +10 -0
- package/dist/src/components/CreditLine/solanaBorrow/index.d.ts +17 -0
- package/dist/src/components/CreditLine/solanaPayment/1-ChooseAmount.d.ts +9 -0
- package/dist/src/components/CreditLine/solanaPayment/2-Transfer.d.ts +7 -0
- package/dist/src/components/CreditLine/solanaPayment/3-Done.d.ts +8 -0
- package/dist/src/components/CreditLine/solanaPayment/index.d.ts +14 -0
- package/dist/src/components/CreditLine/supplyFLC/1-ApproveAllowance.d.ts +10 -0
- package/dist/src/components/CreditLine/supplyFLC/2-Transfer.d.ts +10 -0
- package/dist/src/components/CreditLine/supplyFLC/3-Success.d.ts +10 -0
- package/dist/src/components/CreditLine/supplyFLC/index.d.ts +15 -0
- package/dist/src/components/ErrorModal.d.ts +12 -0
- package/dist/src/components/HumaLoading.d.ts +7 -0
- package/dist/src/components/HumaSnackBar.d.ts +10 -0
- package/dist/src/components/InputAmountModal.d.ts +18 -0
- package/dist/src/components/InvoiceFactoring/borrow/1-Evaluation.d.ts +8 -0
- package/dist/src/components/InvoiceFactoring/borrow/2-ChooseAmount.d.ts +8 -0
- package/dist/src/components/InvoiceFactoring/borrow/3-ConfirmTransfer.d.ts +2 -0
- package/dist/src/components/InvoiceFactoring/borrow/4-ApproveNFT.d.ts +8 -0
- package/dist/src/components/InvoiceFactoring/borrow/5-Transfer.d.ts +8 -0
- package/dist/src/components/InvoiceFactoring/borrow/6-Success.d.ts +6 -0
- package/dist/src/components/InvoiceFactoring/borrow/index.d.ts +20 -0
- package/dist/src/components/InvoiceFactoring/payment/1-ChooseAmount.d.ts +8 -0
- package/dist/src/components/InvoiceFactoring/payment/2-ApproveAllowance.d.ts +7 -0
- package/dist/src/components/InvoiceFactoring/payment/3-Transfer.d.ts +7 -0
- package/dist/src/components/InvoiceFactoring/payment/4-Success.d.ts +8 -0
- package/dist/src/components/InvoiceFactoring/payment/index.d.ts +17 -0
- package/dist/src/components/Lend/addRedemptionV2/1-ChooseTranche.d.ts +8 -0
- package/dist/src/components/Lend/addRedemptionV2/2-ChooseAmount.d.ts +10 -0
- package/dist/src/components/Lend/addRedemptionV2/3-Transfer.d.ts +10 -0
- package/dist/src/components/Lend/addRedemptionV2/4-Done.d.ts +6 -0
- package/dist/src/components/Lend/addRedemptionV2/index.d.ts +23 -0
- package/dist/src/components/Lend/cancelRedemptionV2 /1-Transfer.d.ts +10 -0
- package/dist/src/components/Lend/cancelRedemptionV2 /2-Done.d.ts +10 -0
- package/dist/src/components/Lend/cancelRedemptionV2 /index.d.ts +22 -0
- package/dist/src/components/Lend/components/ApproveLenderBase.d.ts +14 -0
- package/dist/src/components/Lend/components/PersonaEvaluation.d.ts +17 -0
- package/dist/src/components/Lend/components/SecuritizeEvaluation.d.ts +8 -0
- package/dist/src/components/Lend/solanaAddRedemption/1-ChooseTranche.d.ts +8 -0
- package/dist/src/components/Lend/solanaAddRedemption/2-ChooseAmount.d.ts +11 -0
- package/dist/src/components/Lend/solanaAddRedemption/3-Transfer.d.ts +8 -0
- package/dist/src/components/Lend/solanaAddRedemption/4-Done.d.ts +8 -0
- package/dist/src/components/Lend/solanaAddRedemption/index.d.ts +19 -0
- package/dist/src/components/Lend/solanaCancelRedemption/1-ChooseTranche.d.ts +8 -0
- package/dist/src/components/Lend/solanaCancelRedemption/2-Transfer.d.ts +11 -0
- package/dist/src/components/Lend/solanaCancelRedemption/3-Done.d.ts +11 -0
- package/dist/src/components/Lend/solanaCancelRedemption/index.d.ts +16 -0
- package/dist/src/components/Lend/solanaEnableAutoRedemption/1-ApproveAllowance.d.ts +7 -0
- package/dist/src/components/Lend/solanaEnableAutoRedemption/2-Transfer.d.ts +9 -0
- package/dist/src/components/Lend/solanaEnableAutoRedemption/3-Success.d.ts +10 -0
- package/dist/src/components/Lend/solanaEnableAutoRedemption/index.d.ts +18 -0
- package/dist/src/components/Lend/solanaSupply/1-Evaluation.d.ts +12 -0
- package/dist/src/components/Lend/solanaSupply/2-ApproveLender.d.ts +10 -0
- package/dist/src/components/Lend/solanaSupply/3-ChooseTranche.d.ts +9 -0
- package/dist/src/components/Lend/solanaSupply/4-ChooseAmount.d.ts +13 -0
- package/dist/src/components/Lend/solanaSupply/5-ApproveAllowance.d.ts +7 -0
- package/dist/src/components/Lend/solanaSupply/6-Transfer.d.ts +11 -0
- package/dist/src/components/Lend/solanaSupply/7-Success.d.ts +12 -0
- package/dist/src/components/Lend/solanaSupply/8-PointsEarned.d.ts +11 -0
- package/dist/src/components/Lend/solanaSupply/index.d.ts +24 -0
- package/dist/src/components/Lend/solanaWithdraw/1-ConfirmTransfer.d.ts +9 -0
- package/dist/src/components/Lend/solanaWithdraw/2-Transfer.d.ts +9 -0
- package/dist/src/components/Lend/solanaWithdraw/3-Done.d.ts +10 -0
- package/dist/src/components/Lend/solanaWithdraw/index.d.ts +25 -0
- package/dist/src/components/Lend/stellarSupply/1-Evaluation.d.ts +4 -0
- package/dist/src/components/Lend/stellarSupply/2-ChooseTranche.d.ts +9 -0
- package/dist/src/components/Lend/stellarSupply/3-ChooseAmount.d.ts +12 -0
- package/dist/src/components/Lend/stellarSupply/4-Transfer.d.ts +8 -0
- package/dist/src/components/Lend/stellarSupply/5-Success.d.ts +10 -0
- package/dist/src/components/Lend/stellarSupply/index.d.ts +22 -0
- package/dist/src/components/Lend/supply/1-Evaluation/EvaluationEA.d.ts +8 -0
- package/dist/src/components/Lend/supply/1-Evaluation/EvaluationKYC.d.ts +8 -0
- package/dist/src/components/Lend/supply/1-Evaluation/index.d.ts +9 -0
- package/dist/src/components/Lend/supply/2-ChooseAmount.d.ts +11 -0
- package/dist/src/components/Lend/supply/3-ApproveAllowance.d.ts +7 -0
- package/dist/src/components/Lend/supply/4-Transfer.d.ts +7 -0
- package/dist/src/components/Lend/supply/5-Success.d.ts +9 -0
- package/dist/src/components/Lend/supply/6-Notifications.d.ts +6 -0
- package/dist/src/components/Lend/supply/index.d.ts +17 -0
- package/dist/src/components/Lend/supplyV2/1-ChooseTranche.d.ts +9 -0
- package/dist/src/components/Lend/supplyV2/2-Evaluation.d.ts +12 -0
- package/dist/src/components/Lend/supplyV2/3-ApproveLender.d.ts +10 -0
- package/dist/src/components/Lend/supplyV2/4-ChooseAmount.d.ts +14 -0
- package/dist/src/components/Lend/supplyV2/5-ApproveAllowance.d.ts +7 -0
- package/dist/src/components/Lend/supplyV2/6-Transfer.d.ts +11 -0
- package/dist/src/components/Lend/supplyV2/7-Success.d.ts +13 -0
- package/dist/src/components/Lend/supplyV2/8-Notifications.d.ts +8 -0
- package/dist/src/components/Lend/supplyV2/index.d.ts +23 -0
- package/dist/src/components/Lend/withdraw/1-CheckWithdrawble.d.ts +8 -0
- package/dist/src/components/Lend/withdraw/2-ChooseAmount.d.ts +10 -0
- package/dist/src/components/Lend/withdraw/3-Transfer.d.ts +7 -0
- package/dist/src/components/Lend/withdraw/4-Success.d.ts +8 -0
- package/dist/src/components/Lend/withdraw/index.d.ts +17 -0
- package/dist/src/components/Lend/withdrawV2/1-ConfirmTransfer.d.ts +11 -0
- package/dist/src/components/Lend/withdrawV2/2-Transfer.d.ts +9 -0
- package/dist/src/components/Lend/withdrawV2/3-Done.d.ts +10 -0
- package/dist/src/components/Lend/withdrawV2/index.d.ts +17 -0
- package/dist/src/components/LoadingModal.d.ts +9 -0
- package/dist/src/components/Notifi/NotifiContextWrapper.d.ts +7 -0
- package/dist/src/components/Notifi/NotifiSubscriptionModal.d.ts +7 -0
- package/dist/src/components/NumericFormatCustom.d.ts +14 -0
- package/dist/src/components/PointsEarned.d.ts +10 -0
- package/dist/src/components/ReceivableBackedCreditLine/borrow/1-ChooseAmount.d.ts +10 -0
- package/dist/src/components/ReceivableBackedCreditLine/borrow/2-ApproveAllowance.d.ts +8 -0
- package/dist/src/components/ReceivableBackedCreditLine/borrow/3-ApproveReceivable.d.ts +8 -0
- package/dist/src/components/ReceivableBackedCreditLine/borrow/4-Transfer.d.ts +8 -0
- package/dist/src/components/ReceivableBackedCreditLine/borrow/5-Success.d.ts +10 -0
- package/dist/src/components/ReceivableBackedCreditLine/borrow/6-Notifications.d.ts +6 -0
- package/dist/src/components/ReceivableBackedCreditLine/borrow/index.d.ts +17 -0
- package/dist/src/components/ReceivableBackedCreditLine/payment/1-ChoosePaymentType.d.ts +8 -0
- package/dist/src/components/ReceivableBackedCreditLine/payment/2-ChooseAmount.d.ts +12 -0
- package/dist/src/components/ReceivableBackedCreditLine/payment/3-ApproveAllowance.d.ts +10 -0
- package/dist/src/components/ReceivableBackedCreditLine/payment/4-CreateReceivable.d.ts +9 -0
- package/dist/src/components/ReceivableBackedCreditLine/payment/5-ApproveReceivable.d.ts +8 -0
- package/dist/src/components/ReceivableBackedCreditLine/payment/6-Transfer.d.ts +14 -0
- package/dist/src/components/ReceivableBackedCreditLine/payment/7-Success.d.ts +12 -0
- package/dist/src/components/ReceivableBackedCreditLine/payment/index.d.ts +21 -0
- package/dist/src/components/SignIn.d.ts +6 -0
- package/dist/src/components/SolanaErrorModal.d.ts +13 -0
- package/dist/src/components/SolanaTxDoneModal.d.ts +12 -0
- package/dist/src/components/SolanaTxSendModal.d.ts +12 -0
- package/dist/src/components/SolanaViewOnExplorer.d.ts +8 -0
- package/dist/src/components/StellarTxDoneModal.d.ts +12 -0
- package/dist/src/components/StellarTxSendModal.d.ts +8 -0
- package/dist/src/components/StellarViewOnExplorer.d.ts +8 -0
- package/dist/src/components/StreamFactoring/borrow/1-Evaluation.d.ts +9 -0
- package/dist/src/components/StreamFactoring/borrow/2-ChooseAmount.d.ts +8 -0
- package/dist/src/components/StreamFactoring/borrow/3-ConfirmTransfer.d.ts +2 -0
- package/dist/src/components/StreamFactoring/borrow/4-ApproveAllowance.d.ts +7 -0
- package/dist/src/components/StreamFactoring/borrow/5-Permit.d.ts +10 -0
- package/dist/src/components/StreamFactoring/borrow/6-Transfer.d.ts +7 -0
- package/dist/src/components/StreamFactoring/borrow/7-Success.d.ts +6 -0
- package/dist/src/components/StreamFactoring/borrow/index.d.ts +13 -0
- package/dist/src/components/StreamFactoring/payment/ChooseAmount.d.ts +8 -0
- package/dist/src/components/StreamFactoring/payment/Success.d.ts +8 -0
- package/dist/src/components/StreamFactoring/payment/Transfer.d.ts +7 -0
- package/dist/src/components/StreamFactoring/payment/index.d.ts +10 -0
- package/dist/src/components/SuperfluidFactoring/index.d.ts +12 -0
- package/dist/src/components/TxDoneModal.d.ts +9 -0
- package/dist/src/components/TxSendModal.d.ts +13 -0
- package/dist/src/components/TxSendModalV2.d.ts +13 -0
- package/dist/src/components/ViewOnExplorer.d.ts +6 -0
- package/dist/src/components/WidgetWrapper.d.ts +11 -0
- package/dist/src/components/WrapperModal.d.ts +8 -0
- package/dist/src/components/buttons/TableActionButton.d.ts +8 -0
- package/dist/src/components/buttons/index.d.ts +1 -0
- package/dist/src/components/humaModal/HumaModal.d.ts +13 -0
- package/dist/src/components/humaModal/HumaModalHeader.d.ts +12 -0
- package/dist/src/components/humaModal/index.d.ts +2 -0
- package/dist/src/components/icons/index.d.ts +23 -0
- package/dist/src/components/images/index.d.ts +3 -0
- package/dist/src/cosmos/CreditLineBorrow.fixture.d.ts +2 -0
- package/dist/src/cosmos/CreditLinePayment.fixture.d.ts +2 -0
- package/dist/src/cosmos/InvoiceFactoringBorrow.fixture.d.ts +2 -0
- package/dist/src/cosmos/InvoiceFactoringPayment.fixture.d.ts +2 -0
- package/dist/src/cosmos/LendSupply.fixture.d.ts +2 -0
- package/dist/src/cosmos/LendWithdraw.fixture.d.ts +2 -0
- package/dist/src/cosmos/SDKTesting.fixture.d.ts +2 -0
- package/dist/src/cosmos/SuperfluidFactoringBorrow.fixture.d.ts +2 -0
- package/dist/src/cosmos/WalletWrapper.d.ts +3 -0
- package/dist/src/cosmos/utils/index.d.ts +18 -0
- package/dist/src/hooks/useEA.d.ts +8 -0
- package/dist/src/hooks/useElementDimensions.d.ts +5 -0
- package/dist/src/hooks/useNotifi.d.ts +10 -0
- package/dist/src/hooks/useRedux.d.ts +6 -0
- package/dist/src/index.d.ts +385 -0
- package/dist/src/reportWebVitals.d.ts +3 -0
- package/dist/src/setupTests.d.ts +0 -0
- package/dist/src/store/index.d.ts +10 -0
- package/dist/src/store/widgets.reducers.d.ts +56 -0
- package/dist/src/store/widgets.selectors.d.ts +2 -0
- package/dist/src/store/widgets.store.d.ts +59 -0
- package/dist/src/theme/breakpoints.d.ts +5 -0
- package/dist/src/theme/components.d.ts +2 -0
- package/dist/src/theme/coreThemeConstants.d.ts +18 -0
- package/dist/src/theme/cssMixins.d.ts +20 -0
- package/dist/src/theme/hooks/useGetSizes.d.ts +12 -0
- package/dist/src/theme/index.d.ts +2 -0
- package/dist/src/theme/palette.d.ts +53 -0
- package/dist/src/theme/shape.d.ts +2 -0
- package/dist/src/theme/theme.types.d.ts +71 -0
- package/dist/src/theme/typography.d.ts +2 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +21 -34
- package/src/components/Lend/components/ApproveLenderBase.tsx +6 -3
- package/src/components/Lend/components/PersonaEvaluation.tsx +5 -2
- package/src/components/Lend/components/SecuritizeEvaluation.tsx +5 -2
- package/src/components/Lend/solanaSupply/6-Transfer.tsx +1 -1
- package/src/components/Lend/solanaSupply/8-PointsEarned.tsx +6 -2
- package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +5 -2
- package/src/components/Lend/supplyV2/2-Evaluation.tsx +2 -2
- package/src/components/Lend/supplyV2/3-ApproveLender.tsx +1 -1
- package/src/components/Lend/supplyV2/6-Transfer.tsx +1 -2
- package/src/components/Lend/supplyV2/index.tsx +1 -1
- package/src/components/Notifi/NotifiContextWrapper.tsx +3 -3
- package/src/components/icons/index.tsx +21 -21
- package/src/cosmos/InvoiceFactoringBorrow.fixture.tsx +1 -1
- package/src/cosmos/SuperfluidFactoringBorrow.fixture.tsx +2 -4
- package/src/cosmos/utils/index.ts +4 -2
- package/src/hooks/useEA.ts +1 -2
- package/src/hooks/useNotifi.ts +1 -1
- package/src/index.tsx +4 -7
- package/tsconfig.json +20 -17
- package/vite-env.d.ts +2 -0
- package/vite.config.ts +48 -0
- package/webpack.cosmos.js +1 -1
- package/.prettierrc.js +0 -16
- package/babel.config.js +0 -15
- package/config-overrides.js +0 -9
- package/dist/cjs/index.cjs +0 -11781
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -758
- package/dist/index.js.map +0 -1
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -40
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/rollup.config.js +0 -81
- package/src/cosmos/utils/env.ts +0 -6
- package/src/react-app-env.d.ts +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
subTitle: string;
|
|
5
|
+
actionText: string;
|
|
6
|
+
tokenSymbol: string;
|
|
7
|
+
suffix?: string;
|
|
8
|
+
currentAmount: number | string;
|
|
9
|
+
minimumAmount?: number;
|
|
10
|
+
maxAmount: number | string;
|
|
11
|
+
maxAmountText?: string;
|
|
12
|
+
maxAmountTitle?: string;
|
|
13
|
+
infos?: string[];
|
|
14
|
+
handleChangeAmount: (amount: number) => void;
|
|
15
|
+
handleAction: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function InputAmountModal({ title, subTitle, actionText, tokenSymbol, suffix: defaultSuffix, currentAmount, minimumAmount, maxAmount, maxAmountText, maxAmountTitle, infos, handleChangeAmount, handleAction, }: Props): React.ReactElement | null;
|
|
18
|
+
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
|
+
tokenId: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function Evaluation({ poolInfo, tokenId }: Props): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AccountStats, PoolInfoType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
poolInfo: PoolInfoType;
|
|
5
|
+
accountStats: AccountStats;
|
|
6
|
+
};
|
|
7
|
+
export declare function ChooseAmount({ poolInfo, accountStats, }: Props): React.ReactElement | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PoolInfoType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
poolInfo: PoolInfoType;
|
|
5
|
+
tokenId: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function ApproveNFT({ poolInfo, tokenId }: Props): React.ReactElement;
|
|
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
|
+
tokenId: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function Transfer({ poolInfo, tokenId }: Props): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BigNumber } from 'ethers';
|
|
2
|
+
import { POOL_NAME, POOL_TYPE } from '../../../../../huma-shared/src';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Invoice factoring pool borrow props
|
|
6
|
+
* @typedef {Object} InvoiceFactoringBorrowProps
|
|
7
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
8
|
+
* @property {POOL_TYPE} poolType The type of the pool.
|
|
9
|
+
* @property {string|BigNumber} tokenId The NFT token id representing invoice.
|
|
10
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
11
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the invoice pool borrow action is successful.
|
|
12
|
+
*/
|
|
13
|
+
export interface InvoiceFactoringBorrowProps {
|
|
14
|
+
poolName: keyof typeof POOL_NAME;
|
|
15
|
+
poolType: keyof typeof POOL_TYPE;
|
|
16
|
+
tokenId: string | BigNumber;
|
|
17
|
+
handleClose: () => void;
|
|
18
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare function InvoiceFactoringBorrow({ poolName: poolNameStr, poolType: poolTypeStr, tokenId, handleClose, handleSuccess, }: InvoiceFactoringBorrowProps): 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,17 @@
|
|
|
1
|
+
import { POOL_NAME, POOL_TYPE } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Invoice factoring pool payment props
|
|
5
|
+
* @typedef {Object} InvoiceFactoringPaymentProps
|
|
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 invoice pool payment action is successful.
|
|
10
|
+
*/
|
|
11
|
+
export type InvoiceFactoringPaymentProps = {
|
|
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 InvoiceFactoringPayment({ poolName: poolNameStr, poolType: poolTypeStr, handleClose, handleSuccess, }: InvoiceFactoringPaymentProps): React.ReactElement | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
selectedTranche: TrancheType | undefined;
|
|
5
|
+
changeTranche: (tranche: TrancheType) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function ChooseTranche({ selectedTranche, changeTranche, }: Props): React.ReactElement | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { TrancheInfo } from '.';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolInfo: PoolInfoV2;
|
|
6
|
+
poolUnderlyingToken: UnderlyingTokenInfo;
|
|
7
|
+
trancheInfo: TrancheInfo;
|
|
8
|
+
};
|
|
9
|
+
export declare function ChooseAmount({ poolInfo, poolUnderlyingToken, trancheInfo, }: Props): React.ReactElement | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PoolInfoV2, UnderlyingTokenInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { TrancheInfo } from '.';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolInfo: PoolInfoV2;
|
|
6
|
+
poolUnderlyingToken: UnderlyingTokenInfo;
|
|
7
|
+
trancheInfo: TrancheInfo;
|
|
8
|
+
};
|
|
9
|
+
export declare function Transfer({ poolInfo, poolUnderlyingToken, trancheInfo, }: Props): React.ReactElement | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { POOL_NAME, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { BigNumber } from 'ethers';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export type TrancheInfo = {
|
|
5
|
+
tranche: TrancheType;
|
|
6
|
+
assets: BigNumber;
|
|
7
|
+
shares: BigNumber;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Lend pool add redemption props
|
|
11
|
+
* @typedef {Object} AddRedemptionPropsV2
|
|
12
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
13
|
+
* @property {POOL_NTrancheTypeAME} tranche The tranche type.
|
|
14
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
15
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool withdraw action is successful.
|
|
16
|
+
*/
|
|
17
|
+
export type AddRedemptionPropsV2 = {
|
|
18
|
+
poolName: keyof typeof POOL_NAME;
|
|
19
|
+
tranche?: TrancheType;
|
|
20
|
+
handleClose: () => void;
|
|
21
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
22
|
+
};
|
|
23
|
+
export declare function AddRedemptionV2({ poolName: poolNameStr, tranche, handleClose, handleSuccess, }: AddRedemptionPropsV2): React.ReactElement | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PoolInfoV2, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { RedemptionInfo } from '.';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolInfo: PoolInfoV2;
|
|
6
|
+
trancheType: TrancheType;
|
|
7
|
+
redemptionInfo: RedemptionInfo;
|
|
8
|
+
};
|
|
9
|
+
export declare function Transfer({ poolInfo, trancheType, redemptionInfo, }: Props): React.ReactElement | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UnderlyingTokenInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { RedemptionInfo } from '.';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolUnderlyingToken: UnderlyingTokenInfo;
|
|
6
|
+
redemptionInfo: RedemptionInfo;
|
|
7
|
+
handleAction: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function Done({ poolUnderlyingToken, redemptionInfo, handleAction, }: Props): React.ReactElement;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { POOL_NAME, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { BigNumber } from 'ethers';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export type RedemptionInfo = {
|
|
5
|
+
shares: BigNumber;
|
|
6
|
+
amount: BigNumber;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Lend pool cancel redemption request props
|
|
10
|
+
* @typedef {Object} CancelRedemptionPropsV2
|
|
11
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
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 CancelRedemptionPropsV2 = {
|
|
17
|
+
poolName: keyof typeof POOL_NAME;
|
|
18
|
+
trancheType: TrancheType;
|
|
19
|
+
handleClose: () => void;
|
|
20
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
21
|
+
};
|
|
22
|
+
export declare function CancelRedemptionV2({ poolName: poolNameStr, trancheType, handleClose, handleSuccess, }: CancelRedemptionPropsV2): React.ReactElement | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CHAIN_TYPE, NETWORK_TYPE, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
juniorTrancheVault: string;
|
|
5
|
+
seniorTrancheVault: string;
|
|
6
|
+
chainType: CHAIN_TYPE;
|
|
7
|
+
networkType: NETWORK_TYPE;
|
|
8
|
+
isUniTranche: boolean;
|
|
9
|
+
documentHash?: string;
|
|
10
|
+
chainSpecificData?: Record<string, unknown>;
|
|
11
|
+
changeTranche: (tranche: TrancheType) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare function ApproveLenderBase({ juniorTrancheVault, seniorTrancheVault, isUniTranche, chainType, networkType, chainSpecificData, documentHash, changeTranche, }: Props): React.ReactElement | null;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CHAIN_TYPE, CloseModalOptions, KYCType, NETWORK_TYPE } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { Campaign } from '../supplyV2';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolInfo: {
|
|
6
|
+
KYC?: KYCType;
|
|
7
|
+
juniorTrancheVault: string;
|
|
8
|
+
seniorTrancheVault: string;
|
|
9
|
+
};
|
|
10
|
+
networkType: NETWORK_TYPE;
|
|
11
|
+
chainType: CHAIN_TYPE;
|
|
12
|
+
documentHash: string;
|
|
13
|
+
campaign?: Campaign;
|
|
14
|
+
handleClose: (options?: CloseModalOptions) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare function PersonaEvaluation({ poolInfo, campaign, networkType, chainType, documentHash, handleClose, }: Props): React.ReactElement | null;
|
|
17
|
+
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
|
+
handleClose: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function SecuritizeEvaluation({ poolInfo, handleClose, }: Props): React.ReactElement | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
selectedTranche: TrancheType | undefined;
|
|
5
|
+
changeTranche: (tranche: TrancheType) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function ChooseTranche({ selectedTranche, changeTranche, }: Props): React.ReactElement | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
type Props = {
|
|
5
|
+
poolInfo: SolanaPoolInfo;
|
|
6
|
+
poolState: SolanaPoolState;
|
|
7
|
+
selectedTranche: TrancheType;
|
|
8
|
+
lenderState: LenderStateAccount | null | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare function ChooseAmount({ poolInfo, poolState, selectedTranche, lenderState, }: Props): React.ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SolanaPoolInfo, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
poolInfo: SolanaPoolInfo;
|
|
5
|
+
selectedTranche: TrancheType;
|
|
6
|
+
};
|
|
7
|
+
export declare function Transfer({ poolInfo, selectedTranche, }: Props): React.ReactElement | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SolanaPoolInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
poolInfo: SolanaPoolInfo;
|
|
5
|
+
handleAction: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function Done({ poolInfo, handleAction }: Props): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SolanaPoolInfo, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { SolanaPoolState } from '../../../../../huma-web-shared/src';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Lend pool supply props
|
|
6
|
+
* @typedef {Object} SolanaLendAddRedemptionProps
|
|
7
|
+
* @property {SolanaPoolInfo} poolInfo The metadata of the pool.
|
|
8
|
+
* @property {SolanaPoolState} poolState The current state config of the pool. * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
9
|
+
* @property {POOL_NTrancheTypeAME} tranche The tranche type.
|
|
10
|
+
* @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
11
|
+
*/
|
|
12
|
+
export interface SolanaLendAddRedemptionProps {
|
|
13
|
+
poolInfo: SolanaPoolInfo;
|
|
14
|
+
poolState: SolanaPoolState;
|
|
15
|
+
tranche?: TrancheType;
|
|
16
|
+
handleClose: () => void;
|
|
17
|
+
handleSuccess?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare function SolanaLendAddRedemption({ poolInfo, poolState, tranche, handleClose, handleSuccess, }: SolanaLendAddRedemptionProps): React.ReactElement | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
selectedTranche: TrancheType | undefined;
|
|
5
|
+
changeTranche: (tranche: TrancheType) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function ChooseTranche({ selectedTranche, changeTranche, }: Props): React.ReactElement | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SolanaPoolInfo, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { LenderStateAccount } from '../../../../../huma-web-shared/src';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolInfo: SolanaPoolInfo;
|
|
6
|
+
lenderState: LenderStateAccount | null | undefined;
|
|
7
|
+
lenderStatePDA: string | null | undefined;
|
|
8
|
+
selectedTranche: TrancheType;
|
|
9
|
+
};
|
|
10
|
+
export declare function Transfer({ poolInfo, lenderState, lenderStatePDA, selectedTranche, }: Props): React.ReactElement | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SolanaPoolInfo, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { LenderStateAccount } from '../../../../../huma-web-shared/src';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolInfo: SolanaPoolInfo;
|
|
6
|
+
lenderState: LenderStateAccount | null | undefined;
|
|
7
|
+
selectedTranche: TrancheType;
|
|
8
|
+
handleAction: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function Done({ poolInfo, lenderState, selectedTranche, handleAction, }: Props): React.ReactElement | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SolanaPoolInfo, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Lend pool supply props
|
|
5
|
+
* @typedef {Object} SolanaLendCancelRedemptionProps
|
|
6
|
+
* @property {SolanaPoolInfo} poolInfo The metadata of the pool.
|
|
7
|
+
* @property {SolanaPoolState} poolState The current state config of the pool. * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
8
|
+
* @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
9
|
+
*/
|
|
10
|
+
export interface SolanaLendCancelRedemptionProps {
|
|
11
|
+
poolInfo: SolanaPoolInfo;
|
|
12
|
+
tranche?: TrancheType;
|
|
13
|
+
handleClose: () => void;
|
|
14
|
+
handleSuccess?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function SolanaLendCancelRedemption({ poolInfo, tranche, handleClose, handleSuccess, }: SolanaLendCancelRedemptionProps): React.ReactElement | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SolanaPoolInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { SolanaPoolState } from '../../../../../huma-web-shared/src';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolInfo: SolanaPoolInfo;
|
|
6
|
+
poolState: SolanaPoolState;
|
|
7
|
+
};
|
|
8
|
+
export declare function Transfer({ poolInfo, poolState, }: Props): React.ReactElement | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CloseModalOptions, SolanaPoolInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { SolanaPoolState } from '../../../../../huma-web-shared/src';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolInfo: SolanaPoolInfo;
|
|
6
|
+
poolState: SolanaPoolState;
|
|
7
|
+
handleAction: (options?: CloseModalOptions) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function Success({ poolInfo, poolState, handleAction, }: Props): React.ReactElement;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CloseModalOptions, SolanaPoolInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { SolanaPoolState } from '../../../../../huma-web-shared/src';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Lend pool supply props
|
|
6
|
+
* @typedef {Object} SolanaEnableAutoRedemptionProps
|
|
7
|
+
* @property {SolanaPoolInfo} poolInfo The metadata of the pool.
|
|
8
|
+
* @property {SolanaPoolState} poolState The current state config of the pool.
|
|
9
|
+
* @property {function((CloseModalOptions|undefined)):void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
10
|
+
* @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
11
|
+
*/
|
|
12
|
+
export interface SolanaEnableAutoRedemptionProps {
|
|
13
|
+
poolInfo: SolanaPoolInfo;
|
|
14
|
+
poolState: SolanaPoolState;
|
|
15
|
+
handleClose: (options?: CloseModalOptions) => void;
|
|
16
|
+
handleSuccess?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function SolanaEnableAutoRedemption({ poolInfo, poolState, handleClose, handleSuccess, }: SolanaEnableAutoRedemptionProps): React.ReactElement | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NETWORK_TYPE, SolanaPoolInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { Campaign } from '../supplyV2';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolInfo: SolanaPoolInfo;
|
|
6
|
+
networkType: NETWORK_TYPE;
|
|
7
|
+
campaign?: Campaign;
|
|
8
|
+
documentHash: string;
|
|
9
|
+
handleClose: () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function Evaluation({ poolInfo, networkType, campaign, documentHash, handleClose, }: Props): React.ReactElement | null;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SolanaPoolInfo, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
poolInfo: SolanaPoolInfo;
|
|
5
|
+
isUniTranche: boolean;
|
|
6
|
+
documentHash: string;
|
|
7
|
+
changeTranche: (tranche: TrancheType) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function ApproveLender({ poolInfo, isUniTranche, documentHash, changeTranche, }: Props): React.ReactElement | null;
|
|
10
|
+
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,13 @@
|
|
|
1
|
+
import { SolanaPoolInfo, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { SolanaPoolState } from '../../../../../huma-web-shared/src';
|
|
3
|
+
import { Account } from '@solana/spl-token';
|
|
4
|
+
import { default as React } from 'react';
|
|
5
|
+
type Props = {
|
|
6
|
+
poolInfo: SolanaPoolInfo;
|
|
7
|
+
poolState: SolanaPoolState;
|
|
8
|
+
tokenAccount?: Account;
|
|
9
|
+
selectedTranche: TrancheType | undefined;
|
|
10
|
+
isUniTranche?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare function ChooseAmount({ poolInfo, poolState, tokenAccount, selectedTranche, isUniTranche, }: Props): React.ReactElement | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NETWORK_TYPE, SolanaPoolInfo, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { SolanaPoolState } from '../../../../../huma-web-shared/src';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
type Props = {
|
|
5
|
+
poolInfo: SolanaPoolInfo;
|
|
6
|
+
poolState: SolanaPoolState;
|
|
7
|
+
selectedTranche: TrancheType;
|
|
8
|
+
networkType: NETWORK_TYPE;
|
|
9
|
+
};
|
|
10
|
+
export declare function Transfer({ poolInfo, poolState, selectedTranche, networkType, }: Props): React.ReactElement | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CloseModalOptions, SolanaPoolInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { SolanaPoolState } from '../../../../../huma-web-shared/src';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
import { Campaign } from '.';
|
|
5
|
+
type Props = {
|
|
6
|
+
poolInfo: SolanaPoolInfo;
|
|
7
|
+
poolState: SolanaPoolState;
|
|
8
|
+
campaign?: Campaign;
|
|
9
|
+
handleAction: (options?: CloseModalOptions) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function Success({ poolInfo, poolState, campaign, handleAction, }: Props): React.ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CloseModalOptions, NETWORK_TYPE } from '../../../../../huma-shared/src';
|
|
2
|
+
import { SolanaPoolState } from '../../../../../huma-web-shared/src';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
type Props = {
|
|
5
|
+
transactionHash: string;
|
|
6
|
+
poolState: SolanaPoolState;
|
|
7
|
+
networkType: NETWORK_TYPE;
|
|
8
|
+
handleAction: (options?: CloseModalOptions) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function PointsEarned({ transactionHash, poolState, networkType, handleAction, }: Props): React.ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CloseModalOptions, SolanaPoolInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { SolanaPoolState } 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} SolanaLendSupplyProps
|
|
11
|
+
* @property {SolanaPoolInfo} poolInfo The metadata of the pool.
|
|
12
|
+
* @property {SolanaPoolState} poolState The current state config of the pool.
|
|
13
|
+
* @param {string} documentHash The subscription file hash.
|
|
14
|
+
* @property {function((CloseModalOptions|undefined)):void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
15
|
+
* @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
16
|
+
*/
|
|
17
|
+
export interface SolanaLendSupplyProps {
|
|
18
|
+
poolInfo: SolanaPoolInfo;
|
|
19
|
+
poolState: SolanaPoolState;
|
|
20
|
+
documentHash: string;
|
|
21
|
+
handleClose: (options?: CloseModalOptions) => void;
|
|
22
|
+
handleSuccess?: () => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function SolanaLendSupply({ poolInfo, poolState, documentHash, handleClose, handleSuccess, }: SolanaLendSupplyProps): React.ReactElement | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UnderlyingTokenInfo } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
poolUnderlyingToken: UnderlyingTokenInfo;
|
|
5
|
+
withdrawableAmountFormatted: string | number;
|
|
6
|
+
sharePrice: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function ConfirmTransfer({ poolUnderlyingToken, withdrawableAmountFormatted, sharePrice, }: Props): React.ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SolanaPoolInfo, TrancheType } from '../../../../../huma-shared/src';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
poolInfo: SolanaPoolInfo;
|
|
5
|
+
selectedTranche: TrancheType;
|
|
6
|
+
poolIsClosed: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function Transfer({ poolInfo, selectedTranche, poolIsClosed, }: Props): React.ReactElement | null;
|
|
9
|
+
export {};
|