@huma-finance/widgets 0.0.51-beta.227 → 0.0.51-beta.347
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 +454 -0
- package/dist/cjs/index.cjs +6097 -3790
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +280 -2
- package/dist/index.js +6089 -3792
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/src/components/ApproveAllowanceModal.tsx +3 -1
- package/src/components/ApproveAllowanceModalV2.tsx +141 -0
- package/src/components/CreditLine/approve/index.tsx +9 -3
- package/src/components/CreditLine/autoPaybackV2/1-ApproveAllowance.tsx +33 -0
- package/src/components/CreditLine/autoPaybackV2/2-Success.tsx +13 -0
- package/src/components/CreditLine/autoPaybackV2/index.tsx +87 -0
- package/src/components/CreditLine/borrow/2-ChooseAmount.tsx +12 -3
- package/src/components/CreditLine/borrow/5-Success.tsx +7 -2
- package/src/components/CreditLine/borrow/index.tsx +4 -2
- package/src/components/CreditLine/borrowV2/1-ChooseAmount.tsx +81 -0
- package/src/components/CreditLine/borrowV2/2-ApproveAllowance.tsx +33 -0
- package/src/components/CreditLine/borrowV2/3-Transfer.tsx +50 -0
- package/src/components/CreditLine/borrowV2/4-Success.tsx +42 -0
- package/src/components/CreditLine/borrowV2/5-Notifications.tsx +10 -0
- package/src/components/CreditLine/borrowV2/index.tsx +140 -0
- package/src/components/CreditLine/payment/1-ChooseAmount.tsx +9 -5
- package/src/components/CreditLine/payment/3-Transfer.tsx +1 -5
- package/src/components/CreditLine/payment/4-Success.tsx +2 -2
- package/src/components/CreditLine/payment/index.tsx +4 -2
- package/src/components/CreditLine/paymentV2/1-ChooseAmount.tsx +96 -0
- package/src/components/CreditLine/paymentV2/2-ApproveAllowance.tsx +33 -0
- package/src/components/CreditLine/paymentV2/3-Transfer.tsx +55 -0
- package/src/components/CreditLine/paymentV2/4-Success.tsx +42 -0
- package/src/components/CreditLine/paymentV2/index.tsx +111 -0
- package/src/components/CreditLine/supplyFLC/1-ApproveAllowance.tsx +40 -0
- package/src/components/CreditLine/supplyFLC/2-Transfer.tsx +53 -0
- package/src/components/CreditLine/supplyFLC/3-Success.tsx +26 -0
- package/src/components/CreditLine/supplyFLC/index.tsx +121 -0
- package/src/components/Factoring/FactoredList.tsx +2 -1
- package/src/components/InputAmountModal.tsx +156 -0
- package/src/components/InvoiceFactoring/borrow/2-ChooseAmount.tsx +8 -1
- package/src/components/InvoiceFactoring/borrow/4-ApproveNFT.tsx +6 -2
- package/src/components/InvoiceFactoring/borrow/6-Success.tsx +5 -1
- package/src/components/InvoiceFactoring/borrow/index.tsx +9 -3
- package/src/components/InvoiceFactoring/payment/1-ChooseAmount.tsx +7 -2
- package/src/components/InvoiceFactoring/payment/index.tsx +9 -3
- package/src/components/Lend/addRedemptionV2/1-ChooseTranche.tsx +114 -0
- package/src/components/Lend/addRedemptionV2/2-ChooseAmount.tsx +114 -0
- package/src/components/Lend/addRedemptionV2/3-Transfer.tsx +56 -0
- package/src/components/Lend/addRedemptionV2/4-Done.tsx +20 -0
- package/src/components/Lend/addRedemptionV2/index.tsx +173 -0
- package/src/components/Lend/cancelRedemptionV2 /1-Transfer.tsx +51 -0
- package/src/components/Lend/cancelRedemptionV2 /2-Done.tsx +29 -0
- package/src/components/Lend/cancelRedemptionV2 /index.tsx +120 -0
- package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +19 -2
- package/src/components/Lend/supply/2-ChooseAmount.tsx +1 -0
- package/src/components/Lend/supply/index.tsx +17 -3
- package/src/components/Lend/supplyV2/1-ChooseTranche.tsx +116 -0
- package/src/components/Lend/supplyV2/2-Evaluation.tsx +345 -0
- package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +87 -0
- package/src/components/Lend/supplyV2/4-ApproveAllowance.tsx +33 -0
- package/src/components/Lend/supplyV2/5-Transfer.tsx +59 -0
- package/src/components/Lend/supplyV2/6-Success.tsx +79 -0
- package/src/components/Lend/supplyV2/7-Notifications.tsx +10 -0
- package/src/components/Lend/supplyV2/index.tsx +175 -0
- package/src/components/Lend/withdraw/1-CheckWithdrawble.tsx +5 -1
- package/src/components/Lend/withdraw/index.tsx +10 -3
- package/src/components/Lend/withdrawV2/1-ConfirmTransfer.tsx +135 -0
- package/src/components/Lend/withdrawV2/2-Transfer.tsx +50 -0
- package/src/components/Lend/withdrawV2/3-Done.tsx +31 -0
- package/src/components/Lend/withdrawV2/index.tsx +177 -0
- package/src/components/Notifi/NotifiSubscriptionModal.tsx +26 -38
- package/src/components/NumericFormatCustom.tsx +33 -0
- package/src/components/ReceivableBackedCreditLine/borrow/1-ChooseAmount.tsx +101 -0
- package/src/components/ReceivableBackedCreditLine/borrow/2-ApproveAllowance.tsx +33 -0
- package/src/components/ReceivableBackedCreditLine/borrow/3-ApproveReceivable.tsx +64 -0
- package/src/components/ReceivableBackedCreditLine/borrow/4-Transfer.tsx +61 -0
- package/src/components/ReceivableBackedCreditLine/borrow/5-Success.tsx +42 -0
- package/src/components/ReceivableBackedCreditLine/borrow/6-Notifications.tsx +10 -0
- package/src/components/ReceivableBackedCreditLine/borrow/index.tsx +148 -0
- package/src/components/ReceivableBackedCreditLine/payment/1-ChoosePaymentType.tsx +115 -0
- package/src/components/ReceivableBackedCreditLine/payment/2-ChooseAmount.tsx +84 -0
- package/src/components/ReceivableBackedCreditLine/payment/3-ApproveAllowance.tsx +41 -0
- package/src/components/ReceivableBackedCreditLine/payment/4-CreateReceivable.tsx +107 -0
- package/src/components/ReceivableBackedCreditLine/payment/5-ApproveReceivable.tsx +64 -0
- package/src/components/ReceivableBackedCreditLine/payment/6-Transfer.tsx +107 -0
- package/src/components/ReceivableBackedCreditLine/payment/7-Success.tsx +49 -0
- package/src/components/ReceivableBackedCreditLine/payment/index.tsx +159 -0
- package/src/components/StreamFactoring/borrow/2-ChooseAmount.tsx +8 -1
- package/src/components/StreamFactoring/borrow/6-Transfer.tsx +3 -1
- package/src/components/StreamFactoring/borrow/7-Success.tsx +3 -1
- package/src/components/StreamFactoring/borrow/index.tsx +2 -2
- package/src/components/TxDoneModal.tsx +1 -1
- package/src/components/TxSendModal.tsx +8 -2
- package/src/components/TxSendModalV2.tsx +51 -0
- package/src/hooks/useNotifi.ts +4 -6
- package/src/index.tsx +268 -1
- package/src/store/widgets.reducers.ts +15 -0
- package/src/store/widgets.store.ts +6 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 } from '@huma-finance/shared';
|
|
4
|
+
import { POOL_NAME, POOL_TYPE, TrancheType } from '@huma-finance/shared';
|
|
5
5
|
import { BigNumberish, BigNumber } from 'ethers';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -21,6 +21,19 @@ type CreditLineApproveProps = {
|
|
|
21
21
|
handleSuccess?: (blockNumber?: number) => void;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Auto payback props V2
|
|
26
|
+
* @typedef {Object} AutoPaybackPropsV2
|
|
27
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
28
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
29
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool borrow action is successful.
|
|
30
|
+
*/
|
|
31
|
+
interface AutoPaybackPropsV2 {
|
|
32
|
+
poolName: keyof typeof POOL_NAME;
|
|
33
|
+
handleClose: () => void;
|
|
34
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
35
|
+
}
|
|
36
|
+
|
|
24
37
|
/**
|
|
25
38
|
* Credit line pool borrow props
|
|
26
39
|
* @typedef {Object} CreditLineBorrowProps
|
|
@@ -38,6 +51,19 @@ interface CreditLineBorrowProps {
|
|
|
38
51
|
handleSuccess?: (blockNumber?: number) => void;
|
|
39
52
|
}
|
|
40
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Credit line pool borrow props V2
|
|
56
|
+
* @typedef {Object} CreditLineBorrowPropsV2
|
|
57
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
58
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
59
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool borrow action is successful.
|
|
60
|
+
*/
|
|
61
|
+
interface CreditLineBorrowPropsV2 {
|
|
62
|
+
poolName: keyof typeof POOL_NAME;
|
|
63
|
+
handleClose: () => void;
|
|
64
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
65
|
+
}
|
|
66
|
+
|
|
41
67
|
/**
|
|
42
68
|
* Credit line pool payment props
|
|
43
69
|
* @typedef {Object} CreditLinePaymentProps
|
|
@@ -53,6 +79,32 @@ type CreditLinePaymentProps = {
|
|
|
53
79
|
handleSuccess?: (blockNumber?: number) => void;
|
|
54
80
|
};
|
|
55
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Credit line pool payment props V2
|
|
84
|
+
* @typedef {Object} CreditLinePaymentPropsV2
|
|
85
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
86
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
87
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool payment action is successful.
|
|
88
|
+
*/
|
|
89
|
+
type CreditLinePaymentPropsV2 = {
|
|
90
|
+
poolName: keyof typeof POOL_NAME;
|
|
91
|
+
handleClose: () => void;
|
|
92
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Supply first loss cover props
|
|
97
|
+
* @typedef {Object} SupplyFirstLossCoverProps
|
|
98
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
99
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
100
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool borrow action is successful.
|
|
101
|
+
*/
|
|
102
|
+
interface SupplyFirstLossCoverProps {
|
|
103
|
+
poolName: keyof typeof POOL_NAME;
|
|
104
|
+
handleClose: () => void;
|
|
105
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
106
|
+
}
|
|
107
|
+
|
|
56
108
|
/**
|
|
57
109
|
* Invoice factoring pool borrow props
|
|
58
110
|
* @typedef {Object} InvoiceFactoringBorrowProps
|
|
@@ -85,6 +137,34 @@ type InvoiceFactoringPaymentProps = {
|
|
|
85
137
|
handleSuccess?: (blockNumber?: number) => void;
|
|
86
138
|
};
|
|
87
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Lend pool add redemption props
|
|
142
|
+
* @typedef {Object} AddRedemptionPropsV2
|
|
143
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
144
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
145
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool withdraw action is successful.
|
|
146
|
+
*/
|
|
147
|
+
type AddRedemptionPropsV2 = {
|
|
148
|
+
poolName: keyof typeof POOL_NAME;
|
|
149
|
+
handleClose: () => void;
|
|
150
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Lend pool cancel redemption request props
|
|
155
|
+
* @typedef {Object} CancelRedemptionPropsV2
|
|
156
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
157
|
+
* @property {TrancheType} trancheType The type of the tranche.
|
|
158
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
159
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool withdraw action is successful.
|
|
160
|
+
*/
|
|
161
|
+
type CancelRedemptionPropsV2 = {
|
|
162
|
+
poolName: keyof typeof POOL_NAME;
|
|
163
|
+
trancheType: TrancheType;
|
|
164
|
+
handleClose: () => void;
|
|
165
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
166
|
+
};
|
|
167
|
+
|
|
88
168
|
/**
|
|
89
169
|
* Lend pool supply props
|
|
90
170
|
* @typedef {Object} LendSupplyProps
|
|
@@ -100,6 +180,19 @@ interface LendSupplyProps {
|
|
|
100
180
|
handleSuccess?: (blockNumber?: number) => void;
|
|
101
181
|
}
|
|
102
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Lend pool supply props
|
|
185
|
+
* @typedef {Object} LendSupplyPropsV2
|
|
186
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
187
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
188
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
|
|
189
|
+
*/
|
|
190
|
+
interface LendSupplyPropsV2 {
|
|
191
|
+
poolName: keyof typeof POOL_NAME;
|
|
192
|
+
handleClose: () => void;
|
|
193
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
194
|
+
}
|
|
195
|
+
|
|
103
196
|
/**
|
|
104
197
|
* Lend pool withdraw props
|
|
105
198
|
* @typedef {Object} LendWithdrawProps
|
|
@@ -115,6 +208,51 @@ type LendWithdrawProps = {
|
|
|
115
208
|
handleSuccess?: (blockNumber?: number) => void;
|
|
116
209
|
};
|
|
117
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Lend pool withdraw props
|
|
213
|
+
* @typedef {Object} LendWithdrawPropsV2
|
|
214
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
215
|
+
* @property {TrancheType} trancheType The type of the tranche.
|
|
216
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
217
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool withdraw action is successful.
|
|
218
|
+
*/
|
|
219
|
+
type LendWithdrawPropsV2 = {
|
|
220
|
+
poolName: keyof typeof POOL_NAME;
|
|
221
|
+
trancheType: TrancheType;
|
|
222
|
+
handleClose: () => void;
|
|
223
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Receivable backed credit line pool borrow props V2
|
|
228
|
+
* @typedef {Object} ReceivableBackedCreditLineBorrowPropsV2
|
|
229
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
230
|
+
* @property {tokenId} tokenId The receivable token id.
|
|
231
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
232
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool borrow action is successful.
|
|
233
|
+
*/
|
|
234
|
+
interface ReceivableBackedCreditLineBorrowPropsV2 {
|
|
235
|
+
poolName: keyof typeof POOL_NAME;
|
|
236
|
+
tokenId: string;
|
|
237
|
+
handleClose: () => void;
|
|
238
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Credit line pool payment props V2
|
|
243
|
+
* @typedef {Object} CreditLinePaymentPropsV2
|
|
244
|
+
* @property {POOL_NAME} poolName The name of the pool.
|
|
245
|
+
* @property {tokenId} tokenID The receivable token id.
|
|
246
|
+
* @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
|
|
247
|
+
* @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the credit line pool payment action is successful.
|
|
248
|
+
*/
|
|
249
|
+
type ReceivableBackedCreditLinePaymentPropsV2 = {
|
|
250
|
+
poolName: keyof typeof POOL_NAME;
|
|
251
|
+
tokenId: string;
|
|
252
|
+
handleClose: () => void;
|
|
253
|
+
handleSuccess?: (blockNumber?: number) => void;
|
|
254
|
+
};
|
|
255
|
+
|
|
118
256
|
/**
|
|
119
257
|
* Mapping of your JSON-RPC connections indexed by chainId
|
|
120
258
|
* @typedef {Object} JsonRpcConnectionMap
|
|
@@ -178,6 +316,20 @@ type CreditLineBorrowWidgetProps = CreditLineBorrowProps & WidgetProps;
|
|
|
178
316
|
* @returns Credit line pool borrow widget component
|
|
179
317
|
*/
|
|
180
318
|
declare function CreditLineBorrowWidget(props: CreditLineBorrowWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
319
|
+
/**
|
|
320
|
+
* Credit line pool borrow widget props V2
|
|
321
|
+
* @typedef {Object} CreditLineBorrowWidgetPropsV2
|
|
322
|
+
* @property {CreditLineBorrowPropsV2} CreditLineBorrowPropsV2 - Credit line pool borrow props V2.
|
|
323
|
+
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
324
|
+
*/
|
|
325
|
+
type CreditLineBorrowWidgetPropsV2 = CreditLineBorrowPropsV2 & WidgetProps;
|
|
326
|
+
/**
|
|
327
|
+
* Credit line borrow widget V2
|
|
328
|
+
*
|
|
329
|
+
* @param {CreditLineBorrowWidgetPropsV2} props - The credit line pool borrow widget props V2.
|
|
330
|
+
* @returns Credit line pool borrow widget component V2
|
|
331
|
+
*/
|
|
332
|
+
declare function CreditLineBorrowWidgetV2(props: CreditLineBorrowWidgetPropsV2): _emotion_react_jsx_runtime.JSX.Element;
|
|
181
333
|
/**
|
|
182
334
|
* Credit line pool payment widget props
|
|
183
335
|
* @typedef {Object} CreditLinePaymentWidgetProps
|
|
@@ -192,6 +344,20 @@ type CreditLinePaymentWidgetProps = CreditLinePaymentProps & WidgetProps;
|
|
|
192
344
|
* @returns Credit line pool payment widget component
|
|
193
345
|
*/
|
|
194
346
|
declare function CreditLinePaymentWidget(props: CreditLinePaymentWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
347
|
+
/**
|
|
348
|
+
* Credit line pool payment widget props V2
|
|
349
|
+
* @typedef {Object} CreditLinePaymentWidgetPropsV2
|
|
350
|
+
* @property {CreditLinePaymentPropsV2} CreditLinePaymentPropsV2 - Credit line pool payment props V2.
|
|
351
|
+
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
352
|
+
*/
|
|
353
|
+
type CreditLinePaymentWidgetPropsV2 = CreditLinePaymentPropsV2 & WidgetProps;
|
|
354
|
+
/**
|
|
355
|
+
* Credit line payment widget V2
|
|
356
|
+
*
|
|
357
|
+
* @param {CreditLinePaymentWidgetPropsV2} props - The credit line pool payment widget props V2.
|
|
358
|
+
* @returns Credit line pool payment widget component V2
|
|
359
|
+
*/
|
|
360
|
+
declare function CreditLinePaymentWidgetV2(props: CreditLinePaymentWidgetPropsV2): _emotion_react_jsx_runtime.JSX.Element;
|
|
195
361
|
/**
|
|
196
362
|
* Credit line allowance approval widget props
|
|
197
363
|
* @typedef {Object} CreditLinePaymentWidgetProps
|
|
@@ -221,6 +387,20 @@ type LendSupplyWidgetProps = LendSupplyProps & WidgetProps;
|
|
|
221
387
|
* @returns Lend pool supply widget component
|
|
222
388
|
*/
|
|
223
389
|
declare function LendSupplyWidget(props: LendSupplyWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
390
|
+
/**
|
|
391
|
+
* Lend pool supply widget props V2
|
|
392
|
+
* @typedef {Object} LendSupplyWidgetPropsV2
|
|
393
|
+
* @property {LendSupplyPropsV2} LendSupplyPropsV2 - Lend pool supply props V2.
|
|
394
|
+
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
395
|
+
*/
|
|
396
|
+
type LendSupplyWidgetPropsV2 = LendSupplyPropsV2 & WidgetProps;
|
|
397
|
+
/**
|
|
398
|
+
* Lend supply widget V2
|
|
399
|
+
*
|
|
400
|
+
* @param {LendSupplyWidgetPropsV2} props - The lend pool supply widget props V2.
|
|
401
|
+
* @returns Lend pool supply widget component V2
|
|
402
|
+
*/
|
|
403
|
+
declare function LendSupplyWidgetV2(props: LendSupplyWidgetPropsV2): _emotion_react_jsx_runtime.JSX.Element;
|
|
224
404
|
/**
|
|
225
405
|
* Lend pool withdraw widget props
|
|
226
406
|
* @typedef {Object} LendWithdrawWidgetProps
|
|
@@ -235,6 +415,62 @@ type LendWithdrawWidgetProps = LendWithdrawProps & WidgetProps;
|
|
|
235
415
|
* @returns Lend pool withdraw widget component
|
|
236
416
|
*/
|
|
237
417
|
declare function LendWithdrawWidget(props: LendWithdrawWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
418
|
+
/**
|
|
419
|
+
* Lend pool supply widget props V2
|
|
420
|
+
* @typedef {Object} LendWithdrawWidgetPropsV2
|
|
421
|
+
* @property {LendWithdrawPropsV2} LendSupplyPropsV2 - Lend pool supply props V2.
|
|
422
|
+
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
423
|
+
*/
|
|
424
|
+
type LendWithdrawWidgetPropsV2 = LendWithdrawPropsV2 & WidgetProps;
|
|
425
|
+
/**
|
|
426
|
+
* Lend withdraw widget V2
|
|
427
|
+
*
|
|
428
|
+
* @param {LendWithdrawWidgetPropsV2} props - The lend pool supply widget props V2.
|
|
429
|
+
* @returns Lend pool supply widget component V2
|
|
430
|
+
*/
|
|
431
|
+
declare function LendWithdrawWidgetV2(props: LendWithdrawWidgetPropsV2): _emotion_react_jsx_runtime.JSX.Element;
|
|
432
|
+
/**
|
|
433
|
+
* Lend pool add redemption widget props V2
|
|
434
|
+
* @typedef {Object} AddRedemptionWidgetPropsV2
|
|
435
|
+
* @property {AddRedemptionWidgetPropsV2} AddRedemptionWidgetPropsV2 - Lend pool add redemption props V2.
|
|
436
|
+
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
437
|
+
*/
|
|
438
|
+
type AddRedemptionWidgetPropsV2 = AddRedemptionPropsV2 & WidgetProps;
|
|
439
|
+
/**
|
|
440
|
+
* Add redemption widget V2
|
|
441
|
+
*
|
|
442
|
+
* @param {AddRedemptionWidgetPropsV2} props - The lend pool add redemption widget props V2.
|
|
443
|
+
* @returns Lend pool add redemption widget component V2
|
|
444
|
+
*/
|
|
445
|
+
declare function AddRedemptionWidgetV2(props: AddRedemptionWidgetPropsV2): _emotion_react_jsx_runtime.JSX.Element;
|
|
446
|
+
/**
|
|
447
|
+
* Lend pool cancel redemption widget props V2
|
|
448
|
+
* @typedef {Object} CancelRedemptionWidgetPropsV2
|
|
449
|
+
* @property {CancelRedemptionWidgetPropsV2} CancelRedemptionWidgetPropsV2 - Lend pool cancel redemption props V2.
|
|
450
|
+
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
451
|
+
*/
|
|
452
|
+
type CancelRedemptionWidgetPropsV2 = CancelRedemptionPropsV2 & WidgetProps;
|
|
453
|
+
/**
|
|
454
|
+
* Cancel redemption widget V2
|
|
455
|
+
*
|
|
456
|
+
* @param {CancelRedemptionWidgetPropsV2} props - The lend pool cancel redemption widget props V2.
|
|
457
|
+
* @returns Lend pool cancel redemption widget component V2
|
|
458
|
+
*/
|
|
459
|
+
declare function CancelRedemptionWidgetV2(props: CancelRedemptionWidgetPropsV2): _emotion_react_jsx_runtime.JSX.Element;
|
|
460
|
+
/**
|
|
461
|
+
* Supply first loss cover widget props
|
|
462
|
+
* @typedef {Object} SupplyFirstLossCoverWidgetProps
|
|
463
|
+
* @property {SupplyFirstLossCover} SupplyFirstLossCover - Supply first loss cover props.
|
|
464
|
+
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
465
|
+
*/
|
|
466
|
+
type SupplyFirstLossCoverWidgetProps = SupplyFirstLossCoverProps & WidgetProps;
|
|
467
|
+
/**
|
|
468
|
+
* Supply first loss cover widget
|
|
469
|
+
*
|
|
470
|
+
* @param {SupplyFirstLossCoverWidgetProps} props - The supply first loss cover widget props.
|
|
471
|
+
* @returns Supply first loss cover widget component
|
|
472
|
+
*/
|
|
473
|
+
declare function SupplyFirstLossCoverWidget(props: SupplyFirstLossCoverWidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
238
474
|
/**
|
|
239
475
|
* Superfluid factoring widget
|
|
240
476
|
*
|
|
@@ -242,5 +478,47 @@ declare function LendWithdrawWidget(props: LendWithdrawWidgetProps): _emotion_re
|
|
|
242
478
|
* @returns Superfluid factoring widget component
|
|
243
479
|
*/
|
|
244
480
|
declare function SuperfluidFactoringWidget(props: WidgetProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
481
|
+
/**
|
|
482
|
+
* Auto payback widget props V2
|
|
483
|
+
* @typedef {Object} AutoPaybackWidgetPropsV2
|
|
484
|
+
* @property {AutoPayback} AutoPayback - Auto payback props V2.
|
|
485
|
+
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
486
|
+
*/
|
|
487
|
+
type AutoPaybackWidgetPropsV2 = AutoPaybackPropsV2 & WidgetProps;
|
|
488
|
+
/**
|
|
489
|
+
* Supply first loss cover widget
|
|
490
|
+
*
|
|
491
|
+
* @param {SupplyFirstLossCoverWidgetProps} props - The supply first loss cover widget props.
|
|
492
|
+
* @returns Supply first loss cover widget component
|
|
493
|
+
*/
|
|
494
|
+
declare function AutoPaybackWidgetV2(props: AutoPaybackWidgetPropsV2): _emotion_react_jsx_runtime.JSX.Element;
|
|
495
|
+
/**
|
|
496
|
+
* Receivable backed credit line pool borrow widget props V2
|
|
497
|
+
* @typedef {Object} ReceivableBackedCreditLineBorrowWidgetPropsV2
|
|
498
|
+
* @property {ReceivableBackedCreditLineBorrowPropsV2} ReceivableBackedCreditLineBorrowPropsV2 - Receivable backed credit line pool borrow props V2.
|
|
499
|
+
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
500
|
+
*/
|
|
501
|
+
type ReceivableBackedCreditLineBorrowWidgetPropsV2 = ReceivableBackedCreditLineBorrowPropsV2 & WidgetProps;
|
|
502
|
+
/**
|
|
503
|
+
* Receivable backed credit line borrow widget V2
|
|
504
|
+
*
|
|
505
|
+
* @param {ReceivableBackedCreditLineBorrowWidgetPropsV2} props - The receivable backed credit line pool borrow widget props V2.
|
|
506
|
+
* @returns Receivable backed credit line pool borrow widget component V2
|
|
507
|
+
*/
|
|
508
|
+
declare function ReceivableBackedCreditLineBorrowWidgetV2(props: ReceivableBackedCreditLineBorrowWidgetPropsV2): _emotion_react_jsx_runtime.JSX.Element;
|
|
509
|
+
/**
|
|
510
|
+
* Receivable backed credit line pool payment widget props V2
|
|
511
|
+
* @typedef {Object} ReceivableBackedCreditLinePaymentWidgetPropsV2
|
|
512
|
+
* @property {ReceivableBackedCreditLinePaymentPropsV2} ReceivableBackedCreditLinePaymentPropsV2 - Receivable backed credit line pool payment props V2.
|
|
513
|
+
* @property {WidgetProps} WidgetProps - Widget general props.
|
|
514
|
+
*/
|
|
515
|
+
type ReceivableBackedCreditLinePaymentWidgetPropsV2 = ReceivableBackedCreditLinePaymentPropsV2 & WidgetProps;
|
|
516
|
+
/**
|
|
517
|
+
* Receivable backed credit line payment widget V2
|
|
518
|
+
*
|
|
519
|
+
* @param {ReceivableBackedCreditLinePaymentWidgetPropsV2} props - The receivable backed credit line pool payment widget props V2.
|
|
520
|
+
* @returns Receivable backed credit line pool payment widget component V2
|
|
521
|
+
*/
|
|
522
|
+
declare function ReceivableBackedCreditLinePaymentWidgetV2(props: ReceivableBackedCreditLinePaymentWidgetPropsV2): _emotion_react_jsx_runtime.JSX.Element;
|
|
245
523
|
|
|
246
|
-
export { CreditLineApproveWidget, CreditLineBorrowWidget, CreditLinePaymentWidget, InvoiceFactoringBorrowWidget, InvoiceFactoringPaymentWidget, LendSupplyWidget, LendWithdrawWidget, SuperfluidFactoringWidget };
|
|
524
|
+
export { AddRedemptionWidgetV2, AutoPaybackWidgetV2, CancelRedemptionWidgetV2, CreditLineApproveWidget, CreditLineBorrowWidget, CreditLineBorrowWidgetV2, CreditLinePaymentWidget, CreditLinePaymentWidgetV2, InvoiceFactoringBorrowWidget, InvoiceFactoringPaymentWidget, LendSupplyWidget, LendSupplyWidgetV2, LendWithdrawWidget, LendWithdrawWidgetV2, ReceivableBackedCreditLineBorrowWidgetV2, ReceivableBackedCreditLinePaymentWidgetV2, SuperfluidFactoringWidget, SupplyFirstLossCoverWidget };
|