@huma-finance/widgets 0.0.31 → 0.0.33
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 +2 -2
- package/.eslintignore +2 -2
- package/.eslintrc.js +64 -64
- package/.prettierignore +4 -4
- package/.prettierrc.js +16 -16
- package/API.md +332 -332
- package/LICENSE +660 -660
- package/README.md +48 -48
- package/babel.config.js +15 -15
- package/config-overrides.js +9 -9
- package/cosmos.config.json +7 -7
- package/cypress/e2e/01-invoice-factoring-borrow.test.ts +62 -62
- package/cypress/support/e2e.ts +76 -76
- package/cypress/support/ethereum.ts +142 -142
- package/cypress/tsconfig.json +9 -9
- package/cypress/utils/index.ts +54 -54
- package/cypress.config.ts +20 -20
- package/dist/cjs/index.cjs +1026 -296
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +193 -193
- package/dist/index.js +1028 -299
- package/dist/index.js.map +1 -1
- package/jsdoc2md.json +20 -20
- package/package.json +4 -4
- package/public/index.html +40 -40
- package/public/manifest.json +25 -25
- package/public/robots.txt +3 -3
- package/rollup.config.js +81 -81
- package/src/components/Activity.tsx +132 -132
- package/src/components/ApolloWrapper.tsx +15 -15
- package/src/components/ApproveAllowanceModal.tsx +121 -121
- package/src/components/BottomButton.tsx +33 -33
- package/src/components/ChainNotSupportedModal.tsx +33 -33
- package/src/components/ChooseAmountModal.tsx +322 -322
- package/src/components/ConfirmTransferModal.tsx +153 -153
- package/src/components/CreditLine/borrow/1-Evaluation.tsx +157 -157
- package/src/components/CreditLine/borrow/2-ChooseAmount.tsx +68 -68
- package/src/components/CreditLine/borrow/3-Transfer.tsx +44 -44
- package/src/components/CreditLine/borrow/4-ApproveAllowance.tsx +29 -29
- package/src/components/CreditLine/borrow/5-Success.tsx +38 -30
- package/src/components/CreditLine/borrow/6-Notifications.tsx +10 -0
- package/src/components/CreditLine/borrow/index.tsx +136 -117
- package/src/components/CreditLine/payment/1-ChooseAmount.tsx +67 -67
- package/src/components/CreditLine/payment/2-ApproveAllowance.tsx +23 -23
- package/src/components/CreditLine/payment/3-Transfer.tsx +34 -34
- package/src/components/CreditLine/payment/4-Success.tsx +39 -39
- package/src/components/CreditLine/payment/index.tsx +94 -94
- package/src/components/ErrorModal.tsx +132 -132
- package/src/components/Factoring/FactoredList.tsx +143 -143
- package/src/components/Factoring/UpcomingList.tsx +90 -90
- package/src/components/Factoring/index.ts +2 -2
- package/src/components/HumaLoading.tsx +68 -68
- package/src/components/HumaSnackBar.tsx +60 -0
- package/src/components/HumaTable.tsx +158 -158
- package/src/components/InvoiceFactoring/borrow/1-Evaluation.tsx +49 -49
- package/src/components/InvoiceFactoring/borrow/2-ChooseAmount.tsx +88 -88
- package/src/components/InvoiceFactoring/borrow/3-ConfirmTransfer.tsx +37 -37
- package/src/components/InvoiceFactoring/borrow/4-ApproveNFT.tsx +55 -55
- package/src/components/InvoiceFactoring/borrow/5-Transfer.tsx +34 -34
- package/src/components/InvoiceFactoring/borrow/6-Success.tsx +20 -20
- package/src/components/InvoiceFactoring/borrow/index.tsx +94 -94
- package/src/components/InvoiceFactoring/payment/1-ChooseAmount.tsx +67 -67
- package/src/components/InvoiceFactoring/payment/2-ApproveAllowance.tsx +23 -23
- package/src/components/InvoiceFactoring/payment/3-Transfer.tsx +34 -34
- package/src/components/InvoiceFactoring/payment/4-Success.tsx +23 -23
- package/src/components/InvoiceFactoring/payment/index.tsx +86 -86
- package/src/components/Lend/supply/1-Evaluation/EvaluationEA.tsx +86 -0
- package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +287 -0
- package/src/components/Lend/supply/1-Evaluation/index.tsx +31 -0
- package/src/components/Lend/supply/2-ChooseAmount.tsx +69 -70
- package/src/components/Lend/supply/3-ApproveAllowance.tsx +25 -25
- package/src/components/Lend/supply/{6-Transfer.tsx → 4-Transfer.tsx} +32 -32
- package/src/components/Lend/supply/{7-Success.tsx → 5-Success.tsx} +60 -49
- package/src/components/Lend/supply/6-Notifications.tsx +10 -0
- package/src/components/Lend/supply/index.tsx +167 -144
- package/src/components/Lend/withdraw/1-CheckWithdrawble.tsx +73 -73
- package/src/components/Lend/withdraw/2-ChooseAmount.tsx +50 -50
- package/src/components/Lend/withdraw/3-Transfer.tsx +32 -32
- package/src/components/Lend/withdraw/4-Success.tsx +49 -49
- package/src/components/Lend/withdraw/index.tsx +101 -101
- package/src/components/LoadingModal.tsx +49 -49
- package/src/components/Notifi/NotifiSubscriptionModal.tsx +264 -0
- package/src/components/StreamFactoring/borrow/1-Evaluation.tsx +55 -55
- package/src/components/StreamFactoring/borrow/2-ChooseAmount.tsx +127 -127
- package/src/components/StreamFactoring/borrow/3-ConfirmTransfer.tsx +42 -42
- package/src/components/StreamFactoring/borrow/4-ApproveAllowance.tsx +33 -33
- package/src/components/StreamFactoring/borrow/5-Permit.tsx +144 -144
- package/src/components/StreamFactoring/borrow/6-Transfer.tsx +37 -37
- package/src/components/StreamFactoring/borrow/7-Success.tsx +20 -20
- package/src/components/StreamFactoring/borrow/index.tsx +94 -94
- package/src/components/StreamFactoring/payment/ChooseAmount.tsx +54 -54
- package/src/components/StreamFactoring/payment/Success.tsx +23 -23
- package/src/components/StreamFactoring/payment/Transfer.tsx +34 -34
- package/src/components/StreamFactoring/payment/index.tsx +66 -66
- package/src/components/SuperfluidFactoring/SuperfluidFactoredList.tsx +70 -70
- package/src/components/SuperfluidFactoring/SuperfluidUpcomingList.tsx +167 -167
- package/src/components/SuperfluidFactoring/index.tsx +85 -85
- package/src/components/TxDoneModal.tsx +85 -83
- package/src/components/TxSendModal.tsx +59 -59
- package/src/components/ViewOnExplorer.tsx +26 -26
- package/src/components/WidgetWrapper.tsx +74 -74
- package/src/components/WrapperModal.tsx +54 -54
- package/src/components/buttons/TableActionButton.tsx +36 -36
- package/src/components/buttons/index.ts +1 -1
- package/src/components/humaModal/HumaModal.tsx +68 -68
- package/src/components/humaModal/HumaModalHeader.tsx +70 -70
- package/src/components/humaModal/index.tsx +2 -2
- package/src/components/icons/approve-lender.svg +30 -30
- package/src/components/icons/auto-payback.svg +40 -40
- package/src/components/icons/check-circle.svg +3 -3
- package/src/components/icons/check-green.svg +3 -3
- package/src/components/icons/check.svg +10 -10
- package/src/components/icons/donut.svg +904 -904
- package/src/components/icons/ellipse.svg +3 -3
- package/src/components/icons/huma-full.svg +22 -22
- package/src/components/icons/huma.svg +15 -15
- package/src/components/icons/index.tsx +93 -93
- package/src/components/icons/loader.svg +229 -229
- package/src/components/icons/metamask.svg +31 -31
- package/src/components/icons/polygon.svg +16 -16
- package/src/components/icons/receipt.svg +3 -3
- package/src/components/icons/separator.svg +3 -3
- package/src/components/icons/sorry.svg +31 -31
- package/src/components/icons/usdc.svg +5 -5
- package/src/components/icons/wallet-connect.svg +11 -11
- package/src/cosmos/CreditLineBorrow.fixture.tsx +86 -86
- package/src/cosmos/CreditLinePayment.fixture.tsx +50 -50
- package/src/cosmos/InvoiceFactoringBorrow.fixture.tsx +111 -111
- package/src/cosmos/InvoiceFactoringPayment.fixture.tsx +67 -67
- package/src/cosmos/LendSupply.fixture.tsx +75 -75
- package/src/cosmos/LendWithdraw.fixture.tsx +43 -43
- package/src/cosmos/SDKTesting.fixture.tsx +616 -616
- package/src/cosmos/SuperfluidFactoringBorrow.fixture.tsx +15 -15
- package/src/cosmos/WalletWrapper.tsx +52 -52
- package/src/cosmos/abis/InvoiceNFT.json +644 -644
- package/src/cosmos/abis/ReceivableFactoringPool.json +1529 -1529
- package/src/cosmos/utils/env.ts +6 -6
- package/src/cosmos/utils/index.ts +169 -169
- package/src/fonts/Recoleta/Recoleta-Black.otf +0 -0
- package/src/fonts/Recoleta/Recoleta-Bold.otf +0 -0
- package/src/fonts/Recoleta/Recoleta-Light.otf +0 -0
- package/src/fonts/Recoleta/Recoleta-Medium.otf +0 -0
- package/src/fonts/Recoleta/Recoleta-Regular.otf +0 -0
- package/src/fonts/Recoleta/Recoleta-RegularDEMO.otf +0 -0
- package/src/fonts/Recoleta/Recoleta-SemiBold.otf +0 -0
- package/src/fonts/Recoleta/Recoleta-Thin.otf +0 -0
- package/src/hooks/useEA.ts +53 -53
- package/src/hooks/useNotifi.ts +71 -0
- package/src/hooks/useRedux.ts +6 -6
- package/src/index.css +61 -61
- package/src/index.tsx +301 -301
- package/src/react-app-env.d.ts +1 -1
- package/src/reportWebVitals.ts +15 -15
- package/src/setupTests.ts +6 -6
- package/src/store/index.ts +27 -27
- package/src/store/widgets.reducers.ts +120 -120
- package/src/store/widgets.selectors.ts +3 -3
- package/src/store/widgets.store.ts +55 -54
- package/src/theme/breakpoints.ts +10 -10
- package/src/theme/components.ts +70 -70
- package/src/theme/coreThemeConstants.ts +29 -29
- package/src/theme/cssMixins.ts +92 -92
- package/src/theme/hooks/useGetSizes.ts +31 -31
- package/src/theme/index.ts +24 -24
- package/src/theme/palette.ts +150 -150
- package/src/theme/shape.ts +7 -7
- package/src/theme/theme.types.ts +80 -80
- package/src/theme/typography.ts +117 -117
- package/src/utilTypes.d.ts +31 -31
- package/src/utils/env.ts +10 -10
- package/tsconfig.build.json +7 -7
- package/tsconfig.json +32 -32
- package/webpack.cosmos.js +54 -54
- package/src/components/Lend/supply/1-Evaluation.tsx +0 -175
- package/src/components/Lend/supply/4-ConfirmTransfer.tsx +0 -104
- package/src/components/NotifiSubscriptionModal.tsx +0 -84
package/API.md
CHANGED
|
@@ -1,332 +1,332 @@
|
|
|
1
|
-
## Functions
|
|
2
|
-
|
|
3
|
-
<dl>
|
|
4
|
-
<dt><a href="#InvoiceFactoringBorrowWidget">InvoiceFactoringBorrowWidget(props)</a> ⇒</dt>
|
|
5
|
-
<dd><p>Invoice factoring borrow widget</p></dd>
|
|
6
|
-
<dt><a href="#InvoiceFactoringPaymentWidget">InvoiceFactoringPaymentWidget(props)</a> ⇒</dt>
|
|
7
|
-
<dd><p>Invoice factoring payment widget</p></dd>
|
|
8
|
-
<dt><a href="#CreditLineBorrowWidget">CreditLineBorrowWidget(props)</a> ⇒</dt>
|
|
9
|
-
<dd><p>Credit line borrow widget</p></dd>
|
|
10
|
-
<dt><a href="#CreditLinePaymentWidget">CreditLinePaymentWidget(props)</a> ⇒</dt>
|
|
11
|
-
<dd><p>Credit line payment widget</p></dd>
|
|
12
|
-
<dt><a href="#LendSupplyWidget">LendSupplyWidget(props)</a> ⇒</dt>
|
|
13
|
-
<dd><p>Lend supply widget</p></dd>
|
|
14
|
-
<dt><a href="#LendWithdrawWidget">LendWithdrawWidget(props)</a> ⇒</dt>
|
|
15
|
-
<dd><p>Lend withdraw widget</p></dd>
|
|
16
|
-
<dt><a href="#SuperfluidFactoringWidget">SuperfluidFactoringWidget(props)</a> ⇒</dt>
|
|
17
|
-
<dd><p>Superfluid factoring widget</p></dd>
|
|
18
|
-
</dl>
|
|
19
|
-
|
|
20
|
-
## Typedefs
|
|
21
|
-
|
|
22
|
-
<dl>
|
|
23
|
-
<dt><a href="#CreditLineBorrowProps">CreditLineBorrowProps</a> : <code>Object</code></dt>
|
|
24
|
-
<dd><p>Credit line pool borrow props</p></dd>
|
|
25
|
-
<dt><a href="#CreditLinePaymentProps">CreditLinePaymentProps</a> : <code>Object</code></dt>
|
|
26
|
-
<dd><p>Credit line pool payment props</p></dd>
|
|
27
|
-
<dt><a href="#InvoiceFactoringBorrowProps">InvoiceFactoringBorrowProps</a> : <code>Object</code></dt>
|
|
28
|
-
<dd><p>Invoice factoring pool borrow props</p></dd>
|
|
29
|
-
<dt><a href="#InvoiceFactoringPaymentProps">InvoiceFactoringPaymentProps</a> : <code>Object</code></dt>
|
|
30
|
-
<dd><p>Invoice factoring pool payment props</p></dd>
|
|
31
|
-
<dt><a href="#LendSupplyProps">LendSupplyProps</a> : <code>Object</code></dt>
|
|
32
|
-
<dd><p>Lend pool supply props</p></dd>
|
|
33
|
-
<dt><a href="#LendWithdrawProps">LendWithdrawProps</a> : <code>Object</code></dt>
|
|
34
|
-
<dd><p>Lend pool withdraw props</p></dd>
|
|
35
|
-
<dt><a href="#JsonRpcConnectionMap">JsonRpcConnectionMap</a> : <code>Object</code></dt>
|
|
36
|
-
<dd><p>Mapping of your JSON-RPC connections indexed by chainId</p></dd>
|
|
37
|
-
<dt><a href="#WidgetProps">WidgetProps</a> : <code>Object</code></dt>
|
|
38
|
-
<dd><p>Object representing the props passed to web3 provider</p></dd>
|
|
39
|
-
<dt><a href="#InvoiceFactoringBorrowWidgetProps">InvoiceFactoringBorrowWidgetProps</a> : <code>Object</code></dt>
|
|
40
|
-
<dd><p>Invoice factoring pool borrow widget props</p></dd>
|
|
41
|
-
<dt><a href="#InvoiceFactoringPaymentWidgetProps">InvoiceFactoringPaymentWidgetProps</a> : <code>Object</code></dt>
|
|
42
|
-
<dd><p>Invoice factoring pool payment widget props</p></dd>
|
|
43
|
-
<dt><a href="#CreditLineBorrowWidgetProps">CreditLineBorrowWidgetProps</a> : <code>Object</code></dt>
|
|
44
|
-
<dd><p>Credit line pool borrow widget props</p></dd>
|
|
45
|
-
<dt><a href="#CreditLinePaymentWidgetProps">CreditLinePaymentWidgetProps</a> : <code>Object</code></dt>
|
|
46
|
-
<dd><p>Credit line pool payment widget props</p></dd>
|
|
47
|
-
<dt><a href="#LendSupplyWidgetProps">LendSupplyWidgetProps</a> : <code>Object</code></dt>
|
|
48
|
-
<dd><p>Lend pool supply widget props</p></dd>
|
|
49
|
-
<dt><a href="#LendWithdrawWidgetProps">LendWithdrawWidgetProps</a> : <code>Object</code></dt>
|
|
50
|
-
<dd><p>Lend pool withdraw widget props</p></dd>
|
|
51
|
-
</dl>
|
|
52
|
-
|
|
53
|
-
<a name="InvoiceFactoringBorrowWidget"></a>
|
|
54
|
-
|
|
55
|
-
## InvoiceFactoringBorrowWidget(props) ⇒
|
|
56
|
-
<p>Invoice factoring borrow widget</p>
|
|
57
|
-
|
|
58
|
-
**Kind**: global function
|
|
59
|
-
**Returns**: <p>Invoice factoring pool borrow widget component</p>
|
|
60
|
-
|
|
61
|
-
| Param | Type | Description |
|
|
62
|
-
| --- | --- | --- |
|
|
63
|
-
| props | [<code>InvoiceFactoringBorrowProps</code>](#InvoiceFactoringBorrowProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The invoice factoring pool borrow widget props.</p> |
|
|
64
|
-
|
|
65
|
-
<a name="InvoiceFactoringPaymentWidget"></a>
|
|
66
|
-
|
|
67
|
-
## InvoiceFactoringPaymentWidget(props) ⇒
|
|
68
|
-
<p>Invoice factoring payment widget</p>
|
|
69
|
-
|
|
70
|
-
**Kind**: global function
|
|
71
|
-
**Returns**: <p>Invoice factoring pool payment widget component</p>
|
|
72
|
-
|
|
73
|
-
| Param | Type | Description |
|
|
74
|
-
| --- | --- | --- |
|
|
75
|
-
| props | [<code>InvoiceFactoringPaymentProps</code>](#InvoiceFactoringPaymentProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The invoice factoring pool payment widget props.</p> |
|
|
76
|
-
|
|
77
|
-
<a name="CreditLineBorrowWidget"></a>
|
|
78
|
-
|
|
79
|
-
## CreditLineBorrowWidget(props) ⇒
|
|
80
|
-
<p>Credit line borrow widget</p>
|
|
81
|
-
|
|
82
|
-
**Kind**: global function
|
|
83
|
-
**Returns**: <p>Credit line pool borrow widget component</p>
|
|
84
|
-
|
|
85
|
-
| Param | Type | Description |
|
|
86
|
-
| --- | --- | --- |
|
|
87
|
-
| props | [<code>CreditLineBorrowProps</code>](#CreditLineBorrowProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The credit line pool borrow widget props.</p> |
|
|
88
|
-
|
|
89
|
-
<a name="CreditLinePaymentWidget"></a>
|
|
90
|
-
|
|
91
|
-
## CreditLinePaymentWidget(props) ⇒
|
|
92
|
-
<p>Credit line payment widget</p>
|
|
93
|
-
|
|
94
|
-
**Kind**: global function
|
|
95
|
-
**Returns**: <p>Credit line pool payment widget component</p>
|
|
96
|
-
|
|
97
|
-
| Param | Type | Description |
|
|
98
|
-
| --- | --- | --- |
|
|
99
|
-
| props | [<code>CreditLinePaymentProps</code>](#CreditLinePaymentProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The credit line pool payment widget props.</p> |
|
|
100
|
-
|
|
101
|
-
<a name="LendSupplyWidget"></a>
|
|
102
|
-
|
|
103
|
-
## LendSupplyWidget(props) ⇒
|
|
104
|
-
<p>Lend supply widget</p>
|
|
105
|
-
|
|
106
|
-
**Kind**: global function
|
|
107
|
-
**Returns**: <p>Lend pool supply widget component</p>
|
|
108
|
-
|
|
109
|
-
| Param | Type | Description |
|
|
110
|
-
| --- | --- | --- |
|
|
111
|
-
| props | [<code>LendSupplyProps</code>](#LendSupplyProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The lend pool supply widget props.</p> |
|
|
112
|
-
|
|
113
|
-
<a name="LendWithdrawWidget"></a>
|
|
114
|
-
|
|
115
|
-
## LendWithdrawWidget(props) ⇒
|
|
116
|
-
<p>Lend withdraw widget</p>
|
|
117
|
-
|
|
118
|
-
**Kind**: global function
|
|
119
|
-
**Returns**: <p>Lend pool withdraw widget component</p>
|
|
120
|
-
|
|
121
|
-
| Param | Type | Description |
|
|
122
|
-
| --- | --- | --- |
|
|
123
|
-
| props | [<code>LendWithdrawProps</code>](#LendWithdrawProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The lend pool withdraw widget props</p> |
|
|
124
|
-
|
|
125
|
-
<a name="SuperfluidFactoringWidget"></a>
|
|
126
|
-
|
|
127
|
-
## SuperfluidFactoringWidget(props) ⇒
|
|
128
|
-
<p>Superfluid factoring widget</p>
|
|
129
|
-
|
|
130
|
-
**Kind**: global function
|
|
131
|
-
**Returns**: <p>Superfluid factoring widget component</p>
|
|
132
|
-
|
|
133
|
-
| Param | Type | Description |
|
|
134
|
-
| --- | --- | --- |
|
|
135
|
-
| props | [<code>WidgetProps</code>](#WidgetProps) | <p>The superfluid factoring widget props.</p> |
|
|
136
|
-
|
|
137
|
-
<a name="CreditLineBorrowProps"></a>
|
|
138
|
-
|
|
139
|
-
## CreditLineBorrowProps : <code>Object</code>
|
|
140
|
-
<p>Credit line pool borrow props</p>
|
|
141
|
-
|
|
142
|
-
**Kind**: global typedef
|
|
143
|
-
**Properties**
|
|
144
|
-
|
|
145
|
-
| Name | Type | Description |
|
|
146
|
-
| --- | --- | --- |
|
|
147
|
-
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
148
|
-
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
149
|
-
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
150
|
-
| handleApprove | <code>function</code> | <p>Optional function to notify when user is approved successfully to borrow again pool.</p> |
|
|
151
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool borrow action is successful.</p> |
|
|
152
|
-
|
|
153
|
-
<a name="CreditLinePaymentProps"></a>
|
|
154
|
-
|
|
155
|
-
## CreditLinePaymentProps : <code>Object</code>
|
|
156
|
-
<p>Credit line pool payment props</p>
|
|
157
|
-
|
|
158
|
-
**Kind**: global typedef
|
|
159
|
-
**Properties**
|
|
160
|
-
|
|
161
|
-
| Name | Type | Description |
|
|
162
|
-
| --- | --- | --- |
|
|
163
|
-
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
164
|
-
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
165
|
-
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
166
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool payment action is successful.</p> |
|
|
167
|
-
|
|
168
|
-
<a name="InvoiceFactoringBorrowProps"></a>
|
|
169
|
-
|
|
170
|
-
## InvoiceFactoringBorrowProps : <code>Object</code>
|
|
171
|
-
<p>Invoice factoring pool borrow props</p>
|
|
172
|
-
|
|
173
|
-
**Kind**: global typedef
|
|
174
|
-
**Properties**
|
|
175
|
-
|
|
176
|
-
| Name | Type | Description |
|
|
177
|
-
| --- | --- | --- |
|
|
178
|
-
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
179
|
-
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
180
|
-
| tokenId | <code>string</code> \| <code>BigNumber</code> | <p>The NFT token id representing invoice.</p> |
|
|
181
|
-
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
182
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the invoice pool borrow action is successful.</p> |
|
|
183
|
-
|
|
184
|
-
<a name="InvoiceFactoringPaymentProps"></a>
|
|
185
|
-
|
|
186
|
-
## InvoiceFactoringPaymentProps : <code>Object</code>
|
|
187
|
-
<p>Invoice factoring pool payment props</p>
|
|
188
|
-
|
|
189
|
-
**Kind**: global typedef
|
|
190
|
-
**Properties**
|
|
191
|
-
|
|
192
|
-
| Name | Type | Description |
|
|
193
|
-
| --- | --- | --- |
|
|
194
|
-
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
195
|
-
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
196
|
-
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
197
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the invoice pool payment action is successful.</p> |
|
|
198
|
-
|
|
199
|
-
<a name="LendSupplyProps"></a>
|
|
200
|
-
|
|
201
|
-
## LendSupplyProps : <code>Object</code>
|
|
202
|
-
<p>Lend pool supply props</p>
|
|
203
|
-
|
|
204
|
-
**Kind**: global typedef
|
|
205
|
-
**Properties**
|
|
206
|
-
|
|
207
|
-
| Name | Type | Description |
|
|
208
|
-
| --- | --- | --- |
|
|
209
|
-
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
210
|
-
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
211
|
-
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
212
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
213
|
-
|
|
214
|
-
<a name="LendWithdrawProps"></a>
|
|
215
|
-
|
|
216
|
-
## LendWithdrawProps : <code>Object</code>
|
|
217
|
-
<p>Lend pool withdraw props</p>
|
|
218
|
-
|
|
219
|
-
**Kind**: global typedef
|
|
220
|
-
**Properties**
|
|
221
|
-
|
|
222
|
-
| Name | Type | Description |
|
|
223
|
-
| --- | --- | --- |
|
|
224
|
-
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
225
|
-
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
226
|
-
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
227
|
-
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool withdraw action is successful.</p> |
|
|
228
|
-
|
|
229
|
-
<a name="JsonRpcConnectionMap"></a>
|
|
230
|
-
|
|
231
|
-
## JsonRpcConnectionMap : <code>Object</code>
|
|
232
|
-
<p>Mapping of your JSON-RPC connections indexed by chainId</p>
|
|
233
|
-
|
|
234
|
-
**Kind**: global typedef
|
|
235
|
-
**Properties**
|
|
236
|
-
|
|
237
|
-
| Name | Type | Description |
|
|
238
|
-
| --- | --- | --- |
|
|
239
|
-
| chainId | <code>Object.<number, (string\|Array.<string>\|JsonRpcProvider\|Array.<JsonRpcProvider>)></code> | <p>Chain id to map the JSON-RPC URL/URLs or JsonRpcProvider/JsonRpcProviders</p> |
|
|
240
|
-
|
|
241
|
-
<a name="WidgetProps"></a>
|
|
242
|
-
|
|
243
|
-
## WidgetProps : <code>Object</code>
|
|
244
|
-
<p>Object representing the props passed to web3 provider</p>
|
|
245
|
-
|
|
246
|
-
**Kind**: global typedef
|
|
247
|
-
**Properties**
|
|
248
|
-
|
|
249
|
-
| Name | Type | Description |
|
|
250
|
-
| --- | --- | --- |
|
|
251
|
-
| desiredChainId | <code>desiredChainId</code> \| <code>undefined</code> | <p>Optional desired chain id, will trigger the switch network action if different from the current chain id</p> |
|
|
252
|
-
| jsonRpcUrlMap | [<code>JsonRpcConnectionMap</code>](#JsonRpcConnectionMap) \| <code>undefined</code> | <p>Optional mapping of your JSON-RPC connections indexed by chainId</p> |
|
|
253
|
-
| provider | <code>Eip1193Provider</code> \| <code>JsonRpcProvider</code> \| <code>null</code> \| <code>undefined</code> | <p>Optional EIP-1193 provider or JsonRpc Provider</p> |
|
|
254
|
-
|
|
255
|
-
<a name="InvoiceFactoringBorrowWidgetProps"></a>
|
|
256
|
-
|
|
257
|
-
## InvoiceFactoringBorrowWidgetProps : <code>Object</code>
|
|
258
|
-
<p>Invoice factoring pool borrow widget props</p>
|
|
259
|
-
|
|
260
|
-
**Kind**: global typedef
|
|
261
|
-
**Properties**
|
|
262
|
-
|
|
263
|
-
| Name | Type | Description |
|
|
264
|
-
| --- | --- | --- |
|
|
265
|
-
| InvoiceFactoringBorrowProps | [<code>InvoiceFactoringBorrowProps</code>](#InvoiceFactoringBorrowProps) | <p>Invoice factoring pool borrow props.</p> |
|
|
266
|
-
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
267
|
-
|
|
268
|
-
<a name="InvoiceFactoringPaymentWidgetProps"></a>
|
|
269
|
-
|
|
270
|
-
## InvoiceFactoringPaymentWidgetProps : <code>Object</code>
|
|
271
|
-
<p>Invoice factoring pool payment widget props</p>
|
|
272
|
-
|
|
273
|
-
**Kind**: global typedef
|
|
274
|
-
**Properties**
|
|
275
|
-
|
|
276
|
-
| Name | Type | Description |
|
|
277
|
-
| --- | --- | --- |
|
|
278
|
-
| InvoiceFactoringPaymentProps | [<code>InvoiceFactoringPaymentProps</code>](#InvoiceFactoringPaymentProps) | <p>Invoice factoring pool payment props.</p> |
|
|
279
|
-
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
280
|
-
|
|
281
|
-
<a name="CreditLineBorrowWidgetProps"></a>
|
|
282
|
-
|
|
283
|
-
## CreditLineBorrowWidgetProps : <code>Object</code>
|
|
284
|
-
<p>Credit line pool borrow widget props</p>
|
|
285
|
-
|
|
286
|
-
**Kind**: global typedef
|
|
287
|
-
**Properties**
|
|
288
|
-
|
|
289
|
-
| Name | Type | Description |
|
|
290
|
-
| --- | --- | --- |
|
|
291
|
-
| CreditLineBorrowProps | [<code>CreditLineBorrowProps</code>](#CreditLineBorrowProps) | <p>Credit line pool borrow props.</p> |
|
|
292
|
-
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
293
|
-
|
|
294
|
-
<a name="CreditLinePaymentWidgetProps"></a>
|
|
295
|
-
|
|
296
|
-
## CreditLinePaymentWidgetProps : <code>Object</code>
|
|
297
|
-
<p>Credit line pool payment widget props</p>
|
|
298
|
-
|
|
299
|
-
**Kind**: global typedef
|
|
300
|
-
**Properties**
|
|
301
|
-
|
|
302
|
-
| Name | Type | Description |
|
|
303
|
-
| --- | --- | --- |
|
|
304
|
-
| CreditLinePaymentProps | [<code>CreditLinePaymentProps</code>](#CreditLinePaymentProps) | <p>Credit line pool payment props.</p> |
|
|
305
|
-
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
306
|
-
|
|
307
|
-
<a name="LendSupplyWidgetProps"></a>
|
|
308
|
-
|
|
309
|
-
## LendSupplyWidgetProps : <code>Object</code>
|
|
310
|
-
<p>Lend pool supply widget props</p>
|
|
311
|
-
|
|
312
|
-
**Kind**: global typedef
|
|
313
|
-
**Properties**
|
|
314
|
-
|
|
315
|
-
| Name | Type | Description |
|
|
316
|
-
| --- | --- | --- |
|
|
317
|
-
| LendSupplyProps | [<code>LendSupplyProps</code>](#LendSupplyProps) | <p>Lend pool supply props.</p> |
|
|
318
|
-
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
319
|
-
|
|
320
|
-
<a name="LendWithdrawWidgetProps"></a>
|
|
321
|
-
|
|
322
|
-
## LendWithdrawWidgetProps : <code>Object</code>
|
|
323
|
-
<p>Lend pool withdraw widget props</p>
|
|
324
|
-
|
|
325
|
-
**Kind**: global typedef
|
|
326
|
-
**Properties**
|
|
327
|
-
|
|
328
|
-
| Name | Type | Description |
|
|
329
|
-
| --- | --- | --- |
|
|
330
|
-
| LendWithdrawProps | [<code>LendWithdrawProps</code>](#LendWithdrawProps) | <p>Lend pool withdraw props.</p> |
|
|
331
|
-
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
332
|
-
|
|
1
|
+
## Functions
|
|
2
|
+
|
|
3
|
+
<dl>
|
|
4
|
+
<dt><a href="#InvoiceFactoringBorrowWidget">InvoiceFactoringBorrowWidget(props)</a> ⇒</dt>
|
|
5
|
+
<dd><p>Invoice factoring borrow widget</p></dd>
|
|
6
|
+
<dt><a href="#InvoiceFactoringPaymentWidget">InvoiceFactoringPaymentWidget(props)</a> ⇒</dt>
|
|
7
|
+
<dd><p>Invoice factoring payment widget</p></dd>
|
|
8
|
+
<dt><a href="#CreditLineBorrowWidget">CreditLineBorrowWidget(props)</a> ⇒</dt>
|
|
9
|
+
<dd><p>Credit line borrow widget</p></dd>
|
|
10
|
+
<dt><a href="#CreditLinePaymentWidget">CreditLinePaymentWidget(props)</a> ⇒</dt>
|
|
11
|
+
<dd><p>Credit line payment widget</p></dd>
|
|
12
|
+
<dt><a href="#LendSupplyWidget">LendSupplyWidget(props)</a> ⇒</dt>
|
|
13
|
+
<dd><p>Lend supply widget</p></dd>
|
|
14
|
+
<dt><a href="#LendWithdrawWidget">LendWithdrawWidget(props)</a> ⇒</dt>
|
|
15
|
+
<dd><p>Lend withdraw widget</p></dd>
|
|
16
|
+
<dt><a href="#SuperfluidFactoringWidget">SuperfluidFactoringWidget(props)</a> ⇒</dt>
|
|
17
|
+
<dd><p>Superfluid factoring widget</p></dd>
|
|
18
|
+
</dl>
|
|
19
|
+
|
|
20
|
+
## Typedefs
|
|
21
|
+
|
|
22
|
+
<dl>
|
|
23
|
+
<dt><a href="#CreditLineBorrowProps">CreditLineBorrowProps</a> : <code>Object</code></dt>
|
|
24
|
+
<dd><p>Credit line pool borrow props</p></dd>
|
|
25
|
+
<dt><a href="#CreditLinePaymentProps">CreditLinePaymentProps</a> : <code>Object</code></dt>
|
|
26
|
+
<dd><p>Credit line pool payment props</p></dd>
|
|
27
|
+
<dt><a href="#InvoiceFactoringBorrowProps">InvoiceFactoringBorrowProps</a> : <code>Object</code></dt>
|
|
28
|
+
<dd><p>Invoice factoring pool borrow props</p></dd>
|
|
29
|
+
<dt><a href="#InvoiceFactoringPaymentProps">InvoiceFactoringPaymentProps</a> : <code>Object</code></dt>
|
|
30
|
+
<dd><p>Invoice factoring pool payment props</p></dd>
|
|
31
|
+
<dt><a href="#LendSupplyProps">LendSupplyProps</a> : <code>Object</code></dt>
|
|
32
|
+
<dd><p>Lend pool supply props</p></dd>
|
|
33
|
+
<dt><a href="#LendWithdrawProps">LendWithdrawProps</a> : <code>Object</code></dt>
|
|
34
|
+
<dd><p>Lend pool withdraw props</p></dd>
|
|
35
|
+
<dt><a href="#JsonRpcConnectionMap">JsonRpcConnectionMap</a> : <code>Object</code></dt>
|
|
36
|
+
<dd><p>Mapping of your JSON-RPC connections indexed by chainId</p></dd>
|
|
37
|
+
<dt><a href="#WidgetProps">WidgetProps</a> : <code>Object</code></dt>
|
|
38
|
+
<dd><p>Object representing the props passed to web3 provider</p></dd>
|
|
39
|
+
<dt><a href="#InvoiceFactoringBorrowWidgetProps">InvoiceFactoringBorrowWidgetProps</a> : <code>Object</code></dt>
|
|
40
|
+
<dd><p>Invoice factoring pool borrow widget props</p></dd>
|
|
41
|
+
<dt><a href="#InvoiceFactoringPaymentWidgetProps">InvoiceFactoringPaymentWidgetProps</a> : <code>Object</code></dt>
|
|
42
|
+
<dd><p>Invoice factoring pool payment widget props</p></dd>
|
|
43
|
+
<dt><a href="#CreditLineBorrowWidgetProps">CreditLineBorrowWidgetProps</a> : <code>Object</code></dt>
|
|
44
|
+
<dd><p>Credit line pool borrow widget props</p></dd>
|
|
45
|
+
<dt><a href="#CreditLinePaymentWidgetProps">CreditLinePaymentWidgetProps</a> : <code>Object</code></dt>
|
|
46
|
+
<dd><p>Credit line pool payment widget props</p></dd>
|
|
47
|
+
<dt><a href="#LendSupplyWidgetProps">LendSupplyWidgetProps</a> : <code>Object</code></dt>
|
|
48
|
+
<dd><p>Lend pool supply widget props</p></dd>
|
|
49
|
+
<dt><a href="#LendWithdrawWidgetProps">LendWithdrawWidgetProps</a> : <code>Object</code></dt>
|
|
50
|
+
<dd><p>Lend pool withdraw widget props</p></dd>
|
|
51
|
+
</dl>
|
|
52
|
+
|
|
53
|
+
<a name="InvoiceFactoringBorrowWidget"></a>
|
|
54
|
+
|
|
55
|
+
## InvoiceFactoringBorrowWidget(props) ⇒
|
|
56
|
+
<p>Invoice factoring borrow widget</p>
|
|
57
|
+
|
|
58
|
+
**Kind**: global function
|
|
59
|
+
**Returns**: <p>Invoice factoring pool borrow widget component</p>
|
|
60
|
+
|
|
61
|
+
| Param | Type | Description |
|
|
62
|
+
| --- | --- | --- |
|
|
63
|
+
| props | [<code>InvoiceFactoringBorrowProps</code>](#InvoiceFactoringBorrowProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The invoice factoring pool borrow widget props.</p> |
|
|
64
|
+
|
|
65
|
+
<a name="InvoiceFactoringPaymentWidget"></a>
|
|
66
|
+
|
|
67
|
+
## InvoiceFactoringPaymentWidget(props) ⇒
|
|
68
|
+
<p>Invoice factoring payment widget</p>
|
|
69
|
+
|
|
70
|
+
**Kind**: global function
|
|
71
|
+
**Returns**: <p>Invoice factoring pool payment widget component</p>
|
|
72
|
+
|
|
73
|
+
| Param | Type | Description |
|
|
74
|
+
| --- | --- | --- |
|
|
75
|
+
| props | [<code>InvoiceFactoringPaymentProps</code>](#InvoiceFactoringPaymentProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The invoice factoring pool payment widget props.</p> |
|
|
76
|
+
|
|
77
|
+
<a name="CreditLineBorrowWidget"></a>
|
|
78
|
+
|
|
79
|
+
## CreditLineBorrowWidget(props) ⇒
|
|
80
|
+
<p>Credit line borrow widget</p>
|
|
81
|
+
|
|
82
|
+
**Kind**: global function
|
|
83
|
+
**Returns**: <p>Credit line pool borrow widget component</p>
|
|
84
|
+
|
|
85
|
+
| Param | Type | Description |
|
|
86
|
+
| --- | --- | --- |
|
|
87
|
+
| props | [<code>CreditLineBorrowProps</code>](#CreditLineBorrowProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The credit line pool borrow widget props.</p> |
|
|
88
|
+
|
|
89
|
+
<a name="CreditLinePaymentWidget"></a>
|
|
90
|
+
|
|
91
|
+
## CreditLinePaymentWidget(props) ⇒
|
|
92
|
+
<p>Credit line payment widget</p>
|
|
93
|
+
|
|
94
|
+
**Kind**: global function
|
|
95
|
+
**Returns**: <p>Credit line pool payment widget component</p>
|
|
96
|
+
|
|
97
|
+
| Param | Type | Description |
|
|
98
|
+
| --- | --- | --- |
|
|
99
|
+
| props | [<code>CreditLinePaymentProps</code>](#CreditLinePaymentProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The credit line pool payment widget props.</p> |
|
|
100
|
+
|
|
101
|
+
<a name="LendSupplyWidget"></a>
|
|
102
|
+
|
|
103
|
+
## LendSupplyWidget(props) ⇒
|
|
104
|
+
<p>Lend supply widget</p>
|
|
105
|
+
|
|
106
|
+
**Kind**: global function
|
|
107
|
+
**Returns**: <p>Lend pool supply widget component</p>
|
|
108
|
+
|
|
109
|
+
| Param | Type | Description |
|
|
110
|
+
| --- | --- | --- |
|
|
111
|
+
| props | [<code>LendSupplyProps</code>](#LendSupplyProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The lend pool supply widget props.</p> |
|
|
112
|
+
|
|
113
|
+
<a name="LendWithdrawWidget"></a>
|
|
114
|
+
|
|
115
|
+
## LendWithdrawWidget(props) ⇒
|
|
116
|
+
<p>Lend withdraw widget</p>
|
|
117
|
+
|
|
118
|
+
**Kind**: global function
|
|
119
|
+
**Returns**: <p>Lend pool withdraw widget component</p>
|
|
120
|
+
|
|
121
|
+
| Param | Type | Description |
|
|
122
|
+
| --- | --- | --- |
|
|
123
|
+
| props | [<code>LendWithdrawProps</code>](#LendWithdrawProps) \| [<code>WidgetProps</code>](#WidgetProps) | <p>The lend pool withdraw widget props</p> |
|
|
124
|
+
|
|
125
|
+
<a name="SuperfluidFactoringWidget"></a>
|
|
126
|
+
|
|
127
|
+
## SuperfluidFactoringWidget(props) ⇒
|
|
128
|
+
<p>Superfluid factoring widget</p>
|
|
129
|
+
|
|
130
|
+
**Kind**: global function
|
|
131
|
+
**Returns**: <p>Superfluid factoring widget component</p>
|
|
132
|
+
|
|
133
|
+
| Param | Type | Description |
|
|
134
|
+
| --- | --- | --- |
|
|
135
|
+
| props | [<code>WidgetProps</code>](#WidgetProps) | <p>The superfluid factoring widget props.</p> |
|
|
136
|
+
|
|
137
|
+
<a name="CreditLineBorrowProps"></a>
|
|
138
|
+
|
|
139
|
+
## CreditLineBorrowProps : <code>Object</code>
|
|
140
|
+
<p>Credit line pool borrow props</p>
|
|
141
|
+
|
|
142
|
+
**Kind**: global typedef
|
|
143
|
+
**Properties**
|
|
144
|
+
|
|
145
|
+
| Name | Type | Description |
|
|
146
|
+
| --- | --- | --- |
|
|
147
|
+
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
148
|
+
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
149
|
+
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
150
|
+
| handleApprove | <code>function</code> | <p>Optional function to notify when user is approved successfully to borrow again pool.</p> |
|
|
151
|
+
| handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool borrow action is successful.</p> |
|
|
152
|
+
|
|
153
|
+
<a name="CreditLinePaymentProps"></a>
|
|
154
|
+
|
|
155
|
+
## CreditLinePaymentProps : <code>Object</code>
|
|
156
|
+
<p>Credit line pool payment props</p>
|
|
157
|
+
|
|
158
|
+
**Kind**: global typedef
|
|
159
|
+
**Properties**
|
|
160
|
+
|
|
161
|
+
| Name | Type | Description |
|
|
162
|
+
| --- | --- | --- |
|
|
163
|
+
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
164
|
+
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
165
|
+
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
166
|
+
| handleSuccess | <code>function</code> | <p>Optional function to notify that the credit line pool payment action is successful.</p> |
|
|
167
|
+
|
|
168
|
+
<a name="InvoiceFactoringBorrowProps"></a>
|
|
169
|
+
|
|
170
|
+
## InvoiceFactoringBorrowProps : <code>Object</code>
|
|
171
|
+
<p>Invoice factoring pool borrow props</p>
|
|
172
|
+
|
|
173
|
+
**Kind**: global typedef
|
|
174
|
+
**Properties**
|
|
175
|
+
|
|
176
|
+
| Name | Type | Description |
|
|
177
|
+
| --- | --- | --- |
|
|
178
|
+
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
179
|
+
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
180
|
+
| tokenId | <code>string</code> \| <code>BigNumber</code> | <p>The NFT token id representing invoice.</p> |
|
|
181
|
+
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
182
|
+
| handleSuccess | <code>function</code> | <p>Optional function to notify that the invoice pool borrow action is successful.</p> |
|
|
183
|
+
|
|
184
|
+
<a name="InvoiceFactoringPaymentProps"></a>
|
|
185
|
+
|
|
186
|
+
## InvoiceFactoringPaymentProps : <code>Object</code>
|
|
187
|
+
<p>Invoice factoring pool payment props</p>
|
|
188
|
+
|
|
189
|
+
**Kind**: global typedef
|
|
190
|
+
**Properties**
|
|
191
|
+
|
|
192
|
+
| Name | Type | Description |
|
|
193
|
+
| --- | --- | --- |
|
|
194
|
+
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
195
|
+
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
196
|
+
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
197
|
+
| handleSuccess | <code>function</code> | <p>Optional function to notify that the invoice pool payment action is successful.</p> |
|
|
198
|
+
|
|
199
|
+
<a name="LendSupplyProps"></a>
|
|
200
|
+
|
|
201
|
+
## LendSupplyProps : <code>Object</code>
|
|
202
|
+
<p>Lend pool supply props</p>
|
|
203
|
+
|
|
204
|
+
**Kind**: global typedef
|
|
205
|
+
**Properties**
|
|
206
|
+
|
|
207
|
+
| Name | Type | Description |
|
|
208
|
+
| --- | --- | --- |
|
|
209
|
+
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
210
|
+
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
211
|
+
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
212
|
+
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
213
|
+
|
|
214
|
+
<a name="LendWithdrawProps"></a>
|
|
215
|
+
|
|
216
|
+
## LendWithdrawProps : <code>Object</code>
|
|
217
|
+
<p>Lend pool withdraw props</p>
|
|
218
|
+
|
|
219
|
+
**Kind**: global typedef
|
|
220
|
+
**Properties**
|
|
221
|
+
|
|
222
|
+
| Name | Type | Description |
|
|
223
|
+
| --- | --- | --- |
|
|
224
|
+
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
225
|
+
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
226
|
+
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
227
|
+
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool withdraw action is successful.</p> |
|
|
228
|
+
|
|
229
|
+
<a name="JsonRpcConnectionMap"></a>
|
|
230
|
+
|
|
231
|
+
## JsonRpcConnectionMap : <code>Object</code>
|
|
232
|
+
<p>Mapping of your JSON-RPC connections indexed by chainId</p>
|
|
233
|
+
|
|
234
|
+
**Kind**: global typedef
|
|
235
|
+
**Properties**
|
|
236
|
+
|
|
237
|
+
| Name | Type | Description |
|
|
238
|
+
| --- | --- | --- |
|
|
239
|
+
| chainId | <code>Object.<number, (string\|Array.<string>\|JsonRpcProvider\|Array.<JsonRpcProvider>)></code> | <p>Chain id to map the JSON-RPC URL/URLs or JsonRpcProvider/JsonRpcProviders</p> |
|
|
240
|
+
|
|
241
|
+
<a name="WidgetProps"></a>
|
|
242
|
+
|
|
243
|
+
## WidgetProps : <code>Object</code>
|
|
244
|
+
<p>Object representing the props passed to web3 provider</p>
|
|
245
|
+
|
|
246
|
+
**Kind**: global typedef
|
|
247
|
+
**Properties**
|
|
248
|
+
|
|
249
|
+
| Name | Type | Description |
|
|
250
|
+
| --- | --- | --- |
|
|
251
|
+
| desiredChainId | <code>desiredChainId</code> \| <code>undefined</code> | <p>Optional desired chain id, will trigger the switch network action if different from the current chain id</p> |
|
|
252
|
+
| jsonRpcUrlMap | [<code>JsonRpcConnectionMap</code>](#JsonRpcConnectionMap) \| <code>undefined</code> | <p>Optional mapping of your JSON-RPC connections indexed by chainId</p> |
|
|
253
|
+
| provider | <code>Eip1193Provider</code> \| <code>JsonRpcProvider</code> \| <code>null</code> \| <code>undefined</code> | <p>Optional EIP-1193 provider or JsonRpc Provider</p> |
|
|
254
|
+
|
|
255
|
+
<a name="InvoiceFactoringBorrowWidgetProps"></a>
|
|
256
|
+
|
|
257
|
+
## InvoiceFactoringBorrowWidgetProps : <code>Object</code>
|
|
258
|
+
<p>Invoice factoring pool borrow widget props</p>
|
|
259
|
+
|
|
260
|
+
**Kind**: global typedef
|
|
261
|
+
**Properties**
|
|
262
|
+
|
|
263
|
+
| Name | Type | Description |
|
|
264
|
+
| --- | --- | --- |
|
|
265
|
+
| InvoiceFactoringBorrowProps | [<code>InvoiceFactoringBorrowProps</code>](#InvoiceFactoringBorrowProps) | <p>Invoice factoring pool borrow props.</p> |
|
|
266
|
+
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
267
|
+
|
|
268
|
+
<a name="InvoiceFactoringPaymentWidgetProps"></a>
|
|
269
|
+
|
|
270
|
+
## InvoiceFactoringPaymentWidgetProps : <code>Object</code>
|
|
271
|
+
<p>Invoice factoring pool payment widget props</p>
|
|
272
|
+
|
|
273
|
+
**Kind**: global typedef
|
|
274
|
+
**Properties**
|
|
275
|
+
|
|
276
|
+
| Name | Type | Description |
|
|
277
|
+
| --- | --- | --- |
|
|
278
|
+
| InvoiceFactoringPaymentProps | [<code>InvoiceFactoringPaymentProps</code>](#InvoiceFactoringPaymentProps) | <p>Invoice factoring pool payment props.</p> |
|
|
279
|
+
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
280
|
+
|
|
281
|
+
<a name="CreditLineBorrowWidgetProps"></a>
|
|
282
|
+
|
|
283
|
+
## CreditLineBorrowWidgetProps : <code>Object</code>
|
|
284
|
+
<p>Credit line pool borrow widget props</p>
|
|
285
|
+
|
|
286
|
+
**Kind**: global typedef
|
|
287
|
+
**Properties**
|
|
288
|
+
|
|
289
|
+
| Name | Type | Description |
|
|
290
|
+
| --- | --- | --- |
|
|
291
|
+
| CreditLineBorrowProps | [<code>CreditLineBorrowProps</code>](#CreditLineBorrowProps) | <p>Credit line pool borrow props.</p> |
|
|
292
|
+
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
293
|
+
|
|
294
|
+
<a name="CreditLinePaymentWidgetProps"></a>
|
|
295
|
+
|
|
296
|
+
## CreditLinePaymentWidgetProps : <code>Object</code>
|
|
297
|
+
<p>Credit line pool payment widget props</p>
|
|
298
|
+
|
|
299
|
+
**Kind**: global typedef
|
|
300
|
+
**Properties**
|
|
301
|
+
|
|
302
|
+
| Name | Type | Description |
|
|
303
|
+
| --- | --- | --- |
|
|
304
|
+
| CreditLinePaymentProps | [<code>CreditLinePaymentProps</code>](#CreditLinePaymentProps) | <p>Credit line pool payment props.</p> |
|
|
305
|
+
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
306
|
+
|
|
307
|
+
<a name="LendSupplyWidgetProps"></a>
|
|
308
|
+
|
|
309
|
+
## LendSupplyWidgetProps : <code>Object</code>
|
|
310
|
+
<p>Lend pool supply widget props</p>
|
|
311
|
+
|
|
312
|
+
**Kind**: global typedef
|
|
313
|
+
**Properties**
|
|
314
|
+
|
|
315
|
+
| Name | Type | Description |
|
|
316
|
+
| --- | --- | --- |
|
|
317
|
+
| LendSupplyProps | [<code>LendSupplyProps</code>](#LendSupplyProps) | <p>Lend pool supply props.</p> |
|
|
318
|
+
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
319
|
+
|
|
320
|
+
<a name="LendWithdrawWidgetProps"></a>
|
|
321
|
+
|
|
322
|
+
## LendWithdrawWidgetProps : <code>Object</code>
|
|
323
|
+
<p>Lend pool withdraw widget props</p>
|
|
324
|
+
|
|
325
|
+
**Kind**: global typedef
|
|
326
|
+
**Properties**
|
|
327
|
+
|
|
328
|
+
| Name | Type | Description |
|
|
329
|
+
| --- | --- | --- |
|
|
330
|
+
| LendWithdrawProps | [<code>LendWithdrawProps</code>](#LendWithdrawProps) | <p>Lend pool withdraw props.</p> |
|
|
331
|
+
| WidgetProps | [<code>WidgetProps</code>](#WidgetProps) | <p>Widget general props.</p> |
|
|
332
|
+
|