@drift-labs/sdk 2.112.0-beta.13 → 2.112.0-beta.15

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.
@@ -212,6 +212,6 @@ export declare class AdminClient extends DriftClient {
212
212
  getUpdateHighLeverageModeConfigIx(maxUsers: number, reduceOnly: boolean): Promise<TransactionInstruction>;
213
213
  initializeProtectedMakerModeConfig(maxUsers: number, stateAdmin?: boolean): Promise<TransactionSignature>;
214
214
  getInitializeProtectedMakerModeConfigIx(maxUsers: number, stateAdmin?: boolean): Promise<TransactionInstruction>;
215
- updateProtectedMakerModeConfig(maxUsers: number, reduceOnly: boolean): Promise<TransactionSignature>;
216
- getUpdateProtectedMakerModeConfigIx(maxUsers: number, reduceOnly: boolean): Promise<TransactionInstruction>;
215
+ updateProtectedMakerModeConfig(maxUsers: number, reduceOnly: boolean, currentUsers: undefined): Promise<TransactionSignature>;
216
+ getUpdateProtectedMakerModeConfigIx(maxUsers: number, reduceOnly: boolean, currentUsers: undefined): Promise<TransactionInstruction>;
217
217
  }
@@ -1919,14 +1919,14 @@ class AdminClient extends driftClient_1.DriftClient {
1919
1919
  },
1920
1920
  });
1921
1921
  }
1922
- async updateProtectedMakerModeConfig(maxUsers, reduceOnly) {
1923
- const updateProtectedMakerModeConfigIx = await this.getUpdateProtectedMakerModeConfigIx(maxUsers, reduceOnly);
1922
+ async updateProtectedMakerModeConfig(maxUsers, reduceOnly, currentUsers) {
1923
+ const updateProtectedMakerModeConfigIx = await this.getUpdateProtectedMakerModeConfigIx(maxUsers, reduceOnly, currentUsers);
1924
1924
  const tx = await this.buildTransaction(updateProtectedMakerModeConfigIx);
1925
1925
  const { txSig } = await this.sendTransaction(tx, [], this.opts);
1926
1926
  return txSig;
1927
1927
  }
1928
- async getUpdateProtectedMakerModeConfigIx(maxUsers, reduceOnly) {
1929
- return await this.program.instruction.updateProtectedMakerModeConfig(maxUsers, reduceOnly, {
1928
+ async getUpdateProtectedMakerModeConfigIx(maxUsers, reduceOnly, currentUsers) {
1929
+ return await this.program.instruction.updateProtectedMakerModeConfig(maxUsers, reduceOnly, currentUsers, {
1930
1930
  accounts: {
1931
1931
  admin: this.isSubscribed
1932
1932
  ? this.getStateAccount().admin
@@ -212,6 +212,6 @@ export declare class AdminClient extends DriftClient {
212
212
  getUpdateHighLeverageModeConfigIx(maxUsers: number, reduceOnly: boolean): Promise<TransactionInstruction>;
213
213
  initializeProtectedMakerModeConfig(maxUsers: number, stateAdmin?: boolean): Promise<TransactionSignature>;
214
214
  getInitializeProtectedMakerModeConfigIx(maxUsers: number, stateAdmin?: boolean): Promise<TransactionInstruction>;
215
- updateProtectedMakerModeConfig(maxUsers: number, reduceOnly: boolean): Promise<TransactionSignature>;
216
- getUpdateProtectedMakerModeConfigIx(maxUsers: number, reduceOnly: boolean): Promise<TransactionInstruction>;
215
+ updateProtectedMakerModeConfig(maxUsers: number, reduceOnly: boolean, currentUsers: undefined): Promise<TransactionSignature>;
216
+ getUpdateProtectedMakerModeConfigIx(maxUsers: number, reduceOnly: boolean, currentUsers: undefined): Promise<TransactionInstruction>;
217
217
  }
@@ -1919,14 +1919,14 @@ class AdminClient extends driftClient_1.DriftClient {
1919
1919
  },
1920
1920
  });
1921
1921
  }
1922
- async updateProtectedMakerModeConfig(maxUsers, reduceOnly) {
1923
- const updateProtectedMakerModeConfigIx = await this.getUpdateProtectedMakerModeConfigIx(maxUsers, reduceOnly);
1922
+ async updateProtectedMakerModeConfig(maxUsers, reduceOnly, currentUsers) {
1923
+ const updateProtectedMakerModeConfigIx = await this.getUpdateProtectedMakerModeConfigIx(maxUsers, reduceOnly, currentUsers);
1924
1924
  const tx = await this.buildTransaction(updateProtectedMakerModeConfigIx);
1925
1925
  const { txSig } = await this.sendTransaction(tx, [], this.opts);
1926
1926
  return txSig;
1927
1927
  }
1928
- async getUpdateProtectedMakerModeConfigIx(maxUsers, reduceOnly) {
1929
- return await this.program.instruction.updateProtectedMakerModeConfig(maxUsers, reduceOnly, {
1928
+ async getUpdateProtectedMakerModeConfigIx(maxUsers, reduceOnly, currentUsers) {
1929
+ return await this.program.instruction.updateProtectedMakerModeConfig(maxUsers, reduceOnly, currentUsers, {
1930
1930
  accounts: {
1931
1931
  admin: this.isSubscribed
1932
1932
  ? this.getStateAccount().admin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.112.0-beta.13",
3
+ "version": "2.112.0-beta.15",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -39,7 +39,7 @@
39
39
  "@coral-xyz/anchor": "0.29.0",
40
40
  "@coral-xyz/anchor-30": "npm:@coral-xyz/anchor@0.30.1",
41
41
  "@ellipsis-labs/phoenix-sdk": "1.4.5",
42
- "@grpc/grpc-js": "^1.8.0",
42
+ "@grpc/grpc-js": "1.12.6",
43
43
  "@openbook-dex/openbook-v2": "0.2.10",
44
44
  "@project-serum/serum": "0.13.65",
45
45
  "@pythnetwork/client": "2.5.3",
@@ -4136,10 +4136,15 @@ export class AdminClient extends DriftClient {
4136
4136
 
4137
4137
  public async updateProtectedMakerModeConfig(
4138
4138
  maxUsers: number,
4139
- reduceOnly: boolean
4139
+ reduceOnly: boolean,
4140
+ currentUsers: undefined
4140
4141
  ): Promise<TransactionSignature> {
4141
4142
  const updateProtectedMakerModeConfigIx =
4142
- await this.getUpdateProtectedMakerModeConfigIx(maxUsers, reduceOnly);
4143
+ await this.getUpdateProtectedMakerModeConfigIx(
4144
+ maxUsers,
4145
+ reduceOnly,
4146
+ currentUsers
4147
+ );
4143
4148
 
4144
4149
  const tx = await this.buildTransaction(updateProtectedMakerModeConfigIx);
4145
4150
 
@@ -4150,11 +4155,13 @@ export class AdminClient extends DriftClient {
4150
4155
 
4151
4156
  public async getUpdateProtectedMakerModeConfigIx(
4152
4157
  maxUsers: number,
4153
- reduceOnly: boolean
4158
+ reduceOnly: boolean,
4159
+ currentUsers: undefined
4154
4160
  ): Promise<TransactionInstruction> {
4155
4161
  return await this.program.instruction.updateProtectedMakerModeConfig(
4156
4162
  maxUsers,
4157
4163
  reduceOnly,
4164
+ currentUsers,
4158
4165
  {
4159
4166
  accounts: {
4160
4167
  admin: this.isSubscribed
package/bun.lockb DELETED
Binary file