@drift-labs/sdk 2.100.0-beta.1 → 2.100.0-beta.2

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.100.0-beta.1
1
+ 2.100.0-beta.2
@@ -503,8 +503,6 @@ export declare class DriftClient {
503
503
  getUpdateUserFuelBonusIx(userAccountPublicKey: PublicKey, userAccount: UserAccount, userAuthority: PublicKey): Promise<TransactionInstruction>;
504
504
  updateUserStatsReferrerStatus(userAuthority: PublicKey, txParams?: TxParams): Promise<TransactionSignature>;
505
505
  getUpdateUserStatsReferrerStatusIx(userAuthority: PublicKey): Promise<TransactionInstruction>;
506
- updateUserStatsReferrerInfo(userStatsAccountPublicKey: PublicKey, txParams?: TxParams): Promise<TransactionSignature>;
507
- getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey: PublicKey): Promise<TransactionInstruction>;
508
506
  updateUserOpenOrdersCount(userAccountPublicKey: PublicKey, user: UserAccount, txParams?: TxParams, fillerPublicKey?: PublicKey): Promise<TransactionSignature>;
509
507
  getUpdateUserOpenOrdersCountIx(userAccountPublicKey: PublicKey, userAccount: UserAccount, fillerPublicKey?: PublicKey): Promise<TransactionInstruction>;
510
508
  placeAndTakePerpOrder(orderParams: OptionalOrderParams, makerInfo?: MakerInfo | MakerInfo[], referrerInfo?: ReferrerInfo, successCondition?: PlaceAndTakeOrderSuccessCondition, txParams?: TxParams, subAccountId?: number): Promise<TransactionSignature>;
@@ -2824,20 +2824,7 @@ class DriftClient {
2824
2824
  }
2825
2825
  async getUpdateUserStatsReferrerStatusIx(userAuthority) {
2826
2826
  const userStatsAccountPublicKey = (0, pda_1.getUserStatsAccountPublicKey)(this.program.programId, userAuthority);
2827
- return await this.program.instruction.updateStatsReferrerStatus({
2828
- accounts: {
2829
- state: await this.getStatePublicKey(),
2830
- userStats: userStatsAccountPublicKey,
2831
- authority: this.wallet.publicKey,
2832
- },
2833
- });
2834
- }
2835
- async updateUserStatsReferrerInfo(userStatsAccountPublicKey, txParams) {
2836
- const { txSig } = await this.sendTransaction(await this.buildTransaction(await this.getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey), txParams), [], this.opts);
2837
- return txSig;
2838
- }
2839
- async getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey) {
2840
- return await this.program.instruction.updateUserStatsReferrerInfo({
2827
+ return await this.program.instruction.updateUserStatsReferrerStatus({
2841
2828
  accounts: {
2842
2829
  state: await this.getStatePublicKey(),
2843
2830
  userStats: userStatsAccountPublicKey,
@@ -503,8 +503,6 @@ export declare class DriftClient {
503
503
  getUpdateUserFuelBonusIx(userAccountPublicKey: PublicKey, userAccount: UserAccount, userAuthority: PublicKey): Promise<TransactionInstruction>;
504
504
  updateUserStatsReferrerStatus(userAuthority: PublicKey, txParams?: TxParams): Promise<TransactionSignature>;
505
505
  getUpdateUserStatsReferrerStatusIx(userAuthority: PublicKey): Promise<TransactionInstruction>;
506
- updateUserStatsReferrerInfo(userStatsAccountPublicKey: PublicKey, txParams?: TxParams): Promise<TransactionSignature>;
507
- getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey: PublicKey): Promise<TransactionInstruction>;
508
506
  updateUserOpenOrdersCount(userAccountPublicKey: PublicKey, user: UserAccount, txParams?: TxParams, fillerPublicKey?: PublicKey): Promise<TransactionSignature>;
509
507
  getUpdateUserOpenOrdersCountIx(userAccountPublicKey: PublicKey, userAccount: UserAccount, fillerPublicKey?: PublicKey): Promise<TransactionInstruction>;
510
508
  placeAndTakePerpOrder(orderParams: OptionalOrderParams, makerInfo?: MakerInfo | MakerInfo[], referrerInfo?: ReferrerInfo, successCondition?: PlaceAndTakeOrderSuccessCondition, txParams?: TxParams, subAccountId?: number): Promise<TransactionSignature>;
@@ -2824,20 +2824,7 @@ class DriftClient {
2824
2824
  }
2825
2825
  async getUpdateUserStatsReferrerStatusIx(userAuthority) {
2826
2826
  const userStatsAccountPublicKey = (0, pda_1.getUserStatsAccountPublicKey)(this.program.programId, userAuthority);
2827
- return await this.program.instruction.updateStatsReferrerStatus({
2828
- accounts: {
2829
- state: await this.getStatePublicKey(),
2830
- userStats: userStatsAccountPublicKey,
2831
- authority: this.wallet.publicKey,
2832
- },
2833
- });
2834
- }
2835
- async updateUserStatsReferrerInfo(userStatsAccountPublicKey, txParams) {
2836
- const { txSig } = await this.sendTransaction(await this.buildTransaction(await this.getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey), txParams), [], this.opts);
2837
- return txSig;
2838
- }
2839
- async getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey) {
2840
- return await this.program.instruction.updateUserStatsReferrerInfo({
2827
+ return await this.program.instruction.updateUserStatsReferrerStatus({
2841
2828
  accounts: {
2842
2829
  state: await this.getStatePublicKey(),
2843
2830
  userStats: userStatsAccountPublicKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.100.0-beta.1",
3
+ "version": "2.100.0-beta.2",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -5160,34 +5160,7 @@ export class DriftClient {
5160
5160
  userAuthority
5161
5161
  );
5162
5162
 
5163
- return await this.program.instruction.updateStatsReferrerStatus({
5164
- accounts: {
5165
- state: await this.getStatePublicKey(),
5166
- userStats: userStatsAccountPublicKey,
5167
- authority: this.wallet.publicKey,
5168
- },
5169
- });
5170
- }
5171
-
5172
- public async updateUserStatsReferrerInfo(
5173
- userStatsAccountPublicKey: PublicKey,
5174
- txParams?: TxParams
5175
- ): Promise<TransactionSignature> {
5176
- const { txSig } = await this.sendTransaction(
5177
- await this.buildTransaction(
5178
- await this.getUpdateUserStatsReferrerInfoIx(userStatsAccountPublicKey),
5179
- txParams
5180
- ),
5181
- [],
5182
- this.opts
5183
- );
5184
- return txSig;
5185
- }
5186
-
5187
- public async getUpdateUserStatsReferrerInfoIx(
5188
- userStatsAccountPublicKey: PublicKey
5189
- ): Promise<TransactionInstruction> {
5190
- return await this.program.instruction.updateUserStatsReferrerInfo({
5163
+ return await this.program.instruction.updateUserStatsReferrerStatus({
5191
5164
  accounts: {
5192
5165
  state: await this.getStatePublicKey(),
5193
5166
  userStats: userStatsAccountPublicKey,