@carrot-protocol/boost-http-client 0.2.15-group-refactor1-dev-14a4fcd → 0.2.15-group-refactor1-dev-f0afda1

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
@@ -57,5 +57,5 @@ export declare class Client {
57
57
  * @param request Withdraw leverage request parameters
58
58
  * @returns Withdraw leverage operation result
59
59
  */
60
- withdrawLeverage(selectedTokenMint: web3.PublicKey, uiAmount: number, slippageBps: number, withdrawAll: boolean): Promise<any>;
60
+ withdrawLeverage(clendGroup: web3.PublicKey, inputTokenMint: web3.PublicKey, assetTokenMint: web3.PublicKey, liabilityTokenMint: web3.PublicKey, uiAmount: number, slippageBps: number, withdrawAll: boolean): Promise<any>;
61
61
  }
package/dist/index.js CHANGED
@@ -299,10 +299,13 @@ class Client {
299
299
  * @param request Withdraw leverage request parameters
300
300
  * @returns Withdraw leverage operation result
301
301
  */
302
- async withdrawLeverage(selectedTokenMint, uiAmount, slippageBps, withdrawAll) {
302
+ async withdrawLeverage(clendGroup, inputTokenMint, assetTokenMint, liabilityTokenMint, uiAmount, slippageBps, withdrawAll) {
303
303
  const req = {
304
304
  owner: this.address(),
305
- selectedTokenMint,
305
+ clendGroup,
306
+ inputTokenMint,
307
+ assetTokenMint,
308
+ liabilityTokenMint,
306
309
  withdrawAmountUi: uiAmount,
307
310
  slippageBps,
308
311
  withdrawAll,
package/dist/types.d.ts CHANGED
@@ -43,7 +43,10 @@ export interface AdjustLeverageResponse {
43
43
  */
44
44
  export interface WithdrawLeverageRequest {
45
45
  owner: web3.PublicKey;
46
- selectedTokenMint: web3.PublicKey;
46
+ clendGroup: web3.PublicKey;
47
+ inputTokenMint: web3.PublicKey;
48
+ assetTokenMint: web3.PublicKey;
49
+ liabilityTokenMint: web3.PublicKey;
47
50
  withdrawAmountUi: number;
48
51
  slippageBps: number;
49
52
  withdrawAll: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/boost-http-client",
3
- "version": "0.2.15-group-refactor1-dev-14a4fcd",
3
+ "version": "0.2.15-group-refactor1-dev-f0afda1",
4
4
  "description": "HTTP client for Carrot Boost",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -368,14 +368,20 @@ export class Client {
368
368
  * @returns Withdraw leverage operation result
369
369
  */
370
370
  async withdrawLeverage(
371
- selectedTokenMint: web3.PublicKey,
371
+ clendGroup: web3.PublicKey,
372
+ inputTokenMint: web3.PublicKey,
373
+ assetTokenMint: web3.PublicKey,
374
+ liabilityTokenMint: web3.PublicKey,
372
375
  uiAmount: number,
373
376
  slippageBps: number,
374
377
  withdrawAll: boolean,
375
378
  ): Promise<any> {
376
379
  const req: WithdrawLeverageRequest = {
377
380
  owner: this.address(),
378
- selectedTokenMint,
381
+ clendGroup,
382
+ inputTokenMint,
383
+ assetTokenMint,
384
+ liabilityTokenMint,
379
385
  withdrawAmountUi: uiAmount,
380
386
  slippageBps,
381
387
  withdrawAll,
package/src/types.ts CHANGED
@@ -50,7 +50,10 @@ export interface AdjustLeverageResponse {
50
50
  */
51
51
  export interface WithdrawLeverageRequest {
52
52
  owner: web3.PublicKey;
53
- selectedTokenMint: web3.PublicKey;
53
+ clendGroup: web3.PublicKey;
54
+ inputTokenMint: web3.PublicKey;
55
+ assetTokenMint: web3.PublicKey;
56
+ liabilityTokenMint: web3.PublicKey;
54
57
  withdrawAmountUi: number;
55
58
  slippageBps: number;
56
59
  withdrawAll: boolean;