@gearbox-protocol/sdk 8.25.1-next.3 → 8.25.1

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.
@@ -837,7 +837,9 @@ class AbstractCreditAccountService extends import_base.SDKConstruct {
837
837
  }
838
838
  /**
839
839
  * Returns account price updates that can be used in credit facade multicall or liquidator calls
840
- * @param acc
840
+ * @param creditManager
841
+ * @param creditAccount
842
+ * @param desiredQuotas
841
843
  * @returns
842
844
  */
843
845
  async getOnDemandPriceUpdates(creditManager, creditAccount, desiredQuotas) {
@@ -828,7 +828,9 @@ class AbstractCreditAccountService extends SDKConstruct {
828
828
  }
829
829
  /**
830
830
  * Returns account price updates that can be used in credit facade multicall or liquidator calls
831
- * @param acc
831
+ * @param creditManager
832
+ * @param creditAccount
833
+ * @param desiredQuotas
832
834
  * @returns
833
835
  */
834
836
  async getOnDemandPriceUpdates(creditManager, creditAccount, desiredQuotas) {
@@ -181,7 +181,9 @@ export declare abstract class AbstractCreditAccountService extends SDKConstruct
181
181
  protected getUpdateForAccount(creditManager: Address, creditAccount: RouterCASlice | undefined, desiredQuotas: Array<Asset> | undefined): Promise<UpdatePriceFeedsResult>;
182
182
  /**
183
183
  * Returns account price updates that can be used in credit facade multicall or liquidator calls
184
- * @param acc
184
+ * @param creditManager
185
+ * @param creditAccount
186
+ * @param desiredQuotas
185
187
  * @returns
186
188
  */
187
189
  getOnDemandPriceUpdates(creditManager: Address, creditAccount: RouterCASlice | undefined, desiredQuotas: Array<Asset> | undefined): Promise<OnDemandPriceUpdates>;
@@ -3,7 +3,7 @@ import type { iCreditAccountCompressorAbi } from "../../abi/compressors.js";
3
3
  import type { BotType } from "../../plugins/bots/types.js";
4
4
  import type { ConnectedBotData, CreditAccountData } from "../base/index.js";
5
5
  import type { SDKConstruct } from "../base/SDKConstruct.js";
6
- import type { CreditSuite, UpdatePriceFeedsResult } from "../market/index.js";
6
+ import type { CreditSuite, OnDemandPriceUpdates, UpdatePriceFeedsResult } from "../market/index.js";
7
7
  import type { Asset, RouterCASlice, RouterCloseResult } from "../router/index.js";
8
8
  import type { MultiCall, RawTx } from "../types/index.js";
9
9
  export type GetCreditAccountsArgs = ContractFunctionArgs<typeof iCreditAccountCompressorAbi, "pure" | "view", "getCreditAccounts">;
@@ -492,6 +492,14 @@ export interface ICreditAccountsService extends SDKConstruct {
492
492
  * @returns
493
493
  */
494
494
  getUpdateForAccounts(accounts: Array<RouterCASlice>): Promise<UpdatePriceFeedsResult>;
495
+ /**
496
+ * Returns account price updates that can be used in credit facade multicall or liquidator calls
497
+ * @param creditManager
498
+ * @param creditAccount
499
+ * @param desiredQuotas
500
+ * @returns
501
+ */
502
+ getOnDemandPriceUpdates(creditManager: Address, creditAccount: RouterCASlice | undefined, desiredQuotas: Array<Asset> | undefined): Promise<OnDemandPriceUpdates>;
495
503
  /**
496
504
  * Withdraws a single collateral from credit account to wallet to and updates quotas;
497
505
  * technically can withdraw several tokens at once
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "8.25.1-next.3",
3
+ "version": "8.25.1",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",