@huma-finance/widgets 0.0.59-beta.481 → 0.0.59-beta.483

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/dist/index.d.ts CHANGED
@@ -180,17 +180,21 @@ interface LendSupplyProps {
180
180
  handleSuccess?: (blockNumber?: number) => void;
181
181
  }
182
182
 
183
+ interface Campaign {
184
+ id: string;
185
+ campaignGroupId: string;
186
+ }
183
187
  /**
184
188
  * Lend pool supply props
185
189
  * @typedef {Object} LendSupplyPropsV2
186
190
  * @property {POOL_NAME} poolName The name of the pool.
187
- * @property {boolean} shouldApproveAll To check if should approve both tranches.
191
+ * @property {Campaign} campaign The campaign info.
188
192
  * @property {function():void} handleClose Function to notify to close the widget modal when user clicks the 'x' close button.
189
193
  * @property {function((number|undefined)):void|undefined} handleSuccess Optional function to notify that the lending pool supply action is successful.
190
194
  */
191
195
  interface LendSupplyPropsV2 {
192
196
  poolName: keyof typeof POOL_NAME;
193
- shouldApproveAll?: boolean;
197
+ campaign?: Campaign;
194
198
  handleClose: () => void;
195
199
  handleSuccess?: (blockNumber?: number) => void;
196
200
  }