@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 +1 -1
- package/lib/driftClient.js +2 -2
- package/package.json +1 -1
- package/src/driftClient.ts +2 -2
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.97.0-beta.
|
|
1
|
+
2.97.0-beta.9
|
package/lib/driftClient.js
CHANGED
|
@@ -4259,7 +4259,7 @@ class DriftClient {
|
|
|
4259
4259
|
return txSig;
|
|
4260
4260
|
}
|
|
4261
4261
|
async getEnableHighLeverageModeIx(subAccountId) {
|
|
4262
|
-
const ix = await this.program.instruction.
|
|
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.
|
|
4277
|
+
const ix = await this.program.instruction.disableUserHighLeverageMode({
|
|
4278
4278
|
accounts: {
|
|
4279
4279
|
state: await this.getStatePublicKey(),
|
|
4280
4280
|
user,
|
package/package.json
CHANGED
package/src/driftClient.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
8159
|
+
const ix = await this.program.instruction.disableUserHighLeverageMode({
|
|
8160
8160
|
accounts: {
|
|
8161
8161
|
state: await this.getStatePublicKey(),
|
|
8162
8162
|
user,
|