@drift-labs/sdk 2.97.0-beta.8 → 2.97.0-beta.9

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.97.0-beta.8
1
+ 2.97.0-beta.9
@@ -4259,7 +4259,7 @@ class DriftClient {
4259
4259
  return txSig;
4260
4260
  }
4261
4261
  async getEnableHighLeverageModeIx(subAccountId) {
4262
- const ix = await this.program.instruction.enableHighLeverageMode(subAccountId, {
4262
+ const ix = await this.program.instruction.enableUserHighLeverageMode(subAccountId, {
4263
4263
  accounts: {
4264
4264
  state: await this.getStatePublicKey(),
4265
4265
  user: (0, pda_1.getUserAccountPublicKeySync)(this.program.programId, this.wallet.publicKey, subAccountId),
@@ -4274,7 +4274,7 @@ class DriftClient {
4274
4274
  return txSig;
4275
4275
  }
4276
4276
  async getDisableHighLeverageModeIx(user) {
4277
- const ix = await this.program.instruction.disableHighLeverageMode({
4277
+ const ix = await this.program.instruction.disableUserHighLeverageMode({
4278
4278
  accounts: {
4279
4279
  state: await this.getStatePublicKey(),
4280
4280
  user,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.97.0-beta.8",
3
+ "version": "2.97.0-beta.9",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -8119,7 +8119,7 @@ export class DriftClient {
8119
8119
  }
8120
8120
 
8121
8121
  public async getEnableHighLeverageModeIx(subAccountId: number) {
8122
- const ix = await this.program.instruction.enableHighLeverageMode(
8122
+ const ix = await this.program.instruction.enableUserHighLeverageMode(
8123
8123
  subAccountId,
8124
8124
  {
8125
8125
  accounts: {
@@ -8156,7 +8156,7 @@ export class DriftClient {
8156
8156
  }
8157
8157
 
8158
8158
  public async getDisableHighLeverageModeIx(user: PublicKey) {
8159
- const ix = await this.program.instruction.disableHighLeverageMode({
8159
+ const ix = await this.program.instruction.disableUserHighLeverageMode({
8160
8160
  accounts: {
8161
8161
  state: await this.getStatePublicKey(),
8162
8162
  user,