@huma-finance/widgets 0.0.62-beta.718 → 0.0.62-beta.720
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 +38 -0
- package/dist/cjs/index.cjs +443 -184
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +444 -186
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Lend/solanaEnableAutoRedemption/1-ApproveAllowance.tsx +61 -0
- package/src/components/Lend/solanaEnableAutoRedemption/2-Transfer.tsx +167 -0
- package/src/components/Lend/solanaEnableAutoRedemption/3-Success.tsx +45 -0
- package/src/components/Lend/solanaEnableAutoRedemption/index.tsx +76 -0
- package/src/components/Lend/solanaSupply/3-ChooseAmount.tsx +2 -2
- package/src/components/Lend/solanaSupply/4-ApproveAllowance.tsx +59 -0
- package/src/components/Lend/solanaSupply/4-Transfer.tsx +28 -4
- package/src/components/Lend/solanaSupply/index.tsx +4 -0
- package/src/index.tsx +26 -0
package/API.md
CHANGED
|
@@ -48,6 +48,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
48
48
|
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
49
49
|
<dt><a href="#SolanaPaymentWidget">SolanaPaymentWidget(props)</a></dt>
|
|
50
50
|
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
51
|
+
<dt><a href="#SolanaEnableAutoRedemptionWidget">SolanaEnableAutoRedemptionWidget(props)</a></dt>
|
|
52
|
+
<dd><p>Lend pool supply widget for Solana pools</p></dd>
|
|
51
53
|
</dl>
|
|
52
54
|
|
|
53
55
|
## Typedefs
|
|
@@ -83,6 +85,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
83
85
|
<dd><p>Lend pool supply props</p></dd>
|
|
84
86
|
<dt><a href="#SolanaLendCancelRedemptionProps">SolanaLendCancelRedemptionProps</a> : <code>Object</code></dt>
|
|
85
87
|
<dd><p>Lend pool supply props</p></dd>
|
|
88
|
+
<dt><a href="#SolanaEnableAutoRedemptionProps">SolanaEnableAutoRedemptionProps</a> : <code>Object</code></dt>
|
|
89
|
+
<dd><p>Lend pool supply props</p></dd>
|
|
86
90
|
<dt><a href="#SolanaLendSupplyProps">SolanaLendSupplyProps</a> : <code>Object</code></dt>
|
|
87
91
|
<dd><p>Lend pool supply props</p></dd>
|
|
88
92
|
<dt><a href="#LendSupplyProps">LendSupplyProps</a> : <code>Object</code></dt>
|
|
@@ -147,6 +151,8 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
147
151
|
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
148
152
|
<dt><a href="#SolanaPaymentWidgetProps">SolanaPaymentWidgetProps</a> : <code>Object</code></dt>
|
|
149
153
|
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
154
|
+
<dt><a href="#SolanaEnableAutoRedemptionWidgetProps">SolanaEnableAutoRedemptionWidgetProps</a> : <code>Object</code></dt>
|
|
155
|
+
<dd><p>Lend pool supply widget props for Solana pools</p></dd>
|
|
150
156
|
</dl>
|
|
151
157
|
|
|
152
158
|
<a name="InvoiceFactoringBorrowWidget"></a>
|
|
@@ -421,6 +427,17 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
421
427
|
| --- | --- | --- |
|
|
422
428
|
| props | [<code>SolanaPaymentWidgetProps</code>](#SolanaPaymentWidgetProps) | <p>Widget props</p> |
|
|
423
429
|
|
|
430
|
+
<a name="SolanaEnableAutoRedemptionWidget"></a>
|
|
431
|
+
|
|
432
|
+
## SolanaEnableAutoRedemptionWidget(props)
|
|
433
|
+
<p>Lend pool supply widget for Solana pools</p>
|
|
434
|
+
|
|
435
|
+
**Kind**: global function
|
|
436
|
+
|
|
437
|
+
| Param | Type | Description |
|
|
438
|
+
| --- | --- | --- |
|
|
439
|
+
| props | [<code>SolanaEnableAutoRedemptionWidgetProps</code>](#SolanaEnableAutoRedemptionWidgetProps) | <p>Widget props</p> |
|
|
440
|
+
|
|
424
441
|
<a name="CreditLineApproveProps"></a>
|
|
425
442
|
|
|
426
443
|
## CreditLineApproveProps : <code>Object</code>
|
|
@@ -641,6 +658,21 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
641
658
|
| poolState | <code>SolanaPoolState</code> | <p>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.</p> |
|
|
642
659
|
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
643
660
|
|
|
661
|
+
<a name="SolanaEnableAutoRedemptionProps"></a>
|
|
662
|
+
|
|
663
|
+
## SolanaEnableAutoRedemptionProps : <code>Object</code>
|
|
664
|
+
<p>Lend pool supply props</p>
|
|
665
|
+
|
|
666
|
+
**Kind**: global typedef
|
|
667
|
+
**Properties**
|
|
668
|
+
|
|
669
|
+
| Name | Type | Description |
|
|
670
|
+
| --- | --- | --- |
|
|
671
|
+
| poolInfo | <code>SolanaPoolInfo</code> | <p>The metadata of the pool.</p> |
|
|
672
|
+
| poolState | <code>SolanaPoolState</code> | <p>The current state config of the pool.</p> |
|
|
673
|
+
| handleClose | <code>function</code> | <p>Function to notify to close the widget modal when user clicks the 'x' close button.</p> |
|
|
674
|
+
| handleSuccess | <code>function</code> | <p>Optional function to notify that the lending pool supply action is successful.</p> |
|
|
675
|
+
|
|
644
676
|
<a name="SolanaLendSupplyProps"></a>
|
|
645
677
|
|
|
646
678
|
## SolanaLendSupplyProps : <code>Object</code>
|
|
@@ -1031,3 +1063,9 @@ To be used when re-enabling autopay and other pool actions that require allowanc
|
|
|
1031
1063
|
<p>Lend pool supply widget props for Solana pools</p>
|
|
1032
1064
|
|
|
1033
1065
|
**Kind**: global typedef
|
|
1066
|
+
<a name="SolanaEnableAutoRedemptionWidgetProps"></a>
|
|
1067
|
+
|
|
1068
|
+
## SolanaEnableAutoRedemptionWidgetProps : <code>Object</code>
|
|
1069
|
+
<p>Lend pool supply widget props for Solana pools</p>
|
|
1070
|
+
|
|
1071
|
+
**Kind**: global typedef
|