@huma-finance/widgets 0.0.62-beta.631 → 0.0.62-beta.633
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/API.md +0 -194
- package/dist/cjs/index.cjs +258 -1866
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -136
- package/dist/index.js +261 -1864
- package/dist/index.js.map +1 -1
- package/package.json +8 -18
- package/src/components/CreditLine/paymentV2/1-ChooseAmount.tsx +0 -1
- package/src/components/InputAmountModal.tsx +2 -13
- package/src/components/Lend/supplyV2/6-Success.tsx +3 -3
- package/src/components/WidgetWrapper.tsx +4 -6
- package/src/index.tsx +0 -139
- package/src/store/widgets.reducers.ts +0 -5
- package/src/store/widgets.store.ts +0 -1
- package/src/components/CreditLine/solanaBorrow/1-ChooseAmount.tsx +0 -67
- package/src/components/CreditLine/solanaBorrow/2-Transfer.tsx +0 -159
- package/src/components/CreditLine/solanaBorrow/3-Done.tsx +0 -38
- package/src/components/CreditLine/solanaBorrow/index.tsx +0 -90
- package/src/components/CreditLine/solanaPayment/1-ChooseAmount.tsx +0 -75
- package/src/components/CreditLine/solanaPayment/2-Transfer.tsx +0 -92
- package/src/components/CreditLine/solanaPayment/3-Done.tsx +0 -59
- package/src/components/CreditLine/solanaPayment/index.tsx +0 -83
- package/src/components/Lend/solanaAddRedemption/1-ChooseTranche.tsx +0 -114
- package/src/components/Lend/solanaAddRedemption/2-ChooseAmount.tsx +0 -183
- package/src/components/Lend/solanaAddRedemption/3-Transfer.tsx +0 -102
- package/src/components/Lend/solanaAddRedemption/4-Done.tsx +0 -29
- package/src/components/Lend/solanaAddRedemption/index.tsx +0 -155
- package/src/components/Lend/solanaCancelRedemption/1-ChooseTranche.tsx +0 -114
- package/src/components/Lend/solanaCancelRedemption/2-Transfer.tsx +0 -99
- package/src/components/Lend/solanaCancelRedemption/3-Done.tsx +0 -55
- package/src/components/Lend/solanaCancelRedemption/index.tsx +0 -162
- package/src/components/Lend/solanaSupply/1-Evaluation.tsx +0 -106
- package/src/components/Lend/solanaSupply/2-ChooseTranche.tsx +0 -116
- package/src/components/Lend/solanaSupply/3-ChooseAmount.tsx +0 -131
- package/src/components/Lend/solanaSupply/4-Transfer.tsx +0 -137
- package/src/components/Lend/solanaSupply/5-Success.tsx +0 -52
- package/src/components/Lend/solanaSupply/index.tsx +0 -155
- package/src/components/SolanaTxDoneModal.tsx +0 -119
- package/src/components/SolanaTxSendModal.tsx +0 -61
- package/src/components/SolanaViewOnExplorer.tsx +0 -29
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
3
|
import { Provider } from '@web3-react/types';
|
|
4
|
-
import { POOL_NAME, POOL_TYPE, TrancheType, IdentityVerificationStatusV2
|
|
4
|
+
import { POOL_NAME, POOL_TYPE, TrancheType, IdentityVerificationStatusV2 } from '@huma-finance/shared';
|
|
5
5
|
import { BigNumberish, BigNumber } from 'ethers';
|
|
6
|
-
import { SolanaPoolState } from '@huma-finance/web-shared';
|
|
7
6
|
import React from 'react';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -265,77 +264,6 @@ type ReceivableBackedCreditLinePaymentPropsV2 = {
|
|
|
265
264
|
handleSuccess?: (blockNumber?: number) => void;
|
|
266
265
|
};
|
|
267
266
|
|
|
268
|
-
/**
|
|
269
|
-
* Lend pool supply props
|
|
270
|
-
* @typedef {Object} SolanaLendSupplyProps
|
|
271
|
-
* @property {SolanaPoolInfo} poolInfo The metadata of the pool.
|
|
272
|
-
* @property {SolanaPoolState} poolState The current state config of the pool.
|
|
273
|
-
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
274
|
-
* @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
275
|
-
*/
|
|
276
|
-
interface SolanaLendSupplyProps {
|
|
277
|
-
poolInfo: SolanaPoolInfo;
|
|
278
|
-
poolState: SolanaPoolState;
|
|
279
|
-
handleClose: () => void;
|
|
280
|
-
handleSuccess?: () => void;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Lend pool supply props
|
|
285
|
-
* @typedef {Object} SolanaLendAddRedemptionProps
|
|
286
|
-
* @property {SolanaPoolInfo} poolInfo The metadata of the pool.
|
|
287
|
-
* @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.
|
|
288
|
-
* @property {POOL_NTrancheTypeAME} tranche The tranche type.
|
|
289
|
-
* @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
290
|
-
*/
|
|
291
|
-
interface SolanaLendAddRedemptionProps {
|
|
292
|
-
poolInfo: SolanaPoolInfo;
|
|
293
|
-
poolState: SolanaPoolState;
|
|
294
|
-
tranche?: TrancheType;
|
|
295
|
-
handleClose: () => void;
|
|
296
|
-
handleSuccess?: () => void;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Lend pool supply props
|
|
301
|
-
* @typedef {Object} SolanaLendCancelRedemptionProps
|
|
302
|
-
* @property {SolanaPoolInfo} poolInfo The metadata of the pool.
|
|
303
|
-
* @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.
|
|
304
|
-
* @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
305
|
-
*/
|
|
306
|
-
interface SolanaLendCancelRedemptionProps {
|
|
307
|
-
poolInfo: SolanaPoolInfo;
|
|
308
|
-
tranche?: TrancheType;
|
|
309
|
-
handleClose: () => void;
|
|
310
|
-
handleSuccess?: () => void;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Lend pool supply props
|
|
315
|
-
* @typedef {Object} SolanaBorrowProps
|
|
316
|
-
* @property {SolanaPoolInfo} poolInfo The metadata of the pool.
|
|
317
|
-
* @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.
|
|
318
|
-
* @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
319
|
-
*/
|
|
320
|
-
interface SolanaBorrowProps {
|
|
321
|
-
poolInfo: SolanaPoolInfo;
|
|
322
|
-
poolState: SolanaPoolState;
|
|
323
|
-
handleClose: () => void;
|
|
324
|
-
handleSuccess?: () => void;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Lend pool supply props
|
|
329
|
-
* @typedef {Object} SolanaPaymentProps
|
|
330
|
-
* @property {SolanaPoolInfo} poolInfo The metadata of the pool.
|
|
331
|
-
* @property {function():void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
332
|
-
*/
|
|
333
|
-
interface SolanaPaymentProps {
|
|
334
|
-
poolInfo: SolanaPoolInfo;
|
|
335
|
-
handleClose: () => void;
|
|
336
|
-
handleSuccess?: () => void;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
267
|
type Props = {
|
|
340
268
|
chainId: number | undefined;
|
|
341
269
|
children?: any;
|
|
@@ -609,67 +537,5 @@ type ReceivableBackedCreditLinePaymentWidgetPropsV2 = ReceivableBackedCreditLine
|
|
|
609
537
|
* @returns Receivable backed credit line pool payment widget component V2
|
|
610
538
|
*/
|
|
611
539
|
declare function ReceivableBackedCreditLinePaymentWidgetV2(props: ReceivableBackedCreditLinePaymentWidgetPropsV2): _emotion_react_jsx_runtime.JSX.Element;
|
|
612
|
-
/**
|
|
613
|
-
* Object representing the props passed to Solana widgets
|
|
614
|
-
* @typedef {Object} SolanaWidgetProps
|
|
615
|
-
*/
|
|
616
|
-
type SolanaWidgetProps = {
|
|
617
|
-
handleClose?: () => void;
|
|
618
|
-
};
|
|
619
|
-
/**
|
|
620
|
-
* Lend pool supply widget props for Solana pools
|
|
621
|
-
* @typedef {Object} SolanaLendSupplyWidgetProps
|
|
622
|
-
*/
|
|
623
|
-
type SolanaLendSupplyWidgetProps = SolanaLendSupplyProps & SolanaWidgetProps;
|
|
624
|
-
/**
|
|
625
|
-
* Lend pool supply widget for Solana pools
|
|
626
|
-
*
|
|
627
|
-
* @param {SolanaLendSupplyWidgetProps} props - Widget props
|
|
628
|
-
*/
|
|
629
|
-
declare function SolanaLendSupplyWidget(props: SolanaLendSupplyWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
630
|
-
/**
|
|
631
|
-
* Lend pool supply widget props for Solana pools
|
|
632
|
-
* @typedef {Object} SolanaLendAddRedemptionWidgetProps
|
|
633
|
-
*/
|
|
634
|
-
type SolanaLendAddRedemptionWidgetProps = SolanaLendAddRedemptionProps & SolanaWidgetProps;
|
|
635
|
-
/**
|
|
636
|
-
* Lend pool supply widget for Solana pools
|
|
637
|
-
*
|
|
638
|
-
* @param {SolanaLendAddRedemptionWidgetProps} props - Widget props
|
|
639
|
-
*/
|
|
640
|
-
declare function SolanaLendAddRedemptionWidget(props: SolanaLendAddRedemptionWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
641
|
-
/**
|
|
642
|
-
* Lend pool supply widget props for Solana pools
|
|
643
|
-
* @typedef {Object} SolanaLendCancelRedemptionWidgetProps
|
|
644
|
-
*/
|
|
645
|
-
type SolanaLendCancelRedemptionWidgetProps = SolanaLendCancelRedemptionProps & SolanaWidgetProps;
|
|
646
|
-
/**
|
|
647
|
-
* Lend pool supply widget for Solana pools
|
|
648
|
-
*
|
|
649
|
-
* @param {SolanaLendCancelRedemptionWidgetProps} props - Widget props
|
|
650
|
-
*/
|
|
651
|
-
declare function SolanaLendCancelRedemptionWidget(props: SolanaLendCancelRedemptionWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
652
|
-
/**
|
|
653
|
-
* Lend pool supply widget props for Solana pools
|
|
654
|
-
* @typedef {Object} SolanaBorrowWidgetProps
|
|
655
|
-
*/
|
|
656
|
-
type SolanaBorrowWidgetProps = SolanaBorrowProps & SolanaWidgetProps;
|
|
657
|
-
/**
|
|
658
|
-
* Lend pool supply widget for Solana pools
|
|
659
|
-
*
|
|
660
|
-
* @param {SolanaBorrowWidgetProps} props - Widget props
|
|
661
|
-
*/
|
|
662
|
-
declare function SolanaBorrowWidget(props: SolanaBorrowWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
663
|
-
/**
|
|
664
|
-
* Lend pool supply widget props for Solana pools
|
|
665
|
-
* @typedef {Object} SolanaPaymentWidgetProps
|
|
666
|
-
*/
|
|
667
|
-
type SolanaPaymentWidgetProps = SolanaPaymentProps & SolanaWidgetProps;
|
|
668
|
-
/**
|
|
669
|
-
* Lend pool supply widget for Solana pools
|
|
670
|
-
*
|
|
671
|
-
* @param {SolanaPaymentWidgetProps} props - Widget props
|
|
672
|
-
*/
|
|
673
|
-
declare function SolanaPaymentWidget(props: SolanaPaymentWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
674
540
|
|
|
675
|
-
export { AddRedemptionWidgetV2, AutoPaybackWidgetV2, CancelRedemptionWidgetV2, CreditLineApproveWidget, CreditLineBorrowWidget, CreditLineBorrowWidgetV2, CreditLinePaymentWidget, CreditLinePaymentWidgetV2, InvoiceFactoringBorrowWidget, InvoiceFactoringPaymentWidget, LendSupplyWidget, LendSupplyWidgetV2, LendWithdrawWidget, LendWithdrawWidgetV2, NotifiContextWrapper, ReceivableBackedCreditLineBorrowWidgetV2, ReceivableBackedCreditLinePaymentWidgetV2,
|
|
541
|
+
export { AddRedemptionWidgetV2, AutoPaybackWidgetV2, CancelRedemptionWidgetV2, CreditLineApproveWidget, CreditLineBorrowWidget, CreditLineBorrowWidgetV2, CreditLinePaymentWidget, CreditLinePaymentWidgetV2, InvoiceFactoringBorrowWidget, InvoiceFactoringPaymentWidget, LendSupplyWidget, LendSupplyWidgetV2, LendWithdrawWidget, LendWithdrawWidgetV2, NotifiContextWrapper, ReceivableBackedCreditLineBorrowWidgetV2, ReceivableBackedCreditLinePaymentWidgetV2, SuperfluidFactoringWidget, SupplyFirstLossCoverWidget };
|