@typus/typus-perp-sdk 1.1.17 → 1.1.19-stake-pool-v2-a

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.
@@ -13,6 +13,7 @@ export declare function mintStakeLp(config: TypusConfig, tx: Transaction, pythCl
13
13
  cTOKEN: TOKEN;
14
14
  amount: string;
15
15
  userShareId: string | null;
16
+ isAutoCompound: boolean;
16
17
  user: string;
17
18
  stake: boolean;
18
19
  suiCoins?: string[];
@@ -157,7 +157,7 @@ function mintStakeLp(config, tx, pythClient, input) {
157
157
  index: BigInt(0),
158
158
  lpToken: lpCoin,
159
159
  clock: constants_1.CLOCK,
160
- userShareId: input.userShareId ? BigInt(input.userShareId) : null,
160
+ isAutoCompound: input.isAutoCompound ? BigInt(1) : null,
161
161
  });
162
162
  }
163
163
  else {
@@ -188,7 +188,7 @@ function stakeLp(config, tx, input) {
188
188
  index: BigInt(0),
189
189
  lpToken: coin,
190
190
  clock: constants_1.CLOCK,
191
- userShareId: input.userShareId ? BigInt(input.userShareId) : null,
191
+ isAutoCompound: null,
192
192
  });
193
193
  return [2 /*return*/, tx];
194
194
  });
@@ -472,7 +472,7 @@ function harvestStakeReward(config, tx, input) {
472
472
  index: BigInt(0),
473
473
  lpToken: iCoin,
474
474
  clock: constants_1.CLOCK,
475
- userShareId: input.userShareId ? BigInt(input.userShareId) : null,
475
+ isAutoCompound: null,
476
476
  });
477
477
  }
478
478
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typus/typus-perp-sdk",
3
- "version": "1.1.17",
3
+ "version": "1.1.19-stake-pool-v2-a",
4
4
  "repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
5
5
  "author": "Typus",
6
6
  "description": "typus perp sdk",