@huma-finance/widgets 0.0.47 → 0.0.48-beta.187
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 +18 -0
- package/dist/cjs/index.cjs +388 -57
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +33 -1
- package/dist/index.js +388 -58
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
- package/src/components/RequestNetworkInvoiceFactoring/1-Evaluation.tsx +58 -0
- package/src/components/RequestNetworkInvoiceFactoring/2-ChooseAmount.tsx +88 -0
- package/src/components/RequestNetworkInvoiceFactoring/3-ConfirmTransfer.tsx +37 -0
- package/src/components/RequestNetworkInvoiceFactoring/4-ApproveNFT.tsx +55 -0
- package/src/components/RequestNetworkInvoiceFactoring/5-Transfer.tsx +34 -0
- package/src/components/RequestNetworkInvoiceFactoring/6-Success.tsx +20 -0
- package/src/components/RequestNetworkInvoiceFactoring/index.tsx +137 -0
- package/src/cosmos/RequestNetworkBorrow.fixture.tsx +65 -0
- package/src/index.tsx +29 -0
package/API.md
CHANGED
|
@@ -37,6 +37,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
37
37
|
<dd><p>Lend pool supply props</p></dd>
|
|
38
38
|
<dt><a href="#LendWithdrawProps">LendWithdrawProps</a> : <code>Object</code></dt>
|
|
39
39
|
<dd><p>Lend pool withdraw props</p></dd>
|
|
40
|
+
<dt><a href="#InvoiceFactoringBorrowProps">InvoiceFactoringBorrowProps</a> : <code>Object</code></dt>
|
|
41
|
+
<dd><p>Invoice factoring pool borrow props</p></dd>
|
|
40
42
|
<dt><a href="#JsonRpcConnectionMap">JsonRpcConnectionMap</a> : <code>Object</code></dt>
|
|
41
43
|
<dd><p>Mapping of your JSON-RPC connections indexed by chainId</p></dd>
|
|
42
44
|
<dt><a href="#WidgetProps">WidgetProps</a> : <code>Object</code></dt>
|
|
@@ -262,6 +264,22 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
262
264
|
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
263
265
|
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool withdraw action is successful.</p> |
|
|
264
266
|
|
|
267
|
+
<a name="InvoiceFactoringBorrowProps"></a>
|
|
268
|
+
|
|
269
|
+
## InvoiceFactoringBorrowProps : <code>Object</code>
|
|
270
|
+
<p>Invoice factoring pool borrow props</p>
|
|
271
|
+
|
|
272
|
+
**Kind**: global typedef
|
|
273
|
+
**Properties**
|
|
274
|
+
|
|
275
|
+
| Name | Type | Description |
|
|
276
|
+
| --- | --- | --- |
|
|
277
|
+
| poolName | <code>POOL\_NAME</code> | <p>The name of the pool.</p> |
|
|
278
|
+
| poolType | <code>POOL\_TYPE</code> | <p>The type of the pool.</p> |
|
|
279
|
+
| tokenId | <code>string</code> \| <code>BigNumber</code> | <p>The NFT token id representing invoice.</p> |
|
|
280
|
+
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
281
|
+
| handleSuccess | <code>function</code> | <p>Optional function to notify that the invoice pool borrow action is successful.</p> |
|
|
282
|
+
|
|
265
283
|
<a name="JsonRpcConnectionMap"></a>
|
|
266
284
|
|
|
267
285
|
## JsonRpcConnectionMap : <code>Object</code>
|